@proofkit/cli 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +120 -0
- package/LICENSE.md +21 -0
- package/README.md +19 -0
- package/dist/acorn-AKFTBDM6.js +15 -0
- package/dist/angular-BOQ6FHSU.js +2 -0
- package/dist/babel-ZTOORN7K.js +15 -0
- package/dist/chunk-4LISTI44.js +1 -0
- package/dist/estree-KOJPX4S6.js +36 -0
- package/dist/flow-RCI44GYZ.js +19 -0
- package/dist/glimmer-GV5EF5E4.js +30 -0
- package/dist/graphql-YXQNPQWM.js +29 -0
- package/dist/html-ZAJTRROK.js +22 -0
- package/dist/index.js +300 -0
- package/dist/markdown-Q75DTQI7.js +63 -0
- package/dist/meriyah-32K7GBV5.js +4 -0
- package/dist/postcss-WWYO4PGL.js +54 -0
- package/dist/typescript-M6N7JDNQ.js +20 -0
- package/dist/yaml-LY7PNAYV.js +161 -0
- package/index.d.ts +19 -0
- package/package.json +122 -0
- package/template/extras/_cursor/conditional-rules/nextjs-framework.mdc +51 -0
- package/template/extras/_cursor/conditional-rules/npm.mdc +60 -0
- package/template/extras/_cursor/conditional-rules/pnpm.mdc +65 -0
- package/template/extras/_cursor/conditional-rules/yarn.mdc +60 -0
- package/template/extras/_cursor/rules/cursor-rules.mdc +88 -0
- package/template/extras/_cursor/rules/filemaker-api.mdc +176 -0
- package/template/extras/_cursor/rules/troubleshooting-patterns.mdc +240 -0
- package/template/extras/_cursor/rules/ui-components.mdc +57 -0
- package/template/extras/config/_eslint.js +27 -0
- package/template/extras/config/_prettier.config.js +6 -0
- package/template/extras/config/drizzle-config-mysql.ts +12 -0
- package/template/extras/config/drizzle-config-postgres.ts +12 -0
- package/template/extras/config/drizzle-config-sqlite.ts +12 -0
- package/template/extras/config/fmschema.config.mjs +9 -0
- package/template/extras/config/get-query-client.ts +6 -0
- package/template/extras/config/postcss.config.cjs +7 -0
- package/template/extras/config/query-provider-vite.tsx +19 -0
- package/template/extras/config/query-provider.tsx +21 -0
- package/template/extras/emailProviders/none/email.tsx +24 -0
- package/template/extras/emailProviders/plunk/email.tsx +26 -0
- package/template/extras/emailProviders/plunk/service.ts +4 -0
- package/template/extras/emailProviders/resend/email.tsx +23 -0
- package/template/extras/emailProviders/resend/service.ts +4 -0
- package/template/extras/fmaddon-auth/app/(main)/auth/profile/actions.ts +93 -0
- package/template/extras/fmaddon-auth/app/(main)/auth/profile/page.tsx +27 -0
- package/template/extras/fmaddon-auth/app/(main)/auth/profile/profile-form.tsx +56 -0
- package/template/extras/fmaddon-auth/app/(main)/auth/profile/reset-password-form.tsx +110 -0
- package/template/extras/fmaddon-auth/app/(main)/auth/profile/schema.ts +19 -0
- package/template/extras/fmaddon-auth/app/auth/forgot-password/actions.ts +37 -0
- package/template/extras/fmaddon-auth/app/auth/forgot-password/forgot-form.tsx +41 -0
- package/template/extras/fmaddon-auth/app/auth/forgot-password/page.tsx +21 -0
- package/template/extras/fmaddon-auth/app/auth/forgot-password/schema.ts +5 -0
- package/template/extras/fmaddon-auth/app/auth/login/actions.ts +34 -0
- package/template/extras/fmaddon-auth/app/auth/login/login-form.tsx +64 -0
- package/template/extras/fmaddon-auth/app/auth/login/page.tsx +26 -0
- package/template/extras/fmaddon-auth/app/auth/login/schema.ts +6 -0
- package/template/extras/fmaddon-auth/app/auth/reset-password/actions.ts +50 -0
- package/template/extras/fmaddon-auth/app/auth/reset-password/page.tsx +32 -0
- package/template/extras/fmaddon-auth/app/auth/reset-password/reset-password-form.tsx +59 -0
- package/template/extras/fmaddon-auth/app/auth/reset-password/schema.ts +14 -0
- package/template/extras/fmaddon-auth/app/auth/reset-password/verify-email/actions.ts +45 -0
- package/template/extras/fmaddon-auth/app/auth/reset-password/verify-email/page.tsx +32 -0
- package/template/extras/fmaddon-auth/app/auth/reset-password/verify-email/schema.ts +5 -0
- package/template/extras/fmaddon-auth/app/auth/reset-password/verify-email/verify-email-form.tsx +48 -0
- package/template/extras/fmaddon-auth/app/auth/signup/actions.ts +49 -0
- package/template/extras/fmaddon-auth/app/auth/signup/page.tsx +26 -0
- package/template/extras/fmaddon-auth/app/auth/signup/schema.ts +12 -0
- package/template/extras/fmaddon-auth/app/auth/signup/signup-form.tsx +67 -0
- package/template/extras/fmaddon-auth/app/auth/verify-email/actions.ts +110 -0
- package/template/extras/fmaddon-auth/app/auth/verify-email/email-verification-form.tsx +45 -0
- package/template/extras/fmaddon-auth/app/auth/verify-email/page.tsx +38 -0
- package/template/extras/fmaddon-auth/app/auth/verify-email/resend-button.tsx +35 -0
- package/template/extras/fmaddon-auth/app/auth/verify-email/schema.ts +5 -0
- package/template/extras/fmaddon-auth/components/auth/actions.ts +16 -0
- package/template/extras/fmaddon-auth/components/auth/protect.tsx +17 -0
- package/template/extras/fmaddon-auth/components/auth/redirect.tsx +26 -0
- package/template/extras/fmaddon-auth/components/auth/use-user.ts +59 -0
- package/template/extras/fmaddon-auth/components/auth/user-menu.tsx +51 -0
- package/template/extras/fmaddon-auth/emails/auth-code.tsx +156 -0
- package/template/extras/fmaddon-auth/middleware.ts +45 -0
- package/template/extras/fmaddon-auth/server/auth/utils/email-verification.ts +136 -0
- package/template/extras/fmaddon-auth/server/auth/utils/encryption.ts +51 -0
- package/template/extras/fmaddon-auth/server/auth/utils/index.ts +16 -0
- package/template/extras/fmaddon-auth/server/auth/utils/password-reset.ts +152 -0
- package/template/extras/fmaddon-auth/server/auth/utils/password.ts +67 -0
- package/template/extras/fmaddon-auth/server/auth/utils/redirect.ts +8 -0
- package/template/extras/fmaddon-auth/server/auth/utils/session.ts +192 -0
- package/template/extras/fmaddon-auth/server/auth/utils/user.ts +147 -0
- package/template/extras/prisma/schema/base-planetscale.prisma +24 -0
- package/template/extras/prisma/schema/base.prisma +20 -0
- package/template/extras/prisma/schema/with-auth-planetscale.prisma +77 -0
- package/template/extras/prisma/schema/with-auth.prisma +74 -0
- package/template/extras/src/app/_components/post-tw.tsx +50 -0
- package/template/extras/src/app/_components/post.tsx +54 -0
- package/template/extras/src/app/api/auth/[...nextauth]/route.ts +4 -0
- package/template/extras/src/app/api/trpc/[trpc]/route.ts +34 -0
- package/template/extras/src/app/clerk-auth/layout.tsx +10 -0
- package/template/extras/src/app/clerk-auth/signin/[[...sign-in]]/page.tsx +5 -0
- package/template/extras/src/app/clerk-auth/signup/[[...sign-up]]/page.tsx +5 -0
- package/template/extras/src/app/layout/base.tsx +34 -0
- package/template/extras/src/app/layout/main-shell.tsx +37 -0
- package/template/extras/src/app/layout/with-trpc-tw.tsx +24 -0
- package/template/extras/src/app/layout/with-trpc.tsx +24 -0
- package/template/extras/src/app/layout/with-tw.tsx +20 -0
- package/template/extras/src/app/next-auth/layout.tsx +22 -0
- package/template/extras/src/app/next-auth/signin/page.tsx +82 -0
- package/template/extras/src/app/next-auth/signup/action.ts +24 -0
- package/template/extras/src/app/next-auth/signup/page.tsx +40 -0
- package/template/extras/src/app/next-auth/signup/validation.ts +12 -0
- package/template/extras/src/app/page/base.tsx +6 -0
- package/template/extras/src/app/page/with-auth-trpc-tw.tsx +67 -0
- package/template/extras/src/app/page/with-auth-trpc.tsx +68 -0
- package/template/extras/src/app/page/with-trpc-tw.tsx +53 -0
- package/template/extras/src/app/page/with-trpc.tsx +54 -0
- package/template/extras/src/app/page/with-tw.tsx +37 -0
- package/template/extras/src/components/clerk-auth/clerk-provider.tsx +18 -0
- package/template/extras/src/components/clerk-auth/user-menu-mobile.tsx +36 -0
- package/template/extras/src/components/clerk-auth/user-menu.tsx +24 -0
- package/template/extras/src/components/next-auth/next-auth-provider.tsx +14 -0
- package/template/extras/src/components/next-auth/user-menu-mobile.tsx +31 -0
- package/template/extras/src/components/next-auth/user-menu.tsx +38 -0
- package/template/extras/src/env/with-auth.ts +31 -0
- package/template/extras/src/env/with-clerk.ts +20 -0
- package/template/extras/src/index.module.css +177 -0
- package/template/extras/src/middleware/clerk.ts +20 -0
- package/template/extras/src/middleware/next-auth.ts +5 -0
- package/template/extras/src/pages/_app/base.tsx +14 -0
- package/template/extras/src/pages/_app/with-auth-trpc-tw.tsx +23 -0
- package/template/extras/src/pages/_app/with-auth-trpc.tsx +23 -0
- package/template/extras/src/pages/_app/with-auth-tw.tsx +21 -0
- package/template/extras/src/pages/_app/with-auth.tsx +21 -0
- package/template/extras/src/pages/_app/with-trpc-tw.tsx +16 -0
- package/template/extras/src/pages/_app/with-trpc.tsx +16 -0
- package/template/extras/src/pages/_app/with-tw.tsx +14 -0
- package/template/extras/src/pages/api/auth/[...nextauth].ts +5 -0
- package/template/extras/src/pages/api/trpc/[trpc].ts +19 -0
- package/template/extras/src/pages/index/base.tsx +47 -0
- package/template/extras/src/pages/index/with-auth-trpc-tw.tsx +80 -0
- package/template/extras/src/pages/index/with-auth-trpc.tsx +81 -0
- package/template/extras/src/pages/index/with-trpc-tw.tsx +52 -0
- package/template/extras/src/pages/index/with-trpc.tsx +53 -0
- package/template/extras/src/pages/index/with-tw.tsx +45 -0
- package/template/extras/src/server/api/root.ts +23 -0
- package/template/extras/src/server/api/routers/post/base.ts +40 -0
- package/template/extras/src/server/api/routers/post/with-auth-drizzle.ts +39 -0
- package/template/extras/src/server/api/routers/post/with-auth-prisma.ts +41 -0
- package/template/extras/src/server/api/routers/post/with-auth.ts +37 -0
- package/template/extras/src/server/api/routers/post/with-drizzle.ts +30 -0
- package/template/extras/src/server/api/routers/post/with-prisma.ts +31 -0
- package/template/extras/src/server/api/trpc-app/base.ts +103 -0
- package/template/extras/src/server/api/trpc-app/with-auth-db.ts +133 -0
- package/template/extras/src/server/api/trpc-app/with-auth.ts +130 -0
- package/template/extras/src/server/api/trpc-app/with-db.ts +106 -0
- package/template/extras/src/server/api/trpc-pages/base.ts +122 -0
- package/template/extras/src/server/api/trpc-pages/with-auth-db.ts +160 -0
- package/template/extras/src/server/api/trpc-pages/with-auth.ts +158 -0
- package/template/extras/src/server/api/trpc-pages/with-db.ts +125 -0
- package/template/extras/src/server/data/users.ts +23 -0
- package/template/extras/src/server/db/db-prisma-planetscale.ts +22 -0
- package/template/extras/src/server/db/db-prisma.ts +17 -0
- package/template/extras/src/server/db/index-drizzle/with-mysql.ts +18 -0
- package/template/extras/src/server/db/index-drizzle/with-planetscale.ts +7 -0
- package/template/extras/src/server/db/index-drizzle/with-postgres.ts +18 -0
- package/template/extras/src/server/db/index-drizzle/with-sqlite.ts +19 -0
- package/template/extras/src/server/db/schema-drizzle/base-mysql.ts +34 -0
- package/template/extras/src/server/db/schema-drizzle/base-planetscale.ts +34 -0
- package/template/extras/src/server/db/schema-drizzle/base-postgres.ts +36 -0
- package/template/extras/src/server/db/schema-drizzle/base-sqlite.ts +30 -0
- package/template/extras/src/server/db/schema-drizzle/with-auth-mysql.ts +123 -0
- package/template/extras/src/server/db/schema-drizzle/with-auth-planetscale.ts +117 -0
- package/template/extras/src/server/db/schema-drizzle/with-auth-postgres.ts +130 -0
- package/template/extras/src/server/db/schema-drizzle/with-auth-sqlite.ts +116 -0
- package/template/extras/src/server/next-auth/base.ts +111 -0
- package/template/extras/src/server/next-auth/password.ts +13 -0
- package/template/extras/src/server/next-auth/with-drizzle.ts +83 -0
- package/template/extras/src/server/next-auth/with-prisma.ts +72 -0
- package/template/extras/src/trpc/query-client.ts +25 -0
- package/template/extras/src/trpc/react.tsx +76 -0
- package/template/extras/src/trpc/server.ts +30 -0
- package/template/extras/src/utils/api.ts +68 -0
- package/template/extras/start-database/mysql.sh +54 -0
- package/template/extras/start-database/postgres.sh +55 -0
- package/template/fm-addon/ProofKitAuth/de.xml +518 -0
- package/template/fm-addon/ProofKitAuth/en.xml +518 -0
- package/template/fm-addon/ProofKitAuth/es.xml +518 -0
- package/template/fm-addon/ProofKitAuth/fr.xml +518 -0
- package/template/fm-addon/ProofKitAuth/icon.png +0 -0
- package/template/fm-addon/ProofKitAuth/icon@2x.png +0 -0
- package/template/fm-addon/ProofKitAuth/info.json +11 -0
- package/template/fm-addon/ProofKitAuth/info_de.json +18 -0
- package/template/fm-addon/ProofKitAuth/info_en.json +8 -0
- package/template/fm-addon/ProofKitAuth/info_es.json +18 -0
- package/template/fm-addon/ProofKitAuth/info_fr.json +18 -0
- package/template/fm-addon/ProofKitAuth/info_it.json +18 -0
- package/template/fm-addon/ProofKitAuth/info_ja.json +18 -0
- package/template/fm-addon/ProofKitAuth/info_ko.json +18 -0
- package/template/fm-addon/ProofKitAuth/info_nl.json +18 -0
- package/template/fm-addon/ProofKitAuth/info_pt.json +18 -0
- package/template/fm-addon/ProofKitAuth/info_sv.json +18 -0
- package/template/fm-addon/ProofKitAuth/info_zh.json +18 -0
- package/template/fm-addon/ProofKitAuth/it.xml +518 -0
- package/template/fm-addon/ProofKitAuth/ja.xml +518 -0
- package/template/fm-addon/ProofKitAuth/ko.xml +518 -0
- package/template/fm-addon/ProofKitAuth/nl.xml +518 -0
- package/template/fm-addon/ProofKitAuth/preview.png +0 -0
- package/template/fm-addon/ProofKitAuth/pt.xml +518 -0
- package/template/fm-addon/ProofKitAuth/sv.xml +518 -0
- package/template/fm-addon/ProofKitAuth/template.xml +0 -0
- package/template/fm-addon/ProofKitAuth/zh.xml +518 -0
- package/template/fm-addon/ProofKitWV/de.xml +896 -0
- package/template/fm-addon/ProofKitWV/en.xml +896 -0
- package/template/fm-addon/ProofKitWV/es.xml +896 -0
- package/template/fm-addon/ProofKitWV/fr.xml +896 -0
- package/template/fm-addon/ProofKitWV/icon.png +0 -0
- package/template/fm-addon/ProofKitWV/icon@2x.png +0 -0
- package/template/fm-addon/ProofKitWV/info.json +11 -0
- package/template/fm-addon/ProofKitWV/info_de.json +18 -0
- package/template/fm-addon/ProofKitWV/info_en.json +11 -0
- package/template/fm-addon/ProofKitWV/info_es.json +18 -0
- package/template/fm-addon/ProofKitWV/info_fr.json +18 -0
- package/template/fm-addon/ProofKitWV/info_it.json +18 -0
- package/template/fm-addon/ProofKitWV/info_ja.json +18 -0
- package/template/fm-addon/ProofKitWV/info_ko.json +18 -0
- package/template/fm-addon/ProofKitWV/info_nl.json +18 -0
- package/template/fm-addon/ProofKitWV/info_pt.json +18 -0
- package/template/fm-addon/ProofKitWV/info_sv.json +18 -0
- package/template/fm-addon/ProofKitWV/info_zh.json +18 -0
- package/template/fm-addon/ProofKitWV/it.xml +896 -0
- package/template/fm-addon/ProofKitWV/ja.xml +896 -0
- package/template/fm-addon/ProofKitWV/ko.xml +896 -0
- package/template/fm-addon/ProofKitWV/nl.xml +896 -0
- package/template/fm-addon/ProofKitWV/preview.png +0 -0
- package/template/fm-addon/ProofKitWV/pt.xml +896 -0
- package/template/fm-addon/ProofKitWV/records_de.xml +0 -0
- package/template/fm-addon/ProofKitWV/records_en.xml +0 -0
- package/template/fm-addon/ProofKitWV/records_es.xml +0 -0
- package/template/fm-addon/ProofKitWV/records_fr.xml +0 -0
- package/template/fm-addon/ProofKitWV/records_it.xml +0 -0
- package/template/fm-addon/ProofKitWV/records_ja.xml +0 -0
- package/template/fm-addon/ProofKitWV/records_ko.xml +0 -0
- package/template/fm-addon/ProofKitWV/records_nl.xml +0 -0
- package/template/fm-addon/ProofKitWV/records_pt.xml +0 -0
- package/template/fm-addon/ProofKitWV/records_sv.xml +0 -0
- package/template/fm-addon/ProofKitWV/records_zh.xml +0 -0
- package/template/fm-addon/ProofKitWV/sv.xml +896 -0
- package/template/fm-addon/ProofKitWV/template.xml +0 -0
- package/template/fm-addon/ProofKitWV/zh.xml +896 -0
- package/template/nextjs/README.md +27 -0
- package/template/nextjs/_gitignore +37 -0
- package/template/nextjs/next.config.ts +12 -0
- package/template/nextjs/package.json +50 -0
- package/template/nextjs/postcss.config.cjs +14 -0
- package/template/nextjs/proofkit.json +1 -0
- package/template/nextjs/public/favicon.ico +0 -0
- package/template/nextjs/public/proofkit.png +0 -0
- package/template/nextjs/src/app/(main)/layout.tsx +6 -0
- package/template/nextjs/src/app/(main)/page.tsx +90 -0
- package/template/nextjs/src/app/layout.tsx +39 -0
- package/template/nextjs/src/app/navigation.tsx +12 -0
- package/template/nextjs/src/components/AppLogo.tsx +6 -0
- package/template/nextjs/src/components/AppShell/internal/AppShell.tsx +21 -0
- package/template/nextjs/src/components/AppShell/internal/Header.module.css +40 -0
- package/template/nextjs/src/components/AppShell/internal/Header.tsx +34 -0
- package/template/nextjs/src/components/AppShell/internal/HeaderMobileMenu.tsx +27 -0
- package/template/nextjs/src/components/AppShell/internal/HeaderNavLink.tsx +31 -0
- package/template/nextjs/src/components/AppShell/internal/config.ts +1 -0
- package/template/nextjs/src/components/AppShell/slot-header-center.tsx +13 -0
- package/template/nextjs/src/components/AppShell/slot-header-left.tsx +23 -0
- package/template/nextjs/src/components/AppShell/slot-header-mobile-content.tsx +43 -0
- package/template/nextjs/src/components/AppShell/slot-header-right.tsx +26 -0
- package/template/nextjs/src/config/env.ts +13 -0
- package/template/nextjs/src/config/theme/globals.css +1 -0
- package/template/nextjs/src/config/theme/mantine-theme.ts +22 -0
- package/template/nextjs/src/server/safe-action.ts +3 -0
- package/template/nextjs/src/utils/notification-helpers.ts +32 -0
- package/template/nextjs/tsconfig.json +40 -0
- package/template/pages/nextjs/blank/page.tsx +5 -0
- package/template/pages/nextjs/table/page.tsx +17 -0
- package/template/pages/nextjs/table/table.tsx +18 -0
- package/template/pages/nextjs/table-edit/actions.ts +23 -0
- package/template/pages/nextjs/table-edit/page.tsx +28 -0
- package/template/pages/nextjs/table-edit/schema.ts +4 -0
- package/template/pages/nextjs/table-edit/table.tsx +43 -0
- package/template/pages/nextjs/table-infinite/actions.ts +62 -0
- package/template/pages/nextjs/table-infinite/page.tsx +11 -0
- package/template/pages/nextjs/table-infinite/query.ts +44 -0
- package/template/pages/nextjs/table-infinite/table.tsx +107 -0
- package/template/pages/nextjs/table-infinite-edit/actions.ts +84 -0
- package/template/pages/nextjs/table-infinite-edit/page.tsx +23 -0
- package/template/pages/nextjs/table-infinite-edit/query.ts +81 -0
- package/template/pages/nextjs/table-infinite-edit/schema.ts +4 -0
- package/template/pages/nextjs/table-infinite-edit/table.tsx +130 -0
- package/template/pages/vite-wv/blank/index.tsx +0 -0
- package/template/pages/vite-wv/table/index.tsx +34 -0
- package/template/pages/vite-wv/table-edit/index.tsx +72 -0
- package/template/vite-wv/.vscode/settings.json +11 -0
- package/template/vite-wv/_gitignore +18 -0
- package/template/vite-wv/index.html +13 -0
- package/template/vite-wv/package.json +52 -0
- package/template/vite-wv/pnpm-lock.yaml +2294 -0
- package/template/vite-wv/postcss.config.cjs +14 -0
- package/template/vite-wv/proofkit.json +1 -0
- package/template/vite-wv/scripts/launch-fm.sh +3 -0
- package/template/vite-wv/scripts/upload.js +21 -0
- package/template/vite-wv/src/components/AppLogo.tsx +5 -0
- package/template/vite-wv/src/components/full-screen-loader.tsx +9 -0
- package/template/vite-wv/src/config/env.ts +16 -0
- package/template/vite-wv/src/config/theme/globals.css +1 -0
- package/template/vite-wv/src/config/theme/mantine-theme.ts +22 -0
- package/template/vite-wv/src/main.tsx +42 -0
- package/template/vite-wv/src/routeTree.gen.ts +111 -0
- package/template/vite-wv/src/routes/__root.tsx +21 -0
- package/template/vite-wv/src/routes/index.tsx +63 -0
- package/template/vite-wv/src/routes/secondary.tsx +28 -0
- package/template/vite-wv/src/utils/notification-helpers.ts +32 -0
- package/template/vite-wv/tsconfig.json +14 -0
- package/template/vite-wv/vite.config.ts +18 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import"./chunk-4LISTI44.js";var zn=Object.create,bt=Object.defineProperty,er=Object.getOwnPropertyDescriptor,tr=Object.getOwnPropertyNames,nr=Object.getPrototypeOf,rr=Object.prototype.hasOwnProperty,Le=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),qt=(t,e)=>{for(var n in e)bt(t,n,{get:e[n],enumerable:!0})},ir=(t,e,n,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let g of tr(e))!rr.call(t,g)&&g!==n&&bt(t,g,{get:()=>e[g],enumerable:!(l=er(e,g))||l.enumerable});return t},Kt=(t,e,n)=>(n=t!=null?zn(nr(t)):{},ir(e||!t||!t.__esModule?bt(n,"default",{value:t,enumerable:!0}):n,t)),Ie=Le(t=>{"use strict";var e={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},n={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},l="tag:yaml.org,2002:",g={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function E(c){let i=[0],r=c.indexOf(`
|
|
2
|
+
`);for(;r!==-1;)r+=1,i.push(r),r=c.indexOf(`
|
|
3
|
+
`,r);return i}function S(c){let i,r;return typeof c=="string"?(i=E(c),r=c):(Array.isArray(c)&&(c=c[0]),c&&c.context&&(c.lineStarts||(c.lineStarts=E(c.context.src)),i=c.lineStarts,r=c.context.src)),{lineStarts:i,src:r}}function L(c,i){if(typeof c!="number"||c<0)return null;let{lineStarts:r,src:s}=S(i);if(!r||!s||c>s.length)return null;for(let p=0;p<r.length;++p){let u=r[p];if(c<u)return{line:p,col:c-r[p-1]+1};if(c===u)return{line:p+1,col:1}}let o=r.length;return{line:o,col:c-r[o-1]+1}}function M(c,i){let{lineStarts:r,src:s}=S(i);if(!r||!(c>=1)||c>r.length)return null;let o=r[c-1],p=r[c];for(;p&&p>o&&s[p-1]===`
|
|
4
|
+
`;)--p;return s.slice(o,p)}function I({start:c,end:i},r,s=80){let o=M(c.line,r);if(!o)return null;let{col:p}=c;if(o.length>s)if(p<=s-10)o=o.substr(0,s-1)+"\u2026";else{let k=Math.round(s/2);o.length>p+k&&(o=o.substr(0,p+k-1)+"\u2026"),p-=o.length-s,o="\u2026"+o.substr(1-s)}let u=1,h="";i&&(i.line===c.line&&p+(i.col-c.col)<=s+1?u=i.col-c.col:(u=Math.min(o.length+1,s)-p,h="\u2026"));let v=p>1?" ".repeat(p-1):"",O="^".repeat(u);return`${o}
|
|
5
|
+
${v}${O}${h}`}var P=class Ut{static copy(i){return new Ut(i.start,i.end)}constructor(i,r){this.start=i,this.end=r||i}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(i,r){let{start:s,end:o}=this;if(i.length===0||o<=i[0])return this.origStart=s,this.origEnd=o,r;let p=r;for(;p<i.length&&!(i[p]>s);)++p;this.origStart=s+p;let u=p;for(;p<i.length&&!(i[p]>=o);)++p;return this.origEnd=o+p,u}},Q=class Ne{static addStringTerminator(i,r,s){if(s[s.length-1]===`
|
|
6
|
+
`)return s;let o=Ne.endOfWhiteSpace(i,r);return o>=i.length||i[o]===`
|
|
7
|
+
`?s+`
|
|
8
|
+
`:s}static atDocumentBoundary(i,r,s){let o=i[r];if(!o)return!0;let p=i[r-1];if(p&&p!==`
|
|
9
|
+
`)return!1;if(s){if(o!==s)return!1}else if(o!==e.DIRECTIVES_END&&o!==e.DOCUMENT_END)return!1;let u=i[r+1],h=i[r+2];if(u!==o||h!==o)return!1;let v=i[r+3];return!v||v===`
|
|
10
|
+
`||v===" "||v===" "}static endOfIdentifier(i,r){let s=i[r],o=s==="<",p=o?[`
|
|
11
|
+
`," "," ",">"]:[`
|
|
12
|
+
`," "," ","[","]","{","}",","];for(;s&&p.indexOf(s)===-1;)s=i[r+=1];return o&&s===">"&&(r+=1),r}static endOfIndent(i,r){let s=i[r];for(;s===" ";)s=i[r+=1];return r}static endOfLine(i,r){let s=i[r];for(;s&&s!==`
|
|
13
|
+
`;)s=i[r+=1];return r}static endOfWhiteSpace(i,r){let s=i[r];for(;s===" "||s===" ";)s=i[r+=1];return r}static startOfLine(i,r){let s=i[r-1];if(s===`
|
|
14
|
+
`)return r;for(;s&&s!==`
|
|
15
|
+
`;)s=i[r-=1];return r+1}static endOfBlockIndent(i,r,s){let o=Ne.endOfIndent(i,s);if(o>s+r)return o;{let p=Ne.endOfWhiteSpace(i,o),u=i[p];if(!u||u===`
|
|
16
|
+
`)return p}return null}static atBlank(i,r,s){let o=i[r];return o===`
|
|
17
|
+
`||o===" "||o===" "||s&&!o}static nextNodeIsIndented(i,r,s){return!i||r<0?!1:r>0?!0:s&&i==="-"}static normalizeOffset(i,r){let s=i[r];return s?s!==`
|
|
18
|
+
`&&i[r-1]===`
|
|
19
|
+
`?r-1:Ne.endOfWhiteSpace(i,r):r}static foldNewline(i,r,s){let o=0,p=!1,u="",h=i[r+1];for(;h===" "||h===" "||h===`
|
|
20
|
+
`;){switch(h){case`
|
|
21
|
+
`:o=0,r+=1,u+=`
|
|
22
|
+
`;break;case" ":o<=s&&(p=!0),r=Ne.endOfWhiteSpace(i,r+2)-1;break;case" ":o+=1,r+=1;break}h=i[r+1]}return u||(u=" "),h&&o<=s&&(p=!0),{fold:u,offset:r,error:p}}constructor(i,r,s){Object.defineProperty(this,"context",{value:s||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=r||[],this.type=i,this.value=null}getPropValue(i,r,s){if(!this.context)return null;let{src:o}=this.context,p=this.props[i];return p&&o[p.start]===r?o.slice(p.start+(s?1:0),p.end):null}get anchor(){for(let i=0;i<this.props.length;++i){let r=this.getPropValue(i,e.ANCHOR,!0);if(r!=null)return r}return null}get comment(){let i=[];for(let r=0;r<this.props.length;++r){let s=this.getPropValue(r,e.COMMENT,!0);s!=null&&i.push(s)}return i.length>0?i.join(`
|
|
23
|
+
`):null}commentHasRequiredWhitespace(i){let{src:r}=this.context;if(this.header&&i===this.header.end||!this.valueRange)return!1;let{end:s}=this.valueRange;return i!==s||Ne.atBlank(r,s-1)}get hasComment(){if(this.context){let{src:i}=this.context;for(let r=0;r<this.props.length;++r)if(i[this.props[r].start]===e.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:i}=this.context;for(let r=0;r<this.props.length;++r)if(i[this.props[r].start]!==e.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return[n.FLOW_MAP,n.FLOW_SEQ,n.QUOTE_DOUBLE,n.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let i=L(this.range.start,this.context.root);if(!i)return;let r=L(this.range.end,this.context.root);return{start:i,end:r}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:i,end:r}=this.valueRange;return this.context.src.slice(i,r)}get tag(){for(let i=0;i<this.props.length;++i){let r=this.getPropValue(i,e.TAG,!1);if(r!=null){if(r[1]==="<")return{verbatim:r.slice(2,-1)};{let[s,o,p]=r.match(/^(.*!)([^!]*)$/);return{handle:o,suffix:p}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:i,end:r}=this.valueRange,{src:s}=this.context;for(let o=i;o<r;++o)if(s[o]===`
|
|
24
|
+
`)return!0;return!1}parseComment(i){let{src:r}=this.context;if(r[i]===e.COMMENT){let s=Ne.endOfLine(r,i+1),o=new P(i,s);return this.props.push(o),s}return i}setOrigRanges(i,r){return this.range&&(r=this.range.setOrigRange(i,r)),this.valueRange&&this.valueRange.setOrigRange(i,r),this.props.forEach(s=>s.setOrigRange(i,r)),r}toString(){let{context:{src:i},range:r,value:s}=this;if(s!=null)return s;let o=i.slice(r.start,r.end);return Ne.addStringTerminator(i,r.end,o)}},ne=class extends Error{constructor(c,i,r){if(!r||!(i instanceof Q))throw new Error(`Invalid arguments for new ${c}`);super(),this.name=c,this.message=r,this.source=i}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let c=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new P(this.offset,this.offset+1);let i=c&&L(this.offset,c);if(i){let r={line:i.line,col:i.col+1};this.linePos={start:i,end:r}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:i,col:r}=this.linePos.start;this.message+=` at line ${i}, column ${r}`;let s=c&&I(this.linePos,c);s&&(this.message+=`:
|
|
25
|
+
|
|
26
|
+
${s}
|
|
27
|
+
`)}delete this.source}},j=class extends ne{constructor(c,i){super("YAMLReferenceError",c,i)}},X=class extends ne{constructor(c,i){super("YAMLSemanticError",c,i)}},U=class extends ne{constructor(c,i){super("YAMLSyntaxError",c,i)}},G=class extends ne{constructor(c,i){super("YAMLWarning",c,i)}};function ae(c,i,r){return i in c?Object.defineProperty(c,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):c[i]=r,c}var T=class ut extends Q{static endOfLine(i,r,s){let o=i[r],p=r;for(;o&&o!==`
|
|
28
|
+
`&&!(s&&(o==="["||o==="]"||o==="{"||o==="}"||o===","));){let u=i[p+1];if(o===":"&&(!u||u===`
|
|
29
|
+
`||u===" "||u===" "||s&&u===",")||(o===" "||o===" ")&&u==="#")break;p+=1,o=u}return p}get strValue(){if(!this.valueRange||!this.context)return null;let{start:i,end:r}=this.valueRange,{src:s}=this.context,o=s[r-1];for(;i<r&&(o===`
|
|
30
|
+
`||o===" "||o===" ");)o=s[--r-1];let p="";for(let h=i;h<r;++h){let v=s[h];if(v===`
|
|
31
|
+
`){let{fold:O,offset:k}=Q.foldNewline(s,h,-1);p+=O,h=k}else if(v===" "||v===" "){let O=h,k=s[h+1];for(;h<r&&(k===" "||k===" ");)h+=1,k=s[h+1];k!==`
|
|
32
|
+
`&&(p+=h>O?s.slice(O,h+1):v)}else p+=v}let u=s[i];switch(u){case" ":{let h="Plain value cannot start with a tab character";return{errors:[new X(this,h)],str:p}}case"@":case"`":{let h=`Plain value cannot start with reserved character ${u}`;return{errors:[new X(this,h)],str:p}}default:return p}}parseBlockValue(i){let{indent:r,inFlow:s,src:o}=this.context,p=i,u=i;for(let h=o[p];h===`
|
|
33
|
+
`&&!Q.atDocumentBoundary(o,p+1);h=o[p]){let v=Q.endOfBlockIndent(o,r,p+1);if(v===null||o[v]==="#")break;o[v]===`
|
|
34
|
+
`?p=v:(u=ut.endOfLine(o,v,s),p=u)}return this.valueRange.isEmpty()&&(this.valueRange.start=i),this.valueRange.end=u,u}parse(i,r){this.context=i;let{inFlow:s,src:o}=i,p=r,u=o[p];return u&&u!=="#"&&u!==`
|
|
35
|
+
`&&(p=ut.endOfLine(o,r,s)),this.valueRange=new P(r,p),p=Q.endOfWhiteSpace(o,p),p=this.parseComment(p),(!this.hasComment||this.valueRange.isEmpty())&&(p=this.parseBlockValue(p)),p}};t.Char=e,t.Node=Q,t.PlainValue=T,t.Range=P,t.Type=n,t.YAMLError=ne,t.YAMLReferenceError=j,t.YAMLSemanticError=X,t.YAMLSyntaxError=U,t.YAMLWarning=G,t._defineProperty=ae,t.defaultTagPrefix=l,t.defaultTags=g}),sr=Le(t=>{"use strict";var e=Ie(),n=class extends e.Node{constructor(){super(e.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(T,c){return this.context=T,this.range=new e.Range(c,c+1),c+1}},l=class extends e.Node{constructor(T,c){super(T,c),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(T,c){this.context=T;let{parseNode:i,src:r}=T,{atLineStart:s,lineStart:o}=T;!s&&this.type===e.Type.SEQ_ITEM&&(this.error=new e.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let p=s?c-o:T.indent,u=e.Node.endOfWhiteSpace(r,c+1),h=r[u],v=h==="#",O=[],k=null;for(;h===`
|
|
36
|
+
`||h==="#";){if(h==="#"){let F=e.Node.endOfLine(r,u+1);O.push(new e.Range(u,F)),u=F}else{s=!0,o=u+1;let F=e.Node.endOfWhiteSpace(r,o);r[F]===`
|
|
37
|
+
`&&O.length===0&&(k=new n,o=k.parse({src:r},o)),u=e.Node.endOfIndent(r,o)}h=r[u]}if(e.Node.nextNodeIsIndented(h,u-(o+p),this.type!==e.Type.SEQ_ITEM)?this.node=i({atLineStart:s,inCollection:!1,indent:p,lineStart:o,parent:this},u):h&&o>c+1&&(u=o-1),this.node){if(k){let F=T.parent.items||T.parent.contents;F&&F.push(k)}O.length&&Array.prototype.push.apply(this.props,O),u=this.node.range.end}else if(v){let F=O[0];this.props.push(F),u=F.end}else u=e.Node.endOfLine(r,c+1);let _=this.node?this.node.valueRange.end:u;return this.valueRange=new e.Range(c,_),u}setOrigRanges(T,c){return c=super.setOrigRanges(T,c),this.node?this.node.setOrigRanges(T,c):c}toString(){let{context:{src:T},node:c,range:i,value:r}=this;if(r!=null)return r;let s=c?T.slice(i.start,c.range.start)+String(c):T.slice(i.start,i.end);return e.Node.addStringTerminator(T,i.end,s)}},g=class extends e.Node{constructor(){super(e.Type.COMMENT)}parse(T,c){this.context=T;let i=this.parseComment(c);return this.range=new e.Range(c,i),i}};function E(T){let c=T;for(;c instanceof l;)c=c.node;if(!(c instanceof S))return null;let i=c.items.length,r=-1;for(let p=i-1;p>=0;--p){let u=c.items[p];if(u.type===e.Type.COMMENT){let{indent:h,lineStart:v}=u.context;if(h>0&&u.range.start>=v+h)break;r=p}else if(u.type===e.Type.BLANK_LINE)r=p;else break}if(r===-1)return null;let s=c.items.splice(r,i-r),o=s[0].range.start;for(;c.range.end=o,c.valueRange&&c.valueRange.end>o&&(c.valueRange.end=o),c!==T;)c=c.context.parent;return s}var S=class ft extends e.Node{static nextContentHasIndent(c,i,r){let s=e.Node.endOfLine(c,i)+1;i=e.Node.endOfWhiteSpace(c,s);let o=c[i];return o?i>=s+r?!0:o!=="#"&&o!==`
|
|
38
|
+
`?!1:ft.nextContentHasIndent(c,i,r):!1}constructor(c){super(c.type===e.Type.SEQ_ITEM?e.Type.SEQ:e.Type.MAP);for(let r=c.props.length-1;r>=0;--r)if(c.props[r].start<c.context.lineStart){this.props=c.props.slice(0,r+1),c.props=c.props.slice(r+1);let s=c.props[0]||c.valueRange;c.range.start=s.start;break}this.items=[c];let i=E(c);i&&Array.prototype.push.apply(this.items,i)}get includesTrailingLines(){return this.items.length>0}parse(c,i){this.context=c;let{parseNode:r,src:s}=c,o=e.Node.startOfLine(s,i),p=this.items[0];p.context.parent=this,this.valueRange=e.Range.copy(p.valueRange);let u=p.range.start-p.context.lineStart,h=i;h=e.Node.normalizeOffset(s,h);let v=s[h],O=e.Node.endOfWhiteSpace(s,o)===h,k=!1;for(;v;){for(;v===`
|
|
39
|
+
`||v==="#";){if(O&&v===`
|
|
40
|
+
`&&!k){let Y=new n;if(h=Y.parse({src:s},h),this.valueRange.end=h,h>=s.length){v=null;break}this.items.push(Y),h-=1}else if(v==="#"){if(h<o+u&&!ft.nextContentHasIndent(s,h,u))return h;let Y=new g;if(h=Y.parse({indent:u,lineStart:o,src:s},h),this.items.push(Y),this.valueRange.end=h,h>=s.length){v=null;break}}if(o=h+1,h=e.Node.endOfIndent(s,o),e.Node.atBlank(s,h)){let Y=e.Node.endOfWhiteSpace(s,h),q=s[Y];(!q||q===`
|
|
41
|
+
`||q==="#")&&(h=Y)}v=s[h],O=!0}if(!v)break;if(h!==o+u&&(O||v!==":")){if(h<o+u){o>i&&(h=o);break}else if(!this.error){let Y="All collection items must start at the same column";this.error=new e.YAMLSyntaxError(this,Y)}}if(p.type===e.Type.SEQ_ITEM){if(v!=="-"){o>i&&(h=o);break}}else if(v==="-"&&!this.error){let Y=s[h+1];if(!Y||Y===`
|
|
42
|
+
`||Y===" "||Y===" "){let q="A collection cannot be both a mapping and a sequence";this.error=new e.YAMLSyntaxError(this,q)}}let _=r({atLineStart:O,inCollection:!0,indent:u,lineStart:o,parent:this},h);if(!_)return h;if(this.items.push(_),this.valueRange.end=_.valueRange.end,h=e.Node.normalizeOffset(s,_.range.end),v=s[h],O=!1,k=_.includesTrailingLines,v){let Y=h-1,q=s[Y];for(;q===" "||q===" ";)q=s[--Y];q===`
|
|
43
|
+
`&&(o=Y+1,O=!0)}let F=E(_);F&&Array.prototype.push.apply(this.items,F)}return h}setOrigRanges(c,i){return i=super.setOrigRanges(c,i),this.items.forEach(r=>{i=r.setOrigRanges(c,i)}),i}toString(){let{context:{src:c},items:i,range:r,value:s}=this;if(s!=null)return s;let o=c.slice(r.start,i[0].range.start)+String(i[0]);for(let p=1;p<i.length;++p){let u=i[p],{atLineStart:h,indent:v}=u.context;if(h)for(let O=0;O<v;++O)o+=" ";o+=String(u)}return e.Node.addStringTerminator(c,r.end,o)}},L=class extends e.Node{constructor(){super(e.Type.DIRECTIVE),this.name=null}get parameters(){let T=this.rawValue;return T?T.trim().split(/[ \t]+/):[]}parseName(T){let{src:c}=this.context,i=T,r=c[i];for(;r&&r!==`
|
|
44
|
+
`&&r!==" "&&r!==" ";)r=c[i+=1];return this.name=c.slice(T,i),i}parseParameters(T){let{src:c}=this.context,i=T,r=c[i];for(;r&&r!==`
|
|
45
|
+
`&&r!=="#";)r=c[i+=1];return this.valueRange=new e.Range(T,i),i}parse(T,c){this.context=T;let i=this.parseName(c+1);return i=this.parseParameters(i),i=this.parseComment(i),this.range=new e.Range(c,i),i}},M=class pt extends e.Node{static startCommentOrEndBlankLine(c,i){let r=e.Node.endOfWhiteSpace(c,i),s=c[r];return s==="#"||s===`
|
|
46
|
+
`?r:i}constructor(){super(e.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(c){let{src:i}=this.context;this.directives=[];let r=!0,s=!1,o=c;for(;!e.Node.atDocumentBoundary(i,o,e.Char.DIRECTIVES_END);)switch(o=pt.startCommentOrEndBlankLine(i,o),i[o]){case`
|
|
47
|
+
`:if(r){let p=new n;o=p.parse({src:i},o),o<i.length&&this.directives.push(p)}else o+=1,r=!0;break;case"#":{let p=new g;o=p.parse({src:i},o),this.directives.push(p),r=!1}break;case"%":{let p=new L;o=p.parse({parent:this,src:i},o),this.directives.push(p),s=!0,r=!1}break;default:return s?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o}return i[o]?(this.directivesEndMarker=new e.Range(o,o+3),o+3):(s?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o)}parseContents(c){let{parseNode:i,src:r}=this.context;this.contents||(this.contents=[]);let s=c;for(;r[s-1]==="-";)s-=1;let o=e.Node.endOfWhiteSpace(r,c),p=s===c;for(this.valueRange=new e.Range(o);!e.Node.atDocumentBoundary(r,o,e.Char.DOCUMENT_END);){switch(r[o]){case`
|
|
48
|
+
`:if(p){let u=new n;o=u.parse({src:r},o),o<r.length&&this.contents.push(u)}else o+=1,p=!0;s=o;break;case"#":{let u=new g;o=u.parse({src:r},o),this.contents.push(u),p=!1}break;default:{let u=e.Node.endOfIndent(r,o),h=i({atLineStart:p,indent:-1,inFlow:!1,inCollection:!1,lineStart:s,parent:this},u);if(!h)return this.valueRange.end=u;this.contents.push(h),o=h.range.end,p=!1;let v=E(h);v&&Array.prototype.push.apply(this.contents,v)}}o=pt.startCommentOrEndBlankLine(r,o)}if(this.valueRange.end=o,r[o]&&(this.documentEndMarker=new e.Range(o,o+3),o+=3,r[o])){if(o=e.Node.endOfWhiteSpace(r,o),r[o]==="#"){let u=new g;o=u.parse({src:r},o),this.contents.push(u)}switch(r[o]){case`
|
|
49
|
+
`:o+=1;break;case void 0:break;default:this.error=new e.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return o}parse(c,i){c.root=this,this.context=c;let{src:r}=c,s=r.charCodeAt(i)===65279?i+1:i;return s=this.parseDirectives(s),s=this.parseContents(s),s}setOrigRanges(c,i){return i=super.setOrigRanges(c,i),this.directives.forEach(r=>{i=r.setOrigRanges(c,i)}),this.directivesEndMarker&&(i=this.directivesEndMarker.setOrigRange(c,i)),this.contents.forEach(r=>{i=r.setOrigRanges(c,i)}),this.documentEndMarker&&(i=this.documentEndMarker.setOrigRange(c,i)),i}toString(){let{contents:c,directives:i,value:r}=this;if(r!=null)return r;let s=i.join("");return c.length>0&&((i.length>0||c[0].type===e.Type.COMMENT)&&(s+=`---
|
|
50
|
+
`),s+=c.join("")),s[s.length-1]!==`
|
|
51
|
+
`&&(s+=`
|
|
52
|
+
`),s}},I=class extends e.Node{parse(T,c){this.context=T;let{src:i}=T,r=e.Node.endOfIdentifier(i,c+1);return this.valueRange=new e.Range(c+1,r),r=e.Node.endOfWhiteSpace(i,r),r=this.parseComment(r),r}},P={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},Q=class extends e.Node{constructor(T,c){super(T,c),this.blockIndent=null,this.chomping=P.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===P.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:T,end:c}=this.valueRange,{indent:i,src:r}=this.context;if(this.valueRange.isEmpty())return"";let s=null,o=r[c-1];for(;o===`
|
|
53
|
+
`||o===" "||o===" ";){if(c-=1,c<=T){if(this.chomping===P.KEEP)break;return""}o===`
|
|
54
|
+
`&&(s=c),o=r[c-1]}let p=c+1;s&&(this.chomping===P.KEEP?(p=s,c=this.valueRange.end):c=s);let u=i+this.blockIndent,h=this.type===e.Type.BLOCK_FOLDED,v=!0,O="",k="",_=!1;for(let F=T;F<c;++F){for(let q=0;q<u&&r[F]===" ";++q)F+=1;let Y=r[F];if(Y===`
|
|
55
|
+
`)k===`
|
|
56
|
+
`?O+=`
|
|
57
|
+
`:k=`
|
|
58
|
+
`;else{let q=e.Node.endOfLine(r,F),oe=r.slice(F,q);F=q,h&&(Y===" "||Y===" ")&&F<p?(k===" "?k=`
|
|
59
|
+
`:!_&&!v&&k===`
|
|
60
|
+
`&&(k=`
|
|
61
|
+
|
|
62
|
+
`),O+=k+oe,k=q<c&&r[q]||"",_=!0):(O+=k+oe,k=h&&F<p?" ":`
|
|
63
|
+
`,_=!1),v&&oe!==""&&(v=!1)}}return this.chomping===P.STRIP?O:O+`
|
|
64
|
+
`}parseBlockHeader(T){let{src:c}=this.context,i=T+1,r="";for(;;){let s=c[i];switch(s){case"-":this.chomping=P.STRIP;break;case"+":this.chomping=P.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=s;break;default:return this.blockIndent=Number(r)||null,this.header=new e.Range(T,i),i}i+=1}}parseBlockValue(T){let{indent:c,src:i}=this.context,r=!!this.blockIndent,s=T,o=T,p=1;for(let u=i[s];u===`
|
|
65
|
+
`&&(s+=1,!e.Node.atDocumentBoundary(i,s));u=i[s]){let h=e.Node.endOfBlockIndent(i,c,s);if(h===null)break;let v=i[h],O=h-(s+c);if(this.blockIndent){if(v&&v!==`
|
|
66
|
+
`&&O<this.blockIndent){if(i[h]==="#")break;if(!this.error){let k=`Block scalars must not be less indented than their ${r?"explicit indentation indicator":"first line"}`;this.error=new e.YAMLSemanticError(this,k)}}}else if(i[h]!==`
|
|
67
|
+
`){if(O<p){let k="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new e.YAMLSemanticError(this,k)}this.blockIndent=O}else O>p&&(p=O);i[h]===`
|
|
68
|
+
`?s=h:s=o=e.Node.endOfLine(i,h)}return this.chomping!==P.KEEP&&(s=i[o]?o+1:o),this.valueRange=new e.Range(T+1,s),s}parse(T,c){this.context=T;let{src:i}=T,r=this.parseBlockHeader(c);return r=e.Node.endOfWhiteSpace(i,r),r=this.parseComment(r),r=this.parseBlockValue(r),r}setOrigRanges(T,c){return c=super.setOrigRanges(T,c),this.header?this.header.setOrigRange(T,c):c}},ne=class extends e.Node{constructor(T,c){super(T,c),this.items=null}prevNodeIsJsonLike(T=this.items.length){let c=this.items[T-1];return!!c&&(c.jsonLike||c.type===e.Type.COMMENT&&this.prevNodeIsJsonLike(T-1))}parse(T,c){this.context=T;let{parseNode:i,src:r}=T,{indent:s,lineStart:o}=T,p=r[c];this.items=[{char:p,offset:c}];let u=e.Node.endOfWhiteSpace(r,c+1);for(p=r[u];p&&p!=="]"&&p!=="}";){switch(p){case`
|
|
69
|
+
`:{o=u+1;let h=e.Node.endOfWhiteSpace(r,o);if(r[h]===`
|
|
70
|
+
`){let v=new n;o=v.parse({src:r},o),this.items.push(v)}if(u=e.Node.endOfIndent(r,o),u<=o+s&&(p=r[u],u<o+s||p!=="]"&&p!=="}")){let v="Insufficient indentation in flow collection";this.error=new e.YAMLSemanticError(this,v)}}break;case",":this.items.push({char:p,offset:u}),u+=1;break;case"#":{let h=new g;u=h.parse({src:r},u),this.items.push(h)}break;case"?":case":":{let h=r[u+1];if(h===`
|
|
71
|
+
`||h===" "||h===" "||h===","||p===":"&&this.prevNodeIsJsonLike()){this.items.push({char:p,offset:u}),u+=1;break}}default:{let h=i({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:o,parent:this},u);if(!h)return this.valueRange=new e.Range(c,u),u;this.items.push(h),u=e.Node.normalizeOffset(r,h.range.end)}}u=e.Node.endOfWhiteSpace(r,u),p=r[u]}return this.valueRange=new e.Range(c,u+1),p&&(this.items.push({char:p,offset:u}),u=e.Node.endOfWhiteSpace(r,u+1),u=this.parseComment(u)),u}setOrigRanges(T,c){return c=super.setOrigRanges(T,c),this.items.forEach(i=>{if(i instanceof e.Node)c=i.setOrigRanges(T,c);else if(T.length===0)i.origOffset=i.offset;else{let r=c;for(;r<T.length&&!(T[r]>i.offset);)++r;i.origOffset=i.offset+r,c=r}}),c}toString(){let{context:{src:T},items:c,range:i,value:r}=this;if(r!=null)return r;let s=c.filter(u=>u instanceof e.Node),o="",p=i.start;return s.forEach(u=>{let h=T.slice(p,u.range.start);p=u.range.end,o+=h+String(u),o[o.length-1]===`
|
|
72
|
+
`&&T[p-1]!==`
|
|
73
|
+
`&&T[p]===`
|
|
74
|
+
`&&(p+=1)}),o+=T.slice(p,i.end),e.Node.addStringTerminator(T,i.end,o)}},j=class Vt extends e.Node{static endOfQuote(c,i){let r=c[i];for(;r&&r!=='"';)i+=r==="\\"?2:1,r=c[i];return i+1}get strValue(){if(!this.valueRange||!this.context)return null;let c=[],{start:i,end:r}=this.valueRange,{indent:s,src:o}=this.context;o[r-1]!=='"'&&c.push(new e.YAMLSyntaxError(this,'Missing closing "quote'));let p="";for(let u=i+1;u<r-1;++u){let h=o[u];if(h===`
|
|
75
|
+
`){e.Node.atDocumentBoundary(o,u+1)&&c.push(new e.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:v,offset:O,error:k}=e.Node.foldNewline(o,u,s);p+=v,u=O,k&&c.push(new e.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if(h==="\\")switch(u+=1,o[u]){case"0":p+="\0";break;case"a":p+="\x07";break;case"b":p+="\b";break;case"e":p+="\x1B";break;case"f":p+="\f";break;case"n":p+=`
|
|
76
|
+
`;break;case"r":p+="\r";break;case"t":p+=" ";break;case"v":p+="\v";break;case"N":p+="\x85";break;case"_":p+="\xA0";break;case"L":p+="\u2028";break;case"P":p+="\u2029";break;case" ":p+=" ";break;case'"':p+='"';break;case"/":p+="/";break;case"\\":p+="\\";break;case" ":p+=" ";break;case"x":p+=this.parseCharCode(u+1,2,c),u+=2;break;case"u":p+=this.parseCharCode(u+1,4,c),u+=4;break;case"U":p+=this.parseCharCode(u+1,8,c),u+=8;break;case`
|
|
77
|
+
`:for(;o[u+1]===" "||o[u+1]===" ";)u+=1;break;default:c.push(new e.YAMLSyntaxError(this,`Invalid escape sequence ${o.substr(u-1,2)}`)),p+="\\"+o[u]}else if(h===" "||h===" "){let v=u,O=o[u+1];for(;O===" "||O===" ";)u+=1,O=o[u+1];O!==`
|
|
78
|
+
`&&(p+=u>v?o.slice(v,u+1):h)}else p+=h}return c.length>0?{errors:c,str:p}:p}parseCharCode(c,i,r){let{src:s}=this.context,o=s.substr(c,i),p=o.length===i&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(p)?(r.push(new e.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(c-2,i+2)}`)),s.substr(c-2,i+2)):String.fromCodePoint(p)}parse(c,i){this.context=c;let{src:r}=c,s=Vt.endOfQuote(r,i+1);return this.valueRange=new e.Range(i,s),s=e.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},X=class Qt extends e.Node{static endOfQuote(c,i){let r=c[i];for(;r;)if(r==="'"){if(c[i+1]!=="'")break;r=c[i+=2]}else r=c[i+=1];return i+1}get strValue(){if(!this.valueRange||!this.context)return null;let c=[],{start:i,end:r}=this.valueRange,{indent:s,src:o}=this.context;o[r-1]!=="'"&&c.push(new e.YAMLSyntaxError(this,"Missing closing 'quote"));let p="";for(let u=i+1;u<r-1;++u){let h=o[u];if(h===`
|
|
79
|
+
`){e.Node.atDocumentBoundary(o,u+1)&&c.push(new e.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:v,offset:O,error:k}=e.Node.foldNewline(o,u,s);p+=v,u=O,k&&c.push(new e.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(h==="'")p+=h,u+=1,o[u]!=="'"&&c.push(new e.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(h===" "||h===" "){let v=u,O=o[u+1];for(;O===" "||O===" ";)u+=1,O=o[u+1];O!==`
|
|
80
|
+
`&&(p+=u>v?o.slice(v,u+1):h)}else p+=h}return c.length>0?{errors:c,str:p}:p}parse(c,i){this.context=c;let{src:r}=c,s=Qt.endOfQuote(r,i+1);return this.valueRange=new e.Range(i,s),s=e.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}};function U(T,c){switch(T){case e.Type.ALIAS:return new I(T,c);case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return new Q(T,c);case e.Type.FLOW_MAP:case e.Type.FLOW_SEQ:return new ne(T,c);case e.Type.MAP_KEY:case e.Type.MAP_VALUE:case e.Type.SEQ_ITEM:return new l(T,c);case e.Type.COMMENT:case e.Type.PLAIN:return new e.PlainValue(T,c);case e.Type.QUOTE_DOUBLE:return new j(T,c);case e.Type.QUOTE_SINGLE:return new X(T,c);default:return null}}var G=class Ge{static parseType(c,i,r){switch(c[i]){case"*":return e.Type.ALIAS;case">":return e.Type.BLOCK_FOLDED;case"|":return e.Type.BLOCK_LITERAL;case"{":return e.Type.FLOW_MAP;case"[":return e.Type.FLOW_SEQ;case"?":return!r&&e.Node.atBlank(c,i+1,!0)?e.Type.MAP_KEY:e.Type.PLAIN;case":":return!r&&e.Node.atBlank(c,i+1,!0)?e.Type.MAP_VALUE:e.Type.PLAIN;case"-":return!r&&e.Node.atBlank(c,i+1,!0)?e.Type.SEQ_ITEM:e.Type.PLAIN;case'"':return e.Type.QUOTE_DOUBLE;case"'":return e.Type.QUOTE_SINGLE;default:return e.Type.PLAIN}}constructor(c={},{atLineStart:i,inCollection:r,inFlow:s,indent:o,lineStart:p,parent:u}={}){e._defineProperty(this,"parseNode",(h,v)=>{if(e.Node.atDocumentBoundary(this.src,v))return null;let O=new Ge(this,h),{props:k,type:_,valueStart:F}=O.parseProps(v),Y=U(_,k),q=Y.parse(O,F);if(Y.range=new e.Range(v,q),q<=v&&(Y.error=new Error("Node#parse consumed no characters"),Y.error.parseEnd=q,Y.error.source=Y,Y.range.end=v+1),O.nodeStartsCollection(Y)){!Y.error&&!O.atLineStart&&O.parent.type===e.Type.DOCUMENT&&(Y.error=new e.YAMLSyntaxError(Y,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let oe=new S(Y);return q=oe.parse(new Ge(O),q),oe.range=new e.Range(v,q),oe}return Y}),this.atLineStart=i??(c.atLineStart||!1),this.inCollection=r??(c.inCollection||!1),this.inFlow=s??(c.inFlow||!1),this.indent=o??c.indent,this.lineStart=p??c.lineStart,this.parent=u??(c.parent||{}),this.root=c.root,this.src=c.src}nodeStartsCollection(c){let{inCollection:i,inFlow:r,src:s}=this;if(i||r)return!1;if(c instanceof l)return!0;let o=c.range.end;return s[o]===`
|
|
81
|
+
`||s[o-1]===`
|
|
82
|
+
`?!1:(o=e.Node.endOfWhiteSpace(s,o),s[o]===":")}parseProps(c){let{inFlow:i,parent:r,src:s}=this,o=[],p=!1;c=this.atLineStart?e.Node.endOfIndent(s,c):e.Node.endOfWhiteSpace(s,c);let u=s[c];for(;u===e.Char.ANCHOR||u===e.Char.COMMENT||u===e.Char.TAG||u===`
|
|
83
|
+
`;){if(u===`
|
|
84
|
+
`){let v=c,O;do O=v+1,v=e.Node.endOfIndent(s,O);while(s[v]===`
|
|
85
|
+
`);let k=v-(O+this.indent),_=r.type===e.Type.SEQ_ITEM&&r.context.atLineStart;if(s[v]!=="#"&&!e.Node.nextNodeIsIndented(s[v],k,!_))break;this.atLineStart=!0,this.lineStart=O,p=!1,c=v}else if(u===e.Char.COMMENT){let v=e.Node.endOfLine(s,c+1);o.push(new e.Range(c,v)),c=v}else{let v=e.Node.endOfIdentifier(s,c+1);u===e.Char.TAG&&s[v]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(c+1,v+13))&&(v=e.Node.endOfIdentifier(s,v+5)),o.push(new e.Range(c,v)),p=!0,c=e.Node.endOfWhiteSpace(s,v)}u=s[c]}p&&u===":"&&e.Node.atBlank(s,c+1,!0)&&(c-=1);let h=Ge.parseType(s,c,i);return{props:o,type:h,valueStart:c}}};function ae(T){let c=[];T.indexOf("\r")!==-1&&(T=T.replace(/\r\n?/g,(s,o)=>(s.length>1&&c.push(o),`
|
|
86
|
+
`)));let i=[],r=0;do{let s=new M,o=new G({src:T});r=s.parse(o,r),i.push(s)}while(r<T.length);return i.setOrigRanges=()=>{if(c.length===0)return!1;for(let o=1;o<c.length;++o)c[o]-=o;let s=0;for(let o=0;o<i.length;++o)s=i[o].setOrigRanges(c,s);return c.splice(0,c.length),!0},i.toString=()=>i.join(`...
|
|
87
|
+
`),i}t.parse=ae}),Ue=Le(t=>{"use strict";var e=Ie();function n(f,a,d){return d?`#${d.replace(/[\s\S]^/gm,`$&${a}#`)}
|
|
88
|
+
${a}${f}`:f}function l(f,a,d){return d?d.indexOf(`
|
|
89
|
+
`)===-1?`${f} #${d}`:`${f}
|
|
90
|
+
`+d.replace(/^/gm,`${a||""}#`):f}var g=class{};function E(f,a,d){if(Array.isArray(f))return f.map((m,y)=>E(m,String(y),d));if(f&&typeof f.toJSON=="function"){let m=d&&d.anchors&&d.anchors.get(f);m&&(d.onCreate=b=>{m.res=b,delete d.onCreate});let y=f.toJSON(a,d);return m&&d.onCreate&&d.onCreate(y),y}return(!d||!d.keep)&&typeof f=="bigint"?Number(f):f}var S=class extends g{constructor(f){super(),this.value=f}toJSON(f,a){return a&&a.keep?this.value:E(this.value,f,a)}toString(){return String(this.value)}};function L(f,a,d){let m=d;for(let y=a.length-1;y>=0;--y){let b=a[y];if(Number.isInteger(b)&&b>=0){let N=[];N[b]=m,m=N}else{let N={};Object.defineProperty(N,b,{value:m,writable:!0,enumerable:!0,configurable:!0}),m=N}}return f.createNode(m,!1)}var M=f=>f==null||typeof f=="object"&&f[Symbol.iterator]().next().done,I=class ke extends g{constructor(a){super(),e._defineProperty(this,"items",[]),this.schema=a}addIn(a,d){if(M(a))this.add(d);else{let[m,...y]=a,b=this.get(m,!0);if(b instanceof ke)b.addIn(y,d);else if(b===void 0&&this.schema)this.set(m,L(this.schema,y,d));else throw new Error(`Expected YAML collection at ${m}. Remaining path: ${y}`)}}deleteIn([a,...d]){if(d.length===0)return this.delete(a);let m=this.get(a,!0);if(m instanceof ke)return m.deleteIn(d);throw new Error(`Expected YAML collection at ${a}. Remaining path: ${d}`)}getIn([a,...d],m){let y=this.get(a,!0);return d.length===0?!m&&y instanceof S?y.value:y:y instanceof ke?y.getIn(d,m):void 0}hasAllNullValues(){return this.items.every(a=>{if(!a||a.type!=="PAIR")return!1;let d=a.value;return d==null||d instanceof S&&d.value==null&&!d.commentBefore&&!d.comment&&!d.tag})}hasIn([a,...d]){if(d.length===0)return this.has(a);let m=this.get(a,!0);return m instanceof ke?m.hasIn(d):!1}setIn([a,...d],m){if(d.length===0)this.set(a,m);else{let y=this.get(a,!0);if(y instanceof ke)y.setIn(d,m);else if(y===void 0&&this.schema)this.set(a,L(this.schema,d,m));else throw new Error(`Expected YAML collection at ${a}. Remaining path: ${d}`)}}toJSON(){return null}toString(a,{blockItem:d,flowChars:m,isMap:y,itemIndent:b},N,A){let{indent:x,indentStep:C,stringify:R}=a,W=this.type===e.Type.FLOW_MAP||this.type===e.Type.FLOW_SEQ||a.inFlow;W&&(b+=C);let re=y&&this.hasAllNullValues();a=Object.assign({},a,{allNullValues:re,indent:b,inFlow:W,type:null});let V=!1,ie=!1,J=this.items.reduce((ce,Z,se)=>{let ee;Z&&(!V&&Z.spaceBefore&&ce.push({type:"comment",str:""}),Z.commentBefore&&Z.commentBefore.match(/^.*$/gm).forEach(Zn=>{ce.push({type:"comment",str:`#${Zn}`})}),Z.comment&&(ee=Z.comment),W&&(!V&&Z.spaceBefore||Z.commentBefore||Z.comment||Z.key&&(Z.key.commentBefore||Z.key.comment)||Z.value&&(Z.value.commentBefore||Z.value.comment))&&(ie=!0)),V=!1;let ue=R(Z,a,()=>ee=null,()=>V=!0);return W&&!ie&&ue.includes(`
|
|
91
|
+
`)&&(ie=!0),W&&se<this.items.length-1&&(ue+=","),ue=l(ue,b,ee),V&&(ee||W)&&(V=!1),ce.push({type:"item",str:ue}),ce},[]),te;if(J.length===0)te=m.start+m.end;else if(W){let{start:ce,end:Z}=m,se=J.map(ee=>ee.str);if(ie||se.reduce((ee,ue)=>ee+ue.length+2,2)>ke.maxFlowStringSingleLineLength){te=ce;for(let ee of se)te+=ee?`
|
|
92
|
+
${C}${x}${ee}`:`
|
|
93
|
+
`;te+=`
|
|
94
|
+
${x}${Z}`}else te=`${ce} ${se.join(" ")} ${Z}`}else{let ce=J.map(d);te=ce.shift();for(let Z of ce)te+=Z?`
|
|
95
|
+
${x}${Z}`:`
|
|
96
|
+
`}return this.comment?(te+=`
|
|
97
|
+
`+this.comment.replace(/^/gm,`${x}#`),N&&N()):V&&A&&A(),te}};e._defineProperty(I,"maxFlowStringSingleLineLength",60);function P(f){let a=f instanceof S?f.value:f;return a&&typeof a=="string"&&(a=Number(a)),Number.isInteger(a)&&a>=0?a:null}var Q=class extends I{add(f){this.items.push(f)}delete(f){let a=P(f);return typeof a!="number"?!1:this.items.splice(a,1).length>0}get(f,a){let d=P(f);if(typeof d!="number")return;let m=this.items[d];return!a&&m instanceof S?m.value:m}has(f){let a=P(f);return typeof a=="number"&&a<this.items.length}set(f,a){let d=P(f);if(typeof d!="number")throw new Error(`Expected a valid index, not ${f}.`);this.items[d]=a}toJSON(f,a){let d=[];a&&a.onCreate&&a.onCreate(d);let m=0;for(let y of this.items)d.push(E(y,String(m++),a));return d}toString(f,a,d){return f?super.toString(f,{blockItem:m=>m.type==="comment"?m.str:`- ${m.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(f.indent||"")+" "},a,d):JSON.stringify(this)}},ne=(f,a,d)=>a===null?"":typeof a!="object"?String(a):f instanceof g&&d&&d.doc?f.toString({anchors:Object.create(null),doc:d.doc,indent:"",indentStep:d.indentStep,inFlow:!0,inStringifyKey:!0,stringify:d.stringify}):JSON.stringify(a),j=class Jt extends g{constructor(a,d=null){super(),this.key=a,this.value=d,this.type=Jt.Type.PAIR}get commentBefore(){return this.key instanceof g?this.key.commentBefore:void 0}set commentBefore(a){if(this.key==null&&(this.key=new S(null)),this.key instanceof g)this.key.commentBefore=a;else{let d="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(d)}}addToJSMap(a,d){let m=E(this.key,"",a);if(d instanceof Map){let y=E(this.value,m,a);d.set(m,y)}else if(d instanceof Set)d.add(m);else{let y=ne(this.key,m,a),b=E(this.value,y,a);y in d?Object.defineProperty(d,y,{value:b,writable:!0,enumerable:!0,configurable:!0}):d[y]=b}return d}toJSON(a,d){let m=d&&d.mapAsMap?new Map:{};return this.addToJSMap(d,m)}toString(a,d,m){if(!a||!a.doc)return JSON.stringify(this);let{indent:y,indentSeq:b,simpleKeys:N}=a.doc.options,{key:A,value:x}=this,C=A instanceof g&&A.comment;if(N){if(C)throw new Error("With simple keys, key nodes cannot have comments");if(A instanceof I){let ue="With simple keys, collection cannot be used as a key value";throw new Error(ue)}}let R=!N&&(!A||C||(A instanceof g?A instanceof I||A.type===e.Type.BLOCK_FOLDED||A.type===e.Type.BLOCK_LITERAL:typeof A=="object")),{doc:W,indent:re,indentStep:V,stringify:ie}=a;a=Object.assign({},a,{implicitKey:!R,indent:re+V});let J=!1,te=ie(A,a,()=>C=null,()=>J=!0);if(te=l(te,a.indent,C),!R&&te.length>1024){if(N)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");R=!0}if(a.allNullValues&&!N)return this.comment?(te=l(te,a.indent,this.comment),d&&d()):J&&!C&&m&&m(),a.inFlow&&!R?te:`? ${te}`;te=R?`? ${te}
|
|
98
|
+
${re}:`:`${te}:`,this.comment&&(te=l(te,a.indent,this.comment),d&&d());let ce="",Z=null;if(x instanceof g){if(x.spaceBefore&&(ce=`
|
|
99
|
+
`),x.commentBefore){let ue=x.commentBefore.replace(/^/gm,`${a.indent}#`);ce+=`
|
|
100
|
+
${ue}`}Z=x.comment}else x&&typeof x=="object"&&(x=W.schema.createNode(x,!0));a.implicitKey=!1,!R&&!this.comment&&x instanceof S&&(a.indentAtStart=te.length+1),J=!1,!b&&y>=2&&!a.inFlow&&!R&&x instanceof Q&&x.type!==e.Type.FLOW_SEQ&&!x.tag&&!W.anchors.getName(x)&&(a.indent=a.indent.substr(2));let se=ie(x,a,()=>Z=null,()=>J=!0),ee=" ";return ce||this.comment?ee=`${ce}
|
|
101
|
+
${a.indent}`:!R&&x instanceof I?(!(se[0]==="["||se[0]==="{")||se.includes(`
|
|
102
|
+
`))&&(ee=`
|
|
103
|
+
${a.indent}`):se[0]===`
|
|
104
|
+
`&&(ee=""),J&&!Z&&m&&m(),l(te+ee+se,a.indent,Z)}};e._defineProperty(j,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var X=(f,a)=>{if(f instanceof U){let d=a.get(f.source);return d.count*d.aliasCount}else if(f instanceof I){let d=0;for(let m of f.items){let y=X(m,a);y>d&&(d=y)}return d}else if(f instanceof j){let d=X(f.key,a),m=X(f.value,a);return Math.max(d,m)}return 1},U=class Ht extends g{static stringify({range:a,source:d},{anchors:m,doc:y,implicitKey:b,inStringifyKey:N}){let A=Object.keys(m).find(C=>m[C]===d);if(!A&&N&&(A=y.anchors.getName(d)||y.anchors.newName()),A)return`*${A}${b?" ":""}`;let x=y.anchors.getName(d)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${x} [${a}]`)}constructor(a){super(),this.source=a,this.type=e.Type.ALIAS}set tag(a){throw new Error("Alias nodes cannot have tags")}toJSON(a,d){if(!d)return E(this.source,a,d);let{anchors:m,maxAliasCount:y}=d,b=m.get(this.source);if(!b||b.res===void 0){let N="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,N):new ReferenceError(N)}if(y>=0&&(b.count+=1,b.aliasCount===0&&(b.aliasCount=X(this.source,m)),b.count*b.aliasCount>y)){let N="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,N):new ReferenceError(N)}return b.res}toString(a){return Ht.stringify(this,a)}};e._defineProperty(U,"default",!0);function G(f,a){let d=a instanceof S?a.value:a;for(let m of f)if(m instanceof j&&(m.key===a||m.key===d||m.key&&m.key.value===d))return m}var ae=class extends I{add(f,a){f?f instanceof j||(f=new j(f.key||f,f.value)):f=new j(f);let d=G(this.items,f.key),m=this.schema&&this.schema.sortMapEntries;if(d)if(a)d.value=f.value;else throw new Error(`Key ${f.key} already set`);else if(m){let y=this.items.findIndex(b=>m(f,b)<0);y===-1?this.items.push(f):this.items.splice(y,0,f)}else this.items.push(f)}delete(f){let a=G(this.items,f);return a?this.items.splice(this.items.indexOf(a),1).length>0:!1}get(f,a){let d=G(this.items,f),m=d&&d.value;return!a&&m instanceof S?m.value:m}has(f){return!!G(this.items,f)}set(f,a){this.add(new j(f,a),!0)}toJSON(f,a,d){let m=d?new d:a&&a.mapAsMap?new Map:{};a&&a.onCreate&&a.onCreate(m);for(let y of this.items)y.addToJSMap(a,m);return m}toString(f,a,d){if(!f)return JSON.stringify(this);for(let m of this.items)if(!(m instanceof j))throw new Error(`Map items must all be pairs; found ${JSON.stringify(m)} instead`);return super.toString(f,{blockItem:m=>m.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:f.indent||""},a,d)}},T="<<",c=class extends j{constructor(f){if(f instanceof j){let a=f.value;a instanceof Q||(a=new Q,a.items.push(f.value),a.range=f.value.range),super(f.key,a),this.range=f.range}else super(new S(T),new Q);this.type=j.Type.MERGE_PAIR}addToJSMap(f,a){for(let{source:d}of this.value.items){if(!(d instanceof ae))throw new Error("Merge sources must be maps");let m=d.toJSON(null,f,Map);for(let[y,b]of m)a instanceof Map?a.has(y)||a.set(y,b):a instanceof Set?a.add(y):Object.prototype.hasOwnProperty.call(a,y)||Object.defineProperty(a,y,{value:b,writable:!0,enumerable:!0,configurable:!0})}return a}toString(f,a){let d=this.value;if(d.items.length>1)return super.toString(f,a);this.value=d.items[0];let m=super.toString(f,a);return this.value=d,m}},i={defaultType:e.Type.BLOCK_LITERAL,lineWidth:76},r={trueStr:"true",falseStr:"false"},s={asBigInt:!1},o={nullStr:"null"},p={defaultType:e.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function u(f,a,d){for(let{format:m,test:y,resolve:b}of a)if(y){let N=f.match(y);if(N){let A=b.apply(null,N);return A instanceof S||(A=new S(A)),m&&(A.format=m),A}}return d&&(f=d(f)),new S(f)}var h="flow",v="block",O="quoted",k=(f,a)=>{let d=f[a+1];for(;d===" "||d===" ";){do d=f[a+=1];while(d&&d!==`
|
|
105
|
+
`);d=f[a+1]}return a};function _(f,a,d,{indentAtStart:m,lineWidth:y=80,minContentWidth:b=20,onFold:N,onOverflow:A}){if(!y||y<0)return f;let x=Math.max(1+b,1+y-a.length);if(f.length<=x)return f;let C=[],R={},W=y-a.length;typeof m=="number"&&(m>y-Math.max(2,b)?C.push(0):W=y-m);let re,V,ie=!1,J=-1,te=-1,ce=-1;d===v&&(J=k(f,J),J!==-1&&(W=J+x));for(let se;se=f[J+=1];){if(d===O&&se==="\\"){switch(te=J,f[J+1]){case"x":J+=3;break;case"u":J+=5;break;case"U":J+=9;break;default:J+=1}ce=J}if(se===`
|
|
106
|
+
`)d===v&&(J=k(f,J)),W=J+x,re=void 0;else{if(se===" "&&V&&V!==" "&&V!==`
|
|
107
|
+
`&&V!==" "){let ee=f[J+1];ee&&ee!==" "&&ee!==`
|
|
108
|
+
`&&ee!==" "&&(re=J)}if(J>=W)if(re)C.push(re),W=re+x,re=void 0;else if(d===O){for(;V===" "||V===" ";)V=se,se=f[J+=1],ie=!0;let ee=J>ce+1?J-2:te-1;if(R[ee])return f;C.push(ee),R[ee]=!0,W=ee+x,re=void 0}else ie=!0}V=se}if(ie&&A&&A(),C.length===0)return f;N&&N();let Z=f.slice(0,C[0]);for(let se=0;se<C.length;++se){let ee=C[se],ue=C[se+1]||f.length;ee===0?Z=`
|
|
109
|
+
${a}${f.slice(0,ue)}`:(d===O&&R[ee]&&(Z+=`${f[ee]}\\`),Z+=`
|
|
110
|
+
${a}${f.slice(ee+1,ue)}`)}return Z}var F=({indentAtStart:f})=>f?Object.assign({indentAtStart:f},p.fold):p.fold,Y=f=>/^(%|---|\.\.\.)/m.test(f);function q(f,a,d){if(!a||a<0)return!1;let m=a-d,y=f.length;if(y<=m)return!1;for(let b=0,N=0;b<y;++b)if(f[b]===`
|
|
111
|
+
`){if(b-N>m)return!0;if(N=b+1,y-N<=m)return!1}return!0}function oe(f,a){let{implicitKey:d}=a,{jsonEncoding:m,minMultiLineLength:y}=p.doubleQuoted,b=JSON.stringify(f);if(m)return b;let N=a.indent||(Y(f)?" ":""),A="",x=0;for(let C=0,R=b[C];R;R=b[++C])if(R===" "&&b[C+1]==="\\"&&b[C+2]==="n"&&(A+=b.slice(x,C)+"\\ ",C+=1,x=C,R="\\"),R==="\\")switch(b[C+1]){case"u":{A+=b.slice(x,C);let W=b.substr(C+2,4);switch(W){case"0000":A+="\\0";break;case"0007":A+="\\a";break;case"000b":A+="\\v";break;case"001b":A+="\\e";break;case"0085":A+="\\N";break;case"00a0":A+="\\_";break;case"2028":A+="\\L";break;case"2029":A+="\\P";break;default:W.substr(0,2)==="00"?A+="\\x"+W.substr(2):A+=b.substr(C,6)}C+=5,x=C+1}break;case"n":if(d||b[C+2]==='"'||b.length<y)C+=1;else{for(A+=b.slice(x,C)+`
|
|
112
|
+
|
|
113
|
+
`;b[C+2]==="\\"&&b[C+3]==="n"&&b[C+4]!=='"';)A+=`
|
|
114
|
+
`,C+=2;A+=N,b[C+2]===" "&&(A+="\\"),C+=1,x=C+1}break;default:C+=1}return A=x?A+b.slice(x):b,d?A:_(A,N,O,F(a))}function de(f,a){if(a.implicitKey){if(/\n/.test(f))return oe(f,a)}else if(/[ \t]\n|\n[ \t]/.test(f))return oe(f,a);let d=a.indent||(Y(f)?" ":""),m="'"+f.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
115
|
+
${d}`)+"'";return a.implicitKey?m:_(m,d,h,F(a))}function ve({comment:f,type:a,value:d},m,y,b){if(/\n[\t ]+$/.test(d)||/^\s*$/.test(d))return oe(d,m);let N=m.indent||(m.forceBlockIndent||Y(d)?" ":""),A=N?"2":"1",x=a===e.Type.BLOCK_FOLDED?!1:a===e.Type.BLOCK_LITERAL?!0:!q(d,p.fold.lineWidth,N.length),C=x?"|":">";if(!d)return C+`
|
|
116
|
+
`;let R="",W="";if(d=d.replace(/[\n\t ]*$/,V=>{let ie=V.indexOf(`
|
|
117
|
+
`);return ie===-1?C+="-":(d===V||ie!==V.length-1)&&(C+="+",b&&b()),W=V.replace(/\n$/,""),""}).replace(/^[\n ]*/,V=>{V.indexOf(" ")!==-1&&(C+=A);let ie=V.match(/ +$/);return ie?(R=V.slice(0,-ie[0].length),ie[0]):(R=V,"")}),W&&(W=W.replace(/\n+(?!\n|$)/g,`$&${N}`)),R&&(R=R.replace(/\n+/g,`$&${N}`)),f&&(C+=" #"+f.replace(/ ?[\r\n]+/g," "),y&&y()),!d)return`${C}${A}
|
|
118
|
+
${N}${W}`;if(x)return d=d.replace(/\n+/g,`$&${N}`),`${C}
|
|
119
|
+
${N}${R}${d}${W}`;d=d.replace(/\n+/g,`
|
|
120
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${N}`);let re=_(`${R}${d}${W}`,N,v,p.fold);return`${C}
|
|
121
|
+
${N}${re}`}function w(f,a,d,m){let{comment:y,type:b,value:N}=f,{actualString:A,implicitKey:x,indent:C,inFlow:R}=a;if(x&&/[\n[\]{},]/.test(N)||R&&/[[\]{},]/.test(N))return oe(N,a);if(!N||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(N))return x||R||N.indexOf(`
|
|
122
|
+
`)===-1?N.indexOf('"')!==-1&&N.indexOf("'")===-1?de(N,a):oe(N,a):ve(f,a,d,m);if(!x&&!R&&b!==e.Type.PLAIN&&N.indexOf(`
|
|
123
|
+
`)!==-1)return ve(f,a,d,m);if(C===""&&Y(N))return a.forceBlockIndent=!0,ve(f,a,d,m);let W=N.replace(/\n+/g,`$&
|
|
124
|
+
${C}`);if(A){let{tags:V}=a.doc.schema;if(typeof u(W,V,V.scalarFallback).value!="string")return oe(N,a)}let re=x?W:_(W,C,h,F(a));return y&&!R&&(re.indexOf(`
|
|
125
|
+
`)!==-1||y.indexOf(`
|
|
126
|
+
`)!==-1)?(d&&d(),n(re,C,y)):re}function $(f,a,d,m){let{defaultType:y}=p,{implicitKey:b,inFlow:N}=a,{type:A,value:x}=f;typeof x!="string"&&(x=String(x),f=Object.assign({},f,{value:x}));let C=W=>{switch(W){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return ve(f,a,d,m);case e.Type.QUOTE_DOUBLE:return oe(x,a);case e.Type.QUOTE_SINGLE:return de(x,a);case e.Type.PLAIN:return w(f,a,d,m);default:return null}};(A!==e.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(x)||(b||N)&&(A===e.Type.BLOCK_FOLDED||A===e.Type.BLOCK_LITERAL))&&(A=e.Type.QUOTE_DOUBLE);let R=C(A);if(R===null&&(R=C(y),R===null))throw new Error(`Unsupported default string type ${y}`);return R}function D({format:f,minFractionDigits:a,tag:d,value:m}){if(typeof m=="bigint")return String(m);if(!isFinite(m))return isNaN(m)?".nan":m<0?"-.inf":".inf";let y=JSON.stringify(m);if(!f&&a&&(!d||d==="tag:yaml.org,2002:float")&&/^\d/.test(y)){let b=y.indexOf(".");b<0&&(b=y.length,y+=".");let N=a-(y.length-b-1);for(;N-- >0;)y+="0"}return y}function B(f,a){let d,m;switch(a.type){case e.Type.FLOW_MAP:d="}",m="flow map";break;case e.Type.FLOW_SEQ:d="]",m="flow sequence";break;default:f.push(new e.YAMLSemanticError(a,"Not a flow collection!?"));return}let y;for(let b=a.items.length-1;b>=0;--b){let N=a.items[b];if(!N||N.type!==e.Type.COMMENT){y=N;break}}if(y&&y.char!==d){let b=`Expected ${m} to end with ${d}`,N;typeof y.offset=="number"?(N=new e.YAMLSemanticError(a,b),N.offset=y.offset+1):(N=new e.YAMLSemanticError(y,b),y.range&&y.range.end&&(N.offset=y.range.end-y.range.start)),f.push(N)}}function K(f,a){let d=a.context.src[a.range.start-1];if(d!==`
|
|
127
|
+
`&&d!==" "&&d!==" "){let m="Comments must be separated from other tokens by white space characters";f.push(new e.YAMLSemanticError(a,m))}}function H(f,a){let d=String(a),m=d.substr(0,8)+"..."+d.substr(-8);return new e.YAMLSemanticError(f,`The "${m}" key is too long`)}function he(f,a){for(let{afterKey:d,before:m,comment:y}of a){let b=f.items[m];b?(d&&b.value&&(b=b.value),y===void 0?(d||!b.commentBefore)&&(b.spaceBefore=!0):b.commentBefore?b.commentBefore+=`
|
|
128
|
+
`+y:b.commentBefore=y):y!==void 0&&(f.comment?f.comment+=`
|
|
129
|
+
`+y:f.comment=y)}}function we(f,a){let d=a.strValue;return d?typeof d=="string"?d:(d.errors.forEach(m=>{m.source||(m.source=a),f.errors.push(m)}),d.str):""}function Oe(f,a){let{handle:d,suffix:m}=a.tag,y=f.tagPrefixes.find(b=>b.handle===d);if(!y){let b=f.getDefaults().tagPrefixes;if(b&&(y=b.find(N=>N.handle===d)),!y)throw new e.YAMLSemanticError(a,`The ${d} tag handle is non-default and was not declared.`)}if(!m)throw new e.YAMLSemanticError(a,`The ${d} tag has no suffix.`);if(d==="!"&&(f.version||f.options.version)==="1.0"){if(m[0]==="^")return f.warnings.push(new e.YAMLWarning(a,"YAML 1.0 ^ tag expansion is not supported")),m;if(/[:/]/.test(m)){let b=m.match(/^([a-z0-9-]+)\/(.*)/i);return b?`tag:${b[1]}.yaml.org,2002:${b[2]}`:`tag:${m}`}}return y.prefix+decodeURIComponent(m)}function Se(f,a){let{tag:d,type:m}=a,y=!1;if(d){let{handle:b,suffix:N,verbatim:A}=d;if(A){if(A!=="!"&&A!=="!!")return A;let x=`Verbatim tags aren't resolved, so ${A} is invalid.`;f.errors.push(new e.YAMLSemanticError(a,x))}else if(b==="!"&&!N)y=!0;else try{return Oe(f,a)}catch(x){f.errors.push(x)}}switch(m){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:case e.Type.QUOTE_DOUBLE:case e.Type.QUOTE_SINGLE:return e.defaultTags.STR;case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;case e.Type.PLAIN:return y?e.defaultTags.STR:null;default:return null}}function Fe(f,a,d){let{tags:m}=f.schema,y=[];for(let N of m)if(N.tag===d)if(N.test)y.push(N);else{let A=N.resolve(f,a);return A instanceof I?A:new S(A)}let b=we(f,a);return typeof b=="string"&&y.length>0?u(b,y,m.scalarFallback):null}function Je({type:f}){switch(f){case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;default:return e.defaultTags.STR}}function Fn(f,a,d){try{let m=Fe(f,a,d);if(m)return d&&a.tag&&(m.tag=d),m}catch(m){return m.source||(m.source=a),f.errors.push(m),null}try{let m=Je(a);if(!m)throw new Error(`The tag ${d} is unavailable`);let y=`The tag ${d} is unavailable, falling back to ${m}`;f.warnings.push(new e.YAMLWarning(a,y));let b=Fe(f,a,m);return b.tag=d,b}catch(m){let y=new e.YAMLReferenceError(a,m.message);return y.stack=m.stack,f.errors.push(y),null}}var Wn=f=>{if(!f)return!1;let{type:a}=f;return a===e.Type.MAP_KEY||a===e.Type.MAP_VALUE||a===e.Type.SEQ_ITEM};function jn(f,a){let d={before:[],after:[]},m=!1,y=!1,b=Wn(a.context.parent)?a.context.parent.props.concat(a.props):a.props;for(let{start:N,end:A}of b)switch(a.context.src[N]){case e.Char.COMMENT:{if(!a.commentHasRequiredWhitespace(N)){let R="Comments must be separated from other tokens by white space characters";f.push(new e.YAMLSemanticError(a,R))}let{header:x,valueRange:C}=a;(C&&(N>C.start||x&&N>x.start)?d.after:d.before).push(a.context.src.slice(N+1,A));break}case e.Char.ANCHOR:if(m){let x="A node can have at most one anchor";f.push(new e.YAMLSemanticError(a,x))}m=!0;break;case e.Char.TAG:if(y){let x="A node can have at most one tag";f.push(new e.YAMLSemanticError(a,x))}y=!0;break}return{comments:d,hasAnchor:m,hasTag:y}}function qn(f,a){let{anchors:d,errors:m,schema:y}=f;if(a.type===e.Type.ALIAS){let N=a.rawValue,A=d.getNode(N);if(!A){let C=`Aliased anchor not found: ${N}`;return m.push(new e.YAMLReferenceError(a,C)),null}let x=new U(A);return d._cstAliases.push(x),x}let b=Se(f,a);if(b)return Fn(f,a,b);if(a.type!==e.Type.PLAIN){let N=`Failed to resolve ${a.type} node here`;return m.push(new e.YAMLSyntaxError(a,N)),null}try{let N=we(f,a);return u(N,y.tags,y.tags.scalarFallback)}catch(N){return N.source||(N.source=a),m.push(N),null}}function Me(f,a){if(!a)return null;a.error&&f.errors.push(a.error);let{comments:d,hasAnchor:m,hasTag:y}=jn(f.errors,a);if(m){let{anchors:N}=f,A=a.anchor,x=N.getNode(A);x&&(N.map[N.newName(A)]=x),N.map[A]=a}if(a.type===e.Type.ALIAS&&(m||y)){let N="An alias node must not specify any properties";f.errors.push(new e.YAMLSemanticError(a,N))}let b=qn(f,a);if(b){b.range=[a.range.start,a.range.end],f.options.keepCstNodes&&(b.cstNode=a),f.options.keepNodeTypes&&(b.type=a.type);let N=d.before.join(`
|
|
130
|
+
`);N&&(b.commentBefore=b.commentBefore?`${b.commentBefore}
|
|
131
|
+
${N}`:N);let A=d.after.join(`
|
|
132
|
+
`);A&&(b.comment=b.comment?`${b.comment}
|
|
133
|
+
${A}`:A)}return a.resolved=b}function Kn(f,a){if(a.type!==e.Type.MAP&&a.type!==e.Type.FLOW_MAP){let N=`A ${a.type} node cannot be resolved as a mapping`;return f.errors.push(new e.YAMLSyntaxError(a,N)),null}let{comments:d,items:m}=a.type===e.Type.FLOW_MAP?Jn(f,a):Qn(f,a),y=new ae;y.items=m,he(y,d);let b=!1;for(let N=0;N<m.length;++N){let{key:A}=m[N];if(A instanceof I&&(b=!0),f.schema.merge&&A&&A.value===T){m[N]=new c(m[N]);let x=m[N].value.items,C=null;x.some(R=>{if(R instanceof U){let{type:W}=R.source;return W===e.Type.MAP||W===e.Type.FLOW_MAP?!1:C="Merge nodes aliases can only point to maps"}return C="Merge nodes can only have Alias nodes as values"}),C&&f.errors.push(new e.YAMLSemanticError(a,C))}else for(let x=N+1;x<m.length;++x){let{key:C}=m[x];if(A===C||A&&C&&Object.prototype.hasOwnProperty.call(A,"value")&&A.value===C.value){let R=`Map keys must be unique; "${A}" is repeated`;f.errors.push(new e.YAMLSemanticError(a,R));break}}}if(b&&!f.options.mapAsMap){let N="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";f.warnings.push(new e.YAMLWarning(a,N))}return a.resolved=y,y}var Un=({context:{lineStart:f,node:a,src:d},props:m})=>{if(m.length===0)return!1;let{start:y}=m[0];if(a&&y>a.valueRange.start||d[y]!==e.Char.COMMENT)return!1;for(let b=f;b<y;++b)if(d[b]===`
|
|
134
|
+
`)return!1;return!0};function Vn(f,a){if(!Un(f))return;let d=f.getPropValue(0,e.Char.COMMENT,!0),m=!1,y=a.value.commentBefore;if(y&&y.startsWith(d))a.value.commentBefore=y.substr(d.length+1),m=!0;else{let b=a.value.comment;!f.node&&b&&b.startsWith(d)&&(a.value.comment=b.substr(d.length+1),m=!0)}m&&(a.comment=d)}function Qn(f,a){let d=[],m=[],y,b=null;for(let N=0;N<a.items.length;++N){let A=a.items[N];switch(A.type){case e.Type.BLANK_LINE:d.push({afterKey:!!y,before:m.length});break;case e.Type.COMMENT:d.push({afterKey:!!y,before:m.length,comment:A.comment});break;case e.Type.MAP_KEY:y!==void 0&&m.push(new j(y)),A.error&&f.errors.push(A.error),y=Me(f,A.node),b=null;break;case e.Type.MAP_VALUE:{if(y===void 0&&(y=null),A.error&&f.errors.push(A.error),!A.context.atLineStart&&A.node&&A.node.type===e.Type.MAP&&!A.node.context.atLineStart){let R="Nested mappings are not allowed in compact mappings";f.errors.push(new e.YAMLSemanticError(A.node,R))}let x=A.node;if(!x&&A.props.length>0){x=new e.PlainValue(e.Type.PLAIN,[]),x.context={parent:A,src:A.context.src};let R=A.range.start+1;if(x.range={start:R,end:R},x.valueRange={start:R,end:R},typeof A.range.origStart=="number"){let W=A.range.origStart+1;x.range.origStart=x.range.origEnd=W,x.valueRange.origStart=x.valueRange.origEnd=W}}let C=new j(y,Me(f,x));Vn(A,C),m.push(C),y&&typeof b=="number"&&A.range.start>b+1024&&f.errors.push(H(a,y)),y=void 0,b=null}break;default:y!==void 0&&m.push(new j(y)),y=Me(f,A),b=A.range.start,A.error&&f.errors.push(A.error);e:for(let x=N+1;;++x){let C=a.items[x];switch(C&&C.type){case e.Type.BLANK_LINE:case e.Type.COMMENT:continue e;case e.Type.MAP_VALUE:break e;default:{let R="Implicit map keys need to be followed by map values";f.errors.push(new e.YAMLSemanticError(A,R));break e}}}if(A.valueRangeContainsNewline){let x="Implicit map keys need to be on a single line";f.errors.push(new e.YAMLSemanticError(A,x))}}}return y!==void 0&&m.push(new j(y)),{comments:d,items:m}}function Jn(f,a){let d=[],m=[],y,b=!1,N="{";for(let A=0;A<a.items.length;++A){let x=a.items[A];if(typeof x.char=="string"){let{char:C,offset:R}=x;if(C==="?"&&y===void 0&&!b){b=!0,N=":";continue}if(C===":"){if(y===void 0&&(y=null),N===":"){N=",";continue}}else if(b&&(y===void 0&&C!==","&&(y=null),b=!1),y!==void 0&&(m.push(new j(y)),y=void 0,C===",")){N=":";continue}if(C==="}"){if(A===a.items.length-1)continue}else if(C===N){N=":";continue}let W=`Flow map contains an unexpected ${C}`,re=new e.YAMLSyntaxError(a,W);re.offset=R,f.errors.push(re)}else x.type===e.Type.BLANK_LINE?d.push({afterKey:!!y,before:m.length}):x.type===e.Type.COMMENT?(K(f.errors,x),d.push({afterKey:!!y,before:m.length,comment:x.comment})):y===void 0?(N===","&&f.errors.push(new e.YAMLSemanticError(x,"Separator , missing in flow map")),y=Me(f,x)):(N!==","&&f.errors.push(new e.YAMLSemanticError(x,"Indicator : missing in flow map entry")),m.push(new j(y,Me(f,x))),y=void 0,b=!1)}return B(f.errors,a),y!==void 0&&m.push(new j(y)),{comments:d,items:m}}function Hn(f,a){if(a.type!==e.Type.SEQ&&a.type!==e.Type.FLOW_SEQ){let b=`A ${a.type} node cannot be resolved as a sequence`;return f.errors.push(new e.YAMLSyntaxError(a,b)),null}let{comments:d,items:m}=a.type===e.Type.FLOW_SEQ?Xn(f,a):Gn(f,a),y=new Q;if(y.items=m,he(y,d),!f.options.mapAsMap&&m.some(b=>b instanceof j&&b.key instanceof I)){let b="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";f.warnings.push(new e.YAMLWarning(a,b))}return a.resolved=y,y}function Gn(f,a){let d=[],m=[];for(let y=0;y<a.items.length;++y){let b=a.items[y];switch(b.type){case e.Type.BLANK_LINE:d.push({before:m.length});break;case e.Type.COMMENT:d.push({comment:b.comment,before:m.length});break;case e.Type.SEQ_ITEM:if(b.error&&f.errors.push(b.error),m.push(Me(f,b.node)),b.hasProps){let N="Sequence items cannot have tags or anchors before the - indicator";f.errors.push(new e.YAMLSemanticError(b,N))}break;default:b.error&&f.errors.push(b.error),f.errors.push(new e.YAMLSyntaxError(b,`Unexpected ${b.type} node in sequence`))}}return{comments:d,items:m}}function Xn(f,a){let d=[],m=[],y=!1,b,N=null,A="[",x=null;for(let C=0;C<a.items.length;++C){let R=a.items[C];if(typeof R.char=="string"){let{char:W,offset:re}=R;if(W!==":"&&(y||b!==void 0)&&(y&&b===void 0&&(b=A?m.pop():null),m.push(new j(b)),y=!1,b=void 0,N=null),W===A)A=null;else if(!A&&W==="?")y=!0;else if(A!=="["&&W===":"&&b===void 0){if(A===","){if(b=m.pop(),b instanceof j){let V="Chaining flow sequence pairs is invalid",ie=new e.YAMLSemanticError(a,V);ie.offset=re,f.errors.push(ie)}if(!y&&typeof N=="number"){let V=R.range?R.range.start:R.offset;V>N+1024&&f.errors.push(H(a,b));let{src:ie}=x.context;for(let J=N;J<V;++J)if(ie[J]===`
|
|
135
|
+
`){let te="Implicit keys of flow sequence pairs need to be on a single line";f.errors.push(new e.YAMLSemanticError(x,te));break}}}else b=null;N=null,y=!1,A=null}else if(A==="["||W!=="]"||C<a.items.length-1){let V=`Flow sequence contains an unexpected ${W}`,ie=new e.YAMLSyntaxError(a,V);ie.offset=re,f.errors.push(ie)}}else if(R.type===e.Type.BLANK_LINE)d.push({before:m.length});else if(R.type===e.Type.COMMENT)K(f.errors,R),d.push({comment:R.comment,before:m.length});else{if(A){let re=`Expected a ${A} in flow sequence`;f.errors.push(new e.YAMLSemanticError(R,re))}let W=Me(f,R);b===void 0?(m.push(W),x=R):(m.push(new j(b,W)),b=void 0),N=R.range.start,A=","}}return B(f.errors,a),b!==void 0&&m.push(new j(b)),{comments:d,items:m}}t.Alias=U,t.Collection=I,t.Merge=c,t.Node=g,t.Pair=j,t.Scalar=S,t.YAMLMap=ae,t.YAMLSeq=Q,t.addComment=l,t.binaryOptions=i,t.boolOptions=r,t.findPair=G,t.intOptions=s,t.isEmptyPath=M,t.nullOptions=o,t.resolveMap=Kn,t.resolveNode=Me,t.resolveSeq=Hn,t.resolveString=we,t.strOptions=p,t.stringifyNumber=D,t.stringifyString=$,t.toJSON=E}),Gt=Le(t=>{"use strict";var e=Ie(),n=Ue(),l={identify:u=>u instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(u,h)=>{let v=n.resolveString(u,h);if(typeof Buffer=="function")return Buffer.from(v,"base64");if(typeof atob=="function"){let O=atob(v.replace(/[\n\r]/g,"")),k=new Uint8Array(O.length);for(let _=0;_<O.length;++_)k[_]=O.charCodeAt(_);return k}else{let O="This environment does not support reading binary tags; either Buffer or atob is required";return u.errors.push(new e.YAMLReferenceError(h,O)),null}},options:n.binaryOptions,stringify:({comment:u,type:h,value:v},O,k,_)=>{let F;if(typeof Buffer=="function")F=v instanceof Buffer?v.toString("base64"):Buffer.from(v.buffer).toString("base64");else if(typeof btoa=="function"){let Y="";for(let q=0;q<v.length;++q)Y+=String.fromCharCode(v[q]);F=btoa(Y)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(h||(h=n.binaryOptions.defaultType),h===e.Type.QUOTE_DOUBLE)v=F;else{let{lineWidth:Y}=n.binaryOptions,q=Math.ceil(F.length/Y),oe=new Array(q);for(let de=0,ve=0;de<q;++de,ve+=Y)oe[de]=F.substr(ve,Y);v=oe.join(h===e.Type.BLOCK_LITERAL?`
|
|
136
|
+
`:" ")}return n.stringifyString({comment:u,type:h,value:v},O,k,_)}};function g(u,h){let v=n.resolveSeq(u,h);for(let O=0;O<v.items.length;++O){let k=v.items[O];if(!(k instanceof n.Pair)){if(k instanceof n.YAMLMap){if(k.items.length>1){let F="Each pair must have its own sequence indicator";throw new e.YAMLSemanticError(h,F)}let _=k.items[0]||new n.Pair;k.commentBefore&&(_.commentBefore=_.commentBefore?`${k.commentBefore}
|
|
137
|
+
${_.commentBefore}`:k.commentBefore),k.comment&&(_.comment=_.comment?`${k.comment}
|
|
138
|
+
${_.comment}`:k.comment),k=_}v.items[O]=k instanceof n.Pair?k:new n.Pair(k)}}return v}function E(u,h,v){let O=new n.YAMLSeq(u);O.tag="tag:yaml.org,2002:pairs";for(let k of h){let _,F;if(Array.isArray(k))if(k.length===2)_=k[0],F=k[1];else throw new TypeError(`Expected [key, value] tuple: ${k}`);else if(k&&k instanceof Object){let q=Object.keys(k);if(q.length===1)_=q[0],F=k[_];else throw new TypeError(`Expected { key: value } tuple: ${k}`)}else _=k;let Y=u.createPair(_,F,v);O.items.push(Y)}return O}var S={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:g,createNode:E},L=class Xt extends n.YAMLSeq{constructor(){super(),e._defineProperty(this,"add",n.YAMLMap.prototype.add.bind(this)),e._defineProperty(this,"delete",n.YAMLMap.prototype.delete.bind(this)),e._defineProperty(this,"get",n.YAMLMap.prototype.get.bind(this)),e._defineProperty(this,"has",n.YAMLMap.prototype.has.bind(this)),e._defineProperty(this,"set",n.YAMLMap.prototype.set.bind(this)),this.tag=Xt.tag}toJSON(h,v){let O=new Map;v&&v.onCreate&&v.onCreate(O);for(let k of this.items){let _,F;if(k instanceof n.Pair?(_=n.toJSON(k.key,"",v),F=n.toJSON(k.value,_,v)):_=n.toJSON(k,"",v),O.has(_))throw new Error("Ordered maps must not include duplicate keys");O.set(_,F)}return O}};e._defineProperty(L,"tag","tag:yaml.org,2002:omap");function M(u,h){let v=g(u,h),O=[];for(let{key:k}of v.items)if(k instanceof n.Scalar)if(O.includes(k.value)){let _="Ordered maps must not include duplicate keys";throw new e.YAMLSemanticError(h,_)}else O.push(k.value);return Object.assign(new L,v)}function I(u,h,v){let O=E(u,h,v),k=new L;return k.items=O.items,k}var P={identify:u=>u instanceof Map,nodeClass:L,default:!1,tag:"tag:yaml.org,2002:omap",resolve:M,createNode:I},Q=class Zt extends n.YAMLMap{constructor(){super(),this.tag=Zt.tag}add(h){let v=h instanceof n.Pair?h:new n.Pair(h);n.findPair(this.items,v.key)||this.items.push(v)}get(h,v){let O=n.findPair(this.items,h);return!v&&O instanceof n.Pair?O.key instanceof n.Scalar?O.key.value:O.key:O}set(h,v){if(typeof v!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof v}`);let O=n.findPair(this.items,h);O&&!v?this.items.splice(this.items.indexOf(O),1):!O&&v&&this.items.push(new n.Pair(h))}toJSON(h,v){return super.toJSON(h,v,Set)}toString(h,v,O){if(!h)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(h,v,O);throw new Error("Set items must all have null values")}};e._defineProperty(Q,"tag","tag:yaml.org,2002:set");function ne(u,h){let v=n.resolveMap(u,h);if(!v.hasAllNullValues())throw new e.YAMLSemanticError(h,"Set items must all have null values");return Object.assign(new Q,v)}function j(u,h,v){let O=new Q;for(let k of h)O.items.push(u.createPair(k,null,v));return O}var X={identify:u=>u instanceof Set,nodeClass:Q,default:!1,tag:"tag:yaml.org,2002:set",resolve:ne,createNode:j},U=(u,h)=>{let v=h.split(":").reduce((O,k)=>O*60+Number(k),0);return u==="-"?-v:v},G=({value:u})=>{if(isNaN(u)||!isFinite(u))return n.stringifyNumber(u);let h="";u<0&&(h="-",u=Math.abs(u));let v=[u%60];return u<60?v.unshift(0):(u=Math.round((u-v[0])/60),v.unshift(u%60),u>=60&&(u=Math.round((u-v[0])/60),v.unshift(u))),h+v.map(O=>O<10?"0"+String(O):String(O)).join(":").replace(/000000\d*$/,"")},ae={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(u,h,v)=>U(h,v.replace(/_/g,"")),stringify:G},T={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(u,h,v)=>U(h,v.replace(/_/g,"")),stringify:G},c={identify:u=>u instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(u,h,v,O,k,_,F,Y,q)=>{Y&&(Y=(Y+"00").substr(1,3));let oe=Date.UTC(h,v-1,O,k||0,_||0,F||0,Y||0);if(q&&q!=="Z"){let de=U(q[0],q.slice(1));Math.abs(de)<30&&(de*=60),oe-=6e4*de}return new Date(oe)},stringify:({value:u})=>u.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function i(u){let h={};return u?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!h.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!h.YAML_SILENCE_WARNINGS}function r(u,h){i(!1)&&console.warn(h?`${h}: ${u}`:u)}function s(u){if(i(!0)){let h=u.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");r(`The endpoint 'yaml/${h}' will be removed in a future release.`,"DeprecationWarning")}}var o={};function p(u,h){if(!o[u]&&i(!0)){o[u]=!0;let v=`The option '${u}' will be removed in a future release`;v+=h?`, use '${h}' instead.`:".",r(v,"DeprecationWarning")}}t.binary=l,t.floatTime=T,t.intTime=ae,t.omap=P,t.pairs=S,t.set=X,t.timestamp=c,t.warn=r,t.warnFileDeprecation=s,t.warnOptionDeprecation=p}),zt=Le(t=>{"use strict";var e=Ie(),n=Ue(),l=Gt();function g(w,$,D){let B=new n.YAMLMap(w);if($ instanceof Map)for(let[K,H]of $)B.items.push(w.createPair(K,H,D));else if($&&typeof $=="object")for(let K of Object.keys($))B.items.push(w.createPair(K,$[K],D));return typeof w.sortMapEntries=="function"&&B.items.sort(w.sortMapEntries),B}var E={createNode:g,default:!0,nodeClass:n.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:n.resolveMap};function S(w,$,D){let B=new n.YAMLSeq(w);if($&&$[Symbol.iterator])for(let K of $){let H=w.createNode(K,D.wrapScalars,null,D);B.items.push(H)}return B}var L={createNode:S,default:!0,nodeClass:n.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:n.resolveSeq},M={identify:w=>typeof w=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:n.resolveString,stringify(w,$,D,B){return $=Object.assign({actualString:!0},$),n.stringifyString(w,$,D,B)},options:n.strOptions},I=[E,L,M],P=w=>typeof w=="bigint"||Number.isInteger(w),Q=(w,$,D)=>n.intOptions.asBigInt?BigInt(w):parseInt($,D);function ne(w,$,D){let{value:B}=w;return P(B)&&B>=0?D+B.toString($):n.stringifyNumber(w)}var j={identify:w=>w==null,createNode:(w,$,D)=>D.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},X={identify:w=>typeof w=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:w=>w[0]==="t"||w[0]==="T",options:n.boolOptions,stringify:({value:w})=>w?n.boolOptions.trueStr:n.boolOptions.falseStr},U={identify:w=>P(w)&&w>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(w,$)=>Q(w,$,8),options:n.intOptions,stringify:w=>ne(w,8,"0o")},G={identify:P,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:w=>Q(w,w,10),options:n.intOptions,stringify:n.stringifyNumber},ae={identify:w=>P(w)&&w>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(w,$)=>Q(w,$,16),options:n.intOptions,stringify:w=>ne(w,16,"0x")},T={identify:w=>typeof w=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(w,$)=>$?NaN:w[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},c={identify:w=>typeof w=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:w=>parseFloat(w),stringify:({value:w})=>Number(w).toExponential()},i={identify:w=>typeof w=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(w,$,D){let B=$||D,K=new n.Scalar(parseFloat(w));return B&&B[B.length-1]==="0"&&(K.minFractionDigits=B.length),K},stringify:n.stringifyNumber},r=I.concat([j,X,U,G,ae,T,c,i]),s=w=>typeof w=="bigint"||Number.isInteger(w),o=({value:w})=>JSON.stringify(w),p=[E,L,{identify:w=>typeof w=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:n.resolveString,stringify:o},{identify:w=>w==null,createNode:(w,$,D)=>D.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:o},{identify:w=>typeof w=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:w=>w==="true",stringify:o},{identify:s,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:w=>n.intOptions.asBigInt?BigInt(w):parseInt(w,10),stringify:({value:w})=>s(w)?w.toString():JSON.stringify(w)},{identify:w=>typeof w=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:w=>parseFloat(w),stringify:o}];p.scalarFallback=w=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(w)}`)};var u=({value:w})=>w?n.boolOptions.trueStr:n.boolOptions.falseStr,h=w=>typeof w=="bigint"||Number.isInteger(w);function v(w,$,D){let B=$.replace(/_/g,"");if(n.intOptions.asBigInt){switch(D){case 2:B=`0b${B}`;break;case 8:B=`0o${B}`;break;case 16:B=`0x${B}`;break}let H=BigInt(B);return w==="-"?BigInt(-1)*H:H}let K=parseInt(B,D);return w==="-"?-1*K:K}function O(w,$,D){let{value:B}=w;if(h(B)){let K=B.toString($);return B<0?"-"+D+K.substr(1):D+K}return n.stringifyNumber(w)}var k=I.concat([{identify:w=>w==null,createNode:(w,$,D)=>D.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},{identify:w=>typeof w=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:n.boolOptions,stringify:u},{identify:w=>typeof w=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:n.boolOptions,stringify:u},{identify:h,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(w,$,D)=>v($,D,2),stringify:w=>O(w,2,"0b")},{identify:h,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(w,$,D)=>v($,D,8),stringify:w=>O(w,8,"0")},{identify:h,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(w,$,D)=>v($,D,10),stringify:n.stringifyNumber},{identify:h,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(w,$,D)=>v($,D,16),stringify:w=>O(w,16,"0x")},{identify:w=>typeof w=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(w,$)=>$?NaN:w[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},{identify:w=>typeof w=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:w=>parseFloat(w.replace(/_/g,"")),stringify:({value:w})=>Number(w).toExponential()},{identify:w=>typeof w=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(w,$){let D=new n.Scalar(parseFloat(w.replace(/_/g,"")));if($){let B=$.replace(/_/g,"");B[B.length-1]==="0"&&(D.minFractionDigits=B.length)}return D},stringify:n.stringifyNumber}],l.binary,l.omap,l.pairs,l.set,l.intTime,l.floatTime,l.timestamp),_={core:r,failsafe:I,json:p,yaml11:k},F={binary:l.binary,bool:X,float:i,floatExp:c,floatNaN:T,floatTime:l.floatTime,int:G,intHex:ae,intOct:U,intTime:l.intTime,map:E,null:j,omap:l.omap,pairs:l.pairs,seq:L,set:l.set,timestamp:l.timestamp};function Y(w,$,D){if($){let B=D.filter(H=>H.tag===$),K=B.find(H=>!H.format)||B[0];if(!K)throw new Error(`Tag ${$} not found`);return K}return D.find(B=>(B.identify&&B.identify(w)||B.class&&w instanceof B.class)&&!B.format)}function q(w,$,D){if(w instanceof n.Node)return w;let{defaultPrefix:B,onTagObj:K,prevObjects:H,schema:he,wrapScalars:we}=D;$&&$.startsWith("!!")&&($=B+$.slice(2));let Oe=Y(w,$,he.tags);if(!Oe){if(typeof w.toJSON=="function"&&(w=w.toJSON()),!w||typeof w!="object")return we?new n.Scalar(w):w;Oe=w instanceof Map?E:w[Symbol.iterator]?L:E}K&&(K(Oe),delete D.onTagObj);let Se={value:void 0,node:void 0};if(w&&typeof w=="object"&&H){let Fe=H.get(w);if(Fe){let Je=new n.Alias(Fe);return D.aliasNodes.push(Je),Je}Se.value=w,H.set(w,Se)}return Se.node=Oe.createNode?Oe.createNode(D.schema,w,D):we?new n.Scalar(w):w,$&&Se.node instanceof n.Node&&(Se.node.tag=$),Se.node}function oe(w,$,D,B){let K=w[B.replace(/\W/g,"")];if(!K){let H=Object.keys(w).map(he=>JSON.stringify(he)).join(", ");throw new Error(`Unknown schema "${B}"; use one of ${H}`)}if(Array.isArray(D))for(let H of D)K=K.concat(H);else typeof D=="function"&&(K=D(K.slice()));for(let H=0;H<K.length;++H){let he=K[H];if(typeof he=="string"){let we=$[he];if(!we){let Oe=Object.keys($).map(Se=>JSON.stringify(Se)).join(", ");throw new Error(`Unknown custom tag "${he}"; use one of ${Oe}`)}K[H]=we}}return K}var de=(w,$)=>w.key<$.key?-1:w.key>$.key?1:0,ve=class en{constructor({customTags:$,merge:D,schema:B,sortMapEntries:K,tags:H}){this.merge=!!D,this.name=B,this.sortMapEntries=K===!0?de:K||null,!$&&H&&l.warnOptionDeprecation("tags","customTags"),this.tags=oe(_,F,$||H,B)}createNode($,D,B,K){let H={defaultPrefix:en.defaultPrefix,schema:this,wrapScalars:D},he=K?Object.assign(K,H):H;return q($,B,he)}createPair($,D,B){B||(B={wrapScalars:!0});let K=this.createNode($,B.wrapScalars,null,B),H=this.createNode(D,B.wrapScalars,null,B);return new n.Pair(K,H)}};e._defineProperty(ve,"defaultPrefix",e.defaultTagPrefix),e._defineProperty(ve,"defaultTags",e.defaultTags),t.Schema=ve}),or=Le(t=>{"use strict";var e=Ie(),n=Ue(),l=zt(),g={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},E={get binary(){return n.binaryOptions},set binary(i){Object.assign(n.binaryOptions,i)},get bool(){return n.boolOptions},set bool(i){Object.assign(n.boolOptions,i)},get int(){return n.intOptions},set int(i){Object.assign(n.intOptions,i)},get null(){return n.nullOptions},set null(i){Object.assign(n.nullOptions,i)},get str(){return n.strOptions},set str(i){Object.assign(n.strOptions,i)}},S={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:e.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:e.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:e.defaultTagPrefix}]}};function L(i,r){if((i.version||i.options.version)==="1.0"){let p=r.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(p)return"!"+p[1];let u=r.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return u?`!${u[1]}/${u[2]}`:`!${r.replace(/^tag:/,"")}`}let s=i.tagPrefixes.find(p=>r.indexOf(p.prefix)===0);if(!s){let p=i.getDefaults().tagPrefixes;s=p&&p.find(u=>r.indexOf(u.prefix)===0)}if(!s)return r[0]==="!"?r:`!<${r}>`;let o=r.substr(s.prefix.length).replace(/[!,[\]{}]/g,p=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[p]);return s.handle+o}function M(i,r){if(r instanceof n.Alias)return n.Alias;if(r.tag){let p=i.filter(u=>u.tag===r.tag);if(p.length>0)return p.find(u=>u.format===r.format)||p[0]}let s,o;if(r instanceof n.Scalar){o=r.value;let p=i.filter(u=>u.identify&&u.identify(o)||u.class&&o instanceof u.class);s=p.find(u=>u.format===r.format)||p.find(u=>!u.format)}else o=r,s=i.find(p=>p.nodeClass&&o instanceof p.nodeClass);if(!s){let p=o&&o.constructor?o.constructor.name:typeof o;throw new Error(`Tag not resolved for ${p} value`)}return s}function I(i,r,{anchors:s,doc:o}){let p=[],u=o.anchors.getName(i);return u&&(s[u]=i,p.push(`&${u}`)),i.tag?p.push(L(o,i.tag)):r.default||p.push(L(o,r.tag)),p.join(" ")}function P(i,r,s,o){let{anchors:p,schema:u}=r.doc,h;if(!(i instanceof n.Node)){let k={aliasNodes:[],onTagObj:_=>h=_,prevObjects:new Map};i=u.createNode(i,!0,null,k);for(let _ of k.aliasNodes){_.source=_.source.node;let F=p.getName(_.source);F||(F=p.newName(),p.map[F]=_.source)}}if(i instanceof n.Pair)return i.toString(r,s,o);h||(h=M(u.tags,i));let v=I(i,h,r);v.length>0&&(r.indentAtStart=(r.indentAtStart||0)+v.length+1);let O=typeof h.stringify=="function"?h.stringify(i,r,s,o):i instanceof n.Scalar?n.stringifyString(i,r,s,o):i.toString(r,s,o);return v?i instanceof n.Scalar||O[0]==="{"||O[0]==="["?`${v} ${O}`:`${v}
|
|
139
|
+
${r.indent}${O}`:O}var Q=class tn{static validAnchorNode(r){return r instanceof n.Scalar||r instanceof n.YAMLSeq||r instanceof n.YAMLMap}constructor(r){e._defineProperty(this,"map",Object.create(null)),this.prefix=r}createAlias(r,s){return this.setAnchor(r,s),new n.Alias(r)}createMergePair(...r){let s=new n.Merge;return s.value.items=r.map(o=>{if(o instanceof n.Alias){if(o.source instanceof n.YAMLMap)return o}else if(o instanceof n.YAMLMap)return this.createAlias(o);throw new Error("Merge sources must be Map nodes or their Aliases")}),s}getName(r){let{map:s}=this;return Object.keys(s).find(o=>s[o]===r)}getNames(){return Object.keys(this.map)}getNode(r){return this.map[r]}newName(r){r||(r=this.prefix);let s=Object.keys(this.map);for(let o=1;;++o){let p=`${r}${o}`;if(!s.includes(p))return p}}resolveNodes(){let{map:r,_cstAliases:s}=this;Object.keys(r).forEach(o=>{r[o]=r[o].resolved}),s.forEach(o=>{o.source=o.source.resolved}),delete this._cstAliases}setAnchor(r,s){if(r!=null&&!tn.validAnchorNode(r))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(s&&/[\x00-\x19\s,[\]{}]/.test(s))throw new Error("Anchor names must not contain whitespace or control characters");let{map:o}=this,p=r&&Object.keys(o).find(u=>o[u]===r);if(p)if(s)p!==s&&(delete o[p],o[s]=r);else return p;else{if(!s){if(!r)return null;s=this.newName()}o[s]=r}return s}},ne=(i,r)=>{if(i&&typeof i=="object"){let{tag:s}=i;i instanceof n.Collection?(s&&(r[s]=!0),i.items.forEach(o=>ne(o,r))):i instanceof n.Pair?(ne(i.key,r),ne(i.value,r)):i instanceof n.Scalar&&s&&(r[s]=!0)}return r},j=i=>Object.keys(ne(i,{}));function X(i,r){let s={before:[],after:[]},o,p=!1;for(let u of r)if(u.valueRange){if(o!==void 0){let v="Document contains trailing content not separated by a ... or --- line";i.errors.push(new e.YAMLSyntaxError(u,v));break}let h=n.resolveNode(i,u);p&&(h.spaceBefore=!0,p=!1),o=h}else u.comment!==null?(o===void 0?s.before:s.after).push(u.comment):u.type===e.Type.BLANK_LINE&&(p=!0,o===void 0&&s.before.length>0&&!i.commentBefore&&(i.commentBefore=s.before.join(`
|
|
140
|
+
`),s.before=[]));if(i.contents=o||null,!o)i.comment=s.before.concat(s.after).join(`
|
|
141
|
+
`)||null;else{let u=s.before.join(`
|
|
142
|
+
`);if(u){let h=o instanceof n.Collection&&o.items[0]?o.items[0]:o;h.commentBefore=h.commentBefore?`${u}
|
|
143
|
+
${h.commentBefore}`:u}i.comment=s.after.join(`
|
|
144
|
+
`)||null}}function U({tagPrefixes:i},r){let[s,o]=r.parameters;if(!s||!o){let p="Insufficient parameters given for %TAG directive";throw new e.YAMLSemanticError(r,p)}if(i.some(p=>p.handle===s)){let p="The %TAG directive must only be given at most once per handle in the same document.";throw new e.YAMLSemanticError(r,p)}return{handle:s,prefix:o}}function G(i,r){let[s]=r.parameters;if(r.name==="YAML:1.0"&&(s="1.0"),!s){let o="Insufficient parameters given for %YAML directive";throw new e.YAMLSemanticError(r,o)}if(!S[s]){let o=`Document will be parsed as YAML ${i.version||i.options.version} rather than YAML ${s}`;i.warnings.push(new e.YAMLWarning(r,o))}return s}function ae(i,r,s){let o=[],p=!1;for(let u of r){let{comment:h,name:v}=u;switch(v){case"TAG":try{i.tagPrefixes.push(U(i,u))}catch(O){i.errors.push(O)}p=!0;break;case"YAML":case"YAML:1.0":if(i.version){let O="The %YAML directive must only be given at most once per document.";i.errors.push(new e.YAMLSemanticError(u,O))}try{i.version=G(i,u)}catch(O){i.errors.push(O)}p=!0;break;default:if(v){let O=`YAML only supports %TAG and %YAML directives, and not %${v}`;i.warnings.push(new e.YAMLWarning(u,O))}}h&&o.push(h)}if(s&&!p&&(i.version||s.version||i.options.version)==="1.1"){let u=({handle:h,prefix:v})=>({handle:h,prefix:v});i.tagPrefixes=s.tagPrefixes.map(u),i.version=s.version}i.commentBefore=o.join(`
|
|
145
|
+
`)||null}function T(i){if(i instanceof n.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var c=class dt{constructor(r){this.anchors=new Q(r.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=r,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(r){return T(this.contents),this.contents.add(r)}addIn(r,s){T(this.contents),this.contents.addIn(r,s)}delete(r){return T(this.contents),this.contents.delete(r)}deleteIn(r){return n.isEmptyPath(r)?this.contents==null?!1:(this.contents=null,!0):(T(this.contents),this.contents.deleteIn(r))}getDefaults(){return dt.defaults[this.version]||dt.defaults[this.options.version]||{}}get(r,s){return this.contents instanceof n.Collection?this.contents.get(r,s):void 0}getIn(r,s){return n.isEmptyPath(r)?!s&&this.contents instanceof n.Scalar?this.contents.value:this.contents:this.contents instanceof n.Collection?this.contents.getIn(r,s):void 0}has(r){return this.contents instanceof n.Collection?this.contents.has(r):!1}hasIn(r){return n.isEmptyPath(r)?this.contents!==void 0:this.contents instanceof n.Collection?this.contents.hasIn(r):!1}set(r,s){T(this.contents),this.contents.set(r,s)}setIn(r,s){n.isEmptyPath(r)?this.contents=s:(T(this.contents),this.contents.setIn(r,s))}setSchema(r,s){if(!r&&!s&&this.schema)return;typeof r=="number"&&(r=r.toFixed(1)),r==="1.0"||r==="1.1"||r==="1.2"?(this.version?this.version=r:this.options.version=r,delete this.options.schema):r&&typeof r=="string"&&(this.options.schema=r),Array.isArray(s)&&(this.options.customTags=s);let o=Object.assign({},this.getDefaults(),this.options);this.schema=new l.Schema(o)}parse(r,s){this.options.keepCstNodes&&(this.cstNode=r),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:o=[],contents:p=[],directivesEndMarker:u,error:h,valueRange:v}=r;if(h&&(h.source||(h.source=this),this.errors.push(h)),ae(this,o,s),u&&(this.directivesEndMarker=!0),this.range=v?[v.start,v.end]:null,this.setSchema(),this.anchors._cstAliases=[],X(this,p),this.anchors.resolveNodes(),this.options.prettyErrors){for(let O of this.errors)O instanceof e.YAMLError&&O.makePretty();for(let O of this.warnings)O instanceof e.YAMLError&&O.makePretty()}return this}listNonDefaultTags(){return j(this.contents).filter(r=>r.indexOf(l.Schema.defaultPrefix)!==0)}setTagPrefix(r,s){if(r[0]!=="!"||r[r.length-1]!=="!")throw new Error("Handle must start and end with !");if(s){let o=this.tagPrefixes.find(p=>p.handle===r);o?o.prefix=s:this.tagPrefixes.push({handle:r,prefix:s})}else this.tagPrefixes=this.tagPrefixes.filter(o=>o.handle!==r)}toJSON(r,s){let{keepBlobsInJSON:o,mapAsMap:p,maxAliasCount:u}=this.options,h=o&&(typeof r!="string"||!(this.contents instanceof n.Scalar)),v={doc:this,indentStep:" ",keep:h,mapAsMap:h&&!!p,maxAliasCount:u,stringify:P},O=Object.keys(this.anchors.map);O.length>0&&(v.anchors=new Map(O.map(_=>[this.anchors.map[_],{alias:[],aliasCount:0,count:1}])));let k=n.toJSON(this.contents,r,v);if(typeof s=="function"&&v.anchors)for(let{count:_,res:F}of v.anchors.values())s(F,_);return k}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let r=this.options.indent;if(!Number.isInteger(r)||r<=0){let O=JSON.stringify(r);throw new Error(`"indent" option must be a positive integer, not ${O}`)}this.setSchema();let s=[],o=!1;if(this.version){let O="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?O="%YAML:1.0":this.version==="1.1"&&(O="%YAML 1.1")),s.push(O),o=!0}let p=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:O,prefix:k})=>{p.some(_=>_.indexOf(k)===0)&&(s.push(`%TAG ${O} ${k}`),o=!0)}),(o||this.directivesEndMarker)&&s.push("---"),this.commentBefore&&((o||!this.directivesEndMarker)&&s.unshift(""),s.unshift(this.commentBefore.replace(/^/gm,"#")));let u={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(r),stringify:P},h=!1,v=null;if(this.contents){this.contents instanceof n.Node&&(this.contents.spaceBefore&&(o||this.directivesEndMarker)&&s.push(""),this.contents.commentBefore&&s.push(this.contents.commentBefore.replace(/^/gm,"#")),u.forceBlockIndent=!!this.comment,v=this.contents.comment);let O=v?null:()=>h=!0,k=P(this.contents,u,()=>v=null,O);s.push(n.addComment(k,"",v))}else this.contents!==void 0&&s.push(P(this.contents,u));return this.comment&&((!h||v)&&s[s.length-1]!==""&&s.push(""),s.push(this.comment.replace(/^/gm,"#"))),s.join(`
|
|
146
|
+
`)+`
|
|
147
|
+
`}};e._defineProperty(c,"defaults",S),t.Document=c,t.defaultOptions=g,t.scalarOptions=E}),ar=Le(t=>{"use strict";var e=sr(),n=or(),l=zt(),g=Ie(),E=Gt();Ue();function S(j,X=!0,U){U===void 0&&typeof X=="string"&&(U=X,X=!0);let G=Object.assign({},n.Document.defaults[n.defaultOptions.version],n.defaultOptions);return new l.Schema(G).createNode(j,X,U)}var L=class extends n.Document{constructor(j){super(Object.assign({},n.defaultOptions,j))}};function M(j,X){let U=[],G;for(let ae of e.parse(j)){let T=new L(X);T.parse(ae,G),U.push(T),G=T}return U}function I(j,X){let U=e.parse(j),G=new L(X).parse(U[0]);if(U.length>1){let ae="Source contains multiple documents; please use YAML.parseAllDocuments()";G.errors.unshift(new g.YAMLSemanticError(U[1],ae))}return G}function P(j,X){let U=I(j,X);if(U.warnings.forEach(G=>E.warn(G)),U.errors.length>0)throw U.errors[0];return U.toJSON()}function Q(j,X){let U=new L(X);return U.contents=j,String(U)}var ne={createNode:S,defaultOptions:n.defaultOptions,Document:L,parse:P,parseAllDocuments:M,parseCST:e.parse,parseDocument:I,scalarOptions:n.scalarOptions,stringify:Q};t.YAML=ne}),lr=Le((t,e)=>{e.exports=ar().YAML}),cr=Le(t=>{"use strict";var e=Ue(),n=Ie();t.findPair=e.findPair,t.parseMap=e.resolveMap,t.parseSeq=e.resolveSeq,t.stringifyNumber=e.stringifyNumber,t.stringifyString=e.stringifyString,t.toJSON=e.toJSON,t.Type=n.Type,t.YAMLError=n.YAMLError,t.YAMLReferenceError=n.YAMLReferenceError,t.YAMLSemanticError=n.YAMLSemanticError,t.YAMLSyntaxError=n.YAMLSyntaxError,t.YAMLWarning=n.YAMLWarning}),nn={};qt(nn,{languages:()=>fi,options:()=>di,parsers:()=>Ln,printers:()=>Ps});var ur=(t,e,n,l)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,l):n.global?e.replace(n,l):e.split(n).join(l)},ot=ur,rn="string",sn="array",on="cursor",an="indent",St="align",ln="trim",wt="group",Ot="fill",Nt="if-break",cn="indent-if-break",At="line-suffix",un="line-suffix-boundary",Ye="line",fn="label",Lt="break-parent",pn=new Set([on,an,St,ln,wt,Ot,Nt,cn,At,un,Ye,fn,Lt]),fr=(t,e,n)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},ge=fr;function pr(t){if(typeof t=="string")return rn;if(Array.isArray(t))return sn;if(!t)return;let{type:e}=t;if(pn.has(e))return e}var dn=pr,dr=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function hr(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
148
|
+
Expected it to be 'string' or 'object'.`;if(dn(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let l=dr([...pn].map(g=>`'${g}'`));return`Unexpected doc.type '${t.type}'.
|
|
149
|
+
Expected it to be ${l}.`}var mr=class extends Error{name="InvalidDocError";constructor(t){super(hr(t)),this.doc=t}},gr=mr;function yr(t,e){if(typeof t=="string")return e(t);let n=new Map;return l(t);function l(E){if(n.has(E))return n.get(E);let S=g(E);return n.set(E,S),S}function g(E){switch(dn(E)){case sn:return e(E.map(l));case Ot:return e({...E,parts:E.parts.map(l)});case Nt:return e({...E,breakContents:l(E.breakContents),flatContents:l(E.flatContents)});case wt:{let{expandedStates:S,contents:L}=E;return S?(S=S.map(l),L=S[0]):L=l(L),e({...E,contents:L,expandedStates:S})}case St:case an:case cn:case fn:case At:return e({...E,contents:l(E.contents)});case rn:case on:case ln:case un:case Ye:case Lt:return e(E);default:throw new gr(E)}}}function vr(t,e=mt){return yr(t,n=>typeof n=="string"?fe(e,n.split(`
|
|
150
|
+
`)):n)}var Mt=()=>{},Be=Mt,hn=Mt,Er=Mt;function nt(t,e){return Be(e),{type:St,contents:e,n:t}}function Ze(t,e={}){return Be(t),hn(e.expandedStates,!0),{type:wt,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function It(t){return nt(Number.NEGATIVE_INFINITY,t)}function br(t){return nt({type:"root"},t)}function Sr(t){return nt(-1,t)}function Pt(t,e){return Ze(t[0],{...e,expandedStates:t})}function mn(t){return Er(t),{type:Ot,parts:t}}function ht(t,e="",n={}){return Be(t),e!==""&&Be(e),{type:Nt,breakContents:t,flatContents:e,groupId:n.groupId}}function wr(t){return Be(t),{type:At,contents:t}}var Tt={type:Lt},Or={type:Ye,hard:!0},Nr={type:Ye,hard:!0,literal:!0},Ve={type:Ye},gn={type:Ye,soft:!0},z=[Or,Tt],mt=[Nr,Tt];function fe(t,e){Be(t),hn(e);let n=[];for(let l=0;l<e.length;l++)l!==0&&n.push(t),n.push(e[l]);return n}function rt(t){return(e,n,l)=>{let g=!!(l!=null&&l.backwards);if(n===!1)return!1;let{length:E}=e,S=n;for(;S>=0&&S<E;){let L=e.charAt(S);if(t instanceof RegExp){if(!t.test(L))return S}else if(!t.includes(L))return S;g?S--:S++}return S===-1||S===E?S:!1}}var $s=rt(/\s/u),$t=rt(" "),Rs=rt(",; "),_s=rt(/[^\n\r]/u);function Ar(t,e,n){let l=!!(n!=null&&n.backwards);if(e===!1)return!1;let g=t.charAt(e);if(l){if(t.charAt(e-1)==="\r"&&g===`
|
|
151
|
+
`)return e-2;if(g===`
|
|
152
|
+
`||g==="\r"||g==="\u2028"||g==="\u2029")return e-1}else{if(g==="\r"&&t.charAt(e+1)===`
|
|
153
|
+
`)return e+2;if(g===`
|
|
154
|
+
`||g==="\r"||g==="\u2028"||g==="\u2029")return e+1}return e}var Rt=Ar;function Lr(t,e){let n=e-1;n=$t(t,n,{backwards:!0}),n=Rt(t,n,{backwards:!0}),n=$t(t,n,{backwards:!0});let l=Rt(t,n,{backwards:!0});return n!==l}var Mr=Lr,Tr=class extends Error{name="UnexpectedNodeError";constructor(t,e,n="type"){super(`Unexpected ${e} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},xr=Tr;function yn(t,e){let{node:n}=t;if(n.type==="root"&&e.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/u.test(e.filepath))return async l=>{let g=await l(e.originalText,{parser:"json"});return g?[g,z]:void 0}}yn.getVisitorKeys=()=>[];var kr=yn,We=null;function Ke(t){if(We!==null&&typeof We.property){let e=We;return We=Ke.prototype=null,e}return We=Ke.prototype=t??Object.create(null),new Ke}var Cr=10;for(let t=0;t<=Cr;t++)Ke();function Ir(t){return Ke(t)}function Pr(t,e="type"){Ir(t);function n(l){let g=l[e],E=t[g];if(!Array.isArray(E))throw Object.assign(new Error(`Missing visitor keys for '${g}'.`),{node:l});return E}return n}var $r=Pr,Rr=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([t,e])=>[t,[...e,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),_r=Rr,Br=$r(_r),Yr=Br;function ze(t){return t.position.start.offset}function Dr(t){return t.position.end.offset}function Fr(t){return/^\s*@(?:prettier|format)\s*$/u.test(t)}function Wr(t){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/u.test(t)}function jr(t){return`# @format
|
|
155
|
+
|
|
156
|
+
${t}`}function qr(t){return Array.isArray(t)&&t.length>0}var Qe=qr;function Ae(t,e){return typeof t?.type=="string"&&(!e||e.includes(t.type))}function vn(t,e,n){return e("children"in t?{...t,children:t.children.map(l=>vn(l,e,t))}:t,n)}function je(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function Kr(t,e){let n=0,l=e.length;for(let g=t.position.end.offset-1;g<l;g++){let E=e[g];if(E===`
|
|
157
|
+
`&&n++,n===1&&/\S/u.test(E))return!1;if(n===2)return!0}return!1}function En(t){let{node:e}=t;switch(e.type){case"tag":case"anchor":case"comment":return!1}let n=t.stack.length;for(let l=1;l<n;l++){let g=t.stack[l],E=t.stack[l-1];if(Array.isArray(E)&&typeof g=="number"&&g!==E.length-1)return!1}return!0}function gt(t){return Qe(t.children)?gt(ge(!1,t.children,-1)):t}function _t(t){return t.value.trim()==="prettier-ignore"}function Ur(t){let{node:e}=t;if(e.type==="documentBody"){let n=t.parent.head;return be(n)&&_t(ge(!1,n.endComments,-1))}return Te(e)&&_t(ge(!1,e.leadingComments,-1))}function et(t){return!Qe(t.children)&&!Vr(t)}function Vr(t){return Te(t)||Re(t)||bn(t)||Ee(t)||be(t)}function Te(t){return Qe(t?.leadingComments)}function Re(t){return Qe(t?.middleComments)}function bn(t){return t?.indicatorComment}function Ee(t){return t?.trailingComment}function be(t){return Qe(t?.endComments)}function Sn(t){let e=[],n;for(let l of t.split(/( +)/u))l!==" "?n===" "?e.push(l):e.push((e.pop()||"")+l):n===void 0&&e.unshift(""),n=l;return n===" "&&e.push((e.pop()||"")+" "),e[0]===""&&(e.shift(),e.unshift(" "+(e.shift()||""))),e}function Qr(t,e,n){let l=e.split(`
|
|
158
|
+
`).map((g,E,S)=>E===0&&E===S.length-1?g:E!==0&&E!==S.length-1?g.trim():E===0?g.trimEnd():g.trimStart());return n.proseWrap==="preserve"?l.map(g=>g.length===0?[]:[g]):l.map(g=>g.length===0?[]:Sn(g)).reduce((g,E,S)=>S!==0&&l[S-1].length>0&&E.length>0&&!(t==="quoteDouble"&&ge(!1,ge(!1,g,-1),-1).endsWith("\\"))?[...g.slice(0,-1),[...ge(!1,g,-1),...E]]:[...g,E],[]).map(g=>n.proseWrap==="never"?[g.join(" ")]:g)}function Jr(t,{parentIndent:e,isLastDescendant:n,options:l}){let g=t.position.start.line===t.position.end.line?"":l.originalText.slice(t.position.start.offset,t.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1],E;if(t.indent===null){let M=g.match(/^(?<leadingSpace> *)[^\n\r ]/mu);E=M?M.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else E=t.indent-1+e;let S=g.split(`
|
|
159
|
+
`).map(M=>M.slice(E));if(l.proseWrap==="preserve"||t.type==="blockLiteral")return L(S.map(M=>M.length===0?[]:[M]));return L(S.map(M=>M.length===0?[]:Sn(M)).reduce((M,I,P)=>P!==0&&S[P-1].length>0&&I.length>0&&!/^\s/u.test(I[0])&&!/^\s|\s$/u.test(ge(!1,M,-1))?[...M.slice(0,-1),[...ge(!1,M,-1),...I]]:[...M,I],[]).map(M=>M.reduce((I,P)=>I.length>0&&/\s$/u.test(ge(!1,I,-1))?[...I.slice(0,-1),ge(!1,I,-1)+" "+P]:[...I,P],[])).map(M=>l.proseWrap==="never"?[M.join(" ")]:M));function L(M){if(t.chomping==="keep")return ge(!1,M,-1).length===0?M.slice(0,-1):M;let I=0;for(let P=M.length-1;P>=0&&M[P].length===0;P--)I++;return I===0?M:I>=2&&!n?M.slice(0,-(I-1)):M.slice(0,-I)}}function yt(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var at=new WeakMap;function wn(t,e){let{node:n,root:l}=t,g;return at.has(l)?g=at.get(l):(g=new Set,at.set(l,g)),!g.has(n.position.end.line)&&(g.add(n.position.end.line),Kr(n,e)&&!On(t.parent))?gn:""}function On(t){return be(t)&&!Ae(t,["documentHead","documentBody","flowMapping","flowSequence"])}function me(t,e){return nt(" ".repeat(t),e)}function Hr(t,e,n){let{node:l}=t,g=t.ancestors.filter(I=>I.type==="sequence"||I.type==="mapping").length,E=En(t),S=[l.type==="blockFolded"?">":"|"];l.indent!==null&&S.push(l.indent.toString()),l.chomping!=="clip"&&S.push(l.chomping==="keep"?"+":"-"),bn(l)&&S.push(" ",e("indicatorComment"));let L=Jr(l,{parentIndent:g,isLastDescendant:E,options:n}),M=[];for(let[I,P]of L.entries())I===0&&M.push(z),M.push(mn(fe(Ve,P))),I!==L.length-1?M.push(P.length===0?z:br(mt)):l.chomping==="keep"&&E&&M.push(It(P.length===0?z:mt));return l.indent===null?S.push(Sr(me(n.tabWidth,M))):S.push(It(me(l.indent-1+g,M))),S}var Gr=Hr;function Bt(t,e,n){let{node:l}=t,g=l.type==="flowMapping",E=g?"{":"[",S=g?"}":"]",L=gn;g&&l.children.length>0&&n.bracketSpacing&&(L=Ve);let M=ge(!1,l.children,-1),I=M?.type==="flowMappingItem"&&et(M.key)&&et(M.value);return[E,me(n.tabWidth,[L,Xr(t,e,n),n.trailingComma==="none"?"":ht(","),be(l)?[z,fe(z,t.map(e,"endComments"))]:""]),I?"":L,S]}function Xr(t,e,n){return t.map(({isLast:l,node:g,next:E})=>[e(),l?"":[",",Ve,g.position.start.line!==E.position.start.line?wn(t,n.originalText):""]],"children")}function Zr(t,e,n){var l;let{node:g,parent:E}=t,{key:S,value:L}=g,M=et(S),I=et(L);if(M&&I)return": ";let P=e("key"),Q=zr(g)?" ":"";if(I)return g.type==="flowMappingItem"&&E.type==="flowMapping"?P:g.type==="mappingItem"&<(S.content,n)&&!Ee(S.content)&&((l=E.tag)==null?void 0:l.value)!=="tag:yaml.org,2002:set"?[P,Q,":"]:["? ",me(2,P)];let ne=e("value");if(M)return[": ",me(2,ne)];if(Te(L)||!yt(S.content))return["? ",me(2,P),z,...t.map(()=>[e(),z],"value","leadingComments"),": ",me(2,ne)];if(ei(S.content)&&!Te(S.content)&&!Re(S.content)&&!Ee(S.content)&&!be(S)&&!Te(L.content)&&!Re(L.content)&&!be(L)&<(L.content,n))return[P,Q,": ",ne];let j=Symbol("mappingKey"),X=Ze([ht("? "),Ze(me(2,P),{id:j})]),U=[z,": ",me(2,ne)],G=[Q,":"];Te(L.content)||be(L)&&L.content&&!Ae(L.content,["mapping","sequence"])||E.type==="mapping"&&Ee(S.content)&&yt(L.content)||Ae(L.content,["mapping","sequence"])&&L.content.tag===null&&L.content.anchor===null?G.push(z):L.content?G.push(Ve):Ee(L)&&G.push(" "),G.push(ne);let ae=me(n.tabWidth,G);return lt(S.content,n)&&!Te(S.content)&&!Re(S.content)&&!be(S)?Pt([[P,ae]]):Pt([[X,ht(U,ae,{groupId:j})]])}function lt(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/mu.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(`
|
|
160
|
+
`);case"always":return!/[\n ]/u.test(t.value);default:return!1}}function zr(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function ei(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var ti=Zr;function ni(t){return vn(t,ri)}function ri(t){switch(t.type){case"document":je(t,"head",()=>t.children[0]),je(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":je(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":je(t,"key",()=>t.children[0]),je(t,"value",()=>t.children[1]);break}return t}var ii=ni;function si(t,e,n){let{node:l}=t,g=[];l.type!=="mappingValue"&&Te(l)&&g.push([fe(z,t.map(n,"leadingComments")),z]);let{tag:E,anchor:S}=l;E&&g.push(n("tag")),E&&S&&g.push(" "),S&&g.push(n("anchor"));let L="";return Ae(l,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!En(t)&&(L=wn(t,e.originalText)),(E||S)&&(Ae(l,["sequence","mapping"])&&!Re(l)?g.push(z):g.push(" ")),Re(l)&&g.push([l.middleComments.length===1?"":z,fe(z,t.map(n,"middleComments")),z]),Ur(t)?g.push(vr(e.originalText.slice(l.position.start.offset,l.position.end.offset).trimEnd())):g.push(Ze(oi(t,e,n))),Ee(l)&&!Ae(l,["document","documentHead"])&&g.push(wr([l.type==="mappingValue"&&!l.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&yt(l)?"":Tt,n("trailingComment")])),On(l)&&g.push(me(l.type==="sequenceItem"?2:0,[z,fe(z,t.map(({node:M})=>[Mr(e.originalText,ze(M))?z:"",n()],"endComments"))])),g.push(L),g}function oi(t,e,n){let{node:l}=t;switch(l.type){case"root":{let g=[];t.each(({node:S,next:L,isFirst:M})=>{M||g.push(z),g.push(n()),Nn(S,L)?(g.push(z,"..."),Ee(S)&&g.push(" ",n("trailingComment"))):L&&!Ee(L.head)&&g.push(z,"---")},"children");let E=gt(l);return(!Ae(E,["blockLiteral","blockFolded"])||E.chomping!=="keep")&&g.push(z),g}case"document":{let g=[];return li(t,e)==="head"&&((l.head.children.length>0||l.head.endComments.length>0)&&g.push(n("head")),Ee(l.head)?g.push(["---"," ",n(["head","trailingComment"])]):g.push("---")),ai(l)&&g.push(n("body")),fe(z,g)}case"documentHead":return fe(z,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:g,endComments:E}=l,S="";if(g.length>0&&E.length>0){let L=gt(l);Ae(L,["blockFolded","blockLiteral"])?L.chomping!=="keep"&&(S=[z,z]):S=z}return[fe(z,t.map(n,"children")),S,fe(z,t.map(n,"endComments"))]}case"directive":return["%",fe(" ",[l.name,...l.parameters])];case"comment":return["#",l.value];case"alias":return["*",l.value];case"tag":return e.originalText.slice(l.position.start.offset,l.position.end.offset);case"anchor":return["&",l.value];case"plain":return qe(l.type,e.originalText.slice(l.position.start.offset,l.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let g="'",E='"',S=e.originalText.slice(l.position.start.offset+1,l.position.end.offset-1);if(l.type==="quoteSingle"&&S.includes("\\")||l.type==="quoteDouble"&&/\\[^"]/u.test(S)){let M=l.type==="quoteDouble"?E:g;return[M,qe(l.type,S,e),M]}if(S.includes(E))return[g,qe(l.type,l.type==="quoteDouble"?ot(!1,ot(!1,S,String.raw`\"`,E),"'",g.repeat(2)):S,e),g];if(S.includes(g))return[E,qe(l.type,l.type==="quoteSingle"?ot(!1,S,"''",g):S,e),E];let L=e.singleQuote?g:E;return[L,qe(l.type,S,e),L]}case"blockFolded":case"blockLiteral":return Gr(t,n,e);case"mapping":case"sequence":return fe(z,t.map(n,"children"));case"sequenceItem":return["- ",me(2,l.content?n("content"):"")];case"mappingKey":case"mappingValue":return l.content?n("content"):"";case"mappingItem":case"flowMappingItem":return ti(t,n,e);case"flowMapping":return Bt(t,n,e);case"flowSequence":return Bt(t,n,e);case"flowSequenceItem":return n("content");default:throw new xr(l,"YAML")}}function ai(t){return t.body.children.length>0||be(t.body)}function Nn(t,e){return Ee(t)||e&&(e.head.children.length>0||be(e.head))}function li(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/u.test(e.originalText.slice(ze(n),ze(n)+4))||n.head.children.length>0||be(n.head)||Ee(n.head))return"head";let l=t.next;return Nn(n,l)?!1:l?"root":!1}function qe(t,e,n){let l=Qr(t,e,n);return fe(z,l.map(g=>mn(fe(Ve,g))))}function An(t,e){if(Ae(t))switch(t.type){case"comment":if(Fr(t.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}An.ignoredProperties=new Set(["position"]);var ci={preprocess:ii,embed:kr,print:si,massageAstNode:An,insertPragma:jr,getVisitorKeys:Yr},ui=ci,fi=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"]}],ct={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},pi={bracketSpacing:ct.bracketSpacing,singleQuote:ct.singleQuote,proseWrap:ct.proseWrap},di=pi,Ln={};qt(Ln,{yaml:()=>Is});var He=`
|
|
161
|
+
`,Yt="\r",hi=function(){function t(e){this.length=e.length;for(var n=[0],l=0;l<e.length;)switch(e[l]){case He:l+=He.length,n.push(l);break;case Yt:l+=Yt.length,e[l]===He&&(l+=He.length),n.push(l);break;default:l++;break}this.offsets=n}return t.prototype.locationForIndex=function(e){if(e<0||e>this.length)return null;for(var n=0,l=this.offsets;l[n+1]<=e;)n++;var g=e-l[n];return{line:n,column:g}},t.prototype.indexForLocation=function(e){var n=e.line,l=e.column;return n<0||n>=this.offsets.length||l<0||l>this.lengthOfLine(n)?null:this.offsets[n]+l},t.prototype.lengthOfLine=function(e){var n=this.offsets[e],l=e===this.offsets.length-1?this.length:this.offsets[e+1];return l-n},t}();function pe(t,e=null){"children"in t&&t.children.forEach(n=>pe(n,t)),"anchor"in t&&t.anchor&&pe(t.anchor,t),"tag"in t&&t.tag&&pe(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>pe(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>pe(n,t)),"indicatorComment"in t&&t.indicatorComment&&pe(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&pe(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>pe(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function tt(t){return`${t.line}:${t.column}`}function mi(t){pe(t);let e=gi(t),n=t.children.slice();t.comments.sort((l,g)=>l.position.start.offset-g.position.end.offset).filter(l=>!l._parent).forEach(l=>{for(;n.length>1&&l.position.start.line>n[0].position.end.line;)n.shift();yi(l,e,n[0])})}function gi(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return Mn(e,t),e}function Mn(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:l}=t[n.line-1];(!l||n.column<l.position.start.column)&&(t[n.line-1].leadingAttachableNode=e)}if("trailingComment"in e&&e.position.end.column>1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:l}=t[n.line-1];(!l||n.column>=l.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:l}=e.position,g=[l.line].concat(n.line===l.line?[]:n.line);for(let E of g){let S=t[E-1].trailingNode;(!S||l.column>=S.position.end.column)&&(t[E-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{Mn(t,n)})}}function yi(t,e,n){let l=t.position.start.line,{trailingAttachableNode:g}=e[l-1];if(g){if(g.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${tt(t.position.start)}`);pe(t,g),g.trailingComment=t;return}for(let S=l;S>=n.position.start.line;S--){let{trailingNode:L}=e[S-1],M;if(L)M=L;else if(S!==l&&e[S-1].comment)M=e[S-1].comment._parent;else continue;if((M.type==="sequence"||M.type==="mapping")&&(M=M.children[0]),M.type==="mappingItem"){let[I,P]=M.children;M=Tn(I)?I:P}for(;;){if(vi(M,t)){pe(t,M),M.endComments.push(t);return}if(!M._parent)break;M=M._parent}break}for(let S=l+1;S<=n.position.end.line;S++){let{leadingAttachableNode:L}=e[S-1];if(L){pe(t,L),L.leadingComments.push(t);return}}let E=n.children[1];pe(t,E),E.endComments.push(t)}function vi(t,e){if(t.position.start.offset<e.position.start.offset&&t.position.end.offset>e.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offset<t.position.end.offset)return!1;switch(t.type){case"sequenceItem":return e.position.start.column>t.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Tn(t));default:return!1}}function Tn(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function le(t,e){return{type:t,position:e}}function Ei(t,e,n){return{...le("root",t),children:e,comments:n}}function Xe(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):Xe(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):Xe(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&Xe(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function De(){return{leadingComments:[]}}function it(t=null){return{trailingComment:t}}function Pe(){return{...De(),...it()}}function bi(t,e,n){return{...le("alias",t),...Pe(),...e,value:n}}function Si(t,e){let n=t.cstNode;return bi(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function wi(t){return{...t,type:"blockFolded"}}function Oi(t,e,n,l,g,E){return{...le("blockValue",t),...De(),...e,chomping:n,indent:l,value:g,indicatorComment:E}}var _e;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(_e||(_e={}));function Ni(t,e){return{...le("anchor",t),value:e}}function xt(t,e){return{...le("comment",t),value:e}}function Ai(t,e,n){return{anchor:e,tag:t,middleComments:n}}function Li(t,e){return{...le("tag",t),value:e}}function xn(t,e,n=()=>!1){let l=t.cstNode,g=[],E=null,S=null,L=null;for(let M of l.props){let I=e.text[M.origStart];switch(I){case _e.Tag:E=E||M,S=Li(e.transformRange(M),t.tag);break;case _e.Anchor:E=E||M,L=Ni(e.transformRange(M),l.anchor);break;case _e.Comment:{let P=xt(e.transformRange(M),e.text.slice(M.origStart+1,M.origEnd));e.comments.push(P),!n(P)&&E&&E.origEnd<=M.origStart&&M.origEnd<=l.valueRange.origStart&&g.push(P);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(I)}`)}}return Ai(S,L,g)}var vt;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(vt||(vt={}));function kn(t,e){let n=t.cstNode,l=1,g=n.chomping==="CLIP"?0:1,E=n.header.origEnd-n.header.origStart-l-g!==0,S=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),L=null,M=xn(t,e,I=>{if(!(S.start.offset<I.position.start.offset&&I.position.end.offset<S.end.offset))return!1;if(L)throw new Error(`Unexpected multiple indicator comments at ${tt(I.position.start)}`);return L=I,!0});return Oi(S,M,vt[n.chomping],E?n.blockIndent:null,n.strValue,L)}function Mi(t,e){return wi(kn(t,e))}function Ti(t){return{...t,type:"blockLiteral"}}function xi(t,e){return Ti(kn(t,e))}function ki(t,e){return xt(e.transformRange(t.range),t.comment)}function Ci(t,e,n){return{...le("directive",t),...Pe(),name:e,parameters:n}}function kt(t,e){for(let n of t.props){let l=e.text[n.origStart];switch(l){case _e.Comment:e.comments.push(xt(e.transformRange(n),e.text.slice(n.origStart+1,n.origEnd)));break;default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}}function Ii(t,e){return kt(t,e),Ci(e.transformRange(t.range),t.name,t.parameters)}function Pi(t,e,n,l){return{...le("document",t),...it(l),children:[e,n]}}function Ce(t,e){return{start:t,end:e}}function Dt(t){return{start:t,end:t}}function $e(t=[]){return{endComments:t}}function $i(t,e,n){return{...le("documentBody",t),...$e(n),children:e?[e]:[]}}function xe(t){return t[t.length-1]}function Cn(t,e){let n=t.match(e);return n?n.index:-1}function Ri(t,e,n){let l=t.cstNode,{comments:g,endComments:E,documentTrailingComment:S,documentHeadTrailingComment:L}=_i(l,e,n),M=e.transformNode(t.contents),{position:I,documentEndPoint:P}=Bi(l,M,e);return e.comments.push(...g,...E),{documentBody:$i(I,M,E),documentEndPoint:P,documentTrailingComment:S,documentHeadTrailingComment:L}}function _i(t,e,n){let l=[],g=[],E=[],S=[],L=!1;for(let M=t.contents.length-1;M>=0;M--){let I=t.contents[M];if(I.type==="COMMENT"){let P=e.transformNode(I);n&&n.line===P.position.start.line?S.unshift(P):L?l.unshift(P):P.position.start.offset>=t.valueRange.origEnd?E.unshift(P):l.unshift(P)}else L=!0}if(E.length>1)throw new Error(`Unexpected multiple document trailing comments at ${tt(E[1].position.start)}`);if(S.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${tt(S[1].position.start)}`);return{comments:l,endComments:g,documentTrailingComment:xe(E)||null,documentHeadTrailingComment:xe(S)||null}}function Bi(t,e,n){let l=Cn(n.text.slice(t.valueRange.origEnd),/^\.\.\./),g=l===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[g-1]==="\r"&&g--;let E=n.transformRange({origStart:e!==null?e.position.start.offset:g,origEnd:g}),S=l===-1?E.end:n.transformOffset(t.valueRange.origEnd+3);return{position:E,documentEndPoint:S}}function Yi(t,e,n,l){return{...le("documentHead",t),...$e(n),...it(l),children:e}}function Di(t,e){let n=t.cstNode,{directives:l,comments:g,endComments:E}=Fi(n,e),{position:S,endMarkerPoint:L}=Wi(n,l,e);return e.comments.push(...g,...E),{createDocumentHeadWithTrailingComment:M=>(M&&e.comments.push(M),Yi(S,l,E,M)),documentHeadEndMarkerPoint:L}}function Fi(t,e){let n=[],l=[],g=[],E=!1;for(let S=t.directives.length-1;S>=0;S--){let L=e.transformNode(t.directives[S]);L.type==="comment"?E?l.unshift(L):g.unshift(L):(E=!0,n.unshift(L))}return{directives:n,comments:l,endComments:g}}function Wi(t,e,n){let l=Cn(n.text.slice(0,t.valueRange.origStart),/---\s*$/);l>0&&!/[\r\n]/.test(n.text[l-1])&&(l=-1);let g=l===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:l,origEnd:l+3};return e.length!==0&&(g.origStart=e[0].position.start.offset),{position:n.transformRange(g),endMarkerPoint:l===-1?null:n.transformOffset(l)}}function ji(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:l}=Di(t,e),{documentBody:g,documentEndPoint:E,documentTrailingComment:S,documentHeadTrailingComment:L}=Ri(t,e,l),M=n(L);return S&&e.comments.push(S),Pi(Ce(M.position.start,E),M,g,S)}function In(t,e,n){return{...le("flowCollection",t),...Pe(),...$e(),...e,children:n}}function qi(t,e,n){return{...In(t,e,n),type:"flowMapping"}}function Pn(t,e,n){return{...le("flowMappingItem",t),...De(),children:[e,n]}}function st(t,e){let n=[];for(let l of t)l&&"type"in l&&l.type==="COMMENT"?e.comments.push(e.transformNode(l)):n.push(l);return n}function $n(t){let[e,n]=["?",":"].map(l=>{let g=t.find(E=>"char"in E&&E.char===l);return g?{origStart:g.origOffset,origEnd:g.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function Rn(t,e){let n=e;return l=>t.slice(n,n=l)}function _n(t){let e=[],n=Rn(t,1),l=!1;for(let g=1;g<t.length-1;g++){let E=t[g];if("char"in E&&E.char===","){e.push(n(g)),n(g+1),l=!1;continue}l=!0}return l&&e.push(n(t.length-1)),e}function Ft(t,e){return{...le("mappingKey",t),...it(),...$e(),children:e?[e]:[]}}function Wt(t,e){return{...le("mappingValue",t),...Pe(),...$e(),children:e?[e]:[]}}function Ct(t,e,n,l,g){let E=e.transformNode(t.key),S=e.transformNode(t.value),L=E||l?Ft(e.transformRange({origStart:l?l.origStart:E.position.start.offset,origEnd:E?E.position.end.offset:l.origStart+1}),E):null,M=S||g?Wt(e.transformRange({origStart:g?g.origStart:S.position.start.offset,origEnd:S?S.position.end.offset:g.origStart+1}),S):null;return n(Ce(L?L.position.start:M.position.start,M?M.position.end:L.position.end),L||Ft(Dt(M.position.start),null),M||Wt(Dt(L.position.end),null))}function Ki(t,e){let n=st(t.cstNode.items,e),l=_n(n),g=t.items.map((L,M)=>{let I=l[M],{additionalKeyRange:P,additionalValueRange:Q}=$n(I);return Ct(L,e,Pn,P,Q)}),E=n[0],S=xe(n);return qi(e.transformRange({origStart:E.origOffset,origEnd:S.origOffset+1}),e.transformContent(t),g)}function Ui(t,e,n){return{...In(t,e,n),type:"flowSequence"}}function Vi(t,e){return{...le("flowSequenceItem",t),children:[e]}}function Qi(t,e){let n=st(t.cstNode.items,e),l=_n(n),g=t.items.map((L,M)=>{if(L.type!=="PAIR"){let I=e.transformNode(L);return Vi(Ce(I.position.start,I.position.end),I)}else{let I=l[M],{additionalKeyRange:P,additionalValueRange:Q}=$n(I);return Ct(L,e,Pn,P,Q)}}),E=n[0],S=xe(n);return Ui(e.transformRange({origStart:E.origOffset,origEnd:S.origOffset+1}),e.transformContent(t),g)}function Ji(t,e,n){return{...le("mapping",t),...De(),...e,children:n}}function Hi(t,e,n){return{...le("mappingItem",t),...De(),children:[e,n]}}function Gi(t,e){let n=t.cstNode;n.items.filter(S=>S.type==="MAP_KEY"||S.type==="MAP_VALUE").forEach(S=>kt(S,e));let l=st(n.items,e),g=Xi(l),E=t.items.map((S,L)=>{let M=g[L],[I,P]=M[0].type==="MAP_VALUE"?[null,M[0].range]:[M[0].range,M.length===1?null:M[1].range];return Ct(S,e,Hi,I,P)});return Ji(Ce(E[0].position.start,xe(E).position.end),e.transformContent(t),E)}function Xi(t){let e=[],n=Rn(t,0),l=!1;for(let g=0;g<t.length;g++){if(t[g].type==="MAP_VALUE"){e.push(n(g+1)),l=!1;continue}l&&e.push(n(g)),l=!0}return l&&e.push(n(1/0)),e}function Zi(t,e,n){return{...le("plain",t),...Pe(),...e,value:n}}function zi(t,e,n){for(let l=e;l>=0;l--)if(n.test(t[l]))return l;return-1}function es(t,e){let n=t.cstNode;return Zi(e.transformRange({origStart:n.valueRange.origStart,origEnd:zi(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function ts(t){return{...t,type:"quoteDouble"}}function ns(t,e,n){return{...le("quoteValue",t),...e,...Pe(),value:n}}function Bn(t,e){let n=t.cstNode;return ns(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function rs(t,e){return ts(Bn(t,e))}function is(t){return{...t,type:"quoteSingle"}}function ss(t,e){return is(Bn(t,e))}function os(t,e,n){return{...le("sequence",t),...De(),...$e(),...e,children:n}}function as(t,e){return{...le("sequenceItem",t),...Pe(),...$e(),children:e?[e]:[]}}function ls(t,e){let n=st(t.cstNode.items,e).map((l,g)=>{kt(l,e);let E=e.transformNode(t.items[g]);return as(Ce(e.transformOffset(l.valueRange.origStart),E===null?e.transformOffset(l.valueRange.origStart+1):E.position.end),E)});return os(Ce(n[0].position.start,xe(n).position.end),e.transformContent(t),n)}function cs(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return Si(t,e);case"BLOCK_FOLDED":return Mi(t,e);case"BLOCK_LITERAL":return xi(t,e);case"COMMENT":return ki(t,e);case"DIRECTIVE":return Ii(t,e);case"DOCUMENT":return ji(t,e);case"FLOW_MAP":return Ki(t,e);case"FLOW_SEQ":return Qi(t,e);case"MAP":return Gi(t,e);case"PLAIN":return es(t,e);case"QUOTE_DOUBLE":return rs(t,e);case"QUOTE_SINGLE":return ss(t,e);case"SEQ":return ls(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}function us(t,e,n){let l=new SyntaxError(t);return l.name="YAMLSyntaxError",l.source=e,l.position=n,l}function fs(t,e){let n=t.source.range||t.source.valueRange;return us(t.message,e.text,e.transformRange(n))}function ps(t,e,n){return{offset:t,line:e,column:n}}function ds(t,e){t<0?t=0:t>e.text.length&&(t=e.text.length);let n=e.locator.locationForIndex(t);return ps(t,n.line+1,n.column+1)}function hs(t,e){return Ce(e.transformOffset(t.origStart),e.transformOffset(t.origEnd))}function ms(t){if(!t.setOrigRanges()){let e=n=>{if(gs(n))return n.origStart=n.start,n.origEnd=n.end,!0;if(ys(n))return n.origOffset=n.offset,!0};t.forEach(n=>Et(n,e))}}function Et(t,e){if(!(!t||typeof t!="object")&&e(t)!==!0)for(let n of Object.keys(t)){if(n==="context"||n==="error")continue;let l=t[n];Array.isArray(l)?l.forEach(g=>Et(g,e)):Et(l,e)}}function gs(t){return typeof t.start=="number"}function ys(t){return typeof t.offset=="number"}function Yn(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(Yn)}return t}function jt(t,e,n,l){let g=e(t);return E=>{l(g,E)&&n(t,g=E)}}function Dn(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(Dn),t.type==="document"){let[E,S]=t.children;E.position.start.offset===E.position.end.offset?E.position.start=E.position.end=S.position.start:S.position.start.offset===S.position.end.offset&&(S.position.start=S.position.end=E.position.end)}let n=jt(t.position,vs,Es,ws),l=jt(t.position,bs,Ss,Os);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),l(xe(t.endComments).position.end));let g=e.filter(E=>E!==null);if(g.length!==0){let E=g[0],S=xe(g);n(E.position.start),l(S.position.end),"leadingComments"in E&&E.leadingComments.length!==0&&n(E.leadingComments[0].position.start),"tag"in E&&E.tag&&n(E.tag.position.start),"anchor"in E&&E.anchor&&n(E.anchor.position.start),"trailingComment"in S&&S.trailingComment&&l(S.trailingComment.position.end)}}function vs(t){return t.start}function Es(t,e){t.start=e}function bs(t){return t.end}function Ss(t,e){t.end=e}function ws(t,e){return e.offset<t.offset}function Os(t,e){return e.offset>t.offset}var Ns=Kt(lr(),1),ye=Kt(cr(),1),Bs=ye.default.findPair,Ys=ye.default.toJSON,Ds=ye.default.parseMap,Fs=ye.default.parseSeq,Ws=ye.default.stringifyNumber,js=ye.default.stringifyString,qs=ye.default.Type,Ks=ye.default.YAMLError,Us=ye.default.YAMLReferenceError,As=ye.default.YAMLSemanticError,Vs=ye.default.YAMLSyntaxError,Qs=ye.default.YAMLWarning,{Document:Ls,parseCST:Ms}=Ns.default;function Ts(t){let e=Ms(t);ms(e);let n=e.map(L=>new Ls({merge:!1,keepCstNodes:!0}).parse(L)),l=new hi(t),g=[],E={text:t,locator:l,comments:g,transformOffset:L=>ds(L,E),transformRange:L=>hs(L,E),transformNode:L=>cs(L,E),transformContent:L=>xn(L,E)};for(let L of n)for(let M of L.errors)if(!(M instanceof As&&M.message==='Map keys must be unique; "<<" is repeated'))throw fs(M,E);n.forEach(L=>Xe(L.cstNode));let S=Ei(E.transformRange({origStart:0,origEnd:E.text.length}),n.map(E.transformNode),g);return mi(S),Dn(S),Yn(S),S}function xs(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var ks=xs;function Cs(t){try{let e=Ts(t);return delete e.comments,e}catch(e){throw e!=null&&e.position?ks(e.message,{loc:e.position,cause:e}):e}}var Is={astFormat:"yaml",parse:Cs,hasPragma:Wr,locStart:ze,locEnd:Dr},Ps={yaml:ui},Js=nn;export{Js as default,fi as languages,di as options,Ln as parsers,Ps as printers};
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface RouteLink {
|
|
2
|
+
label: string;
|
|
3
|
+
type: "link";
|
|
4
|
+
href: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
/** If true, the route will only be considered active if the path is exactly this value. */
|
|
7
|
+
exactMatch?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface RouteFunction {
|
|
11
|
+
label: string;
|
|
12
|
+
type: "function";
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
/** If true, the route will only be considered active if the path is exactly this value. */
|
|
16
|
+
exactMatch?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ProofKitRoute = RouteLink | RouteFunction;
|
package/package.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@proofkit/cli",
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
|
+
"description": "Create web application with the ProofKit stack",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/proofgeist/proofkit.git",
|
|
9
|
+
"directory": "packages/cli"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"proofkit",
|
|
13
|
+
"filemaker",
|
|
14
|
+
"ottomatic",
|
|
15
|
+
"proofgeist",
|
|
16
|
+
"next.js",
|
|
17
|
+
"typescript"
|
|
18
|
+
],
|
|
19
|
+
"type": "module",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"import": "./dist/index.js",
|
|
23
|
+
"types": "./index.d.ts"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"bin": {
|
|
27
|
+
"proofkit": "dist/index.js"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"index.d.ts",
|
|
32
|
+
"template",
|
|
33
|
+
"README.md",
|
|
34
|
+
"LICENSE",
|
|
35
|
+
"CHANGELOG.md",
|
|
36
|
+
"package.json"
|
|
37
|
+
],
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": "^20.0.0 || ^22.0.0"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@clack/core": "^0.3.4",
|
|
43
|
+
"@clack/prompts": "^0.10.1",
|
|
44
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
|
|
45
|
+
"@types/glob": "^8.1.0",
|
|
46
|
+
"axios": "^1.7.3",
|
|
47
|
+
"chalk": "5.2.0",
|
|
48
|
+
"commander": "^10.0.1",
|
|
49
|
+
"dotenv": "^16.4.7",
|
|
50
|
+
"es-toolkit": "^1.15.1",
|
|
51
|
+
"execa": "^9.5.1",
|
|
52
|
+
"fs-extra": "^11.3.0",
|
|
53
|
+
"glob": "^11.0.1",
|
|
54
|
+
"gradient-string": "^2.0.2",
|
|
55
|
+
"jiti": "^1.21.6",
|
|
56
|
+
"jsonc-parser": "^3.3.1",
|
|
57
|
+
"open": "^10.1.0",
|
|
58
|
+
"ora": "6.3.1",
|
|
59
|
+
"randomstring": "^1.3.0",
|
|
60
|
+
"semver": "^7.6.3",
|
|
61
|
+
"sort-package-json": "^2.10.0",
|
|
62
|
+
"ts-morph": "^25.0.1",
|
|
63
|
+
"@proofkit/fmdapi": "5.0.0-beta.0"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@auth/drizzle-adapter": "^1.1.0",
|
|
67
|
+
"@auth/prisma-adapter": "^1.6.0",
|
|
68
|
+
"@libsql/client": "^0.6.0",
|
|
69
|
+
"@planetscale/database": "^1.18.0",
|
|
70
|
+
"@prisma/adapter-planetscale": "^5.14.0",
|
|
71
|
+
"@prisma/client": "^5.14.0",
|
|
72
|
+
"@t3-oss/env-nextjs": "^0.10.1",
|
|
73
|
+
"@tanstack/react-query": "^5.49.2",
|
|
74
|
+
"@trpc/client": "11.0.0-rc.441",
|
|
75
|
+
"@trpc/next": "11.0.0-rc.441",
|
|
76
|
+
"@trpc/react-query": "11.0.0-rc.441",
|
|
77
|
+
"@trpc/server": "11.0.0-rc.441",
|
|
78
|
+
"@types/axios": "^0.14.0",
|
|
79
|
+
"@types/fs-extra": "^11.0.4",
|
|
80
|
+
"@types/gradient-string": "^1.1.6",
|
|
81
|
+
"@types/node": "^22.15.19",
|
|
82
|
+
"@types/randomstring": "^1.3.0",
|
|
83
|
+
"@types/react": "^19.1.2",
|
|
84
|
+
"@types/semver": "^7.5.8",
|
|
85
|
+
"@vitest/coverage-v8": "^1.4.0",
|
|
86
|
+
"drizzle-kit": "^0.21.4",
|
|
87
|
+
"drizzle-orm": "^0.30.10",
|
|
88
|
+
"mysql2": "^3.9.7",
|
|
89
|
+
"next": "^15.3.3",
|
|
90
|
+
"next-auth": "^4.24.7",
|
|
91
|
+
"postgres": "^3.4.4",
|
|
92
|
+
"prettier": "^3.5.3",
|
|
93
|
+
"prettier-plugin-tailwindcss": "^0.6.5",
|
|
94
|
+
"prisma": "^5.14.0",
|
|
95
|
+
"react": "^19.1.0",
|
|
96
|
+
"react-dom": "^19.1.0",
|
|
97
|
+
"superjson": "^2.2.1",
|
|
98
|
+
"tailwindcss": "^4.1.4",
|
|
99
|
+
"tsup": "^6.7.0",
|
|
100
|
+
"type-fest": "^3.13.1",
|
|
101
|
+
"typescript": "^5.8.3",
|
|
102
|
+
"vitest": "^3.2.2",
|
|
103
|
+
"zod": "3.25.51",
|
|
104
|
+
"@proofkit/typegen": "1.0.0-beta.4"
|
|
105
|
+
},
|
|
106
|
+
"scripts": {
|
|
107
|
+
"typecheck": "tsc",
|
|
108
|
+
"build": "tsup",
|
|
109
|
+
"dev": "tsup --watch",
|
|
110
|
+
"clean": "rm -rf dist .turbo node_modules",
|
|
111
|
+
"start": "node dist/index.js",
|
|
112
|
+
"lint": "eslint . --ext .ts,.tsx",
|
|
113
|
+
"lint:fix": "pnpm lint --fix",
|
|
114
|
+
"format": "prettier '**/*.{cjs,mjs,ts,tsx,md,json}' --ignore-path ../.gitignore --ignore-unknown --no-error-on-unmatched-pattern --write",
|
|
115
|
+
"format:check": "prettier '**/*.{cjs,mjs,ts,tsx,md,json}' --ignore-path ../.gitignore --ignore-unknown --no-error-on-unmatched-pattern --check",
|
|
116
|
+
"release": "changeset version",
|
|
117
|
+
"pub:beta": "pnpm build && npm publish --tag beta --access public",
|
|
118
|
+
"pub:next": "pnpm build && npm publish --tag next --access public",
|
|
119
|
+
"pub:release": "pnpm build && npm publish --access public",
|
|
120
|
+
"test": "vitest run"
|
|
121
|
+
}
|
|
122
|
+
}
|