diff --git a/.eslintrc.json b/.eslintrc.json index 2f37f3ba0..92145c918 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,11 +2,21 @@ "plugins": ["@typescript-eslint"], "extends": [ "plugin:@typescript-eslint/recommended", - "plugin:astro/recommended" + "plugin:astro/recommended", + "airbnb-base", + "airbnb-typescript/base" ], + "parserOptions": { + "project": true, + "extraFileExtensions": [".astro"] + }, + "ignorePatterns": ["public/scripts/**"], "rules": { "@typescript-eslint/no-unused-vars": "error", - "@typescript-eslint/no-explicit-any": "error" + "@typescript-eslint/no-explicit-any": "error", + "no-await-in-loop": "off", + "no-underscore-dangle": "off", + "import/prefer-default-export": "off" }, "overrides": [ { @@ -16,7 +26,12 @@ "parser": "@typescript-eslint/parser", "extraFileExtensions": [".astro"] }, - "rules": {} + "rules": { + "indent": ["error", 2, { "SwitchCase": 1 }], + "import/prefer-default-export": "off", + "no-nested-ternary": "off", + "max-len": "off" + } } ] } diff --git a/.github/pull.yml b/.github/pull.yml index e1fa4848c..8e897086a 100644 --- a/.github/pull.yml +++ b/.github/pull.yml @@ -1,5 +1,5 @@ version: '1' rules: - base: main - upstream: otoyo:main + upstream: yuanzhongli:main mergeMethod: hardreset diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 335a52172..e8d24afa0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,11 @@ name: Lint on: - push: + # push: + # branches: + deployment: branches: + - main permissions: checks: write @@ -15,10 +18,10 @@ jobs: steps: - name: Check out Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install packages run: npm install - name: Run lint - run: npm run lint + run: npm run lint:fix diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..6cb6a45fc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,16 @@ +{ + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "eslint.useESLintClass": true, + "eslint.validate": [ + "html", + "javascript", + "typescript", + "astro" // this line is required to lint astro files + ], + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "always" + }, + "[astro]": { + "editor.defaultFormatter": "astro-build.astro-vscode" + } +} diff --git a/README.ja.md b/README.ja.md index b9c163904..7855766e4 100644 --- a/README.ja.md +++ b/README.ja.md @@ -2,13 +2,12 @@ # astro-notion-blog -[![GitHub stars](https://img.shields.io/github/stars/otoyo/astro-notion-blog)](https://github.com/otoyo/astro-notion-blog/stargazers) -[![GitHub license](https://img.shields.io/github/license/otoyo/astro-notion-blog)](https://github.com/otoyo/astro-notion-blog/blob/main/LICENSE) -[![GitHub sponsors](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/otoyo) +[![GitHub stars](https://img.shields.io/github/stars/YuanzhongLi/astro-notion-blog-template)](https://github.com/YuanzhongLi/astro-notion-blog-template/stargazers) - + -astro-notion-blog を使えば [Notion](https://www.notion.so) で書けるブログを作ることができます。 +astro-notion-blog-templateは**[astro-notion-blog](https://github.com/otoyo/astro-notion-blog)**をforkし、UIなどを独自にカスタマイズしたものです。 +使えば [Notion](https://www.notion.so) で書けるブログを作ることができます。 ブログは [Astro](https://astro.build/) を使って静的生成されるので非常に高速です。 - :rocket: ページの表示が**爆速** @@ -16,19 +15,27 @@ astro-notion-blog を使えば [Notion](https://www.notion.so) で書けるブ - :hammer_and_wrench: ブログの見た目を**自由にカスタマイズ可能** - :white_check_mark: **Notion 公式 API**を使っているため安心 +詳細については[astro-notion-blog](https://github.com/otoyo/astro-notion-blog)を参考にしてください.otoyoさんに感謝を示します。また気に入ったら元のリポジトリにもスターを付けてください! + +## astro-notion-blog + +[![GitHub stars](https://img.shields.io/github/stars/otoyo/astro-notion-blog)](https://github.com/otoyo/astro-notion-blog/stargazers) +[![GitHub license](https://img.shields.io/github/license/otoyo/astro-notion-blog)](https://github.com/otoyo/astro-notion-blog/blob/main/LICENSE) +[![GitHub sponsors](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/otoyo) + ## :camera_flash: スクリーンショット ### PC - + ### スマートフォン - + -## :globe_with_meridians: デモ +## :globe_with_meridians: 本番環境 -[https://astro-notion-blog.pages.dev](https://astro-notion-blog.pages.dev) +[astro-notion-blog-template.pages.dev](https://astro-notion-blog-template.pages.dev/) ## :motor_scooter: クイックスタート @@ -39,40 +46,39 @@ astro-notion-blog を使えば [Notion](https://www.notion.so) で書けるブ ### ステップ -1. このリポジトリを**スターします** :wink: - - スターしていただけると開発の励みになります -2. [ブログテンプレート](https://otoyo.notion.site/e2c5fa2e8660452988d6137ba57fd974?v=abe305cd8b3d467285e91a2a85f4d8de) を自分の Notion へ複製します -3. 複製したページ(データベース)のアイコン、タイトル、説明を変更します +1. [astro-notion-blogのブログテンプレート](https://otoyo.notion.site/e2c5fa2e8660452988d6137ba57fd974?v=abe305cd8b3d467285e91a2a85f4d8de) を自分の Notion へ複製します +2. 複製したページ(データベース)のアイコン、タイトル、説明を変更します + - ブログのタイトルとAboutページはハードコーディングしているのでその部分の実コードを変更する必要があります。 -4. 複製したページ(データベース)の URL `https://notion.so/your-account/<ここ>?v=xxxx` を `DATABASE_ID` としてメモします +3. 複製したページ(データベース)の URL `https://notion.so/your-account/<ここ>?v=xxxx` を `DATABASE_ID` としてメモします -5. [Create an integration](https://developers.notion.com/docs/create-a-notion-integration#step-1-create-an-integration) からインテグレーションを作成し "Internal Integration Token" を `NOTION_API_SECRET` としてメモします -6. 複製したページを再度開き [Share a database with your integration](https://developers.notion.com/docs/create-a-notion-integration#step-2-share-a-database-with-your-integration) の手順でインテグレーションにデータベースを共有します -7. このリポジトリを自分のアカウントヘフォークします +4. [Create an integration](https://developers.notion.com/docs/create-a-notion-integration#step-1-create-an-integration) からインテグレーションを作成し "Internal Integration Token" を `NOTION_API_SECRET` としてメモします +5. 複製したページを再度開き [Share a database with your integration](https://developers.notion.com/docs/create-a-notion-integration#step-2-share-a-database-with-your-integration) の手順でインテグレーションにデータベースを共有します +6. このリポジトリを自分のアカウントヘフォークします - フォークボタンは画面上部右側のスターの左にあります -8. [Cloudflare Pages](https://pages.cloudflare.com/) を開きサインインします +7. [Cloudflare Pages](https://pages.cloudflare.com/) を開きサインインします - 言語設定を日本語に変更します -9. プロジェクトを "Connect to Git" を選んで作成し、先ほどフォークした `/astro-notion-blog` リポジトリを選んで "Begin setup" をクリックします -10. 「ビルドの設定」で、 - 1. 「フレームワーク プリセット」で Astro を選択します - 2. 「環境変数(アドバンスド)」 を開き `NODE_VERSION`, `NOTION_API_SECRET`, `DATABASE_ID` の 3 つを設定します - - `NODE_VERSION` は `v18.16.0` かそれ以上を指定します - - 詳しくは [How to deploy a site with Git](https://docs.astro.build/en/guides/deploy/cloudflare/#how-to-deploy-a-site-with-git) をご覧ください +8. プロジェクトを "Connect to Git" を選んで作成し、先ほどフォークした `/astro-notion-blog` リポジトリを選んで "Begin setup" をクリックします +9. 「ビルドの設定」で、 + 1. 「フレームワーク プリセット」で Astro を選択します + 2. 「環境変数(アドバンスド)」 を開き `NODE_VERSION`, `NOTION_API_SECRET`, `DATABASE_ID` の 3 つを設定します + - `NODE_VERSION` は `v18.16.0` かそれ以上を指定します + - 詳しくは [How to deploy a site with Git](https://docs.astro.build/en/guides/deploy/cloudflare/#how-to-deploy-a-site-with-git) をご覧ください -11. "Save and Deploy" をクリックし、デプロイが完了すると Notion Blog が見えるようになります +10. "Save and Deploy" をクリックし、デプロイが完了すると Notion Blog が見えるようになります astro-notion-blog では新しい記事や変更を公開したいとき毎回デプロイが必要になります。 Cloudflare Pages のダッシュボードから手動でデプロイするか、GitHub Action のような CI を使って定時デプロイしてください。 @@ -101,22 +107,7 @@ npm run dev ``` 3. ブラウザで [http://localhost:4321](http://localhost:4321) を開きます -4. 開発サーバーを停止するにはターミナルで `Ctrl+C` を押します。 - -### その他の情報 - -[wiki](https://github.com/otoyo/astro-notion-blog/wiki) をご覧ください。 ## :lady_beetle: バグ報告 & 機能要望 Issue を作成してください。日本語で大丈夫です。 - -## :two_hearts: スポンサー - -astro-notion-blog を気に入っていただけましたら、ソフトウェアの開発を継続できるようにスポンサーになることを検討してください。 - -[![GitHub sponsors](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/otoyo) - ---- - -astro-notion-blog は [otoyo/notion-blog](https://github.com/otoyo/notion-blog) をベースにしています。 diff --git a/README.md b/README.md index df431d64c..9adfdfdce 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,41 @@ English | [日本語](README.ja.md) -# astro-notion-blog +# astro-notion-blog-template -[![GitHub stars](https://img.shields.io/github/stars/otoyo/astro-notion-blog)](https://github.com/otoyo/astro-notion-blog/stargazers) -[![GitHub license](https://img.shields.io/github/license/otoyo/astro-notion-blog)](https://github.com/otoyo/astro-notion-blog/blob/main/LICENSE) -[![GitHub sponsors](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/otoyo) +[![GitHub stars](https://img.shields.io/github/stars/YuanzhongLi/astro-notion-blog-template)](https://github.com/YuanzhongLi/astro-notion-blog-template/stargazers) - + -astro-notion-blog enables you to create a blog using [Notion](https://www.notion.so/) and generates it statically, resulting in lightning-fast page views. +astro-notion-blog-template is forked from **[astro-notion-blog](https://github.com/otoyo/astro-notion-blog)**. +enables you to create a blog using [Notion](https://www.notion.so/) and generates it statically, resulting in lightning-fast page views. - :rocket: **Blazing fast** page views - :pencil: With the ability to write blog content in **Notion** - :hammer_and_wrench: **Customize** your site's appearance to your liking - :white_check_mark: Take advantage of **the official Notion APIs** +For the details, please refer [astro-notion-blog](https://github.com/otoyo/astro-notion-blog). show a greate gratitude +to otoyo-san and please give a star to the original repository if you like it. + +## astro-notion-blog + +[![GitHub stars](https://img.shields.io/github/stars/otoyo/astro-notion-blog)](https://github.com/otoyo/astro-notion-blog/stargazers) +[![GitHub license](https://img.shields.io/github/license/otoyo/astro-notion-blog)](https://github.com/otoyo/astro-notion-blog/blob/main/LICENSE) +[![GitHub sponsors](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/otoyo) + ## :camera_flash: Screenshots ### PC - + ### Smartphone - + -## :globe_with_meridians: Demo +## :globe_with_meridians: Production -[https://astro-notion-blog.pages.dev](https://astro-notion-blog.pages.dev) +[astro-notion-blog-template.pages.dev](https://astro-notion-blog-template.pages.dev/) ## :motor_scooter: Quick Start @@ -39,35 +47,34 @@ astro-notion-blog enables you to create a blog using [Notion](https://www.notion ### Steps -1. If you enjoy using this repo, **don't forget to give it a star!** :wink: - - This is very motivating! -2. Simply duplicate [the blog template](https://otoyo.notion.site/e2c5fa2e8660452988d6137ba57fd974?v=abe305cd8b3d467285e91a2a85f4d8de) into your Notion workspace. -3. Once you've duplicated the page (database), customize it to your liking by changing the icon, title, and description. +1. Simply duplicate [astro-notion-blog template](https://otoyo.notion.site/e2c5fa2e8660452988d6137ba57fd974?v=abe305cd8b3d467285e91a2a85f4d8de) into your Notion workspace. +2. Once you've duplicated the page (database), customize it to your liking by changing the icon, title, and description. + - The blog title and About page are hardcoded, so you'll need to modify the actual code in those sections. -4. For future reference, identify the `DATABASE_ID` by noting the portion of the duplicated page (database) URL that appears as https://notion.so/your-account/?v=xxxx. +3. For future reference, identify the `DATABASE_ID` by noting the portion of the duplicated page (database) URL that appears as https://notion.so/your-account/?v=xxxx. -5. [Create an integration](https://developers.notion.com/docs/create-a-notion-integration#step-1-create-an-integration) and note "Internal Integration Token" as `NOTION_API_SECRET` -6. To integrate your application with Notion, [share a database with your integration](https://developers.notion.com/docs/create-a-notion-integration#step-2-share-a-database-with-your-integration). -7. To make a copy of this repository in your own account, fork it by clicking on the 'Fork' button in the top-right corner of the repository page. -8. Go to [Cloudflare Pages](https://pages.cloudflare.com/) and sign in -9. Create new project with "Connect to Git" with your forked repository `/astro-notion-blog`, then click "Begin setup" -10. In "Build settings" section, - 1. Select "Astro" as "Framework preset" - 2. Open "Environment Variables (advanced)" and set `NODE_VERSION`, `NOTION_API_SECRET` and `DATABASE_ID` - - `NODE_VERSION` is `v18.16.0` or higher - - [How to deploy a site with Git](https://docs.astro.build/en/guides/deploy/cloudflare/#how-to-deploy-a-site-with-git) is helpful +4. [Create an integration](https://developers.notion.com/docs/create-a-notion-integration#step-1-create-an-integration) and note "Internal Integration Token" as `NOTION_API_SECRET` +5. To integrate your application with Notion, [share a database with your integration](https://developers.notion.com/docs/create-a-notion-integration#step-2-share-a-database-with-your-integration). +6. To make a copy of this repository in your own account, fork it by clicking on the 'Fork' button in the top-right corner of the repository page. +7. Go to [Cloudflare Pages](https://pages.cloudflare.com/) and sign in +8. Create new project with "Connect to Git" with your forked repository `/astro-notion-blog`, then click "Begin setup" +9. In "Build settings" section, + 1. Select "Astro" as "Framework preset" + 2. Open "Environment Variables (advanced)" and set `NODE_VERSION`, `NOTION_API_SECRET` and `DATABASE_ID` + - `NODE_VERSION` is `v18.16.0` or higher + - [How to deploy a site with Git](https://docs.astro.build/en/guides/deploy/cloudflare/#how-to-deploy-a-site-with-git) is helpful -11. After clicking the 'Save and Deploy' button, your Notion Blog will be published once the deployment process is complete. +10. After clicking the 'Save and Deploy' button, your Notion Blog will be published once the deployment process is complete. Please note that the astro-notion-blog requires manual deployment every time you publish a new post or make updates. You can deploy manually from the Cloudflare Pages dashboard or set up a scheduled deploy using CI tools such as GitHub Actions. @@ -94,22 +101,7 @@ npm run dev ``` 3. Open [http://localhost:4321](http://localhost:4321) in your browser -4. Press `Ctrl+C` in the terminal to stop - -### For more information - -See [wiki](https://github.com/otoyo/astro-notion-blog/wiki). ## :lady_beetle: Bug reports & feature requests -To report an issue, please create a new Issue. You can use **either English or Japanese** to describe the issue. :wink: - -## :two_hearts: Sponsorship - -If you like astro-notion-blog, sponsor me so that I can keep on developing software. Thank you. - -[![GitHub sponsors](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/otoyo) - ---- - -astro-notion-blog is based [otoyo/notion-blog](https://github.com/otoyo/notion-blog) +To report an issue, please create a new Issue. You can use **either English or Japanese** to describe the issue. diff --git a/README/Mobile_image.png b/README/Mobile_image.png new file mode 100644 index 000000000..664b1d132 Binary files /dev/null and b/README/Mobile_image.png differ diff --git a/README/PC_image.png b/README/PC_image.png new file mode 100644 index 000000000..858db41c2 Binary files /dev/null and b/README/PC_image.png differ diff --git a/astro.config.mjs b/astro.config.mjs index 8b36c4ec5..087bdce62 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,11 +1,12 @@ import { defineConfig } from 'astro/config'; +import tailwind from '@astrojs/tailwind'; import { CUSTOM_DOMAIN, BASE_PATH } from './src/server-constants'; import CoverImageDownloader from './src/integrations/cover-image-downloader'; import CustomIconDownloader from './src/integrations/custom-icon-downloader'; import FeaturedImageDownloader from './src/integrations/featured-image-downloader'; import PublicNotionCopier from './src/integrations/public-notion-copier'; -const getSite = function () { +const getSite = () => { if (CUSTOM_DOMAIN) { return new URL(BASE_PATH, `https://${CUSTOM_DOMAIN}`).toString(); } @@ -40,5 +41,6 @@ export default defineConfig({ CustomIconDownloader(), FeaturedImageDownloader(), PublicNotionCopier(), + tailwind(), ], }); diff --git a/package-lock.json b/package-lock.json index 4e51730ec..2a75eb024 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,9 @@ "dependencies": { "@astrojs/react": "^3.0.3", "@astrojs/rss": "^3.0.0", + "@astrojs/tailwind": "^5.1.0", + "@fontsource/ma-shan-zheng": "^5.0.11", + "@fontsource/shippori-mincho-b1": "^5.0.16", "@notionhq/client": "^2.2.5", "@supercharge/promise-pool": "^2.4.0", "astro": "^3.3.1", @@ -17,32 +20,41 @@ "async-retry": "^1.3.3", "axios": "^1.4.0", "exif-be-gone": "^1.3.2", + "gsap": "^3.12.5", "katex": "^0.16.7", "mermaid": "^10.1.0", "metascraper": "^5.34.4", "metascraper-description": "^5.34.4", "metascraper-image": "^5.34.4", "metascraper-title": "^5.34.4", + "node-fetch": "^3.3.2", + "preline": "^2.0.3", "prismjs": "^1.29.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "sharp": "^0.32.4" + "sharp": "^0.32.4", + "tailwindcss": "^3.4.1" }, "devDependencies": { - "@nrwl/nx-cloud": "^15.0.2", + "@nrwl/nx-cloud": "^18.0.0", "@types/async-retry": "^1.4.5", "@types/js-base64": "^3.3.1", + "@types/katex": "^0.16.7", "@types/metascraper": "^5.14.1", "@types/metascraper-description": "^5.14.1", "@types/metascraper-image": "^5.14.0", "@types/metascraper-title": "^5.14.0", - "@typescript-eslint/eslint-plugin": "^6.8.0", - "@typescript-eslint/parser": "^6.8.0", + "@types/prismjs": "^1.26.3", + "@typescript-eslint/eslint-plugin": "^7.2.0", + "@typescript-eslint/parser": "^7.2.0", "@typescript-eslint/typescript-estree": "^6.8.0", "cli-progress": "^3.12.0", "eslint": "^8.51.0", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-config-airbnb-typescript": "^18.0.0", "eslint-plugin-astro": "^0.27.0", - "nx": "15.5.3" + "nx": "^15.9.7", + "prettier": "^3.2.5" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -54,6 +66,17 @@ "node": ">=0.10.0" } }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", + "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@ampproject/remapping": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", @@ -92,9 +115,9 @@ "integrity": "sha512-06DD2ZnItMwUnH81LBLco3tWjcZ1lGU9rLCCBaeUCGYe9cI0wKyY2W3kDyoW1I6GmcWgt1fu+D1CTvz+FIKf8A==" }, "node_modules/@astrojs/markdown-remark": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-3.3.0.tgz", - "integrity": "sha512-ezFzEiZygc/ASe2Eul9v1yrTbNGqSbR348UGNXQ4Dtkx8MYRwfiBfmPm6VnEdfIGkW+bi5qIUReKfc7mPVUkIg==", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-3.5.0.tgz", + "integrity": "sha512-q7vdIqzYhxpsfghg2YmkmSXCfp4w7lBTYP+SSHw89wVhC5Riltr3u8w2otBRxNLSByNi+ht/gGkFC23Shetytw==", "dependencies": { "@astrojs/prism": "^3.0.0", "github-slugger": "^2.0.0", @@ -112,7 +135,7 @@ "vfile": "^5.3.7" }, "peerDependencies": { - "astro": "^3.3.0" + "astro": "^3.0.0" } }, "node_modules/@astrojs/prism": { @@ -153,10 +176,24 @@ "kleur": "^4.1.5" } }, + "node_modules/@astrojs/tailwind": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@astrojs/tailwind/-/tailwind-5.1.0.tgz", + "integrity": "sha512-BJoCDKuWhU9FT2qYg+fr6Nfb3qP4ShtyjXGHKA/4mHN94z7BGcmauQK23iy+YH5qWvTnhqkd6mQPQ1yTZTe9Ig==", + "dependencies": { + "autoprefixer": "^10.4.15", + "postcss": "^8.4.28", + "postcss-load-config": "^4.0.2" + }, + "peerDependencies": { + "astro": "^3.0.0 || ^4.0.0", + "tailwindcss": "^3.0.24" + } + }, "node_modules/@astrojs/telemetry": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.0.3.tgz", - "integrity": "sha512-j19Cf5mfyLt9hxgJ9W/FMdAA5Lovfp7/CINNB/7V71GqvygnL7KXhRC3TzfB+PsVQcBtgWZzCXhUWRbmJ64Raw==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.0.4.tgz", + "integrity": "sha512-A+0c7k/Xy293xx6odsYZuXiaHO0PL+bnDoXOc47sGDF5ffIKdKQGRPFl2NMlCF4L0NqN4Ynbgnaip+pPF0s7pQ==", "dependencies": { "ci-info": "^3.8.0", "debug": "^4.3.4", @@ -1054,9 +1091,9 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz", - "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", @@ -1089,22 +1126,32 @@ } }, "node_modules/@eslint/js": { - "version": "8.51.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.51.0.tgz", - "integrity": "sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==", + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@fontsource/ma-shan-zheng": { + "version": "5.0.11", + "resolved": "https://registry.npmjs.org/@fontsource/ma-shan-zheng/-/ma-shan-zheng-5.0.11.tgz", + "integrity": "sha512-lzrB2HBJl9Ob2r/zyZ5OF72ofymyk8uUBXPGKpXiLnterMtNYGY/QcG6k0l/CDygctryTnGmSOX2x4XDA8Cy5A==" + }, + "node_modules/@fontsource/shippori-mincho-b1": { + "version": "5.0.16", + "resolved": "https://registry.npmjs.org/@fontsource/shippori-mincho-b1/-/shippori-mincho-b1-5.0.16.tgz", + "integrity": "sha512-J3e+OV2JKsKzHOTwQHQNv21c2/+wAiZ5Y73tOTDuhk1IV2TVPKYP+sbGzkVhhKDk/f5EJdJ0bf/K7OX9wYU/FA==" + }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.11", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz", - "integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==", + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", "dev": true, "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", "minimatch": "^3.0.5" }, "engines": { @@ -1126,9 +1173,9 @@ } }, "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", "dev": true }, "node_modules/@isaacs/cliui": { @@ -1345,6 +1392,44 @@ "node": ">=12" } }, + "node_modules/@notionhq/client/node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/@notionhq/client/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/@notionhq/client/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/@notionhq/client/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/@npmcli/fs": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-3.1.0.tgz", @@ -1357,79 +1442,174 @@ } }, "node_modules/@nrwl/cli": { - "version": "15.5.3", - "resolved": "https://registry.npmjs.org/@nrwl/cli/-/cli-15.5.3.tgz", - "integrity": "sha512-NWf9CWswvdYM6YzXuweaZPAZ2erMtQrrHZdgFbUGeojZBZ+b4TCGzLWNodZj4yQOa/eTwlyPMYO2LEw9CoapDQ==", + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/cli/-/cli-15.9.7.tgz", + "integrity": "sha512-1jtHBDuJzA57My5nLzYiM372mJW0NY6rFKxlWt5a0RLsAZdPTHsd8lE3Gs9XinGC1jhXbruWmhhnKyYtZvX/zA==", "dev": true, "dependencies": { - "nx": "15.5.3" + "nx": "15.9.7" } }, "node_modules/@nrwl/nx-cloud": { - "version": "15.3.5", - "resolved": "https://registry.npmjs.org/@nrwl/nx-cloud/-/nx-cloud-15.3.5.tgz", - "integrity": "sha512-JMKLY0HhdzQ/6jEvfL/EecPPdsdBIM0SyFrWAjikSJAh5MqhpFJWnr6FfTc5P57PJZ+IUNLkJ21VMuoTrA4+4w==", + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/@nrwl/nx-cloud/-/nx-cloud-18.0.0.tgz", + "integrity": "sha512-rjjcJgzDmKwFD1QVIMs5O3X4SoMQIk0bzh3pL90ZP/B5YJUlTySv7+R0JoGQ6ROGwVQHjPFMVKKLB09zl5perA==", "dev": true, "dependencies": { - "axios": "^0.21.2", - "chalk": "4.1.0", - "dotenv": "~10.0.0", - "fs-extra": "^10.1.0", - "node-machine-id": "^1.1.12", - "strip-json-comments": "^3.1.1", - "tar": "6.1.11", - "yargs-parser": ">=21.0.1" - }, - "bin": { - "nx-cloud": "bin/nx-cloud.js" + "nx-cloud": "18.0.0" } }, - "node_modules/@nrwl/nx-cloud/node_modules/axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "node_modules/@nrwl/nx-darwin-arm64": { + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/nx-darwin-arm64/-/nx-darwin-arm64-15.9.7.tgz", + "integrity": "sha512-aBUgnhlkrgC0vu0fK6eb9Vob7eFnkuknrK+YzTjmLrrZwj7FGNAeyGXSlyo1dVokIzjVKjJg2saZZ0WQbfuCJw==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "follow-redirects": "^1.14.0" + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" } }, - "node_modules/@nrwl/nx-cloud/node_modules/chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "node_modules/@nrwl/nx-darwin-x64": { + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/nx-darwin-x64/-/nx-darwin-x64-15.9.7.tgz", + "integrity": "sha512-L+elVa34jhGf1cmn38Z0sotQatmLovxoASCIw5r1CBZZeJ5Tg7Y9nOwjRiDixZxNN56hPKXm6xl9EKlVHVeKlg==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">= 10" } }, - "node_modules/@nrwl/nx-cloud/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "node_modules/@nrwl/nx-linux-arm-gnueabihf": { + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-15.9.7.tgz", + "integrity": "sha512-pqmfqqEUGFu6PmmHKyXyUw1Al0Ki8PSaR0+ndgCAb1qrekVDGDfznJfaqxN0JSLeolPD6+PFtLyXNr9ZyPFlFg==", + "cpu": [ + "arm" + ], "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=12" + "node": ">= 10" + } + }, + "node_modules/@nrwl/nx-linux-arm64-gnu": { + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-15.9.7.tgz", + "integrity": "sha512-NYOa/eRrqmM+In5g3M0rrPVIS9Z+q6fvwXJYf/KrjOHqqan/KL+2TOfroA30UhcBrwghZvib7O++7gZ2hzwOnA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nrwl/nx-linux-arm64-musl": { + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/nx-linux-arm64-musl/-/nx-linux-arm64-musl-15.9.7.tgz", + "integrity": "sha512-zyStqjEcmbvLbejdTOrLUSEdhnxNtdQXlmOuymznCzYUEGRv+4f7OAepD3yRoR0a/57SSORZmmGQB7XHZoYZJA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nrwl/nx-linux-x64-gnu": { + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/nx-linux-x64-gnu/-/nx-linux-x64-gnu-15.9.7.tgz", + "integrity": "sha512-saNK5i2A8pKO3Il+Ejk/KStTApUpWgCxjeUz9G+T8A+QHeDloZYH2c7pU/P3jA9QoNeKwjVO9wYQllPL9loeVg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nrwl/nx-linux-x64-musl": { + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/nx-linux-x64-musl/-/nx-linux-x64-musl-15.9.7.tgz", + "integrity": "sha512-extIUThYN94m4Vj4iZggt6hhMZWQSukBCo8pp91JHnDcryBg7SnYmnikwtY1ZAFyyRiNFBLCKNIDFGkKkSrZ9Q==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nrwl/nx-win32-arm64-msvc": { + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-15.9.7.tgz", + "integrity": "sha512-GSQ54hJ5AAnKZb4KP4cmBnJ1oC4ILxnrG1mekxeM65c1RtWg9NpBwZ8E0gU3xNrTv8ZNsBeKi/9UhXBxhsIh8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nrwl/nx-win32-x64-msvc": { + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/nx-win32-x64-msvc/-/nx-win32-x64-msvc-15.9.7.tgz", + "integrity": "sha512-x6URof79RPd8AlapVbPefUD3ynJZpmah3tYaYZ9xZRMXojVtEHV8Qh5vysKXQ1rNYJiiB8Ah6evSKWLbAH60tw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" } }, "node_modules/@nrwl/tao": { - "version": "15.5.3", - "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-15.5.3.tgz", - "integrity": "sha512-vgPLIW9IoBfQ4IkHRT5RC4LqNwFBK5jmHYmFIRgbIeFRudFBbnpmOaKRME0OwN7qJ6964PVVbzahAPvYVD02xw==", + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-15.9.7.tgz", + "integrity": "sha512-OBnHNvQf3vBH0qh9YnvBQQWyyFZ+PWguF6dJ8+1vyQYlrLVk/XZ8nJ4ukWFb+QfPv/O8VBmqaofaOI9aFC4yTw==", "dev": true, "dependencies": { - "nx": "15.5.3" + "nx": "15.9.7" }, "bin": { "tao": "index.js" @@ -1513,6 +1693,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, "node_modules/@supercharge/promise-pool": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/@supercharge/promise-pool/-/promise-pool-2.4.0.tgz", @@ -1584,9 +1773,9 @@ } }, "node_modules/@types/debug": { - "version": "4.1.9", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.9.tgz", - "integrity": "sha512-8Hz50m2eoS56ldRlepxSBa6PWEVCtzUo/92HgLc2qTMnotJNIm7xP+UZhyWoYsyOdd5dxZ+NZLb24rsKyFs2ow==", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", + "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", "dependencies": { "@types/ms": "*" } @@ -1616,15 +1805,28 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.13", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.13.tgz", - "integrity": "sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==", + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true, + "peer": true + }, + "node_modules/@types/katex": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.7.tgz", + "integrity": "sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==", "dev": true }, "node_modules/@types/mdast": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.1.tgz", - "integrity": "sha512-IlKct1rUTJ1T81d8OHzyop15kGv9A/ff7Gz7IJgrk6jDb4Udw77pCJ+vq8oxZf4Ghpm+616+i1s/LNg/Vh7d+g==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.3.tgz", + "integrity": "sha512-LsjtqsyF+d2/yFOYaN22dHZI1Cpwkrj+g06G8+qtUKlhovPW89YhqSnfKtMbkgmEtYpH2gydRNULd6y8mciAFg==", "dependencies": { "@types/unist": "*" } @@ -1667,14 +1869,14 @@ } }, "node_modules/@types/ms": { - "version": "0.7.32", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.32.tgz", - "integrity": "sha512-xPSg0jm4mqgEkNhowKgZFBNtwoEwF6gJ4Dhww+GFpm3IgtNseHQZ5IqdNwnquZEoANxyDAKDRAdVo4Z72VvD/g==" + "version": "0.7.34", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.34.tgz", + "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==" }, "node_modules/@types/nlcst": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@types/nlcst/-/nlcst-1.0.2.tgz", - "integrity": "sha512-ykxL/GDDUhqikjU0LIywZvEwb1NTYXTEWf+XgMSS2o6IXIakafPccxZmxgZcvJPZ3yFl2kdL1gJZz3U3iZF3QA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@types/nlcst/-/nlcst-1.0.4.tgz", + "integrity": "sha512-ABoYdNQ/kBSsLvZAekMhIPMQ3YUZvavStpKYs7BjLLuKVmIMA0LUgZ7b54zzuWJRbHF80v1cNf4r90Vd6eMQDg==", "dependencies": { "@types/unist": "^2" } @@ -1715,6 +1917,12 @@ "integrity": "sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==", "license": "MIT" }, + "node_modules/@types/prismjs": { + "version": "1.26.3", + "resolved": "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.26.3.tgz", + "integrity": "sha512-A0D0aTXvjlqJ5ZILMz3rNfDBOx9hHxLZYv2by47Sm/pqW35zzjusrZTryatjN/Rf8Us2gZrJD+KeHbUSTux1Cw==", + "dev": true + }, "node_modules/@types/prop-types": { "version": "15.7.5", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", @@ -1751,9 +1959,9 @@ "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==" }, "node_modules/@types/semver": { - "version": "7.5.3", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.3.tgz", - "integrity": "sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==", + "version": "7.5.8", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", + "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==", "dev": true }, "node_modules/@types/stream-buffers": { @@ -1771,16 +1979,16 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.8.0.tgz", - "integrity": "sha512-GosF4238Tkes2SHPQ1i8f6rMtG6zlKwMEB0abqSJ3Npvos+doIlc/ATG+vX1G9coDF3Ex78zM3heXHLyWEwLUw==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.2.0.tgz", + "integrity": "sha512-mdekAHOqS9UjlmyF/LSs6AIEvfceV749GFxoBAjwAv0nkevfKHWQFDMcBZWUiIC5ft6ePWivXoS36aKQ0Cy3sw==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.8.0", - "@typescript-eslint/type-utils": "6.8.0", - "@typescript-eslint/utils": "6.8.0", - "@typescript-eslint/visitor-keys": "6.8.0", + "@typescript-eslint/scope-manager": "7.2.0", + "@typescript-eslint/type-utils": "7.2.0", + "@typescript-eslint/utils": "7.2.0", + "@typescript-eslint/visitor-keys": "7.2.0", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -1796,8 +2004,8 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", - "eslint": "^7.0.0 || ^8.0.0" + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" }, "peerDependenciesMeta": { "typescript": { @@ -1806,13 +2014,13 @@ } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.8.0.tgz", - "integrity": "sha512-xe0HNBVwCph7rak+ZHcFD6A+q50SMsFwcmfdjs9Kz4qDh5hWhaPhFjRs/SODEhroBI5Ruyvyz9LfwUJ624O40g==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.2.0.tgz", + "integrity": "sha512-Qh976RbQM/fYtjx9hs4XkayYujB/aPwglw2choHmf3zBjB4qOywWSdt9+KLRdHubGcoSwBnXUH2sR3hkyaERRg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.8.0", - "@typescript-eslint/visitor-keys": "6.8.0" + "@typescript-eslint/types": "7.2.0", + "@typescript-eslint/visitor-keys": "7.2.0" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1823,9 +2031,9 @@ } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.8.0.tgz", - "integrity": "sha512-p5qOxSum7W3k+llc7owEStXlGmSl8FcGvhYt8Vjy7FqEnmkCVlM3P57XQEGj58oqaBWDQXbJDZxwUWMS/EAPNQ==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.2.0.tgz", + "integrity": "sha512-XFtUHPI/abFhm4cbCDc5Ykc8npOKBSJePY3a3s+lwumt7XWJuzP5cZcfZ610MIPHjQjNsOLlYK8ASPaNG8UiyA==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1836,12 +2044,12 @@ } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.8.0.tgz", - "integrity": "sha512-oqAnbA7c+pgOhW2OhGvxm0t1BULX5peQI/rLsNDpGM78EebV3C9IGbX5HNZabuZ6UQrYveCLjKo8Iy/lLlBkkg==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.2.0.tgz", + "integrity": "sha512-c6EIQRHhcpl6+tO8EMR+kjkkV+ugUNXOmeASA1rlzkd8EPIriavpWoiEz1HR/VLhbVIdhqnV6E7JZm00cBDx2A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.8.0", + "@typescript-eslint/types": "7.2.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -1853,15 +2061,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.8.0.tgz", - "integrity": "sha512-5tNs6Bw0j6BdWuP8Fx+VH4G9fEPDxnVI7yH1IAPkQH5RUtvKwRoqdecAPdQXv4rSOADAaz1LFBZvZG7VbXivSg==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.2.0.tgz", + "integrity": "sha512-5FKsVcHTk6TafQKQbuIVkXq58Fnbkd2wDL4LB7AURN7RUOu1utVP+G8+6u3ZhEroW3DF6hyo3ZEXxgKgp4KeCg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.8.0", - "@typescript-eslint/types": "6.8.0", - "@typescript-eslint/typescript-estree": "6.8.0", - "@typescript-eslint/visitor-keys": "6.8.0", + "@typescript-eslint/scope-manager": "7.2.0", + "@typescript-eslint/types": "7.2.0", + "@typescript-eslint/typescript-estree": "7.2.0", + "@typescript-eslint/visitor-keys": "7.2.0", "debug": "^4.3.4" }, "engines": { @@ -1872,7 +2080,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^8.56.0" }, "peerDependenciesMeta": { "typescript": { @@ -1881,13 +2089,13 @@ } }, "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.8.0.tgz", - "integrity": "sha512-xe0HNBVwCph7rak+ZHcFD6A+q50SMsFwcmfdjs9Kz4qDh5hWhaPhFjRs/SODEhroBI5Ruyvyz9LfwUJ624O40g==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.2.0.tgz", + "integrity": "sha512-Qh976RbQM/fYtjx9hs4XkayYujB/aPwglw2choHmf3zBjB4qOywWSdt9+KLRdHubGcoSwBnXUH2sR3hkyaERRg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.8.0", - "@typescript-eslint/visitor-keys": "6.8.0" + "@typescript-eslint/types": "7.2.0", + "@typescript-eslint/visitor-keys": "7.2.0" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1898,9 +2106,9 @@ } }, "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.8.0.tgz", - "integrity": "sha512-p5qOxSum7W3k+llc7owEStXlGmSl8FcGvhYt8Vjy7FqEnmkCVlM3P57XQEGj58oqaBWDQXbJDZxwUWMS/EAPNQ==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.2.0.tgz", + "integrity": "sha512-XFtUHPI/abFhm4cbCDc5Ykc8npOKBSJePY3a3s+lwumt7XWJuzP5cZcfZ610MIPHjQjNsOLlYK8ASPaNG8UiyA==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1910,14 +2118,20 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.8.0.tgz", - "integrity": "sha512-oqAnbA7c+pgOhW2OhGvxm0t1BULX5peQI/rLsNDpGM78EebV3C9IGbX5HNZabuZ6UQrYveCLjKo8Iy/lLlBkkg==", + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.2.0.tgz", + "integrity": "sha512-cyxS5WQQCoBwSakpMrvMXuMDEbhOo9bNHHrNcEWis6XHx6KF518tkF1wBvKIn/tpq5ZpUYK7Bdklu8qY0MsFIA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.8.0", - "eslint-visitor-keys": "^3.4.1" + "@typescript-eslint/types": "7.2.0", + "@typescript-eslint/visitor-keys": "7.2.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1925,45 +2139,132 @@ "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "5.59.6", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.6.tgz", - "integrity": "sha512-gLbY3Le9Dxcb8KdpF0+SJr6EQ+hFGYFl6tVY8VxLPFDfUZC7BHFw+Vq7bM5lE9DwWPfx4vMWWTLGXgpc0mAYyQ==", + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.2.0.tgz", + "integrity": "sha512-c6EIQRHhcpl6+tO8EMR+kjkkV+ugUNXOmeASA1rlzkd8EPIriavpWoiEz1HR/VLhbVIdhqnV6E7JZm00cBDx2A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.59.6", - "@typescript-eslint/visitor-keys": "5.59.6" + "@typescript-eslint/types": "7.2.0", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/type-utils": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.8.0.tgz", - "integrity": "sha512-RYOJdlkTJIXW7GSldUIHqc/Hkto8E+fZN96dMIFhuTJcQwdRoGN2rEWA8U6oXbLo0qufH7NPElUb+MceHtz54g==", + "node_modules/@typescript-eslint/parser/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.8.0", - "@typescript-eslint/utils": "6.8.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.0.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.59.6", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.6.tgz", + "integrity": "sha512-gLbY3Le9Dxcb8KdpF0+SJr6EQ+hFGYFl6tVY8VxLPFDfUZC7BHFw+Vq7bM5lE9DwWPfx4vMWWTLGXgpc0mAYyQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.59.6", + "@typescript-eslint/visitor-keys": "5.59.6" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.2.0.tgz", + "integrity": "sha512-xHi51adBHo9O9330J8GQYQwrKBqbIPJGZZVQTHHmy200hvkLZFWJIFtAG/7IYTWUyun6DE6w5InDReePJYJlJA==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "7.2.0", + "@typescript-eslint/utils": "7.2.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.2.0.tgz", + "integrity": "sha512-XFtUHPI/abFhm4cbCDc5Ykc8npOKBSJePY3a3s+lwumt7XWJuzP5cZcfZ610MIPHjQjNsOLlYK8ASPaNG8UiyA==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.2.0.tgz", + "integrity": "sha512-cyxS5WQQCoBwSakpMrvMXuMDEbhOo9bNHHrNcEWis6XHx6KF518tkF1wBvKIn/tpq5ZpUYK7Bdklu8qY0MsFIA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "7.2.0", + "@typescript-eslint/visitor-keys": "7.2.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, "peerDependenciesMeta": { "typescript": { @@ -1971,6 +2272,47 @@ } } }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.2.0.tgz", + "integrity": "sha512-c6EIQRHhcpl6+tO8EMR+kjkkV+ugUNXOmeASA1rlzkd8EPIriavpWoiEz1HR/VLhbVIdhqnV6E7JZm00cBDx2A==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "7.2.0", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@typescript-eslint/types": { "version": "5.59.6", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.6.tgz", @@ -2042,17 +2384,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.8.0.tgz", - "integrity": "sha512-dKs1itdE2qFG4jr0dlYLQVppqTE+Itt7GmIf/vX6CSvsW+3ov8PbWauVKyyfNngokhIO9sKZeRGCUo1+N7U98Q==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.2.0.tgz", + "integrity": "sha512-YfHpnMAGb1Eekpm3XRK8hcMwGLGsnT6L+7b2XyRv6ouDuJU1tZir1GS2i0+VXRatMwSI1/UfcyPe53ADkU+IuA==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.8.0", - "@typescript-eslint/types": "6.8.0", - "@typescript-eslint/typescript-estree": "6.8.0", + "@typescript-eslint/scope-manager": "7.2.0", + "@typescript-eslint/types": "7.2.0", + "@typescript-eslint/typescript-estree": "7.2.0", "semver": "^7.5.4" }, "engines": { @@ -2063,17 +2405,17 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^8.56.0" } }, "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.8.0.tgz", - "integrity": "sha512-xe0HNBVwCph7rak+ZHcFD6A+q50SMsFwcmfdjs9Kz4qDh5hWhaPhFjRs/SODEhroBI5Ruyvyz9LfwUJ624O40g==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.2.0.tgz", + "integrity": "sha512-Qh976RbQM/fYtjx9hs4XkayYujB/aPwglw2choHmf3zBjB4qOywWSdt9+KLRdHubGcoSwBnXUH2sR3hkyaERRg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.8.0", - "@typescript-eslint/visitor-keys": "6.8.0" + "@typescript-eslint/types": "7.2.0", + "@typescript-eslint/visitor-keys": "7.2.0" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2084,9 +2426,9 @@ } }, "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.8.0.tgz", - "integrity": "sha512-p5qOxSum7W3k+llc7owEStXlGmSl8FcGvhYt8Vjy7FqEnmkCVlM3P57XQEGj58oqaBWDQXbJDZxwUWMS/EAPNQ==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.2.0.tgz", + "integrity": "sha512-XFtUHPI/abFhm4cbCDc5Ykc8npOKBSJePY3a3s+lwumt7XWJuzP5cZcfZ610MIPHjQjNsOLlYK8ASPaNG8UiyA==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2096,13 +2438,41 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.2.0.tgz", + "integrity": "sha512-cyxS5WQQCoBwSakpMrvMXuMDEbhOo9bNHHrNcEWis6XHx6KF518tkF1wBvKIn/tpq5ZpUYK7Bdklu8qY0MsFIA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "7.2.0", + "@typescript-eslint/visitor-keys": "7.2.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.8.0.tgz", - "integrity": "sha512-oqAnbA7c+pgOhW2OhGvxm0t1BULX5peQI/rLsNDpGM78EebV3C9IGbX5HNZabuZ6UQrYveCLjKo8Iy/lLlBkkg==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.2.0.tgz", + "integrity": "sha512-c6EIQRHhcpl6+tO8EMR+kjkkV+ugUNXOmeASA1rlzkd8EPIriavpWoiEz1HR/VLhbVIdhqnV6E7JZm00cBDx2A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.8.0", + "@typescript-eslint/types": "7.2.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -2113,6 +2483,30 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@typescript-eslint/utils/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@typescript-eslint/visitor-keys": { "version": "5.59.6", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.6.tgz", @@ -2161,11 +2555,10 @@ "license": "BSD-2-Clause" }, "node_modules/@yarnpkg/parsers": { - "version": "3.0.0-rc.36", - "resolved": "https://registry.npmjs.org/@yarnpkg/parsers/-/parsers-3.0.0-rc.36.tgz", - "integrity": "sha512-PvTlgUr7WO2qDnph8tVdItbJlo9hEcGSVd8+ppn/tvcn8XZUaD1z4EgvMEZcJYZi3LmHJGzSgVZzcFE+zQiz8A==", + "version": "3.0.0-rc.46", + "resolved": "https://registry.npmjs.org/@yarnpkg/parsers/-/parsers-3.0.0-rc.46.tgz", + "integrity": "sha512-aiATs7pSutzda/rq8fnuPwTglyVwjM22bNnK2ZgjrpAjQHSSl3lztd2f9evst1W/qnC58DRz7T7QndUDumAR4Q==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { "js-yaml": "^3.10.0", "tslib": "^2.4.0" @@ -2317,6 +2710,11 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" + }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", @@ -2346,12 +2744,53 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" + }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "license": "Python-2.0" }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", + "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.5", + "is-array-buffer": "^3.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", + "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/array-iterate": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/array-iterate/-/array-iterate-2.0.1.tgz", @@ -2370,15 +2809,115 @@ "node": ">=8" } }, + "node_modules/array.prototype.filter": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array.prototype.filter/-/array.prototype.filter-1.0.3.tgz", + "integrity": "sha512-VizNcj/RGJiUyQBgzwxzE5oHdeuXY5hSbbmKMlphj1cy1Vl7Pn2asCGbSrru6hSQjmCzqTBPVWAF/whmEOVHbw==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-array-method-boxes-properly": "^1.0.0", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.4.tgz", + "integrity": "sha512-hzvSHUshSpCflDR1QMUBLHGHP1VIEBegT4pix9H/Z92Xw3ySoy6c2qh7lJWTJnRJ8JCZ9bJNCgTyYaJGcJu6xQ==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "es-abstract": "^1.22.3", + "es-errors": "^1.3.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", + "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "es-abstract": "^1.22.3", + "es-errors": "^1.2.1", + "get-intrinsic": "^1.2.3", + "is-array-buffer": "^3.0.4", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/astro": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/astro/-/astro-3.3.1.tgz", - "integrity": "sha512-PzXJN8IIjQrxf+D39utnBtxscdqizwslOKoXXGtVFCA66IPh37HzGts0VLtB/kSf8ouTojk5JBQWbevDiW53VQ==", + "version": "3.6.5", + "resolved": "https://registry.npmjs.org/astro/-/astro-3.6.5.tgz", + "integrity": "sha512-fyVubQfb6+Bc2/XigXNeJ06HHwNFB9EnAQohJcrja6RB1PhIcZRusyIamywHWjoJ4a1T0HxMkzBLNW96DBqpNw==", "dependencies": { - "@astrojs/compiler": "^2.1.0", + "@astrojs/compiler": "^2.3.0", "@astrojs/internal-helpers": "0.2.1", - "@astrojs/markdown-remark": "3.3.0", - "@astrojs/telemetry": "3.0.3", + "@astrojs/markdown-remark": "3.5.0", + "@astrojs/telemetry": "3.0.4", "@babel/core": "^7.22.10", "@babel/generator": "^7.22.10", "@babel/parser": "^7.22.10", @@ -2409,9 +2948,11 @@ "js-yaml": "^4.1.0", "kleur": "^4.1.4", "magic-string": "^0.30.3", + "mdast-util-to-hast": "12.3.0", "mime": "^3.0.0", "ora": "^7.0.1", "p-limit": "^4.0.0", + "p-queue": "^7.4.1", "path-to-regexp": "^6.2.1", "preferred-pm": "^3.1.2", "probe-image-size": "^7.2.3", @@ -2430,7 +2971,7 @@ "vitefu": "^0.2.4", "which-pm": "^2.1.1", "yargs-parser": "^21.1.1", - "zod": "3.21.1" + "zod": "^3.22.4" }, "bin": { "astro": "astro.js" @@ -2475,27 +3016,10 @@ "svgo": "^2.8.0" } }, - "node_modules/astro-icon/node_modules/node-fetch": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", - "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", - "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" - } - }, "node_modules/astro/node_modules/@astrojs/compiler": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-2.2.0.tgz", - "integrity": "sha512-JvmckEJgg8uXUw8Rs6VZDvN7LcweCHOdcxsCXpC+4KMDC9FaB5t9EH/NooSE+hu/rnACEhsXA3FKmf9wnhb7hA==" + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-2.7.0.tgz", + "integrity": "sha512-XpC8MAaWjD1ff6/IfkRq/5k1EFj6zhCNqXRd5J43SVJEBj/Bsmizkm8N0xOYscGcDFQkRgEw6/eKnI5x/1l6aA==" }, "node_modules/astro/node_modules/ansi-regex": { "version": "6.0.1", @@ -2627,12 +3151,63 @@ "node": ">=0.10.0" } }, + "node_modules/autoprefixer": { + "version": "10.4.18", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.18.tgz", + "integrity": "sha512-1DKbDfsr6KUElM6wg+0zRNkB/Q7WcKYAaK+pzXn+Xqmszm/5Xa9coeNdtP88Vi+dPzZnMjhge8GIV49ZQkDa+g==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "browserslist": "^4.23.0", + "caniuse-lite": "^1.0.30001591", + "fraction.js": "^4.3.7", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dev": true, + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/axios": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", - "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", + "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", "dependencies": { - "follow-redirects": "^1.15.0", + "follow-redirects": "^1.15.6", "form-data": "^4.0.0", "proxy-from-env": "^1.1.0" } @@ -2863,9 +3438,9 @@ } }, "node_modules/browserslist": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", - "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", + "integrity": "sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==", "funding": [ { "type": "opencollective", @@ -2881,9 +3456,9 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001541", - "electron-to-chromium": "^1.4.535", - "node-releases": "^2.0.13", + "caniuse-lite": "^1.0.30001587", + "electron-to-chromium": "^1.4.668", + "node-releases": "^2.0.14", "update-browserslist-db": "^1.0.13" }, "bin": { @@ -3024,6 +3599,25 @@ "node": ">=16 || 14 >=14.17" } }, + "node_modules/call-bind": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "dev": true, + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -3044,10 +3638,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "engines": { + "node": ">= 6" + } + }, "node_modules/caniuse-lite": { - "version": "1.0.30001549", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001549.tgz", - "integrity": "sha512-qRp48dPYSCYaP+KurZLhDYdVE+yEyht/3NlmcJgVQ2VMGt6JL36ndQ/7rgspdZsJuxDPFIo/OzBT2+GmIJ53BA==", + "version": "1.0.30001594", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001594.tgz", + "integrity": "sha512-VblSX6nYqyJVs8DKFMldE2IVCJjZ225LW00ydtUWwh5hk9IfkTOffO6r8gJNsH0qqqeAF8KrbMYA2VEwTlGW5g==", "funding": [ { "type": "opencollective", @@ -3410,6 +4012,12 @@ "node": ">=8" } }, + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", + "dev": true + }, "node_modules/console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", @@ -3495,7 +4103,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true, "license": "MIT", "bin": { "cssesc": "bin/cssesc" @@ -4174,14 +4781,48 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/define-lazy-prop": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", "dev": true, - "license": "MIT", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, "engines": { - "node": ">=8" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/delaunator": { @@ -4244,10 +4885,15 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==" + }, "node_modules/diff": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", - "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", + "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", "engines": { "node": ">=0.3.1" } @@ -4364,9 +5010,9 @@ } }, "node_modules/dset": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.2.tgz", - "integrity": "sha512-g/M9sqy3oHe477Ar4voQxWtaPIFw1jTdKZuomOjhCcBx9nHUNn0pu6NopuFFrTh/TRZIKEj+76vLWFu9BNKk+Q==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.3.tgz", + "integrity": "sha512-20TuZZHCEZ2O71q9/+8BwKwZ0QtD9D8ObhrihJPr+vLLYlSuAU3/zL4cSlgbfeoGHTjCSJBa7NGcrF9/Bx/WJQ==", "engines": { "node": ">=4" } @@ -4385,9 +5031,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.4.556", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.556.tgz", - "integrity": "sha512-6RPN0hHfzDU8D56E72YkDvnLw5Cj2NMXZGg3UkgyoHxjVhG99KZpsKgBWMmTy0Ei89xwan+rbRsVB9yzATmYzQ==" + "version": "1.4.693", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.693.tgz", + "integrity": "sha512-/if4Ueg0GUQlhCrW2ZlXwDAm40ipuKo+OgeHInlL8sbjt+hzISxZK949fZeJaVsheamrzANXvw1zQTvbxTvSHw==" }, "node_modules/elkjs": { "version": "0.8.2", @@ -4456,11 +5102,135 @@ "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==" }, + "node_modules/es-abstract": { + "version": "1.22.5", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.5.tgz", + "integrity": "sha512-oW69R+4q2wG+Hc3KZePPZxOiisRIqfKBVo/HLx94QcJeWGU/8sZhCvc829rd1kS366vlJbzBfXf9yWwf0+Ko7w==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "arraybuffer.prototype.slice": "^1.0.3", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.7", + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "es-set-tostringtag": "^2.0.3", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.6", + "get-intrinsic": "^1.2.4", + "get-symbol-description": "^1.0.2", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.0.3", + "has-symbols": "^1.0.3", + "hasown": "^2.0.1", + "internal-slot": "^1.0.7", + "is-array-buffer": "^3.0.4", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.3", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.3", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.13", + "is-weakref": "^1.0.2", + "object-inspect": "^1.13.1", + "object-keys": "^1.1.1", + "object.assign": "^4.1.5", + "regexp.prototype.flags": "^1.5.2", + "safe-array-concat": "^1.1.0", + "safe-regex-test": "^1.0.3", + "string.prototype.trim": "^1.2.8", + "string.prototype.trimend": "^1.0.7", + "string.prototype.trimstart": "^1.0.7", + "typed-array-buffer": "^1.0.2", + "typed-array-byte-length": "^1.0.1", + "typed-array-byte-offset": "^1.0.2", + "typed-array-length": "^1.0.5", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-array-method-boxes-properly": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", + "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==", + "dev": true, + "peer": true + }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/es-module-lexer": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz", "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==" }, + "node_modules/es-set-tostringtag": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz", + "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.4", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "dev": true, + "peer": true, + "dependencies": { + "hasown": "^2.0.0" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/esbuild": { "version": "0.19.4", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.4.tgz", @@ -4516,18 +5286,19 @@ } }, "node_modules/eslint": { - "version": "8.51.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.51.0.tgz", - "integrity": "sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==", + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.2", - "@eslint/js": "8.51.0", - "@humanwhocodes/config-array": "^0.11.11", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -4569,6 +5340,98 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint-config-airbnb-base": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", + "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", + "dev": true, + "dependencies": { + "confusing-browser-globals": "^1.0.10", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5", + "semver": "^6.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "peerDependencies": { + "eslint": "^7.32.0 || ^8.2.0", + "eslint-plugin-import": "^2.25.2" + } + }, + "node_modules/eslint-config-airbnb-base/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-config-airbnb-typescript": { + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-typescript/-/eslint-config-airbnb-typescript-18.0.0.tgz", + "integrity": "sha512-oc+Lxzgzsu8FQyFVa4QFaVKiitTYiiW3frB9KYW5OWdPrqFc7FzxgB20hP4cHMlr+MBzGcLl3jnCOVOydL9mIg==", + "dev": true, + "dependencies": { + "eslint-config-airbnb-base": "^15.0.0" + }, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^7.0.0", + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "peer": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "peer": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.1.tgz", + "integrity": "sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==", + "dev": true, + "peer": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "peer": true, + "dependencies": { + "ms": "^2.1.1" + } + }, "node_modules/eslint-plugin-astro": { "version": "0.27.0", "resolved": "https://registry.npmjs.org/eslint-plugin-astro/-/eslint-plugin-astro-0.27.0.tgz", @@ -4592,6 +5455,97 @@ "eslint": ">=7.0.0" } }, + "node_modules/eslint-plugin-import": { + "version": "2.29.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", + "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==", + "dev": true, + "peer": true, + "dependencies": { + "array-includes": "^3.1.7", + "array.prototype.findlastindex": "^1.2.3", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.8.0", + "hasown": "^2.0.0", + "is-core-module": "^2.13.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.7", + "object.groupby": "^1.0.1", + "object.values": "^1.1.7", + "semver": "^6.3.1", + "tsconfig-paths": "^3.15.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "peer": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "peer": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "peer": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-import/node_modules/tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "peer": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, "node_modules/eslint-visitor-keys": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", @@ -4758,6 +5712,11 @@ "node": ">=0.10.0" } }, + "node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" + }, "node_modules/execa": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", @@ -5090,16 +6049,15 @@ "license": "ISC" }, "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "funding": [ { "type": "individual", "url": "https://github.com/sponsors/RubenVerborgh" } ], - "license": "MIT", "engines": { "node": ">=4.0" }, @@ -5109,6 +6067,15 @@ } } }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, "node_modules/foreground-child": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", @@ -5160,6 +6127,18 @@ "node": ">=12.20.0" } }, + "node_modules/fraction.js": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", + "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://github.com/sponsors/rawify" + } + }, "node_modules/fs-constants": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", @@ -5210,6 +6189,41 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", + "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/gauge": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", @@ -5247,6 +6261,25 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-intrinsic": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/get-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", @@ -5260,6 +6293,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/get-symbol-description": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", + "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/github-from-package": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", @@ -5268,8 +6318,7 @@ "node_modules/github-slugger": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz", - "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==", - "license": "ISC" + "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==" }, "node_modules/glob": { "version": "7.2.3", @@ -5304,9 +6353,9 @@ } }, "node_modules/globals": { - "version": "13.23.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", - "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -5318,6 +6367,21 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", @@ -5347,6 +6411,18 @@ "node": ">=8" } }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/graceful-fs": { "version": "4.2.10", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", @@ -5374,12 +6450,18 @@ "node": ">=6.0" } }, - "node_modules/has": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz", - "integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==", - "engines": { - "node": ">= 0.4.0" + "node_modules/gsap": { + "version": "3.12.5", + "resolved": "https://registry.npmjs.org/gsap/-/gsap-3.12.5.tgz", + "integrity": "sha512-srBfnk4n+Oe/ZnMIOXt3gT605BX9x5+rh/prT2F1SsNJsU1XuMiP0E2aptW481OnonOGACZWBqseH5Z7csHxhQ==" + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/has-flag": { @@ -5392,6 +6474,57 @@ "node": ">=8" } }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", + "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", @@ -5408,6 +6541,17 @@ "node": ">=6" } }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/hast-to-hyperscript": { "version": "10.0.1", "resolved": "https://registry.npmjs.org/hast-to-hyperscript/-/hast-to-hyperscript-10.0.1.tgz", @@ -5721,9 +6865,9 @@ } }, "node_modules/import-meta-resolve": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-3.0.0.tgz", - "integrity": "sha512-4IwhLhNNA8yy445rPjD/lWh++7hMDOml2eHtd58eG7h+qK3EryMuuRbsHGPikCoAgIkkDnckKfWSk2iDla/ejg==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-3.1.1.tgz", + "integrity": "sha512-qeywsE/KC3w9Fd2ORrRDUw6nS/nLwZpXgfrOc2IILvZYnCaEMd+D56Vfg9k4G29gIeVi3XKql1RQatME8iYsiw==", "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -5782,6 +6926,20 @@ "save-to-github-cache": "bin/save-to-github-cache.js" } }, + "node_modules/internal-slot": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", + "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "hasown": "^2.0.0", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/internmap": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", @@ -5791,9 +6949,9 @@ } }, "node_modules/ip": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", - "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.1.tgz", + "integrity": "sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==" }, "node_modules/ip-regex": { "version": "4.3.0", @@ -5811,11 +6969,39 @@ "node": ">=8" } }, + "node_modules/is-array-buffer": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", + "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-arrayish": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", @@ -5827,6 +7013,22 @@ "node": ">=8" } }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-buffer": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", @@ -5850,12 +7052,39 @@ "node": ">=4" } }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-core-module": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", - "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, "dependencies": { - "has": "^1.0.3" + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -5963,6 +7192,18 @@ "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==" }, + "node_modules/is-negative-zero": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", + "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", @@ -5972,6 +7213,21 @@ "node": ">=0.12.0" } }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-path-inside": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", @@ -5999,6 +7255,22 @@ "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-relative-url": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-relative-url/-/is-relative-url-3.0.0.tgz", @@ -6010,6 +7282,21 @@ "node": ">=8" } }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", + "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-stream": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", @@ -6022,6 +7309,51 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", + "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", + "dev": true, + "dependencies": { + "which-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-unicode-supported": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", @@ -6045,6 +7377,18 @@ "node": ">= 4" } }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-wsl": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", @@ -6058,6 +7402,12 @@ "node": ">=8" } }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -6079,9 +7429,9 @@ "integrity": "sha512-wRcdJtXCe2LGtXnD14fXMkduWVdbeGkzBIKg8WcKeEOi6SIc+hRjYYw76WNx3v5FebhUWZrBTWB0NOl3/sagdQ==" }, "node_modules/jackspeak": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.0.tgz", - "integrity": "sha512-uKmsITSsF4rUWQHzqaRUuyAir3fZfW3f202Ee34lz/gZCi970CPZwyQXLGNgWJvvZbvFyzeyGq0+4fcG/mBKZg==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -6095,6 +7445,14 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/jiti": { + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", + "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==", + "bin": { + "jiti": "bin/jiti.js" + } + }, "node_modules/js-base64": { "version": "3.7.4", "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.4.tgz", @@ -6283,6 +7641,14 @@ "node": ">= 0.8.0" } }, + "node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "engines": { + "node": ">=10" + } + }, "node_modules/lines-and-columns": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-2.0.3.tgz", @@ -6479,9 +7845,9 @@ } }, "node_modules/mdast-util-definitions/node_modules/@types/unist": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.0.tgz", - "integrity": "sha512-MFETx3tbTjE7Uk6vvnWINA/1iJ7LuMdO4fcq8UfF0pRbj01aGLduVvQcRyswuACJdpnHgg8E3rQLhaRdNEJS0w==" + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz", + "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==" }, "node_modules/mdast-util-definitions/node_modules/unist-util-is": { "version": "6.0.0", @@ -6538,9 +7904,9 @@ } }, "node_modules/mdast-util-find-and-replace/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -6580,9 +7946,9 @@ } }, "node_modules/mdast-util-from-markdown/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -6621,9 +7987,9 @@ } }, "node_modules/mdast-util-gfm-autolink-literal/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -6643,9 +8009,9 @@ } }, "node_modules/mdast-util-gfm-footnote/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -6664,9 +8030,9 @@ } }, "node_modules/mdast-util-gfm-strikethrough/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -6687,9 +8053,9 @@ } }, "node_modules/mdast-util-gfm-table/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -6708,9 +8074,9 @@ } }, "node_modules/mdast-util-gfm-task-list-item/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -6729,9 +8095,9 @@ } }, "node_modules/mdast-util-phrasing/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -6756,9 +8122,9 @@ } }, "node_modules/mdast-util-to-hast/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -6797,9 +8163,9 @@ } }, "node_modules/mdast-util-to-markdown/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -6817,9 +8183,9 @@ } }, "node_modules/mdast-util-to-string/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -7722,6 +9088,16 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "license": "MIT" }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, "node_modules/nan": { "version": "2.17.0", "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz", @@ -7848,45 +9224,20 @@ } }, "node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "license": "MIT", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", "dependencies": { - "whatwg-url": "^5.0.0" + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" }, "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/node-fetch/node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "license": "MIT" - }, - "node_modules/node-fetch/node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "license": "BSD-2-Clause" - }, - "node_modules/node-fetch/node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" } }, "node_modules/node-gyp": { @@ -7932,9 +9283,9 @@ "dev": true }, "node_modules/node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==" + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==" }, "node_modules/non-layered-tidy-tree-layout": { "version": "2.0.2", @@ -7964,6 +9315,14 @@ "node": ">=0.10.0" } }, + "node_modules/normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/normalize-url": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", @@ -8020,17 +9379,17 @@ "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==" }, "node_modules/nx": { - "version": "15.5.3", - "resolved": "https://registry.npmjs.org/nx/-/nx-15.5.3.tgz", - "integrity": "sha512-PHB8VbiBLP108xb+yR8IGEsYWr7OcmDDOjHL+73oP4lVjyPgT8wdTMe6tI5LdBgv+KZ+0kiThK3ckvcPsfgvLQ==", + "version": "15.9.7", + "resolved": "https://registry.npmjs.org/nx/-/nx-15.9.7.tgz", + "integrity": "sha512-1qlEeDjX9OKZEryC8i4bA+twNg+lB5RKrozlNwWx/lLJHqWPUfvUTvxh+uxlPYL9KzVReQjUuxMLFMsHNqWUrA==", "dev": true, "hasInstallScript": true, "dependencies": { - "@nrwl/cli": "15.5.3", - "@nrwl/tao": "15.5.3", + "@nrwl/cli": "15.9.7", + "@nrwl/tao": "15.9.7", "@parcel/watcher": "2.0.4", "@yarnpkg/lockfile": "^1.1.0", - "@yarnpkg/parsers": "^3.0.0-rc.18", + "@yarnpkg/parsers": "3.0.0-rc.46", "@zkochan/js-yaml": "0.0.6", "axios": "^1.0.0", "chalk": "^4.1.0", @@ -8051,7 +9410,7 @@ "minimatch": "3.0.5", "npm-run-path": "^4.0.1", "open": "^8.4.0", - "semver": "7.3.4", + "semver": "7.5.4", "string-width": "^4.2.3", "strong-log-transformer": "^2.1.0", "tar-stream": "~2.2.0", @@ -8065,6 +9424,17 @@ "bin": { "nx": "bin/nx.js" }, + "optionalDependencies": { + "@nrwl/nx-darwin-arm64": "15.9.7", + "@nrwl/nx-darwin-x64": "15.9.7", + "@nrwl/nx-linux-arm-gnueabihf": "15.9.7", + "@nrwl/nx-linux-arm64-gnu": "15.9.7", + "@nrwl/nx-linux-arm64-musl": "15.9.7", + "@nrwl/nx-linux-x64-gnu": "15.9.7", + "@nrwl/nx-linux-x64-musl": "15.9.7", + "@nrwl/nx-win32-arm64-msvc": "15.9.7", + "@nrwl/nx-win32-x64-msvc": "15.9.7" + }, "peerDependencies": { "@swc-node/register": "^1.4.2", "@swc/core": "^1.2.173" @@ -8078,6 +9448,38 @@ } } }, + "node_modules/nx-cloud": { + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/nx-cloud/-/nx-cloud-18.0.0.tgz", + "integrity": "sha512-VpPywcHmFIU3GSWb3KV3nQ+TAMLc06DTO39vTFsM+HreB6qRloDxbADRvfM5eHAbY26TNmwflT7wxd0fluv2+A==", + "dev": true, + "dependencies": { + "@nrwl/nx-cloud": "18.0.0", + "axios": "1.1.3", + "chalk": "^4.1.0", + "dotenv": "~10.0.0", + "fs-extra": "^11.1.0", + "node-machine-id": "^1.1.12", + "open": "~8.4.0", + "strip-json-comments": "^3.1.1", + "tar": "6.1.11", + "yargs-parser": ">=21.1.1" + }, + "bin": { + "nx-cloud": "bin/nx-cloud.js" + } + }, + "node_modules/nx-cloud/node_modules/axios": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.1.3.tgz", + "integrity": "sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==", + "dev": true, + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/nx/node_modules/fast-glob": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz", @@ -8152,29 +9554,120 @@ "node": "*" } }, - "node_modules/nx/node_modules/semver": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", + "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", "dev": true, - "license": "ISC", "dependencies": { - "lru-cache": "^6.0.0" + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" }, - "bin": { - "semver": "bin/semver.js" + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz", + "integrity": "sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" }, "engines": { - "node": ">=10" + "node": ">= 0.4" } }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "node_modules/object.fromentries": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", + "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", + "dev": true, "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.2.tgz", + "integrity": "sha512-bzBq58S+x+uo0VjurFT0UktpKHOZmv4/xePiOA1nbB9pMqpGK7rUPNgf+1YC+7mE+0HzhTMqNUuCqvKhj6FnBw==", + "dev": true, + "peer": true, + "dependencies": { + "array.prototype.filter": "^1.0.3", + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "es-abstract": "^1.22.3", + "es-errors": "^1.0.0" + } + }, + "node_modules/object.values": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", + "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/once": { @@ -8399,6 +9892,32 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-queue": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-7.4.1.tgz", + "integrity": "sha512-vRpMXmIkYF2/1hLBKisKeVYJZ8S2tZ0zEAmIJgdVKP2nq0nh4qCdf8bgw+ZgKrkh71AOCaqzwbJJk1WtdcF3VA==", + "dependencies": { + "eventemitter3": "^5.0.1", + "p-timeout": "^5.0.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-timeout": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-5.1.0.tgz", + "integrity": "sha512-auFDyzzzGZZZdHz3BtET9VEz0SE/uMEAx7uWfGPucfzEwwe/xH0iVeZibQmANYE/hp9T2+UUZT5m+BKyrDp3Ew==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", @@ -8570,6 +10089,14 @@ "node": ">=6" } }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "engines": { + "node": ">= 6" + } + }, "node_modules/pkg-dir": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", @@ -8629,6 +10156,15 @@ "node": ">=8" } }, + "node_modules/possible-typed-array-names": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", + "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/postcss": { "version": "8.4.31", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", @@ -8656,11 +10192,107 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", + "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", + "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "lilconfig": "^3.0.0", + "yaml": "^2.3.4" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-load-config/node_modules/lilconfig": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.1.tgz", + "integrity": "sha512-O18pf7nyvHTckunPWCV1XUNXU1piu01y2b7ATJ0ppkUkk8ocqVWBrYjJBCwHDjD/ZWcfyrA0P4gKhzWGi5EINQ==", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/postcss-nested": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz", + "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==", + "dependencies": { + "postcss-selector-parser": "^6.0.11" + }, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, "node_modules/postcss-selector-parser": { "version": "6.0.11", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.11.tgz", "integrity": "sha512-zbARubNdogI9j7WY4nQJBiNqQf3sLS3wCP4WfOidu+p28LofJqDH1tcXypGrcmMHhDk2t9wGhCsYe/+szLTy1g==", - "dev": true, "license": "MIT", "dependencies": { "cssesc": "^3.0.0", @@ -8670,6 +10302,11 @@ "node": ">=4" } }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + }, "node_modules/prebuild-install": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz", @@ -8737,6 +10374,14 @@ "node": ">=8.15" } }, + "node_modules/preline": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/preline/-/preline-2.0.3.tgz", + "integrity": "sha512-V/sLmRIHd23UCdvJNRKKszntgUqA0381erVzRpQ48NjjMOgI7DyFW4mr+lg387V0oeBc5Dx9Jxa5voppVoH9GA==", + "dependencies": { + "@popperjs/core": "^2.11.2" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -8746,6 +10391,21 @@ "node": ">= 0.8.0" } }, + "node_modules/prettier": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/prismjs": { "version": "1.29.0", "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", @@ -8958,6 +10618,22 @@ "node": ">=0.10.0" } }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/read-cache/node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/readable-stream": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", @@ -8983,6 +10659,24 @@ "node": ">=8.10.0" } }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", + "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.6", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "set-function-name": "^2.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/rehype": { "version": "12.0.1", "resolved": "https://registry.npmjs.org/rehype/-/rehype-12.0.1.tgz", @@ -9065,9 +10759,9 @@ } }, "node_modules/remark-gfm/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -9087,9 +10781,9 @@ } }, "node_modules/remark-parse/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } @@ -9110,24 +10804,68 @@ } }, "node_modules/remark-rehype/node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", "dependencies": { "@types/unist": "^2" } }, "node_modules/remark-smartypants": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-2.0.0.tgz", - "integrity": "sha512-Rc0VDmr/yhnMQIz8n2ACYXlfw/P/XZev884QU1I5u+5DgJls32o97Vc1RbK3pfumLsJomS2yy8eT4Fxj/2MDVA==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-2.1.0.tgz", + "integrity": "sha512-qoF6Vz3BjU2tP6OfZqHOvCU0ACmu/6jhGaINSQRI9mM7wCxNQTKB3JUAN4SVoN2ybElEDTxBIABRep7e569iJw==", + "dependencies": { + "retext": "^8.1.0", + "retext-smartypants": "^5.2.0", + "unist-util-visit": "^5.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "node_modules/remark-smartypants/node_modules/@types/unist": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz", + "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==" + }, + "node_modules/remark-smartypants/node_modules/unist-util-is": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.0.tgz", + "integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-smartypants/node_modules/unist-util-visit": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz", + "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-smartypants/node_modules/unist-util-visit-parents": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz", + "integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==", "dependencies": { - "retext": "^8.1.0", - "retext-smartypants": "^5.1.0", - "unist-util-visit": "^4.1.0" + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, "node_modules/require-directory": { @@ -9427,6 +11165,24 @@ "node": ">=6" } }, + "node_modules/safe-array-concat": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", + "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "get-intrinsic": "^1.2.4", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -9447,6 +11203,23 @@ ], "license": "MIT" }, + "node_modules/safe-regex-test": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", + "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.6", + "es-errors": "^1.3.0", + "is-regex": "^1.1.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", @@ -9516,6 +11289,38 @@ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dev": true, + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dev": true, + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/sharp": { "version": "0.32.6", "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.6.tgz", @@ -9565,25 +11370,25 @@ } }, "node_modules/shikiji": { - "version": "0.6.10", - "resolved": "https://registry.npmjs.org/shikiji/-/shikiji-0.6.10.tgz", - "integrity": "sha512-WE+A5Y2ntM5hL3iJQujk97qr5Uj7PSIRXpQfrZ6h+JWPXZ8KBEDhFXc4lqNriaRq1WGOVPUT83XMOzmHiH3W8A==", + "version": "0.6.13", + "resolved": "https://registry.npmjs.org/shikiji/-/shikiji-0.6.13.tgz", + "integrity": "sha512-4T7X39csvhT0p7GDnq9vysWddf2b6BeioiN3Ymhnt3xcy9tXmDcnsEFVxX18Z4YcQgEE/w48dLJ4pPPUcG9KkA==", "dependencies": { "hast-util-to-html": "^9.0.0" } }, "node_modules/shikiji/node_modules/@types/hast": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.1.tgz", - "integrity": "sha512-hs/iBJx2aydugBQx5ETV3ZgeSS0oIreQrFJ4bjBl0XvM4wAmDjFEALY7p0rTSLt2eL+ibjRAAs9dTPiCLtmbqQ==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", "dependencies": { "@types/unist": "*" } }, "node_modules/shikiji/node_modules/@types/unist": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.0.tgz", - "integrity": "sha512-MFETx3tbTjE7Uk6vvnWINA/1iJ7LuMdO4fcq8UfF0pRbj01aGLduVvQcRyswuACJdpnHgg8E3rQLhaRdNEJS0w==" + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz", + "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==" }, "node_modules/shikiji/node_modules/hast-util-from-parse5": { "version": "8.0.1", @@ -9617,9 +11422,9 @@ } }, "node_modules/shikiji/node_modules/hast-util-raw": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.0.1.tgz", - "integrity": "sha512-5m1gmba658Q+lO5uqL5YNGQWeh1MYWZbZmWrM5lncdcuiXuo5E2HT/CIOp0rLF8ksfSwiCVJ3twlgVRyTGThGA==", + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.0.2.tgz", + "integrity": "sha512-PldBy71wO9Uq1kyaMch9AHIghtQvIwxBUkv823pKmkTM3oV1JxtsTNYdevMxvUHqcnOAuO65JKU2+0NOxc2ksA==", "dependencies": { "@types/hast": "^3.0.0", "@types/unist": "^3.0.0", @@ -9719,9 +11524,9 @@ } }, "node_modules/shikiji/node_modules/mdast-util-to-hast": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.0.2.tgz", - "integrity": "sha512-U5I+500EOOw9e3ZrclN3Is3fRpw8c19SMyNZlZ2IS+7vLsNzb2Om11VpIVOR+/0137GhZsFEF6YiKD5+0Hr2Og==", + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.1.0.tgz", + "integrity": "sha512-/e2l/6+OdGp/FB+ctrJ9Avz71AN/GRH3oi/3KAx/kMnoUsD6q0woXlDT8lLEeViVKE7oZxE7RXzvO3T8kF2/sA==", "dependencies": { "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", @@ -9730,7 +11535,8 @@ "micromark-util-sanitize-uri": "^2.0.0", "trim-lines": "^3.0.0", "unist-util-position": "^5.0.0", - "unist-util-visit": "^5.0.0" + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" }, "funding": { "type": "opencollective", @@ -9738,9 +11544,9 @@ } }, "node_modules/shikiji/node_modules/micromark-util-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz", - "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.0.tgz", + "integrity": "sha512-KvOVV+X1yLBfs9dCBSopq/+G1PcgT3lAK07mC4BzXi5E7ahzMAF8oIupDDJ6mievI6F+lAATkbQQlQixJfT3aQ==", "funding": [ { "type": "GitHub Sponsors", @@ -9924,6 +11730,24 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/side-channel": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", + "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", @@ -10202,6 +12026,51 @@ "node": ">=8" } }, + "node_modules/string.prototype.trim": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", + "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", + "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", + "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/stringify-entities": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.3.tgz", @@ -10320,6 +12189,91 @@ "integrity": "sha512-GP6WDNWf+o403jrEp9c5jibKavrtLW+/qYGhFxFrG8maXhwTBI7gLLhiBb0o7uFccWN+EOS9aMO6cGHWAO07OA==", "license": "MIT" }, + "node_modules/sucrase": { + "version": "3.35.0", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", + "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "glob": "^10.3.10", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/sucrase/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/sucrase/node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/sucrase/node_modules/glob": { + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/sucrase/node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" + }, + "node_modules/sucrase/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/sucrase/node_modules/minipass": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, "node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -10456,6 +12410,53 @@ "url": "https://opencollective.com/unts" } }, + "node_modules/tailwindcss": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.1.tgz", + "integrity": "sha512-qAYmXRfk3ENzuPBakNK0SRrUDipP8NQnEY6772uDhflcQz5EhRdD7JNZxyrFHVQNCwULPBn6FNPp9brpO7ctcA==", + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.5.3", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.0", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.19.1", + "lilconfig": "^2.1.0", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.23", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.1", + "postcss-nested": "^6.0.1", + "postcss-selector-parser": "^6.0.11", + "resolve": "^1.22.2", + "sucrase": "^3.32.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tailwindcss/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/tar": { "version": "6.1.11", "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", @@ -10515,6 +12516,25 @@ "dev": true, "license": "MIT" }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", @@ -10663,6 +12683,11 @@ "node": ">=6.10" } }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==" + }, "node_modules/tsconfck": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-3.0.0.tgz", @@ -10738,6 +12763,79 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/typed-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", + "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", + "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-proto": "^1.0.3", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", + "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-proto": "^1.0.3", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.5.tgz", + "integrity": "sha512-yMi0PlwuznKHxKmcpoOdeLwxBoVPkqZxd7q2FgMkmD3bNwvF5VW0+UlUQ1k1vmktTu4Yu13Q0RIxEP8+B+wloA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-proto": "^1.0.3", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/typescript": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", @@ -10757,6 +12855,21 @@ "resolved": "https://registry.npmjs.org/ultrahtml/-/ultrahtml-1.5.2.tgz", "integrity": "sha512-qh4mBffhlkiXwDAOxvSGxhL0QEQsTbnP9BozOK3OYPEGvPvdWzvAUaXNtUSMdNsKDtuyjEbyVUPFZ52SSLhLqw==" }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/unherit": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/unherit/-/unherit-3.0.1.tgz", @@ -11085,9 +13198,9 @@ } }, "node_modules/vite": { - "version": "4.4.11", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.11.tgz", - "integrity": "sha512-ksNZJlkcU9b0lBwAGZGGaZHCMqHsc8OpgtoYhsQ4/I2v5cnpmmmqe5pM4nv/4Hn6G/2GhTdj0DhZh2e+Er1q5A==", + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.2.tgz", + "integrity": "sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==", "dependencies": { "esbuild": "^0.18.10", "postcss": "^8.4.27", @@ -11606,6 +13719,22 @@ "node": ">= 8" } }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/which-pm": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/which-pm/-/which-pm-2.1.1.tgz", @@ -11626,6 +13755,25 @@ "node": ">=4" } }, + "node_modules/which-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", + "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/whoops": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/whoops/-/whoops-4.1.2.tgz", @@ -11806,6 +13954,17 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "license": "ISC" }, + "node_modules/yaml": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.0.tgz", + "integrity": "sha512-j9iR8g+/t0lArF4V6NE/QCfT+CO7iLqrXAHZbJdo+LfjqP1vR8Fg5bSiaq6Q2lOD1AUEVrEVIgABvBFYojJVYQ==", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/yargs": { "version": "17.6.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", @@ -11862,9 +14021,9 @@ } }, "node_modules/zod": { - "version": "3.21.1", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.21.1.tgz", - "integrity": "sha512-+dTu2m6gmCbO9Ahm4ZBDapx2O6ZY9QSPXst2WXjcznPMwf2YNpn3RevLx4KkZp1OPW/ouFcoBtBzFz/LeY69oA==", + "version": "3.22.4", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", + "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/package.json b/package.json index 5d4d26053..1b2d95937 100644 --- a/package.json +++ b/package.json @@ -11,14 +11,19 @@ "preview": "astro preview", "astro": "astro", "lint": "eslint --ext .js,.ts,.astro src", + "lint:fix": "eslint --fix src", "format": "npx prettier --write .", "cache:fetch": "node scripts/blog-contents-cache.cjs", "cache:purge": "nx reset && rm -f tmp/*", - "_fetch-notion-blocks": "node scripts/retrieve-block-children.cjs" + "_fetch-notion-blocks": "node scripts/retrieve-block-children.cjs", + "clean": "rm -rf dist/* && rm -rf public/notion/*" }, "dependencies": { "@astrojs/react": "^3.0.3", "@astrojs/rss": "^3.0.0", + "@astrojs/tailwind": "^5.1.0", + "@fontsource/ma-shan-zheng": "^5.0.11", + "@fontsource/shippori-mincho-b1": "^5.0.16", "@notionhq/client": "^2.2.5", "@supercharge/promise-pool": "^2.4.0", "astro": "^3.3.1", @@ -26,32 +31,41 @@ "async-retry": "^1.3.3", "axios": "^1.4.0", "exif-be-gone": "^1.3.2", + "gsap": "^3.12.5", "katex": "^0.16.7", "mermaid": "^10.1.0", "metascraper": "^5.34.4", "metascraper-description": "^5.34.4", "metascraper-image": "^5.34.4", "metascraper-title": "^5.34.4", + "node-fetch": "^3.3.2", + "preline": "^2.0.3", "prismjs": "^1.29.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "sharp": "^0.32.4" + "sharp": "^0.32.4", + "tailwindcss": "^3.4.1" }, "devDependencies": { - "@nrwl/nx-cloud": "^15.0.2", + "@nrwl/nx-cloud": "^18.0.0", "@types/async-retry": "^1.4.5", "@types/js-base64": "^3.3.1", + "@types/katex": "^0.16.7", "@types/metascraper": "^5.14.1", "@types/metascraper-description": "^5.14.1", "@types/metascraper-image": "^5.14.0", "@types/metascraper-title": "^5.14.0", - "@typescript-eslint/eslint-plugin": "^6.8.0", - "@typescript-eslint/parser": "^6.8.0", + "@types/prismjs": "^1.26.3", + "@typescript-eslint/eslint-plugin": "^7.2.0", + "@typescript-eslint/parser": "^7.2.0", "@typescript-eslint/typescript-estree": "^6.8.0", "cli-progress": "^3.12.0", "eslint": "^8.51.0", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-config-airbnb-typescript": "^18.0.0", "eslint-plugin-astro": "^0.27.0", - "nx": "15.5.3" + "nx": "^15.9.7", + "prettier": "^3.2.5" }, "nx": { "targets": { diff --git a/patches/add-zhong-deps.patch b/patches/add-zhong-deps.patch new file mode 100644 index 000000000..45f30c3ae --- /dev/null +++ b/patches/add-zhong-deps.patch @@ -0,0 +1,22 @@ +diff --git a/package.json b/package.json +index 1111111..2222222 100644 +--- a/package.json ++++ b/package.json +@@ -20,6 +20,9 @@ + }, + "dependencies": { ++ "@astrojs/tailwind": "^5.1.0", ++ "preline": "^2.0.3", ++ "gsap": "^3.12.5", ++ "tailwindcss": "^3.4.1", + "@astrojs/react": "^3.0.3", + "@astrojs/rss": "^3.0.0", + "@notionhq/client": "^2.2.5", +@@ -70,7 +73,9 @@ + "eslint-plugin-astro": "^0.27.0", +- "nx": "^15.9.7" ++ "nx": "15.5.3", ++ "postcss": "^8.4.41", ++ "autoprefixer": "^10.4.19" + } + } diff --git a/postcss.config.cjs b/postcss.config.cjs new file mode 100644 index 000000000..12a703d90 --- /dev/null +++ b/postcss.config.cjs @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 000000000..bfc6cced5 Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/default-og-image.png b/public/default-og-image.png index 97b4071d6..e831aee4b 100644 Binary files a/public/default-og-image.png and b/public/default-og-image.png differ diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 000000000..e97f4b847 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/icon-192.png b/public/icon-192.png new file mode 100644 index 000000000..93a0a6c2a Binary files /dev/null and b/public/icon-192.png differ diff --git a/public/icon-512.png b/public/icon-512.png new file mode 100644 index 000000000..0ffe29e2a Binary files /dev/null and b/public/icon-512.png differ diff --git a/public/icon.svg b/public/icon.svg new file mode 100644 index 000000000..3e306c0ff --- /dev/null +++ b/public/icon.svg @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/manifest.webmanifest b/public/manifest.webmanifest new file mode 100644 index 000000000..a893e5b7c --- /dev/null +++ b/public/manifest.webmanifest @@ -0,0 +1,6 @@ +{ + "icons": [ + { "src": "/icon-192.png", "type": "image/png", "sizes": "192x192" }, + { "src": "/icon-512.png", "type": "image/png", "sizes": "512x512" } + ] +} diff --git a/public/scripts/fslightbox.js b/public/scripts/fslightbox.js index b826d4ba6..429bb4b00 100644 --- a/public/scripts/fslightbox.js +++ b/public/scripts/fslightbox.js @@ -1,1362 +1,1353 @@ !(function (e, t) { - if ('object' == typeof exports && 'object' == typeof module) - module.exports = t(); - else if ('function' == typeof define && define.amd) define([], t); + if (typeof exports === 'object' && typeof module === 'object') module.exports = t(); + else if (typeof define === 'function' && define.amd) define([], t); else { - var n = t(); - for (var o in n) ('object' == typeof exports ? exports : e)[o] = n[o]; + const n = t(); + for (const o in n) (typeof exports === 'object' ? exports : e)[o] = n[o]; } -})(window, function () { - return (function (e) { - var t = {}; - function n(o) { - if (t[o]) return t[o].exports; - var i = (t[o] = { i: o, l: !1, exports: {} }); - return e[o].call(i.exports, i, i.exports, n), (i.l = !0), i.exports; +}(window, () => (function (e) { + const t = {}; + function n(o) { + if (t[o]) return t[o].exports; + const i = (t[o] = { i: o, l: !1, exports: {} }); + return e[o].call(i.exports, i, i.exports, n), (i.l = !0), i.exports; + } + return ( + (n.m = e), + (n.c = t), + (n.d = function (e, t, o) { + n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: o }); + }), + (n.r = function (e) { + typeof Symbol !== 'undefined' + && Symbol.toStringTag + && Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }); + Object.defineProperty(e, '__esModule', { value: !0 }); + }), + (n.t = function (e, t) { + if ((1 & t && (e = n(e)), 8 & t)) return e; + if (4 & t && typeof e === 'object' && e && e.__esModule) return e; + const o = Object.create(null); + if ( + (n.r(o), + Object.defineProperty(o, 'default', { enumerable: !0, value: e }), + 2 & t && typeof e !== 'string') + ) { + for (const i in e) { + n.d( + o, + i, + ((t) => e[t]).bind(null, i), + ); + } + } + return o; + }), + (n.n = function (e) { + const t = e && e.__esModule + ? function () { + return e.default; + } + : function () { + return e; + }; + return n.d(t, 'a', t), t; + }), + (n.o = function (e, t) { + return Object.prototype.hasOwnProperty.call(e, t); + }), + (n.p = ''), + n((n.s = 0)) + ); +}([ + function (e, t, n) { + n.r(t); + let o; + const i = 'fslightbox-'; + const r = ''.concat(i, 'styles'); + const s = ''.concat(i, 'cursor-grabbing'); + const a = ''.concat(i, 'full-dimension'); + const c = ''.concat(i, 'flex-centered'); + const l = ''.concat(i, 'open'); + const u = ''.concat(i, 'transform-transition'); + const d = ''.concat(i, 'absoluted'); + const f = ''.concat(i, 'slide-btn'); + const p = ''.concat(f, '-container'); + const h = ''.concat(i, 'fade-in'); + const m = ''.concat(i, 'fade-out'); + const g = `${h}-strong`; + const v = `${m}-strong`; + const b = ''.concat(i, 'opacity-'); + const x = ''.concat(b, '1'); + const y = ''.concat(i, 'source'); + function w(e) { + return (w = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' + ? function (e) { + return typeof e; + } + : function (e) { + return e + && typeof Symbol === 'function' + && e.constructor === Symbol + && e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); } - return ( - (n.m = e), - (n.c = t), - (n.d = function (e, t, o) { - n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: o }); + function S(e) { + const t = e.stageIndexes; + const n = e.core.stageManager; + const o = e.props.sources.length - 1; + (n.getPreviousSlideIndex = function () { + return t.current === 0 ? o : t.current - 1; }), - (n.r = function (e) { - 'undefined' != typeof Symbol && - Symbol.toStringTag && - Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }), - Object.defineProperty(e, '__esModule', { value: !0 }); + (n.getNextSlideIndex = function () { + return t.current === o ? 0 : t.current + 1; }), - (n.t = function (e, t) { - if ((1 & t && (e = n(e)), 8 & t)) return e; - if (4 & t && 'object' == typeof e && e && e.__esModule) return e; - var o = Object.create(null); - if ( - (n.r(o), - Object.defineProperty(o, 'default', { enumerable: !0, value: e }), - 2 & t && 'string' != typeof e) - ) - for (var i in e) - n.d( - o, - i, - function (t) { - return e[t]; - }.bind(null, i) - ); - return o; - }), - (n.n = function (e) { - var t = - e && e.__esModule - ? function () { - return e.default; - } - : function () { - return e; - }; - return n.d(t, 'a', t), t; - }), - (n.o = function (e, t) { - return Object.prototype.hasOwnProperty.call(e, t); - }), - (n.p = ''), - n((n.s = 0)) - ); - })([ - function (e, t, n) { - 'use strict'; - n.r(t); - var o, - i = 'fslightbox-', - r = ''.concat(i, 'styles'), - s = ''.concat(i, 'cursor-grabbing'), - a = ''.concat(i, 'full-dimension'), - c = ''.concat(i, 'flex-centered'), - l = ''.concat(i, 'open'), - u = ''.concat(i, 'transform-transition'), - d = ''.concat(i, 'absoluted'), - f = ''.concat(i, 'slide-btn'), - p = ''.concat(f, '-container'), - h = ''.concat(i, 'fade-in'), - m = ''.concat(i, 'fade-out'), - g = h + '-strong', - v = m + '-strong', - b = ''.concat(i, 'opacity-'), - x = ''.concat(b, '1'), - y = ''.concat(i, 'source'); - function w(e) { - return (w = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function (e) { - return typeof e; - } - : function (e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function S(e) { - var t = e.stageIndexes, - n = e.core.stageManager, - o = e.props.sources.length - 1; - (n.getPreviousSlideIndex = function () { - return 0 === t.current ? o : t.current - 1; - }), - (n.getNextSlideIndex = function () { - return t.current === o ? 0 : t.current + 1; + (n.updateStageIndexes = o === 0 + ? function () {} + : o === 1 + ? function () { + t.current === 0 + ? ((t.next = 1), delete t.previous) + : ((t.previous = 0), delete t.next); + } + : function () { + (t.previous = n.getPreviousSlideIndex()), + (t.next = n.getNextSlideIndex()); }), - (n.updateStageIndexes = - 0 === o - ? function () {} - : 1 === o - ? function () { - 0 === t.current - ? ((t.next = 1), delete t.previous) - : ((t.previous = 0), delete t.next); - } - : function () { - (t.previous = n.getPreviousSlideIndex()), - (t.next = n.getNextSlideIndex()); - }), - (n.i = - o <= 2 - ? function () { - return !0; - } - : function (e) { - var n = t.current; - if ((0 === n && e === o) || (n === o && 0 === e)) return !0; - var i = n - e; - return -1 === i || 0 === i || 1 === i; - }); - } - 'object' === - ('undefined' == typeof document ? 'undefined' : w(document)) && - (((o = document.createElement('style')).className = r), + (n.i = o <= 2 + ? function () { + return !0; + } + : function (e) { + const n = t.current; + if ((n === 0 && e === o) || (n === o && e === 0)) return !0; + const i = n - e; + return i === -1 || i === 0 || i === 1; + }); + } + (typeof document === 'undefined' ? 'undefined' : w(document)) + === 'object' + && (((o = document.createElement('style')).className = r), o.appendChild( document.createTextNode( - '.fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-fade-in{animation:fslightbox-fade-in .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .3s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .3s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-cursor-grabbing{cursor:grabbing}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s}.fslightbox-container{font-family:Arial,sans-serif;position:fixed;top:0;left:0;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);touch-action:pinch-zoom;z-index:1000000000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg-path{transition:fill .15s ease;fill:#ddd}.fslightbox-nav{height:45px;width:100%;position:absolute;top:0;left:0}.fslightbox-slide-number-container{display:flex;justify-content:center;align-items:center;position:relative;height:100%;font-size:15px;color:#d7d7d7;z-index:0;max-width:55px;text-align:left}.fslightbox-slide-number-container .fslightbox-flex-centered{height:100%}.fslightbox-slash{display:block;margin:0 5px;width:1px;height:12px;transform:rotate(15deg);background:#fff}.fslightbox-toolbar{position:absolute;z-index:3;right:0;top:0;height:100%;display:flex;background:rgba(35,35,35,.65)}.fslightbox-toolbar-button{height:100%;width:45px;cursor:pointer}.fslightbox-toolbar-button:hover .fslightbox-svg-path{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:3;transform:translateY(-50%)}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}}.fslightbox-slide-btn-container:hover .fslightbox-svg-path{fill:#f1f1f1}.fslightbox-slide-btn{padding:9px;font-size:26px;background:rgba(35,35,35,.65)}@media (min-width:768px){.fslightbox-slide-btn{padding:10px}}@media (min-width:1600px){.fslightbox-slide-btn{padding:11px}}.fslightbox-slide-btn-container-previous{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-container-previous{padding-left:3px}}.fslightbox-slide-btn-container-next{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-container-next{padding-left:30px}}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-right:6px}}.fslightbox-down-event-detector{position:absolute;z-index:1}.fslightbox-slide-swiping-hoverer{z-index:4}.fslightbox-invalid-file-wrapper{font-size:22px;color:#eaebeb;margin:auto}.fslightbox-video{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightboxl{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightboxl div{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightboxl 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightboxl div:nth-child(1){animation-delay:-.45s}.fslightboxl div:nth-child(2){animation-delay:-.3s}.fslightboxl div:nth-child(3){animation-delay:-.15s}@keyframes fslightboxl{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-source{position:relative;z-index:2;opacity:0}' - ) + '.fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-fade-in{animation:fslightbox-fade-in .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .3s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .3s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-cursor-grabbing{cursor:grabbing}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s}.fslightbox-container{font-family:Arial,sans-serif;position:fixed;top:0;left:0;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);touch-action:pinch-zoom;z-index:1000000000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg-path{transition:fill .15s ease;fill:#ddd}.fslightbox-nav{height:45px;width:100%;position:absolute;top:0;left:0}.fslightbox-slide-number-container{display:flex;justify-content:center;align-items:center;position:relative;height:100%;font-size:15px;color:#d7d7d7;z-index:0;max-width:55px;text-align:left}.fslightbox-slide-number-container .fslightbox-flex-centered{height:100%}.fslightbox-slash{display:block;margin:0 5px;width:1px;height:12px;transform:rotate(15deg);background:#fff}.fslightbox-toolbar{position:absolute;z-index:3;right:0;top:0;height:100%;display:flex;background:rgba(35,35,35,.65)}.fslightbox-toolbar-button{height:100%;width:45px;cursor:pointer}.fslightbox-toolbar-button:hover .fslightbox-svg-path{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:3;transform:translateY(-50%)}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}}.fslightbox-slide-btn-container:hover .fslightbox-svg-path{fill:#f1f1f1}.fslightbox-slide-btn{padding:9px;font-size:26px;background:rgba(35,35,35,.65)}@media (min-width:768px){.fslightbox-slide-btn{padding:10px}}@media (min-width:1600px){.fslightbox-slide-btn{padding:11px}}.fslightbox-slide-btn-container-previous{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-container-previous{padding-left:3px}}.fslightbox-slide-btn-container-next{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-container-next{padding-left:30px}}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-right:6px}}.fslightbox-down-event-detector{position:absolute;z-index:1}.fslightbox-slide-swiping-hoverer{z-index:4}.fslightbox-invalid-file-wrapper{font-size:22px;color:#eaebeb;margin:auto}.fslightbox-video{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightboxl{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightboxl div{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightboxl 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightboxl div:nth-child(1){animation-delay:-.45s}.fslightboxl div:nth-child(2){animation-delay:-.3s}.fslightboxl div:nth-child(3){animation-delay:-.15s}@keyframes fslightboxl{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-source{position:relative;z-index:2;opacity:0}', + ), ), document.head.appendChild(o)); - function L(e) { - var t, - n = e.props, - o = 0, - i = {}; - (this.getSourceTypeFromLocalStorageByUrl = function (e) { - return t[e] ? t[e] : r(e); - }), - (this.handleReceivedSourceTypeForUrl = function (e, n) { - if ( - !1 === i[n] && - (o--, 'invalid' !== e ? (i[n] = e) : delete i[n], 0 === o) - ) { - !(function (e, t) { - for (var n in t) e[n] = t[n]; - })(t, i); - try { - localStorage.setItem('fslightbox-types', JSON.stringify(t)); - } catch (e) {} - } - }); - var r = function (e) { - o++, (i[e] = !1); - }; - if (n.disableLocalStorage) - (this.getSourceTypeFromLocalStorageByUrl = function () {}), - (this.handleReceivedSourceTypeForUrl = function () {}); - else { + function L(e) { + let t; + const n = e.props; + let o = 0; + const i = {}; + (this.getSourceTypeFromLocalStorageByUrl = function (e) { + return t[e] ? t[e] : r(e); + }), + (this.handleReceivedSourceTypeForUrl = function (e, n) { + if ( + !1 === i[n] + && (o--, e !== 'invalid' ? (i[n] = e) : delete i[n], o === 0) + ) { + !(function (e, t) { + for (const n in t) e[n] = t[n]; + }(t, i)); try { - t = JSON.parse(localStorage.getItem('fslightbox-types')); + localStorage.setItem('fslightbox-types', JSON.stringify(t)); } catch (e) {} - t || ((t = {}), (this.getSourceTypeFromLocalStorageByUrl = r)); } + }); + var r = function (e) { + o++, (i[e] = !1); + }; + if (n.disableLocalStorage) { + (this.getSourceTypeFromLocalStorageByUrl = function () {}), + (this.handleReceivedSourceTypeForUrl = function () {}); + } else { + try { + t = JSON.parse(localStorage.getItem('fslightbox-types')); + } catch (e) {} + t || ((t = {}), (this.getSourceTypeFromLocalStorageByUrl = r)); } - function A(e, t, n, o) { - var i = e.data, - r = e.elements.sources, - s = n / o, - a = 0; - this.adjustSize = function () { - if ((a = i.maxSourceWidth / s) < i.maxSourceHeight) - return n < i.maxSourceWidth && (a = o), c(); - (a = o > i.maxSourceHeight ? i.maxSourceHeight : o), c(); - }; - var c = function () { - (r[t].style.width = a * s + 'px'), (r[t].style.height = a + 'px'); - }; + } + function A(e, t, n, o) { + const i = e.data; + const r = e.elements.sources; + const s = n / o; + let a = 0; + this.adjustSize = function () { + if ((a = i.maxSourceWidth / s) < i.maxSourceHeight) return n < i.maxSourceWidth && (a = o), c(); + (a = o > i.maxSourceHeight ? i.maxSourceHeight : o), c(); + }; + var c = function () { + (r[t].style.width = `${a * s}px`), (r[t].style.height = `${a}px`); + }; + } + function C(e, t) { + const n = this; + const o = e.collections.sourceSizers; + const i = e.elements; + const r = i.sourceAnimationWrappers; + const s = i.sources; + const a = e.isl; + const c = e.resolve; + function l(e, n) { + (o[t] = c(A, [t, e, n])), o[t].adjustSize(); } - function C(e, t) { - var n = this, - o = e.collections.sourceSizers, - i = e.elements, - r = i.sourceAnimationWrappers, - s = i.sources, - a = e.isl, - c = e.resolve; - function l(e, n) { - (o[t] = c(A, [t, e, n])), o[t].adjustSize(); + this.runActions = function (e, o) { + (a[t] = !0), + s[t].classList.add(x), + r[t].classList.add(g), + r[t].removeChild(r[t].firstChild), + l(e, o), + (n.runActions = l); + }; + } + function E(e, t) { + let n; + const o = this; + const i = e.elements.sources; + const r = e.props; + const s = (0, e.resolve)(C, [t]); + (this.handleImageLoad = function (e) { + const t = e.target; + const n = t.naturalWidth; + const o = t.naturalHeight; + s.runActions(n, o); + }), + (this.handleVideoLoad = function (e) { + const t = e.target; + const o = t.videoWidth; + const i = t.videoHeight; + (n = !0), s.runActions(o, i); + }), + (this.handleNotMetaDatedVideoLoad = function () { + n || o.handleYoutubeLoad(); + }), + (this.handleYoutubeLoad = function () { + let e = 1920; + let t = 1080; + r.maxYoutubeDimensions + && ((e = r.maxYoutubeDimensions.width), + (t = r.maxYoutubeDimensions.height)), + s.runActions(e, t); + }), + (this.handleCustomLoad = function () { + const e = i[t]; + const n = e.offsetWidth; + const r = e.offsetHeight; + n && r ? s.runActions(n, r) : setTimeout(o.handleCustomLoad); + }); + } + function F(e, t, n) { + const o = e.elements.sources; + const i = e.props.customClasses; + const r = i[t] ? i[t] : ''; + o[t].className = `${n} ${r}`; + } + function I(e, t) { + const n = e.elements.sources; + const o = e.props.customAttributes; + for (const i in o[t]) n[t].setAttribute(i, o[t][i]); + } + function T(e, t) { + const n = e.collections.sourceLoadHandlers; + const o = e.elements; + const i = o.sources; + const r = o.sourceAnimationWrappers; + const s = e.props.sources; + (i[t] = document.createElement('img')), + F(e, t, y), + (i[t].src = s[t]), + (i[t].onload = n[t].handleImageLoad), + I(e, t), + r[t].appendChild(i[t]); + } + function N(e, t) { + const n = e.collections.sourceLoadHandlers; + const o = e.elements; + const i = o.sources; + const r = o.sourceAnimationWrappers; + const s = e.props; + const a = s.sources; + const c = s.videosPosters; + (i[t] = document.createElement('video')), + F(e, t, y), + (i[t].src = a[t]), + (i[t].onloadedmetadata = function (e) { + n[t].handleVideoLoad(e); + }), + (i[t].controls = !0), + I(e, t), + c[t] && (i[t].poster = c[t]); + const l = document.createElement('source'); + (l.src = a[t]), + i[t].appendChild(l), + setTimeout(n[t].handleNotMetaDatedVideoLoad, 3e3), + r[t].appendChild(i[t]); + } + function z(e, t) { + const n = e.collections.sourceLoadHandlers; + const o = e.elements; + const r = o.sources; + const s = o.sourceAnimationWrappers; + const a = e.props.sources; + (r[t] = document.createElement('iframe')), + F(e, t, ''.concat(y, ' ').concat(i, 'youtube-iframe')); + const c = a[t]; + const l = c.split('?')[1]; + (r[t].src = 'https://www.youtube.com/embed/' + .concat( + c.match( + /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/, + )[2], + '?', + ) + .concat(l || '')), + (r[t].allowFullscreen = !0), + I(e, t), + s[t].appendChild(r[t]), + n[t].handleYoutubeLoad(); + } + function P(e, t) { + const n = e.collections.sourceLoadHandlers; + const o = e.elements; + const i = o.sources; + const r = o.sourceAnimationWrappers; + const s = e.props.sources; + (i[t] = s[t]), + F(e, t, ''.concat(i[t].className, ' ').concat(y)), + r[t].appendChild(i[t]), + n[t].handleCustomLoad(); + } + function k(e, t) { + const n = e.elements; + const o = n.sources; + const r = n.sourceAnimationWrappers; + e.props.sources; + (o[t] = document.createElement('div')), + (o[t].className = ''.concat(i, 'invalid-file-wrapper ').concat(c)), + (o[t].innerHTML = 'Invalid source'), + r[t].classList.add(g), + r[t].removeChild(r[t].firstChild), + r[t].appendChild(o[t]); + } + function H(e) { + const t = e.collections; + const n = t.sourceLoadHandlers; + const o = t.sourcesRenderFunctions; + const i = e.core.sourceDisplayFacade; + const r = e.resolve; + this.runActionsForSourceTypeAndIndex = function (t, s) { + let a; + switch ((t !== 'invalid' && (n[s] = r(E, [s])), t)) { + case 'image': + a = T; + break; + case 'video': + a = N; + break; + case 'youtube': + a = z; + break; + case 'custom': + a = P; + break; + default: + a = k; } - this.runActions = function (e, o) { - (a[t] = !0), - s[t].classList.add(x), - r[t].classList.add(g), - r[t].removeChild(r[t].firstChild), - l(e, o), - (n.runActions = l); - }; - } - function E(e, t) { - var n, - o = this, - i = e.elements.sources, - r = e.props, - s = (0, e.resolve)(C, [t]); - (this.handleImageLoad = function (e) { - var t = e.target, - n = t.naturalWidth, - o = t.naturalHeight; - s.runActions(n, o); + (o[s] = function () { + return a(e, s); }), - (this.handleVideoLoad = function (e) { - var t = e.target, - o = t.videoWidth, - i = t.videoHeight; - (n = !0), s.runActions(o, i); - }), - (this.handleNotMetaDatedVideoLoad = function () { - n || o.handleYoutubeLoad(); - }), - (this.handleYoutubeLoad = function () { - var e = 1920, - t = 1080; - r.maxYoutubeDimensions && - ((e = r.maxYoutubeDimensions.width), - (t = r.maxYoutubeDimensions.height)), - s.runActions(e, t); - }), - (this.handleCustomLoad = function () { - var e = i[t], - n = e.offsetWidth, - r = e.offsetHeight; - n && r ? s.runActions(n, r) : setTimeout(o.handleCustomLoad); - }); - } - function F(e, t, n) { - var o = e.elements.sources, - i = e.props.customClasses, - r = i[t] ? i[t] : ''; - o[t].className = n + ' ' + r; - } - function I(e, t) { - var n = e.elements.sources, - o = e.props.customAttributes; - for (var i in o[t]) n[t].setAttribute(i, o[t][i]); - } - function T(e, t) { - var n = e.collections.sourceLoadHandlers, - o = e.elements, - i = o.sources, - r = o.sourceAnimationWrappers, - s = e.props.sources; - (i[t] = document.createElement('img')), - F(e, t, y), - (i[t].src = s[t]), - (i[t].onload = n[t].handleImageLoad), - I(e, t), - r[t].appendChild(i[t]); - } - function N(e, t) { - var n = e.collections.sourceLoadHandlers, - o = e.elements, - i = o.sources, - r = o.sourceAnimationWrappers, - s = e.props, - a = s.sources, - c = s.videosPosters; - (i[t] = document.createElement('video')), - F(e, t, y), - (i[t].src = a[t]), - (i[t].onloadedmetadata = function (e) { - n[t].handleVideoLoad(e); - }), - (i[t].controls = !0), - I(e, t), - c[t] && (i[t].poster = c[t]); - var l = document.createElement('source'); - (l.src = a[t]), - i[t].appendChild(l), - setTimeout(n[t].handleNotMetaDatedVideoLoad, 3e3), - r[t].appendChild(i[t]); - } - function z(e, t) { - var n = e.collections.sourceLoadHandlers, - o = e.elements, - r = o.sources, - s = o.sourceAnimationWrappers, - a = e.props.sources; - (r[t] = document.createElement('iframe')), - F(e, t, ''.concat(y, ' ').concat(i, 'youtube-iframe')); - var c = a[t], - l = c.split('?')[1]; - (r[t].src = 'https://www.youtube.com/embed/' - .concat( - c.match( - /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/ - )[2], - '?' - ) - .concat(l || '')), - (r[t].allowFullscreen = !0), - I(e, t), - s[t].appendChild(r[t]), - n[t].handleYoutubeLoad(); - } - function P(e, t) { - var n = e.collections.sourceLoadHandlers, - o = e.elements, - i = o.sources, - r = o.sourceAnimationWrappers, - s = e.props.sources; - (i[t] = s[t]), - F(e, t, ''.concat(i[t].className, ' ').concat(y)), - r[t].appendChild(i[t]), - n[t].handleCustomLoad(); + i.displaySourcesWhichShouldBeDisplayed(); + }; + } + function W() { + let e; + let t; + let n; + const o = { + isUrlYoutubeOne(e) { + const t = document.createElement('a'); + return ( + (t.href = e), + t.hostname === 'www.youtube.com' || t.hostname === 'youtu.be' + ); + }, + getTypeFromResponseContentType(e) { + return e.slice(0, e.indexOf('/')); + }, + }; + function i() { + if (n.readyState !== 4) { + if (n.readyState === 2) { + let e; + switch ( + o.getTypeFromResponseContentType( + n.getResponseHeader('content-type'), + ) + ) { + case 'image': + e = 'image'; + break; + case 'video': + e = 'video'; + break; + default: + e = 'invalid'; + } + (n.onreadystatechange = null), n.abort(), t(e); + } + } else t('invalid'); } - function k(e, t) { - var n = e.elements, - o = n.sources, - r = n.sourceAnimationWrappers; - e.props.sources; - (o[t] = document.createElement('div')), - (o[t].className = ''.concat(i, 'invalid-file-wrapper ').concat(c)), - (o[t].innerHTML = 'Invalid source'), - r[t].classList.add(g), - r[t].removeChild(r[t].firstChild), - r[t].appendChild(o[t]); + (this.setUrlToCheck = function (t) { + e = t; + }), + (this.getSourceType = function (r) { + if (o.isUrlYoutubeOne(e)) return r('youtube'); + (t = r), + ((n = new XMLHttpRequest()).onreadystatechange = i), + n.open('GET', e, !0), + n.send(); + }); + } + function R(e, t, n) { + const o = e.props; + const i = o.types; + const r = o.type; + const s = o.sources; + const a = e.resolve; + (this.getTypeSetByClientForIndex = function (e) { + let t; + return i && i[e] ? (t = i[e]) : r && (t = r), t; + }), + (this.retrieveTypeWithXhrForIndex = function (e) { + const o = a(W); + o.setUrlToCheck(s[e]), + o.getSourceType((o) => { + t.handleReceivedSourceTypeForUrl(o, s[e]), + n.runActionsForSourceTypeAndIndex(o, e); + }); + }); + } + function D(e, t) { + const n = e.core.stageManager; + const o = e.elements; + const i = o.smw; + const r = o.sourceWrappersContainer; + const s = e.props; + let l = 0; + const f = document.createElement('div'); + function p(e) { + (f.style.transform = 'translateX('.concat(e + l, 'px)')), (l = 0); } - function H(e) { - var t = e.collections, - n = t.sourceLoadHandlers, - o = t.sourcesRenderFunctions, - i = e.core.sourceDisplayFacade, - r = e.resolve; - this.runActionsForSourceTypeAndIndex = function (t, s) { - var a; - switch (('invalid' !== t && (n[s] = r(E, [s])), t)) { - case 'image': - a = T; - break; - case 'video': - a = N; - break; - case 'youtube': - a = z; - break; - case 'custom': - a = P; - break; - default: - a = k; - } - (o[s] = function () { - return a(e, s); - }), - i.displaySourcesWhichShouldBeDisplayed(); - }; + function h() { + return (1 + s.slideDistance) * innerWidth; } - function W() { - var e, - t, - n, - o = { - isUrlYoutubeOne: function (e) { - var t = document.createElement('a'); - return ( - (t.href = e), - 'www.youtube.com' === t.hostname || 'youtu.be' === t.hostname - ); - }, - getTypeFromResponseContentType: function (e) { - return e.slice(0, e.indexOf('/')); - }, - }; - function i() { - if (4 !== n.readyState) { - if (2 === n.readyState) { - var e; - switch ( - o.getTypeFromResponseContentType( - n.getResponseHeader('content-type') - ) - ) { - case 'image': - e = 'image'; - break; - case 'video': - e = 'video'; - break; - default: - e = 'invalid'; - } - (n.onreadystatechange = null), n.abort(), t(e); - } - } else t('invalid'); + (f.className = ''.concat(d, ' ').concat(a, ' ').concat(c)), + (f.s = function () { + f.style.display = 'flex'; + }), + (f.h = function () { + f.style.display = 'none'; + }), + (f.a = function () { + f.classList.add(u); + }), + (f.d = function () { + f.classList.remove(u); + }), + (f.n = function () { + f.style.removeProperty('transform'); + }), + (f.v = function (e) { + return (l = e), f; + }), + (f.ne = function () { + p(-h()); + }), + (f.z = function () { + p(0); + }), + (f.p = function () { + p(h()); + }), + n.i(t) || f.h(), + (i[t] = f), + r.appendChild(f), + (function (e, t) { + const n = e.elements; + const o = n.smw; + const i = n.sourceAnimationWrappers; + const r = document.createElement('div'); + const s = document.createElement('div'); + s.className = 'fslightboxl'; + for (let a = 0; a < 3; a++) { + const c = document.createElement('div'); + s.appendChild(c); } - (this.setUrlToCheck = function (t) { - e = t; + r.appendChild(s), o[t].appendChild(r), (i[t] = r); + }(e, t)); + } + function O(e, t, n, o) { + const r = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); + r.setAttributeNS(null, 'width', t), + r.setAttributeNS(null, 'height', t), + r.setAttributeNS(null, 'viewBox', n); + const s = document.createElementNS('http://www.w3.org/2000/svg', 'path'); + return ( + s.setAttributeNS(null, 'class', ''.concat(i, 'svg-path')), + s.setAttributeNS(null, 'd', o), + r.appendChild(s), + e.appendChild(r), + r + ); + } + function M(e, t) { + const n = document.createElement('div'); + return ( + (n.className = ''.concat(i, 'toolbar-button ').concat(c)), + (n.title = t), + e.appendChild(n), + n + ); + } + function j(e, t) { + const n = document.createElement('div'); + (n.className = ''.concat(i, 'toolbar')), + t.appendChild(n), + (function (e, t) { + const n = e.componentsServices; + const o = e.data; + const i = e.fs; + const r = 'M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z'; + const s = M(t); + s.title = 'Enter fullscreen'; + const a = O(s, '20px', '0 0 18 18', r); + (n.ofs = function () { + (o.ifs = !0), + (s.title = 'Exit fullscreen'), + a.setAttributeNS(null, 'width', '24px'), + a.setAttributeNS(null, 'height', '24px'), + a.setAttributeNS(null, 'viewBox', '0 0 950 1024'), + a.firstChild.setAttributeNS( + null, + 'd', + 'M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z', + ); }), - (this.getSourceType = function (r) { - if (o.isUrlYoutubeOne(e)) return r('youtube'); - (t = r), - ((n = new XMLHttpRequest()).onreadystatechange = i), - n.open('GET', e, !0), - n.send(); - }); - } - function R(e, t, n) { - var o = e.props, - i = o.types, - r = o.type, - s = o.sources, - a = e.resolve; - (this.getTypeSetByClientForIndex = function (e) { - var t; - return i && i[e] ? (t = i[e]) : r && (t = r), t; + (n.xfs = function () { + (o.ifs = !1), + (s.title = 'Enter fullscreen'), + a.setAttributeNS(null, 'width', '20px'), + a.setAttributeNS(null, 'height', '20px'), + a.setAttributeNS(null, 'viewBox', '0 0 18 18'), + a.firstChild.setAttributeNS(null, 'd', r); }), - (this.retrieveTypeWithXhrForIndex = function (e) { - var o = a(W); - o.setUrlToCheck(s[e]), - o.getSourceType(function (o) { - t.handleReceivedSourceTypeForUrl(o, s[e]), - n.runActionsForSourceTypeAndIndex(o, e); - }); - }); - } - function D(e, t) { - var n = e.core.stageManager, - o = e.elements, - i = o.smw, - r = o.sourceWrappersContainer, - s = e.props, - l = 0, - f = document.createElement('div'); - function p(e) { - (f.style.transform = 'translateX('.concat(e + l, 'px)')), (l = 0); - } - function h() { - return (1 + s.slideDistance) * innerWidth; - } - (f.className = ''.concat(d, ' ').concat(a, ' ').concat(c)), - (f.s = function () { - f.style.display = 'flex'; - }), - (f.h = function () { - f.style.display = 'none'; - }), - (f.a = function () { - f.classList.add(u); - }), - (f.d = function () { - f.classList.remove(u); - }), - (f.n = function () { - f.style.removeProperty('transform'); - }), - (f.v = function (e) { - return (l = e), f; - }), - (f.ne = function () { - p(-h()); - }), - (f.z = function () { - p(0); - }), - (f.p = function () { - p(h()); - }), - n.i(t) || f.h(), - (i[t] = f), - r.appendChild(f), - (function (e, t) { - var n = e.elements, - o = n.smw, - i = n.sourceAnimationWrappers, - r = document.createElement('div'), - s = document.createElement('div'); - s.className = 'fslightboxl'; - for (var a = 0; a < 3; a++) { - var c = document.createElement('div'); - s.appendChild(c); - } - r.appendChild(s), o[t].appendChild(r), (i[t] = r); - })(e, t); - } - function O(e, t, n, o) { - var r = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); - r.setAttributeNS(null, 'width', t), - r.setAttributeNS(null, 'height', t), - r.setAttributeNS(null, 'viewBox', n); - var s = document.createElementNS('http://www.w3.org/2000/svg', 'path'); - return ( - s.setAttributeNS(null, 'class', ''.concat(i, 'svg-path')), - s.setAttributeNS(null, 'd', o), - r.appendChild(s), - e.appendChild(r), - r - ); - } - function M(e, t) { - var n = document.createElement('div'); - return ( - (n.className = ''.concat(i, 'toolbar-button ').concat(c)), - (n.title = t), - e.appendChild(n), - n + (s.onclick = i.t); + }(e, n)), + (function (e, t) { + const n = M(t, 'Close'); + (n.onclick = e.core.lightboxCloser.closeLightbox), + O( + n, + '20px', + '0 0 24 24', + 'M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z', ); - } - function j(e, t) { - var n = document.createElement('div'); - (n.className = ''.concat(i, 'toolbar')), - t.appendChild(n), - (function (e, t) { - var n = e.componentsServices, - o = e.data, - i = e.fs, - r = - 'M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z', - s = M(t); - s.title = 'Enter fullscreen'; - var a = O(s, '20px', '0 0 18 18', r); - (n.ofs = function () { - (o.ifs = !0), - (s.title = 'Exit fullscreen'), - a.setAttributeNS(null, 'width', '24px'), - a.setAttributeNS(null, 'height', '24px'), - a.setAttributeNS(null, 'viewBox', '0 0 950 1024'), - a.firstChild.setAttributeNS( - null, - 'd', - 'M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z' - ); - }), - (n.xfs = function () { - (o.ifs = !1), - (s.title = 'Enter fullscreen'), - a.setAttributeNS(null, 'width', '20px'), - a.setAttributeNS(null, 'height', '20px'), - a.setAttributeNS(null, 'viewBox', '0 0 18 18'), - a.firstChild.setAttributeNS(null, 'd', r); - }), - (s.onclick = i.t); - })(e, n), - (function (e, t) { - var n = M(t, 'Close'); - (n.onclick = e.core.lightboxCloser.closeLightbox), - O( - n, - '20px', - '0 0 24 24', - 'M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z' - ); - })(e, n); - } - function X(e) { - var t = e.props.sources, - n = e.elements.container, - o = document.createElement('div'); - (o.className = ''.concat(i, 'nav')), - n.appendChild(o), - j(e, o), - t.length > 1 && - (function (e, t) { - var n = e.componentsServices, - o = e.props.sources, - r = (e.stageIndexes, document.createElement('div')); + }(e, n)); + } + function X(e) { + const t = e.props.sources; + const n = e.elements.container; + const o = document.createElement('div'); + (o.className = ''.concat(i, 'nav')), + n.appendChild(o), + j(e, o), + t.length > 1 + && (function (e, t) { + const n = e.componentsServices; + const o = e.props.sources; + const r = (e.stageIndexes, document.createElement('div')); r.className = ''.concat(i, 'slide-number-container'); - var s = document.createElement('div'); + const s = document.createElement('div'); s.className = c; - var a = document.createElement('span'); + const a = document.createElement('span'); n.setSlideNumber = function (e) { return (a.innerHTML = e); }; - var l = document.createElement('span'); + const l = document.createElement('span'); l.className = ''.concat(i, 'slash'); - var u = document.createElement('div'); + const u = document.createElement('div'); (u.innerHTML = o.length), - r.appendChild(s), - s.appendChild(a), - s.appendChild(l), - s.appendChild(u), - t.appendChild(r), - setTimeout(function () { - s.offsetWidth > 55 && (r.style.justifyContent = 'flex-start'); - }); - })(e, o); + r.appendChild(s), + s.appendChild(a), + s.appendChild(l), + s.appendChild(u), + t.appendChild(r), + setTimeout(() => { + s.offsetWidth > 55 && (r.style.justifyContent = 'flex-start'); + }); + }(e, o)); + } + function B(e, t, n, o) { + const i = e.elements.container; + const r = n.charAt(0).toUpperCase() + n.slice(1); + const s = document.createElement('div'); + (s.className = ''.concat(p, ' ').concat(p, '-').concat(n)), + (s.title = ''.concat(r, ' slide')), + (s.onclick = t), + (function (e, t) { + const n = document.createElement('div'); + (n.className = ''.concat(f, ' ').concat(c)), + O(n, '20px', '0 0 20 20', t), + e.appendChild(n); + }(s, o)), + i.appendChild(s); + } + function U(e) { + const t = e.core; + const n = t.lightboxCloser; + const o = t.slideChangeFacade; + const i = e.fs; + this.listener = function (e) { + switch (e.key) { + case 'Escape': + n.closeLightbox(); + break; + case 'ArrowLeft': + o.changeToPrevious(); + break; + case 'ArrowRight': + o.changeToNext(); + break; + case 'F11': + e.preventDefault(), i.t(); + } + }; + } + function q(e) { + const t = e.elements; + const n = e.sourcePointerProps; + const o = e.stageIndexes; + function i(e, o) { + t.smw[e].v(n.swipedX)[o](); } - function B(e, t, n, o) { - var i = e.elements.container, - r = n.charAt(0).toUpperCase() + n.slice(1), - s = document.createElement('div'); - (s.className = ''.concat(p, ' ').concat(p, '-').concat(n)), - (s.title = ''.concat(r, ' slide')), - (s.onclick = t), - (function (e, t) { - var n = document.createElement('div'); - (n.className = ''.concat(f, ' ').concat(c)), - O(n, '20px', '0 0 20 20', t), - e.appendChild(n); - })(s, o), - i.appendChild(s); + this.runActionsForEvent = function (e) { + let r; let a; let + c; + t.container.contains(t.slideSwipingHoverer) + || t.container.appendChild(t.slideSwipingHoverer), + (r = t.container), + (a = s), + (c = r.classList).contains(a) || c.add(a), + (n.swipedX = e.screenX - n.downScreenX); + const l = o.previous; + const u = o.next; + i(o.current, 'z'), + void 0 !== l && n.swipedX > 0 + ? i(l, 'ne') + : void 0 !== u && n.swipedX < 0 && i(u, 'p'); + }; + } + function V(e) { + const t = e.props.sources; + const n = e.resolve; + const o = e.sourcePointerProps; + const i = n(q); + t.length === 1 + ? (this.listener = function () { + o.swipedX = 1; + }) + : (this.listener = function (e) { + o.isPointering && i.runActionsForEvent(e); + }); + } + function _(e) { + const t = e.core.slideIndexChanger; + const n = e.elements.smw; + const o = e.stageIndexes; + const i = e.sws; + function r(e) { + const t = n[o.current]; + t.a(), t[e](); } - function U(e) { - var t = e.core, - n = t.lightboxCloser, - o = t.slideChangeFacade, - i = e.fs; - this.listener = function (e) { - switch (e.key) { - case 'Escape': - n.closeLightbox(); - break; - case 'ArrowLeft': - o.changeToPrevious(); - break; - case 'ArrowRight': - o.changeToNext(); - break; - case 'F11': - e.preventDefault(), i.t(); - } - }; + function s(e, t) { + void 0 !== e && (n[e].s(), n[e][t]()); } - function q(e) { - var t = e.elements, - n = e.sourcePointerProps, - o = e.stageIndexes; - function i(e, o) { - t.smw[e].v(n.swipedX)[o](); + (this.runPositiveSwipedXActions = function () { + const e = o.previous; + if (void 0 === e) r('z'); + else { + r('p'); + const n = o.next; + t.changeTo(e); + const a = o.previous; + i.d(a), i.b(n), r('z'), s(a, 'ne'); } - this.runActionsForEvent = function (e) { - var r, a, c; - t.container.contains(t.slideSwipingHoverer) || - t.container.appendChild(t.slideSwipingHoverer), - (r = t.container), - (a = s), - (c = r.classList).contains(a) || c.add(a), - (n.swipedX = e.screenX - n.downScreenX); - var l = o.previous, - u = o.next; - i(o.current, 'z'), - void 0 !== l && n.swipedX > 0 - ? i(l, 'ne') - : void 0 !== u && n.swipedX < 0 && i(u, 'p'); - }; - } - function V(e) { - var t = e.props.sources, - n = e.resolve, - o = e.sourcePointerProps, - i = n(q); - 1 === t.length - ? (this.listener = function () { - o.swipedX = 1; - }) - : (this.listener = function (e) { - o.isPointering && i.runActionsForEvent(e); - }); - } - function _(e) { - var t = e.core.slideIndexChanger, - n = e.elements.smw, - o = e.stageIndexes, - i = e.sws; + }), + (this.runNegativeSwipedXActions = function () { + const e = o.next; + if (void 0 === e) r('z'); + else { + r('ne'); + const n = o.previous; + t.changeTo(e); + const a = o.next; + i.d(a), i.b(n), r('z'), s(a, 'p'); + } + }); + } + function Y(e, t) { + e.contains(t) && e.removeChild(t); + } + function J(e) { + const t = e.core.lightboxCloser; + const n = e.elements; + const o = e.resolve; + const i = e.sourcePointerProps; + const r = o(_); + (this.runNoSwipeActions = function () { + Y(n.container, n.slideSwipingHoverer), + i.isSourceDownEventTarget || t.closeLightbox(), + (i.isPointering = !1); + }), + (this.runActions = function () { + i.swipedX > 0 + ? r.runPositiveSwipedXActions() + : r.runNegativeSwipedXActions(), + Y(n.container, n.slideSwipingHoverer), + n.container.classList.remove(s), + (i.isPointering = !1); + }); + } + function G(e) { + const t = e.resolve; + const n = e.sourcePointerProps; + const o = t(J); + this.listener = function () { + n.isPointering + && (n.swipedX ? o.runActions() : o.runNoSwipeActions()); + }; + } + function $(e) { + const t = this; + const n = e.core; + const o = n.eventsDispatcher; + const i = n.globalEventsController; + const r = n.scrollbarRecompensor; + const s = e.data; + const a = e.elements; + const c = e.fs; + const u = e.props; + const d = e.sourcePointerProps; + (this.isLightboxFadingOut = !1), + (this.runActions = function () { + (t.isLightboxFadingOut = !0), + a.container.classList.add(v), + i.removeListeners(), + u.exitFullscreenOnClose && s.ifs && c.x(), + setTimeout(() => { + (t.isLightboxFadingOut = !1), + (d.isPointering = !1), + a.container.classList.remove(v), + document.documentElement.classList.remove(l), + r.removeRecompense(), + document.body.removeChild(a.container), + o.dispatch('onClose'); + }, 270); + }); + } + function K(e, t) { + const n = e.classList; + n.contains(t) && n.remove(t); + } + function Q(e) { + let t; let n; let + o; + (n = (t = e).core.eventsDispatcher), + (o = t.props), + (n.dispatch = function (e) { + o[e] && o[e](); + }), + (function (e) { + const t = e.componentsServices; + const n = e.data; + const o = e.fs; + const i = [ + 'fullscreenchange', + 'webkitfullscreenchange', + 'mozfullscreenchange', + 'MSFullscreenChange', + ]; function r(e) { - var t = n[o.current]; - t.a(), t[e](); + for (let t = 0; t < i.length; t++) document[e](i[t], s); } - function s(e, t) { - void 0 !== e && (n[e].s(), n[e][t]()); + function s() { + document.fullscreenElement + || document.webkitIsFullScreen + || document.mozFullScreen + || document.msFullscreenElement + ? t.ofs() + : t.xfs(); } - (this.runPositiveSwipedXActions = function () { - var e = o.previous; - if (void 0 === e) r('z'); - else { - r('p'); - var n = o.next; - t.changeTo(e); - var a = o.previous; - i.d(a), i.b(n), r('z'), s(a, 'ne'); - } + (o.o = function () { + t.ofs(); + const e = document.documentElement; + e.requestFullscreen + ? e.requestFullscreen() + : e.mozRequestFullScreen + ? e.mozRequestFullScreen() + : e.webkitRequestFullscreen + ? e.webkitRequestFullscreen() + : e.msRequestFullscreen && e.msRequestFullscreen(); }), - (this.runNegativeSwipedXActions = function () { - var e = o.next; - if (void 0 === e) r('z'); - else { - r('ne'); - var n = o.previous; - t.changeTo(e); - var a = o.next; - i.d(a), i.b(n), r('z'), s(a, 'p'); - } - }); - } - function Y(e, t) { - e.contains(t) && e.removeChild(t); - } - function J(e) { - var t = e.core.lightboxCloser, - n = e.elements, - o = e.resolve, - i = e.sourcePointerProps, - r = o(_); - (this.runNoSwipeActions = function () { - Y(n.container, n.slideSwipingHoverer), - i.isSourceDownEventTarget || t.closeLightbox(), - (i.isPointering = !1); + (o.x = function () { + t.xfs(), + document.exitFullscreen + ? document.exitFullscreen() + : document.mozCancelFullScreen + ? document.mozCancelFullScreen() + : document.webkitExitFullscreen + ? document.webkitExitFullscreen() + : document.msExitFullscreen && document.msExitFullscreen(); }), - (this.runActions = function () { - i.swipedX > 0 - ? r.runPositiveSwipedXActions() - : r.runNegativeSwipedXActions(), - Y(n.container, n.slideSwipingHoverer), - n.container.classList.remove(s), - (i.isPointering = !1); - }); - } - function G(e) { - var t = e.resolve, - n = e.sourcePointerProps, - o = t(J); - this.listener = function () { - n.isPointering && - (n.swipedX ? o.runActions() : o.runNoSwipeActions()); + (o.t = function () { + n.ifs ? o.x() : o.o(); + }), + (o.l = function () { + r('addEventListener'); + }), + (o.q = function () { + r('removeEventListener'); + }); + }(e)), + (function (e) { + const t = e.core; + const n = t.globalEventsController; + const o = t.windowResizeActioner; + const i = e.fs; + const r = e.resolve; + const s = r(U); + const a = r(V); + const c = r(G); + (n.attachListeners = function () { + document.addEventListener('pointermove', a.listener), + document.addEventListener('pointerup', c.listener), + addEventListener('resize', o.runActions), + document.addEventListener('keydown', s.listener), + i.l(); + }), + (n.removeListeners = function () { + document.removeEventListener('pointermove', a.listener), + document.removeEventListener('pointerup', c.listener), + removeEventListener('resize', o.runActions), + document.removeEventListener('keydown', s.listener), + i.q(); + }); + }(e)), + (function (e) { + const t = e.core.lightboxCloser; + const n = (0, e.resolve)($); + t.closeLightbox = function () { + n.isLightboxFadingOut || n.runActions(); }; - } - function $(e) { - var t = this, - n = e.core, - o = n.eventsDispatcher, - i = n.globalEventsController, - r = n.scrollbarRecompensor, - s = e.data, - a = e.elements, - c = e.fs, - u = e.props, - d = e.sourcePointerProps; - (this.isLightboxFadingOut = !1), - (this.runActions = function () { - (t.isLightboxFadingOut = !0), - a.container.classList.add(v), - i.removeListeners(), - u.exitFullscreenOnClose && s.ifs && c.x(), - setTimeout(function () { - (t.isLightboxFadingOut = !1), - (d.isPointering = !1), - a.container.classList.remove(v), - document.documentElement.classList.remove(l), - r.removeRecompense(), - document.body.removeChild(a.container), - o.dispatch('onClose'); - }, 270); - }); - } - function K(e, t) { - var n = e.classList; - n.contains(t) && n.remove(t); - } - function Q(e) { - var t, n, o; - (n = (t = e).core.eventsDispatcher), - (o = t.props), - (n.dispatch = function (e) { - o[e] && o[e](); + }(e)), + (function (e) { + const t = e.data; + const n = e.core.scrollbarRecompensor; + function o() { + document.body.offsetHeight > innerHeight + && (document.body.style.marginRight = `${t.scrollbarWidth}px`); + } + (n.addRecompense = function () { + document.readyState === 'complete' + ? o() + : addEventListener('load', () => { + o(), (n.addRecompense = o); + }); + }), + (n.removeRecompense = function () { + document.body.style.removeProperty('margin-right'); + }); + }(e)), + (function (e) { + const t = e.core; + const n = t.slideChangeFacade; + const o = t.slideIndexChanger; + const i = t.stageManager; + e.props.sources.length > 1 + ? ((n.changeToPrevious = function () { + o.jumpTo(i.getPreviousSlideIndex()); }), - (function (e) { - var t = e.componentsServices, - n = e.data, - o = e.fs, - i = [ - 'fullscreenchange', - 'webkitfullscreenchange', - 'mozfullscreenchange', - 'MSFullscreenChange', - ]; - function r(e) { - for (var t = 0; t < i.length; t++) document[e](i[t], s); - } - function s() { - document.fullscreenElement || - document.webkitIsFullScreen || - document.mozFullScreen || - document.msFullscreenElement - ? t.ofs() - : t.xfs(); - } - (o.o = function () { - t.ofs(); - var e = document.documentElement; - e.requestFullscreen - ? e.requestFullscreen() - : e.mozRequestFullScreen - ? e.mozRequestFullScreen() - : e.webkitRequestFullscreen - ? e.webkitRequestFullscreen() - : e.msRequestFullscreen && e.msRequestFullscreen(); - }), - (o.x = function () { - t.xfs(), - document.exitFullscreen - ? document.exitFullscreen() - : document.mozCancelFullScreen - ? document.mozCancelFullScreen() - : document.webkitExitFullscreen - ? document.webkitExitFullscreen() - : document.msExitFullscreen && document.msExitFullscreen(); - }), - (o.t = function () { - n.ifs ? o.x() : o.o(); - }), - (o.l = function () { - r('addEventListener'); - }), - (o.q = function () { - r('removeEventListener'); - }); - })(e), - (function (e) { - var t = e.core, - n = t.globalEventsController, - o = t.windowResizeActioner, - i = e.fs, - r = e.resolve, - s = r(U), - a = r(V), - c = r(G); - (n.attachListeners = function () { - document.addEventListener('pointermove', a.listener), - document.addEventListener('pointerup', c.listener), - addEventListener('resize', o.runActions), - document.addEventListener('keydown', s.listener), - i.l(); - }), - (n.removeListeners = function () { - document.removeEventListener('pointermove', a.listener), - document.removeEventListener('pointerup', c.listener), - removeEventListener('resize', o.runActions), - document.removeEventListener('keydown', s.listener), - i.q(); - }); - })(e), - (function (e) { - var t = e.core.lightboxCloser, - n = (0, e.resolve)($); - t.closeLightbox = function () { - n.isLightboxFadingOut || n.runActions(); - }; - })(e), - (function (e) { - var t = e.data, - n = e.core.scrollbarRecompensor; - function o() { - document.body.offsetHeight > innerHeight && - (document.body.style.marginRight = t.scrollbarWidth + 'px'); - } - (n.addRecompense = function () { - 'complete' === document.readyState - ? o() - : addEventListener('load', function () { - o(), (n.addRecompense = o); - }); - }), - (n.removeRecompense = function () { - document.body.style.removeProperty('margin-right'); - }); - })(e), - (function (e) { - var t = e.core, - n = t.slideChangeFacade, - o = t.slideIndexChanger, - i = t.stageManager; - e.props.sources.length > 1 - ? ((n.changeToPrevious = function () { - o.jumpTo(i.getPreviousSlideIndex()); - }), - (n.changeToNext = function () { - o.jumpTo(i.getNextSlideIndex()); - })) - : ((n.changeToPrevious = function () {}), - (n.changeToNext = function () {})); - })(e), - (function (e) { - var t = e.componentsServices, - n = e.core, - o = n.slideIndexChanger, - i = n.sourceDisplayFacade, - r = n.stageManager, - s = e.elements, - a = s.smw, - c = s.sourceAnimationWrappers, - l = e.isl, - u = e.stageIndexes, - d = e.sws; - (o.changeTo = function (e) { - (u.current = e), - r.updateStageIndexes(), - t.setSlideNumber(e + 1), - i.displaySourcesWhichShouldBeDisplayed(); - }), - (o.jumpTo = function (e) { - var t = u.previous, - n = u.current, - i = u.next, - s = l[n], - f = l[e]; - o.changeTo(e); - for (var p = 0; p < a.length; p++) a[p].d(); - d.d(n), - d.c(), - requestAnimationFrame(function () { - requestAnimationFrame(function () { - var e = u.previous, - o = u.next; - function p() { - r.i(n) - ? n === u.previous - ? a[n].ne() - : n === u.next && a[n].p() - : (a[n].h(), a[n].n()); - } - s && c[n].classList.add(m), - f && c[u.current].classList.add(h), - d.a(), - void 0 !== e && e !== n && a[e].ne(), - a[u.current].n(), - void 0 !== o && o !== n && a[o].p(), - d.b(t), - d.b(i), - l[n] ? setTimeout(p, 260) : p(); - }); - }); - }); - })(e), - (function (e) { - var t = e.core.sourcesPointerDown, - n = e.elements, - o = n.smw, - i = n.sources, - r = e.sourcePointerProps, - s = e.stageIndexes; - t.listener = function (e) { - 'VIDEO' !== e.target.tagName && e.preventDefault(), - (r.isPointering = !0), - (r.downScreenX = e.screenX), - (r.swipedX = 0); - var t = i[s.current]; - t && t.contains(e.target) - ? (r.isSourceDownEventTarget = !0) - : (r.isSourceDownEventTarget = !1); - for (var n = 0; n < o.length; n++) o[n].d(); - }; - })(e), - (function (e) { - var t = e.collections.sourcesRenderFunctions, - n = e.core.sourceDisplayFacade, - o = e.props, - i = e.stageIndexes; - function r(e) { - t[e] && (t[e](), delete t[e]); - } - n.displaySourcesWhichShouldBeDisplayed = function () { - if (o.loadOnlyCurrentSource) r(i.current); - else for (var e in i) r(i[e]); - }; - })(e), - (function (e) { - var t = e.core.stageManager, - n = e.elements, - o = n.smw, - i = n.sourceAnimationWrappers, - r = e.isl, - s = e.stageIndexes, - a = e.sws; - (a.a = function () { - for (var e in s) o[s[e]].s(); - }), - (a.b = function (e) { - void 0 === e || t.i(e) || (o[e].h(), o[e].n()); - }), - (a.c = function () { - for (var e in s) a.d(s[e]); - }), - (a.d = function (e) { - if (r[e]) { - var t = i[e]; - K(t, g), K(t, h), K(t, m); - } - }); - })(e), - (function (e) { - var t = e.collections.sourceSizers, - n = e.core.windowResizeActioner, - o = e.data, - i = e.elements.smw, - r = e.stageIndexes; - n.runActions = function () { - innerWidth < 992 - ? (o.maxSourceWidth = innerWidth) - : (o.maxSourceWidth = 0.9 * innerWidth), - (o.maxSourceHeight = 0.9 * innerHeight); - for (var e = 0; e < i.length; e++) - i[e].d(), t[e] && t[e].adjustSize(); - var n = r.previous, - s = r.next; - void 0 !== n && i[n].ne(), void 0 !== s && i[s].p(); - }; - })(e); - } - function Z(e) { - var t = e.componentsServices, - n = e.core, - o = n.eventsDispatcher, - r = n.globalEventsController, - s = n.scrollbarRecompensor, - c = n.sourceDisplayFacade, - u = n.stageManager, - f = n.windowResizeActioner, - p = e.data, - h = e.elements, - m = (e.props, e.stageIndexes), - v = e.sws; - function b() { - var t, n; - (p.i = !0), - (p.scrollbarWidth = (function () { - var e = document.createElement('div'), - t = e.style, - n = document.createElement('div'); - (t.visibility = 'hidden'), - (t.width = '100px'), - (t.msOverflowStyle = 'scrollbar'), - (t.overflow = 'scroll'), - (n.style.width = '100%'), - document.body.appendChild(e); - var o = e.offsetWidth; - e.appendChild(n); - var i = n.offsetWidth; - return document.body.removeChild(e), o - i; - })()), - Q(e), - (h.container = document.createElement('div')), - (h.container.className = '' - .concat(i, 'container ') - .concat(a, ' ') - .concat(g)), - (function (e) { - var t = e.elements; - (t.slideSwipingHoverer = document.createElement('div')), - (t.slideSwipingHoverer.className = '' - .concat(i, 'slide-swiping-hoverer ') - .concat(a, ' ') - .concat(d)); - })(e), - X(e), - (function (e) { - var t = e.core.sourcesPointerDown, - n = e.elements, - o = e.props.sources, - i = document.createElement('div'); - (i.className = ''.concat(d, ' ').concat(a)), - n.container.appendChild(i), - i.addEventListener('pointerdown', t.listener), - (n.sourceWrappersContainer = i); - for (var r = 0; r < o.length; r++) D(e, r); - })(e), - e.props.sources.length > 1 && - ((n = (t = e).core.slideChangeFacade), + (n.changeToNext = function () { + o.jumpTo(i.getNextSlideIndex()); + })) + : ((n.changeToPrevious = function () {}), + (n.changeToNext = function () {})); + }(e)), + (function (e) { + const t = e.componentsServices; + const n = e.core; + const o = n.slideIndexChanger; + const i = n.sourceDisplayFacade; + const r = n.stageManager; + const s = e.elements; + const a = s.smw; + const c = s.sourceAnimationWrappers; + const l = e.isl; + const u = e.stageIndexes; + const d = e.sws; + (o.changeTo = function (e) { + (u.current = e), + r.updateStageIndexes(), + t.setSlideNumber(e + 1), + i.displaySourcesWhichShouldBeDisplayed(); + }), + (o.jumpTo = function (e) { + const t = u.previous; + const n = u.current; + const i = u.next; + const s = l[n]; + const f = l[e]; + o.changeTo(e); + for (let p = 0; p < a.length; p++) a[p].d(); + d.d(n), + d.c(), + requestAnimationFrame(() => { + requestAnimationFrame(() => { + const e = u.previous; + const o = u.next; + function p() { + r.i(n) + ? n === u.previous + ? a[n].ne() + : n === u.next && a[n].p() + : (a[n].h(), a[n].n()); + } + s && c[n].classList.add(m), + f && c[u.current].classList.add(h), + d.a(), + void 0 !== e && e !== n && a[e].ne(), + a[u.current].n(), + void 0 !== o && o !== n && a[o].p(), + d.b(t), + d.b(i), + l[n] ? setTimeout(p, 260) : p(); + }); + }); + }); + }(e)), + (function (e) { + const t = e.core.sourcesPointerDown; + const n = e.elements; + const o = n.smw; + const i = n.sources; + const r = e.sourcePointerProps; + const s = e.stageIndexes; + t.listener = function (e) { + e.target.tagName !== 'VIDEO' && e.preventDefault(), + (r.isPointering = !0), + (r.downScreenX = e.screenX), + (r.swipedX = 0); + const t = i[s.current]; + t && t.contains(e.target) + ? (r.isSourceDownEventTarget = !0) + : (r.isSourceDownEventTarget = !1); + for (let n = 0; n < o.length; n++) o[n].d(); + }; + }(e)), + (function (e) { + const t = e.collections.sourcesRenderFunctions; + const n = e.core.sourceDisplayFacade; + const o = e.props; + const i = e.stageIndexes; + function r(e) { + t[e] && (t[e](), delete t[e]); + } + n.displaySourcesWhichShouldBeDisplayed = function () { + if (o.loadOnlyCurrentSource) r(i.current); + else for (const e in i) r(i[e]); + }; + }(e)), + (function (e) { + const t = e.core.stageManager; + const n = e.elements; + const o = n.smw; + const i = n.sourceAnimationWrappers; + const r = e.isl; + const s = e.stageIndexes; + const a = e.sws; + (a.a = function () { + for (const e in s) o[s[e]].s(); + }), + (a.b = function (e) { + void 0 === e || t.i(e) || (o[e].h(), o[e].n()); + }), + (a.c = function () { + for (const e in s) a.d(s[e]); + }), + (a.d = function (e) { + if (r[e]) { + const t = i[e]; + K(t, g), K(t, h), K(t, m); + } + }); + }(e)), + (function (e) { + const t = e.collections.sourceSizers; + const n = e.core.windowResizeActioner; + const o = e.data; + const i = e.elements.smw; + const r = e.stageIndexes; + n.runActions = function () { + innerWidth < 992 + ? (o.maxSourceWidth = innerWidth) + : (o.maxSourceWidth = 0.9 * innerWidth), + (o.maxSourceHeight = 0.9 * innerHeight); + for (let e = 0; e < i.length; e++) i[e].d(), t[e] && t[e].adjustSize(); + const n = r.previous; + const s = r.next; + void 0 !== n && i[n].ne(), void 0 !== s && i[s].p(); + }; + }(e)); + } + function Z(e) { + const t = e.componentsServices; + const n = e.core; + const o = n.eventsDispatcher; + const r = n.globalEventsController; + const s = n.scrollbarRecompensor; + const c = n.sourceDisplayFacade; + const u = n.stageManager; + const f = n.windowResizeActioner; + const p = e.data; + const h = e.elements; + const m = (e.props, e.stageIndexes); + const v = e.sws; + function b() { + let t; let + n; + (p.i = !0), + (p.scrollbarWidth = (function () { + const e = document.createElement('div'); + const t = e.style; + const n = document.createElement('div'); + (t.visibility = 'hidden'), + (t.width = '100px'), + (t.msOverflowStyle = 'scrollbar'), + (t.overflow = 'scroll'), + (n.style.width = '100%'), + document.body.appendChild(e); + const o = e.offsetWidth; + e.appendChild(n); + const i = n.offsetWidth; + return document.body.removeChild(e), o - i; + }())), + Q(e), + (h.container = document.createElement('div')), + (h.container.className = '' + .concat(i, 'container ') + .concat(a, ' ') + .concat(g)), + (function (e) { + const t = e.elements; + (t.slideSwipingHoverer = document.createElement('div')), + (t.slideSwipingHoverer.className = '' + .concat(i, 'slide-swiping-hoverer ') + .concat(a, ' ') + .concat(d)); + }(e)), + X(e), + (function (e) { + const t = e.core.sourcesPointerDown; + const n = e.elements; + const o = e.props.sources; + const i = document.createElement('div'); + (i.className = ''.concat(d, ' ').concat(a)), + n.container.appendChild(i), + i.addEventListener('pointerdown', t.listener), + (n.sourceWrappersContainer = i); + for (let r = 0; r < o.length; r++) D(e, r); + }(e)), + e.props.sources.length > 1 + && ((n = (t = e).core.slideChangeFacade), B( t, n.changeToPrevious, 'previous', - 'M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z' + 'M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z', ), B( t, n.changeToNext, 'next', - 'M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z' + 'M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z', )), - (function (e) { - for ( - var t = e.props.sources, - n = e.resolve, - o = n(L), - i = n(H), - r = n(R, [o, i]), - s = 0; - s < t.length; - s++ - ) - if ('string' == typeof t[s]) { - var a = r.getTypeSetByClientForIndex(s); - if (a) i.runActionsForSourceTypeAndIndex(a, s); - else { - var c = o.getSourceTypeFromLocalStorageByUrl(t[s]); - c - ? i.runActionsForSourceTypeAndIndex(c, s) - : r.retrieveTypeWithXhrForIndex(s); - } - } else i.runActionsForSourceTypeAndIndex('custom', s); - })(e), - o.dispatch('onInit'); - } - e.open = function () { - var n = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : 0, - i = m.previous, - a = m.current, - d = m.next; - (m.current = n), - p.i || S(e), - u.updateStageIndexes(), - p.i - ? (v.c(), v.a(), v.b(i), v.b(a), v.b(d), o.dispatch('onShow')) - : b(), - c.displaySourcesWhichShouldBeDisplayed(), - t.setSlideNumber(n + 1), - document.body.appendChild(h.container), - document.documentElement.classList.add(l), - s.addRecompense(), - r.attachListeners(), - f.runActions(), - h.smw[m.current].n(), - o.dispatch('onOpen'); - }; - } - function ee(e, t, n) { - return (ee = te() - ? Reflect.construct.bind() - : function (e, t, n) { - var o = [null]; - o.push.apply(o, t); - var i = new (Function.bind.apply(e, o))(); - return n && ne(i, n.prototype), i; - }).apply(null, arguments); - } - function te() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function () {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - function ne(e, t) { - return (ne = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function (e, t) { - return (e.__proto__ = t), e; - })(e, t); + (function (e) { + for ( + let t = e.props.sources, + n = e.resolve, + o = n(L), + i = n(H), + r = n(R, [o, i]), + s = 0; + s < t.length; + s++ + ) { + if (typeof t[s] === 'string') { + const a = r.getTypeSetByClientForIndex(s); + if (a) i.runActionsForSourceTypeAndIndex(a, s); + else { + const c = o.getSourceTypeFromLocalStorageByUrl(t[s]); + c + ? i.runActionsForSourceTypeAndIndex(c, s) + : r.retrieveTypeWithXhrForIndex(s); + } + } else i.runActionsForSourceTypeAndIndex('custom', s); + } + }(e)), + o.dispatch('onInit'); } - function oe(e) { + e.open = function () { + const n = arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 0; + const i = m.previous; + const a = m.current; + const d = m.next; + (m.current = n), + p.i || S(e), + u.updateStageIndexes(), + p.i + ? (v.c(), v.a(), v.b(i), v.b(a), v.b(d), o.dispatch('onShow')) + : b(), + c.displaySourcesWhichShouldBeDisplayed(), + t.setSlideNumber(n + 1), + document.body.appendChild(h.container), + document.documentElement.classList.add(l), + s.addRecompense(), + r.attachListeners(), + f.runActions(), + h.smw[m.current].n(), + o.dispatch('onOpen'); + }; + } + function ee(e, t, n) { + return (ee = te() + ? Reflect.construct.bind() + : function (e, t, n) { + const o = [null]; + o.push.apply(o, t); + const i = new (Function.bind.apply(e, o))(); + return n && ne(i, n.prototype), i; + }).apply(null, arguments); + } + function te() { + if (typeof Reflect === 'undefined' || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if (typeof Proxy === 'function') return !0; + try { return ( - (function (e) { - if (Array.isArray(e)) return ie(e); - })(e) || - (function (e) { + Boolean.prototype.valueOf.call( + Reflect.construct(Boolean, [], () => {}), + ), + !0 + ); + } catch (e) { + return !1; + } + } + function ne(e, t) { + return (ne = Object.setPrototypeOf + ? Object.setPrototypeOf.bind() + : function (e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + function oe(e) { + return ( + (function (e) { + if (Array.isArray(e)) return ie(e); + }(e)) + || (function (e) { if ( - ('undefined' != typeof Symbol && null != e[Symbol.iterator]) || - null != e['@@iterator'] - ) - return Array.from(e); - })(e) || - (function (e, t) { + (typeof Symbol !== 'undefined' && e[Symbol.iterator] != null) + || e['@@iterator'] != null + ) return Array.from(e); + }(e)) + || (function (e, t) { if (!e) return; - if ('string' == typeof e) return ie(e, t); - var n = Object.prototype.toString.call(e).slice(8, -1); - 'Object' === n && e.constructor && (n = e.constructor.name); - if ('Map' === n || 'Set' === n) return Array.from(e); + if (typeof e === 'string') return ie(e, t); + let n = Object.prototype.toString.call(e).slice(8, -1); + n === 'Object' && e.constructor && (n = e.constructor.name); + if (n === 'Map' || n === 'Set') return Array.from(e); if ( - 'Arguments' === n || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) - ) - return ie(e, t); - })(e) || - (function () { + n === 'Arguments' + || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ) return ie(e, t); + }(e)) + || (function () { throw new TypeError( - 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', ); - })() - ); - } - function ie(e, t) { - (null == t || t > e.length) && (t = e.length); - for (var n = 0, o = new Array(t); n < t; n++) o[n] = e[n]; - return o; - } - function re() { - for ( - var e = document.getElementsByTagName('a'), - t = function (t) { - if (!e[t].hasAttribute('data-fslightbox')) return 'continue'; - var n = e[t].hasAttribute('data-href') - ? e[t].getAttribute('data-href') - : e[t].getAttribute('href'); - if (!n) - return ( - console.warn( - 'The "data-fslightbox" attribute was set without the "href" attribute.' - ), - 'continue' - ); - var o = e[t].getAttribute('data-fslightbox'); - fsLightboxInstances[o] || - (fsLightboxInstances[o] = new FsLightbox()); - var i = null; - '#' === n.charAt(0) - ? (i = document - .getElementById(n.substring(1)) - .cloneNode(!0)).removeAttribute('id') - : (i = n), - fsLightboxInstances[o].props.sources.push(i), - fsLightboxInstances[o].elements.a.push(e[t]); - var r = fsLightboxInstances[o].props.sources.length - 1; - (e[t].onclick = function (e) { - e.preventDefault(), fsLightboxInstances[o].open(r); - }), - d('types', 'data-type'), - d('videosPosters', 'data-video-poster'), - d('customClasses', 'data-class'), - d('customClasses', 'data-custom-class'); - for ( - var s = [ - 'href', - 'data-fslightbox', - 'data-href', - 'data-type', - 'data-video-poster', - 'data-class', - 'data-custom-class', - ], - a = e[t].attributes, - c = fsLightboxInstances[o].props.customAttributes, - l = 0; - l < a.length; - l++ - ) - if ( - -1 === s.indexOf(a[l].name) && - 'data-' === a[l].name.substr(0, 5) - ) { - c[r] || (c[r] = {}); - var u = a[l].name.substr(5); - c[r][u] = a[l].value; - } - function d(n, i) { - e[t].hasAttribute(i) && - (fsLightboxInstances[o].props[n][r] = e[t].getAttribute(i)); + }()) + ); + } + function ie(e, t) { + (t == null || t > e.length) && (t = e.length); + for (var n = 0, o = new Array(t); n < t; n++) o[n] = e[n]; + return o; + } + function re() { + for ( + var e = document.getElementsByTagName('a'), + t = function (t) { + if (!e[t].hasAttribute('data-fslightbox')) return 'continue'; + const n = e[t].hasAttribute('data-href') + ? e[t].getAttribute('data-href') + : e[t].getAttribute('href'); + if (!n) { + return ( + console.warn( + 'The "data-fslightbox" attribute was set without the "href" attribute.', + ), + 'continue' + ); + } + const o = e[t].getAttribute('data-fslightbox'); + fsLightboxInstances[o] + || (fsLightboxInstances[o] = new FsLightbox()); + let i = null; + n.charAt(0) === '#' + ? (i = document + .getElementById(n.substring(1)) + .cloneNode(!0)).removeAttribute('id') + : (i = n), + fsLightboxInstances[o].props.sources.push(i), + fsLightboxInstances[o].elements.a.push(e[t]); + const r = fsLightboxInstances[o].props.sources.length - 1; + (e[t].onclick = function (e) { + // eslint-disable-next-line @typescript-eslint/no-unused-expressions + e.preventDefault(), fsLightboxInstances[o].open(r); + }), + d('types', 'data-type'), + d('videosPosters', 'data-video-poster'), + d('customClasses', 'data-class'), + d('customClasses', 'data-custom-class'); + for ( + let s = [ + 'href', + 'data-fslightbox', + 'data-href', + 'data-type', + 'data-video-poster', + 'data-class', + 'data-custom-class', + ], + a = e[t].attributes, + c = fsLightboxInstances[o].props.customAttributes, + l = 0; + l < a.length; + l++ + ) { + if ( + s.indexOf(a[l].name) === -1 + && a[l].name.substr(0, 5) === 'data-' + ) { + c[r] || (c[r] = {}); + const u = a[l].name.substr(5); + c[r][u] = a[l].value; } - }, - n = 0; - n < e.length; - n++ - ) - t(n); - var o = Object.keys(fsLightboxInstances); - window.fsLightbox = fsLightboxInstances[o[o.length - 1]]; - } - (window.FsLightbox = function () { - var e = this; - (this.props = { - sources: [], - customAttributes: [], - customClasses: [], - types: [], - videosPosters: [], - slideDistance: 0.3, - }), - (this.data = { - isFullscreenOpen: !1, - maxSourceWidth: 0, - maxSourceHeight: 0, - scrollbarWidth: 0, - }), - (this.isl = []), - (this.sourcePointerProps = { - downScreenX: null, - isPointering: !1, - isSourceDownEventTarget: !1, - swipedX: 0, - }), - (this.stageIndexes = {}), - (this.elements = { - a: [], - container: null, - slideSwipingHoverer: null, - smw: [], - sourceWrappersContainer: null, - sources: [], - sourceAnimationWrappers: [], - }), - (this.componentsServices = { setSlideNumber: function () {} }), - (this.resolve = function (t) { - var n = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : []; - return n.unshift(e), ee(t, oe(n)); - }), - (this.collections = { - sourceLoadHandlers: [], - sourcesRenderFunctions: [], - sourceSizers: [], - }), - (this.core = { - eventsDispatcher: {}, - globalEventsController: {}, - lightboxCloser: {}, - lightboxUpdater: {}, - scrollbarRecompensor: {}, - slideChangeFacade: {}, - slideIndexChanger: {}, - sourcesPointerDown: {}, - sourceDisplayFacade: {}, - stageManager: {}, - windowResizeActioner: {}, - }), - (this.fs = {}), - (this.sws = {}), - Z(this), - (this.close = function () { - return e.core.lightboxCloser.closeLightbox(); - }); + } + function d(n, i) { + e[t].hasAttribute(i) + && (fsLightboxInstances[o].props[n][r] = e[t].getAttribute(i)); + } + }, + n = 0; + n < e.length; + n++ + ) t(n); + const o = Object.keys(fsLightboxInstances); + window.fsLightbox = fsLightboxInstances[o[o.length - 1]]; + } + (window.FsLightbox = function () { + const e = this; + (this.props = { + sources: [], + customAttributes: [], + customClasses: [], + types: [], + videosPosters: [], + slideDistance: 0.3, }), - (window.fsLightboxInstances = {}), - re(), - (window.refreshFsLightbox = function () { - for (var e in fsLightboxInstances) { - var t = fsLightboxInstances[e].props; - (fsLightboxInstances[e] = new FsLightbox()), - (fsLightboxInstances[e].props = t), - (fsLightboxInstances[e].props.sources = []), - (fsLightboxInstances[e].elements.a = []); - } - re(); - }); - }, - ]); -}); + (this.data = { + isFullscreenOpen: !1, + maxSourceWidth: 0, + maxSourceHeight: 0, + scrollbarWidth: 0, + }), + (this.isl = []), + (this.sourcePointerProps = { + downScreenX: null, + isPointering: !1, + isSourceDownEventTarget: !1, + swipedX: 0, + }), + (this.stageIndexes = {}), + (this.elements = { + a: [], + container: null, + slideSwipingHoverer: null, + smw: [], + sourceWrappersContainer: null, + sources: [], + sourceAnimationWrappers: [], + }), + (this.componentsServices = { setSlideNumber() {} }), + (this.resolve = function (t) { + const n = arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : []; + return n.unshift(e), ee(t, oe(n)); + }), + (this.collections = { + sourceLoadHandlers: [], + sourcesRenderFunctions: [], + sourceSizers: [], + }), + (this.core = { + eventsDispatcher: {}, + globalEventsController: {}, + lightboxCloser: {}, + lightboxUpdater: {}, + scrollbarRecompensor: {}, + slideChangeFacade: {}, + slideIndexChanger: {}, + sourcesPointerDown: {}, + sourceDisplayFacade: {}, + stageManager: {}, + windowResizeActioner: {}, + }), + (this.fs = {}), + (this.sws = {}), + Z(this), + (this.close = function () { + return e.core.lightboxCloser.closeLightbox(); + }); + }), + (window.fsLightboxInstances = {}), + re(), + (window.refreshFsLightbox = function () { + for (const e in fsLightboxInstances) { + const t = fsLightboxInstances[e].props; + (fsLightboxInstances[e] = new FsLightbox()), + (fsLightboxInstances[e].props = t), + (fsLightboxInstances[e].props.sources = []), + (fsLightboxInstances[e].elements.a = []); + } + re(); + }); + }, +])))); diff --git a/public/scripts/preline.js b/public/scripts/preline.js new file mode 100644 index 000000000..9fff541d1 --- /dev/null +++ b/public/scripts/preline.js @@ -0,0 +1,8127 @@ +!(function (t, e) { + if ('object' == typeof exports && 'object' == typeof module) + module.exports = e(); + else if ('function' == typeof define && define.amd) define([], e); + else { + var n = e(); + for (var o in n) ('object' == typeof exports ? exports : t)[o] = n[o]; + } +})(self, () => + (() => { + 'use strict'; + var t = { + 492: (t, e, n) => { + (n.r(e), + n.d(e, { + afterMain: () => S, + afterRead: () => w, + afterWrite: () => x, + applyStyles: () => P, + arrow: () => G, + auto: () => l, + basePlacements: () => a, + beforeMain: () => b, + beforeRead: () => y, + beforeWrite: () => I, + bottom: () => i, + clippingParents: () => d, + computeStyles: () => nt, + createPopper: () => Pt, + createPopperBase: () => kt, + createPopperLite: () => Bt, + detectOverflow: () => gt, + end: () => u, + eventListeners: () => it, + flip: () => wt, + hide: () => St, + left: () => s, + main: () => C, + modifierPhases: () => E, + offset: () => It, + placements: () => m, + popper: () => h, + popperGenerator: () => _t, + popperOffsets: () => Tt, + preventOverflow: () => xt, + read: () => g, + reference: () => f, + right: () => r, + start: () => c, + top: () => o, + variationPlacements: () => v, + viewport: () => p, + write: () => T, + })); + var o = 'top', + i = 'bottom', + r = 'right', + s = 'left', + l = 'auto', + a = [o, i, r, s], + c = 'start', + u = 'end', + d = 'clippingParents', + p = 'viewport', + h = 'popper', + f = 'reference', + v = a.reduce(function (t, e) { + return t.concat([e + '-' + c, e + '-' + u]); + }, []), + m = [].concat(a, [l]).reduce(function (t, e) { + return t.concat([e, e + '-' + c, e + '-' + u]); + }, []), + y = 'beforeRead', + g = 'read', + w = 'afterRead', + b = 'beforeMain', + C = 'main', + S = 'afterMain', + I = 'beforeWrite', + T = 'write', + x = 'afterWrite', + E = [y, g, w, b, C, S, I, T, x]; + function O(t) { + return t ? (t.nodeName || '').toLowerCase() : null; + } + function L(t) { + if (null == t) return window; + if ('[object Window]' !== t.toString()) { + var e = t.ownerDocument; + return (e && e.defaultView) || window; + } + return t; + } + function A(t) { + return t instanceof L(t).Element || t instanceof Element; + } + function _(t) { + return t instanceof L(t).HTMLElement || t instanceof HTMLElement; + } + function k(t) { + return ( + 'undefined' != typeof ShadowRoot && + (t instanceof L(t).ShadowRoot || t instanceof ShadowRoot) + ); + } + const P = { + name: 'applyStyles', + enabled: !0, + phase: 'write', + fn: function (t) { + var e = t.state; + Object.keys(e.elements).forEach(function (t) { + var n = e.styles[t] || {}, + o = e.attributes[t] || {}, + i = e.elements[t]; + _(i) && + O(i) && + (Object.assign(i.style, n), + Object.keys(o).forEach(function (t) { + var e = o[t]; + !1 === e + ? i.removeAttribute(t) + : i.setAttribute(t, !0 === e ? '' : e); + })); + }); + }, + effect: function (t) { + var e = t.state, + n = { + popper: { + position: e.options.strategy, + left: '0', + top: '0', + margin: '0', + }, + arrow: { position: 'absolute' }, + reference: {}, + }; + return ( + Object.assign(e.elements.popper.style, n.popper), + (e.styles = n), + e.elements.arrow && + Object.assign(e.elements.arrow.style, n.arrow), + function () { + Object.keys(e.elements).forEach(function (t) { + var o = e.elements[t], + i = e.attributes[t] || {}, + r = Object.keys( + e.styles.hasOwnProperty(t) ? e.styles[t] : n[t] + ).reduce(function (t, e) { + return ((t[e] = ''), t); + }, {}); + _(o) && + O(o) && + (Object.assign(o.style, r), + Object.keys(i).forEach(function (t) { + o.removeAttribute(t); + })); + }); + } + ); + }, + requires: ['computeStyles'], + }; + function B(t) { + return t.split('-')[0]; + } + var q = Math.max, + j = Math.min, + N = Math.round; + function D() { + var t = navigator.userAgentData; + return null != t && t.brands && Array.isArray(t.brands) + ? t.brands + .map(function (t) { + return t.brand + '/' + t.version; + }) + .join(' ') + : navigator.userAgent; + } + function $() { + return !/^((?!chrome|android).)*safari/i.test(D()); + } + function H(t, e, n) { + (void 0 === e && (e = !1), void 0 === n && (n = !1)); + var o = t.getBoundingClientRect(), + i = 1, + r = 1; + e && + _(t) && + ((i = (t.offsetWidth > 0 && N(o.width) / t.offsetWidth) || 1), + (r = (t.offsetHeight > 0 && N(o.height) / t.offsetHeight) || 1)); + var s = (A(t) ? L(t) : window).visualViewport, + l = !$() && n, + a = (o.left + (l && s ? s.offsetLeft : 0)) / i, + c = (o.top + (l && s ? s.offsetTop : 0)) / r, + u = o.width / i, + d = o.height / r; + return { + width: u, + height: d, + top: c, + right: a + u, + bottom: c + d, + left: a, + x: a, + y: c, + }; + } + function M(t) { + var e = H(t), + n = t.offsetWidth, + o = t.offsetHeight; + return ( + Math.abs(e.width - n) <= 1 && (n = e.width), + Math.abs(e.height - o) <= 1 && (o = e.height), + { x: t.offsetLeft, y: t.offsetTop, width: n, height: o } + ); + } + function R(t, e) { + var n = e.getRootNode && e.getRootNode(); + if (t.contains(e)) return !0; + if (n && k(n)) { + var o = e; + do { + if (o && t.isSameNode(o)) return !0; + o = o.parentNode || o.host; + } while (o); + } + return !1; + } + function W(t) { + return L(t).getComputedStyle(t); + } + function V(t) { + return ['table', 'td', 'th'].indexOf(O(t)) >= 0; + } + function F(t) { + return ((A(t) ? t.ownerDocument : t.document) || window.document) + .documentElement; + } + function U(t) { + return 'html' === O(t) + ? t + : t.assignedSlot || + t.parentNode || + (k(t) ? t.host : null) || + F(t); + } + function Y(t) { + return _(t) && 'fixed' !== W(t).position ? t.offsetParent : null; + } + function J(t) { + for ( + var e = L(t), n = Y(t); + n && V(n) && 'static' === W(n).position; + + ) + n = Y(n); + return n && + ('html' === O(n) || + ('body' === O(n) && 'static' === W(n).position)) + ? e + : n || + (function (t) { + var e = /firefox/i.test(D()); + if ( + /Trident/i.test(D()) && + _(t) && + 'fixed' === W(t).position + ) + return null; + var n = U(t); + for ( + k(n) && (n = n.host); + _(n) && ['html', 'body'].indexOf(O(n)) < 0; + + ) { + var o = W(n); + if ( + 'none' !== o.transform || + 'none' !== o.perspective || + 'paint' === o.contain || + -1 !== + ['transform', 'perspective'].indexOf(o.willChange) || + (e && 'filter' === o.willChange) || + (e && o.filter && 'none' !== o.filter) + ) + return n; + n = n.parentNode; + } + return null; + })(t) || + e; + } + function K(t) { + return ['top', 'bottom'].indexOf(t) >= 0 ? 'x' : 'y'; + } + function z(t, e, n) { + return q(t, j(e, n)); + } + function X(t) { + return Object.assign( + {}, + { top: 0, right: 0, bottom: 0, left: 0 }, + t + ); + } + function Z(t, e) { + return e.reduce(function (e, n) { + return ((e[n] = t), e); + }, {}); + } + const G = { + name: 'arrow', + enabled: !0, + phase: 'main', + fn: function (t) { + var e, + n = t.state, + l = t.name, + c = t.options, + u = n.elements.arrow, + d = n.modifiersData.popperOffsets, + p = B(n.placement), + h = K(p), + f = [s, r].indexOf(p) >= 0 ? 'height' : 'width'; + if (u && d) { + var v = (function (t, e) { + return X( + 'number' != + typeof (t = + 'function' == typeof t + ? t( + Object.assign({}, e.rects, { + placement: e.placement, + }) + ) + : t) + ? t + : Z(t, a) + ); + })(c.padding, n), + m = M(u), + y = 'y' === h ? o : s, + g = 'y' === h ? i : r, + w = + n.rects.reference[f] + + n.rects.reference[h] - + d[h] - + n.rects.popper[f], + b = d[h] - n.rects.reference[h], + C = J(u), + S = C + ? 'y' === h + ? C.clientHeight || 0 + : C.clientWidth || 0 + : 0, + I = w / 2 - b / 2, + T = v[y], + x = S - m[f] - v[g], + E = S / 2 - m[f] / 2 + I, + O = z(T, E, x), + L = h; + n.modifiersData[l] = + (((e = {})[L] = O), (e.centerOffset = O - E), e); + } + }, + effect: function (t) { + var e = t.state, + n = t.options.element, + o = void 0 === n ? '[data-popper-arrow]' : n; + null != o && + ('string' != typeof o || + (o = e.elements.popper.querySelector(o))) && + R(e.elements.popper, o) && + (e.elements.arrow = o); + }, + requires: ['popperOffsets'], + requiresIfExists: ['preventOverflow'], + }; + function Q(t) { + return t.split('-')[1]; + } + var tt = { top: 'auto', right: 'auto', bottom: 'auto', left: 'auto' }; + function et(t) { + var e, + n = t.popper, + l = t.popperRect, + a = t.placement, + c = t.variation, + d = t.offsets, + p = t.position, + h = t.gpuAcceleration, + f = t.adaptive, + v = t.roundOffsets, + m = t.isFixed, + y = d.x, + g = void 0 === y ? 0 : y, + w = d.y, + b = void 0 === w ? 0 : w, + C = 'function' == typeof v ? v({ x: g, y: b }) : { x: g, y: b }; + ((g = C.x), (b = C.y)); + var S = d.hasOwnProperty('x'), + I = d.hasOwnProperty('y'), + T = s, + x = o, + E = window; + if (f) { + var O = J(n), + A = 'clientHeight', + _ = 'clientWidth'; + if ( + (O === L(n) && + 'static' !== W((O = F(n))).position && + 'absolute' === p && + ((A = 'scrollHeight'), (_ = 'scrollWidth')), + a === o || ((a === s || a === r) && c === u)) + ) + ((x = i), + (b -= + (m && O === E && E.visualViewport + ? E.visualViewport.height + : O[A]) - l.height), + (b *= h ? 1 : -1)); + if (a === s || ((a === o || a === i) && c === u)) + ((T = r), + (g -= + (m && O === E && E.visualViewport + ? E.visualViewport.width + : O[_]) - l.width), + (g *= h ? 1 : -1)); + } + var k, + P = Object.assign({ position: p }, f && tt), + B = + !0 === v + ? (function (t, e) { + var n = t.x, + o = t.y, + i = e.devicePixelRatio || 1; + return { x: N(n * i) / i || 0, y: N(o * i) / i || 0 }; + })({ x: g, y: b }, L(n)) + : { x: g, y: b }; + return ( + (g = B.x), + (b = B.y), + h + ? Object.assign( + {}, + P, + (((k = {})[x] = I ? '0' : ''), + (k[T] = S ? '0' : ''), + (k.transform = + (E.devicePixelRatio || 1) <= 1 + ? 'translate(' + g + 'px, ' + b + 'px)' + : 'translate3d(' + g + 'px, ' + b + 'px, 0)'), + k) + ) + : Object.assign( + {}, + P, + (((e = {})[x] = I ? b + 'px' : ''), + (e[T] = S ? g + 'px' : ''), + (e.transform = ''), + e) + ) + ); + } + const nt = { + name: 'computeStyles', + enabled: !0, + phase: 'beforeWrite', + fn: function (t) { + var e = t.state, + n = t.options, + o = n.gpuAcceleration, + i = void 0 === o || o, + r = n.adaptive, + s = void 0 === r || r, + l = n.roundOffsets, + a = void 0 === l || l, + c = { + placement: B(e.placement), + variation: Q(e.placement), + popper: e.elements.popper, + popperRect: e.rects.popper, + gpuAcceleration: i, + isFixed: 'fixed' === e.options.strategy, + }; + (null != e.modifiersData.popperOffsets && + (e.styles.popper = Object.assign( + {}, + e.styles.popper, + et( + Object.assign({}, c, { + offsets: e.modifiersData.popperOffsets, + position: e.options.strategy, + adaptive: s, + roundOffsets: a, + }) + ) + )), + null != e.modifiersData.arrow && + (e.styles.arrow = Object.assign( + {}, + e.styles.arrow, + et( + Object.assign({}, c, { + offsets: e.modifiersData.arrow, + position: 'absolute', + adaptive: !1, + roundOffsets: a, + }) + ) + )), + (e.attributes.popper = Object.assign({}, e.attributes.popper, { + 'data-popper-placement': e.placement, + }))); + }, + data: {}, + }; + var ot = { passive: !0 }; + const it = { + name: 'eventListeners', + enabled: !0, + phase: 'write', + fn: function () {}, + effect: function (t) { + var e = t.state, + n = t.instance, + o = t.options, + i = o.scroll, + r = void 0 === i || i, + s = o.resize, + l = void 0 === s || s, + a = L(e.elements.popper), + c = [].concat( + e.scrollParents.reference, + e.scrollParents.popper + ); + return ( + r && + c.forEach(function (t) { + t.addEventListener('scroll', n.update, ot); + }), + l && a.addEventListener('resize', n.update, ot), + function () { + (r && + c.forEach(function (t) { + t.removeEventListener('scroll', n.update, ot); + }), + l && a.removeEventListener('resize', n.update, ot)); + } + ); + }, + data: {}, + }; + var rt = { + left: 'right', + right: 'left', + bottom: 'top', + top: 'bottom', + }; + function st(t) { + return t.replace(/left|right|bottom|top/g, function (t) { + return rt[t]; + }); + } + var lt = { start: 'end', end: 'start' }; + function at(t) { + return t.replace(/start|end/g, function (t) { + return lt[t]; + }); + } + function ct(t) { + var e = L(t); + return { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset }; + } + function ut(t) { + return H(F(t)).left + ct(t).scrollLeft; + } + function dt(t) { + var e = W(t), + n = e.overflow, + o = e.overflowX, + i = e.overflowY; + return /auto|scroll|overlay|hidden/.test(n + i + o); + } + function pt(t) { + return ['html', 'body', '#document'].indexOf(O(t)) >= 0 + ? t.ownerDocument.body + : _(t) && dt(t) + ? t + : pt(U(t)); + } + function ht(t, e) { + var n; + void 0 === e && (e = []); + var o = pt(t), + i = o === (null == (n = t.ownerDocument) ? void 0 : n.body), + r = L(o), + s = i ? [r].concat(r.visualViewport || [], dt(o) ? o : []) : o, + l = e.concat(s); + return i ? l : l.concat(ht(U(s))); + } + function ft(t) { + return Object.assign({}, t, { + left: t.x, + top: t.y, + right: t.x + t.width, + bottom: t.y + t.height, + }); + } + function vt(t, e, n) { + return e === p + ? ft( + (function (t, e) { + var n = L(t), + o = F(t), + i = n.visualViewport, + r = o.clientWidth, + s = o.clientHeight, + l = 0, + a = 0; + if (i) { + ((r = i.width), (s = i.height)); + var c = $(); + (c || (!c && 'fixed' === e)) && + ((l = i.offsetLeft), (a = i.offsetTop)); + } + return { width: r, height: s, x: l + ut(t), y: a }; + })(t, n) + ) + : A(e) + ? (function (t, e) { + var n = H(t, !1, 'fixed' === e); + return ( + (n.top = n.top + t.clientTop), + (n.left = n.left + t.clientLeft), + (n.bottom = n.top + t.clientHeight), + (n.right = n.left + t.clientWidth), + (n.width = t.clientWidth), + (n.height = t.clientHeight), + (n.x = n.left), + (n.y = n.top), + n + ); + })(e, n) + : ft( + (function (t) { + var e, + n = F(t), + o = ct(t), + i = null == (e = t.ownerDocument) ? void 0 : e.body, + r = q( + n.scrollWidth, + n.clientWidth, + i ? i.scrollWidth : 0, + i ? i.clientWidth : 0 + ), + s = q( + n.scrollHeight, + n.clientHeight, + i ? i.scrollHeight : 0, + i ? i.clientHeight : 0 + ), + l = -o.scrollLeft + ut(t), + a = -o.scrollTop; + return ( + 'rtl' === W(i || n).direction && + (l += q(n.clientWidth, i ? i.clientWidth : 0) - r), + { width: r, height: s, x: l, y: a } + ); + })(F(t)) + ); + } + function mt(t, e, n, o) { + var i = + 'clippingParents' === e + ? (function (t) { + var e = ht(U(t)), + n = + ['absolute', 'fixed'].indexOf(W(t).position) >= 0 && + _(t) + ? J(t) + : t; + return A(n) + ? e.filter(function (t) { + return A(t) && R(t, n) && 'body' !== O(t); + }) + : []; + })(t) + : [].concat(e), + r = [].concat(i, [n]), + s = r[0], + l = r.reduce( + function (e, n) { + var i = vt(t, n, o); + return ( + (e.top = q(i.top, e.top)), + (e.right = j(i.right, e.right)), + (e.bottom = j(i.bottom, e.bottom)), + (e.left = q(i.left, e.left)), + e + ); + }, + vt(t, s, o) + ); + return ( + (l.width = l.right - l.left), + (l.height = l.bottom - l.top), + (l.x = l.left), + (l.y = l.top), + l + ); + } + function yt(t) { + var e, + n = t.reference, + l = t.element, + a = t.placement, + d = a ? B(a) : null, + p = a ? Q(a) : null, + h = n.x + n.width / 2 - l.width / 2, + f = n.y + n.height / 2 - l.height / 2; + switch (d) { + case o: + e = { x: h, y: n.y - l.height }; + break; + case i: + e = { x: h, y: n.y + n.height }; + break; + case r: + e = { x: n.x + n.width, y: f }; + break; + case s: + e = { x: n.x - l.width, y: f }; + break; + default: + e = { x: n.x, y: n.y }; + } + var v = d ? K(d) : null; + if (null != v) { + var m = 'y' === v ? 'height' : 'width'; + switch (p) { + case c: + e[v] = e[v] - (n[m] / 2 - l[m] / 2); + break; + case u: + e[v] = e[v] + (n[m] / 2 - l[m] / 2); + } + } + return e; + } + function gt(t, e) { + void 0 === e && (e = {}); + var n = e, + s = n.placement, + l = void 0 === s ? t.placement : s, + c = n.strategy, + u = void 0 === c ? t.strategy : c, + v = n.boundary, + m = void 0 === v ? d : v, + y = n.rootBoundary, + g = void 0 === y ? p : y, + w = n.elementContext, + b = void 0 === w ? h : w, + C = n.altBoundary, + S = void 0 !== C && C, + I = n.padding, + T = void 0 === I ? 0 : I, + x = X('number' != typeof T ? T : Z(T, a)), + E = b === h ? f : h, + O = t.rects.popper, + L = t.elements[S ? E : b], + _ = mt( + A(L) ? L : L.contextElement || F(t.elements.popper), + m, + g, + u + ), + k = H(t.elements.reference), + P = yt({ + reference: k, + element: O, + strategy: 'absolute', + placement: l, + }), + B = ft(Object.assign({}, O, P)), + q = b === h ? B : k, + j = { + top: _.top - q.top + x.top, + bottom: q.bottom - _.bottom + x.bottom, + left: _.left - q.left + x.left, + right: q.right - _.right + x.right, + }, + N = t.modifiersData.offset; + if (b === h && N) { + var D = N[l]; + Object.keys(j).forEach(function (t) { + var e = [r, i].indexOf(t) >= 0 ? 1 : -1, + n = [o, i].indexOf(t) >= 0 ? 'y' : 'x'; + j[t] += D[n] * e; + }); + } + return j; + } + const wt = { + name: 'flip', + enabled: !0, + phase: 'main', + fn: function (t) { + var e = t.state, + n = t.options, + u = t.name; + if (!e.modifiersData[u]._skip) { + for ( + var d = n.mainAxis, + p = void 0 === d || d, + h = n.altAxis, + f = void 0 === h || h, + y = n.fallbackPlacements, + g = n.padding, + w = n.boundary, + b = n.rootBoundary, + C = n.altBoundary, + S = n.flipVariations, + I = void 0 === S || S, + T = n.allowedAutoPlacements, + x = e.options.placement, + E = B(x), + O = + y || + (E === x || !I + ? [st(x)] + : (function (t) { + if (B(t) === l) return []; + var e = st(t); + return [at(t), e, at(e)]; + })(x)), + L = [x].concat(O).reduce(function (t, n) { + return t.concat( + B(n) === l + ? (function (t, e) { + void 0 === e && (e = {}); + var n = e, + o = n.placement, + i = n.boundary, + r = n.rootBoundary, + s = n.padding, + l = n.flipVariations, + c = n.allowedAutoPlacements, + u = void 0 === c ? m : c, + d = Q(o), + p = d + ? l + ? v + : v.filter(function (t) { + return Q(t) === d; + }) + : a, + h = p.filter(function (t) { + return u.indexOf(t) >= 0; + }); + 0 === h.length && (h = p); + var f = h.reduce(function (e, n) { + return ( + (e[n] = gt(t, { + placement: n, + boundary: i, + rootBoundary: r, + padding: s, + })[B(n)]), + e + ); + }, {}); + return Object.keys(f).sort(function (t, e) { + return f[t] - f[e]; + }); + })(e, { + placement: n, + boundary: w, + rootBoundary: b, + padding: g, + flipVariations: I, + allowedAutoPlacements: T, + }) + : n + ); + }, []), + A = e.rects.reference, + _ = e.rects.popper, + k = new Map(), + P = !0, + q = L[0], + j = 0; + j < L.length; + j++ + ) { + var N = L[j], + D = B(N), + $ = Q(N) === c, + H = [o, i].indexOf(D) >= 0, + M = H ? 'width' : 'height', + R = gt(e, { + placement: N, + boundary: w, + rootBoundary: b, + altBoundary: C, + padding: g, + }), + W = H ? ($ ? r : s) : $ ? i : o; + A[M] > _[M] && (W = st(W)); + var V = st(W), + F = []; + if ( + (p && F.push(R[D] <= 0), + f && F.push(R[W] <= 0, R[V] <= 0), + F.every(function (t) { + return t; + })) + ) { + ((q = N), (P = !1)); + break; + } + k.set(N, F); + } + if (P) + for ( + var U = function (t) { + var e = L.find(function (e) { + var n = k.get(e); + if (n) + return n.slice(0, t).every(function (t) { + return t; + }); + }); + if (e) return ((q = e), 'break'); + }, + Y = I ? 3 : 1; + Y > 0; + Y-- + ) { + if ('break' === U(Y)) break; + } + e.placement !== q && + ((e.modifiersData[u]._skip = !0), + (e.placement = q), + (e.reset = !0)); + } + }, + requiresIfExists: ['offset'], + data: { _skip: !1 }, + }; + function bt(t, e, n) { + return ( + void 0 === n && (n = { x: 0, y: 0 }), + { + top: t.top - e.height - n.y, + right: t.right - e.width + n.x, + bottom: t.bottom - e.height + n.y, + left: t.left - e.width - n.x, + } + ); + } + function Ct(t) { + return [o, r, i, s].some(function (e) { + return t[e] >= 0; + }); + } + const St = { + name: 'hide', + enabled: !0, + phase: 'main', + requiresIfExists: ['preventOverflow'], + fn: function (t) { + var e = t.state, + n = t.name, + o = e.rects.reference, + i = e.rects.popper, + r = e.modifiersData.preventOverflow, + s = gt(e, { elementContext: 'reference' }), + l = gt(e, { altBoundary: !0 }), + a = bt(s, o), + c = bt(l, i, r), + u = Ct(a), + d = Ct(c); + ((e.modifiersData[n] = { + referenceClippingOffsets: a, + popperEscapeOffsets: c, + isReferenceHidden: u, + hasPopperEscaped: d, + }), + (e.attributes.popper = Object.assign({}, e.attributes.popper, { + 'data-popper-reference-hidden': u, + 'data-popper-escaped': d, + }))); + }, + }; + const It = { + name: 'offset', + enabled: !0, + phase: 'main', + requires: ['popperOffsets'], + fn: function (t) { + var e = t.state, + n = t.options, + i = t.name, + l = n.offset, + a = void 0 === l ? [0, 0] : l, + c = m.reduce(function (t, n) { + return ( + (t[n] = (function (t, e, n) { + var i = B(t), + l = [s, o].indexOf(i) >= 0 ? -1 : 1, + a = + 'function' == typeof n + ? n(Object.assign({}, e, { placement: t })) + : n, + c = a[0], + u = a[1]; + return ( + (c = c || 0), + (u = (u || 0) * l), + [s, r].indexOf(i) >= 0 ? { x: u, y: c } : { x: c, y: u } + ); + })(n, e.rects, a)), + t + ); + }, {}), + u = c[e.placement], + d = u.x, + p = u.y; + (null != e.modifiersData.popperOffsets && + ((e.modifiersData.popperOffsets.x += d), + (e.modifiersData.popperOffsets.y += p)), + (e.modifiersData[i] = c)); + }, + }; + const Tt = { + name: 'popperOffsets', + enabled: !0, + phase: 'read', + fn: function (t) { + var e = t.state, + n = t.name; + e.modifiersData[n] = yt({ + reference: e.rects.reference, + element: e.rects.popper, + strategy: 'absolute', + placement: e.placement, + }); + }, + data: {}, + }; + const xt = { + name: 'preventOverflow', + enabled: !0, + phase: 'main', + fn: function (t) { + var e = t.state, + n = t.options, + l = t.name, + a = n.mainAxis, + u = void 0 === a || a, + d = n.altAxis, + p = void 0 !== d && d, + h = n.boundary, + f = n.rootBoundary, + v = n.altBoundary, + m = n.padding, + y = n.tether, + g = void 0 === y || y, + w = n.tetherOffset, + b = void 0 === w ? 0 : w, + C = gt(e, { + boundary: h, + rootBoundary: f, + padding: m, + altBoundary: v, + }), + S = B(e.placement), + I = Q(e.placement), + T = !I, + x = K(S), + E = 'x' === x ? 'y' : 'x', + O = e.modifiersData.popperOffsets, + L = e.rects.reference, + A = e.rects.popper, + _ = + 'function' == typeof b + ? b(Object.assign({}, e.rects, { placement: e.placement })) + : b, + k = + 'number' == typeof _ + ? { mainAxis: _, altAxis: _ } + : Object.assign({ mainAxis: 0, altAxis: 0 }, _), + P = e.modifiersData.offset + ? e.modifiersData.offset[e.placement] + : null, + N = { x: 0, y: 0 }; + if (O) { + if (u) { + var D, + $ = 'y' === x ? o : s, + H = 'y' === x ? i : r, + R = 'y' === x ? 'height' : 'width', + W = O[x], + V = W + C[$], + F = W - C[H], + U = g ? -A[R] / 2 : 0, + Y = I === c ? L[R] : A[R], + X = I === c ? -A[R] : -L[R], + Z = e.elements.arrow, + G = g && Z ? M(Z) : { width: 0, height: 0 }, + tt = e.modifiersData['arrow#persistent'] + ? e.modifiersData['arrow#persistent'].padding + : { top: 0, right: 0, bottom: 0, left: 0 }, + et = tt[$], + nt = tt[H], + ot = z(0, L[R], G[R]), + it = T + ? L[R] / 2 - U - ot - et - k.mainAxis + : Y - ot - et - k.mainAxis, + rt = T + ? -L[R] / 2 + U + ot + nt + k.mainAxis + : X + ot + nt + k.mainAxis, + st = e.elements.arrow && J(e.elements.arrow), + lt = st + ? 'y' === x + ? st.clientTop || 0 + : st.clientLeft || 0 + : 0, + at = null != (D = null == P ? void 0 : P[x]) ? D : 0, + ct = W + rt - at, + ut = z(g ? j(V, W + it - at - lt) : V, W, g ? q(F, ct) : F); + ((O[x] = ut), (N[x] = ut - W)); + } + if (p) { + var dt, + pt = 'x' === x ? o : s, + ht = 'x' === x ? i : r, + ft = O[E], + vt = 'y' === E ? 'height' : 'width', + mt = ft + C[pt], + yt = ft - C[ht], + wt = -1 !== [o, s].indexOf(S), + bt = null != (dt = null == P ? void 0 : P[E]) ? dt : 0, + Ct = wt ? mt : ft - L[vt] - A[vt] - bt + k.altAxis, + St = wt ? ft + L[vt] + A[vt] - bt - k.altAxis : yt, + It = + g && wt + ? (function (t, e, n) { + var o = z(t, e, n); + return o > n ? n : o; + })(Ct, ft, St) + : z(g ? Ct : mt, ft, g ? St : yt); + ((O[E] = It), (N[E] = It - ft)); + } + e.modifiersData[l] = N; + } + }, + requiresIfExists: ['offset'], + }; + function Et(t, e, n) { + void 0 === n && (n = !1); + var o, + i, + r = _(e), + s = + _(e) && + (function (t) { + var e = t.getBoundingClientRect(), + n = N(e.width) / t.offsetWidth || 1, + o = N(e.height) / t.offsetHeight || 1; + return 1 !== n || 1 !== o; + })(e), + l = F(e), + a = H(t, s, n), + c = { scrollLeft: 0, scrollTop: 0 }, + u = { x: 0, y: 0 }; + return ( + (r || (!r && !n)) && + (('body' !== O(e) || dt(l)) && + (c = + (o = e) !== L(o) && _(o) + ? { + scrollLeft: (i = o).scrollLeft, + scrollTop: i.scrollTop, + } + : ct(o)), + _(e) + ? (((u = H(e, !0)).x += e.clientLeft), (u.y += e.clientTop)) + : l && (u.x = ut(l))), + { + x: a.left + c.scrollLeft - u.x, + y: a.top + c.scrollTop - u.y, + width: a.width, + height: a.height, + } + ); + } + function Ot(t) { + var e = new Map(), + n = new Set(), + o = []; + function i(t) { + (n.add(t.name), + [] + .concat(t.requires || [], t.requiresIfExists || []) + .forEach(function (t) { + if (!n.has(t)) { + var o = e.get(t); + o && i(o); + } + }), + o.push(t)); + } + return ( + t.forEach(function (t) { + e.set(t.name, t); + }), + t.forEach(function (t) { + n.has(t.name) || i(t); + }), + o + ); + } + var Lt = { placement: 'bottom', modifiers: [], strategy: 'absolute' }; + function At() { + for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) + e[n] = arguments[n]; + return !e.some(function (t) { + return !(t && 'function' == typeof t.getBoundingClientRect); + }); + } + function _t(t) { + void 0 === t && (t = {}); + var e = t, + n = e.defaultModifiers, + o = void 0 === n ? [] : n, + i = e.defaultOptions, + r = void 0 === i ? Lt : i; + return function (t, e, n) { + void 0 === n && (n = r); + var i, + s, + l = { + placement: 'bottom', + orderedModifiers: [], + options: Object.assign({}, Lt, r), + modifiersData: {}, + elements: { reference: t, popper: e }, + attributes: {}, + styles: {}, + }, + a = [], + c = !1, + u = { + state: l, + setOptions: function (n) { + var i = 'function' == typeof n ? n(l.options) : n; + (d(), + (l.options = Object.assign({}, r, l.options, i)), + (l.scrollParents = { + reference: A(t) + ? ht(t) + : t.contextElement + ? ht(t.contextElement) + : [], + popper: ht(e), + })); + var s, + c, + p = (function (t) { + var e = Ot(t); + return E.reduce(function (t, n) { + return t.concat( + e.filter(function (t) { + return t.phase === n; + }) + ); + }, []); + })( + ((s = [].concat(o, l.options.modifiers)), + (c = s.reduce(function (t, e) { + var n = t[e.name]; + return ( + (t[e.name] = n + ? Object.assign({}, n, e, { + options: Object.assign( + {}, + n.options, + e.options + ), + data: Object.assign({}, n.data, e.data), + }) + : e), + t + ); + }, {})), + Object.keys(c).map(function (t) { + return c[t]; + })) + ); + return ( + (l.orderedModifiers = p.filter(function (t) { + return t.enabled; + })), + l.orderedModifiers.forEach(function (t) { + var e = t.name, + n = t.options, + o = void 0 === n ? {} : n, + i = t.effect; + if ('function' == typeof i) { + var r = i({ + state: l, + name: e, + instance: u, + options: o, + }), + s = function () {}; + a.push(r || s); + } + }), + u.update() + ); + }, + forceUpdate: function () { + if (!c) { + var t = l.elements, + e = t.reference, + n = t.popper; + if (At(e, n)) { + ((l.rects = { + reference: Et( + e, + J(n), + 'fixed' === l.options.strategy + ), + popper: M(n), + }), + (l.reset = !1), + (l.placement = l.options.placement), + l.orderedModifiers.forEach(function (t) { + return (l.modifiersData[t.name] = Object.assign( + {}, + t.data + )); + })); + for (var o = 0; o < l.orderedModifiers.length; o++) + if (!0 !== l.reset) { + var i = l.orderedModifiers[o], + r = i.fn, + s = i.options, + a = void 0 === s ? {} : s, + d = i.name; + 'function' == typeof r && + (l = + r({ + state: l, + options: a, + name: d, + instance: u, + }) || l); + } else ((l.reset = !1), (o = -1)); + } + } + }, + update: + ((i = function () { + return new Promise(function (t) { + (u.forceUpdate(), t(l)); + }); + }), + function () { + return ( + s || + (s = new Promise(function (t) { + Promise.resolve().then(function () { + ((s = void 0), t(i())); + }); + })), + s + ); + }), + destroy: function () { + (d(), (c = !0)); + }, + }; + if (!At(t, e)) return u; + function d() { + (a.forEach(function (t) { + return t(); + }), + (a = [])); + } + return ( + u.setOptions(n).then(function (t) { + !c && n.onFirstUpdate && n.onFirstUpdate(t); + }), + u + ); + }; + } + var kt = _t(), + Pt = _t({ defaultModifiers: [it, Tt, nt, P, It, wt, xt, G, St] }), + Bt = _t({ defaultModifiers: [it, Tt, nt, P] }); + }, + 190: (t, e) => { + (Object.defineProperty(e, '__esModule', { value: !0 }), + (e.COMBO_BOX_ACCESSIBILITY_KEY_SET = + e.SELECT_ACCESSIBILITY_KEY_SET = + e.TABS_ACCESSIBILITY_KEY_SET = + e.OVERLAY_ACCESSIBILITY_KEY_SET = + e.DROPDOWN_ACCESSIBILITY_KEY_SET = + e.POSITIONS = + void 0), + (e.POSITIONS = { + auto: 'auto', + 'auto-start': 'auto-start', + 'auto-end': 'auto-end', + top: 'top', + 'top-left': 'top-start', + 'top-right': 'top-end', + bottom: 'bottom', + 'bottom-left': 'bottom-start', + 'bottom-right': 'bottom-end', + right: 'right', + 'right-start': 'right-start', + 'right-end': 'right-end', + left: 'left', + 'left-start': 'left-start', + 'left-end': 'left-end', + }), + (e.DROPDOWN_ACCESSIBILITY_KEY_SET = [ + 'Escape', + 'ArrowUp', + 'ArrowDown', + 'Home', + 'End', + 'Enter', + ]), + (e.OVERLAY_ACCESSIBILITY_KEY_SET = ['Escape', 'Tab']), + (e.TABS_ACCESSIBILITY_KEY_SET = [ + 'ArrowUp', + 'ArrowLeft', + 'ArrowDown', + 'ArrowRight', + 'Home', + 'End', + ]), + (e.SELECT_ACCESSIBILITY_KEY_SET = [ + 'ArrowUp', + 'ArrowLeft', + 'ArrowDown', + 'ArrowRight', + 'Home', + 'End', + 'Escape', + 'Enter', + 'Tab', + ]), + (e.COMBO_BOX_ACCESSIBILITY_KEY_SET = [ + 'ArrowUp', + 'ArrowLeft', + 'ArrowDown', + 'ArrowRight', + 'Home', + 'End', + 'Escape', + 'Enter', + ])); + }, + 460: function (t, e, n) { + /* + * HSAccordion + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }); + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = n(969), + s = (function (t) { + function e(e, n, o) { + var i = t.call(this, e, n, o) || this; + return ( + (i.toggle = + i.el.querySelector('.hs-accordion-toggle') || null), + (i.content = + i.el.querySelector('.hs-accordion-content') || null), + (i.group = i.el.closest('.hs-accordion-group') || null), + (i.isAlwaysOpened = + i.group.hasAttribute('data-hs-accordion-always-open') || + !1), + i.toggle && i.content && i.init(), + i + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t = this; + (this.createCollection(window.$hsAccordionCollection, this), + this.toggle.addEventListener('click', function () { + t.el.classList.contains('active') ? t.hide() : t.show(); + })); + }), + (e.prototype.show = function () { + var t = this; + this.group && + !this.isAlwaysOpened && + this.group.querySelector('.hs-accordion.active') && + this.group.querySelector('.hs-accordion.active') !== + this.el && + window.$hsAccordionCollection + .find(function (e) { + return ( + e.element.el === + t.group.querySelector('.hs-accordion.active') + ); + }) + .element.hide(); + if (this.el.classList.contains('active')) return !1; + (this.el.classList.add('active'), + (this.content.style.display = 'block'), + (this.content.style.height = '0'), + setTimeout(function () { + t.content.style.height = ''.concat( + t.content.scrollHeight, + 'px' + ); + }), + (0, r.afterTransition)(this.content, function () { + ((t.content.style.display = 'block'), + (t.content.style.height = ''), + t.fireEvent('open', t.el), + (0, r.dispatch)('open.hs.accordion', t.el, t.el)); + })); + }), + (e.prototype.hide = function () { + var t = this; + if (!this.el.classList.contains('active')) return !1; + (this.el.classList.remove('active'), + (this.content.style.height = ''.concat( + this.content.scrollHeight, + 'px' + )), + setTimeout(function () { + t.content.style.height = '0'; + }), + (0, r.afterTransition)(this.content, function () { + ((t.content.style.display = ''), + (t.content.style.height = '0'), + t.fireEvent('close', t.el), + (0, r.dispatch)('close.hs.accordion', t.el, t.el)); + })); + }), + (e.getInstance = function (t, e) { + var n = window.$hsAccordionCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element.el) : null; + }), + (e.show = function (t) { + var e = window.$hsAccordionCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + e && + 'block' !== e.element.content.style.display && + e.element.show(); + }), + (e.hide = function (t) { + var e = window.$hsAccordionCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + e && + 'block' === e.element.content.style.display && + e.element.hide(); + }), + (e.autoInit = function () { + (window.$hsAccordionCollection || + (window.$hsAccordionCollection = []), + document + .querySelectorAll( + '.hs-accordion:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsAccordionCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + })); + }), + (e.on = function (t, e, n) { + var o = window.$hsAccordionCollection.find(function (t) { + return ( + t.element.el === + ('string' == typeof e ? document.querySelector(e) : e) + ); + }); + o && (o.element.events[t] = n); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + s.autoInit(); + }), + 'undefined' != typeof window && (window.HSAccordion = s), + (e.default = s)); + }, + 737: (t, e) => { + /* + * HSBasePlugin + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + Object.defineProperty(e, '__esModule', { value: !0 }); + var n = (function () { + function t(t, e, n) { + ((this.el = t), + (this.options = e), + (this.events = n), + (this.el = t), + (this.options = e), + (this.events = {})); + } + return ( + (t.prototype.createCollection = function (t, e) { + var n; + t.push({ + id: + (null === (n = null == e ? void 0 : e.el) || void 0 === n + ? void 0 + : n.id) || t.length + 1, + element: e, + }); + }), + (t.prototype.fireEvent = function (t, e) { + if ((void 0 === e && (e = null), this.events.hasOwnProperty(t))) + return this.events[t](e); + }), + (t.prototype.on = function (t, e) { + this.events[t] = e; + }), + t + ); + })(); + e.default = n; + }, + 629: function (t, e, n) { + /* + * HSCarousel + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var s = (function (t) { + function e(e, n) { + var o, + i, + s, + l = t.call(this, e, n) || this, + a = e.getAttribute('data-hs-carousel'), + c = a ? JSON.parse(a) : {}, + u = r(r({}, c), n); + return ( + (l.currentIndex = u.currentIndex || 0), + (l.loadingClasses = u.loadingClasses + ? ''.concat(u.loadingClasses).split(',') + : null), + (l.loadingClassesRemove = ( + null === (o = l.loadingClasses) || void 0 === o + ? void 0 + : o[0] + ) + ? l.loadingClasses[0].split(' ') + : 'opacity-0'), + (l.loadingClassesAdd = ( + null === (i = l.loadingClasses) || void 0 === i + ? void 0 + : i[1] + ) + ? l.loadingClasses[1].split(' ') + : ''), + (l.afterLoadingClassesAdd = ( + null === (s = l.loadingClasses) || void 0 === s + ? void 0 + : s[2] + ) + ? l.loadingClasses[2].split(' ') + : ''), + (l.isAutoPlay = void 0 !== u.isAutoPlay && u.isAutoPlay), + (l.speed = u.speed || 4e3), + (l.isInfiniteLoop = + void 0 === u.isInfiniteLoop || u.isInfiniteLoop), + (l.inner = l.el.querySelector('.hs-carousel-body') || null), + (l.slides = l.el.querySelectorAll('.hs-carousel-slide') || []), + (l.prev = l.el.querySelector('.hs-carousel-prev') || null), + (l.next = l.el.querySelector('.hs-carousel-next') || null), + (l.dots = + l.el.querySelectorAll('.hs-carousel-pagination > *') || null), + (l.sliderWidth = l.inner.parentElement.clientWidth), + (l.touchX = { start: 0, end: 0 }), + l.init(), + l + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t, + e, + n = this; + (this.createCollection(window.$hsCarouselCollection, this), + this.inner && + (this.calculateWidth(), + this.loadingClassesRemove && + ('string' == typeof this.loadingClassesRemove + ? this.inner.classList.remove(this.loadingClassesRemove) + : (t = this.inner.classList).remove.apply( + t, + this.loadingClassesRemove + )), + this.loadingClassesAdd && + ('string' == typeof this.loadingClassesAdd + ? this.inner.classList.add(this.loadingClassesAdd) + : (e = this.inner.classList).add.apply( + e, + this.loadingClassesAdd + ))), + this.prev && + this.prev.addEventListener('click', function () { + (n.goToPrev(), + n.isAutoPlay && (n.resetTimer(), n.setTimer())); + }), + this.next && + this.next.addEventListener('click', function () { + (n.goToNext(), + n.isAutoPlay && (n.resetTimer(), n.setTimer())); + }), + this.dots && + this.dots.forEach(function (t, e) { + return t.addEventListener('click', function () { + (n.goTo(e), + n.isAutoPlay && (n.resetTimer(), n.setTimer())); + }); + }), + this.slides.length && + (this.addCurrentClass(), + this.isInfiniteLoop || this.addDisabledClass(), + this.isAutoPlay && this.autoPlay()), + this.inner && + this.afterLoadingClassesAdd && + setTimeout(function () { + var t; + 'string' == typeof n.afterLoadingClassesAdd + ? n.inner.classList.add(n.afterLoadingClassesAdd) + : (t = n.inner.classList).add.apply( + t, + n.afterLoadingClassesAdd + ); + }), + this.el.classList.add('init'), + this.el.addEventListener('touchstart', function (t) { + n.touchX.start = t.changedTouches[0].screenX; + }), + this.el.addEventListener('touchend', function (t) { + ((n.touchX.end = t.changedTouches[0].screenX), + n.detectDirection()); + }), + this.observeResize()); + }), + (e.prototype.observeResize = function () { + var t = this; + new ResizeObserver(function () { + return t.recalculateWidth(); + }).observe(document.querySelector('body')); + }), + (e.prototype.calculateWidth = function () { + var t = this; + ((this.inner.style.width = ''.concat( + this.sliderWidth * this.slides.length, + 'px' + )), + (this.inner.style.transform = 'translate(-'.concat( + this.currentIndex * this.sliderWidth, + 'px, 0px)' + )), + this.slides.forEach(function (e) { + e.style.width = ''.concat(t.sliderWidth, 'px'); + })); + }), + (e.prototype.addCurrentClass = function () { + var t = this; + (this.slides.forEach(function (e, n) { + n === t.currentIndex + ? e.classList.add('active') + : e.classList.remove('active'); + }), + this.dots && + this.dots.forEach(function (e, n) { + n === t.currentIndex + ? e.classList.add('active') + : e.classList.remove('active'); + })); + }), + (e.prototype.addDisabledClass = function () { + if (!this.prev || !this.next) return !1; + 0 === this.currentIndex + ? (this.next.classList.remove('disabled'), + this.prev.classList.add('disabled')) + : this.currentIndex === this.slides.length - 1 + ? (this.prev.classList.remove('disabled'), + this.next.classList.add('disabled')) + : (this.prev.classList.remove('disabled'), + this.next.classList.remove('disabled')); + }), + (e.prototype.autoPlay = function () { + this.setTimer(); + }), + (e.prototype.setTimer = function () { + var t = this; + this.timer = setInterval(function () { + t.currentIndex === t.slides.length - 1 + ? t.goTo(0) + : t.goToNext(); + }, this.speed); + }), + (e.prototype.resetTimer = function () { + clearInterval(this.timer); + }), + (e.prototype.detectDirection = function () { + var t = this.touchX, + e = t.start, + n = t.end; + (n < e && this.goToNext(), n > e && this.goToPrev()); + }), + (e.prototype.recalculateWidth = function () { + ((this.sliderWidth = this.inner.parentElement.clientWidth), + this.calculateWidth()); + }), + (e.prototype.goToPrev = function () { + 0 === this.currentIndex && this.isInfiniteLoop + ? ((this.currentIndex = this.slides.length - 1), + (this.inner.style.transform = 'translate(-'.concat( + this.currentIndex * this.sliderWidth, + 'px, 0px)' + )), + this.addCurrentClass()) + : 0 !== this.currentIndex && + ((this.currentIndex -= 1), + (this.inner.style.transform = 'translate(-'.concat( + this.currentIndex * this.sliderWidth, + 'px, 0px)' + )), + this.addCurrentClass(), + this.addDisabledClass()); + }), + (e.prototype.goToNext = function () { + this.currentIndex === this.slides.length - 1 && + this.isInfiniteLoop + ? ((this.currentIndex = 0), + (this.inner.style.transform = 'translate(-'.concat( + this.currentIndex * this.sliderWidth, + 'px, 0px)' + )), + this.addCurrentClass()) + : this.currentIndex < this.slides.length - 1 && + ((this.currentIndex += 1), + (this.inner.style.transform = 'translate(-'.concat( + this.currentIndex * this.sliderWidth, + 'px, 0px)' + )), + this.addCurrentClass(), + this.addDisabledClass()); + }), + (e.prototype.goTo = function (t) { + ((this.currentIndex = t), + (this.inner.style.transform = 'translate(-'.concat( + this.currentIndex * this.sliderWidth, + 'px, 0px)' + )), + this.addCurrentClass(), + this.isInfiniteLoop || this.addDisabledClass()); + }), + (e.getInstance = function (t, e) { + var n = window.$hsCarouselCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element) : null; + }), + (e.autoInit = function () { + (window.$hsCarouselCollection || + (window.$hsCarouselCollection = []), + document + .querySelectorAll( + '[data-hs-carousel]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsCarouselCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + })); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + s.autoInit(); + }), + window.addEventListener('resize', function () { + if (!window.$hsCarouselCollection) return !1; + window.$hsCarouselCollection.forEach(function (t) { + t.element.recalculateWidth(); + }); + }), + 'undefined' != typeof window && (window.HSCarousel = s), + (e.default = s)); + }, + 652: function (t, e, n) { + /* + * HSCollapse + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }); + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = n(969), + s = (function (t) { + function e(e, n, o) { + var i = t.call(this, e, n, o) || this; + return ( + (i.contentId = i.el.dataset.hsCollapse), + (i.content = document.querySelector(i.contentId)), + (i.animationInProcess = !1), + i.content && i.init(), + i + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t = this; + (this.createCollection(window.$hsCollapseCollection, this), + this.el.addEventListener('click', function () { + t.content.classList.contains('open') + ? t.hide() + : t.show(); + })); + }), + (e.prototype.hideAllMegaMenuItems = function () { + this.content + .querySelectorAll('.hs-mega-menu-content.block') + .forEach(function (t) { + (t.classList.remove('block'), t.classList.add('hidden')); + }); + }), + (e.prototype.show = function () { + var t = this; + if ( + this.animationInProcess || + this.el.classList.contains('open') + ) + return !1; + ((this.animationInProcess = !0), + this.el.classList.add('open'), + this.content.classList.add('open'), + this.content.classList.remove('hidden'), + (this.content.style.height = '0'), + setTimeout(function () { + t.content.style.height = ''.concat( + t.content.scrollHeight, + 'px' + ); + }), + (0, r.afterTransition)(this.content, function () { + ((t.content.style.height = ''), + t.fireEvent('open', t.el), + (0, r.dispatch)('open.hs.collapse', t.el, t.el), + (t.animationInProcess = !1)); + })); + }), + (e.prototype.hide = function () { + var t = this; + if ( + this.animationInProcess || + !this.el.classList.contains('open') + ) + return !1; + ((this.animationInProcess = !0), + this.el.classList.remove('open'), + (this.content.style.height = ''.concat( + this.content.scrollHeight, + 'px' + )), + setTimeout(function () { + t.content.style.height = '0'; + }), + this.content.classList.remove('open'), + (0, r.afterTransition)(this.content, function () { + (t.content.classList.add('hidden'), + (t.content.style.height = ''), + t.fireEvent('hide', t.el), + (0, r.dispatch)('hide.hs.collapse', t.el, t.el), + (t.animationInProcess = !1)); + }), + this.content.querySelectorAll('.hs-mega-menu-content.block') + .length && this.hideAllMegaMenuItems()); + }), + (e.getInstance = function (t, e) { + void 0 === e && (e = !1); + var n = window.$hsCollapseCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element.el) : null; + }), + (e.autoInit = function () { + (window.$hsCollapseCollection || + (window.$hsCollapseCollection = []), + document + .querySelectorAll( + '.hs-collapse-toggle:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsCollapseCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + })); + }), + (e.show = function (t) { + var e = window.$hsCollapseCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + e && + e.element.content.classList.contains('hidden') && + e.element.show(); + }), + (e.hide = function (t) { + var e = window.$hsCollapseCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + e && + !e.element.content.classList.contains('hidden') && + e.element.hide(); + }), + (e.on = function (t, e, n) { + var o = window.$hsCollapseCollection.find(function (t) { + return ( + t.element.el === + ('string' == typeof e ? document.querySelector(e) : e) + ); + }); + o && (o.element.events[t] = n); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + s.autoInit(); + }), + 'undefined' != typeof window && (window.HSCollapse = s), + (e.default = s)); + }, + 413: function (t, e, n) { + /* + * HSCopyMarkup + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var s = n(969), + l = (function (t) { + function e(e, n) { + var o = t.call(this, e, n) || this, + i = e.getAttribute('data-hs-copy-markup'), + s = i ? JSON.parse(i) : {}, + l = r(r({}, s), n); + return ( + (o.targetSelector = + (null == l ? void 0 : l.targetSelector) || null), + (o.wrapperSelector = + (null == l ? void 0 : l.wrapperSelector) || null), + (o.limit = (null == l ? void 0 : l.limit) || null), + (o.items = []), + o.targetSelector && o.init(), + o + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t = this; + (this.createCollection(window.$hsCopyMarkupCollection, this), + this.setTarget(), + this.setWrapper(), + this.addPredefinedItems(), + this.el.addEventListener('click', function () { + return t.copy(); + })); + }), + (e.prototype.copy = function () { + if (this.limit && this.items.length >= this.limit) return !1; + this.el.hasAttribute('disabled') && + this.el.setAttribute('disabled', ''); + var t = this.target.cloneNode(!0); + (this.addToItems(t), + this.limit && + this.items.length >= this.limit && + this.el.setAttribute('disabled', 'disabled'), + this.fireEvent('copy', t), + (0, s.dispatch)('copy.hs.copyMarkup', t, t)); + }), + (e.prototype.addPredefinedItems = function () { + var t = this; + Array.from(this.wrapper.children) + .filter(function (t) { + return !t.classList.contains('[--ignore-for-count]'); + }) + .forEach(function (e) { + t.addToItems(e); + }); + }), + (e.prototype.setTarget = function () { + var t = + 'string' == typeof this.targetSelector + ? document + .querySelector(this.targetSelector) + .cloneNode(!0) + : this.targetSelector.cloneNode(!0); + (t.removeAttribute('id'), (this.target = t)); + }), + (e.prototype.setWrapper = function () { + this.wrapper = + 'string' == typeof this.wrapperSelector + ? document.querySelector(this.wrapperSelector) + : this.wrapperSelector; + }), + (e.prototype.addToItems = function (t) { + var e = this, + n = t.querySelector('[data-hs-copy-markup-delete-item]'); + (this.wrapper ? this.wrapper.append(t) : this.el.before(t), + n && + n.addEventListener('click', function () { + return e.delete(t); + }), + this.items.push(t)); + }), + (e.prototype.delete = function (t) { + var e = this.items.indexOf(t); + (-1 !== e && this.items.splice(e, 1), + t.remove(), + this.fireEvent('delete', t), + (0, s.dispatch)('delete.hs.copyMarkup', t, t)); + }), + (e.getInstance = function (t, e) { + var n = window.$hsCopyMarkupCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element) : null; + }), + (e.autoInit = function () { + (window.$hsCopyMarkupCollection || + (window.$hsCopyMarkupCollection = []), + document + .querySelectorAll( + '[data-hs-copy-markup]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + if ( + !window.$hsCopyMarkupCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) + ) { + var n = t.getAttribute('data-hs-copy-markup'), + o = n ? JSON.parse(n) : {}; + new e(t, o); + } + })); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + l.autoInit(); + }), + 'undefined' != typeof window && (window.HSCopyMarkup = l), + (e.default = l)); + }, + 610: function (t, e, n) { + /* + * HSDropdown + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__spreadArray) || + function (t, e, n) { + if (n || 2 === arguments.length) + for (var o, i = 0, r = e.length; i < r; i++) + (!o && i in e) || + (o || (o = Array.prototype.slice.call(e, 0, i)), + (o[i] = e[i])); + return t.concat(o || Array.prototype.slice.call(e)); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var s = n(969), + l = n(492), + a = n(737), + c = n(190), + u = (function (t) { + function e(e, n, o) { + var i = t.call(this, e, n, o) || this; + return ( + (i.toggle = + i.el.querySelector(':scope > .hs-dropdown-toggle') || + i.el.children[0]), + (i.menu = i.el.querySelector(':scope > .hs-dropdown-menu')), + (i.eventMode = (0, s.getClassProperty)( + i.el, + '--trigger', + 'click' + )), + (i.closeMode = (0, s.getClassProperty)( + i.el, + '--auto-close', + 'true' + )), + (i.animationInProcess = !1), + i.toggle && i.menu && i.init(), + i + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t = this; + if ( + (this.createCollection(window.$hsDropdownCollection, this), + this.toggle.disabled) + ) + return !1; + (this.toggle.addEventListener('click', function () { + return t.onClickHandler(); + }), + (0, s.isIOS)() || + (0, s.isIpadOS)() || + (this.el.addEventListener('mouseenter', function () { + return t.onMouseEnterHandler(); + }), + this.el.addEventListener('mouseleave', function () { + return t.onMouseLeaveHandler(); + }))); + }), + (e.prototype.resizeHandler = function () { + this.eventMode = (0, s.getClassProperty)( + this.el, + '--trigger', + 'click' + ); + }), + (e.prototype.onClickHandler = function () { + this.el.classList.contains('open') && + !this.menu.classList.contains('hidden') + ? this.close() + : this.open(); + }), + (e.prototype.onMouseEnterHandler = function () { + if ('hover' !== this.eventMode) return !1; + (this.el._popper && this.forceClearState(), + !this.el.classList.contains('open') && + this.menu.classList.contains('hidden') && + this.open()); + }), + (e.prototype.onMouseLeaveHandler = function () { + if ('hover' !== this.eventMode) return !1; + this.el.classList.contains('open') && + !this.menu.classList.contains('hidden') && + this.close(); + }), + (e.prototype.destroyPopper = function () { + (this.menu.classList.remove('block'), + this.menu.classList.add('hidden'), + (this.menu.style.inset = null), + (this.menu.style.position = null), + this.el && this.el._popper && this.el._popper.destroy(), + (this.animationInProcess = !1)); + }), + (e.prototype.absoluteStrategyModifiers = function () { + var t = this; + return [ + { + name: 'applyStyles', + fn: function (e) { + var n = ( + window + .getComputedStyle(t.el) + .getPropertyValue('--strategy') || 'absolute' + ).replace(' ', ''), + o = ( + window + .getComputedStyle(t.el) + .getPropertyValue('--adaptive') || 'adaptive' + ).replace(' ', ''); + ((e.state.elements.popper.style.position = n), + (e.state.elements.popper.style.transform = + 'adaptive' === o + ? e.state.styles.popper.transform + : null), + (e.state.elements.popper.style.top = null), + (e.state.elements.popper.style.bottom = null), + (e.state.elements.popper.style.left = null), + (e.state.elements.popper.style.right = null), + (e.state.elements.popper.style.margin = 0)); + }, + }, + { name: 'computeStyles', options: { adaptive: !1 } }, + ]; + }), + (e.prototype.open = function () { + var t = this; + if (this.el.classList.contains('open')) return !1; + if (this.animationInProcess) return !1; + this.animationInProcess = !0; + var e = ( + window + .getComputedStyle(this.el) + .getPropertyValue('--placement') || '' + ).replace(' ', ''), + n = ( + window + .getComputedStyle(this.el) + .getPropertyValue('--flip') || 'true' + ).replace(' ', ''), + o = ( + window + .getComputedStyle(this.el) + .getPropertyValue('--strategy') || 'fixed' + ).replace(' ', ''), + i = parseInt( + ( + window + .getComputedStyle(this.el) + .getPropertyValue('--offset') || '10' + ).replace(' ', '') + ); + ('static' !== o && + (this.el._popper = (0, l.createPopper)(this.el, this.menu, { + placement: c.POSITIONS[e] || 'bottom-start', + strategy: o, + modifiers: r( + r( + [], + 'fixed' !== o ? this.absoluteStrategyModifiers() : [], + !0 + ), + [ + { name: 'flip', enabled: 'true' === n }, + { name: 'offset', options: { offset: [0, i] } }, + ], + !1 + ), + })), + (this.menu.style.margin = null), + this.menu.classList.remove('hidden'), + this.menu.classList.add('block'), + setTimeout(function () { + (t.el.classList.add('open'), (t.animationInProcess = !1)); + }), + this.fireEvent('open', this.el), + (0, s.dispatch)('open.hs.dropdown', this.el, this.el)); + }), + (e.prototype.close = function (t) { + var e = this; + if ( + (void 0 === t && (t = !0), + this.animationInProcess || + !this.el.classList.contains('open')) + ) + return !1; + if (((this.animationInProcess = !0), t)) { + var n = + this.el.querySelector('[data-hs-dropdown-transition]') || + this.menu; + (0, s.afterTransition)(n, function () { + return e.destroyPopper(); + }); + } else this.destroyPopper(); + ((this.menu.style.margin = null), + this.el.classList.remove('open'), + this.fireEvent('close', this.el), + (0, s.dispatch)('close.hs.dropdown', this.el, this.el)); + }), + (e.prototype.forceClearState = function () { + (this.destroyPopper(), + (this.menu.style.margin = null), + this.el.classList.remove('open')); + }), + (e.getInstance = function (t, e) { + var n = window.$hsDropdownCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element.el) : null; + }), + (e.autoInit = function () { + if ( + (window.$hsDropdownCollection || + (window.$hsDropdownCollection = []), + document + .querySelectorAll( + '.hs-dropdown:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsDropdownCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + }), + window.$hsDropdownCollection) + ) { + (document.addEventListener('keydown', function (t) { + return e.accessibility(t); + }), + window.addEventListener('click', function (t) { + var n = t.target; + e.closeCurrentlyOpened(n); + })); + var t = window.innerWidth; + window.addEventListener('resize', function () { + window.innerWidth !== t && + ((t = innerWidth), e.closeCurrentlyOpened(null, !1)); + }); + } + }), + (e.open = function (t) { + var e = window.$hsDropdownCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + e && + e.element.menu.classList.contains('hidden') && + e.element.open(); + }), + (e.close = function (t) { + var e = window.$hsDropdownCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + e && + !e.element.menu.classList.contains('hidden') && + e.element.close(); + }), + (e.accessibility = function (t) { + this.history = s.menuSearchHistory; + var e = window.$hsDropdownCollection.find(function (t) { + return t.element.el.classList.contains('open'); + }); + if ( + e && + (c.DROPDOWN_ACCESSIBILITY_KEY_SET.includes(t.code) || + (4 === t.code.length && + t.code[t.code.length - 1].match(/^[A-Z]*$/))) && + !t.metaKey && + !e.element.menu.querySelector('input:focus') + ) + switch ((console.log('Key code:', t.code), t.code)) { + case 'Escape': + e.element.menu.querySelector('.hs-select.active') || + (t.preventDefault(), this.onEscape(t)); + break; + case 'Enter': + e.element.menu.querySelector( + '.hs-select button:focus' + ) || + e.element.menu.querySelector( + '.hs-collapse-toggle:focus' + ) || + this.onEnter(t); + break; + case 'ArrowUp': + (t.preventDefault(), this.onArrow()); + break; + case 'ArrowDown': + (t.preventDefault(), this.onArrow(!1)); + break; + case 'Home': + (t.preventDefault(), this.onStartEnd()); + break; + case 'End': + (t.preventDefault(), this.onStartEnd(!1)); + break; + default: + (t.preventDefault(), this.onFirstLetter(t.key)); + } + }), + (e.onEscape = function (t) { + var e = t.target.closest('.hs-dropdown.open'); + if ( + window.$hsDropdownCollection.find(function (t) { + return t.element.el === e; + }) + ) { + var n = window.$hsDropdownCollection.find(function (t) { + return t.element.el === e; + }); + n && (n.element.close(), n.element.toggle.focus()); + } else this.closeCurrentlyOpened(); + }), + (e.onEnter = function (t) { + var e = t.target.parentElement; + if ( + window.$hsDropdownCollection.find(function (t) { + return t.element.el === e; + }) + ) { + t.preventDefault(); + var n = window.$hsDropdownCollection.find(function (t) { + return t.element.el === e; + }); + n && n.element.open(); + } + }), + (e.onArrow = function (t) { + void 0 === t && (t = !0); + var e = window.$hsDropdownCollection.find(function (t) { + return t.element.el.classList.contains('open'); + }); + if (e) { + var n = e.element.menu; + if (!n) return !1; + var o = ( + t + ? Array.from( + n.querySelectorAll( + 'a:not([hidden]), .hs-dropdown > button:not([hidden])' + ) + ).reverse() + : Array.from( + n.querySelectorAll( + 'a:not([hidden]), .hs-dropdown > button:not([hidden])' + ) + ) + ).filter(function (t) { + return !t.classList.contains('disabled'); + }), + i = n.querySelector('a:focus, button:focus'), + r = o.findIndex(function (t) { + return t === i; + }); + (r + 1 < o.length && r++, o[r].focus()); + } + }), + (e.onStartEnd = function (t) { + void 0 === t && (t = !0); + var e = window.$hsDropdownCollection.find(function (t) { + return t.element.el.classList.contains('open'); + }); + if (e) { + var n = e.element.menu; + if (!n) return !1; + var o = ( + t + ? Array.from(n.querySelectorAll('a')) + : Array.from(n.querySelectorAll('a')).reverse() + ).filter(function (t) { + return !t.classList.contains('disabled'); + }); + o.length && o[0].focus(); + } + }), + (e.onFirstLetter = function (t) { + var e = this, + n = window.$hsDropdownCollection.find(function (t) { + return t.element.el.classList.contains('open'); + }); + if (n) { + var o = n.element.menu; + if (!o) return !1; + var i = Array.from(o.querySelectorAll('a')), + r = function () { + return i.findIndex(function (n, o) { + return ( + n.innerText.toLowerCase().charAt(0) === + t.toLowerCase() && e.history.existsInHistory(o) + ); + }); + }, + s = r(); + (-1 === s && (this.history.clearHistory(), (s = r())), + -1 !== s && (i[s].focus(), this.history.addHistory(s))); + } + }), + (e.closeCurrentlyOpened = function (t, e) { + (void 0 === t && (t = null), void 0 === e && (e = !0)); + var n = + t && + t.closest('.hs-dropdown') && + t + .closest('.hs-dropdown') + .parentElement.closest('.hs-dropdown') + ? t + .closest('.hs-dropdown') + .parentElement.closest('.hs-dropdown') + : null, + o = n + ? window.$hsDropdownCollection.filter(function (t) { + return ( + t.element.el.classList.contains('open') && + t.element.menu + .closest('.hs-dropdown') + .parentElement.closest('.hs-dropdown') === n + ); + }) + : window.$hsDropdownCollection.filter(function (t) { + return t.element.el.classList.contains('open'); + }); + (t && + t.closest('.hs-dropdown') && + 'inside' === + (0, s.getClassPropertyAlt)( + t.closest('.hs-dropdown'), + '--auto-close' + ) && + (o = o.filter(function (e) { + return e.element.el !== t.closest('.hs-dropdown'); + })), + o && + o.forEach(function (t) { + if ( + 'false' === t.element.closeMode || + 'outside' === t.element.closeMode + ) + return !1; + t.element.close(e); + })); + }), + (e.on = function (t, e, n) { + var o = window.$hsDropdownCollection.find(function (t) { + return ( + t.element.el === + ('string' == typeof e ? document.querySelector(e) : e) + ); + }); + o && (o.element.events[t] = n); + }), + e + ); + })(a.default); + (window.addEventListener('load', function () { + u.autoInit(); + }), + window.addEventListener('resize', function () { + (window.$hsDropdownCollection || + (window.$hsDropdownCollection = []), + window.$hsDropdownCollection.forEach(function (t) { + return t.element.resizeHandler(); + })); + }), + 'undefined' != typeof window && (window.HSDropdown = u), + (e.default = u)); + }, + 371: function (t, e, n) { + /* + * HSInputNumber + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }); + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = n(969), + s = (function (t) { + function e(e, n) { + var o = t.call(this, e, n) || this; + return ( + (o.input = + o.el.querySelector('[data-hs-input-number-input]') || null), + (o.increment = + o.el.querySelector('[data-hs-input-number-increment]') || + null), + (o.decrement = + o.el.querySelector('[data-hs-input-number-decrement]') || + null), + (o.inputValue = o.input ? parseInt(o.input.value) : 0), + o.init(), + o + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + (this.createCollection(window.$hsInputNumberCollection, this), + this.input && this.increment && this.build()); + }), + (e.prototype.build = function () { + (this.input && this.buildInput(), + this.increment && this.buildIncrement(), + this.decrement && this.buildDecrement(), + this.inputValue <= 0 && + ((this.inputValue = 0), + (this.input.value = '0'), + this.changeValue()), + this.input.hasAttribute('disabled') && + this.disableButtons()); + }), + (e.prototype.buildInput = function () { + var t = this; + this.input.addEventListener('input', function () { + return t.changeValue(); + }); + }), + (e.prototype.buildIncrement = function () { + var t = this; + this.increment.addEventListener('click', function () { + t.changeValue('increment'); + }); + }), + (e.prototype.buildDecrement = function () { + var t = this; + this.decrement.addEventListener('click', function () { + t.changeValue('decrement'); + }); + }), + (e.prototype.changeValue = function (t) { + void 0 === t && (t = 'none'); + var e = { inputValue: this.inputValue }; + switch (t) { + case 'increment': + ((this.inputValue += 1), + (this.input.value = this.inputValue.toString())); + break; + case 'decrement': + ((this.inputValue -= this.inputValue <= 0 ? 0 : 1), + (this.input.value = this.inputValue.toString())); + break; + default: + ((this.inputValue = + parseInt(this.input.value) <= 0 + ? 0 + : parseInt(this.input.value)), + this.inputValue <= 0 && + (this.input.value = this.inputValue.toString())); + } + ((e.inputValue = this.inputValue), + 0 === this.inputValue + ? (this.el.classList.add('disabled'), + this.decrement && this.disableButtons('decrement')) + : (this.el.classList.remove('disabled'), + this.decrement && this.enableButtons('decrement')), + this.fireEvent('change', e), + (0, r.dispatch)('change.hs.inputNumber', this.el, e)); + }), + (e.prototype.disableButtons = function (t) { + (void 0 === t && (t = 'all'), + 'all' === t + ? (('BUTTON' !== this.increment.tagName && + 'INPUT' !== this.increment.tagName) || + this.increment.setAttribute('disabled', 'disabled'), + ('BUTTON' !== this.decrement.tagName && + 'INPUT' !== this.decrement.tagName) || + this.decrement.setAttribute('disabled', 'disabled')) + : 'increment' === t + ? ('BUTTON' !== this.increment.tagName && + 'INPUT' !== this.increment.tagName) || + this.increment.setAttribute('disabled', 'disabled') + : 'decrement' === t && + (('BUTTON' !== this.decrement.tagName && + 'INPUT' !== this.decrement.tagName) || + this.decrement.setAttribute( + 'disabled', + 'disabled' + ))); + }), + (e.prototype.enableButtons = function (t) { + (void 0 === t && (t = 'all'), + 'all' === t + ? (('BUTTON' !== this.increment.tagName && + 'INPUT' !== this.increment.tagName) || + this.increment.removeAttribute('disabled'), + ('BUTTON' !== this.decrement.tagName && + 'INPUT' !== this.decrement.tagName) || + this.decrement.removeAttribute('disabled')) + : 'increment' === t + ? ('BUTTON' !== this.increment.tagName && + 'INPUT' !== this.increment.tagName) || + this.increment.removeAttribute('disabled') + : 'decrement' === t && + (('BUTTON' !== this.decrement.tagName && + 'INPUT' !== this.decrement.tagName) || + this.decrement.removeAttribute('disabled'))); + }), + (e.getInstance = function (t, e) { + var n = window.$hsInputNumberCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element) : null; + }), + (e.autoInit = function () { + (window.$hsInputNumberCollection || + (window.$hsInputNumberCollection = []), + document + .querySelectorAll( + '[data-hs-input-number]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsInputNumberCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + })); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + s.autoInit(); + }), + 'undefined' != typeof window && (window.HSInputNumber = s), + (e.default = s)); + }, + 770: function (t, e, n) { + /* + * HSOverlay + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var s = n(969), + l = (function (t) { + function e(e, n, o) { + var i, + l, + a = t.call(this, e, n, o) || this, + c = e.getAttribute('data-hs-overlay-options'), + u = c ? JSON.parse(c) : {}, + d = r(r({}, u), n); + return ( + (a.hiddenClass = + (null == d ? void 0 : d.hiddenClass) || 'hidden'), + (a.isClosePrev = + null === (i = null == d ? void 0 : d.isClosePrev) || + void 0 === i || + i), + (a.backdropClasses = + null !== (l = null == d ? void 0 : d.backdropClasses) && + void 0 !== l + ? l + : 'transition duration fixed inset-0 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 hs-overlay-backdrop'), + (a.openNextOverlay = !1), + (a.autoHide = null), + (a.overlayId = a.el.getAttribute('data-hs-overlay')), + (a.overlay = document.querySelector(a.overlayId)), + a.overlay && + ((a.isCloseWhenClickInside = + (0, s.getClassProperty)( + a.overlay, + '--close-when-click-inside', + 'false' + ) || 'false'), + (a.isTabAccessibilityLimited = + (0, s.getClassProperty)( + a.overlay, + '--tab-accessibility-limited', + 'true' + ) || 'true'), + (a.hasAutofocus = + (0, s.getClassProperty)( + a.overlay, + '--has-autofocus', + 'true' + ) || 'true'), + (a.hasAbilityToCloseOnBackdropClick = + a.overlay.getAttribute('data-hs-overlay-keyboard') || + 'true')), + a.overlay && a.init(), + a + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t = this; + (this.createCollection(window.$hsOverlayCollection, this), + this.el.addEventListener('click', function () { + t.overlay.classList.contains(t.hiddenClass) + ? t.open() + : t.close(); + }), + this.overlay.addEventListener('click', function (e) { + e.target.id && + '#'.concat(e.target.id) === t.overlayId && + 'true' === t.isCloseWhenClickInside && + 'true' === t.hasAbilityToCloseOnBackdropClick && + t.close(); + })); + }), + (e.prototype.hideAuto = function () { + var t = this, + e = parseInt( + (0, s.getClassProperty)(this.overlay, '--auto-hide', '0') + ); + e && + (this.autoHide = setTimeout(function () { + t.close(); + }, e)); + }), + (e.prototype.checkTimer = function () { + this.autoHide && + (clearTimeout(this.autoHide), (this.autoHide = null)); + }), + (e.prototype.buildBackdrop = function () { + var t = this, + e = this.overlay.classList.value.split(' '), + n = parseInt( + window + .getComputedStyle(this.overlay) + .getPropertyValue('z-index') + ), + o = + this.overlay.getAttribute( + 'data-hs-overlay-backdrop-container' + ) || !1, + i = document.createElement('div'), + r = this.backdropClasses, + l = + 'static' !== + (0, s.getClassProperty)( + this.overlay, + '--overlay-backdrop', + 'true' + ), + a = + 'false' === + (0, s.getClassProperty)( + this.overlay, + '--overlay-backdrop', + 'true' + ); + ((i.id = ''.concat(this.overlay.id, '-backdrop')), + 'style' in i && (i.style.zIndex = ''.concat(n - 1))); + for (var c = 0, u = e; c < u.length; c++) { + var d = u[c]; + (d.startsWith('hs-overlay-backdrop-open:') || + d.includes(':hs-overlay-backdrop-open:')) && + (r += ' '.concat(d)); + } + a || + (o && + ((i = document + .querySelector(o) + .cloneNode(!0)).classList.remove('hidden'), + (r = ''.concat(i.classList.toString())), + (i.classList.value = '')), + l && + i.addEventListener( + 'click', + function () { + return t.close(); + }, + !0 + ), + i.setAttribute('data-hs-overlay-backdrop-template', ''), + document.body.appendChild(i), + setTimeout(function () { + i.classList.value = r; + })); + }), + (e.prototype.destroyBackdrop = function () { + var t = document.querySelector( + '#'.concat(this.overlay.id, '-backdrop') + ); + t && + (this.openNextOverlay && + (t.style.transitionDuration = ''.concat( + 1.8 * + parseFloat( + window + .getComputedStyle(t) + .transitionDuration.replace(/[^\d.-]/g, '') + ), + 's' + )), + t.classList.add('opacity-0'), + (0, s.afterTransition)(t, function () { + t.remove(); + })); + }), + (e.prototype.focusElement = function () { + var t = this.overlay.querySelector('[autofocus]'); + if (!t) return !1; + t.focus(); + }), + (e.prototype.open = function () { + var t = this; + if (!this.overlay) return !1; + var e = window.$hsOverlayCollection.find(function (t) { + return ( + t.element.overlay === + document.querySelector('.hs-overlay.open') + ); + }), + n = + 'true' !== + (0, s.getClassProperty)( + this.overlay, + '--body-scroll', + 'false' + ); + if (this.isClosePrev && e) + return ( + (this.openNextOverlay = !0), + e.element.close().then(function () { + (t.open(), (t.openNextOverlay = !1)); + }) + ); + (n && (document.body.style.overflow = 'hidden'), + this.buildBackdrop(), + this.checkTimer(), + this.hideAuto(), + this.overlay.classList.remove(this.hiddenClass), + this.overlay.setAttribute('aria-overlay', 'true'), + this.overlay.setAttribute('tabindex', '-1'), + setTimeout(function () { + if (t.overlay.classList.contains(t.hiddenClass)) + return !1; + (t.overlay.classList.add('open'), + t.fireEvent('open', t.el), + (0, s.dispatch)('open.hs.overlay', t.el, t.el), + 'true' === t.hasAutofocus && t.focusElement()); + }, 50)); + }), + (e.prototype.close = function () { + var t = this; + return new Promise(function (e) { + if (!t.overlay) return !1; + (t.overlay.classList.remove('open'), + t.overlay.removeAttribute('aria-overlay'), + t.overlay.removeAttribute('tabindex'), + (0, s.afterTransition)(t.overlay, function () { + if (t.overlay.classList.contains('open')) return !1; + (t.overlay.classList.add(t.hiddenClass), + t.destroyBackdrop(), + t.fireEvent('close', t.el), + (0, s.dispatch)('close.hs.overlay', t.el, t.el), + (document.body.style.overflow = ''), + e(t.overlay)); + })); + }); + }), + (e.getInstance = function (t, e) { + var n = window.$hsOverlayCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t + ? document.querySelector(t) + : t) || + e.element.overlay === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element.el) : null; + }), + (e.autoInit = function () { + (window.$hsOverlayCollection || + (window.$hsOverlayCollection = []), + document + .querySelectorAll( + '[data-hs-overlay]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsOverlayCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + }), + window.$hsOverlayCollection && + document.addEventListener('keydown', function (t) { + return e.accessibility(t); + })); + }), + (e.open = function (t) { + var e = window.$hsOverlayCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t + ? document.querySelector(t) + : t) || + e.element.overlay === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + e && + e.element.overlay.classList.contains( + e.element.hiddenClass + ) && + e.element.open(); + }), + (e.close = function (t) { + var e = window.$hsOverlayCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t + ? document.querySelector(t) + : t) || + e.element.overlay === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + e && + !e.element.overlay.classList.contains( + e.element.hiddenClass + ) && + e.element.close(); + }), + (e.accessibility = function (t) { + var e, + n, + o = window.$hsOverlayCollection.filter(function (t) { + return t.element.overlay.classList.contains('open'); + }), + i = o[o.length - 1], + r = + null === + (n = + null === (e = null == i ? void 0 : i.element) || + void 0 === e + ? void 0 + : e.overlay) || void 0 === n + ? void 0 + : n.querySelectorAll( + 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])' + ), + l = []; + (null == r ? void 0 : r.length) && + r.forEach(function (t) { + (0, s.isParentOrElementHidden)(t) || l.push(t); + }); + var a = i && !t.metaKey; + if ( + a && + 'false' === i.element.isTabAccessibilityLimited && + 'Tab' === t.code + ) + return !1; + (a && + l.length && + 'Tab' === t.code && + (t.preventDefault(), this.onTab(i, l)), + a && + 'Escape' === t.code && + (t.preventDefault(), this.onEscape(i))); + }), + (e.onEscape = function (t) { + t && t.element.close(); + }), + (e.onTab = function (t, e) { + if (!e.length) return !1; + var n = t.element.overlay.querySelector(':focus'), + o = Array.from(e).indexOf(n); + o > -1 ? e[(o + 1) % e.length].focus() : e[0].focus(); + }), + (e.on = function (t, e, n) { + var o = window.$hsOverlayCollection.find(function (t) { + return ( + t.element.el === + ('string' == typeof e + ? document.querySelector(e) + : e) || + t.element.overlay === + ('string' == typeof e ? document.querySelector(e) : e) + ); + }); + o && (o.element.events[t] = n); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + l.autoInit(); + }), + 'undefined' != typeof window && (window.HSOverlay = l), + (e.default = l)); + }, + 659: function (t, e, n) { + /* + * HSPinInput + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var s = n(969), + l = (function (t) { + function e(e, n) { + var o = t.call(this, e, n) || this, + i = e.getAttribute('data-hs-pin-input'), + s = i ? JSON.parse(i) : {}, + l = r(r({}, s), n); + return ( + (o.items = o.el.querySelectorAll('[data-hs-pin-input-item]')), + (o.currentItem = null), + (o.currentValue = new Array(o.items.length).fill('')), + (o.placeholders = []), + (o.availableCharsRE = new RegExp( + (null == l ? void 0 : l.availableCharsRE) || + '^[a-zA-Z0-9]+$' + )), + o.init(), + o + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + (this.createCollection(window.$hsPinInputCollection, this), + this.items.length && this.build()); + }), + (e.prototype.build = function () { + this.buildInputItems(); + }), + (e.prototype.buildInputItems = function () { + var t = this; + this.items.forEach(function (e, n) { + (t.placeholders.push(e.getAttribute('placeholder') || ''), + e.hasAttribute('autofocus') && t.onFocusIn(n), + e.addEventListener('input', function (e) { + return t.onInput(e, n); + }), + e.addEventListener('paste', function (e) { + return t.onPaste(e); + }), + e.addEventListener('keydown', function (e) { + return t.onKeydown(e, n); + }), + e.addEventListener('focusin', function () { + return t.onFocusIn(n); + }), + e.addEventListener('focusout', function () { + return t.onFocusOut(n); + })); + }); + }), + (e.prototype.checkIfNumber = function (t) { + return t.match(this.availableCharsRE); + }), + (e.prototype.autoFillAll = function (t) { + var e = this; + Array.from(t).forEach(function (t, n) { + if (!(null == e ? void 0 : e.items[n])) return !1; + ((e.items[n].value = t), + e.items[n].dispatchEvent( + new Event('input', { bubbles: !0 }) + )); + }); + }), + (e.prototype.setCurrentValue = function () { + this.currentValue = Array.from(this.items).map(function (t) { + return t.value; + }); + }), + (e.prototype.toggleCompleted = function () { + this.currentValue.includes('') + ? this.el.classList.remove('active') + : this.el.classList.add('active'); + }), + (e.prototype.onInput = function (t, e) { + var n = t.target.value; + if ( + ((this.currentItem = t.target), + (this.currentItem.value = ''), + (this.currentItem.value = n[n.length - 1]), + !this.checkIfNumber(this.currentItem.value)) + ) + return ( + (this.currentItem.value = this.currentValue[e] || ''), + !1 + ); + if ((this.setCurrentValue(), this.currentItem.value)) { + if ( + (e < this.items.length - 1 && this.items[e + 1].focus(), + !this.currentValue.includes('')) + ) { + var o = { currentValue: this.currentValue }; + (this.fireEvent('completed', o), + (0, s.dispatch)('completed.hs.pinInput', this.el, o)); + } + this.toggleCompleted(); + } else e > 0 && this.items[e - 1].focus(); + }), + (e.prototype.onKeydown = function (t, e) { + ('Backspace' === t.key && + e > 0 && + ('' === this.items[e].value + ? ((this.items[e - 1].value = ''), + this.items[e - 1].focus()) + : (this.items[e].value = '')), + this.setCurrentValue(), + this.toggleCompleted()); + }), + (e.prototype.onFocusIn = function (t) { + this.items[t].setAttribute('placeholder', ''); + }), + (e.prototype.onFocusOut = function (t) { + this.items[t].setAttribute( + 'placeholder', + this.placeholders[t] + ); + }), + (e.prototype.onPaste = function (t) { + var e = this; + (t.preventDefault(), + this.items.forEach(function (n) { + document.activeElement === n && + e.autoFillAll(t.clipboardData.getData('text')); + })); + }), + (e.getInstance = function (t, e) { + var n = window.$hsPinInputCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element) : null; + }), + (e.autoInit = function () { + (window.$hsPinInputCollection || + (window.$hsPinInputCollection = []), + document + .querySelectorAll( + '[data-hs-pin-input]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsPinInputCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + })); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + l.autoInit(); + }), + 'undefined' != typeof window && (window.HSPinInput = l), + (e.default = l)); + }, + 139: function (t, e, n) { + /* + * HSRemoveElement + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var s = n(969), + l = (function (t) { + function e(e, n) { + var o = t.call(this, e, n) || this, + i = e.getAttribute('data-hs-remove-element-options'), + s = i ? JSON.parse(i) : {}, + l = r(r({}, s), n); + return ( + (o.removeTargetId = o.el.getAttribute( + 'data-hs-remove-element' + )), + (o.removeTarget = document.querySelector(o.removeTargetId)), + (o.removeTargetAnimationClass = + (null == l ? void 0 : l.removeTargetAnimationClass) || + 'hs-removing'), + o.removeTarget && o.init(), + o + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t = this; + (this.createCollection( + window.$hsRemoveElementCollection, + this + ), + this.el.addEventListener('click', function () { + return t.remove(); + })); + }), + (e.prototype.remove = function () { + var t = this; + if (!this.removeTarget) return !1; + (this.removeTarget.classList.add( + this.removeTargetAnimationClass + ), + (0, s.afterTransition)(this.removeTarget, function () { + t.removeTarget.remove(); + })); + }), + (e.autoInit = function () { + (window.$hsRemoveElementCollection || + (window.$hsRemoveElementCollection = []), + document + .querySelectorAll( + '[data-hs-remove-element]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsRemoveElementCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + })); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + l.autoInit(); + }), + 'undefined' != typeof window && (window.HSRemoveElement = l), + (e.default = l)); + }, + 591: function (t, e, n) { + /* + * HSScrollspy + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }); + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = n(969), + s = (function (t) { + function e(e, n) { + void 0 === n && (n = {}); + var o = t.call(this, e, n) || this; + return ( + (o.activeSection = null), + (o.contentId = o.el.getAttribute('data-hs-scrollspy')), + (o.content = document.querySelector(o.contentId)), + (o.links = o.el.querySelectorAll('[href]')), + (o.sections = []), + (o.scrollableId = o.el.getAttribute( + 'data-hs-scrollspy-scrollable-parent' + )), + (o.scrollable = o.scrollableId + ? document.querySelector(o.scrollableId) + : document), + o.init(), + o + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t = this; + (this.createCollection(window.$hsScrollspyCollection, this), + this.links.forEach(function (e) { + t.sections.push( + t.scrollable.querySelector(e.getAttribute('href')) + ); + }), + Array.from(this.sections).forEach(function (e) { + if (!e.getAttribute('id')) return !1; + t.scrollable.addEventListener('scroll', function (n) { + return t.update(n, e); + }); + }), + this.links.forEach(function (e) { + e.addEventListener('click', function (n) { + if ( + (n.preventDefault(), + 'javascript:;' === e.getAttribute('href')) + ) + return !1; + t.scrollTo(e); + }); + })); + }), + (e.prototype.update = function (t, e) { + var n = parseInt( + (0, r.getClassProperty)( + this.el, + '--scrollspy-offset', + '0' + ) + ), + o = + parseInt( + (0, r.getClassProperty)(e, '--scrollspy-offset') + ) || n, + i = + t.target === document + ? 0 + : parseInt( + String(t.target.getBoundingClientRect().top) + ), + s = parseInt(String(e.getBoundingClientRect().top)) - o - i, + l = e.offsetHeight; + if (s <= 0 && s + l > 0) { + if (this.activeSection === e) return !1; + this.links.forEach(function (t) { + t.classList.remove('active'); + }); + var a = this.el.querySelector( + '[href="#'.concat(e.getAttribute('id'), '"]') + ); + if (a) { + a.classList.add('active'); + var c = a.closest('[data-hs-scrollspy-group]'); + if (c) { + var u = c.querySelector('[href]'); + u && u.classList.add('active'); + } + } + this.activeSection = e; + } + }), + (e.prototype.scrollTo = function (t) { + var e = t.getAttribute('href'), + n = document.querySelector(e), + o = parseInt( + (0, r.getClassProperty)( + this.el, + '--scrollspy-offset', + '0' + ) + ), + i = + parseInt( + (0, r.getClassProperty)(n, '--scrollspy-offset') + ) || o, + s = + this.scrollable === document + ? 0 + : this.scrollable.offsetTop, + l = n.offsetTop - i - s, + a = this.scrollable === document ? window : this.scrollable, + c = function () { + (window.history.replaceState( + null, + null, + t.getAttribute('href') + ), + 'scrollTo' in a && + a.scrollTo({ top: l, left: 0, behavior: 'smooth' })); + }, + u = this.fireEvent('beforeScroll', this.el); + ((0, r.dispatch)( + 'beforeScroll.hs.scrollspy', + this.el, + this.el + ), + u instanceof Promise + ? u.then(function () { + return c(); + }) + : c()); + }), + (e.getInstance = function (t, e) { + void 0 === e && (e = !1); + var n = window.$hsScrollspyCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element.el) : null; + }), + (e.autoInit = function () { + (window.$hsScrollspyCollection || + (window.$hsScrollspyCollection = []), + document + .querySelectorAll( + '[data-hs-scrollspy]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsScrollspyCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + })); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + s.autoInit(); + }), + 'undefined' != typeof window && (window.HSScrollspy = s), + (e.default = s)); + }, + 961: function (t, e, n) { + /* + * HSTogglePassword + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }, + s = + (this && this.__awaiter) || + function (t, e, n, o) { + return new (n || (n = Promise))(function (i, r) { + function s(t) { + try { + a(o.next(t)); + } catch (t) { + r(t); + } + } + function l(t) { + try { + a(o.throw(t)); + } catch (t) { + r(t); + } + } + function a(t) { + var e; + t.done + ? i(t.value) + : ((e = t.value), + e instanceof n + ? e + : new n(function (t) { + t(e); + })).then(s, l); + } + a((o = o.apply(t, e || [])).next()); + }); + }, + l = + (this && this.__generator) || + function (t, e) { + var n, + o, + i, + r, + s = { + label: 0, + sent: function () { + if (1 & i[0]) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }; + return ( + (r = { next: l(0), throw: l(1), return: l(2) }), + 'function' == typeof Symbol && + (r[Symbol.iterator] = function () { + return this; + }), + r + ); + function l(l) { + return function (a) { + return (function (l) { + if (n) + throw new TypeError('Generator is already executing.'); + for (; r && ((r = 0), l[0] && (s = 0)), s; ) + try { + if ( + ((n = 1), + o && + (i = + 2 & l[0] + ? o.return + : l[0] + ? o.throw || + ((i = o.return) && i.call(o), 0) + : o.next) && + !(i = i.call(o, l[1])).done) + ) + return i; + switch ( + ((o = 0), i && (l = [2 & l[0], i.value]), l[0]) + ) { + case 0: + case 1: + i = l; + break; + case 4: + return (s.label++, { value: l[1], done: !1 }); + case 5: + (s.label++, (o = l[1]), (l = [0])); + continue; + case 7: + ((l = s.ops.pop()), s.trys.pop()); + continue; + default: + if ( + !((i = s.trys), + (i = i.length > 0 && i[i.length - 1]) || + (6 !== l[0] && 2 !== l[0])) + ) { + s = 0; + continue; + } + if ( + 3 === l[0] && + (!i || (l[1] > i[0] && l[1] < i[3])) + ) { + s.label = l[1]; + break; + } + if (6 === l[0] && s.label < i[1]) { + ((s.label = i[1]), (i = l)); + break; + } + if (i && s.label < i[2]) { + ((s.label = i[2]), s.ops.push(l)); + break; + } + (i[2] && s.ops.pop(), s.trys.pop()); + continue; + } + l = e.call(t, s); + } catch (t) { + ((l = [6, t]), (o = 0)); + } finally { + n = i = 0; + } + if (5 & l[0]) throw l[1]; + return { value: l[0] ? l[1] : void 0, done: !0 }; + })([l, a]); + }; + } + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var a = n(969), + c = (function (t) { + function e(e, n) { + var o = t.call(this, e, n) || this, + i = e.getAttribute('data-hs-search-by-json'), + s = i ? JSON.parse(i) : {}, + l = r(r({}, s), n); + return ( + (o.jsonUrl = l.jsonUrl), + (o.minChars = l.minChars || 3), + (o.dropdownTemplate = l.dropdownTemplate || '
'), + (o.dropdownClasses = + l.dropdownClasses || + 'absolute top-full z-[1] w-full bg-white border border-gray-200 rounded-md hidden mt-2'), + (o.dropdownItemTemplate = + l.dropdownItemTemplate || '
'), + (o.dropdownItemTemplatesByType = + l.dropdownItemTemplatesByType || null), + (o.dropdownItemClasses = + l.dropdownItemClasses || + 'py-2 px-4 w-full cursor-pointer text-sm hover:bg-gray-300 hover:text-black'), + (o.highlightedTextTagName = l.highlightedTextTagName || 'u'), + (o.highlightedTextClasses = + l.highlightedTextClasses || 'bg-green-200'), + o.jsonUrl && + o.fetchData().then(function () { + return o.init(); + }), + o + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t = this; + (this.createCollection( + window.$hsSearchByJsonCollection, + this + ), + this.buildDropdown(), + this.el.addEventListener( + 'input', + (0, a.debounce)(function (e) { + ((t.val = e.target.value), + t.val.length > t.minChars + ? t.searchData(t.val) + : (t.result = []), + t.result.length + ? t.dropdown.classList.remove('hidden') + : t.dropdown.classList.add('hidden'), + t.buildItems(), + console.log('result:', t.result)); + }) + )); + }), + (e.prototype.fetchData = function () { + return s(this, void 0, void 0, function () { + var t = this; + return l(this, function (e) { + switch (e.label) { + case 0: + return [ + 4, + fetch(this.jsonUrl) + .then(function (t) { + return t.json(); + }) + .then(function (e) { + return (t.json = e); + }), + ]; + case 1: + return (e.sent(), [2]); + } + }); + }); + }), + (e.prototype.searchData = function (t) { + this.result = this.json.filter(function (e) { + var n = t.toLowerCase(), + o = e.title.toLowerCase(), + i = e.description.toLowerCase(); + return o.includes(n) || i.includes(n); + }); + }), + (e.prototype.buildDropdown = function () { + ((this.dropdown = (0, a.htmlToElement)( + this.dropdownTemplate + )), + this.dropdownClasses && + (0, a.classToClassList)( + this.dropdownClasses, + this.dropdown + ), + this.el.after(this.dropdown)); + }), + (e.prototype.buildItems = function () { + var t = this; + ((this.dropdown.innerHTML = ''), + this.result.forEach(function (e) { + var n = (0, a.htmlToElement)( + '' + ) + ); + (n.append(t.itemTemplate(e)), t.dropdown.append(n)); + })); + }), + (e.prototype.itemTemplate = function (t) { + var e = new RegExp(this.val, 'gi'), + n = t.title.replace( + e, + '<' + .concat( + this.highlightedTextTagName, + ' class="inline-block ' + ) + .concat(this.highlightedTextClasses, '">') + .concat(this.val, '') + ), + o = t.description.replace( + e, + '<' + .concat( + this.highlightedTextTagName, + ' class="inline-block ' + ) + .concat(this.highlightedTextClasses, '">') + .concat(this.val, '') + ), + i = this.dropdownItemTemplatesByType + ? this.dropdownItemTemplatesByType.find(function (e) { + return e.type === t.type; + }) + : null, + r = i + ? (0, a.htmlToElement)(i.markup) + : (0, a.htmlToElement)(this.dropdownItemTemplate); + this.dropdownItemClasses && + (0, a.classToClassList)(this.dropdownItemClasses, r); + var s = r.querySelector('[data-title]'); + s + ? s.append( + (0, a.htmlToElement)(''.concat(n, '')) + ) + : r.append( + (0, a.htmlToElement)(''.concat(n, '')) + ); + var l = r.querySelector('[data-description]'); + if (l) + l.append( + (0, a.htmlToElement)(''.concat(o, '')) + ); + else if (!i) { + var c = (0, a.htmlToElement)('
'); + (r.append(c), + r.append( + (0, a.htmlToElement)(''.concat(o, '')) + )); + } + return r; + }), + (e.getInstance = function (t) { + var e = window.$hsSearchByJsonCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return e ? e.element : null; + }), + (e.autoInit = function () { + (window.$hsSearchByJsonCollection || + (window.$hsSearchByJsonCollection = []), + document + .querySelectorAll( + '[data-hs-search-by-json]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsSearchByJsonCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + })); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + c.autoInit(); + }), + 'undefined' != typeof window && (window.HSSearchByJson = c), + (e.default = c)); + }, + 233: function (t, e, n) { + /* + * HSSelect + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }, + s = + (this && this.__spreadArray) || + function (t, e, n) { + if (n || 2 === arguments.length) + for (var o, i = 0, r = e.length; i < r; i++) + (!o && i in e) || + (o || (o = Array.prototype.slice.call(e, 0, i)), + (o[i] = e[i])); + return t.concat(o || Array.prototype.slice.call(e)); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var l = n(969), + a = n(737), + c = n(190), + u = (function (t) { + function e(e, n) { + var o, + i = t.call(this, e, n) || this, + s = e.getAttribute('data-hs-select'), + l = s ? JSON.parse(s) : {}, + a = r(r({}, l), n); + return ( + (i.value = + (null == a ? void 0 : a.value) || i.el.value || null), + (i.placeholder = + (null == a ? void 0 : a.placeholder) || 'Select...'), + (i.hasSearch = (null == a ? void 0 : a.hasSearch) || !1), + (i.mode = (null == a ? void 0 : a.mode) || 'default'), + (i.viewport = + void 0 !== (null == a ? void 0 : a.viewport) + ? document.querySelector(null == a ? void 0 : a.viewport) + : null), + (i.isOpened = Boolean(null == a ? void 0 : a.isOpened) || !1), + (i.isMultiple = i.el.hasAttribute('multiple') || !1), + (i.isDisabled = i.el.hasAttribute('disabled') || !1), + (i.toggleTag = (null == a ? void 0 : a.toggleTag) || null), + (i.toggleClasses = + (null == a ? void 0 : a.toggleClasses) || null), + (i.toggleCountText = + (null == a ? void 0 : a.toggleCountText) || null), + (i.toggleCountTextMinItems = + (null == a ? void 0 : a.toggleCountTextMinItems) || 1), + (i.tagsClasses = + (null == a ? void 0 : a.tagsClasses) || null), + (i.tagsItemTemplate = + (null == a ? void 0 : a.tagsItemTemplate) || null), + (i.tagsItemClasses = + (null == a ? void 0 : a.tagsItemClasses) || null), + (i.tagsInputClasses = + (null == a ? void 0 : a.tagsInputClasses) || null), + (i.dropdownTag = + (null == a ? void 0 : a.dropdownTag) || null), + (i.dropdownClasses = + (null == a ? void 0 : a.dropdownClasses) || null), + (i.dropdownDirectionClasses = + (null == a ? void 0 : a.dropdownDirectionClasses) || null), + (i.dropdownSpace = + (null == a ? void 0 : a.dropdownSpace) || 10), + (i.searchWrapperTemplate = + (null == a ? void 0 : a.searchWrapperTemplate) || null), + (i.searchWrapperClasses = + (null == a ? void 0 : a.searchWrapperClasses) || + 'bg-white p-2 sticky top-0'), + (i.searchClasses = + (null == a ? void 0 : a.searchClasses) || + 'block w-[calc(100%-2rem)] text-sm border-gray-200 rounded-md focus:border-blue-500 focus:ring-blue-500 dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400 py-2 px-3 my-2 mx-4'), + (i.searchPlaceholder = + (null == a ? void 0 : a.searchPlaceholder) || 'Search...'), + (i.searchNoResultText = + (null == a ? void 0 : a.searchNoResultText) || + 'No options found...'), + (i.searchNoResultClasses = + (null == a ? void 0 : a.searchNoResultClasses) || + 'px-4 text-sm'), + (i.optionTemplate = + (null == a ? void 0 : a.optionTemplate) || null), + (i.optionTag = (null == a ? void 0 : a.optionTag) || null), + (i.optionClasses = + (null == a ? void 0 : a.optionClasses) || null), + (i.descriptionClasses = + (null == a ? void 0 : a.descriptionClasses) || null), + (i.iconClasses = + (null == a ? void 0 : a.iconClasses) || null), + (i.isAddTagOnEnter = + null === (o = null == a ? void 0 : a.isAddTagOnEnter) || + void 0 === o || + o), + (i.animationInProcess = !1), + (i.selectOptions = []), + i.init(), + i + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + (this.createCollection(window.$hsSelectCollection, this), + this.build()); + }), + (e.prototype.build = function () { + var t = this; + if ( + ((this.el.style.display = 'none'), + this.el.children && + Array.from(this.el.children) + .filter(function (t) { + return t.value && '' !== t.value; + }) + .forEach(function (e) { + var n = e.getAttribute('data-hs-select-option'); + t.selectOptions = s( + s([], t.selectOptions, !0), + [ + { + title: e.textContent, + val: e.value, + options: + 'undefined' !== n ? JSON.parse(n) : null, + }, + ], + !1 + ); + }), + this.isMultiple) + ) { + var e = Array.from(this.el.options).filter(function (t) { + return t.selected; + }); + if (e) { + var n = []; + (e.forEach(function (t) { + n.push(t.value); + }), + (this.value = n)); + } + } + (this.buildWrapper(), + 'tags' === this.mode + ? this.buildTags() + : this.buildToggle(), + this.buildDropdown()); + }), + (e.prototype.buildWrapper = function () { + ((this.wrapper = document.createElement('div')), + this.wrapper.classList.add('hs-select', 'relative'), + this.el.before(this.wrapper), + this.wrapper.append(this.el)); + }), + (e.prototype.buildToggle = function () { + var t, + e, + n, + o = this; + ((this.toggleTextWrapper = document.createElement('span')), + this.toggleTextWrapper.classList.add('truncate'), + (this.toggle = (0, l.htmlToElement)( + this.toggleTag || '
' + )), + (e = this.toggle.querySelector('[data-icon]')), + (n = this.toggle.querySelector('[data-title]')), + !this.isMultiple && e && this.setToggleIcon(), + !this.isMultiple && n && this.setToggleTitle(), + this.isMultiple + ? (this.toggleTextWrapper.innerHTML = this.value.length + ? this.stringFromValue() + : this.placeholder) + : (this.toggleTextWrapper.innerHTML = + (null === (t = this.getItemByValue(this.value)) || + void 0 === t + ? void 0 + : t.title) || this.placeholder), + n || this.toggle.append(this.toggleTextWrapper), + this.toggleClasses && + (0, l.classToClassList)(this.toggleClasses, this.toggle), + this.isDisabled && this.toggle.classList.add('disabled'), + this.wrapper && this.wrapper.append(this.toggle), + this.toggle.addEventListener('click', function () { + if (o.isDisabled) return !1; + o.isOpened ? o.close() : o.open(); + })); + }), + (e.prototype.setToggleIcon = function () { + var t, + e, + n = this.toggle.querySelector('[data-icon]'); + if (((n.innerHTML = ''), n)) { + var o = (0, l.htmlToElement)( + (null === + (e = + null === (t = this.getItemByValue(this.value)) || + void 0 === t + ? void 0 + : t.options) || void 0 === e + ? void 0 + : e.icon) || '' + ); + (n.append(o), + o + ? n.classList.remove('hidden') + : n.classList.add('hidden')); + } + }), + (e.prototype.setToggleTitle = function () { + var t, + e = this.toggle.querySelector('[data-title]'); + if ((e.classList.add('truncate'), (e.innerHTML = ''), e)) { + var n = + (null === (t = this.getItemByValue(this.value)) || + void 0 === t + ? void 0 + : t.title) || this.placeholder; + ((e.innerHTML = n), this.toggle.append(e)); + } + }), + (e.prototype.buildTags = function () { + ((this.tags = document.createElement('div')), + this.tags.classList.add('flex'), + this.tagsClasses && + (0, l.classToClassList)(this.tagsClasses, this.tags), + this.buildTagsInput(), + this.buildTagsItems(), + this.setTagsItems(), + this.wrapper && this.wrapper.append(this.tags)); + }), + (e.prototype.buildTagsItems = function () { + ((this.tagsItems = document.createElement('div')), + this.tagsItems.classList.add( + 'flex', + 'flex-wrap', + 'flex-0', + 'items-center' + ), + this.setTagsItems(), + this.tags.append(this.tagsItems)); + }), + (e.prototype.buildTagsItem = function (t) { + var e, + n, + o, + i, + r, + s, + a, + c = this, + u = this.getItemByValue(t), + d = document.createElement('div'); + if ( + (this.tagsItemClasses && + (0, l.classToClassList)(this.tagsItemClasses, d), + this.tagsItemTemplate && + ((i = (0, l.htmlToElement)(this.tagsItemTemplate)), + d.append(i)), + null === (e = null == u ? void 0 : u.options) || + void 0 === e + ? void 0 + : e.icon) + ) { + var p = (0, l.htmlToElement)( + null === (n = null == u ? void 0 : u.options) || + void 0 === n + ? void 0 + : n.icon + ); + ((a = i + ? i.querySelector('[data-icon]') + : document.createElement('span')).append(p), + i || d.append(a)); + } + (i && + i.querySelector('[data-icon]') && + !(null === (o = null == u ? void 0 : u.options) || + void 0 === o + ? void 0 + : o.icon) && + i.querySelector('[data-icon]').classList.add('hidden'), + ((r = i + ? i.querySelector('[data-title]') + : document.createElement('span')).textContent = + u.title || ''), + i || d.append(r), + i + ? (s = i.querySelector('[data-remove]')) + : (((s = document.createElement('span')).textContent = + 'X'), + d.append(s)), + s.addEventListener('click', function () { + ((c.value = c.value.filter(function (e) { + return e !== t; + })), + c.unselectMultipleItems(), + c.setTagsItems(), + c.selectMultipleItems()); + }), + this.tagsItems.append(d)); + }), + (e.prototype.getItemByValue = function (t) { + return this.selectOptions.find(function (e) { + return e.val === t; + }); + }), + (e.prototype.setTagsItems = function () { + var t = this; + ((this.tagsItems.innerHTML = ''), + this.value && + (this.value.forEach(function (e) { + t.buildTagsItem(e); + }), + (this.tagsInput.readOnly = !0)), + this.value.length || + ((this.tagsInput.placeholder = this.placeholder), + (this.tagsInput.readOnly = !1))); + }), + (e.prototype.buildTagsInput = function () { + var t = this; + ((this.tagsInput = document.createElement('input')), + (this.tagsInput.placeholder = this.placeholder), + this.tagsInputClasses && + (0, l.classToClassList)( + this.tagsInputClasses, + this.tagsInput + ), + this.tagsInput.addEventListener('focus', function () { + return t.open(); + }), + this.tagsInput.addEventListener( + 'input', + (0, l.debounce)(function (e) { + return t.searchOptions(e.target.value); + }) + ), + this.tagsInput.addEventListener('keydown', function (e) { + if ('Enter' === e.key && t.isAddTagOnEnter) { + var n = e.target.value; + if ( + t.selectOptions.find(function (t) { + return t.val === n; + }) + ) + return !1; + (t.addSelectOption(n, n), + t.buildOption(n, n), + t.dropdown + .querySelector('[data-value="'.concat(n, '"]')) + .click(), + t.resetTagsInputField(), + t.close()); + } + }), + this.tags.append(this.tagsInput)); + }), + (e.prototype.buildDropdown = function () { + var t = this; + ((this.dropdown = (0, l.htmlToElement)( + this.dropdownTag || '
' + )), + this.dropdown.classList.add('absolute', 'top-full'), + this.isOpened || this.dropdown.classList.add('hidden'), + this.dropdownClasses && + (0, l.classToClassList)( + this.dropdownClasses, + this.dropdown + ), + this.wrapper && this.wrapper.append(this.dropdown), + this.dropdown && this.hasSearch && this.buildSearch(), + this.selectOptions && + this.selectOptions.forEach(function (e, n) { + return t.buildOption( + e.title, + e.val, + e.options, + ''.concat(n) + ); + })); + }), + (e.prototype.buildSearch = function () { + var t, + e = this; + ((this.searchWrapper = (0, l.htmlToElement)( + this.searchWrapperTemplate || '
' + )), + this.searchWrapperClasses && + (0, l.classToClassList)( + this.searchWrapperClasses, + this.searchWrapper + ), + (t = this.searchWrapper.querySelector('[data-input]')), + (this.search = (0, l.htmlToElement)( + '' + )), + (this.search.placeholder = this.searchPlaceholder), + this.searchClasses && + (0, l.classToClassList)(this.searchClasses, this.search), + this.search.addEventListener( + 'input', + (0, l.debounce)(function (t) { + return e.searchOptions(t.target.value); + }) + ), + t + ? t.append(this.search) + : this.searchWrapper.append(this.search), + this.dropdown.append(this.searchWrapper)); + }), + (e.prototype.buildOption = function (t, e, n, o) { + var i = this; + void 0 === o && (o = '1'); + var r = null, + s = (0, l.htmlToElement)(this.optionTag || '
'); + if ( + (s.setAttribute('data-value', e), + s.setAttribute('data-title-value', t), + s.setAttribute('tabIndex', o), + s.classList.add('cursor-pointer'), + this.optionTemplate && + ((r = (0, l.htmlToElement)(this.optionTemplate)), + s.append(r)), + r + ? (r.querySelector('[data-title]').textContent = t || '') + : (s.textContent = t || ''), + n) + ) { + if (n.icon) { + var a = (0, l.htmlToElement)(n.icon); + if ((a.classList.add('mw-full'), r)) + r.querySelector('[data-icon]').append(a); + else { + var c = (0, l.htmlToElement)('
'); + (this.iconClasses && + (0, l.classToClassList)(this.iconClasses, c), + c.append(a), + s.append(c)); + } + } + if (n.description) + if (r) + r.querySelector('[data-description]').append( + n.description + ); + else { + var u = (0, l.htmlToElement)('
'); + ((u.textContent = n.description), + this.descriptionClasses && + (0, l.classToClassList)(this.descriptionClasses, u), + s.append(u)); + } + } + (r && + r.querySelector('[data-icon]') && + !n && + !(null == n ? void 0 : n.icon) && + r.querySelector('[data-icon]').classList.add('hidden'), + this.value && + (this.isMultiple + ? this.value.includes(e) + : this.value === e) && + s.classList.add('selected'), + s.addEventListener('click', function () { + return i.onSelectOption(e); + }), + this.optionClasses && + (0, l.classToClassList)(this.optionClasses, s), + this.dropdown && this.dropdown.append(s)); + }), + (e.prototype.destroyOption = function (t) { + var e = this.dropdown.querySelector( + '[data-value="'.concat(t, '"]') + ); + if (!e) return !1; + e.remove(); + }), + (e.prototype.buildOriginalOption = function (t, e, n) { + var o = (0, l.htmlToElement)(''); + (o.setAttribute('value', e), + o.setAttribute('data-hs-select-option', JSON.stringify(n)), + (o.innerText = t), + this.el.append(o)); + }), + (e.prototype.destroyOriginalOption = function (t) { + var e = this.el.querySelector('[value="'.concat(t, '"]')); + if (!e) return !1; + e.remove(); + }), + (e.prototype.onSelectOption = function (t) { + (this.clearSelections(), + this.isMultiple + ? ((this.value = this.value.includes(t) + ? Array.from(this.value).filter(function (e) { + return e !== t; + }) + : s(s([], Array.from(this.value), !0), [t], !1)), + this.selectMultipleItems(), + this.setNewValue()) + : ((this.value = t), + this.selectSingleItem(), + this.setNewValue()), + this.fireEvent('change', this.value), + (0, l.dispatch)('change.hs.select', this.el, this.value), + 'tags' === this.mode && this.resetTagsInputField(), + this.isMultiple || + (this.toggle.querySelector('[data-icon]') && + this.setToggleIcon(), + this.toggle.querySelector('[data-title]') && + this.setToggleTitle(), + this.close()), + this.value.length || + 'tags' !== this.mode || + (this.tagsInput.placeholder = this.placeholder)); + }), + (e.prototype.addSelectOption = function (t, e, n) { + this.selectOptions = s( + s([], this.selectOptions, !0), + [{ title: t, val: e, options: n }], + !1 + ); + }), + (e.prototype.removeSelectOption = function (t) { + if ( + !!!this.selectOptions.some(function (e) { + return e.val === t; + }) + ) + return !1; + this.selectOptions = this.selectOptions.filter(function (e) { + return e.val !== t; + }); + }), + (e.prototype.resetTagsInputField = function () { + ((this.tagsInput.value = ''), + (this.tagsInput.placeholder = ''), + this.searchOptions('')); + }), + (e.prototype.clearSelections = function () { + (Array.from(this.dropdown.children).forEach(function (t) { + t.classList.contains('selected') && + t.classList.remove('selected'); + }), + Array.from(this.el.children).forEach(function (t) { + t.selected && (t.selected = !1); + })); + }), + (e.prototype.setNewValue = function () { + 'tags' === this.mode + ? this.setTagsItems() + : this.value.length + ? (this.toggleTextWrapper.innerHTML = + this.stringFromValue()) + : (this.toggleTextWrapper.innerHTML = this.placeholder); + }), + (e.prototype.stringFromValue = function () { + var t = this, + e = []; + return ( + this.selectOptions.forEach(function (n) { + t.isMultiple + ? t.value.includes(n.val) && e.push(n.title) + : t.value === n.val && e.push(n.title); + }), + this.toggleCountText && + '' !== this.toggleCountText && + e.length >= this.toggleCountTextMinItems + ? ''.concat(e.length, ' ').concat(this.toggleCountText) + : e.join(', ') + ); + }), + (e.prototype.selectSingleItem = function () { + var t = this; + ((Array.from(this.el.children).find(function (e) { + return t.value === e.value; + }).selected = !0), + Array.from(this.dropdown.children) + .find(function (e) { + return t.value === e.getAttribute('data-value'); + }) + .classList.add('selected')); + }), + (e.prototype.selectMultipleItems = function () { + var t = this; + (Array.from(this.dropdown.children) + .filter(function (e) { + return t.value.includes(e.getAttribute('data-value')); + }) + .forEach(function (t) { + return t.classList.add('selected'); + }), + Array.from(this.el.children) + .filter(function (e) { + return t.value.includes(e.value); + }) + .forEach(function (t) { + return (t.selected = !0); + })); + }), + (e.prototype.unselectMultipleItems = function () { + (Array.from(this.dropdown.children).forEach(function (t) { + return t.classList.remove('selected'); + }), + Array.from(this.el.children).forEach(function (t) { + return (t.selected = !1); + })); + }), + (e.prototype.searchOptions = function (t) { + (this.searchNoResult && + (this.searchNoResult.remove(), + (this.searchNoResult = null)), + (this.searchNoResult = (0, l.htmlToElement)( + '' + )), + (this.searchNoResult.innerText = this.searchNoResultText), + (0, l.classToClassList)( + this.searchNoResultClasses, + this.searchNoResult + )); + var e = this.dropdown.querySelectorAll('[data-value]'), + n = !1; + (e.forEach(function (e) { + e + .getAttribute('data-title-value') + .toLowerCase() + .includes(t.toLowerCase()) + ? (e.classList.remove('hidden'), (n = !0)) + : e.classList.add('hidden'); + }), + n || this.dropdown.append(this.searchNoResult)); + }), + (e.prototype.eraseToggleIcon = function () { + var t = this.toggle.querySelector('[data-icon]'); + t && ((t.innerHTML = null), t.classList.add('hidden')); + }), + (e.prototype.eraseToggleTitle = function () { + var t = this.toggle.querySelector('[data-title]'); + t + ? (t.innerHTML = this.placeholder) + : (this.toggleTextWrapper.innerHTML = this.placeholder); + }), + (e.prototype.destroy = function () { + var t = this.el.parentElement.parentElement; + (this.el.classList.remove('hidden'), + (this.el.style.display = ''), + t.prepend(this.el), + t.querySelector('.hs-select').remove(), + (this.wrapper = null)); + }), + (e.prototype.open = function () { + var t = this; + if (this.animationInProcess) return !1; + ((this.animationInProcess = !0), + this.dropdown.classList.remove('hidden'), + this.recalculateDirection(), + setTimeout(function () { + (t.wrapper.classList.add('active'), + t.dropdown.classList.add('opened'), + t.hasSearch && t.search.focus(), + (t.animationInProcess = !1)); + }), + (this.isOpened = !0)); + }), + (e.prototype.close = function () { + var t, + e, + n, + o = this; + if (this.animationInProcess) return !1; + ((this.animationInProcess = !0), + this.wrapper.classList.remove('active'), + this.dropdown.classList.remove( + 'opened', + 'bottom-full', + 'top-full' + ), + (null === (t = this.dropdownDirectionClasses) || + void 0 === t + ? void 0 + : t.bottom) && + this.dropdown.classList.remove( + this.dropdownDirectionClasses.bottom + ), + (null === (e = this.dropdownDirectionClasses) || + void 0 === e + ? void 0 + : e.top) && + this.dropdown.classList.remove( + this.dropdownDirectionClasses.top + ), + (this.dropdown.style.marginTop = ''), + (this.dropdown.style.marginBottom = ''), + (0, l.afterTransition)(this.dropdown, function () { + (o.dropdown.classList.add('hidden'), + o.hasSearch && + ((o.search.value = ''), + o.search.dispatchEvent( + new Event('input', { bubbles: !0 }) + ), + o.search.blur()), + (o.animationInProcess = !1)); + }), + null === + (n = this.dropdown.querySelector( + '.hs-select-option-highlighted' + )) || + void 0 === n || + n.classList.remove('hs-select-option-highlighted'), + (this.isOpened = !1)); + }), + (e.prototype.addOption = function (t) { + var e = this, + n = ''.concat(this.selectOptions.length), + o = function (t) { + var o = t.title, + i = t.val, + r = t.options; + !!e.selectOptions.some(function (t) { + return t.val === i; + }) || + (e.addSelectOption(o, i, r), + e.buildOption(o, i, r, n), + e.buildOriginalOption(o, i, r)); + }; + Array.isArray(t) + ? t.forEach(function (t) { + o(t); + }) + : o(t); + }), + (e.prototype.removeOption = function (t) { + var e = this, + n = function (t) { + !!e.selectOptions.some(function (e) { + return e.val === t; + }) && + (e.removeSelectOption(t), + e.destroyOption(t), + e.destroyOriginalOption(t), + e.value === t && + ((e.value = null), + e.eraseToggleTitle(), + e.eraseToggleIcon())); + }; + Array.isArray(t) + ? t.forEach(function (t) { + n(t); + }) + : n(t); + }), + (e.prototype.recalculateDirection = function () { + var t, e, n, o; + (0, l.isEnoughSpace)( + this.dropdown, + this.toggle || this.tagsInput, + 'bottom', + this.dropdownSpace, + this.viewport + ) + ? (this.dropdown.classList.remove('bottom-full'), + (null === (t = this.dropdownDirectionClasses) || + void 0 === t + ? void 0 + : t.bottom) && + this.dropdown.classList.remove( + this.dropdownDirectionClasses.bottom + ), + (this.dropdown.style.marginBottom = ''), + this.dropdown.classList.add('top-full'), + (null === (e = this.dropdownDirectionClasses) || + void 0 === e + ? void 0 + : e.top) && + this.dropdown.classList.add( + this.dropdownDirectionClasses.top + ), + (this.dropdown.style.marginTop = ''.concat( + this.dropdownSpace, + 'px' + ))) + : (this.dropdown.classList.remove('top-full'), + (null === (n = this.dropdownDirectionClasses) || + void 0 === n + ? void 0 + : n.top) && + this.dropdown.classList.remove( + this.dropdownDirectionClasses.top + ), + (this.dropdown.style.marginTop = ''), + this.dropdown.classList.add('bottom-full'), + (null === (o = this.dropdownDirectionClasses) || + void 0 === o + ? void 0 + : o.bottom) && + this.dropdown.classList.add( + this.dropdownDirectionClasses.bottom + ), + (this.dropdown.style.marginBottom = ''.concat( + this.dropdownSpace, + 'px' + ))); + }), + (e.getInstance = function (t, e) { + var n = window.$hsSelectCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element) : null; + }), + (e.autoInit = function () { + (window.$hsSelectCollection || + (window.$hsSelectCollection = []), + document + .querySelectorAll( + '[data-hs-select]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + if ( + !window.$hsSelectCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) + ) { + var n = t.getAttribute('data-hs-select'), + o = n ? JSON.parse(n) : {}; + new e(t, o); + } + }), + window.$hsSelectCollection && + (window.addEventListener('click', function (t) { + var n = t.target; + e.closeCurrentlyOpened(n); + }), + document.addEventListener('keydown', function (t) { + return e.accessibility(t); + }))); + }), + (e.close = function (t) { + var e = window.$hsSelectCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + e && e.element.isOpened && e.element.close(); + }), + (e.closeCurrentlyOpened = function (t) { + if ( + (void 0 === t && (t = null), + !t.closest('.hs-select.active')) + ) { + var e = + window.$hsSelectCollection.filter(function (t) { + return t.element.isOpened; + }) || null; + e && + e.forEach(function (t) { + t.element.close(); + }); + } + }), + (e.accessibility = function (t) { + var e = window.$hsSelectCollection.find(function (t) { + return t.element.isOpened; + }); + if ( + e && + c.SELECT_ACCESSIBILITY_KEY_SET.includes(t.code) && + !t.metaKey + ) + switch ( + (console.log(e), console.log('Key code:', t.code), t.code) + ) { + case 'Escape': + (t.preventDefault(), this.onEscape()); + break; + case 'ArrowUp': + (t.preventDefault(), this.onArrow()); + break; + case 'ArrowDown': + (t.preventDefault(), this.onArrow(!1)); + break; + case 'Tab': + (t.preventDefault(), this.onTab(t.shiftKey)); + break; + case 'Home': + (t.preventDefault(), this.onStartEnd()); + break; + case 'End': + (t.preventDefault(), this.onStartEnd(!1)); + break; + case 'Enter': + (t.preventDefault(), this.onEnter(t)); + } + }), + (e.onEscape = function () { + var t = window.$hsSelectCollection.find(function (t) { + return t.element.isOpened; + }); + t && t.element.close(); + }), + (e.onArrow = function (t) { + void 0 === t && (t = !0); + var e = window.$hsSelectCollection.find(function (t) { + return t.element.isOpened; + }); + if (e) { + var n = e.element.dropdown; + if (!n) return !1; + var o = ( + t + ? Array.from( + n.querySelectorAll(':scope > *:not(.hidden)') + ).reverse() + : Array.from( + n.querySelectorAll(':scope > *:not(.hidden)') + ) + ).filter(function (t) { + return !t.classList.contains('disabled'); + }), + i = n.querySelector('.hs-select-option-highlighted'); + i || o[0].classList.add('hs-select-option-highlighted'); + var r = o.findIndex(function (t) { + return t === i; + }); + (r + 1 < o.length && r++, + o[r].focus(), + i && i.classList.remove('hs-select-option-highlighted'), + o[r].classList.add('hs-select-option-highlighted')); + } + }), + (e.onTab = function (t) { + void 0 === t && (t = !0); + var e = window.$hsSelectCollection.find(function (t) { + return t.element.isOpened; + }); + if (e) { + var n = e.element.dropdown; + if (!n) return !1; + var o = ( + t + ? Array.from( + n.querySelectorAll(':scope > *:not(.hidden)') + ).reverse() + : Array.from( + n.querySelectorAll(':scope > *:not(.hidden)') + ) + ).filter(function (t) { + return !t.classList.contains('disabled'); + }), + i = n.querySelector('.hs-select-option-highlighted'); + i || o[0].classList.add('hs-select-option-highlighted'); + var r = o.findIndex(function (t) { + return t === i; + }); + if (!(r + 1 < o.length)) + return ( + i && i.classList.remove('hs-select-option-highlighted'), + e.element.close(), + e.element.toggle.focus(), + !1 + ); + (o[++r].focus(), + i && i.classList.remove('hs-select-option-highlighted'), + o[r].classList.add('hs-select-option-highlighted')); + } + }), + (e.onStartEnd = function (t) { + void 0 === t && (t = !0); + var e = window.$hsSelectCollection.find(function (t) { + return t.element.isOpened; + }); + if (e) { + var n = e.element.dropdown; + if (!n) return !1; + var o = ( + t + ? Array.from( + n.querySelectorAll(':scope > *:not(.hidden)') + ) + : Array.from( + n.querySelectorAll(':scope > *:not(.hidden)') + ).reverse() + ).filter(function (t) { + return !t.classList.contains('disabled'); + }), + i = n.querySelector('.hs-select-option-highlighted'); + o.length && + (o[0].focus(), + i && i.classList.remove('hs-select-option-highlighted'), + o[0].classList.add('hs-select-option-highlighted')); + } + }), + (e.onEnter = function (t) { + var e = t.target.previousSibling; + if ( + window.$hsSelectCollection.find(function (t) { + return t.element.el === e; + }) + ) { + var n = window.$hsSelectCollection.find(function (t) { + return t.element.isOpened; + }), + o = window.$hsSelectCollection.find(function (t) { + return t.element.el === e; + }); + (n.element.close(), o.element.open()); + } else { + (o = window.$hsSelectCollection.find(function (t) { + return t.element.isOpened; + })) && + o.element.onSelectOption(t.target.dataset.value || ''); + } + }), + e + ); + })(a.default); + (window.addEventListener('load', function () { + u.autoInit(); + }), + document.addEventListener('scroll', function () { + if (!window.$hsSelectCollection) return !1; + var t = window.$hsSelectCollection.find(function (t) { + return t.element.isOpened; + }); + t && t.element.recalculateDirection(); + }), + 'undefined' != typeof window && (window.HSSelect = u), + (e.default = u)); + }, + 957: function (t, e, n) { + /* + * HSStepper + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var s = n(969), + l = (function (t) { + function e(e, n) { + var o = t.call(this, e, n) || this, + i = e.getAttribute('data-hs-stepper'), + s = i ? JSON.parse(i) : {}, + l = r(r({}, s), n); + return ( + (o.currentIndex = (null == l ? void 0 : l.currentIndex) || 1), + (o.mode = (null == l ? void 0 : l.mode) || 'linear'), + (o.isCompleted = + void 0 !== (null == l ? void 0 : l.isCompleted) && + (null == l ? void 0 : l.isCompleted)), + (o.totalSteps = 1), + (o.navItems = []), + (o.contentItems = []), + o.init(), + o + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + (this.createCollection(window.$hsStepperCollection, this), + this.buildNav(), + this.buildContent(), + this.buildButtons(), + this.setTotalSteps()); + }), + (e.prototype.getUncompletedSteps = function (t) { + return ( + void 0 === t && (t = !1), + this.navItems.filter(function (e) { + var n = e.isCompleted, + o = e.isSkip; + return t ? !n || o : !n && !o; + }) + ); + }), + (e.prototype.setTotalSteps = function () { + var t = this; + this.navItems.forEach(function (e) { + var n = e.index; + n > t.totalSteps && (t.totalSteps = n); + }); + }), + (e.prototype.buildNav = function () { + var t = this; + (this.el + .querySelectorAll('[data-hs-stepper-nav-item]') + .forEach(function (e) { + return t.addNavItem(e); + }), + this.navItems.forEach(function (e) { + return t.buildNavItem(e); + })); + }), + (e.prototype.buildNavItem = function (t) { + var e = this, + n = t.index, + o = t.isDisabled, + i = t.el; + (n === this.currentIndex && this.setCurrentNavItem(), + ('linear' !== this.mode || o) && + i.addEventListener('click', function () { + return e.handleNavItemClick(t); + })); + }), + (e.prototype.addNavItem = function (t) { + var e = JSON.parse( + t.getAttribute('data-hs-stepper-nav-item') + ), + n = e.index, + o = e.isFinal, + i = void 0 !== o && o, + r = e.isCompleted, + s = void 0 !== r && r, + l = e.isSkip, + a = void 0 !== l && l, + c = e.isOptional, + u = void 0 !== c && c, + d = e.isDisabled, + p = void 0 !== d && d, + h = e.isProcessed, + f = void 0 !== h && h, + v = e.hasError, + m = void 0 !== v && v; + (s && t.classList.add('success'), + a && t.classList.add('skipped'), + p && + (('BUTTON' !== t.tagName && 'INPUT' !== t.tagName) || + t.setAttribute('disabled', 'disabled'), + t.classList.add('disabled')), + m && t.classList.add('error'), + this.navItems.push({ + index: n, + isFinal: i, + isCompleted: s, + isSkip: a, + isOptional: u, + isDisabled: p, + isProcessed: f, + hasError: m, + el: t, + })); + }), + (e.prototype.setCurrentNavItem = function () { + var t = this; + this.navItems.forEach(function (e) { + var n = e.index, + o = e.el; + n === t.currentIndex + ? t.setCurrentNavItemActions(o) + : t.unsetCurrentNavItemActions(o); + }); + }), + (e.prototype.setCurrentNavItemActions = function (t) { + (t.classList.add('active'), + this.fireEvent('active', this.currentIndex), + (0, s.dispatch)( + 'active.hs.stepper', + this.el, + this.currentIndex + )); + }), + (e.prototype.getNavItem = function (t) { + return ( + void 0 === t && (t = this.currentIndex), + this.navItems.find(function (e) { + return e.index === t; + }) + ); + }), + (e.prototype.setProcessedNavItemActions = function (t) { + ((t.isProcessed = !0), t.el.classList.add('processed')); + }), + (e.prototype.setErrorNavItemActions = function (t) { + ((t.hasError = !0), t.el.classList.add('error')); + }), + (e.prototype.unsetCurrentNavItemActions = function (t) { + t.classList.remove('active'); + }), + (e.prototype.handleNavItemClick = function (t) { + var e = t.index; + ((this.currentIndex = e), + this.setCurrentNavItem(), + this.setCurrentContentItem(), + this.checkForTheFirstStep()); + }), + (e.prototype.buildContent = function () { + var t = this; + (this.el + .querySelectorAll('[data-hs-stepper-content-item]') + .forEach(function (e) { + return t.addContentItem(e); + }), + this.navItems.forEach(function (e) { + return t.buildContentItem(e); + })); + }), + (e.prototype.buildContentItem = function (t) { + t.index === this.currentIndex && this.setCurrentContentItem(); + }), + (e.prototype.addContentItem = function (t) { + var e = JSON.parse( + t.getAttribute('data-hs-stepper-content-item') + ), + n = e.index, + o = e.isFinal, + i = void 0 !== o && o, + r = e.isCompleted, + s = void 0 !== r && r, + l = e.isSkip, + a = void 0 !== l && l; + (s && t.classList.add('success'), + a && t.classList.add('skipped'), + this.contentItems.push({ + index: n, + isFinal: i, + isCompleted: s, + isSkip: a, + el: t, + })); + }), + (e.prototype.setCurrentContentItem = function () { + var t = this; + if (this.isCompleted) { + var e = this.contentItems.find(function (t) { + return t.isFinal; + }), + n = this.contentItems.filter(function (t) { + return !t.isFinal; + }); + return ( + (e.el.style.display = ''), + n.forEach(function (t) { + return (t.el.style.display = 'none'); + }), + !1 + ); + } + this.contentItems.forEach(function (e) { + var n = e.index, + o = e.el; + n === t.currentIndex + ? t.setCurrentContentItemActions(o) + : t.unsetCurrentContentItemActions(o); + }); + }), + (e.prototype.hideAllContentItems = function () { + this.contentItems.forEach(function (t) { + return (t.el.style.display = 'none'); + }); + }), + (e.prototype.setCurrentContentItemActions = function (t) { + t.style.display = ''; + }), + (e.prototype.unsetCurrentContentItemActions = function (t) { + t.style.display = 'none'; + }), + (e.prototype.disableAll = function () { + var t = this.getNavItem(this.currentIndex); + ((t.hasError = !1), + (t.isCompleted = !1), + (t.isDisabled = !1), + t.el.classList.remove('error', 'success'), + this.disableButtons()); + }), + (e.prototype.disableNavItemActions = function (t) { + ((t.isDisabled = !0), t.el.classList.add('disabled')); + }), + (e.prototype.enableNavItemActions = function (t) { + ((t.isDisabled = !1), t.el.classList.remove('disabled')); + }), + (e.prototype.buildButtons = function () { + ((this.backBtn = this.el.querySelector( + '[data-hs-stepper-back-btn]' + )), + (this.nextBtn = this.el.querySelector( + '[data-hs-stepper-next-btn]' + )), + (this.skipBtn = this.el.querySelector( + '[data-hs-stepper-skip-btn]' + )), + (this.completeStepBtn = this.el.querySelector( + '[data-hs-stepper-complete-step-btn]' + )), + (this.finishBtn = this.el.querySelector( + '[data-hs-stepper-finish-btn]' + )), + (this.resetBtn = this.el.querySelector( + '[data-hs-stepper-reset-btn]' + )), + this.buildBackButton(), + this.buildNextButton(), + this.buildSkipButton(), + this.buildCompleteStepButton(), + this.buildFinishButton(), + this.buildResetButton()); + }), + (e.prototype.buildBackButton = function () { + var t = this; + this.backBtn && + (this.checkForTheFirstStep(), + this.backBtn.addEventListener('click', function () { + if ((t.handleBackButtonClick(), 'linear' === t.mode)) { + var e = t.navItems.find(function (e) { + return e.index === t.currentIndex; + }), + n = t.contentItems.find(function (e) { + return e.index === t.currentIndex; + }); + if (!e || !n) return; + (e.isCompleted && + ((e.isCompleted = !1), + (e.isSkip = !1), + e.el.classList.remove('success', 'skipped')), + n.isCompleted && + ((n.isCompleted = !1), + (n.isSkip = !1), + n.el.classList.remove('success', 'skipped')), + 'linear' === t.mode && + t.currentIndex !== t.totalSteps && + (t.nextBtn && (t.nextBtn.style.display = ''), + t.completeStepBtn && + (t.completeStepBtn.style.display = '')), + t.showSkipButton(), + t.showFinishButton(), + t.showCompleteStepButton()); + } + })); + }), + (e.prototype.handleBackButtonClick = function () { + 1 !== this.currentIndex && + ('linear' === this.mode && this.removeOptionalClasses(), + this.currentIndex--, + 'linear' === this.mode && this.removeOptionalClasses(), + this.setCurrentNavItem(), + this.setCurrentContentItem(), + this.checkForTheFirstStep(), + this.completeStepBtn && + this.changeTextAndDisableCompleteButtonIfStepCompleted(), + this.fireEvent('back', this.currentIndex), + (0, s.dispatch)( + 'back.hs.stepper', + this.el, + this.currentIndex + )); + }), + (e.prototype.checkForTheFirstStep = function () { + 1 === this.currentIndex + ? this.setToDisabled(this.backBtn) + : this.setToNonDisabled(this.backBtn); + }), + (e.prototype.setToDisabled = function (t) { + (('BUTTON' !== t.tagName && 'INPUT' !== t.tagName) || + t.setAttribute('disabled', 'disabled'), + t.classList.add('disabled')); + }), + (e.prototype.setToNonDisabled = function (t) { + (('BUTTON' !== t.tagName && 'INPUT' !== t.tagName) || + t.removeAttribute('disabled'), + t.classList.remove('disabled')); + }), + (e.prototype.buildNextButton = function () { + var t = this; + this.nextBtn && + this.nextBtn.addEventListener('click', function () { + var e; + if ( + (t.fireEvent('beforeNext', t.currentIndex), + (0, s.dispatch)( + 'beforeNext.hs.stepper', + t.el, + t.currentIndex + ), + null === (e = t.getNavItem(t.currentIndex)) || + void 0 === e + ? void 0 + : e.isProcessed) + ) + return (t.disableAll(), !1); + t.goToNext(); + }); + }), + (e.prototype.unsetProcessedNavItemActions = function (t) { + ((t.isProcessed = !1), t.el.classList.remove('processed')); + }), + (e.prototype.handleNextButtonClick = function (t) { + if ((void 0 === t && (t = !0), t)) + this.currentIndex === this.totalSteps + ? (this.currentIndex = 1) + : this.currentIndex++; + else { + var e = this.getUncompletedSteps(); + if (1 === e.length) { + var n = e[0].index; + this.currentIndex = n; + } else { + if (this.currentIndex === this.totalSteps) return; + this.currentIndex++; + } + } + ('linear' === this.mode && this.removeOptionalClasses(), + this.setCurrentNavItem(), + this.setCurrentContentItem(), + this.checkForTheFirstStep(), + this.completeStepBtn && + this.changeTextAndDisableCompleteButtonIfStepCompleted(), + this.showSkipButton(), + this.showFinishButton(), + this.showCompleteStepButton(), + this.fireEvent('next', this.currentIndex), + (0, s.dispatch)( + 'next.hs.stepper', + this.el, + this.currentIndex + )); + }), + (e.prototype.removeOptionalClasses = function () { + var t = this, + e = this.navItems.find(function (e) { + return e.index === t.currentIndex; + }), + n = this.contentItems.find(function (e) { + return e.index === t.currentIndex; + }); + ((e.isSkip = !1), + (e.hasError = !1), + (e.isDisabled = !1), + (n.isSkip = !1), + e.el.classList.remove('skipped', 'success', 'error'), + n.el.classList.remove('skipped', 'success', 'error')); + }), + (e.prototype.buildSkipButton = function () { + var t = this; + this.skipBtn && + (this.showSkipButton(), + this.skipBtn.addEventListener('click', function () { + (t.handleSkipButtonClick(), + 'linear' === t.mode && + t.currentIndex === t.totalSteps && + (t.nextBtn && (t.nextBtn.style.display = 'none'), + t.completeStepBtn && + (t.completeStepBtn.style.display = 'none'), + t.finishBtn && (t.finishBtn.style.display = ''))); + })); + }), + (e.prototype.setSkipItem = function (t) { + var e = this, + n = this.navItems.find(function (n) { + return n.index === (t || e.currentIndex); + }), + o = this.contentItems.find(function (n) { + return n.index === (t || e.currentIndex); + }); + n && + o && + (this.setSkipItemActions(n), this.setSkipItemActions(o)); + }), + (e.prototype.setSkipItemActions = function (t) { + ((t.isSkip = !0), t.el.classList.add('skipped')); + }), + (e.prototype.showSkipButton = function () { + var t = this; + if (this.skipBtn) { + var e = this.navItems.find(function (e) { + return e.index === t.currentIndex; + }).isOptional; + this.skipBtn.style.display = e ? '' : 'none'; + } + }), + (e.prototype.handleSkipButtonClick = function () { + (this.setSkipItem(), + this.handleNextButtonClick(), + this.fireEvent('skip', this.currentIndex), + (0, s.dispatch)( + 'skip.hs.stepper', + this.el, + this.currentIndex + )); + }), + (e.prototype.buildCompleteStepButton = function () { + var t = this; + this.completeStepBtn && + ((this.completeStepBtnDefaultText = + this.completeStepBtn.innerText), + this.completeStepBtn.addEventListener('click', function () { + return t.handleCompleteStepButtonClick(); + })); + }), + (e.prototype.changeTextAndDisableCompleteButtonIfStepCompleted = + function () { + var t = this, + e = this.navItems.find(function (e) { + return e.index === t.currentIndex; + }), + n = JSON.parse( + this.completeStepBtn.getAttribute( + 'data-hs-stepper-complete-step-btn' + ) + ).completedText; + e && + (e.isCompleted + ? ((this.completeStepBtn.innerText = + n || this.completeStepBtnDefaultText), + this.completeStepBtn.setAttribute( + 'disabled', + 'disabled' + ), + this.completeStepBtn.classList.add('disabled')) + : ((this.completeStepBtn.innerText = + this.completeStepBtnDefaultText), + this.completeStepBtn.removeAttribute('disabled'), + this.completeStepBtn.classList.remove('disabled'))); + }), + (e.prototype.setCompleteItem = function (t) { + var e = this, + n = this.navItems.find(function (n) { + return n.index === (t || e.currentIndex); + }), + o = this.contentItems.find(function (n) { + return n.index === (t || e.currentIndex); + }); + n && + o && + (this.setCompleteItemActions(n), + this.setCompleteItemActions(o)); + }), + (e.prototype.setCompleteItemActions = function (t) { + ((t.isCompleted = !0), t.el.classList.add('success')); + }), + (e.prototype.showCompleteStepButton = function () { + this.completeStepBtn && + (1 === this.getUncompletedSteps().length + ? (this.completeStepBtn.style.display = 'none') + : (this.completeStepBtn.style.display = '')); + }), + (e.prototype.handleCompleteStepButtonClick = function () { + (this.setCompleteItem(), + this.fireEvent('complete', this.currentIndex), + (0, s.dispatch)( + 'complete.hs.stepper', + this.el, + this.currentIndex + ), + this.handleNextButtonClick(!1), + this.showFinishButton(), + this.showCompleteStepButton(), + this.checkForTheFirstStep(), + this.completeStepBtn && + this.changeTextAndDisableCompleteButtonIfStepCompleted(), + this.showSkipButton()); + }), + (e.prototype.buildFinishButton = function () { + var t = this; + this.finishBtn && + (this.isCompleted && this.setCompleted(), + this.finishBtn.addEventListener('click', function () { + return t.handleFinishButtonClick(); + })); + }), + (e.prototype.setCompleted = function () { + this.el.classList.add('completed'); + }), + (e.prototype.unsetCompleted = function () { + this.el.classList.remove('completed'); + }), + (e.prototype.showFinishButton = function () { + this.finishBtn && + (1 === this.getUncompletedSteps().length + ? (this.finishBtn.style.display = '') + : (this.finishBtn.style.display = 'none')); + }), + (e.prototype.handleFinishButtonClick = function () { + var t = this, + e = this.getUncompletedSteps(), + n = this.getUncompletedSteps(!0), + o = this.contentItems.find(function (t) { + return t.isFinal; + }).el; + (e.length && + e.forEach(function (e) { + var n = e.index; + return t.setCompleteItem(n); + }), + (this.currentIndex = this.totalSteps), + this.setCurrentNavItem(), + this.hideAllContentItems()); + var i = this.navItems.find(function (e) { + return e.index === t.currentIndex; + }); + ((i ? i.el : null).classList.remove('active'), + (o.style.display = 'block'), + this.backBtn && (this.backBtn.style.display = 'none'), + this.nextBtn && (this.nextBtn.style.display = 'none'), + this.skipBtn && (this.skipBtn.style.display = 'none'), + this.completeStepBtn && + (this.completeStepBtn.style.display = 'none'), + this.finishBtn && (this.finishBtn.style.display = 'none'), + this.resetBtn && (this.resetBtn.style.display = ''), + n.length <= 1 && + ((this.isCompleted = !0), this.setCompleted()), + this.fireEvent('finish', this.currentIndex), + (0, s.dispatch)( + 'finish.hs.stepper', + this.el, + this.currentIndex + )); + }), + (e.prototype.buildResetButton = function () { + var t = this; + this.resetBtn && + this.resetBtn.addEventListener('click', function () { + return t.handleResetButtonClick(); + }); + }), + (e.prototype.handleResetButtonClick = function () { + var t = this; + (this.backBtn && (this.backBtn.style.display = ''), + this.nextBtn && (this.nextBtn.style.display = ''), + this.completeStepBtn && + ((this.completeStepBtn.style.display = ''), + (this.completeStepBtn.innerText = + this.completeStepBtnDefaultText), + this.completeStepBtn.removeAttribute('disabled'), + this.completeStepBtn.classList.remove('disabled')), + this.resetBtn && (this.resetBtn.style.display = 'none'), + this.navItems.forEach(function (e) { + var n = e.el; + ((e.isSkip = !1), + (e.isCompleted = !1), + t.unsetCurrentNavItemActions(n), + n.classList.remove('success', 'skipped')); + }), + this.contentItems.forEach(function (e) { + var n = e.el; + ((e.isSkip = !1), + (e.isCompleted = !1), + t.unsetCurrentContentItemActions(n), + n.classList.remove('success', 'skipped')); + }), + (this.currentIndex = 1), + this.setCurrentNavItem(), + this.setCurrentContentItem(), + this.showFinishButton(), + this.showCompleteStepButton(), + this.checkForTheFirstStep(), + this.unsetCompleted(), + (this.isCompleted = !1), + this.fireEvent('reset', this.currentIndex), + (0, s.dispatch)( + 'reset.hs.stepper', + this.el, + this.currentIndex + )); + }), + (e.prototype.setProcessedNavItem = function (t) { + var e = this.getNavItem(t); + e && this.setProcessedNavItemActions(e); + }), + (e.prototype.unsetProcessedNavItem = function (t) { + var e = this.getNavItem(t); + e && this.unsetProcessedNavItemActions(e); + }), + (e.prototype.goToNext = function () { + ('linear' === this.mode && this.setCompleteItem(), + this.handleNextButtonClick('linear' !== this.mode), + 'linear' === this.mode && + this.currentIndex === this.totalSteps && + (this.nextBtn && (this.nextBtn.style.display = 'none'), + this.completeStepBtn && + (this.completeStepBtn.style.display = 'none'))); + }), + (e.prototype.disableButtons = function () { + (this.backBtn && this.setToDisabled(this.backBtn), + this.nextBtn && this.setToDisabled(this.nextBtn)); + }), + (e.prototype.enableButtons = function () { + (this.backBtn && this.setToNonDisabled(this.backBtn), + this.nextBtn && this.setToNonDisabled(this.nextBtn)); + }), + (e.prototype.setErrorNavItem = function (t) { + var e = this.getNavItem(t); + e && this.setErrorNavItemActions(e); + }), + (e.getInstance = function (t, e) { + var n = window.$hsStepperCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element) : null; + }), + (e.autoInit = function () { + (window.$hsStepperCollection || + (window.$hsStepperCollection = []), + document + .querySelectorAll( + '[data-hs-stepper]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsStepperCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + })); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + l.autoInit(); + }), + 'undefined' != typeof window && (window.HSStepper = l), + (e.default = l)); + }, + 983: function (t, e, n) { + /* + * HSStrongPassword + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var s = n(969), + l = (function (t) { + function e(e, n) { + var o = t.call(this, e, n) || this; + ((o.isOpened = !1), + (o.strength = 0), + (o.passedRules = new Set())); + var i = e.getAttribute('data-hs-strong-password'), + s = i ? JSON.parse(i) : {}, + l = r(r({}, s), n); + return ( + (o.target = (null == l ? void 0 : l.target) + ? 'string' == typeof (null == l ? void 0 : l.target) + ? document.querySelector(l.target) + : l.target + : null), + (o.hints = (null == l ? void 0 : l.hints) + ? 'string' == typeof (null == l ? void 0 : l.hints) + ? document.querySelector(l.hints) + : l.hints + : null), + (o.stripClasses = + (null == l ? void 0 : l.stripClasses) || null), + (o.minLength = (null == l ? void 0 : l.minLength) || 6), + (o.mode = (null == l ? void 0 : l.mode) || 'default'), + (o.popoverSpace = + (null == l ? void 0 : l.popoverSpace) || 10), + (o.checksExclude = + (null == l ? void 0 : l.checksExclude) || []), + (o.availableChecks = [ + 'lowercase', + 'uppercase', + 'numbers', + 'special-characters', + 'min-length', + ].filter(function (t) { + return !o.checksExclude.includes(t); + })), + (o.specialCharactersSet = + (null == l ? void 0 : l.specialCharactersSet) || + '!"#$%&\'()*+,-./:;<=>?@[\\\\\\]^_`{|}~'), + o.target && o.init(), + o + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + (this.createCollection( + window.$hsStrongPasswordCollection, + this + ), + this.availableChecks.length && this.build()); + }), + (e.prototype.build = function () { + var t = this; + (this.buildStrips(), + this.hints && this.buildHints(), + this.setStrength(this.target.value), + this.target.addEventListener('input', function (e) { + t.setStrength(e.target.value); + })); + }), + (e.prototype.buildStrips = function () { + if (((this.el.innerHTML = ''), this.stripClasses)) + for (var t = 0; t < this.availableChecks.length; t++) { + var e = (0, s.htmlToElement)('
'); + ((0, s.classToClassList)(this.stripClasses, e), + this.el.append(e)); + } + }), + (e.prototype.buildHints = function () { + var t = this; + ((this.weakness = + this.hints.querySelector( + '[data-hs-strong-password-hints-weakness-text]' + ) || null), + (this.rules = + Array.from( + this.hints.querySelectorAll( + '[data-hs-strong-password-hints-rule-text]' + ) + ) || null), + this.rules.forEach(function (e) { + var n, + o = e.getAttribute( + 'data-hs-strong-password-hints-rule-text' + ); + (null === (n = t.checksExclude) || void 0 === n + ? void 0 + : n.includes(o)) && e.remove(); + }), + this.weakness && this.buildWeakness(), + this.rules && this.buildRules(), + 'popover' === this.mode && + (this.target.addEventListener('focus', function () { + ((t.isOpened = !0), + t.hints.classList.remove('hidden'), + t.hints.classList.add('block'), + t.recalculateDirection()); + }), + this.target.addEventListener('blur', function () { + ((t.isOpened = !1), + t.hints.classList.remove( + 'block', + 'bottom-full', + 'top-full' + ), + t.hints.classList.add('hidden'), + (t.hints.style.marginTop = ''), + (t.hints.style.marginBottom = '')); + }))); + }), + (e.prototype.buildWeakness = function () { + var t = this; + (this.checkStrength(this.target.value), + this.setWeaknessText(), + this.target.addEventListener('input', function () { + return setTimeout(function () { + return t.setWeaknessText(); + }); + })); + }), + (e.prototype.buildRules = function () { + var t = this; + (this.setRulesText(), + this.target.addEventListener('input', function () { + return setTimeout(function () { + return t.setRulesText(); + }); + })); + }), + (e.prototype.setWeaknessText = function () { + var t = this.weakness.getAttribute( + 'data-hs-strong-password-hints-weakness-text' + ), + e = JSON.parse(t); + this.weakness.textContent = e[this.strength]; + }), + (e.prototype.setRulesText = function () { + var t = this; + this.rules.forEach(function (e) { + var n = e.getAttribute( + 'data-hs-strong-password-hints-rule-text' + ); + t.checkIfPassed(e, t.passedRules.has(n)); + }); + }), + (e.prototype.togglePopover = function () { + var t = this.el.querySelector('.popover'); + t && t.classList.toggle('show'); + }), + (e.prototype.checkStrength = function (t) { + var e = new Set(), + n = { + lowercase: /[a-z]+/, + uppercase: /[A-Z]+/, + numbers: /[0-9]+/, + 'special-characters': new RegExp( + '['.concat(this.specialCharactersSet, ']') + ), + }, + o = 0; + return ( + this.availableChecks.includes('lowercase') && + t.match(n.lowercase) && + ((o += 1), e.add('lowercase')), + this.availableChecks.includes('uppercase') && + t.match(n.uppercase) && + ((o += 1), e.add('uppercase')), + this.availableChecks.includes('numbers') && + t.match(n.numbers) && + ((o += 1), e.add('numbers')), + this.availableChecks.includes('special-characters') && + t.match(n['special-characters']) && + ((o += 1), e.add('special-characters')), + this.availableChecks.includes('min-length') && + t.length >= this.minLength && + ((o += 1), e.add('min-length')), + t.length || (o = 0), + o === this.availableChecks.length + ? this.el.classList.add('accepted') + : this.el.classList.remove('accepted'), + (this.strength = o), + (this.passedRules = e), + { strength: this.strength, rules: this.passedRules } + ); + }), + (e.prototype.checkIfPassed = function (t, e) { + void 0 === e && (e = !1); + var n = t.querySelector('[data-check]'), + o = t.querySelector('[data-uncheck]'); + e + ? (t.classList.add('active'), + n.classList.remove('hidden'), + o.classList.add('hidden')) + : (t.classList.remove('active'), + n.classList.add('hidden'), + o.classList.remove('hidden')); + }), + (e.prototype.setStrength = function (t) { + var e = this.checkStrength(t), + n = e.strength, + o = { strength: n, rules: e.rules }; + (this.hideStrips(n), + this.fireEvent('change', o), + (0, s.dispatch)('change.hs.strongPassword', this.el, o)); + }), + (e.prototype.hideStrips = function (t) { + Array.from(this.el.children).forEach(function (e, n) { + n < t + ? e.classList.add('passed') + : e.classList.remove('passed'); + }); + }), + (e.prototype.recalculateDirection = function () { + (0, s.isEnoughSpace)( + this.hints, + this.target, + 'bottom', + this.popoverSpace + ) + ? (this.hints.classList.remove('bottom-full'), + this.hints.classList.add('top-full'), + (this.hints.style.marginBottom = ''), + (this.hints.style.marginTop = ''.concat( + this.popoverSpace, + 'px' + ))) + : (this.hints.classList.remove('top-full'), + this.hints.classList.add('bottom-full'), + (this.hints.style.marginTop = ''), + (this.hints.style.marginBottom = ''.concat( + this.popoverSpace, + 'px' + ))); + }), + (e.getInstance = function (t) { + var e = window.$hsStrongPasswordCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return e ? e.element : null; + }), + (e.autoInit = function () { + (window.$hsStrongPasswordCollection || + (window.$hsStrongPasswordCollection = []), + document + .querySelectorAll( + '[data-hs-strong-password]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + if ( + !window.$hsStrongPasswordCollection.find( + function (e) { + var n; + return ( + (null === + (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + } + ) + ) { + var n = t.getAttribute('data-hs-strong-password'), + o = n ? JSON.parse(n) : {}; + new e(t, o); + } + })); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + l.autoInit(); + }), + document.addEventListener('scroll', function () { + if (!window.$hsStrongPasswordCollection) return !1; + var t = window.$hsStrongPasswordCollection.find(function (t) { + return t.element.isOpened; + }); + t && t.element.recalculateDirection(); + }), + 'undefined' != typeof window && (window.HSStrongPassword = l), + (e.default = l)); + }, + 949: function (t, e, n) { + /* + * HSTabs + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }); + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = n(969), + s = n(737), + l = n(190), + a = (function (t) { + function e(e, n, o) { + var i = t.call(this, e, n, o) || this; + return ( + (i.toggles = i.el.querySelectorAll('[data-hs-tab]')), + (i.extraToggleId = i.el.getAttribute('hs-data-tab-select')), + (i.extraToggle = document.querySelector(i.extraToggleId)), + (i.current = Array.from(i.toggles).find(function (t) { + return t.classList.contains('active'); + })), + (i.currentContentId = i.current.getAttribute('data-hs-tab')), + (i.currentContent = document.querySelector( + i.currentContentId + )), + (i.prev = null), + (i.prevContentId = null), + (i.prevContent = null), + i.init(), + i + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t = this; + (this.createCollection(window.$hsTabsCollection, this), + this.toggles.forEach(function (e) { + e.addEventListener('click', function () { + return t.open(e); + }); + }), + this.extraToggle && + this.extraToggle.addEventListener('change', function (e) { + return t.change(e); + })); + }), + (e.prototype.open = function (t) { + ((this.prev = this.current), + (this.prevContentId = this.currentContentId), + (this.prevContent = this.currentContent), + (this.current = t), + (this.currentContentId = + this.current.getAttribute('data-hs-tab')), + (this.currentContent = document.querySelector( + this.currentContentId + )), + this.prev.classList.remove('active'), + this.prevContent.classList.add('hidden'), + this.current.classList.add('active'), + this.currentContent.classList.remove('hidden'), + this.fireEvent('change', { + el: t, + prev: this.prevContentId, + current: this.currentContentId, + }), + (0, r.dispatch)('change.hs.tab', t, { + el: t, + prev: this.prevContentId, + current: this.currentContentId, + })); + }), + (e.prototype.change = function (t) { + var e = document.querySelector( + '[data-hs-tab="'.concat(t.target.value, '"]') + ); + e && e.click(); + }), + (e.getInstance = function (t, e) { + var n = window.$hsTabsCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element) : null; + }), + (e.autoInit = function () { + (window.$hsTabsCollection || (window.$hsTabsCollection = []), + document + .querySelectorAll( + '[role="tablist"]:not(select):not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsTabsCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + }), + window.$hsTabsCollection && + document.addEventListener('keydown', function (t) { + return e.accessibility(t); + })); + }), + (e.open = function (t) { + var e = window.$hsTabsCollection.find(function (e) { + return Array.from(e.element.toggles).includes( + 'string' == typeof t ? document.querySelector(t) : t + ); + }), + n = Array.from(e.element.toggles).find(function (e) { + return ( + e === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + n && !n.classList.contains('active') && e.element.open(n); + }), + (e.accessibility = function (t) { + var e = document.querySelector('[data-hs-tab]:focus'); + if ( + e && + l.TABS_ACCESSIBILITY_KEY_SET.includes(t.code) && + !t.metaKey + ) { + var n = e + .closest('[role="tablist"]') + .getAttribute('data-hs-tabs-vertical'); + switch ( + (t.preventDefault(), + console.log('Key code:', t.code), + t.code) + ) { + case 'true' === n ? 'ArrowUp' : 'ArrowLeft': + this.onArrow(); + break; + case 'true' === n ? 'ArrowDown' : 'ArrowRight': + this.onArrow(!1); + break; + case 'Home': + this.onStartEnd(); + break; + case 'End': + this.onStartEnd(!1); + } + } + }), + (e.onArrow = function (t) { + void 0 === t && (t = !0); + var e = document + .querySelector('[data-hs-tab]:focus') + .closest('[role="tablist"]'), + n = window.$hsTabsCollection.find(function (t) { + return t.element.el === e; + }); + if (n) { + var o = t + ? Array.from(n.element.toggles).reverse() + : Array.from(n.element.toggles), + i = o.find(function (t) { + return document.activeElement === t; + }), + r = o.findIndex(function (t) { + return t === i; + }); + (o[(r = r + 1 < o.length ? r + 1 : 0)].focus(), + o[r].click()); + } + }), + (e.onStartEnd = function (t) { + void 0 === t && (t = !0); + var e = document + .querySelector('[data-hs-tab]:focus') + .closest('[role="tablist"]'), + n = window.$hsTabsCollection.find(function (t) { + return t.element.el === e; + }); + if (n) { + var o = t + ? Array.from(n.element.toggles) + : Array.from(n.element.toggles).reverse(); + o.length && (o[0].focus(), o[0].click()); + } + }), + (e.on = function (t, e, n) { + var o = window.$hsTabsCollection.find(function (t) { + return Array.from(t.element.toggles).includes( + 'string' == typeof e ? document.querySelector(e) : e + ); + }); + o && (o.element.events[t] = n); + }), + e + ); + })(s.default); + (window.addEventListener('load', function () { + a.autoInit(); + }), + 'undefined' != typeof window && (window.HSTabs = a), + (e.default = a)); + }, + 557: function (t, e, n) { + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var s = (function (t) { + function e(e, n) { + var o = t.call(this, e, n) || this, + i = e.getAttribute('data-hs-theme-switch'), + s = i ? JSON.parse(i) : {}, + l = r(r({}, s), n); + return ( + (o.theme = + (null == l ? void 0 : l.theme) || + localStorage.getItem('hs_theme') || + 'default'), + (o.themeSet = ['dark', 'light', 'default']), + o.init(), + o + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + (this.createCollection(window.$hsThemeSwitchCollection, this), + 'default' !== this.theme && this.setAppearance()); + }), + (e.prototype.setResetStyles = function () { + var t = document.createElement('style'); + return ( + (t.innerText = '*{transition: unset !important;}'), + t.setAttribute('data-hs-appearance-onload-styles', ''), + document.head.appendChild(t), + t + ); + }), + (e.prototype.setAppearance = function (t, e, n) { + (void 0 === t && (t = this.theme), + void 0 === e && (e = !0), + void 0 === n && (n = !0)); + var o = this.setResetStyles(), + i = document.querySelector('html'); + (e && localStorage.setItem('hs_theme', t), + 'auto' === t && + (t = window.matchMedia('(prefers-color-scheme: dark)') + .matches + ? 'dark' + : 'default'), + i.classList.remove('dark', 'default', 'auto'), + i.classList.add(t), + setTimeout(function () { + return o.remove(); + }), + n && + window.dispatchEvent( + new CustomEvent('on-hs-appearance-change', { detail: t }) + )); + }), + (e.getInstance = function (t) { + var e = window.$hsThemeSwitchCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return e ? e.element : null; + }), + (e.autoInit = function () { + (window.$hsThemeSwitchCollection || + (window.$hsThemeSwitchCollection = []), + document + .querySelectorAll( + '[data-hs-theme-switch]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + if ( + !window.$hsThemeSwitchCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) + ) { + var n = new e(t); + ((n.el.checked = 'dark' === n.theme), + n.el.addEventListener('change', function (t) { + n.setAppearance( + t.target.checked ? 'dark' : 'default' + ); + })); + } + }), + document + .querySelectorAll( + '[data-hs-theme-click-value]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + var n = t.getAttribute('data-hs-theme-click-value'), + o = new e(t); + o.el.addEventListener('click', function () { + return o.setAppearance(n); + }); + })); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + s.autoInit(); + }), + window.$hsThemeSwitchCollection && + window.addEventListener('on-hs-appearance-change', function (t) { + window.$hsThemeSwitchCollection.forEach(function (e) { + e.element.el.checked = 'dark' === t.detail; + }); + }), + 'undefined' != typeof window && (window.HSThemeSwitch = s), + (e.default = s)); + }, + 87: function (t, e, n) { + /* + * HSToggleCount + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var s = (function (t) { + function e(e, n) { + var o = t.call(this, e, n) || this, + i = e.getAttribute('data-hs-toggle-count'), + s = i ? JSON.parse(i) : {}, + l = r(r({}, s), n); + return ( + (o.target = (null == l ? void 0 : l.target) + ? 'string' == typeof (null == l ? void 0 : l.target) + ? document.querySelector(l.target) + : l.target + : null), + (o.min = (null == l ? void 0 : l.min) || 0), + (o.max = (null == l ? void 0 : l.max) || 0), + (o.duration = (null == l ? void 0 : l.duration) || 700), + (o.isChecked = o.target.checked || !1), + o.target && o.init(), + o + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t = this; + (this.createCollection(window.$hsToggleCountCollection, this), + this.isChecked && (this.el.innerText = String(this.max)), + this.target.addEventListener('change', function () { + ((t.isChecked = !t.isChecked), t.toggle()); + })); + }), + (e.prototype.toggle = function () { + this.isChecked ? this.countUp() : this.countDown(); + }), + (e.prototype.animate = function (t, e) { + var n = this, + o = 0, + i = function (r) { + o || (o = r); + var s = Math.min((r - o) / n.duration, 1); + ((n.el.innerText = String(Math.floor(s * (e - t) + t))), + s < 1 && window.requestAnimationFrame(i)); + }; + window.requestAnimationFrame(i); + }), + (e.prototype.countUp = function () { + this.animate(this.min, this.max); + }), + (e.prototype.countDown = function () { + this.animate(this.max, this.min); + }), + (e.getInstance = function (t, e) { + var n = window.$hsToggleCountCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element) : null; + }), + (e.autoInit = function () { + (window.$hsToggleCountCollection || + (window.$hsToggleCountCollection = []), + document + .querySelectorAll( + '[data-hs-toggle-count]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsToggleCountCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + })); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + s.autoInit(); + }), + 'undefined' != typeof window && (window.HSToggleCount = s), + (e.default = s)); + }, + 366: function (t, e, n) { + /* + * HSTogglePassword + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var s = n(969), + l = (function (t) { + function e(e, n) { + var o = t.call(this, e, n) || this, + i = e.getAttribute('data-hs-toggle-password'), + l = i ? JSON.parse(i) : {}, + a = r(r({}, l), n), + c = []; + (null == a ? void 0 : a.target) && + 'string' == typeof (null == a ? void 0 : a.target) + ? (null == a ? void 0 : a.target.split(',')).forEach( + function (t) { + c.push(document.querySelector(t)); + } + ) + : (null == a ? void 0 : a.target) && + 'object' == typeof (null == a ? void 0 : a.target) + ? a.target.forEach(function (t) { + return c.push(document.querySelector(t)); + }) + : a.target.forEach(function (t) { + return c.push(t); + }); + return ( + (o.target = c), + (o.isShown = !!o.el.hasAttribute('type') && o.el.checked), + (o.eventType = (0, s.isFormElement)(o.el) + ? 'change' + : 'click'), + (o.isMultiple = + o.target.length > 1 && + !!o.el.closest('[data-hs-toggle-password-group]')), + o.target && o.init(), + o + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t = this; + (this.createCollection( + window.$hsTogglePasswordCollection, + this + ), + this.isShown ? this.show() : this.hide(), + this.el.addEventListener(this.eventType, function () { + (t.isShown ? t.hide() : t.show(), + t.fireEvent('toggle', t.target), + (0, s.dispatch)( + 'toggle.hs.toggle-select', + t.el, + t.target + )); + })); + }), + (e.prototype.getMultipleToggles = function () { + var t = this.el + .closest('[data-hs-toggle-password-group]') + .querySelectorAll('[data-hs-toggle-password]'), + n = []; + return ( + t.forEach(function (t) { + n.push(e.getInstance(t)); + }), + n + ); + }), + (e.prototype.show = function () { + this.isMultiple + ? (this.getMultipleToggles().forEach(function (t) { + return !!t && (t.isShown = !0); + }), + this.el + .closest('[data-hs-toggle-password-group]') + .classList.add('active')) + : ((this.isShown = !0), this.el.classList.add('active')); + this.target.forEach(function (t) { + t.type = 'text'; + }); + }), + (e.prototype.hide = function () { + this.isMultiple + ? (this.getMultipleToggles().forEach(function (t) { + return !!t && (t.isShown = !1); + }), + this.el + .closest('[data-hs-toggle-password-group]') + .classList.remove('active')) + : ((this.isShown = !1), this.el.classList.remove('active')); + this.target.forEach(function (t) { + t.type = 'password'; + }); + }), + (e.getInstance = function (t, e) { + var n = window.$hsTogglePasswordCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element) : null; + }), + (e.autoInit = function () { + (window.$hsTogglePasswordCollection || + (window.$hsTogglePasswordCollection = []), + document + .querySelectorAll( + '[data-hs-toggle-password]:not(.--prevent-on-load-init)' + ) + .forEach(function (t) { + window.$hsTogglePasswordCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + })); + }), + e + ); + })(n(737).default); + (window.addEventListener('load', function () { + l.autoInit(); + }), + 'undefined' != typeof window && (window.HSTogglePassword = l), + (e.default = l)); + }, + 679: function (t, e, n) { + /* + * HSTooltip + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + var o, + i = + (this && this.__extends) || + ((o = function (t, e) { + return ( + (o = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (t, e) { + t.__proto__ = e; + }) || + function (t, e) { + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + }), + o(t, e) + ); + }), + function (t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Class extends value ' + + String(e) + + ' is not a constructor or null' + ); + function n() { + this.constructor = t; + } + (o(t, e), + (t.prototype = + null === e + ? Object.create(e) + : ((n.prototype = e.prototype), new n()))); + }), + r = + (this && this.__assign) || + function () { + return ( + (r = + Object.assign || + function (t) { + for (var e, n = 1, o = arguments.length; n < o; n++) + for (var i in (e = arguments[n])) + Object.prototype.hasOwnProperty.call(e, i) && + (t[i] = e[i]); + return t; + }), + r.apply(this, arguments) + ); + }, + s = + (this && this.__spreadArray) || + function (t, e, n) { + if (n || 2 === arguments.length) + for (var o, i = 0, r = e.length; i < r; i++) + (!o && i in e) || + (o || (o = Array.prototype.slice.call(e, 0, i)), + (o[i] = e[i])); + return t.concat(o || Array.prototype.slice.call(e)); + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var l = n(492), + a = n(969), + c = n(737), + u = n(190), + d = (function (t) { + function e(e, n, o) { + var i = t.call(this, e, n, o) || this; + return ( + i.el && + ((i.toggle = + i.el.querySelector('.hs-tooltip-toggle') || i.el), + (i.content = i.el.querySelector('.hs-tooltip-content')), + (i.eventMode = + (0, a.getClassProperty)(i.el, '--trigger') || 'hover'), + (i.preventPopper = (0, a.getClassProperty)( + i.el, + '--prevent-popper', + 'false' + )), + (i.placement = (0, a.getClassProperty)( + i.el, + '--placement' + )), + (i.strategy = (0, a.getClassProperty)(i.el, '--strategy'))), + i.el && i.toggle && i.content && i.init(), + i + ); + } + return ( + i(e, t), + (e.prototype.init = function () { + var t = this; + (this.createCollection(window.$hsTooltipCollection, this), + 'click' === this.eventMode + ? this.toggle.addEventListener('click', function () { + return t.click(); + }) + : 'focus' === this.eventMode + ? this.toggle.addEventListener('click', function () { + return t.focus(); + }) + : 'hover' === this.eventMode && + (this.toggle.addEventListener( + 'mouseenter', + function () { + return t.enter(); + } + ), + this.toggle.addEventListener( + 'mouseleave', + function () { + return t.leave(); + } + )), + 'false' === this.preventPopper && this.buildPopper()); + }), + (e.prototype.enter = function () { + this.show(); + }), + (e.prototype.leave = function () { + this.hide(); + }), + (e.prototype.click = function () { + var t = this; + if (this.el.classList.contains('show')) return !1; + this.show(); + var e = function () { + setTimeout(function () { + (t.hide(), + t.toggle.removeEventListener('click', e, !0), + t.toggle.removeEventListener('blur', e, !0)); + }); + }; + (this.toggle.addEventListener('click', e, !0), + this.toggle.addEventListener('blur', e, !0)); + }), + (e.prototype.focus = function () { + var t = this; + this.show(); + var e = function () { + (t.hide(), t.toggle.removeEventListener('blur', e, !0)); + }; + this.toggle.addEventListener('blur', e, !0); + }), + (e.prototype.buildPopper = function () { + this.popperInstance = (0, l.createPopper)( + this.toggle, + this.content, + { + placement: u.POSITIONS[this.placement] || 'top', + strategy: this.strategy || 'fixed', + modifiers: [ + { name: 'offset', options: { offset: [0, 5] } }, + ], + } + ); + }), + (e.prototype.show = function () { + var t = this; + (this.content.classList.remove('hidden'), + 'false' === this.preventPopper && + (this.popperInstance.setOptions(function (t) { + return r(r({}, t), { + modifiers: s( + s([], t.modifiers, !0), + [{ name: 'eventListeners', enabled: !0 }], + !1 + ), + }); + }), + this.popperInstance.update()), + setTimeout(function () { + (t.el.classList.add('show'), + t.fireEvent('show', t.el), + (0, a.dispatch)('show.hs.tooltip', t.el, t.el)); + })); + }), + (e.prototype.hide = function () { + var t = this; + (this.el.classList.remove('show'), + 'false' === this.preventPopper && + this.popperInstance.setOptions(function (t) { + return r(r({}, t), { + modifiers: s( + s([], t.modifiers, !0), + [{ name: 'eventListeners', enabled: !1 }], + !1 + ), + }); + }), + this.fireEvent('hide', this.el), + (0, a.dispatch)('hide.hs.tooltip', this.el, this.el), + (0, a.afterTransition)(this.content, function () { + if (t.el.classList.contains('show')) return !1; + t.content.classList.add('hidden'); + })); + }), + (e.getInstance = function (t, e) { + void 0 === e && (e = !1); + var n = window.$hsTooltipCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + return n ? (e ? n : n.element.el) : null; + }), + (e.autoInit = function () { + (window.$hsTooltipCollection || + (window.$hsTooltipCollection = []), + document + .querySelectorAll('.hs-tooltip') + .forEach(function (t) { + window.$hsTooltipCollection.find(function (e) { + var n; + return ( + (null === (n = null == e ? void 0 : e.element) || + void 0 === n + ? void 0 + : n.el) === t + ); + }) || new e(t); + })); + }), + (e.show = function (t) { + var e = window.$hsTooltipCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + if (e) + switch (e.element.eventMode) { + case 'click': + e.element.click(); + break; + case 'focus': + e.element.focus(); + break; + default: + e.element.enter(); + } + }), + (e.hide = function (t) { + var e = window.$hsTooltipCollection.find(function (e) { + return ( + e.element.el === + ('string' == typeof t ? document.querySelector(t) : t) + ); + }); + e && e.element.hide(); + }), + (e.on = function (t, e, n) { + var o = window.$hsTooltipCollection.find(function (t) { + return ( + t.element.el === + ('string' == typeof e ? document.querySelector(e) : e) + ); + }); + o && (o.element.events[t] = n); + }), + e + ); + })(c.default); + (window.addEventListener('load', function () { + d.autoInit(); + }), + 'undefined' != typeof window && (window.HSTooltip = d), + (e.default = d)); + }, + 362: (t, e, n) => { + (Object.defineProperty(e, '__esModule', { value: !0 }), + (e.COLLECTIONS = void 0)); + var o = n(413), + i = n(460), + r = n(629), + s = n(652), + l = n(610), + a = n(371), + c = n(770), + u = n(659), + d = n(139), + p = n(591), + h = n(233), + f = n(957), + v = n(983), + m = n(949), + y = n(87), + g = n(366), + w = n(679); + e.COLLECTIONS = [ + { key: 'copy-markup', fn: o.default }, + { key: 'accordion', fn: i.default }, + { key: 'carousel', fn: r.default }, + { key: 'collapse', fn: s.default }, + { key: 'dropdown', fn: l.default }, + { key: 'input-number', fn: a.default }, + { key: 'overlay', fn: c.default }, + { key: 'pin-input', fn: u.default }, + { key: 'remove-element', fn: d.default }, + { key: 'scrollspy', fn: p.default }, + { key: 'select', fn: h.default }, + { key: 'stepper', fn: f.default }, + { key: 'strong-password', fn: v.default }, + { key: 'tabs', fn: m.default }, + { key: 'toggle-count', fn: y.default }, + { key: 'toggle-password', fn: g.default }, + { key: 'tooltip', fn: w.default }, + ]; + }, + 313: (t, e, n) => { + /* + * HSStaticMethods + * @version: 2.0.3 + * @author: HTMLStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 HTMLStream + */ + Object.defineProperty(e, '__esModule', { value: !0 }); + var o = n(969), + i = n(362), + r = { + getClassProperty: o.getClassProperty, + afterTransition: o.afterTransition, + autoInit: function (t) { + (void 0 === t && (t = 'all'), + 'all' === t + ? i.COLLECTIONS.forEach(function (t) { + var e = t.fn; + null == e || e.autoInit(); + }) + : i.COLLECTIONS.forEach(function (e) { + var n = e.key, + o = e.fn; + t.includes(n) && (null == o || o.autoInit()); + })); + }, + }; + ('undefined' != typeof window && (window.HSStaticMethods = r), + (e.default = r)); + }, + 969: function (t, e) { + var n = this; + (Object.defineProperty(e, '__esModule', { value: !0 }), + (e.menuSearchHistory = + e.classToClassList = + e.htmlToElement = + e.afterTransition = + e.dispatch = + e.debounce = + e.isFormElement = + e.isParentOrElementHidden = + e.isEnoughSpace = + e.isIpadOS = + e.isIOS = + e.getClassPropertyAlt = + e.getClassProperty = + void 0)); + e.getClassProperty = function (t, e, n) { + return ( + void 0 === n && (n = ''), + (window.getComputedStyle(t).getPropertyValue(e) || n).replace( + ' ', + '' + ) + ); + }; + e.getClassPropertyAlt = function (t, e, n) { + void 0 === n && (n = ''); + var o = ''; + return ( + t.classList.forEach(function (t) { + t.includes(e) && (o = t); + }), + o.match(/:(.*)]/) ? o.match(/:(.*)]/)[1] : n + ); + }; + e.isIOS = function () { + return ( + !!/iPad|iPhone|iPod/.test(navigator.platform) || + (navigator.maxTouchPoints && + navigator.maxTouchPoints > 2 && + /MacIntel/.test(navigator.platform)) + ); + }; + e.isIpadOS = function () { + return ( + navigator.maxTouchPoints && + navigator.maxTouchPoints > 2 && + /MacIntel/.test(navigator.platform) + ); + }; + e.isEnoughSpace = function (t, e, n, o, i) { + (void 0 === n && (n = 'auto'), + void 0 === o && (o = 10), + void 0 === i && (i = null)); + var r = e.getBoundingClientRect(), + s = i ? i.getBoundingClientRect() : null, + l = window.innerHeight, + a = s ? r.top - s.top : r.top, + c = (i ? s.bottom : l) - r.bottom, + u = t.clientHeight + o; + return 'bottom' === n + ? c >= u + : 'top' === n + ? a >= u + : a >= u || c >= u; + }; + e.isFormElement = function (t) { + return ( + t instanceof HTMLInputElement || + t instanceof HTMLTextAreaElement || + t instanceof HTMLSelectElement + ); + }; + var o = function (t) { + return ( + !!t && + ('none' === window.getComputedStyle(t).display || + o(t.parentElement)) + ); + }; + e.isParentOrElementHidden = o; + e.debounce = function (t, e) { + var o; + return ( + void 0 === e && (e = 200), + function () { + for (var i = [], r = 0; r < arguments.length; r++) + i[r] = arguments[r]; + (clearTimeout(o), + (o = setTimeout(function () { + t.apply(n, i); + }, e))); + } + ); + }; + e.dispatch = function (t, e, n) { + void 0 === n && (n = null); + var o = new CustomEvent(t, { + detail: { payload: n }, + bubbles: !0, + cancelable: !0, + composed: !1, + }); + e.dispatchEvent(o); + }; + e.afterTransition = function (t, e) { + var n = function () { + (e(), t.removeEventListener('transitionend', n, !0)); + }; + 'all 0s ease 0s' !== + window.getComputedStyle(t, null).getPropertyValue('transition') + ? t.addEventListener('transitionend', n, !0) + : e(); + }; + e.htmlToElement = function (t) { + var e = document.createElement('template'); + return ((t = t.trim()), (e.innerHTML = t), e.content.firstChild); + }; + e.classToClassList = function (t, e, n) { + (void 0 === n && (n = ' '), + t.split(n).forEach(function (t) { + return e.classList.add(t); + })); + }; + e.menuSearchHistory = { + historyIndex: -1, + addHistory: function (t) { + this.historyIndex = t; + }, + existsInHistory: function (t) { + return t > this.historyIndex; + }, + clearHistory: function () { + this.historyIndex = -1; + }, + }; + }, + }, + e = {}; + function n(o) { + var i = e[o]; + if (void 0 !== i) return i.exports; + var r = (e[o] = { exports: {} }); + return (t[o].call(r.exports, r, r.exports, n), r.exports); + } + ((n.d = (t, e) => { + for (var o in e) + n.o(e, o) && + !n.o(t, o) && + Object.defineProperty(t, o, { enumerable: !0, get: e[o] }); + }), + (n.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e)), + (n.r = (t) => { + ('undefined' != typeof Symbol && + Symbol.toStringTag && + Object.defineProperty(t, Symbol.toStringTag, { value: 'Module' }), + Object.defineProperty(t, '__esModule', { value: !0 })); + })); + var o = {}; + return ( + (() => { + var t = o; + (Object.defineProperty(t, '__esModule', { value: !0 }), + (t.HSStaticMethods = + t.HSTooltip = + t.HSTogglePassword = + t.HSToggleCount = + t.HSThemeSwitch = + t.HSTabs = + t.HSStrongPassword = + t.HSStepper = + t.HSSelect = + t.HSScrollspy = + t.HSSearchByJson = + t.HSRemoveElement = + t.HSPinInput = + t.HSOverlay = + t.HSInputNumber = + t.HSDropdown = + t.HSCollapse = + t.HSCarousel = + t.HSAccordion = + t.HSCopyMarkup = + void 0)); + var e = n(413); + Object.defineProperty(t, 'HSCopyMarkup', { + enumerable: !0, + get: function () { + return e.default; + }, + }); + var i = n(460); + Object.defineProperty(t, 'HSAccordion', { + enumerable: !0, + get: function () { + return i.default; + }, + }); + var r = n(629); + Object.defineProperty(t, 'HSCarousel', { + enumerable: !0, + get: function () { + return r.default; + }, + }); + var s = n(652); + Object.defineProperty(t, 'HSCollapse', { + enumerable: !0, + get: function () { + return s.default; + }, + }); + var l = n(610); + Object.defineProperty(t, 'HSDropdown', { + enumerable: !0, + get: function () { + return l.default; + }, + }); + var a = n(371); + Object.defineProperty(t, 'HSInputNumber', { + enumerable: !0, + get: function () { + return a.default; + }, + }); + var c = n(770); + Object.defineProperty(t, 'HSOverlay', { + enumerable: !0, + get: function () { + return c.default; + }, + }); + var u = n(659); + Object.defineProperty(t, 'HSPinInput', { + enumerable: !0, + get: function () { + return u.default; + }, + }); + var d = n(139); + Object.defineProperty(t, 'HSRemoveElement', { + enumerable: !0, + get: function () { + return d.default; + }, + }); + var p = n(961); + Object.defineProperty(t, 'HSSearchByJson', { + enumerable: !0, + get: function () { + return p.default; + }, + }); + var h = n(591); + Object.defineProperty(t, 'HSScrollspy', { + enumerable: !0, + get: function () { + return h.default; + }, + }); + var f = n(233); + Object.defineProperty(t, 'HSSelect', { + enumerable: !0, + get: function () { + return f.default; + }, + }); + var v = n(957); + Object.defineProperty(t, 'HSStepper', { + enumerable: !0, + get: function () { + return v.default; + }, + }); + var m = n(983); + Object.defineProperty(t, 'HSStrongPassword', { + enumerable: !0, + get: function () { + return m.default; + }, + }); + var y = n(949); + Object.defineProperty(t, 'HSTabs', { + enumerable: !0, + get: function () { + return y.default; + }, + }); + var g = n(557); + Object.defineProperty(t, 'HSThemeSwitch', { + enumerable: !0, + get: function () { + return g.default; + }, + }); + var w = n(87); + Object.defineProperty(t, 'HSToggleCount', { + enumerable: !0, + get: function () { + return w.default; + }, + }); + var b = n(366); + Object.defineProperty(t, 'HSTogglePassword', { + enumerable: !0, + get: function () { + return b.default; + }, + }); + var C = n(679); + Object.defineProperty(t, 'HSTooltip', { + enumerable: !0, + get: function () { + return C.default; + }, + }); + var S = n(313); + Object.defineProperty(t, 'HSStaticMethods', { + enumerable: !0, + get: function () { + return S.default; + }, + }); + })(), + o + ); + })() +); diff --git a/scripts/retrieve-block-children.cjs b/scripts/retrieve-block-children.cjs index 053aaf3bd..cf1308fb8 100644 --- a/scripts/retrieve-block-children.cjs +++ b/scripts/retrieve-block-children.cjs @@ -6,14 +6,13 @@ const notion = new Client({ auth: process.env.NOTION_API_SECRET }); const requestDuration = 300; -const retry = (maxRetries, fn) => { - return fn().catch(function (err) { +const retry = (maxRetries, fn) => + fn().catch((err) => { if (maxRetries <= 0) { throw err; } return retry(maxRetries - 1, fn); }); -}; const retrieveAndWriteBlockChildren = async (blockId) => { const params = { block_id: blockId }; @@ -33,7 +32,7 @@ const retrieveAndWriteBlockChildren = async (blockId) => { break; } - params['start_cursor'] = res.next_cursor; + params.start_cursor = res.next_cursor; } fs.writeFileSync(`tmp/${blockId}.json`, JSON.stringify(results)); diff --git a/src/components/About/Profile.astro b/src/components/About/Profile.astro new file mode 100644 index 000000000..8edbbf936 --- /dev/null +++ b/src/components/About/Profile.astro @@ -0,0 +1,98 @@ +--- +import MyIcon from '../../images/my-icon.svg'; + +export interface Props { + iconSrc: string; +} + +const { iconSrc = MyIcon ? MyIcon.src : "" } = Astro.props; +--- +
+

+ PROFILE +

+
+ +
+ +
+
+ +
+
+ + + +
+
+
+ Name / 名前 +
+
+

+ First Name / Last Name +

+
+
+
+
+ Job / 仕事 +
+
+

+ Software Engineer +

+
+
+
+
+ Career / 経歴 +
+
+

+ University → First Company → Second Company +

+
+
+
+
+ + +
+
+
+ +
diff --git a/src/components/About/ThisBlog.astro b/src/components/About/ThisBlog.astro new file mode 100644 index 000000000..51c8bcd7c --- /dev/null +++ b/src/components/About/ThisBlog.astro @@ -0,0 +1,113 @@ +
+
+
+

+ このブログについて +

+
+
+
+
+
+

+ 当ブログは、主に以下の3つの分野で私個人の経験と知見をもとに発信していきます。 +

    +
  1. Web開発
  2. +
  3. アルゴリズムやデータ構造
  4. +
  5. 日本育ちの外国人としての生活 +
    + + ※あくまで個人的に有用だと感じた情報を共有目的として発信いたします。ヘイトや差別を助長するような内容は一切含まれません。 + +
  6. +
+
+ 当ブログの内容は原則的に私の個人的な意見や考えを反映しております。また、当ブログの内容は私の所属する組織や団体とは一切関係ありません。 +

+ 当ブログはAstro + Tailwind CSS + TypeScriptで制作し、Notionによって記事を管理しております。またホスティングにはCloudflareを使用しています。 +

+ 当ブログや私へのお問い合わせをはじめ、記事の内容の指摘・訂正・削除希望などがありましたら、X(旧Twitter)を通じてご連絡ください。当ブログの記事への感想・指摘・訂正は可能であればX(旧Twitter)で共有いただけると嬉しいです。 +

+
+
+
+
+ + +
+
+
+ +
+
+

+ このブログの開発について +

+
+
+
+
+
+

+ 当ブログのソースコードはGithubで公開しております。こちらのリンクからご確認いただけます。当ブログはastro-notion-blogをフォークし、独自のカスタマイズしたものとなります。 +
+ + ※現状はPublicレポジトリとなっていますが、将来的にPrivateレポジトリに変更する可能性があります。 + +
+
+ 当ブログではUnsplashぱくたその画像を一部使用しております。 +
+ SVGアイコンはBasiconstailwindcomponentsを使用しております。 +
+ トップ画像のゴリラに関しては私自身がデザインし、作画したもとなります。 +

+
+
+
+
diff --git a/src/components/Article/Cover/Cover.astro b/src/components/Article/Cover/Cover.astro new file mode 100644 index 000000000..13076d642 --- /dev/null +++ b/src/components/Article/Cover/Cover.astro @@ -0,0 +1,37 @@ +--- +import type { Icon, SelectProperty } from '../../../lib/interfaces'; +import PostTitle from './PostTitle.astro'; +import Date from '../../BlogSections/Date.astro'; +import PostTags from '../../PostTags.astro'; +import NoImage from '../../../images/no-image.png'; + +export interface Props { + title: string; + icon: Icon; + date: string; + tags: SelectProperty[]; + coverImage: string; +} + +const { + title = 'Untitled Post', + icon = null, + date = '2024-01-01', + tags = [], + coverImage = NoImage.src, +} = Astro.props; + +--- +
+ + + +
+ Article Cover Image +
+
diff --git a/tmp/.gitkeep b/src/components/Article/Cover/PostDate.astro similarity index 100% rename from tmp/.gitkeep rename to src/components/Article/Cover/PostDate.astro diff --git a/src/components/Article/Cover/PostTitle.astro b/src/components/Article/Cover/PostTitle.astro new file mode 100644 index 000000000..370d8527b --- /dev/null +++ b/src/components/Article/Cover/PostTitle.astro @@ -0,0 +1,60 @@ +--- +import { type Icon } from '../../../lib/interfaces'; + +export interface Props { + title: string + icon: Icon +} + +const { title = '', icon = null } = Astro.props; +--- +

+ {icon && icon.Type === 'emoji' ? ( + <> + {icon.Emoji} + {title} + + ) : icon && icon.Type === 'external' ? ( + <> + Post title icon + {title} + + ) : ( + title + )} +

+ + diff --git a/src/components/Article/TableOfContents/MainTableOfContents.astro b/src/components/Article/TableOfContents/MainTableOfContents.astro new file mode 100644 index 000000000..0aa618154 --- /dev/null +++ b/src/components/Article/TableOfContents/MainTableOfContents.astro @@ -0,0 +1,223 @@ +--- +import { + type Block, type RichText, + type Heading1, type Heading2, type Heading3, +} from '../../../lib/interfaces'; +import { buildHeadingId } from '../../../lib/blog-helpers'; +import '../../../styles/notion-color.css'; + +export interface Props { + headings: Block[] +} + +const { headings } = Astro.props; +--- +
+
+ + + 目次 + + +
+
    + { + headings.map((headingBlock: Block) => { + const heading = headingBlock.Heading1 + || headingBlock.Heading2 + || headingBlock.Heading3 as (Heading1 | Heading2 | Heading3); + + let indentClass = ''; + if (headingBlock.Type === 'heading_2') { + indentClass = 'indent-1'; + } else if (headingBlock.Type === 'heading_3') { + indentClass = 'indent-2'; + } + + return ( +
  • + + {heading.RichTexts.map( + (richText: RichText) => richText.PlainText, + ).join('')} + +
  • + ); + }) + } +
+
+
+
+ + + + diff --git a/src/components/Article/TableOfContents/SideTableOfContents.astro b/src/components/Article/TableOfContents/SideTableOfContents.astro new file mode 100644 index 000000000..b4c704ad8 --- /dev/null +++ b/src/components/Article/TableOfContents/SideTableOfContents.astro @@ -0,0 +1,57 @@ +--- +import { + type Block, type Heading1, type Heading2, type Heading3, + type RichText, +} from '../../../lib/interfaces'; +import { buildHeadingId } from '../../../lib/blog-helpers'; + +export interface Props { + headings: Block[]; +} + +const { headings = [] } = Astro.props; +--- +
+
    +
    + 目次 +
    + { + headings.map((headingBlock: Block) => { + const heading = headingBlock.Heading1 + || headingBlock.Heading2 + || headingBlock.Heading3 as (Heading1 | Heading2 | Heading3); + + let indentClass = ''; + if (headingBlock.Heading2) { + indentClass = 'ml-4'; + } else if (headingBlock.Heading3) { + indentClass = 'ml-8'; + } + + return ( +
  • + + {heading.RichTexts.map( + (richText: RichText) => richText.PlainText, + ).join('')} + +
  • + ); + }) + } +
+
+ + diff --git a/src/components/BlogSections/BlogSection.astro b/src/components/BlogSections/BlogSection.astro new file mode 100644 index 000000000..93a237b5e --- /dev/null +++ b/src/components/BlogSections/BlogSection.astro @@ -0,0 +1,51 @@ +--- +import '../../styles/notion-color.css'; +import Date from './Date.astro'; + +import { type Post } from '../../lib/interfaces'; +import { getPostLink } from '../../lib/blog-helpers'; + +import NoImage from '../../images/no-image.png'; + +export interface Props { + post: Post; +} + +const { post } = Astro.props; +--- + +
+ Image Description + { + post.badge && ( + + { post.badge } + + ) + } +
+ +
+ {} +

+ { post.Title } +

+

+ { post.Excerpt } +

+
+ { post.Tags.map((tag) => ( + + #{ tag.name } + + )) } +
+
+
diff --git a/src/components/BlogSections/BlogSections.astro b/src/components/BlogSections/BlogSections.astro new file mode 100644 index 000000000..4d1043bdc --- /dev/null +++ b/src/components/BlogSections/BlogSections.astro @@ -0,0 +1,19 @@ +--- +import BlogSection from './BlogSection.astro'; +import type { Post } from '../../lib/interfaces'; + +export interface Props { + posts: Post[]; +} + +const { posts } = Astro.props; +--- +
+
+ {posts.map((post) => ( + + ))} +
+
diff --git a/src/components/BlogSections/Date.astro b/src/components/BlogSections/Date.astro new file mode 100644 index 000000000..223ddf6de --- /dev/null +++ b/src/components/BlogSections/Date.astro @@ -0,0 +1,40 @@ +--- +import { formatDate } from '../../lib/utils'; + +export interface Props { + date: string; +} + +const { date } = Astro.props; +--- +
+
+ + + +
+ +
+ +
+
diff --git a/src/components/BlogSections/RelatedBlogSections.astro b/src/components/BlogSections/RelatedBlogSections.astro new file mode 100644 index 000000000..bb2b41c78 --- /dev/null +++ b/src/components/BlogSections/RelatedBlogSections.astro @@ -0,0 +1,19 @@ +--- +import BlogSection from './BlogSection.astro'; +import type { Post } from '../../lib/interfaces'; + +export interface Props { + posts: Post[]; +} + +const { posts } = Astro.props; +--- +
+
+ {posts.map((post) => ( + + ))} +
+
diff --git a/src/components/Cover/HomeCover.astro b/src/components/Cover/HomeCover.astro new file mode 100644 index 000000000..672899754 --- /dev/null +++ b/src/components/Cover/HomeCover.astro @@ -0,0 +1,57 @@ +--- +import SpeechBubble from './SpeechBubble.astro'; +import icon from '../../images/my-icon.svg'; + +export interface Props { + iconSrc: string; + coverSrc: string; + messages: string[]; +} + +const { + iconSrc = icon ? icon.src : "", + coverSrc = "", + messages = ["Welcome to My Website!"], +} = Astro.props; + +const bgUrlClass = coverSrc === "" ? "bg-[url('/src/images/home-cover.webp')] bg-no-repeat block w-full bg-fill bg-cover" : ""; +--- +
+ +
+ +
+ + +
+ Home Cover Image +
+
+
+ + +
+ {} +
+
+ + diff --git a/src/components/Cover/NotFoundCover.astro b/src/components/Cover/NotFoundCover.astro new file mode 100644 index 000000000..097d6e0ac --- /dev/null +++ b/src/components/Cover/NotFoundCover.astro @@ -0,0 +1,31 @@ +--- +import SpeechBubble from './NotFoundSpeechBubble.astro'; +--- +
+ +
+ +
+
+
+ + +
+ {} +
+
+ + diff --git a/src/components/Cover/NotFoundSpeechBubble.astro b/src/components/Cover/NotFoundSpeechBubble.astro new file mode 100644 index 000000000..87428dd79 --- /dev/null +++ b/src/components/Cover/NotFoundSpeechBubble.astro @@ -0,0 +1,54 @@ +--- +import '@fontsource/ma-shan-zheng'; +import '@fontsource/shippori-mincho-b1'; +--- +
+
+ このページはすでに削除されているか、URLが間違っている可能性があります。 +
+
+
+ 该页面已被删除或网址可能有误。 +
+
+
+ This page has already been deleted, or the URL may be incorrect. +
+
+ + diff --git a/src/components/Cover/SpeechBubble.astro b/src/components/Cover/SpeechBubble.astro new file mode 100644 index 000000000..0e35683fe --- /dev/null +++ b/src/components/Cover/SpeechBubble.astro @@ -0,0 +1,50 @@ +--- +import '@fontsource/ma-shan-zheng'; +import '@fontsource/shippori-mincho-b1'; + +export interface Props { + messages: string[]; +} + +const { messages = [] } = Astro.props; +--- +
+ { + messages.map(message => ( +
+ {message} +
+ )) + } +
+ + diff --git a/src/components/Cover/TagCover.astro b/src/components/Cover/TagCover.astro new file mode 100644 index 000000000..c066939a5 --- /dev/null +++ b/src/components/Cover/TagCover.astro @@ -0,0 +1,17 @@ +--- +export interface Props { + category: string; +} + +const { category = '' } = Astro.props; +--- +
+

+ CATEGORY +

+ + { category } + +
diff --git a/src/components/Cover/TagSpeechBubble.astro b/src/components/Cover/TagSpeechBubble.astro new file mode 100644 index 000000000..6550e2e6a --- /dev/null +++ b/src/components/Cover/TagSpeechBubble.astro @@ -0,0 +1,38 @@ +--- +--- +
+

+ CATEGORY +

+

+ CATEGORY +

+
+ + diff --git a/src/components/Footer/Footer.astro b/src/components/Footer/Footer.astro new file mode 100644 index 000000000..147fc914e --- /dev/null +++ b/src/components/Footer/Footer.astro @@ -0,0 +1,43 @@ +--- +import GithubIcon from '../icon/BlackAndWhite/GithubIcon.astro'; +import XIcon from '../icon/BlackAndWhite/XIcon.astro'; +import FaceBookIcon from '../icon/BlackAndWhite/FaceBookIcon.astro'; +import FooterContent from './FooterContent.astro'; + +export interface Props { + siteName: string; +} + +const { siteName = "This Site Name" } = Astro.props; +--- + +
+
+ +
+ + + +
+ + +
+
+

+ © 2024 Zhong. +

+
+ + +
+ + + + +
+
+
diff --git a/src/components/Footer/FooterContent.astro b/src/components/Footer/FooterContent.astro new file mode 100644 index 000000000..975e11036 --- /dev/null +++ b/src/components/Footer/FooterContent.astro @@ -0,0 +1,15 @@ +--- +export interface Props { + content: string; + href: string; +} + +const { content = '', href = '' } = Astro.props; +--- + diff --git a/src/components/Footer/FooterContentMenu.astro b/src/components/Footer/FooterContentMenu.astro new file mode 100644 index 000000000..20190c1cc --- /dev/null +++ b/src/components/Footer/FooterContentMenu.astro @@ -0,0 +1,10 @@ + +
+

Product

+ + +
diff --git a/src/components/GoogleAnalytics.astro b/src/components/GoogleAnalytics.astro index 6b0ae35b1..37244441b 100644 --- a/src/components/GoogleAnalytics.astro +++ b/src/components/GoogleAnalytics.astro @@ -3,7 +3,7 @@ export interface Props { trackingId: string } -const { trackingId = '' } = Astro.props +const { trackingId = '' } = Astro.props; --- { diff --git a/src/components/Header/Header.astro b/src/components/Header/Header.astro new file mode 100644 index 000000000..62e7d2089 --- /dev/null +++ b/src/components/Header/Header.astro @@ -0,0 +1,14 @@ +--- +import Header1st from './Header1st.astro'; +import Header2nd from './Header2nd.astro'; + +export interface Props { + categories: string[]; + siteName: string; +} + +const { categories = [], siteName = "" } = Astro.props; +--- + + + diff --git a/src/components/Header/Header1st.astro b/src/components/Header/Header1st.astro new file mode 100644 index 000000000..95ecdfffa --- /dev/null +++ b/src/components/Header/Header1st.astro @@ -0,0 +1,68 @@ +--- +import NavbarContent from './NavbarContent.astro'; +import SearchButton from '../SearchButton.astro'; +import GithubIcon from '../icon/GithubIcon.astro'; +import XIcon from '../icon/XIcon.astro'; + +export interface Props { + categories: string[]; + siteName: string; +} + +const { categories = ['Development', 'Diary'], siteName = "This Site Name" } = Astro.props; +--- + + +
+ +
+ + + + + diff --git a/src/components/Header/Header2nd.astro b/src/components/Header/Header2nd.astro new file mode 100644 index 000000000..c66a0c501 --- /dev/null +++ b/src/components/Header/Header2nd.astro @@ -0,0 +1,19 @@ +--- +import SearchButton from '../SearchButton.astro'; +import GithubIcon from '../icon/GithubIcon.astro'; +import XIcon from '../icon/XIcon.astro'; +import FaceBookIcon from '../icon/FaceBookIcon.astro'; +--- + diff --git a/src/components/Header/NavbarContent.astro b/src/components/Header/NavbarContent.astro new file mode 100644 index 000000000..e220bbc3b --- /dev/null +++ b/src/components/Header/NavbarContent.astro @@ -0,0 +1,21 @@ +--- +import type { NavbarAnchor } from '../../lib/interfaces'; + +import NavbarContentAnchor from './NavbarContentAnchor.astro'; +import NavbarContentDropdown from './NavbarContentDropdown/NavbarContentDropdown.astro'; + +export interface Props { + categories: string[] +} + +const { categories = ['Development'] } = Astro.props; +const categoryAnchors: NavbarAnchor[] = categories.map((category) => ({ + href: `/posts/tag/${category}`, + content: category, +})); +--- +
+ + + +
diff --git a/src/components/Header/NavbarContentAnchor.astro b/src/components/Header/NavbarContentAnchor.astro new file mode 100644 index 000000000..22e875ba2 --- /dev/null +++ b/src/components/Header/NavbarContentAnchor.astro @@ -0,0 +1,13 @@ +--- +export interface Props { + href: string + content: string +} + +const { href = '/', content = 'content' } = Astro.props; +--- + + { content } + diff --git a/src/components/Header/NavbarContentDropdown/NavbarContentDropdown.astro b/src/components/Header/NavbarContentDropdown/NavbarContentDropdown.astro new file mode 100644 index 000000000..d1dbe9bc1 --- /dev/null +++ b/src/components/Header/NavbarContentDropdown/NavbarContentDropdown.astro @@ -0,0 +1,60 @@ +--- +import type { NavbarAnchor } from '../../../lib/interfaces'; +// import SubMenu from './SubMenu.astro'; + +export interface Props { + title: string + anchorContents: NavbarAnchor[] +} + +const { title = 'DROPDOWN', anchorContents = [] } = Astro.props; +--- +
+ + + +
diff --git a/src/components/Header/NavbarContentDropdown/SubMenu.astro b/src/components/Header/NavbarContentDropdown/SubMenu.astro new file mode 100644 index 000000000..e2b849f56 --- /dev/null +++ b/src/components/Header/NavbarContentDropdown/SubMenu.astro @@ -0,0 +1,60 @@ +--- +import type { NavbarAnchor } from '../../../lib/interfaces'; + +export interface Props { + title: string + contents: NavbarAnchor[] +} + +const { title = 'Sub Menue Title', contents = [{ content: 'content', href: '/' }] } = Astro.props; +--- +
+ + + +
diff --git a/src/components/NotionBlocks.astro b/src/components/NotionBlocks.astro index 6ec903506..a377d3d98 100644 --- a/src/components/NotionBlocks.astro +++ b/src/components/NotionBlocks.astro @@ -1,33 +1,32 @@ --- -import * as interfaces from '../lib/interfaces.ts' +import * as interfaces from '../lib/interfaces'; import { isTweetURL, isAmazonURL, buildURLToHTMLMap, -} from '../lib/blog-helpers.ts' -import Paragraph from './notion-blocks/Paragraph.astro' -import Heading1 from './notion-blocks/Heading1.astro' -import Heading2 from './notion-blocks/Heading2.astro' -import Heading3 from './notion-blocks/Heading3.astro' -import TableOfContents from './notion-blocks/TableOfContents.astro' -import Image from './notion-blocks/Image.astro' -import Video from './notion-blocks/Video.astro' -import Code from './notion-blocks/Code.astro' -import Quote from './notion-blocks/Quote.astro' -import Equation from './notion-blocks/Equation.astro' -import Callout from './notion-blocks/Callout.astro' -import Embed from './notion-blocks/Embed.astro' -import Bookmark from './notion-blocks/Bookmark.astro' -import Divider from './notion-blocks/Divider.astro' -import Table from './notion-blocks/Table.astro' -import ColumnList from './notion-blocks/ColumnList.astro' -import BulletedListItems from './notion-blocks/BulletedListItems.astro' -import NumberedListItems from './notion-blocks/NumberedListItems.astro' -import ToDo from './notion-blocks/ToDo.astro' -import SyncedBlock from './notion-blocks/SyncedBlock.astro' -import Toggle from './notion-blocks/Toggle.astro' -import File from './notion-blocks/File.astro' -import LinkToPage from './notion-blocks/LinkToPage.astro' +} from '../lib/blog-helpers'; +import Paragraph from './notion-blocks/Paragraph.astro'; +import Heading1 from './notion-blocks/Heading1.astro'; +import Heading2 from './notion-blocks/Heading2.astro'; +import Heading3 from './notion-blocks/Heading3.astro'; +import Image from './notion-blocks/Image.astro'; +import Video from './notion-blocks/Video.astro'; +import Code from './notion-blocks/Code.astro'; +import Quote from './notion-blocks/Quote.astro'; +import Equation from './notion-blocks/Equation.astro'; +import Callout from './notion-blocks/Callout.astro'; +import Embed from './notion-blocks/Embed.astro'; +import Bookmark from './notion-blocks/Bookmark.astro'; +import Divider from './notion-blocks/Divider.astro'; +import Table from './notion-blocks/Table.astro'; +import ColumnList from './notion-blocks/ColumnList.astro'; +import BulletedListItems from './notion-blocks/BulletedListItems.astro'; +import NumberedListItems from './notion-blocks/NumberedListItems.astro'; +import ToDo from './notion-blocks/ToDo.astro'; +import SyncedBlock from './notion-blocks/SyncedBlock.astro'; +import Toggle from './notion-blocks/Toggle.astro'; +import File from './notion-blocks/File.astro'; +import LinkToPage from './notion-blocks/LinkToPage.astro'; export interface Props { blocks: interfaces.Block[] @@ -41,133 +40,128 @@ const { isRoot = false, level = 1, headings: rawHeadings = [], -} = Astro.props +} = Astro.props; const blocks = rawBlocks.reduce((arr, block: interfaces.Block, i: number) => { - const isBulletedListItem = block.Type === 'bulleted_list_item' - const isNumberedListItem = block.Type === 'numbered_list_item' - const isToDo = block.Type === 'to_do' + const isBulletedListItem = block.Type === 'bulleted_list_item'; + const isNumberedListItem = block.Type === 'numbered_list_item'; + const isToDo = block.Type === 'to_do'; if (!isBulletedListItem && !isNumberedListItem && !isToDo) { - return arr.concat(block) + return arr.concat(block); } - let listType = '' + let listType = ''; if (isBulletedListItem) { - listType = 'bulleted_list' + listType = 'bulleted_list'; } else if (isNumberedListItem) { - listType = 'numbered_list' + listType = 'numbered_list'; } else { - listType = 'to_do_list' + listType = 'to_do_list'; } if (i === 0) { const list: interfaces.List = { Type: listType, ListItems: [block], - } - return arr.concat(list) + }; + return arr.concat(list); } - const prevList = arr[arr.length - 1] + const prevList = arr[arr.length - 1]; if ( - (isBulletedListItem && prevList.Type !== 'bulleted_list') || - (isNumberedListItem && prevList.Type !== 'numbered_list') || - (isToDo && prevList.Type !== 'to_do_list') + (isBulletedListItem && prevList.Type !== 'bulleted_list') + || (isNumberedListItem && prevList.Type !== 'numbered_list') + || (isToDo && prevList.Type !== 'to_do_list') ) { const list: interfaces.List = { Type: listType, ListItems: [block], - } - return arr.concat(list) + }; + return arr.concat(list); } - prevList.ListItems.push(block) + prevList.ListItems.push(block); - return arr -}, []) + return arr; +}, []); -let headings = rawHeadings +let headings = rawHeadings; if (isRoot) { - headings = blocks.filter((b: interfaces.Block) => - ['heading_1', 'heading_2', 'heading_3'].includes(b.Type) - ) + headings = blocks.filter((b: interfaces.Block) => ['heading_1', 'heading_2', 'heading_3'].includes(b.Type)); } const bookmarkURLs = blocks - .filter((b: interfaces.Block) => - ['bookmark', 'link_preview', 'embed'].includes(b.Type) - ) + .filter((b: interfaces.Block) => ['bookmark', 'link_preview', 'embed'].includes(b.Type)) .map((b: interfaces.Block) => { - const urlString = (b.Bookmark || b.LinkPreview || b.Embed).Url + const urlString = (b.Bookmark || b.LinkPreview || b.Embed).Url; - let url: URL + let url: URL; try { - url = new URL(urlString) + url = new URL(urlString); } catch (err) { - console.log(err) + console.log(err); } - return url + return url; }) - .filter((url: URL) => url && !isTweetURL(url) && !isAmazonURL(url)) + .filter((url: URL) => url && !isTweetURL(url) && !isAmazonURL(url)); -const bookmarkURLMap = await buildURLToHTMLMap(bookmarkURLs) +const bookmarkURLMap = await buildURLToHTMLMap(bookmarkURLs); --- { blocks.map((block: interfaces.Block) => { switch (block.Type) { case 'paragraph': - return + return ; case 'heading_1': - return + return ; case 'heading_2': - return + return ; case 'heading_3': - return - case 'table_of_contents': - return + return ; case 'image': - return + return ; case 'video': - return