diff --git a/extensions/google-maps-search/.gitignore b/extensions/google-maps-search/.gitignore index 0b7071fe6b6..f63a6892832 100644 --- a/extensions/google-maps-search/.gitignore +++ b/extensions/google-maps-search/.gitignore @@ -1,7 +1,6 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - # dependencies /node_modules # misc -.DS_Store \ No newline at end of file +.DS_Store +.windsurf/rules \ No newline at end of file diff --git a/extensions/google-maps-search/.npmrc b/extensions/google-maps-search/.npmrc new file mode 100644 index 00000000000..09b35cdd034 --- /dev/null +++ b/extensions/google-maps-search/.npmrc @@ -0,0 +1,2 @@ +audit=false +fund=false diff --git a/extensions/google-maps-search/CHANGELOG.md b/extensions/google-maps-search/CHANGELOG.md index a16095ea3b0..b4d01f8a4a8 100644 --- a/extensions/google-maps-search/CHANGELOG.md +++ b/extensions/google-maps-search/CHANGELOG.md @@ -1,6 +1,44 @@ # Google Maps Search Changelog +## [2.0] - {PR_MERGE_DATE} -## [Chore: Fixed throttle issue] - 2025-03-10 +### Added +- Added integration of Google Places API (which requires an API key) +- Added "Copy Coordinates URL" feature that makes it easy to get coordinates for a location ([#16136](https://github.com/raycast/extensions/issues/16136)) +- Added improved sorting options for nearby places (by proximity, rating, and price) +- Added preference for unit system (imperial or metric) +- Added persistent search settings via LocalStorage for better user experience +- Added support for saving and removing recent searches +- Added AI Tools to search places, get addresses and place details, and to show results on a map (works with @location) +- Added dedicated utility files for better code organization: + - `use-geocoding.ts` hook for centralized geocoding logic + - `validation.ts` for form input validation + - `api-helpers.ts` for standardized API request handling + - `storage-helpers.ts` for robust LocalStorage operations + - `location-helpers.ts` for location data handling + - `formatting.ts` with comprehensive formatting utilities + +### Changed +- Improved toast messages with clearer instructions and error handling +- Consolidated place type management by creating `./src/types` +- Enhanced UI with better accessibility and more consistent icons +- Improved distance calculation and formatting with proper unit system support +- Optimized performance for place search results rendering +- Improved autofill support and UI text ([#5511](https://github.com/raycast/extensions/issues/5511)) ([#5690](https://github.com/raycast/extensions/issues/5690)) +- Improved type safety throughout the codebase: + - Replaced `any` types with proper type definitions + - Enhanced `StorageValue` type with recursive JSON-serializable definition + - Added type predicates for runtime validation +- Standardized error handling across all API requests and storage operations +- Improved code formatting and organization with consistent style + +### Fixed +- Fixed empty callback functions in navigation flow +- Fixed issue with place details not loading correctly in some cases +- Resolved inconsistent behavior when switching between search types + +## [Chore: Fixed throttle issue] - 2025-03-10 + +- Fixed [#15062](https://github.com/raycast/extensions/issues/15062) ## [Added preferred starting location] - 2024-11-20 diff --git a/extensions/google-maps-search/README.md b/extensions/google-maps-search/README.md index 4c57ae02c4a..4498d5b5ffb 100644 --- a/extensions/google-maps-search/README.md +++ b/extensions/google-maps-search/README.md @@ -2,17 +2,65 @@ ## Setup -1. Enter your home address in the Raycast preferences. It will be used to quickly pull up directions to your home. -2. Select your preferred mode of travel. This will be the default for all searches. -3. For full functionality, you should allow [Google Maps](https://www.google.com/maps) to access your location in your preferred browser. This way, `Get Me Home` and `Get Me Somewhere` will immediately pull up directions starting from your current location. +1. You'll need a Google Places API key to use the full functionality of this extension. To obtain one: + - Go to the [Google Cloud Console](https://console.cloud.google.com/) + - Create a new project or select an existing one + - Navigate to APIs & Services > [Library](https://console.cloud.google.com/apis/library) + - Enable the [**Places API**](https://console.cloud.google.com/apis/library/places-backend.googleapis.com), [**Maps JavaScript API**](https://console.cloud.google.com/apis/library/maps-backend.googleapis.com), [**Maps Static API**](https://console.cloud.google.com/apis/library/static-maps-backend.googleapis.com), [**Geocoding API**](https://console.cloud.google.com/apis/library/geocoding-backend.googleapis.com) + - Navigate to APIs & Services > [Credentials](https://console.cloud.google.com/apis/credentials) + - Create an API key under APIs & Services > Credentials + - Enter this API key in the Raycast extension preferences +2. Enter your home address in the Raycast preferences. It will be used to quickly pull up directions to your home. +3. Select your preferred mode of travel. This will be the default for all searches. +4. For full functionality, you should allow [Google Maps](https://www.google.com/maps) to access your location in your preferred browser. This way, `Get Me Home` and `Get Me Somewhere` will immediately pull up directions starting from your current location. ## Searching Use the extension's search fields as you would use the ones on Google Maps. They can take regular addresses, as well as building names. -## Autofill +## AI Tools -This extension provides the option to autofill the destination field of the `Search Google Maps` and `Get Me Somewhere` commands. The field will be filled using highlighted text or the last copied text if enabled. Enable it in the extension's settings. +This extension provides several AI tools that can be used with Raycast AI to enhance your Google Maps experience: + +### Find Places + +Find places by name or description. Simply ask Raycast AI to find places matching your query. + +**Example prompts:** + +- "Find coffee shops in San Francisco" +- "Show me pizza restaurants near downtown" +- "What are some parks in Seattle?" + +### Get Directions + +Get directions between locations with your preferred mode of transportation. + +**Example prompts:** + +- "How do I get to the Empire State Building?" +- "Get directions from Central Park to Times Square" +- "Show me walking directions to the nearest grocery store" + +### Get Place Details + +Get detailed information about a specific place, including address, phone number, website, opening hours, and reviews. + +**Example prompts:** + +- "Tell me about Golden Gate Park" +- "What are the details for Statue of Liberty?" +- "Show me information about Eiffel Tower" + +### Search Nearby Places + +Find places of a specific type near a location. + +**Example prompts:** + +- "Find restaurants near my home" +- "What are some open cafes near Central Park?" +- "Show me gas stations within 5 miles of my current location" ## Privacy diff --git a/extensions/google-maps-search/TODO.md b/extensions/google-maps-search/TODO.md new file mode 100644 index 00000000000..09b4161b815 --- /dev/null +++ b/extensions/google-maps-search/TODO.md @@ -0,0 +1,6 @@ +# TODO + +- [ ] Handle case with expired or invalid API key +- [ ] Improve performance when executing Search Places +- [ ] Make the @location tool explicitly mentioned to be used from commands +- [X] Move AI evals to ai.yaml file diff --git a/extensions/google-maps-search/ai.yaml b/extensions/google-maps-search/ai.yaml new file mode 100644 index 00000000000..0cd6469ed5f --- /dev/null +++ b/extensions/google-maps-search/ai.yaml @@ -0,0 +1,110 @@ +instructions: | + When asked about a place's details, first search for the place using searchPlaces and then get detailed information using getPlaceDetails. When asked about distance to a place, first search for the place using searchPlaces and then calculate the distance using getDistance. + +evals: + - input: "@google-maps-search find restaurants in San Francisco" + mocks: + searchPlaces: | + Here are some places matching "restaurants in San Francisco": + + - **Lazy Bear** + Address: 3416 19th St, San Francisco, CA 94110, USA + Rating: 4.5/5 + Status: Open Now + [View on Google Maps](https://www.google.com/maps/search/Lazy+Bear+3416+19th+St%2C+San+Francisco%2C+CA+94110%2C+USA) + + - **Nopa** + Address: 560 Divisadero St, San Francisco, CA 94117, USA + Rating: 4.6/5 + Status: Closed + [View on Google Maps](https://www.google.com/maps/search/Nopa+560+Divisadero+St%2C+San+Francisco%2C+CA+94117%2C+USA) + + - **State Bird Provisions** + Address: 1529 Fillmore St, San Francisco, CA 94115, USA + Rating: 4.5/5 + Status: Open Now + [View on Google Maps](https://www.google.com/maps/search/State+Bird+Provisions+1529+Fillmore+St%2C+San+Francisco%2C+CA+94115%2C+USA) + expected: + - callsTool: + name: "searchPlaces" + + - input: "@google-maps-search show me a nearby coffee shop on a map" + mocks: + searchPlaces: | + Here is a place matching "coffee shop": + + - **Damask Rose** + Address: 6606 Shattuck Ave., Oakland, CA 94609, United States + Rating: 4.9/5 + Status: Open Now + [View on Google Maps](https://www.google.com/maps/search/?api=1&query=Damask%2520Rose%25206606%2520Shattuck%2520Ave.%252C%2520Oakland%252C%2520CA%252094609%252C%2520United%2520States) + showPlacesOnMap: | + # Place on Map + + [![Map of place](https://maps.googleapis.com/maps/api/staticmap?size=600x400&format=png32&scale=2&maptype=roadmap&markers=color:red%7Clabel:A%7C37.811722,-122.267222&visible=37.811722,-122.267222&key=)](https://www.google.com/maps?q=37.8117223,-122.2672224) + + ## Place Shown + + 1. Damask Rose + expected: + - callsTool: + name: "searchPlaces" + - callsTool: + name: "showPlacesOnMap" + + - input: "@google-maps-search tell me about the Ferry Building in San Francisco" + mocks: + searchPlaces: | + Here is a place matching "Ferry Building in San Francisco": + + - **Ferry Building** + Address: Ferry Building, San Francisco, CA 94111, USA + Rating: 4.7/5 + Status: Open Now + [View on Google Maps](https://www.google.com/maps/search/?api=1&query=Ferry%2520Building%2520Ferry%2520Building%252C%2520San%2520Francisco%252C%2520CA%252094111%252C%2520USA) + getPlaceDetails: | + # Ferry Building + + **Address**: Ferry Building, San Francisco, CA 94111, USA + **Phone**: +1 415-983-8000 + **Website**: [https://www.ferrybuildingmarketplace.com/](https://www.ferrybuildingmarketplace.com/) + **Rating**: ★★★★★ (4.7) based on 25,413 reviews + **Price Level**: $$ + + **Status**: Open Now + + **Opening Hours**: + - Monday: 7:00 AM – 10:00 PM + - Tuesday: 7:00 AM – 10:00 PM + - Wednesday: 7:00 AM – 10:00 PM + - Thursday: 7:00 AM – 10:00 PM + - Friday: 7:00 AM – 10:00 PM + - Saturday: 8:00 AM – 10:00 PM + - Sunday: 8:00 AM – 10:00 PM + + **Categories**: tourist_attraction, food, point_of_interest, establishment + + **Links**: + - [View on Google Maps](https://www.google.com/maps/search/Ferry+Building+Ferry+Building%2C+San+Francisco%2C+CA+94111%2C+USA) + - [Get Directions](https://www.google.com/maps/dir/?api=1&destination=Ferry+Building%2C+San+Francisco%2C+CA+94111%2C+USA&travelmode=driving) + expected: + - callsTool: + name: "searchPlaces" + - callsTool: + name: "getPlaceDetails" + + - input: "@google-maps-search how do I get from Fisherman's Wharf to Alcatraz Island?" + mocks: + getDirections: | + ## Directions to Alcatraz Island + + From: Fisherman's Wharf + To: Alcatraz Island + Mode: Driving + + [Open Directions in Google Maps](https://www.google.com/maps/dir/?api=1&origin=Fisherman%27s+Wharf&destination=Alcatraz+Island&travelmode=driving) + + You can view turn-by-turn directions, traffic information, and estimated travel time by opening the link in Google Maps. + expected: + - callsTool: + name: "getDirections" diff --git a/extensions/google-maps-search/assets/no-view.png b/extensions/google-maps-search/assets/no-view.png new file mode 100644 index 00000000000..54bd6627e00 Binary files /dev/null and b/extensions/google-maps-search/assets/no-view.png differ diff --git a/extensions/google-maps-search/package-lock.json b/extensions/google-maps-search/package-lock.json index 0e23ccc242a..c05f132d479 100644 --- a/extensions/google-maps-search/package-lock.json +++ b/extensions/google-maps-search/package-lock.json @@ -7,16 +7,452 @@ "name": "google-maps-search", "license": "MIT", "dependencies": { - "@raycast/api": "^1.80.0" + "@googlemaps/google-maps-services-js": "^3.4.0", + "@raycast/api": "^1.97.1", + "@raycast/utils": "^1.19.1" }, "devDependencies": { "@raycast/eslint-config": "^1.0.5", - "@types/node": "^18.8.3", - "@types/react": "^18.0.9", + "@types/node": "^22.13.10", + "@types/react": "^19.0.10", "eslint": "^8.22.0", "typescript": "^4.7.4" } }, + "node_modules/@electron/get": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz", + "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "debug": "^4.1.1", + "env-paths": "^2.2.0", + "fs-extra": "^8.1.0", + "got": "^11.8.5", + "progress": "^2.0.3", + "semver": "^6.2.0", + "sumchecker": "^3.0.1" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "global-agent": "^3.0.0" + } + }, + "node_modules/@electron/get/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "optional": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.1.tgz", + "integrity": "sha512-kfYGy8IdzTGy+z0vFGvExZtxkFlA4zAxgKEahG9KE1ScBjpQnFsNOX8KTU5ojNru5ed5CVoJYXFtoxaq5nFbjQ==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.1.tgz", + "integrity": "sha512-dp+MshLYux6j/JjdqVLnMglQlFu+MuVeNrmT5nk6q07wNhCdSnB7QZj+7G8VMUGh1q+vj2Bq8kRsuyA00I/k+Q==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.1.tgz", + "integrity": "sha512-50tM0zCJW5kGqgG7fQ7IHvQOcAn9TKiVRuQ/lN0xR+T2lzEFvAi1ZcS8DiksFcEpf1t/GYOeOfCAgDHFpkiSmA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.1.tgz", + "integrity": "sha512-GCj6WfUtNldqUzYkN/ITtlhwQqGWu9S45vUXs7EIYf+7rCiiqH9bCloatO9VhxsL0Pji+PF4Lz2XXCES+Q8hDw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.1.tgz", + "integrity": "sha512-5hEZKPf+nQjYoSr/elb62U19/l1mZDdqidGfmFutVUjjUZrOazAtwK+Kr+3y0C/oeJfLlxo9fXb1w7L+P7E4FQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.1.tgz", + "integrity": "sha512-hxVnwL2Dqs3fM1IWq8Iezh0cX7ZGdVhbTfnOy5uURtao5OIVCEyj9xIzemDi7sRvKsuSdtCAhMKarxqtlyVyfA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.1.tgz", + "integrity": "sha512-1MrCZs0fZa2g8E+FUo2ipw6jw5qqQiH+tERoS5fAfKnRx6NXH31tXBKI3VpmLijLH6yriMZsxJtaXUyFt/8Y4A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.1.tgz", + "integrity": "sha512-0IZWLiTyz7nm0xuIs0q1Y3QWJC52R8aSXxe40VUxm6BB1RNmkODtW6LHvWRrGiICulcX7ZvyH6h5fqdLu4gkww==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.1.tgz", + "integrity": "sha512-NdKOhS4u7JhDKw9G3cY6sWqFcnLITn6SqivVArbzIaf3cemShqfLGHYMx8Xlm/lBit3/5d7kXvriTUGa5YViuQ==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.1.tgz", + "integrity": "sha512-jaN3dHi0/DDPelk0nLcXRm1q7DNJpjXy7yWaWvbfkPvI+7XNSc/lDOnCLN7gzsyzgu6qSAmgSvP9oXAhP973uQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.1.tgz", + "integrity": "sha512-OJykPaF4v8JidKNGz8c/q1lBO44sQNUQtq1KktJXdBLn1hPod5rE/Hko5ugKKZd+D2+o1a9MFGUEIUwO2YfgkQ==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.1.tgz", + "integrity": "sha512-nGfornQj4dzcq5Vp835oM/o21UMlXzn79KobKlcs3Wz9smwiifknLy4xDCLUU0BWp7b/houtdrgUz7nOGnfIYg==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.1.tgz", + "integrity": "sha512-1osBbPEFYwIE5IVB/0g2X6i1qInZa1aIoj1TdL4AaAb55xIIgbg8Doq6a5BzYWgr+tEcDzYH67XVnTmUzL+nXg==", + "cpu": [ + "mips64el" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.1.tgz", + "integrity": "sha512-/6VBJOwUf3TdTvJZ82qF3tbLuWsscd7/1w+D9LH0W/SqUgM5/JJD0lrJ1fVIfZsqB6RFmLCe0Xz3fmZc3WtyVg==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.1.tgz", + "integrity": "sha512-nSut/Mx5gnilhcq2yIMLMe3Wl4FK5wx/o0QuuCLMtmJn+WeWYoEGDN1ipcN72g1WHsnIbxGXd4i/MF0gTcuAjQ==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.1.tgz", + "integrity": "sha512-cEECeLlJNfT8kZHqLarDBQso9a27o2Zd2AQ8USAEoGtejOrCYHNtKP8XQhMDJMtthdF4GBmjR2au3x1udADQQQ==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.1.tgz", + "integrity": "sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.1.tgz", + "integrity": "sha512-O96poM2XGhLtpTh+s4+nP7YCCAfb4tJNRVZHfIE7dgmax+yMP2WgMd2OecBuaATHKTHsLWHQeuaxMRnCsH8+5g==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.1.tgz", + "integrity": "sha512-X53z6uXip6KFXBQ+Krbx25XHV/NCbzryM6ehOAeAil7X7oa4XIq+394PWGnwaSQ2WRA0KI6PUO6hTO5zeF5ijA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.1.tgz", + "integrity": "sha512-Na9T3szbXezdzM/Kfs3GcRQNjHzM6GzFBeU1/6IV/npKP5ORtp9zbQjvkDJ47s6BCgaAZnnnu/cY1x342+MvZg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.1.tgz", + "integrity": "sha512-T3H78X2h1tszfRSf+txbt5aOp/e7TAz3ptVKu9Oyir3IAOFPGV6O9c2naym5TOriy1l0nNf6a4X5UXRZSGX/dw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.1.tgz", + "integrity": "sha512-2H3RUvcmULO7dIE5EWJH8eubZAI4xw54H1ilJnRNZdeo8dTADEZ21w6J22XBkXqGJbe0+wnNJtw3UXRoLJnFEg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.1.tgz", + "integrity": "sha512-GE7XvrdOzrb+yVKB9KsRMq+7a2U/K5Cf/8grVFRAGJmfADr/e/ODQ134RK2/eeHqYV5eQRFxb1hY7Nr15fv1NQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.1.tgz", + "integrity": "sha512-uOxSJCIcavSiT6UnBhBzE8wy3n0hOkJsBOzy7HDAuTDE++1DJMRRVCPGisULScHL+a/ZwdXPpXD3IyFKjA7K8A==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.1.tgz", + "integrity": "sha512-Y1EQdcfwMSeQN/ujR5VayLOJ1BHaK+ssyk0AEzPjC+t1lITgsnccPqFjb6V+LsTp/9Iov4ysfjxLaGJ9RPtkVg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -52,6 +488,28 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@googlemaps/google-maps-services-js": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@googlemaps/google-maps-services-js/-/google-maps-services-js-3.4.0.tgz", + "integrity": "sha512-M1G+Jl4ri9YIODxC+RwvW4UkonTQ+ZFE5gjdIrKP/4/vYG2q2dDN1IgTp03I2MI0eGQs2FmQlxGJ0lBaZ5Ysyw==", + "license": "Apache-2.0", + "dependencies": { + "@googlemaps/url-signature": "^1.0.4", + "agentkeepalive": "^4.1.0", + "axios": "^1.5.1", + "query-string": "<8.x", + "retry-axios": "<3.x" + } + }, + "node_modules/@googlemaps/url-signature": { + "version": "1.0.40", + "resolved": "https://registry.npmjs.org/@googlemaps/url-signature/-/url-signature-1.0.40.tgz", + "integrity": "sha512-Gme3JxGZWQ4NVpATajSpS2/inQzhUxRvr/FK6IFpcC7AHOAmx8blI0y1/Qi2jqil+WoQ3TkEqq/MaKVtuV68RQ==", + "license": "Apache-2.0", + "dependencies": { + "crypto-js": "^4.2.0" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.10.4", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz", @@ -82,110 +540,542 @@ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, + "node_modules/@inquirer/checkbox": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.3.tgz", + "integrity": "sha512-KU1MGwf24iABJjGESxhyj+/rlQYSRoCfcuHDEHXfZ1DENmbuSRfyrUb+LLjHoee5TNOFKwaFxDXc5/zRwJUPMQ==", + "license": "MIT", "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" + "@inquirer/core": "^10.1.8", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", + "ansi-escapes": "^4.3.2", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, + "node_modules/@inquirer/confirm": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.7.tgz", + "integrity": "sha512-Xrfbrw9eSiHb+GsesO8TQIeHSMTP0xyvTCeeYevgZ4sKW+iz9w/47bgfG9b0niQm+xaLY2EWPBINUPldLwvYiw==", + "license": "MIT", "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5" }, "engines": { - "node": ">= 8" + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@raycast/api": { - "version": "1.80.0", - "resolved": "https://registry.npmjs.org/@raycast/api/-/api-1.80.0.tgz", - "integrity": "sha512-SBcfW35J0Q2wGD1ONmTHkyj743NZ6NCD7yRXpoMSCGHtblYXk3xi84+tEqpQeEm2M79ikMGLPTrgcNQfK1XdrQ==", - "hasInstallScript": true, + "node_modules/@inquirer/core": { + "version": "10.1.8", + "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.8.tgz", + "integrity": "sha512-HpAqR8y715zPpM9e/9Q+N88bnGwqqL8ePgZ0SMv/s3673JLMv3bIkoivGmjPqXlEgisUksSXibweQccUwEx4qQ==", "license": "MIT", "dependencies": { - "@types/node": "^20.8.10", - "@types/react": "^18.3.3", - "react": "18.3.1" + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", + "ansi-escapes": "^4.3.2", + "cli-width": "^4.1.0", + "mute-stream": "^2.0.0", + "signal-exit": "^4.1.0", + "wrap-ansi": "^6.2.0", + "yoctocolors-cjs": "^2.1.2" }, - "bin": { - "ray": "bin/ray" + "engines": { + "node": ">=18" }, "peerDependencies": { - "@types/node": "20.8.10", - "@types/react": "18.3.3", - "react-devtools": "5.2.0" + "@types/node": ">=18" }, "peerDependenciesMeta": { "@types/node": { "optional": true - }, - "@types/react": { - "optional": true - }, - "react-devtools": { - "optional": true } } }, - "node_modules/@raycast/api/node_modules/@types/node": { - "version": "20.14.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.14.tgz", - "integrity": "sha512-d64f00982fS9YoOgJkAMolK7MN8Iq3TDdVjchbYHdEmjth/DHowx82GnoA+tVUAN+7vxfYUgAzi+JXbKNd2SDQ==", + "node_modules/@inquirer/core/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "license": "MIT", "dependencies": { - "undici-types": "~5.26.4" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/@raycast/eslint-config": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@raycast/eslint-config/-/eslint-config-1.0.5.tgz", - "integrity": "sha512-oxpj+3/zQ5aB5+sH9BriiiTcwkR9+ERpfBDJGpqe6eiveNjKRJe5JVt5lHPyeghLF0fl86GhQz9hnvXbuIMJ8g==", - "dev": true, + "node_modules/@inquirer/editor": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.8.tgz", + "integrity": "sha512-UkGKbMFlQw5k4ZLjDwEi5z8NIVlP/3DAlLHta0o0pSsdpPThNmPtUL8mvGCHUaQtR+QrxR9yRYNWgKMsHkfIUA==", + "license": "MIT", "dependencies": { - "@raycast/eslint-plugin": "^1.0.4", - "@rushstack/eslint-patch": "^1.2.0", - "@typescript-eslint/eslint-plugin": "^5.0.0", - "@typescript-eslint/parser": "^5.0.0", - "eslint-config-prettier": "^8.3.0" + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5", + "external-editor": "^3.1.0" + }, + "engines": { + "node": ">=18" }, "peerDependencies": { - "eslint": ">=7", - "prettier": ">=2", - "typescript": ">=4" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@raycast/eslint-plugin": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@raycast/eslint-plugin/-/eslint-plugin-1.0.4.tgz", - "integrity": "sha512-d94MpqETpOOEKi09kwkMRNBzwPDYkJn9UPuhVoXK+HwjXtUevGzJAhd7xoxOXzlh5aL854JqN75Y5DbkyJjr0w==", - "dev": true, + "node_modules/@inquirer/expand": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.10.tgz", + "integrity": "sha512-leyBouGJ77ggv51Jb/OJmLGGnU2HYc13MZ2iiPNLwe2VgFgZPVqsrRWSa1RAHKyazjOyvSNKLD1B2K7A/iWi1g==", + "license": "MIT", "dependencies": { - "@typescript-eslint/utils": "^5.48.1", - "title-case": "^3.0.3" + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" }, "peerDependencies": { - "eslint": ">=7" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/figures": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.11.tgz", + "integrity": "sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@inquirer/input": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.7.tgz", + "integrity": "sha512-rCQAipJNA14UTH84df/z4jDJ9LZ54H6zzuCAi7WZ0qVqx3CSqLjfXAMd5cpISIxbiHVJCPRB81gZksq6CZsqDg==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/number": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.10.tgz", + "integrity": "sha512-GLsdnxzNefjCJUmWyjaAuNklHgDpCTL4RMllAVhVvAzBwRW9g38eZ5tWgzo1lirtSDTpsh593hqXVhxvdrjfwA==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/password": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.10.tgz", + "integrity": "sha512-JC538ujqeYKkFqLoWZ0ILBteIUO2yajBMVEUZSxjl9x6fiEQtM+I5Rca7M2D8edMDbyHLnXifGH1hJZdh8V5rA==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5", + "ansi-escapes": "^4.3.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/prompts": { + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.3.3.tgz", + "integrity": "sha512-QS1AQgJ113iE/nmym03yKZKHvGjVWwkGZT3B1yKrrMG0bJKQg1jUkntFP8aPd2FUQzu/nga7QU2eDpzIP5it0Q==", + "license": "MIT", + "dependencies": { + "@inquirer/checkbox": "^4.1.3", + "@inquirer/confirm": "^5.1.7", + "@inquirer/editor": "^4.2.8", + "@inquirer/expand": "^4.0.10", + "@inquirer/input": "^4.1.7", + "@inquirer/number": "^3.0.10", + "@inquirer/password": "^4.0.10", + "@inquirer/rawlist": "^4.0.10", + "@inquirer/search": "^3.0.10", + "@inquirer/select": "^4.0.10" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/rawlist": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.0.10.tgz", + "integrity": "sha512-vOQbQkmhaCsF2bUmjoyRSZJBz77UnIF/F3ZS2LMgwbgyaG2WgwKHh0WKNj0APDB72WDbZijhW5nObQbk+TnbcA==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/search": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.10.tgz", + "integrity": "sha512-EAVKAz6P1LajZOdoL+R+XC3HJYSU261fbJzO4fCkJJ7UPFcm+nP+gzC+DDZWsb2WK9PQvKsnaKiNKsY8B6dBWQ==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.8", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/select": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.0.10.tgz", + "integrity": "sha512-Tg8S9nESnCfISu5tCZSuXpXq0wHuDVimj7xyHstABgR34zcJnLdq/VbjB2mdZvNAMAehYBnNzSjxB06UE8LLAA==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.8", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", + "ansi-escapes": "^4.3.2", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/type": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.5.tgz", + "integrity": "sha512-ZJpeIYYueOz/i/ONzrfof8g89kNdO2hjGuvULROo3O8rlB2CRtSseE5KeirnyE4t/thAn/EwvS/vuQeJCn+NZg==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@oclif/core": { + "version": "4.2.9", + "resolved": "https://registry.npmjs.org/@oclif/core/-/core-4.2.9.tgz", + "integrity": "sha512-cIlvpefLtorcyvnvJiOmYBqn6J6qdp/06tk54p2MddGEr0gnA7EIaQXM2UtRjf4ryDVCbIo+8IFRsW8Flt0uGA==", + "license": "MIT", + "dependencies": { + "ansi-escapes": "^4.3.2", + "ansis": "^3.17.0", + "clean-stack": "^3.0.1", + "cli-spinners": "^2.9.2", + "debug": "^4.4.0", + "ejs": "^3.1.10", + "get-package-type": "^0.1.0", + "globby": "^11.1.0", + "indent-string": "^4.0.0", + "is-wsl": "^2.2.0", + "lilconfig": "^3.1.3", + "minimatch": "^9.0.5", + "semver": "^7.6.3", + "string-width": "^4.2.3", + "supports-color": "^8", + "widest-line": "^3.1.0", + "wordwrap": "^1.0.0", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@oclif/core/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==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@oclif/core/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@oclif/core/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/@oclif/plugin-autocomplete": { + "version": "3.2.25", + "resolved": "https://registry.npmjs.org/@oclif/plugin-autocomplete/-/plugin-autocomplete-3.2.25.tgz", + "integrity": "sha512-xb0fiyGi78OGr7l4xbRe/rlIaFA8WgntIrn7FC/fnDpgq4wqmWLgYQ7LImE+eAIMCL9ozw6Cy915AaVAw6bxiA==", + "license": "MIT", + "dependencies": { + "@oclif/core": "^4", + "ansis": "^3.16.0", + "debug": "^4.4.0", + "ejs": "^3.1.10" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@oclif/plugin-help": { + "version": "6.2.26", + "resolved": "https://registry.npmjs.org/@oclif/plugin-help/-/plugin-help-6.2.26.tgz", + "integrity": "sha512-5KdldxEizbV3RsHOddN4oMxrX/HL6z79S94tbxEHVZ/dJKDWzfyCpgC9axNYqwmBF2pFZkozl/l7t3hCGOdalw==", + "license": "MIT", + "dependencies": { + "@oclif/core": "^4" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@oclif/plugin-not-found": { + "version": "3.2.45", + "resolved": "https://registry.npmjs.org/@oclif/plugin-not-found/-/plugin-not-found-3.2.45.tgz", + "integrity": "sha512-iDNYUpS6LPoPd3Tm5IqwmQC+bbNdFSJoCYdKK1T6VVjujbIXyoSK/QUv62Y91aoJJebE/tzagcwCs1P89m+m7g==", + "license": "MIT", + "dependencies": { + "@inquirer/prompts": "^7.3.2", + "@oclif/core": "^4", + "ansis": "^3.17.0", + "fast-levenshtein": "^3.0.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@oclif/plugin-not-found/node_modules/fast-levenshtein": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-3.0.0.tgz", + "integrity": "sha512-hKKNajm46uNmTlhHSyZkmToAc56uZJwYq7yrciZjqOxnlfQwERDQJmHPUp7m1m9wx8vgOe8IaCKZ5Kv2k1DdCQ==", + "license": "MIT", + "dependencies": { + "fastest-levenshtein": "^1.0.7" + } + }, + "node_modules/@raycast/api": { + "version": "1.97.1", + "resolved": "https://registry.npmjs.org/@raycast/api/-/api-1.97.1.tgz", + "integrity": "sha512-12ZS3h0cJi2bA+Yh/fjk2Dy4LlmzwK/JpU4uX8BqFvY6yE5+mZ5zGIRWxtwA2CJD8J6coDIr0/G9woJr2wGMfg==", + "license": "MIT", + "dependencies": { + "@oclif/core": "^4.0.33", + "@oclif/plugin-autocomplete": "^3.2.10", + "@oclif/plugin-help": "^6.2.18", + "@oclif/plugin-not-found": "^3.2.28", + "@types/node": "22.13.10", + "@types/react": "19.0.10", + "esbuild": "^0.25.1", + "react": "19.0.0" + }, + "bin": { + "ray": "bin/run.js" + }, + "engines": { + "node": ">=22.14.0" + }, + "peerDependencies": { + "@types/node": "22.13.10", + "@types/react": "19.0.10", + "react-devtools": "6.1.1" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@types/react": { + "optional": true + }, + "react-devtools": { + "optional": true + } + } + }, + "node_modules/@raycast/eslint-config": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@raycast/eslint-config/-/eslint-config-1.0.5.tgz", + "integrity": "sha512-oxpj+3/zQ5aB5+sH9BriiiTcwkR9+ERpfBDJGpqe6eiveNjKRJe5JVt5lHPyeghLF0fl86GhQz9hnvXbuIMJ8g==", + "dev": true, + "dependencies": { + "@raycast/eslint-plugin": "^1.0.4", + "@rushstack/eslint-patch": "^1.2.0", + "@typescript-eslint/eslint-plugin": "^5.0.0", + "@typescript-eslint/parser": "^5.0.0", + "eslint-config-prettier": "^8.3.0" + }, + "peerDependencies": { + "eslint": ">=7", + "prettier": ">=2", + "typescript": ">=4" + } + }, + "node_modules/@raycast/eslint-plugin": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@raycast/eslint-plugin/-/eslint-plugin-1.0.4.tgz", + "integrity": "sha512-d94MpqETpOOEKi09kwkMRNBzwPDYkJn9UPuhVoXK+HwjXtUevGzJAhd7xoxOXzlh5aL854JqN75Y5DbkyJjr0w==", + "dev": true, + "dependencies": { + "@typescript-eslint/utils": "^5.48.1", + "title-case": "^3.0.3" + }, + "peerDependencies": { + "eslint": ">=7" } }, "node_modules/@raycast/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { @@ -288,45 +1178,142 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@rushstack/eslint-patch": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz", - "integrity": "sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==", + "node_modules/@raycast/utils": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/@raycast/utils/-/utils-1.19.1.tgz", + "integrity": "sha512-/udUGcTZCgZZwzesmjBkqG5naQZTD/ZLHbqRwkWcF+W97vf9tr9raxKyQjKsdZ17OVllw2T3sHBQsVUdEmCm2g==", + "license": "MIT", + "dependencies": { + "cross-fetch": "^3.1.6", + "dequal": "^2.0.3", + "object-hash": "^3.0.0", + "signal-exit": "^4.0.2", + "stream-chain": "^2.2.5", + "stream-json": "^1.8.0" + }, + "peerDependencies": { + "@raycast/api": ">=1.69.0" + } + }, + "node_modules/@rushstack/eslint-patch": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz", + "integrity": "sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==", "dev": true }, + "node_modules/@sindresorhus/is": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, + "node_modules/@szmarczak/http-timer": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", + "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "defer-to-connect": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@types/cacheable-request": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", + "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@types/http-cache-semantics": "*", + "@types/keyv": "^3.1.4", + "@types/node": "*", + "@types/responselike": "^1.0.0" + } + }, + "node_modules/@types/http-cache-semantics": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz", + "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==", + "license": "MIT", + "optional": true, + "peer": true + }, "node_modules/@types/json-schema": { "version": "7.0.11", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", "dev": true }, - "node_modules/@types/node": { - "version": "18.8.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.3.tgz", - "integrity": "sha512-0os9vz6BpGwxGe9LOhgP/ncvYN5Tx1fNcd2TM3rD/aCGBkysb+ZWpXEocG24h6ZzOi13+VB8HndAQFezsSOw1w==", - "dev": true + "node_modules/@types/keyv": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", + "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@types/node": "*" + } }, - "node_modules/@types/prop-types": { - "version": "15.7.4", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.4.tgz", - "integrity": "sha512-rZ5drC/jWjrArrS8BR6SIr4cWpW09RNTYt9AMZo3Jwwif+iacXAqgVjm0B0Bv/S1jhDXKHqRVNCbACkJ89RAnQ==" + "node_modules/@types/node": { + "version": "22.13.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", + "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.20.0" + } }, "node_modules/@types/react": { - "version": "18.3.3", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.3.tgz", - "integrity": "sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==", + "version": "19.0.10", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.10.tgz", + "integrity": "sha512-JuRQ9KXLEjaUNjTWpzuR231Z2WpIwczOkBEIvbHNCzQefFIT0L8IqE6NV6ULLyC1SI/i234JnDoMkfg+RjQj2g==", "license": "MIT", "dependencies": { - "@types/prop-types": "*", "csstype": "^3.0.2" } }, + "node_modules/@types/responselike": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", + "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/semver": { "version": "7.3.13", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", "dev": true }, + "node_modules/@types/yauzl": { + "version": "2.10.3", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", + "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "5.33.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.33.1.tgz", @@ -532,6 +1519,18 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, + "node_modules/agentkeepalive": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz", + "integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==", + "license": "MIT", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -548,11 +1547,99 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ansi-align": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz", + "integrity": "sha512-TdlOggdA/zURfMYa7ABC66j+oqfMew58KpJMbUlH3bcZP1b+cBHIHDDn5uH9INsxrHBPjsqM0tDB4jPTF/vgJA==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "string-width": "^2.0.0" + } + }, + "node_modules/ansi-align/node_modules/ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/ansi-align/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/ansi-align/node_modules/string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ansi-align/node_modules/strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, "engines": { "node": ">=8" } @@ -561,7 +1648,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -572,6 +1658,15 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/ansis": { + "version": "3.17.0", + "resolved": "https://registry.npmjs.org/ansis/-/ansis-3.17.0.tgz", + "integrity": "sha512-0qWUglt9JEqLFr3w1I1pbrChn1grhaiAR2ocX1PP/flRmxgtwTzPFFFnfIlD6aMOLQZgSuCRlidD70lvx8yhzg==", + "license": "ISC", + "engines": { + "node": ">=14" + } + }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -582,160 +1677,919 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, "engines": { "node": ">=8" } }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.2.tgz", + "integrity": "sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/boolean": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", + "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/boxen": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz", + "integrity": "sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ansi-align": "^2.0.0", + "camelcase": "^4.0.0", + "chalk": "^2.0.1", + "cli-boxes": "^1.0.0", + "string-width": "^2.0.0", + "term-size": "^1.2.0", + "widest-line": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/boxen/node_modules/ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/boxen/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/boxen/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/boxen/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/boxen/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/boxen/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/boxen/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/boxen/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/boxen/node_modules/string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/boxen/node_modules/strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/boxen/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/boxen/node_modules/widest-line": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.1.tgz", + "integrity": "sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "string-width": "^2.1.1" + }, + "engines": { + "node": ">=4" + } }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": "*" + } + }, + "node_modules/cacheable-lookup": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", + "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10.6.0" + } + }, + "node_modules/cacheable-request": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", + "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^4.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/capture-stack-trace": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.2.tgz", + "integrity": "sha512-X/WM2UQs6VMHUtjUDnZTRI+i1crWteJySFzr9UpGoQa4WQffXVTTXuekjl7TjZRlcF2XfjgITT0HxZ9RnxeT0w==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", + "license": "MIT" + }, + "node_modules/ci-info": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.6.0.tgz", + "integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/clean-stack": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-3.0.1.tgz", + "integrity": "sha512-lR9wNiMRcVQjSB3a7xXGLuz4cr4wJuuXlaAEbRutGowQTmlp7R72/DOgN21e8jdwblMWl9UOJMJXarX94pzKdg==", + "license": "MIT", + "dependencies": { + "escape-string-regexp": "4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-boxes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", + "integrity": "sha512-3Fo5wu8Ytle8q9iCzS4D2MWVL2X7JVWRiS1BnXbTFDhS9c/REkM9vd1AmabsoZoY5/dGi5TT9iKL8Kb6DeBRQg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-width": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz", + "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==", + "license": "ISC", + "engines": { + "node": ">= 12" + } + }, + "node_modules/clone-response": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "mimic-response": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "node_modules/configstore": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.5.tgz", + "integrity": "sha512-nlOhI4+fdzoK5xmJ+NY+1gZK56bwEaWZr8fYuXohZ9Vkc1o3a4T/R3M+yE/w7x/ZVJ1zF8c+oaOvF0dztdUgmA==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "dependencies": { + "dot-prop": "^4.2.1", + "graceful-fs": "^4.1.2", + "make-dir": "^1.0.0", + "unique-string": "^1.0.0", + "write-file-atomic": "^2.0.0", + "xdg-basedir": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/create-error-class": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", + "integrity": "sha512-gYTKKexFO3kh200H1Nit76sRwRtOY32vQd3jpAQKpLtZqyNsSQNfI4N7o3eP2wUjV35pTWKRYqFUDBvUha/Pkw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "capture-stack-trace": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cross-fetch": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.2.0.tgz", + "integrity": "sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q==", + "license": "MIT", + "dependencies": { + "node-fetch": "^2.7.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crypto-js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==", + "license": "MIT" + }, + "node_modules/crypto-random-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", + "integrity": "sha512-GsVpkFPlycH7/fRR7Dhcmnoii54gV1nz7y4CWyeFS14N+JVBBhY+r8amRHE4BwSYal7BPTDp8isvAlCxyFt3Hg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/csstype": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.10.tgz", + "integrity": "sha512-2u44ZG2OcNUO9HDp/Jl8C07x6pU/eTR3ncV91SiK3dhG9TWvRVsCoJw14Ckx5DgWkzGA3waZWO3d7pgqpUI/XA==" + }, + "node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decompress-response/node_modules/mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/default-gateway": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", + "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/defer-to-connect": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + } + }, + "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==", + "license": "MIT", + "optional": true, + "peer": 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-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dot-prop": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.1.tgz", + "integrity": "sha512-l0p4+mIuJIua0mhxGoh4a+iNL9bmeK5DvnSVQa6T0OhrVmaEa1XScX5Etc673FePCJOArq/4Pa2cLGODUWTPOQ==", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { - "fill-range": "^7.1.1" + "is-obj": "^1.0.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, "engines": { - "node": ">=6" + "node": ">= 0.4" } }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, + "node_modules/duplexer3": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", + "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true + }, + "node_modules/ejs": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "license": "Apache-2.0", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "jake": "^10.8.5" }, - "engines": { - "node": ">=10" + "bin": { + "ejs": "bin/cli.js" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, + "node_modules/electron": { + "version": "23.3.13", + "resolved": "https://registry.npmjs.org/electron/-/electron-23.3.13.tgz", + "integrity": "sha512-BaXtHEb+KYKLouUXlUVDa/lj9pj4F5kiE0kwFdJV84Y2EU7euIDgPthfKtchhr5MVHmjtavRMIV/zAwEiSQ9rQ==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "peer": true, "dependencies": { - "color-name": "~1.1.4" + "@electron/get": "^2.0.0", + "@types/node": "^16.11.26", + "extract-zip": "^2.0.1" + }, + "bin": { + "electron": "cli.js" }, "engines": { - "node": ">=7.0.0" + "node": ">= 12.20.55" } }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "node_modules/electron/node_modules/@types/node": { + "version": "16.18.126", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.126.tgz", + "integrity": "sha512-OTcgaiwfGFBKacvfwuHzzn1KLxH/er8mluiy8/uM3sGXHaRe73RrSIj01jow9t4kJEW633Ov+cOexXeiApTyAw==", + "license": "MIT", + "optional": true, + "peer": true }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "license": "MIT", + "optional": true, + "peer": true, "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, + "once": "^1.4.0" + } + }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "license": "MIT", + "optional": true, + "peer": true, "engines": { - "node": ">= 8" + "node": ">=6" } }, - "node_modules/csstype": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.10.tgz", - "integrity": "sha512-2u44ZG2OcNUO9HDp/Jl8C07x6pU/eTR3ncV91SiK3dhG9TWvRVsCoJw14Ckx5DgWkzGA3waZWO3d7pgqpUI/XA==" + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, + "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==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", "dependencies": { - "ms": "2.1.2" + "es-errors": "^1.3.0" }, "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "node": ">= 0.4" } }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", "dependencies": { - "path-type": "^4.0.0" + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" }, "engines": { - "node": ">=8" + "node": ">= 0.4" } }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" + "node_modules/es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/esbuild": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.1.tgz", + "integrity": "sha512-BGO5LtrGC7vxnqucAe/rmvKdJllfGaYWdyABvyMoXQlfYMb2bbRuReWR5tEGE//4LcNJj9XrkovTqNYRFZHAMQ==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" }, "engines": { - "node": ">=6.0.0" + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.1", + "@esbuild/android-arm": "0.25.1", + "@esbuild/android-arm64": "0.25.1", + "@esbuild/android-x64": "0.25.1", + "@esbuild/darwin-arm64": "0.25.1", + "@esbuild/darwin-x64": "0.25.1", + "@esbuild/freebsd-arm64": "0.25.1", + "@esbuild/freebsd-x64": "0.25.1", + "@esbuild/linux-arm": "0.25.1", + "@esbuild/linux-arm64": "0.25.1", + "@esbuild/linux-ia32": "0.25.1", + "@esbuild/linux-loong64": "0.25.1", + "@esbuild/linux-mips64el": "0.25.1", + "@esbuild/linux-ppc64": "0.25.1", + "@esbuild/linux-riscv64": "0.25.1", + "@esbuild/linux-s390x": "0.25.1", + "@esbuild/linux-x64": "0.25.1", + "@esbuild/netbsd-arm64": "0.25.1", + "@esbuild/netbsd-x64": "0.25.1", + "@esbuild/openbsd-arm64": "0.25.1", + "@esbuild/openbsd-x64": "0.25.1", + "@esbuild/sunos-x64": "0.25.1", + "@esbuild/win32-arm64": "0.25.1", + "@esbuild/win32-ia32": "0.25.1", + "@esbuild/win32-x64": "0.25.1" } }, "node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, "engines": { "node": ">=10" }, @@ -959,6 +2813,89 @@ "node": ">=0.10.0" } }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/execa/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC", + "optional": true, + "peer": true + }, + "node_modules/external-editor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", + "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", + "license": "MIT", + "dependencies": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/extract-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "dependencies": { + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + }, + "bin": { + "extract-zip": "cli.js" + }, + "engines": { + "node": ">= 10.17.0" + }, + "optionalDependencies": { + "@types/yauzl": "^2.9.1" + } + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -969,7 +2906,6 @@ "version": "3.2.11", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", - "dev": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -985,7 +2921,6 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, "dependencies": { "is-glob": "^4.0.1" }, @@ -1005,15 +2940,34 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, + "node_modules/fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "license": "MIT", + "engines": { + "node": ">= 4.9.1" + } + }, "node_modules/fastq": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", - "dev": true, "dependencies": { "reusify": "^1.0.4" } }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "pend": "~1.2.0" + } + }, "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -1026,11 +2980,40 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "license": "Apache-2.0", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/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==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" @@ -1039,6 +3022,15 @@ "node": ">=8" } }, + "node_modules/filter-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz", + "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", @@ -1074,18 +3066,141 @@ "integrity": "sha512-8/sOawo8tJ4QOBX8YlQBMxL8+RLZfxMQOif9o0KUKTNTjMYElWPE0r/m5VNFxTRd0NSw8qSy8dajrwX4RYI1Hw==", "dev": true }, + "node_modules/follow-redirects": { + "version": "1.15.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz", + "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, + "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==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/functional-red-black-tree": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", @@ -1118,6 +3233,39 @@ "node": ">=10.13.0" } }, + "node_modules/global-agent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", + "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "dependencies": { + "boolean": "^3.0.1", + "es6-error": "^4.1.1", + "matcher": "^3.0.0", + "roarr": "^2.15.3", + "semver": "^7.3.2", + "serialize-error": "^7.0.1" + }, + "engines": { + "node": ">=10.0" + } + }, + "node_modules/global-dirs": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", + "integrity": "sha512-NknMLn7F2J7aflwFOlGdNIuCDpN3VGoSoB+aap3KABFWbHVn1TCgFC+np23J8W2BiZbjfEw3BFBycSMv1AFblg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ini": "^1.3.4" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/globals": { "version": "13.17.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", @@ -1133,11 +3281,28 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "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", "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", @@ -1153,6 +3318,53 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/got": { + "version": "11.8.6", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", + "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=10.19.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC", + "optional": true, + "peer": true + }, "node_modules/grapheme-splitter": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", @@ -1163,16 +3375,122 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, "engines": { "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==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "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==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true + }, + "node_modules/http2-wrapper": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", + "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" + }, + "engines": { + "node": ">=10.19.0" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/humanize-ms": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/ignore": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", - "dev": true, "engines": { "node": ">= 4" } @@ -1193,15 +3511,35 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true, + "devOptional": true, "engines": { "node": ">=0.8.19" } }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -1218,20 +3556,106 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "license": "ISC", + "optional": true, + "peer": true + }, + "node_modules/internal-ip": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-6.2.0.tgz", + "integrity": "sha512-D8WGsR6yDt8uq7vDMu7mjcR+yRMm3dW8yufyChmszWRjcSHuxLBkR3GdS2HZAjodsaGuCvXeEJpueisXJULghg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "default-gateway": "^6.0.0", + "ipaddr.js": "^1.9.1", + "is-ip": "^3.1.0", + "p-event": "^4.2.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/internal-ip?sponsor=1" + } + }, + "node_modules/ip-regex": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", + "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-ci": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.1.tgz", + "integrity": "sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ci-info": "^1.5.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, "engines": { "node": ">=0.10.0" } }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, "dependencies": { "is-extglob": "^2.1.1" }, @@ -1239,27 +3663,151 @@ "node": ">=0.10.0" } }, + "node_modules/is-installed-globally": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz", + "integrity": "sha512-ERNhMg+i/XgDwPIPF3u24qpajVreaiSuvpb1Uu0jugw7KKcxGyCX8cgp8P5fwTmAuXku6beDHHECdKArjlg7tw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "global-dirs": "^0.1.0", + "is-path-inside": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/is-ip": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-ip/-/is-ip-3.1.0.tgz", + "integrity": "sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ip-regex": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-npm": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz", + "integrity": "sha512-9r39FIr3d+KD9SbX0sfMsHzb5PP3uimOiwr3YupUaUFG4W0l1U57Rx3utpttV7qz5U3jmrO5auUa04LU9pyHsg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.12.0" } }, + "node_modules/is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha512-qhsCR/Esx4U4hg/9I19OVUAJkGWtjRYHMRgUMZE2TDdj+Ag+kttZanLupfddNyglzz50cUlmWzUaI37GDfNx/g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "path-is-inside": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-redirect": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", + "integrity": "sha512-cr/SlUEe5zOGmzvj9bUyC4LVvkNVAXu4GytXLNMr1pny+a65MpQ9IJzFHD5vi7FyJgb4qt27+eS3TuQnqB+RQw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-retry-allowed": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz", + "integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "license": "MIT", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true + "devOptional": true }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "license": "MIT" + "node_modules/jake": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", + "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", + "license": "Apache-2.0", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } }, "node_modules/js-yaml": { "version": "4.1.0", @@ -1273,6 +3821,14 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "license": "MIT", + "optional": true, + "peer": true + }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -1285,6 +3841,50 @@ "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", "dev": true }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "license": "ISC", + "optional": true, + "peer": true + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "license": "MIT", + "optional": true, + "peer": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/latest-version": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz", + "integrity": "sha512-Be1YRHWWlZaSsrz2U+VInk+tO0EwLIyV+23RhWLINJYwg/UIikxjlj3MhH37/6/EDCAusjajvMkMMUXRaMWl/w==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "package-json": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -1298,6 +3898,18 @@ "node": ">= 0.8.0" } }, + "node_modules/lilconfig": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, "node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -1319,45 +3931,142 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "node_modules/make-dir": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" + "pify": "^3.0.0" }, - "bin": { - "loose-envify": "cli.js" + "engines": { + "node": ">=4" + } + }, + "node_modules/matcher": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", + "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "escape-string-regexp": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" } }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "license": "MIT", + "optional": true, + "peer": true + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, "engines": { "node": ">= 8" } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "license": "MIT", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { "node": ">=8.6" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -1365,11 +4074,31 @@ "node": "*" } }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "license": "MIT", + "optional": true, + "peer": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/mute-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz", + "integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==", + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } }, "node_modules/natural-compare": { "version": "1.4.0", @@ -1377,15 +4106,100 @@ "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", "dev": true }, + "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==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "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==", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "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==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, + "devOptional": true, "dependencies": { "wrappy": "1" } }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/optionator": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", @@ -1403,34 +4217,181 @@ "node": ">= 0.8.0" } }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, + "node_modules/os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/p-cancelable": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", + "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-event": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-4.2.0.tgz", + "integrity": "sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "p-timeout": "^3.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-timeout": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", + "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "p-finally": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/package-json": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-4.0.1.tgz", + "integrity": "sha512-q/R5GrMek0vzgoomq6rm9OX+3PQve8sLwTirmK30YB3Cu0Bbt9OX9M/SIUnroN5BGJkzwGsFwDaRGD9EwBOlCA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "got": "^6.7.1", + "registry-auth-token": "^3.0.1", + "registry-url": "^3.0.3", + "semver": "^5.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/package-json/node_modules/get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/package-json/node_modules/got": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz", + "integrity": "sha512-Y/K3EDuiQN9rTZhBvPRWMLXIKdeD1Rj0nzunfoi0Yyn5WBEbzxXKU9Ub2X41oZBagVWOBU3MuDonFMgPWQFnwg==", + "license": "MIT", + "optional": true, + "peer": true, "dependencies": { - "yocto-queue": "^0.1.0" + "create-error-class": "^3.0.0", + "duplexer3": "^0.1.4", + "get-stream": "^3.0.0", + "is-redirect": "^1.0.0", + "is-retry-allowed": "^1.0.0", + "is-stream": "^1.0.0", + "lowercase-keys": "^1.0.0", + "safe-buffer": "^5.0.1", + "timed-out": "^4.0.0", + "unzip-response": "^2.0.1", + "url-parse-lax": "^1.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=4" } }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, + "node_modules/package-json/node_modules/is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "license": "MIT", + "optional": true, + "peer": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" + } + }, + "node_modules/package-json/node_modules/lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/package-json/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "license": "ISC", + "optional": true, + "peer": true, + "bin": { + "semver": "bin/semver" } }, "node_modules/parent-module": { @@ -1463,11 +4424,19 @@ "node": ">=0.10.0" } }, + "node_modules/path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==", + "license": "(WTFPL OR MIT)", + "optional": true, + "peer": true + }, "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, + "devOptional": true, "engines": { "node": ">=8" } @@ -1476,16 +4445,22 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, "engines": { "node": ">=8" } }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "license": "MIT", + "optional": true, + "peer": true + }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, "engines": { "node": ">=8.6" }, @@ -1493,6 +4468,17 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -1502,6 +4488,17 @@ "node": ">= 0.8.0" } }, + "node_modules/prepend-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha512-PhmXi5XmoyKw1Un4E+opM2KcsJInDvKyuOumcjjw3waw86ZNjHwVUOOWLc4bCzLdcKNaWBH9e99sbWzDQsVaYg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/prettier": { "version": "2.8.7", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz", @@ -1518,6 +4515,43 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, + "node_modules/pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==", + "license": "ISC", + "optional": true, + "peer": true + }, + "node_modules/pump": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, "node_modules/punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", @@ -1527,11 +4561,28 @@ "node": ">=6" } }, + "node_modules/query-string": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-7.1.3.tgz", + "integrity": "sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg==", + "license": "MIT", + "dependencies": { + "decode-uri-component": "^0.2.2", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, "funding": [ { "type": "github", @@ -1547,18 +4598,140 @@ } ] }, + "node_modules/quick-lru": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", + "optional": true, + "peer": true, + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/rc/node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-devtools": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/react-devtools/-/react-devtools-6.1.1.tgz", + "integrity": "sha512-72islUwEOBhW/xdmA+KmUAbFKt1t0t/lFBz6N8SaJ25hCLTuAMyGnGLTbnVfpNHiChHzlLjloRTFVIRRIPF4gg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "cross-spawn": "^5.0.1", + "electron": "^23.1.2", + "internal-ip": "^6.2.0", + "minimist": "^1.2.3", + "react-devtools-core": "6.1.1", + "update-notifier": "^2.1.0" + }, + "bin": { + "react-devtools": "bin.js" + } + }, + "node_modules/react-devtools-core": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/react-devtools-core/-/react-devtools-core-6.1.1.tgz", + "integrity": "sha512-TFo1MEnkqE6hzAbaztnyR5uLTMoz6wnEWwWBsCUzNt+sVXJycuRJdDqvL078M4/h65BI/YO5XWTaxZDWVsW0fw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "shell-quote": "^1.6.1", + "ws": "^7" + } + }, + "node_modules/react-devtools/node_modules/cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "node_modules/react-devtools/node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", "license": "MIT", + "optional": true, + "peer": true, "dependencies": { - "loose-envify": "^1.1.0" + "shebang-regex": "^1.0.0" }, "engines": { "node": ">=0.10.0" } }, + "node_modules/react-devtools/node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-devtools/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, "node_modules/regexpp": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", @@ -1571,6 +4744,40 @@ "url": "https://github.com/sponsors/mysticatea" } }, + "node_modules/registry-auth-token": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.4.0.tgz", + "integrity": "sha512-4LM6Fw8eBQdwMYcES4yTnn2TqIasbXuwDx3um+QRs7S55aMKCBKBxvPXl2RiUjHwuJLTyYfxSpmfSAjQpcuP+A==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "rc": "^1.1.6", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/registry-url": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", + "integrity": "sha512-ZbgR5aZEdf4UKZVBPYIgaglBmSF2Hi94s2PcIHhRGFjKYu+chjJdYfHn4rt3hB6eCKLJ8giVIIfgMa1ehDfZKA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "rc": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-alpn": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", + "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", + "license": "MIT", + "optional": true, + "peer": true + }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -1580,11 +4787,36 @@ "node": ">=4" } }, + "node_modules/responselike": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", + "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "lowercase-keys": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/retry-axios": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-2.6.0.tgz", + "integrity": "sha512-pOLi+Gdll3JekwuFjXO3fTq+L9lzMQGcSq7M5gIjExcl3Gu1hd4XXuf5o3+LuSBsaULQH7DiNbsqPd1chVpQGQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=10.7.0" + }, + "peerDependencies": { + "axios": "*" + } + }, "node_modules/reusify": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -1605,11 +4837,29 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/roarr": { + "version": "2.15.4", + "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", + "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true, + "dependencies": { + "boolean": "^3.0.1", + "detect-node": "^2.0.4", + "globalthis": "^1.0.1", + "json-stringify-safe": "^5.0.1", + "semver-compare": "^1.0.0", + "sprintf-js": "^1.1.2" + }, + "engines": { + "node": ">=8.0" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, "funding": [ { "type": "github", @@ -1628,24 +4878,115 @@ "queue-microtask": "^1.2.2" } }, - "node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/semver-diff": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", + "integrity": "sha512-gL8F8L4ORwsS0+iQ34yCYv///jsOq0ZL7WP55d1HnJ32o7tyFYEFQZQA22mrLIacZdU6xecaBBZ+uEiffGNyXw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "semver": "^5.0.3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/semver-diff/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "license": "ISC", + "optional": true, + "peer": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/serialize-error": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", + "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "type-fest": "^0.13.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/serialize-error/node_modules/type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "license": "(MIT OR CC0-1.0)", + "optional": true, + "peer": true, "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, + "devOptional": true, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -1657,16 +4998,96 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, + "devOptional": true, "engines": { "node": ">=8" } }, + "node_modules/shell-quote": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.2.tgz", + "integrity": "sha512-AzqKpGKjrj7EM6rKVQEPpB288oCfnrEIuyoT9cyF4nmGa7V8Zk6f7RRqYisX8X9m+Q7bd632aZW4ky7EhbQztA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/split-on-first": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", + "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "license": "BSD-3-Clause", + "optional": true, + "peer": true + }, + "node_modules/stream-chain": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/stream-chain/-/stream-chain-2.2.5.tgz", + "integrity": "sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA==", + "license": "BSD-3-Clause" + }, + "node_modules/stream-json": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/stream-json/-/stream-json-1.9.1.tgz", + "integrity": "sha512-uWkjJ+2Nt/LO9Z/JyKZbMusL8Dkh97uUBTv3AJQ74y07lVahLY4eEFsPsE97pxYBwr8nnjMAIch5eqI0gPShyw==", + "license": "BSD-3-Clause", + "dependencies": { + "stream-chain": "^2.2.5" + } + }, + "node_modules/strict-uri-encode": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz", + "integrity": "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, "engines": { "node": ">=8" } @@ -1675,7 +5096,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -1683,6 +5103,28 @@ "node": ">=8" } }, + "node_modules/strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -1695,11 +5137,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/sumchecker": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", + "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "debug": "^4.1.0" + }, + "engines": { + "node": ">= 8.0" + } + }, "node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -1707,12 +5162,164 @@ "node": ">=8" } }, + "node_modules/term-size": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", + "integrity": "sha512-7dPUZQGy/+m3/wjVz3ZW5dobSoD/02NxJpoXUX0WIyjfVS3l0c+b/+9phIDFA7FHzkYtwtMFgeGZ/Y8jVTeqQQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "execa": "^0.7.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/term-size/node_modules/cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "node_modules/term-size/node_modules/execa": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", + "integrity": "sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/term-size/node_modules/get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/term-size/node_modules/is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/term-size/node_modules/npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "path-key": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/term-size/node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/term-size/node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/term-size/node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/term-size/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC", + "optional": true, + "peer": true + }, + "node_modules/term-size/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", "dev": true }, + "node_modules/timed-out": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", + "integrity": "sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/title-case": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/title-case/-/title-case-3.0.3.tgz", @@ -1728,11 +5335,22 @@ "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", "dev": true }, + "node_modules/tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "license": "MIT", + "dependencies": { + "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" + } + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, "license": "MIT", "dependencies": { "is-number": "^7.0.0" @@ -1741,6 +5359,12 @@ "node": ">=8.0" } }, + "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/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -1762,49 +5386,193 @@ "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" } }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/undici-types": { + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "license": "MIT" + }, + "node_modules/unique-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", + "integrity": "sha512-ODgiYu03y5g76A1I9Gt0/chLCzQjvzDy7DsZGsLOE/1MrF6wriEskSncj1+/C58Xk/kPZDppSctDybCwOSaGAg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "crypto-random-string": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/unzip-response": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz", + "integrity": "sha512-N0XH6lqDtFH84JxptQoZYmloF4nzrQqqrAymNj+/gW60AO2AZgOcf4O/nUXJcYfyQkqvMo9lSupBZmmgvuVXlw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/update-notifier": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.5.0.tgz", + "integrity": "sha512-gwMdhgJHGuj/+wHJJs9e6PcCszpxR1b236igrOkUofGhqJuG+amlIKwApH1IW1WWl7ovZxsX49lMBWLxSdm5Dw==", + "license": "BSD-2-Clause", + "optional": true, + "peer": true, + "dependencies": { + "boxen": "^1.2.1", + "chalk": "^2.0.1", + "configstore": "^3.0.0", + "import-lazy": "^2.1.0", + "is-ci": "^1.0.10", + "is-installed-globally": "^0.1.0", + "is-npm": "^1.0.0", + "latest-version": "^3.0.0", + "semver-diff": "^2.0.0", + "xdg-basedir": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/update-notifier/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/update-notifier/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/update-notifier/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "license": "MIT", + "optional": true, + "peer": true, "dependencies": { - "prelude-ls": "^1.2.1" - }, + "color-name": "1.1.3" + } + }, + "node_modules/update-notifier/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/update-notifier/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "license": "MIT", + "optional": true, + "peer": true, "engines": { - "node": ">= 0.8.0" + "node": ">=0.8.0" } }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, + "node_modules/update-notifier/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "license": "MIT", + "optional": true, + "peer": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=4" } }, - "node_modules/typescript": { - "version": "4.7.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", - "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" + "node_modules/update-notifier/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "has-flag": "^3.0.0" }, "engines": { - "node": ">=4.2.0" + "node": ">=4" } }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "license": "MIT" - }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", @@ -1814,17 +5582,47 @@ "punycode": "^2.1.0" } }, + "node_modules/url-parse-lax": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", + "integrity": "sha512-BVA4lR5PIviy2PMseNd2jbFQ+jwSwQGdJejf5ctd1rEXt0Ypd7yanUK9+lYechVlN5VaTJGsu2U/3MDDu6KgBA==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "prepend-http": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/v8-compile-cache": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", "dev": true }, + "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/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" + } + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, + "devOptional": true, "dependencies": { "isexe": "^2.0.0" }, @@ -1835,6 +5633,18 @@ "node": ">= 8" } }, + "node_modules/widest-line": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", + "license": "MIT", + "dependencies": { + "string-width": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/word-wrap": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", @@ -1845,11 +5655,109 @@ "node": ">=0.10.0" } }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "license": "MIT" + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "devOptional": true + }, + "node_modules/write-file-atomic": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz", + "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==", + "license": "ISC", + "optional": true, + "peer": true, + "dependencies": { + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.2" + } + }, + "node_modules/write-file-atomic/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC", + "optional": true, + "peer": true + }, + "node_modules/ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xdg-basedir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", + "integrity": "sha512-1Dly4xqlulvPD3fZUQJLY+FUIeqN3N2MM3uqe4rCJftAvOjFa3jFGfctOgluGx4ahPbUCsZkmJILiP0Vi4T6lQ==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", + "license": "ISC", + "optional": true, + "peer": true + }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } }, "node_modules/yocto-queue": { "version": "0.1.0", @@ -1862,9 +5770,197 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } + }, + "node_modules/yoctocolors-cjs": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz", + "integrity": "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } }, "dependencies": { + "@electron/get": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz", + "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==", + "optional": true, + "peer": true, + "requires": { + "debug": "^4.1.1", + "env-paths": "^2.2.0", + "fs-extra": "^8.1.0", + "global-agent": "^3.0.0", + "got": "^11.8.5", + "progress": "^2.0.3", + "semver": "^6.2.0", + "sumchecker": "^3.0.1" + }, + "dependencies": { + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "optional": true, + "peer": true + } + } + }, + "@esbuild/aix-ppc64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.1.tgz", + "integrity": "sha512-kfYGy8IdzTGy+z0vFGvExZtxkFlA4zAxgKEahG9KE1ScBjpQnFsNOX8KTU5ojNru5ed5CVoJYXFtoxaq5nFbjQ==", + "optional": true + }, + "@esbuild/android-arm": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.1.tgz", + "integrity": "sha512-dp+MshLYux6j/JjdqVLnMglQlFu+MuVeNrmT5nk6q07wNhCdSnB7QZj+7G8VMUGh1q+vj2Bq8kRsuyA00I/k+Q==", + "optional": true + }, + "@esbuild/android-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.1.tgz", + "integrity": "sha512-50tM0zCJW5kGqgG7fQ7IHvQOcAn9TKiVRuQ/lN0xR+T2lzEFvAi1ZcS8DiksFcEpf1t/GYOeOfCAgDHFpkiSmA==", + "optional": true + }, + "@esbuild/android-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.1.tgz", + "integrity": "sha512-GCj6WfUtNldqUzYkN/ITtlhwQqGWu9S45vUXs7EIYf+7rCiiqH9bCloatO9VhxsL0Pji+PF4Lz2XXCES+Q8hDw==", + "optional": true + }, + "@esbuild/darwin-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.1.tgz", + "integrity": "sha512-5hEZKPf+nQjYoSr/elb62U19/l1mZDdqidGfmFutVUjjUZrOazAtwK+Kr+3y0C/oeJfLlxo9fXb1w7L+P7E4FQ==", + "optional": true + }, + "@esbuild/darwin-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.1.tgz", + "integrity": "sha512-hxVnwL2Dqs3fM1IWq8Iezh0cX7ZGdVhbTfnOy5uURtao5OIVCEyj9xIzemDi7sRvKsuSdtCAhMKarxqtlyVyfA==", + "optional": true + }, + "@esbuild/freebsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.1.tgz", + "integrity": "sha512-1MrCZs0fZa2g8E+FUo2ipw6jw5qqQiH+tERoS5fAfKnRx6NXH31tXBKI3VpmLijLH6yriMZsxJtaXUyFt/8Y4A==", + "optional": true + }, + "@esbuild/freebsd-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.1.tgz", + "integrity": "sha512-0IZWLiTyz7nm0xuIs0q1Y3QWJC52R8aSXxe40VUxm6BB1RNmkODtW6LHvWRrGiICulcX7ZvyH6h5fqdLu4gkww==", + "optional": true + }, + "@esbuild/linux-arm": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.1.tgz", + "integrity": "sha512-NdKOhS4u7JhDKw9G3cY6sWqFcnLITn6SqivVArbzIaf3cemShqfLGHYMx8Xlm/lBit3/5d7kXvriTUGa5YViuQ==", + "optional": true + }, + "@esbuild/linux-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.1.tgz", + "integrity": "sha512-jaN3dHi0/DDPelk0nLcXRm1q7DNJpjXy7yWaWvbfkPvI+7XNSc/lDOnCLN7gzsyzgu6qSAmgSvP9oXAhP973uQ==", + "optional": true + }, + "@esbuild/linux-ia32": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.1.tgz", + "integrity": "sha512-OJykPaF4v8JidKNGz8c/q1lBO44sQNUQtq1KktJXdBLn1hPod5rE/Hko5ugKKZd+D2+o1a9MFGUEIUwO2YfgkQ==", + "optional": true + }, + "@esbuild/linux-loong64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.1.tgz", + "integrity": "sha512-nGfornQj4dzcq5Vp835oM/o21UMlXzn79KobKlcs3Wz9smwiifknLy4xDCLUU0BWp7b/houtdrgUz7nOGnfIYg==", + "optional": true + }, + "@esbuild/linux-mips64el": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.1.tgz", + "integrity": "sha512-1osBbPEFYwIE5IVB/0g2X6i1qInZa1aIoj1TdL4AaAb55xIIgbg8Doq6a5BzYWgr+tEcDzYH67XVnTmUzL+nXg==", + "optional": true + }, + "@esbuild/linux-ppc64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.1.tgz", + "integrity": "sha512-/6VBJOwUf3TdTvJZ82qF3tbLuWsscd7/1w+D9LH0W/SqUgM5/JJD0lrJ1fVIfZsqB6RFmLCe0Xz3fmZc3WtyVg==", + "optional": true + }, + "@esbuild/linux-riscv64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.1.tgz", + "integrity": "sha512-nSut/Mx5gnilhcq2yIMLMe3Wl4FK5wx/o0QuuCLMtmJn+WeWYoEGDN1ipcN72g1WHsnIbxGXd4i/MF0gTcuAjQ==", + "optional": true + }, + "@esbuild/linux-s390x": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.1.tgz", + "integrity": "sha512-cEECeLlJNfT8kZHqLarDBQso9a27o2Zd2AQ8USAEoGtejOrCYHNtKP8XQhMDJMtthdF4GBmjR2au3x1udADQQQ==", + "optional": true + }, + "@esbuild/linux-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.1.tgz", + "integrity": "sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==", + "optional": true + }, + "@esbuild/netbsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.1.tgz", + "integrity": "sha512-O96poM2XGhLtpTh+s4+nP7YCCAfb4tJNRVZHfIE7dgmax+yMP2WgMd2OecBuaATHKTHsLWHQeuaxMRnCsH8+5g==", + "optional": true + }, + "@esbuild/netbsd-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.1.tgz", + "integrity": "sha512-X53z6uXip6KFXBQ+Krbx25XHV/NCbzryM6ehOAeAil7X7oa4XIq+394PWGnwaSQ2WRA0KI6PUO6hTO5zeF5ijA==", + "optional": true + }, + "@esbuild/openbsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.1.tgz", + "integrity": "sha512-Na9T3szbXezdzM/Kfs3GcRQNjHzM6GzFBeU1/6IV/npKP5ORtp9zbQjvkDJ47s6BCgaAZnnnu/cY1x342+MvZg==", + "optional": true + }, + "@esbuild/openbsd-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.1.tgz", + "integrity": "sha512-T3H78X2h1tszfRSf+txbt5aOp/e7TAz3ptVKu9Oyir3IAOFPGV6O9c2naym5TOriy1l0nNf6a4X5UXRZSGX/dw==", + "optional": true + }, + "@esbuild/sunos-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.1.tgz", + "integrity": "sha512-2H3RUvcmULO7dIE5EWJH8eubZAI4xw54H1ilJnRNZdeo8dTADEZ21w6J22XBkXqGJbe0+wnNJtw3UXRoLJnFEg==", + "optional": true + }, + "@esbuild/win32-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.1.tgz", + "integrity": "sha512-GE7XvrdOzrb+yVKB9KsRMq+7a2U/K5Cf/8grVFRAGJmfADr/e/ODQ134RK2/eeHqYV5eQRFxb1hY7Nr15fv1NQ==", + "optional": true + }, + "@esbuild/win32-ia32": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.1.tgz", + "integrity": "sha512-uOxSJCIcavSiT6UnBhBzE8wy3n0hOkJsBOzy7HDAuTDE++1DJMRRVCPGisULScHL+a/ZwdXPpXD3IyFKjA7K8A==", + "optional": true + }, + "@esbuild/win32-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.1.tgz", + "integrity": "sha512-Y1EQdcfwMSeQN/ujR5VayLOJ1BHaK+ssyk0AEzPjC+t1lITgsnccPqFjb6V+LsTp/9Iov4ysfjxLaGJ9RPtkVg==", + "optional": true + }, "@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -1891,6 +5987,26 @@ "strip-json-comments": "^3.1.1" } }, + "@googlemaps/google-maps-services-js": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@googlemaps/google-maps-services-js/-/google-maps-services-js-3.4.0.tgz", + "integrity": "sha512-M1G+Jl4ri9YIODxC+RwvW4UkonTQ+ZFE5gjdIrKP/4/vYG2q2dDN1IgTp03I2MI0eGQs2FmQlxGJ0lBaZ5Ysyw==", + "requires": { + "@googlemaps/url-signature": "^1.0.4", + "agentkeepalive": "^4.1.0", + "axios": "^1.5.1", + "query-string": "<8.x", + "retry-axios": "<3.x" + } + }, + "@googlemaps/url-signature": { + "version": "1.0.40", + "resolved": "https://registry.npmjs.org/@googlemaps/url-signature/-/url-signature-1.0.40.tgz", + "integrity": "sha512-Gme3JxGZWQ4NVpATajSpS2/inQzhUxRvr/FK6IFpcC7AHOAmx8blI0y1/Qi2jqil+WoQ3TkEqq/MaKVtuV68RQ==", + "requires": { + "crypto-js": "^4.2.0" + } + }, "@humanwhocodes/config-array": { "version": "0.10.4", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz", @@ -1914,11 +6030,167 @@ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, + "@inquirer/checkbox": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.3.tgz", + "integrity": "sha512-KU1MGwf24iABJjGESxhyj+/rlQYSRoCfcuHDEHXfZ1DENmbuSRfyrUb+LLjHoee5TNOFKwaFxDXc5/zRwJUPMQ==", + "requires": { + "@inquirer/core": "^10.1.8", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", + "ansi-escapes": "^4.3.2", + "yoctocolors-cjs": "^2.1.2" + } + }, + "@inquirer/confirm": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.7.tgz", + "integrity": "sha512-Xrfbrw9eSiHb+GsesO8TQIeHSMTP0xyvTCeeYevgZ4sKW+iz9w/47bgfG9b0niQm+xaLY2EWPBINUPldLwvYiw==", + "requires": { + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5" + } + }, + "@inquirer/core": { + "version": "10.1.8", + "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.8.tgz", + "integrity": "sha512-HpAqR8y715zPpM9e/9Q+N88bnGwqqL8ePgZ0SMv/s3673JLMv3bIkoivGmjPqXlEgisUksSXibweQccUwEx4qQ==", + "requires": { + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", + "ansi-escapes": "^4.3.2", + "cli-width": "^4.1.0", + "mute-stream": "^2.0.0", + "signal-exit": "^4.1.0", + "wrap-ansi": "^6.2.0", + "yoctocolors-cjs": "^2.1.2" + }, + "dependencies": { + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + } + } + }, + "@inquirer/editor": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.8.tgz", + "integrity": "sha512-UkGKbMFlQw5k4ZLjDwEi5z8NIVlP/3DAlLHta0o0pSsdpPThNmPtUL8mvGCHUaQtR+QrxR9yRYNWgKMsHkfIUA==", + "requires": { + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5", + "external-editor": "^3.1.0" + } + }, + "@inquirer/expand": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.10.tgz", + "integrity": "sha512-leyBouGJ77ggv51Jb/OJmLGGnU2HYc13MZ2iiPNLwe2VgFgZPVqsrRWSa1RAHKyazjOyvSNKLD1B2K7A/iWi1g==", + "requires": { + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5", + "yoctocolors-cjs": "^2.1.2" + } + }, + "@inquirer/figures": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.11.tgz", + "integrity": "sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw==" + }, + "@inquirer/input": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.7.tgz", + "integrity": "sha512-rCQAipJNA14UTH84df/z4jDJ9LZ54H6zzuCAi7WZ0qVqx3CSqLjfXAMd5cpISIxbiHVJCPRB81gZksq6CZsqDg==", + "requires": { + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5" + } + }, + "@inquirer/number": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.10.tgz", + "integrity": "sha512-GLsdnxzNefjCJUmWyjaAuNklHgDpCTL4RMllAVhVvAzBwRW9g38eZ5tWgzo1lirtSDTpsh593hqXVhxvdrjfwA==", + "requires": { + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5" + } + }, + "@inquirer/password": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.10.tgz", + "integrity": "sha512-JC538ujqeYKkFqLoWZ0ILBteIUO2yajBMVEUZSxjl9x6fiEQtM+I5Rca7M2D8edMDbyHLnXifGH1hJZdh8V5rA==", + "requires": { + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5", + "ansi-escapes": "^4.3.2" + } + }, + "@inquirer/prompts": { + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.3.3.tgz", + "integrity": "sha512-QS1AQgJ113iE/nmym03yKZKHvGjVWwkGZT3B1yKrrMG0bJKQg1jUkntFP8aPd2FUQzu/nga7QU2eDpzIP5it0Q==", + "requires": { + "@inquirer/checkbox": "^4.1.3", + "@inquirer/confirm": "^5.1.7", + "@inquirer/editor": "^4.2.8", + "@inquirer/expand": "^4.0.10", + "@inquirer/input": "^4.1.7", + "@inquirer/number": "^3.0.10", + "@inquirer/password": "^4.0.10", + "@inquirer/rawlist": "^4.0.10", + "@inquirer/search": "^3.0.10", + "@inquirer/select": "^4.0.10" + } + }, + "@inquirer/rawlist": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.0.10.tgz", + "integrity": "sha512-vOQbQkmhaCsF2bUmjoyRSZJBz77UnIF/F3ZS2LMgwbgyaG2WgwKHh0WKNj0APDB72WDbZijhW5nObQbk+TnbcA==", + "requires": { + "@inquirer/core": "^10.1.8", + "@inquirer/type": "^3.0.5", + "yoctocolors-cjs": "^2.1.2" + } + }, + "@inquirer/search": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.10.tgz", + "integrity": "sha512-EAVKAz6P1LajZOdoL+R+XC3HJYSU261fbJzO4fCkJJ7UPFcm+nP+gzC+DDZWsb2WK9PQvKsnaKiNKsY8B6dBWQ==", + "requires": { + "@inquirer/core": "^10.1.8", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", + "yoctocolors-cjs": "^2.1.2" + } + }, + "@inquirer/select": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.0.10.tgz", + "integrity": "sha512-Tg8S9nESnCfISu5tCZSuXpXq0wHuDVimj7xyHstABgR34zcJnLdq/VbjB2mdZvNAMAehYBnNzSjxB06UE8LLAA==", + "requires": { + "@inquirer/core": "^10.1.8", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", + "ansi-escapes": "^4.3.2", + "yoctocolors-cjs": "^2.1.2" + } + }, + "@inquirer/type": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.5.tgz", + "integrity": "sha512-ZJpeIYYueOz/i/ONzrfof8g89kNdO2hjGuvULROo3O8rlB2CRtSseE5KeirnyE4t/thAn/EwvS/vuQeJCn+NZg==", + "requires": {} + }, "@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, "requires": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -1927,39 +6199,123 @@ "@nodelib/fs.stat": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" }, "@nodelib/fs.walk": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, "requires": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" } }, - "@raycast/api": { - "version": "1.80.0", - "resolved": "https://registry.npmjs.org/@raycast/api/-/api-1.80.0.tgz", - "integrity": "sha512-SBcfW35J0Q2wGD1ONmTHkyj743NZ6NCD7yRXpoMSCGHtblYXk3xi84+tEqpQeEm2M79ikMGLPTrgcNQfK1XdrQ==", + "@oclif/core": { + "version": "4.2.9", + "resolved": "https://registry.npmjs.org/@oclif/core/-/core-4.2.9.tgz", + "integrity": "sha512-cIlvpefLtorcyvnvJiOmYBqn6J6qdp/06tk54p2MddGEr0gnA7EIaQXM2UtRjf4ryDVCbIo+8IFRsW8Flt0uGA==", "requires": { - "@types/node": "^20.8.10", - "@types/react": "^18.3.3", - "react": "18.3.1" + "ansi-escapes": "^4.3.2", + "ansis": "^3.17.0", + "clean-stack": "^3.0.1", + "cli-spinners": "^2.9.2", + "debug": "^4.4.0", + "ejs": "^3.1.10", + "get-package-type": "^0.1.0", + "globby": "^11.1.0", + "indent-string": "^4.0.0", + "is-wsl": "^2.2.0", + "lilconfig": "^3.1.3", + "minimatch": "^9.0.5", + "semver": "^7.6.3", + "string-width": "^4.2.3", + "supports-color": "^8", + "widest-line": "^3.1.0", + "wordwrap": "^1.0.0", + "wrap-ansi": "^7.0.0" }, "dependencies": { - "@types/node": { - "version": "20.14.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.14.tgz", - "integrity": "sha512-d64f00982fS9YoOgJkAMolK7MN8Iq3TDdVjchbYHdEmjth/DHowx82GnoA+tVUAN+7vxfYUgAzi+JXbKNd2SDQ==", + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "requires": { + "brace-expansion": "^2.0.1" + } + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "requires": { - "undici-types": "~5.26.4" + "has-flag": "^4.0.0" } } } }, + "@oclif/plugin-autocomplete": { + "version": "3.2.25", + "resolved": "https://registry.npmjs.org/@oclif/plugin-autocomplete/-/plugin-autocomplete-3.2.25.tgz", + "integrity": "sha512-xb0fiyGi78OGr7l4xbRe/rlIaFA8WgntIrn7FC/fnDpgq4wqmWLgYQ7LImE+eAIMCL9ozw6Cy915AaVAw6bxiA==", + "requires": { + "@oclif/core": "^4", + "ansis": "^3.16.0", + "debug": "^4.4.0", + "ejs": "^3.1.10" + } + }, + "@oclif/plugin-help": { + "version": "6.2.26", + "resolved": "https://registry.npmjs.org/@oclif/plugin-help/-/plugin-help-6.2.26.tgz", + "integrity": "sha512-5KdldxEizbV3RsHOddN4oMxrX/HL6z79S94tbxEHVZ/dJKDWzfyCpgC9axNYqwmBF2pFZkozl/l7t3hCGOdalw==", + "requires": { + "@oclif/core": "^4" + } + }, + "@oclif/plugin-not-found": { + "version": "3.2.45", + "resolved": "https://registry.npmjs.org/@oclif/plugin-not-found/-/plugin-not-found-3.2.45.tgz", + "integrity": "sha512-iDNYUpS6LPoPd3Tm5IqwmQC+bbNdFSJoCYdKK1T6VVjujbIXyoSK/QUv62Y91aoJJebE/tzagcwCs1P89m+m7g==", + "requires": { + "@inquirer/prompts": "^7.3.2", + "@oclif/core": "^4", + "ansis": "^3.17.0", + "fast-levenshtein": "^3.0.0" + }, + "dependencies": { + "fast-levenshtein": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-3.0.0.tgz", + "integrity": "sha512-hKKNajm46uNmTlhHSyZkmToAc56uZJwYq7yrciZjqOxnlfQwERDQJmHPUp7m1m9wx8vgOe8IaCKZ5Kv2k1DdCQ==", + "requires": { + "fastest-levenshtein": "^1.0.7" + } + } + } + }, + "@raycast/api": { + "version": "1.97.1", + "resolved": "https://registry.npmjs.org/@raycast/api/-/api-1.97.1.tgz", + "integrity": "sha512-12ZS3h0cJi2bA+Yh/fjk2Dy4LlmzwK/JpU4uX8BqFvY6yE5+mZ5zGIRWxtwA2CJD8J6coDIr0/G9woJr2wGMfg==", + "requires": { + "@oclif/core": "^4.0.33", + "@oclif/plugin-autocomplete": "^3.2.10", + "@oclif/plugin-help": "^6.2.18", + "@oclif/plugin-not-found": "^3.2.28", + "@types/node": "22.13.10", + "@types/react": "19.0.10", + "esbuild": "^0.25.1", + "react": "19.0.0" + } + }, "@raycast/eslint-config": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@raycast/eslint-config/-/eslint-config-1.0.5.tgz", @@ -2042,44 +6398,120 @@ } } }, + "@raycast/utils": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/@raycast/utils/-/utils-1.19.1.tgz", + "integrity": "sha512-/udUGcTZCgZZwzesmjBkqG5naQZTD/ZLHbqRwkWcF+W97vf9tr9raxKyQjKsdZ17OVllw2T3sHBQsVUdEmCm2g==", + "requires": { + "cross-fetch": "^3.1.6", + "dequal": "^2.0.3", + "object-hash": "^3.0.0", + "signal-exit": "^4.0.2", + "stream-chain": "^2.2.5", + "stream-json": "^1.8.0" + } + }, "@rushstack/eslint-patch": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz", "integrity": "sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==", "dev": true }, + "@sindresorhus/is": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", + "optional": true, + "peer": true + }, + "@szmarczak/http-timer": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", + "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", + "optional": true, + "peer": true, + "requires": { + "defer-to-connect": "^2.0.0" + } + }, + "@types/cacheable-request": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", + "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", + "optional": true, + "peer": true, + "requires": { + "@types/http-cache-semantics": "*", + "@types/keyv": "^3.1.4", + "@types/node": "*", + "@types/responselike": "^1.0.0" + } + }, + "@types/http-cache-semantics": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz", + "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==", + "optional": true, + "peer": true + }, "@types/json-schema": { "version": "7.0.11", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", "dev": true }, - "@types/node": { - "version": "18.8.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.8.3.tgz", - "integrity": "sha512-0os9vz6BpGwxGe9LOhgP/ncvYN5Tx1fNcd2TM3rD/aCGBkysb+ZWpXEocG24h6ZzOi13+VB8HndAQFezsSOw1w==", - "dev": true + "@types/keyv": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", + "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", + "optional": true, + "peer": true, + "requires": { + "@types/node": "*" + } }, - "@types/prop-types": { - "version": "15.7.4", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.4.tgz", - "integrity": "sha512-rZ5drC/jWjrArrS8BR6SIr4cWpW09RNTYt9AMZo3Jwwif+iacXAqgVjm0B0Bv/S1jhDXKHqRVNCbACkJ89RAnQ==" + "@types/node": { + "version": "22.13.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", + "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", + "requires": { + "undici-types": "~6.20.0" + } }, "@types/react": { - "version": "18.3.3", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.3.tgz", - "integrity": "sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==", + "version": "19.0.10", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.10.tgz", + "integrity": "sha512-JuRQ9KXLEjaUNjTWpzuR231Z2WpIwczOkBEIvbHNCzQefFIT0L8IqE6NV6ULLyC1SI/i234JnDoMkfg+RjQj2g==", "requires": { - "@types/prop-types": "*", "csstype": "^3.0.2" } }, + "@types/responselike": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", + "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==", + "optional": true, + "peer": true, + "requires": { + "@types/node": "*" + } + }, "@types/semver": { "version": "7.3.13", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", "dev": true }, + "@types/yauzl": { + "version": "2.10.3", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", + "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", + "optional": true, + "peer": true, + "requires": { + "@types/node": "*" + } + }, "@typescript-eslint/eslint-plugin": { "version": "5.33.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.33.1.tgz", @@ -2188,6 +6620,14 @@ "dev": true, "requires": {} }, + "agentkeepalive": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz", + "integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==", + "requires": { + "humanize-ms": "^1.2.1" + } + }, "ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -2200,21 +6640,86 @@ "uri-js": "^4.2.2" } }, + "ansi-align": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz", + "integrity": "sha512-TdlOggdA/zURfMYa7ABC66j+oqfMew58KpJMbUlH3bcZP1b+cBHIHDDn5uH9INsxrHBPjsqM0tDB4jPTF/vgJA==", + "optional": true, + "peer": true, + "requires": { + "string-width": "^2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "optional": true, + "peer": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "optional": true, + "peer": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "optional": true, + "peer": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "optional": true, + "peer": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, + "ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "requires": { + "type-fest": "^0.21.3" + }, + "dependencies": { + "type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==" + } + } + }, "ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, "requires": { "color-convert": "^2.0.1" } }, + "ansis": { + "version": "3.17.0", + "resolved": "https://registry.npmjs.org/ansis/-/ansis-3.17.0.tgz", + "integrity": "sha512-0qWUglt9JEqLFr3w1I1pbrChn1grhaiAR2ocX1PP/flRmxgtwTzPFFFnfIlD6aMOLQZgSuCRlidD70lvx8yhzg==" + }, "argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -2224,20 +6729,170 @@ "array-union": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" + }, + "async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "axios": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.2.tgz", + "integrity": "sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==", + "requires": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } }, "balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "boolean": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", + "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", + "optional": true, + "peer": true + }, + "boxen": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz", + "integrity": "sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==", + "optional": true, + "peer": true, + "requires": { + "ansi-align": "^2.0.0", + "camelcase": "^4.0.0", + "chalk": "^2.0.1", + "cli-boxes": "^1.0.0", + "string-width": "^2.0.0", + "term-size": "^1.2.0", + "widest-line": "^2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "optional": true, + "peer": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "optional": true, + "peer": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "optional": true, + "peer": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "optional": true, + "peer": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "optional": true, + "peer": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "optional": true, + "peer": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "optional": true, + "peer": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "optional": true, + "peer": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "optional": true, + "peer": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "optional": true, + "peer": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "optional": true, + "peer": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "widest-line": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.1.tgz", + "integrity": "sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA==", + "optional": true, + "peer": true, + "requires": { + "string-width": "^2.1.1" + } + } + } }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2247,32 +6902,129 @@ "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, "requires": { "fill-range": "^7.1.1" } }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "optional": true, + "peer": true + }, + "cacheable-lookup": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", + "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", + "optional": true, + "peer": true + }, + "cacheable-request": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", + "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", + "optional": true, + "peer": true, + "requires": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^4.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" + } + }, + "call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "requires": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + } + }, "callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true }, + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw==", + "optional": true, + "peer": true + }, + "capture-stack-trace": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.2.tgz", + "integrity": "sha512-X/WM2UQs6VMHUtjUDnZTRI+i1crWteJySFzr9UpGoQa4WQffXVTTXuekjl7TjZRlcF2XfjgITT0HxZ9RnxeT0w==", + "optional": true, + "peer": true + }, "chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, "requires": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, + "chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==" + }, + "ci-info": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.6.0.tgz", + "integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==", + "optional": true, + "peer": true + }, + "clean-stack": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-3.0.1.tgz", + "integrity": "sha512-lR9wNiMRcVQjSB3a7xXGLuz4cr4wJuuXlaAEbRutGowQTmlp7R72/DOgN21e8jdwblMWl9UOJMJXarX94pzKdg==", + "requires": { + "escape-string-regexp": "4.0.0" + } + }, + "cli-boxes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", + "integrity": "sha512-3Fo5wu8Ytle8q9iCzS4D2MWVL2X7JVWRiS1BnXbTFDhS9c/REkM9vd1AmabsoZoY5/dGi5TT9iKL8Kb6DeBRQg==", + "optional": true, + "peer": true + }, + "cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==" + }, + "cli-width": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz", + "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==" + }, + "clone-response": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "optional": true, + "peer": true, + "requires": { + "mimic-response": "^1.0.0" + } + }, "color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, "requires": { "color-name": "~1.1.4" } @@ -2280,51 +7032,189 @@ "color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "requires": { + "delayed-stream": "~1.0.0" + } }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "configstore": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.5.tgz", + "integrity": "sha512-nlOhI4+fdzoK5xmJ+NY+1gZK56bwEaWZr8fYuXohZ9Vkc1o3a4T/R3M+yE/w7x/ZVJ1zF8c+oaOvF0dztdUgmA==", + "optional": true, + "peer": true, + "requires": { + "dot-prop": "^4.2.1", + "graceful-fs": "^4.1.2", + "make-dir": "^1.0.0", + "unique-string": "^1.0.0", + "write-file-atomic": "^2.0.0", + "xdg-basedir": "^3.0.0" + } + }, + "create-error-class": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", + "integrity": "sha512-gYTKKexFO3kh200H1Nit76sRwRtOY32vQd3jpAQKpLtZqyNsSQNfI4N7o3eP2wUjV35pTWKRYqFUDBvUha/Pkw==", + "optional": true, + "peer": true, + "requires": { + "capture-stack-trace": "^1.0.0" + } + }, + "cross-fetch": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.2.0.tgz", + "integrity": "sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q==", + "requires": { + "node-fetch": "^2.7.0" + } }, "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "devOptional": true, "requires": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, + "crypto-js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" + }, + "crypto-random-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", + "integrity": "sha512-GsVpkFPlycH7/fRR7Dhcmnoii54gV1nz7y4CWyeFS14N+JVBBhY+r8amRHE4BwSYal7BPTDp8isvAlCxyFt3Hg==", + "optional": true, + "peer": true + }, "csstype": { "version": "3.0.10", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.10.tgz", "integrity": "sha512-2u44ZG2OcNUO9HDp/Jl8C07x6pU/eTR3ncV91SiK3dhG9TWvRVsCoJw14Ckx5DgWkzGA3waZWO3d7pgqpUI/XA==" }, "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "requires": { + "ms": "^2.1.3" + } + }, + "decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==" + }, + "decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "optional": true, + "peer": true, "requires": { - "ms": "2.1.2" + "mimic-response": "^3.1.0" + }, + "dependencies": { + "mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "optional": true, + "peer": true + } } }, + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "optional": true, + "peer": true + }, "deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, + "default-gateway": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", + "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "optional": true, + "peer": true, + "requires": { + "execa": "^5.0.0" + } + }, + "defer-to-connect": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "optional": true, + "peer": true + }, + "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==", + "optional": true, + "peer": true, + "requires": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + } + }, + "define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "optional": true, + "peer": true, + "requires": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" + }, + "dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==" + }, + "detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "optional": true, + "peer": true + }, "dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, "requires": { "path-type": "^4.0.0" } @@ -2338,11 +7228,156 @@ "esutils": "^2.0.2" } }, + "dot-prop": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.1.tgz", + "integrity": "sha512-l0p4+mIuJIua0mhxGoh4a+iNL9bmeK5DvnSVQa6T0OhrVmaEa1XScX5Etc673FePCJOArq/4Pa2cLGODUWTPOQ==", + "optional": true, + "peer": true, + "requires": { + "is-obj": "^1.0.0" + } + }, + "dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "requires": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + } + }, + "duplexer3": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", + "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==", + "optional": true, + "peer": true + }, + "ejs": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "requires": { + "jake": "^10.8.5" + } + }, + "electron": { + "version": "23.3.13", + "resolved": "https://registry.npmjs.org/electron/-/electron-23.3.13.tgz", + "integrity": "sha512-BaXtHEb+KYKLouUXlUVDa/lj9pj4F5kiE0kwFdJV84Y2EU7euIDgPthfKtchhr5MVHmjtavRMIV/zAwEiSQ9rQ==", + "optional": true, + "peer": true, + "requires": { + "@electron/get": "^2.0.0", + "@types/node": "^16.11.26", + "extract-zip": "^2.0.1" + }, + "dependencies": { + "@types/node": { + "version": "16.18.126", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.126.tgz", + "integrity": "sha512-OTcgaiwfGFBKacvfwuHzzn1KLxH/er8mluiy8/uM3sGXHaRe73RrSIj01jow9t4kJEW633Ov+cOexXeiApTyAw==", + "optional": true, + "peer": true + } + } + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "optional": true, + "peer": true, + "requires": { + "once": "^1.4.0" + } + }, + "env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "optional": true, + "peer": true + }, + "es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==" + }, + "es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==" + }, + "es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "requires": { + "es-errors": "^1.3.0" + } + }, + "es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "requires": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + } + }, + "es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "optional": true, + "peer": true + }, + "esbuild": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.1.tgz", + "integrity": "sha512-BGO5LtrGC7vxnqucAe/rmvKdJllfGaYWdyABvyMoXQlfYMb2bbRuReWR5tEGE//4LcNJj9XrkovTqNYRFZHAMQ==", + "requires": { + "@esbuild/aix-ppc64": "0.25.1", + "@esbuild/android-arm": "0.25.1", + "@esbuild/android-arm64": "0.25.1", + "@esbuild/android-x64": "0.25.1", + "@esbuild/darwin-arm64": "0.25.1", + "@esbuild/darwin-x64": "0.25.1", + "@esbuild/freebsd-arm64": "0.25.1", + "@esbuild/freebsd-x64": "0.25.1", + "@esbuild/linux-arm": "0.25.1", + "@esbuild/linux-arm64": "0.25.1", + "@esbuild/linux-ia32": "0.25.1", + "@esbuild/linux-loong64": "0.25.1", + "@esbuild/linux-mips64el": "0.25.1", + "@esbuild/linux-ppc64": "0.25.1", + "@esbuild/linux-riscv64": "0.25.1", + "@esbuild/linux-s390x": "0.25.1", + "@esbuild/linux-x64": "0.25.1", + "@esbuild/netbsd-arm64": "0.25.1", + "@esbuild/netbsd-x64": "0.25.1", + "@esbuild/openbsd-arm64": "0.25.1", + "@esbuild/openbsd-x64": "0.25.1", + "@esbuild/sunos-x64": "0.25.1", + "@esbuild/win32-arm64": "0.25.1", + "@esbuild/win32-ia32": "0.25.1", + "@esbuild/win32-x64": "0.25.1" + } + }, "escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" }, "eslint": { "version": "8.22.0", @@ -2506,6 +7541,63 @@ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true }, + "execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "optional": true, + "peer": true, + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "dependencies": { + "get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "optional": true, + "peer": true + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "optional": true, + "peer": true + } + } + }, + "external-editor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", + "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", + "requires": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + } + }, + "extract-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + "optional": true, + "peer": true, + "requires": { + "@types/yauzl": "^2.9.1", + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + } + }, "fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -2516,7 +7608,6 @@ "version": "3.2.11", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", - "dev": true, "requires": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -2529,7 +7620,6 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, "requires": { "is-glob": "^4.0.1" } @@ -2548,15 +7638,29 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, + "fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==" + }, "fastq": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", - "dev": true, "requires": { "reusify": "^1.0.4" } }, + "fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "optional": true, + "peer": true, + "requires": { + "pend": "~1.2.0" + } + }, "file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -2566,15 +7670,45 @@ "flat-cache": "^3.0.4" } }, + "filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "requires": { + "minimatch": "^5.0.1" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, "fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, "requires": { "to-regex-range": "^5.0.1" } }, + "filter-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz", + "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==" + }, "find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", @@ -2601,18 +7735,92 @@ "integrity": "sha512-8/sOawo8tJ4QOBX8YlQBMxL8+RLZfxMQOif9o0KUKTNTjMYElWPE0r/m5VNFxTRd0NSw8qSy8dajrwX4RYI1Hw==", "dev": true }, + "follow-redirects": { + "version": "1.15.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==" + }, + "form-data": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz", + "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "mime-types": "^2.1.12" + } + }, + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "optional": true, + "peer": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, + "function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" + }, "functional-red-black-tree": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, + "get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "requires": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + } + }, + "get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==" + }, + "get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "requires": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + } + }, + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "optional": true, + "peer": true, + "requires": { + "pump": "^3.0.0" + } + }, "glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", @@ -2636,6 +7844,31 @@ "is-glob": "^4.0.3" } }, + "global-agent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", + "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", + "optional": true, + "peer": true, + "requires": { + "boolean": "^3.0.1", + "es6-error": "^4.1.1", + "matcher": "^3.0.0", + "roarr": "^2.15.3", + "semver": "^7.3.2", + "serialize-error": "^7.0.1" + } + }, + "global-dirs": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", + "integrity": "sha512-NknMLn7F2J7aflwFOlGdNIuCDpN3VGoSoB+aap3KABFWbHVn1TCgFC+np23J8W2BiZbjfEw3BFBycSMv1AFblg==", + "optional": true, + "peer": true, + "requires": { + "ini": "^1.3.4" + } + }, "globals": { "version": "13.17.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", @@ -2645,11 +7878,21 @@ "type-fest": "^0.20.2" } }, + "globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "optional": true, + "peer": true, + "requires": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + } + }, "globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, "requires": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", @@ -2659,6 +7902,38 @@ "slash": "^3.0.0" } }, + "gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==" + }, + "got": { + "version": "11.8.6", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", + "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", + "optional": true, + "peer": true, + "requires": { + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" + } + }, + "graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "optional": true, + "peer": true + }, "grapheme-splitter": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", @@ -2668,14 +7943,84 @@ "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "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==", + "optional": true, + "peer": true, + "requires": { + "es-define-property": "^1.0.0" + } + }, + "has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==" + }, + "has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "requires": { + "has-symbols": "^1.0.3" + } + }, + "hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "requires": { + "function-bind": "^1.1.2" + } + }, + "http-cache-semantics": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", + "optional": true, + "peer": true + }, + "http2-wrapper": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", + "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", + "optional": true, + "peer": true, + "requires": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" + } + }, + "human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "optional": true, + "peer": true + }, + "humanize-ms": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "requires": { + "ms": "^2.0.0" + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } }, "ignore": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", - "dev": true + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==" }, "import-fresh": { "version": "3.3.0", @@ -2687,11 +8032,23 @@ "resolve-from": "^4.0.0" } }, + "import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==", + "optional": true, + "peer": true + }, "imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true + "devOptional": true + }, + "indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" }, "inflight": { "version": "1.0.6", @@ -2709,37 +8066,168 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, + "ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "optional": true, + "peer": true + }, + "internal-ip": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-6.2.0.tgz", + "integrity": "sha512-D8WGsR6yDt8uq7vDMu7mjcR+yRMm3dW8yufyChmszWRjcSHuxLBkR3GdS2HZAjodsaGuCvXeEJpueisXJULghg==", + "optional": true, + "peer": true, + "requires": { + "default-gateway": "^6.0.0", + "ipaddr.js": "^1.9.1", + "is-ip": "^3.1.0", + "p-event": "^4.2.0" + } + }, + "ip-regex": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", + "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", + "optional": true, + "peer": true + }, + "ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "optional": true, + "peer": true + }, + "is-ci": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.1.tgz", + "integrity": "sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==", + "optional": true, + "peer": true, + "requires": { + "ci-info": "^1.5.0" + } + }, + "is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==" + }, "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" }, "is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, "requires": { "is-extglob": "^2.1.1" } }, + "is-installed-globally": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz", + "integrity": "sha512-ERNhMg+i/XgDwPIPF3u24qpajVreaiSuvpb1Uu0jugw7KKcxGyCX8cgp8P5fwTmAuXku6beDHHECdKArjlg7tw==", + "optional": true, + "peer": true, + "requires": { + "global-dirs": "^0.1.0", + "is-path-inside": "^1.0.0" + } + }, + "is-ip": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-ip/-/is-ip-3.1.0.tgz", + "integrity": "sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==", + "optional": true, + "peer": true, + "requires": { + "ip-regex": "^4.0.0" + } + }, + "is-npm": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz", + "integrity": "sha512-9r39FIr3d+KD9SbX0sfMsHzb5PP3uimOiwr3YupUaUFG4W0l1U57Rx3utpttV7qz5U3jmrO5auUa04LU9pyHsg==", + "optional": true, + "peer": true + }, "is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" + }, + "is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", + "optional": true, + "peer": true + }, + "is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha512-qhsCR/Esx4U4hg/9I19OVUAJkGWtjRYHMRgUMZE2TDdj+Ag+kttZanLupfddNyglzz50cUlmWzUaI37GDfNx/g==", + "optional": true, + "peer": true, + "requires": { + "path-is-inside": "^1.0.1" + } + }, + "is-redirect": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", + "integrity": "sha512-cr/SlUEe5zOGmzvj9bUyC4LVvkNVAXu4GytXLNMr1pny+a65MpQ9IJzFHD5vi7FyJgb4qt27+eS3TuQnqB+RQw==", + "optional": true, + "peer": true + }, + "is-retry-allowed": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz", + "integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==", + "optional": true, + "peer": true + }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "optional": true, + "peer": true + }, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "requires": { + "is-docker": "^2.0.0" + } }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true + "devOptional": true }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "jake": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", + "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", + "requires": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + } }, "js-yaml": { "version": "4.1.0", @@ -2750,6 +8238,13 @@ "argparse": "^2.0.1" } }, + "json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "optional": true, + "peer": true + }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -2762,6 +8257,43 @@ "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", "dev": true }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "optional": true, + "peer": true + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "optional": true, + "peer": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "optional": true, + "peer": true, + "requires": { + "json-buffer": "3.0.1" + } + }, + "latest-version": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz", + "integrity": "sha512-Be1YRHWWlZaSsrz2U+VInk+tO0EwLIyV+23RhWLINJYwg/UIikxjlj3MhH37/6/EDCAusjajvMkMMUXRaMWl/w==", + "optional": true, + "peer": true, + "requires": { + "package-json": "^4.0.0" + } + }, "levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -2772,6 +8304,11 @@ "type-check": "~0.4.0" } }, + "lilconfig": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==" + }, "locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -2787,44 +8324,121 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "optional": true, + "peer": true + }, + "lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "optional": true, + "peer": true, + "requires": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "make-dir": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "optional": true, + "peer": true, + "requires": { + "pify": "^3.0.0" + } + }, + "matcher": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", + "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", + "optional": true, + "peer": true, "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" + "escape-string-regexp": "^4.0.0" } }, + "math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==" + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "optional": true, + "peer": true + }, "merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" }, "micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "requires": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" } }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "optional": true, + "peer": true + }, + "mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "optional": true, + "peer": true + }, "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } }, + "minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "optional": true, + "peer": true + }, "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "mute-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz", + "integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==" }, "natural-compare": { "version": "1.4.0", @@ -2832,15 +8446,62 @@ "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", "dev": true }, + "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==", + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "optional": true, + "peer": true + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "optional": true, + "peer": true, + "requires": { + "path-key": "^3.0.0" + } + }, + "object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==" + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "optional": true, + "peer": true + }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, + "devOptional": true, "requires": { "wrappy": "1" } }, + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "optional": true, + "peer": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, "optionator": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", @@ -2855,6 +8516,35 @@ "word-wrap": "^1.2.3" } }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==" + }, + "p-cancelable": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", + "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", + "optional": true, + "peer": true + }, + "p-event": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-4.2.0.tgz", + "integrity": "sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==", + "optional": true, + "peer": true, + "requires": { + "p-timeout": "^3.1.0" + } + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "optional": true, + "peer": true + }, "p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -2873,6 +8563,79 @@ "p-limit": "^3.0.2" } }, + "p-timeout": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", + "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", + "optional": true, + "peer": true, + "requires": { + "p-finally": "^1.0.0" + } + }, + "package-json": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-4.0.1.tgz", + "integrity": "sha512-q/R5GrMek0vzgoomq6rm9OX+3PQve8sLwTirmK30YB3Cu0Bbt9OX9M/SIUnroN5BGJkzwGsFwDaRGD9EwBOlCA==", + "optional": true, + "peer": true, + "requires": { + "got": "^6.7.1", + "registry-auth-token": "^3.0.1", + "registry-url": "^3.0.3", + "semver": "^5.1.0" + }, + "dependencies": { + "get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", + "optional": true, + "peer": true + }, + "got": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz", + "integrity": "sha512-Y/K3EDuiQN9rTZhBvPRWMLXIKdeD1Rj0nzunfoi0Yyn5WBEbzxXKU9Ub2X41oZBagVWOBU3MuDonFMgPWQFnwg==", + "optional": true, + "peer": true, + "requires": { + "create-error-class": "^3.0.0", + "duplexer3": "^0.1.4", + "get-stream": "^3.0.0", + "is-redirect": "^1.0.0", + "is-retry-allowed": "^1.0.0", + "is-stream": "^1.0.0", + "lowercase-keys": "^1.0.0", + "safe-buffer": "^5.0.1", + "timed-out": "^4.0.0", + "unzip-response": "^2.0.1", + "url-parse-lax": "^1.0.0" + } + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "optional": true, + "peer": true + }, + "lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "optional": true, + "peer": true + }, + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "optional": true, + "peer": true + } + } + }, "parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -2894,23 +8657,42 @@ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==", + "optional": true, + "peer": true + }, "path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true + "devOptional": true }, "path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" + }, + "pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "optional": true, + "peer": true }, "picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "optional": true, + "peer": true }, "prelude-ls": { "version": "1.2.1", @@ -2918,6 +8700,13 @@ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, + "prepend-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha512-PhmXi5XmoyKw1Un4E+opM2KcsJInDvKyuOumcjjw3waw86ZNjHwVUOOWLc4bCzLdcKNaWBH9e99sbWzDQsVaYg==", + "optional": true, + "peer": true + }, "prettier": { "version": "2.8.7", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz", @@ -2925,24 +8714,157 @@ "dev": true, "peer": true }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "optional": true, + "peer": true + }, + "proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==", + "optional": true, + "peer": true + }, + "pump": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "optional": true, + "peer": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", "dev": true }, + "query-string": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-7.1.3.tgz", + "integrity": "sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg==", + "requires": { + "decode-uri-component": "^0.2.2", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + } + }, "queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" + }, + "quick-lru": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "optional": true, + "peer": true + }, + "rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "optional": true, + "peer": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "dependencies": { + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "optional": true, + "peer": true + } + } }, "react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==" + }, + "react-devtools": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/react-devtools/-/react-devtools-6.1.1.tgz", + "integrity": "sha512-72islUwEOBhW/xdmA+KmUAbFKt1t0t/lFBz6N8SaJ25hCLTuAMyGnGLTbnVfpNHiChHzlLjloRTFVIRRIPF4gg==", + "optional": true, + "peer": true, + "requires": { + "cross-spawn": "^5.0.1", + "electron": "^23.1.2", + "internal-ip": "^6.2.0", + "minimist": "^1.2.3", + "react-devtools-core": "6.1.1", + "update-notifier": "^2.1.0" + }, + "dependencies": { + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==", + "optional": true, + "peer": true, + "requires": { + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "optional": true, + "peer": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "optional": true, + "peer": true + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "optional": true, + "peer": true, + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "react-devtools-core": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/react-devtools-core/-/react-devtools-core-6.1.1.tgz", + "integrity": "sha512-TFo1MEnkqE6hzAbaztnyR5uLTMoz6wnEWwWBsCUzNt+sVXJycuRJdDqvL078M4/h65BI/YO5XWTaxZDWVsW0fw==", + "optional": true, + "peer": true, "requires": { - "loose-envify": "^1.1.0" + "shell-quote": "^1.6.1", + "ws": "^7" } }, "regexpp": { @@ -2951,17 +8873,60 @@ "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", "dev": true }, + "registry-auth-token": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.4.0.tgz", + "integrity": "sha512-4LM6Fw8eBQdwMYcES4yTnn2TqIasbXuwDx3um+QRs7S55aMKCBKBxvPXl2RiUjHwuJLTyYfxSpmfSAjQpcuP+A==", + "optional": true, + "peer": true, + "requires": { + "rc": "^1.1.6", + "safe-buffer": "^5.0.1" + } + }, + "registry-url": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", + "integrity": "sha512-ZbgR5aZEdf4UKZVBPYIgaglBmSF2Hi94s2PcIHhRGFjKYu+chjJdYfHn4rt3hB6eCKLJ8giVIIfgMa1ehDfZKA==", + "optional": true, + "peer": true, + "requires": { + "rc": "^1.0.1" + } + }, + "resolve-alpn": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", + "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", + "optional": true, + "peer": true + }, "resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true }, + "responselike": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", + "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", + "optional": true, + "peer": true, + "requires": { + "lowercase-keys": "^2.0.0" + } + }, + "retry-axios": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-2.6.0.tgz", + "integrity": "sha512-pOLi+Gdll3JekwuFjXO3fTq+L9lzMQGcSq7M5gIjExcl3Gu1hd4XXuf5o3+LuSBsaULQH7DiNbsqPd1chVpQGQ==", + "requires": {} + }, "reusify": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" }, "rimraf": { "version": "3.0.2", @@ -2972,26 +8937,96 @@ "glob": "^7.1.3" } }, + "roarr": { + "version": "2.15.4", + "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", + "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", + "optional": true, + "peer": true, + "requires": { + "boolean": "^3.0.1", + "detect-node": "^2.0.4", + "globalthis": "^1.0.1", + "json-stringify-safe": "^5.0.1", + "semver-compare": "^1.0.0", + "sprintf-js": "^1.1.2" + } + }, "run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, "requires": { "queue-microtask": "^1.2.2" } }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "optional": true, + "peer": true + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, "semver": { "version": "7.6.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "dev": true + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==" + }, + "semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", + "optional": true, + "peer": true + }, + "semver-diff": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", + "integrity": "sha512-gL8F8L4ORwsS0+iQ34yCYv///jsOq0ZL7WP55d1HnJ32o7tyFYEFQZQA22mrLIacZdU6xecaBBZ+uEiffGNyXw==", + "optional": true, + "peer": true, + "requires": { + "semver": "^5.0.3" + }, + "dependencies": { + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "optional": true, + "peer": true + } + } + }, + "serialize-error": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", + "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", + "optional": true, + "peer": true, + "requires": { + "type-fest": "^0.13.1" + }, + "dependencies": { + "type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "optional": true, + "peer": true + } + } }, "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, + "devOptional": true, "requires": { "shebang-regex": "^3.0.0" } @@ -3000,44 +9035,229 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true + "devOptional": true + }, + "shell-quote": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.2.tgz", + "integrity": "sha512-AzqKpGKjrj7EM6rKVQEPpB288oCfnrEIuyoT9cyF4nmGa7V8Zk6f7RRqYisX8X9m+Q7bd632aZW4ky7EhbQztA==", + "optional": true, + "peer": true + }, + "signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==" }, "slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" + }, + "split-on-first": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", + "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==" + }, + "sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "optional": true, + "peer": true + }, + "stream-chain": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/stream-chain/-/stream-chain-2.2.5.tgz", + "integrity": "sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA==" + }, + "stream-json": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/stream-json/-/stream-json-1.9.1.tgz", + "integrity": "sha512-uWkjJ+2Nt/LO9Z/JyKZbMusL8Dkh97uUBTv3AJQ74y07lVahLY4eEFsPsE97pxYBwr8nnjMAIch5eqI0gPShyw==", + "requires": { + "stream-chain": "^2.2.5" + } + }, + "strict-uri-encode": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz", + "integrity": "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==" + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } }, "strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, "requires": { "ansi-regex": "^5.0.1" } }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==", + "optional": true, + "peer": true + }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "optional": true, + "peer": true + }, "strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true }, + "sumchecker": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", + "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", + "optional": true, + "peer": true, + "requires": { + "debug": "^4.1.0" + } + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, "requires": { "has-flag": "^4.0.0" } }, + "term-size": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", + "integrity": "sha512-7dPUZQGy/+m3/wjVz3ZW5dobSoD/02NxJpoXUX0WIyjfVS3l0c+b/+9phIDFA7FHzkYtwtMFgeGZ/Y8jVTeqQQ==", + "optional": true, + "peer": true, + "requires": { + "execa": "^0.7.0" + }, + "dependencies": { + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==", + "optional": true, + "peer": true, + "requires": { + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "execa": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", + "integrity": "sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw==", + "optional": true, + "peer": true, + "requires": { + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", + "optional": true, + "peer": true + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "optional": true, + "peer": true + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==", + "optional": true, + "peer": true, + "requires": { + "path-key": "^2.0.0" + } + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "optional": true, + "peer": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "optional": true, + "peer": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "optional": true, + "peer": true + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "optional": true, + "peer": true + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "optional": true, + "peer": true, + "requires": { + "isexe": "^2.0.0" + } + } + } + }, "text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", "dev": true }, + "timed-out": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", + "integrity": "sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==", + "optional": true, + "peer": true + }, "title-case": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/title-case/-/title-case-3.0.3.tgz", @@ -3055,15 +9275,27 @@ } } }, + "tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "requires": { + "os-tmpdir": "~1.0.2" + } + }, "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, "requires": { "is-number": "^7.0.0" } }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -3101,9 +9333,117 @@ "dev": true }, "undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==" + }, + "unique-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", + "integrity": "sha512-ODgiYu03y5g76A1I9Gt0/chLCzQjvzDy7DsZGsLOE/1MrF6wriEskSncj1+/C58Xk/kPZDppSctDybCwOSaGAg==", + "optional": true, + "peer": true, + "requires": { + "crypto-random-string": "^1.0.0" + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "optional": true, + "peer": true + }, + "unzip-response": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz", + "integrity": "sha512-N0XH6lqDtFH84JxptQoZYmloF4nzrQqqrAymNj+/gW60AO2AZgOcf4O/nUXJcYfyQkqvMo9lSupBZmmgvuVXlw==", + "optional": true, + "peer": true + }, + "update-notifier": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.5.0.tgz", + "integrity": "sha512-gwMdhgJHGuj/+wHJJs9e6PcCszpxR1b236igrOkUofGhqJuG+amlIKwApH1IW1WWl7ovZxsX49lMBWLxSdm5Dw==", + "optional": true, + "peer": true, + "requires": { + "boxen": "^1.2.1", + "chalk": "^2.0.1", + "configstore": "^3.0.0", + "import-lazy": "^2.1.0", + "is-ci": "^1.0.10", + "is-installed-globally": "^0.1.0", + "is-npm": "^1.0.0", + "latest-version": "^3.0.0", + "semver-diff": "^2.0.0", + "xdg-basedir": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "optional": true, + "peer": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "optional": true, + "peer": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "optional": true, + "peer": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "optional": true, + "peer": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "optional": true, + "peer": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "optional": true, + "peer": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "optional": true, + "peer": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } }, "uri-js": { "version": "4.4.1", @@ -3114,38 +9454,144 @@ "punycode": "^2.1.0" } }, + "url-parse-lax": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", + "integrity": "sha512-BVA4lR5PIviy2PMseNd2jbFQ+jwSwQGdJejf5ctd1rEXt0Ypd7yanUK9+lYechVlN5VaTJGsu2U/3MDDu6KgBA==", + "optional": true, + "peer": true, + "requires": { + "prepend-http": "^1.0.1" + } + }, "v8-compile-cache": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", "dev": true }, + "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==" + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, + "devOptional": true, "requires": { "isexe": "^2.0.0" } }, + "widest-line": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", + "requires": { + "string-width": "^4.0.0" + } + }, "word-wrap": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "dev": true }, + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==" + }, + "wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "devOptional": true + }, + "write-file-atomic": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz", + "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==", + "optional": true, + "peer": true, + "requires": { + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.2" + }, + "dependencies": { + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "optional": true, + "peer": true + } + } + }, + "ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "optional": true, + "peer": true, + "requires": {} + }, + "xdg-basedir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", + "integrity": "sha512-1Dly4xqlulvPD3fZUQJLY+FUIeqN3N2MM3uqe4rCJftAvOjFa3jFGfctOgluGx4ahPbUCsZkmJILiP0Vi4T6lQ==", + "optional": true, + "peer": true + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", + "optional": true, + "peer": true + }, + "yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "optional": true, + "peer": true, + "requires": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } }, "yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true + }, + "yoctocolors-cjs": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz", + "integrity": "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==" } } } diff --git a/extensions/google-maps-search/package.json b/extensions/google-maps-search/package.json index 9830f5b7f2e..a430d43314f 100644 --- a/extensions/google-maps-search/package.json +++ b/extensions/google-maps-search/package.json @@ -9,10 +9,10 @@ "Web" ], "contributors": [ - "lin", "chrismessina", "klaussner", - "krsntn" + "krsntn", + "lin" ], "keywords": [ "directions", @@ -25,6 +25,20 @@ "Windows" ], "commands": [ + { + "name": "searchPlaces", + "title": "Search Places", + "subtitle": "Google Maps", + "description": "Search for places and see detailed information and a map view. Enable autofill to use selected text or clipboard.", + "mode": "view" + }, + { + "name": "findNearbyPlaces", + "title": "Find Nearby Places", + "subtitle": "Google Maps", + "description": "Find places near your home or current location.", + "mode": "view" + }, { "name": "travelHome", "title": "Get Me Home", @@ -56,16 +70,18 @@ "keywords": [ "find place" ] - }, - { - "name": "find", - "title": "Search Google Maps", - "subtitle": "Google Maps", - "description": "Use text selection or clipboard to find a place or category on Google Maps.", - "mode": "view" } ], "preferences": [ + { + "name": "googlePlacesApiKey", + "title": "Google Places API Key", + "description": "Enter your Google Places API key. Required for place details and map features.", + "type": "password", + "required": true, + "placeholder": "Your Google Places API Key", + "information": "Get your API key from the Google Cloud Console: https://console.cloud.google.com/" + }, { "name": "homeAddress", "title": "Home Address", @@ -74,6 +90,24 @@ "required": true, "placeholder": "Street Address, City, State, ZIP Code" }, + { + "name": "preferredOrigin", + "title": "Preferred Starting Location", + "description": "Select your preferred starting location.", + "type": "dropdown", + "required": true, + "default": "home", + "data": [ + { + "title": "Home Address", + "value": "home" + }, + { + "title": "Custom Address", + "value": "custom" + } + ] + }, { "name": "preferredMode", "title": "Preferred Mode of Transport", @@ -101,24 +135,20 @@ ] }, { - "name": "preferredOrigin", - "title": "Preferred Starting Location", - "description": "Select your preferred starting location.", + "name": "unitSystem", "type": "dropdown", - "required": true, - "default": "curloc", + "title": "Unit System", + "required": false, + "default": "metric", + "description": "Choose between metric or imperial units for distances.", "data": [ { - "title": "Current Location", - "value": "curloc" + "title": "Metric System", + "value": "metric" }, { - "title": "Home", - "value": "home" - }, - { - "title": "Custom", - "value": "custom" + "title": "Imperial Units", + "value": "imperial" } ] }, @@ -139,20 +169,81 @@ "type": "checkbox", "required": false, "default": true + }, + { + "name": "showMapInSidebar", + "title": "Show Map in Place Details", + "label": "Show Maps", + "description": "Check this box to show a map when viewing place details.", + "type": "checkbox", + "required": false, + "default": true + }, + { + "name": "defaultSortOrder", + "title": "Default Sort Order", + "description": "Choose how search results should be sorted by default.", + "type": "dropdown", + "required": false, + "default": "none", + "data": [ + { + "title": "Default", + "value": "none" + }, + { + "title": "Proximity", + "value": "proximity" + }, + { + "title": "Rating", + "value": "rating" + }, + { + "title": "Price Level", + "value": "price" + } + ] + } + ], + "tools": [ + { + "name": "searchPlaces", + "title": "Search Places", + "description": "Search for places by name, address, or category" + }, + { + "name": "getPlaceDetails", + "title": "Get Place Details", + "description": "Get detailed information about a specific place" + }, + { + "name": "getDirections", + "title": "Get Directions", + "description": "Get directions between locations" + }, + { + "name": "showPlacesOnMap", + "title": "Show Places on Map", + "description": "Display multiple places on a Google Maps interface" } ], "dependencies": { - "@raycast/api": "^1.80.0" + "@googlemaps/google-maps-services-js": "^3.4.0", + "@raycast/api": "^1.97.1", + "@raycast/utils": "^1.19.1" }, "devDependencies": { "@raycast/eslint-config": "^1.0.5", - "@types/node": "^18.8.3", - "@types/react": "^18.0.9", + "@types/node": "^22.13.10", + "@types/react": "^19.0.10", "eslint": "^8.22.0", "typescript": "^4.7.4" }, "scripts": { "build": "ray build -e dist", - "dev": "ray develop" + "dev": "ray develop", + "publish": "npx @raycast/api@latest publish", + "evals": "npx ray evals" } } diff --git a/extensions/google-maps-search/src/components/nearbyPlacesSearchForm.tsx b/extensions/google-maps-search/src/components/nearbyPlacesSearchForm.tsx new file mode 100644 index 00000000000..2f2f8b3d253 --- /dev/null +++ b/extensions/google-maps-search/src/components/nearbyPlacesSearchForm.tsx @@ -0,0 +1,216 @@ +import { Action, ActionPanel, Form, Icon, openExtensionPreferences, useNavigation } from "@raycast/api"; +import { showFailureToast, useForm, useLocalStorage } from "@raycast/utils"; +import { OriginOption, PLACE_TYPES } from "../types"; +import { useNearbyPlaces } from "../hooks/useNearbyPlaces"; +import { getDefaultRadius, getUnitSystem } from "../utils/common"; +import { createPlaceNavigation } from "../utils/navigation"; + +/** + * The NearbyPlacesSearchForm component is a form for the user to input search criteria, + * which is then used to search for nearby places using the Google Maps API. + * + * Features: + * - Persists form values using localStorage + * - Validates form values before submission using Raycast's useForm hook + * - Handles errors and displays appropriate messages + * - Uses the createPlaceNavigation utility to navigate to search results + */ + +// Default values for form fields +const DEFAULT_PLACE_TYPE = "restaurant"; +const DEFAULT_ORIGIN = OriginOption.Home; +const DEFAULT_CUSTOM_ADDRESS = ""; +const DEFAULT_RADIUS = getDefaultRadius(); + +// Local storage keys +const STORAGE_KEY = { + PLACE_TYPE: "last-place-type", + RADIUS: "last-radius", + ORIGIN: "last-origin-option", + CUSTOM_ADDRESS: "last-custom-address", + OPEN_NOW: "last-open-now", +}; + +// Error messages +const ERROR_MESSAGES = { + NO_PLACES_FOUND: + "No places found matching your criteria. Try increasing the search radius or changing the place type.", +}; + +/** + * Form values interface for the NearbyPlacesSearchForm + */ +interface NearbyPlacesFormValues { + placeType: string; + origin: string; + customAddress: string; + radius: string; + openNow: boolean; +} + +export function NearbyPlacesSearchForm() { + const { push, pop } = useNavigation(); + const { searchNearbyPlaces, isLoading } = useNearbyPlaces(); + + // Use localStorage to persist form values with proper default values + const { value: savedPlaceType, setValue: setSavedPlaceType } = useLocalStorage( + STORAGE_KEY.PLACE_TYPE, + DEFAULT_PLACE_TYPE + ); + const { value: savedRadius, setValue: setSavedRadius } = useLocalStorage(STORAGE_KEY.RADIUS, DEFAULT_RADIUS); + const { value: savedOrigin, setValue: setSavedOrigin } = useLocalStorage(STORAGE_KEY.ORIGIN, DEFAULT_ORIGIN); + const { value: savedCustomAddress, setValue: setSavedCustomAddress } = useLocalStorage( + STORAGE_KEY.CUSTOM_ADDRESS, + DEFAULT_CUSTOM_ADDRESS + ); + const { value: savedOpenNow, setValue: setSavedOpenNow } = useLocalStorage(STORAGE_KEY.OPEN_NOW, false); + + // Handle search submission + const handleSubmit = async (values: NearbyPlacesFormValues) => { + try { + // Save form values to localStorage with null/undefined checks + if (values.placeType) setSavedPlaceType(values.placeType); + if (values.radius) setSavedRadius(values.radius); + if (values.origin) setSavedOrigin(values.origin); + // For custom address, we can save empty string + setSavedCustomAddress(values.customAddress || DEFAULT_CUSTOM_ADDRESS); + setSavedOpenNow(values.openNow); + + const radiusValue = parseFloat(values.radius); + + // Validate origin before proceeding + if (!values.origin || !(Object.values(OriginOption) as string[]).includes(values.origin)) { + await showFailureToast({ + title: "Invalid Origin", + message: "Please select a valid origin option before searching.", + }); + return; + } + + const places = await searchNearbyPlaces( + values.placeType, + values.origin as OriginOption, + values.customAddress, + radiusValue, + values.openNow + ); + + if (places && places.length > 0) { + const placeNavigation = createPlaceNavigation(push, pop, places, values.placeType); + placeNavigation.navigateToResults(isLoading); + } else { + await showFailureToast({ + title: "No places found", + message: ERROR_MESSAGES.NO_PLACES_FOUND, + }); + } + } catch (error: unknown) { + console.error("Error in handleSubmit:", error); + + if (error instanceof Error && error.message.includes("ZERO_RESULTS")) { + await showFailureToast({ + title: "No Results Found", + message: ERROR_MESSAGES.NO_PLACES_FOUND, + }); + } else { + await showFailureToast({ + title: "Error searching for places", + message: error instanceof Error ? error.message : "An unknown error occurred", + }); + } + } + }; + + // Use the useForm hook for form validation + const { + handleSubmit: formSubmit, + itemProps, + values, + } = useForm({ + onSubmit: handleSubmit, + initialValues: { + placeType: savedPlaceType || DEFAULT_PLACE_TYPE, + origin: savedOrigin || DEFAULT_ORIGIN, + customAddress: savedCustomAddress || DEFAULT_CUSTOM_ADDRESS, + radius: savedRadius || DEFAULT_RADIUS, + openNow: savedOpenNow, + }, + validation: { + radius: (value) => { + if (!value) return "Please enter a radius value"; + const num = parseFloat(value); + if (isNaN(num)) { + return "Please enter a valid number"; + } + if (num < 0.5) { + return "Radius must be at least 0.5"; + } + if (num > 50) { + return "Radius must be at most 50"; + } + return undefined; + }, + customAddress: (value) => { + if (values.origin === OriginOption.Custom) { + // Check if address is empty + if (!value?.trim()) { + return "Please enter a custom address"; + } + + // Check for minimum length + if (value.trim().length < 5) { + return "Address is too short, please be more specific"; + } + + // Check for address format - should contain at least some alphanumeric characters + if (!/[a-zA-Z0-9]/.test(value)) { + return "Address should contain alphanumeric characters"; + } + + // Check for special characters that might cause issues with the API + if (/[<>{}[\]\\^~`|]/.test(value)) { + return "Address contains invalid special characters"; + } + } + return undefined; + }, + }, + }); + + return ( +
+ + openExtensionPreferences()} /> + + } + > + + {PLACE_TYPES.map((type) => ( + + ))} + + + + + + + + {values.origin === OriginOption.Custom && ( + + )} + + + + + + ); +} diff --git a/extensions/google-maps-search/src/components/placeActions.tsx b/extensions/google-maps-search/src/components/placeActions.tsx new file mode 100644 index 00000000000..27037b0b5a0 --- /dev/null +++ b/extensions/google-maps-search/src/components/placeActions.tsx @@ -0,0 +1,62 @@ +import { Action, ActionPanel, Icon, getPreferenceValues } from "@raycast/api"; +import { PlaceSearchResult, Preferences } from "../types"; +import { makeDirectionsURL, makeSearchURL } from "../utils/url"; + +interface PlaceActionsProps { + place: PlaceSearchResult; + onViewDetails?: (placeId: string) => void; + onBack?: () => void; + preferredMode?: string; + isDetailView?: boolean; +} + +export function PlaceActions({ place, onViewDetails, onBack, preferredMode, isDetailView }: PlaceActionsProps) { + const preferences = getPreferenceValues(); + const mode = preferredMode || preferences.preferredMode || "driving"; + + return ( + + + {!isDetailView && onViewDetails && ( + onViewDetails(place.placeId)} /> + )} + + + + + + + + + + + + + {onBack && ( + + + + )} + + ); +} diff --git a/extensions/google-maps-search/src/components/placeDetailView.tsx b/extensions/google-maps-search/src/components/placeDetailView.tsx new file mode 100644 index 00000000000..9c82ed6cf94 --- /dev/null +++ b/extensions/google-maps-search/src/components/placeDetailView.tsx @@ -0,0 +1,178 @@ +import { useState, useEffect } from "react"; +import { Action, ActionPanel, Detail, getPreferenceValues, Icon, Color } from "@raycast/api"; +import { showFailureToast } from "@raycast/utils"; +import { Preferences, PlaceDetails } from "../types"; +import { getPlaceDetails } from "../utils/googlePlacesApi"; +import { formatPriceLevel, formatRating } from "../utils/common"; +import { makeSearchURL } from "../utils/url"; +import { PlaceActions } from "./placeActions"; +import { renderSingleLocationMap } from "../utils/mapRenderer"; + +interface PlaceDetailViewProps { + placeId: string; + onBack: () => void; +} + +export function PlaceDetailView({ placeId, onBack }: PlaceDetailViewProps) { + const [isLoading, setIsLoading] = useState(true); + const [placeDetails, setPlaceDetails] = useState(null); + const [markdown, setMarkdown] = useState(""); + const preferences = getPreferenceValues(); + + // Fetch place details when the component mounts + useEffect(() => { + async function fetchPlaceDetails() { + try { + setIsLoading(true); + const details = await getPlaceDetails(placeId); + setPlaceDetails(details); + } catch (err) { + showFailureToast("Failed to fetch place details", { message: "Please check your API key." }); + } finally { + setIsLoading(false); + } + } + + fetchPlaceDetails(); + }, [placeId]); + + // Generate markdown for place details + useEffect(() => { + if (!placeDetails) return; + + let isMounted = true; + + const googleMapsUrl = makeSearchURL(encodeURIComponent(`${placeDetails.name} ${placeDetails.address}`)); + + // Use the new map renderer utility instead of directly calling getStaticMapUrl + const mapPromise = preferences.showMapInSidebar + ? renderSingleLocationMap(placeDetails.location, 15, true, `Map of ${placeDetails.name}`, googleMapsUrl) + : Promise.resolve(""); + + // We need to handle the async nature of the map renderer + let markdown = `# ${placeDetails.name}\n\n`; + markdown += + "### " + + formatRating(placeDetails.rating, 1, placeDetails.userRatingsTotal) + + (placeDetails.priceLevel === undefined ? "" : " • " + formatPriceLevel(placeDetails.priceLevel)) + + "\n\n"; + markdown += + placeDetails.types.length > 0 + ? `${placeDetails.types[0].replace(/\b\w/g, (l) => l.toUpperCase()).replace(/_/g, " ")}\n\n` + : ""; + + // Add a placeholder for the map that will be replaced asynchronously + markdown += preferences.showMapInSidebar ? "[MAP_PLACEHOLDER]\n\n" : "\n\n"; + + if (placeDetails.reviews && placeDetails.reviews.length > 0) { + markdown += "\n*\t*\t*\t\n"; + markdown += "## Top Reviews\n\n"; + placeDetails.reviews.slice(0, 3).forEach((review) => { + markdown += `### ${review.authorName} - ${formatRating(review.rating)}\n`; + markdown += `*${review.relativeTimeDescription}*\n\n`; + markdown += `${review.text}\n\n`; + markdown += "\n*\t*\t*\t\n"; + }); + } + + setMarkdown(markdown); + + mapPromise + .then((mapMarkdown) => { + if (isMounted && mapMarkdown) { + setMarkdown((prevMarkdown) => { + // Only update if component is still mounted (prevents race conditions) + if (!isMounted) return prevMarkdown; + + // Replace the [MAP_PLACEHOLDER] with the actual map + return prevMarkdown.replace("[MAP_PLACEHOLDER]", mapMarkdown); + }); + } + }) + .catch((error) => { + if (isMounted) { + showFailureToast("Failed to render map", { message: error.message }); + } + }); + + return () => { + isMounted = false; + }; + }, [placeDetails, preferences.showMapInSidebar]); + + return ( + + + {placeDetails.phoneNumber && ( + + )} + {placeDetails.website && ( + + )} + {placeDetails.openingHours?.isOpen !== undefined && ( + + )} + {placeDetails.openingHours?.weekdayText && placeDetails.openingHours.weekdayText.length > 0 && ( + + {placeDetails.openingHours.weekdayText.map((day) => ( + + ))} + + )} + {placeDetails.types && placeDetails.types.length > 0 && ( + + {placeDetails.types.slice(0, 5).map((type, index) => ( + + ))} + + )} + {placeDetails.photos && placeDetails.photos.length > 0 && ( + + )} + + ) + } + actions={ + placeDetails ? ( + + ) : ( + + + + ) + } + /> + ); +} diff --git a/extensions/google-maps-search/src/components/placeListView.tsx b/extensions/google-maps-search/src/components/placeListView.tsx new file mode 100644 index 00000000000..2c5cacaa9a3 --- /dev/null +++ b/extensions/google-maps-search/src/components/placeListView.tsx @@ -0,0 +1,110 @@ +import { List, Color } from "@raycast/api"; +import { PlaceSearchResult } from "../types"; +import { formatRating, formatDistance, calculateDistance } from "../utils/common"; +import { PlaceActions } from "./placeActions"; +import { useMemo, useState, useEffect, useCallback } from "react"; +import { debounce } from "../helpers/debounce"; + +interface PlaceListViewProps { + places: PlaceSearchResult[]; + isLoading: boolean; + onSelectPlace: (placeId: string) => void; + sectionTitle?: string; + sectionSubtitle?: string; + originLocation?: { lat: number; lng: number }; + formatPlaceTypes?: (types: string[]) => string; +} + +// Delay in milliseconds before showing the empty view +const EMPTY_VIEW_DELAY = 1000; + +export function PlaceListView({ + places, + isLoading, + onSelectPlace, + sectionTitle = "Places", + sectionSubtitle, + originLocation, + formatPlaceTypes = (types) => + types + .slice(0, 3) + .map((type) => type.replace(/_/g, " ")) + .join(", "), +}: PlaceListViewProps) { + // State to track whether to show the empty view + const [showEmptyView, setShowEmptyView] = useState(false); + + // Create a debounced function to set the empty view state + // This will only be created once when the component mounts + const debouncedSetEmptyView = useCallback( + debounce((isEmpty: boolean) => { + setShowEmptyView(isEmpty); + }, EMPTY_VIEW_DELAY), + [] + ); + + // Update the empty view state when loading or places change + useEffect(() => { + // If loading or we have places, don't show empty view + if (isLoading || places.length > 0) { + setShowEmptyView(false); + return; + } + + // If not loading and no places, debounce showing the empty view + debouncedSetEmptyView(true); + }, [isLoading, places.length, debouncedSetEmptyView]); + + // Memoize distance calculations to avoid recalculating on every render + const distanceMap = useMemo(() => { + if (!originLocation) return {}; + + // Create a map of placeId -> formatted distance + return places.reduce>((acc, place) => { + if (place.location) { + const distance = calculateDistance( + originLocation.lat, + originLocation.lng, + place.location.lat, + place.location.lng + ); + acc[place.placeId] = formatDistance(distance); + } + return acc; + }, {}); + }, [places, originLocation]); + + return ( + + {places.length === 0 && showEmptyView ? ( + + ) : ( + + {places.map((place) => ( + 0 ? formatPlaceTypes(place.types) : undefined }, + { + text: + place.openNow !== undefined + ? place.openNow + ? { value: "Open Now", color: Color.Green } + : { value: "Closed", color: Color.Red } + : undefined, + }, + { + text: originLocation && place.location ? distanceMap[place.placeId] : undefined, + }, + ]} + actions={} + /> + ))} + + )} + + ); +} diff --git a/extensions/google-maps-search/src/components/placeSearchResults.tsx b/extensions/google-maps-search/src/components/placeSearchResults.tsx new file mode 100644 index 00000000000..115dc904474 --- /dev/null +++ b/extensions/google-maps-search/src/components/placeSearchResults.tsx @@ -0,0 +1,98 @@ +import { List, Icon, getPreferenceValues, Color } from "@raycast/api"; +import { Preferences, PlaceSearchResult } from "../types"; +import { PlaceActions } from "./placeActions"; +import { PLACE_TYPES } from "../types/places"; + +interface PlaceSearchResultsProps { + places: PlaceSearchResult[]; + isLoading: boolean; + onSelectPlace: (placeId: string) => void; + onBack?: () => void; + placeType?: string; +} + +export function PlaceSearchResults({ places, isLoading, onSelectPlace, onBack, placeType }: PlaceSearchResultsProps) { + const preferences = getPreferenceValues(); + + // Format place types for display + const formatPlaceTypes = (types: string[]): string => { + if (!types || !Array.isArray(types)) return ""; + + return types + .slice(0, 3) + .filter((type): type is string => typeof type === "string") // Filter out non-string values + .map((type) => type.replace(/_/g, " ")) + .join(", "); + }; + + // Format place type for display in title + const formatPlaceTypeTitle = (type?: string | null): string => { + // Return default value if type is not a valid string + if (!type || typeof type !== "string") return "Places"; + + // Find the place type in the predefined list and use its plural form + const placeTypeOption = PLACE_TYPES.find((option) => option.value === type); + if (placeTypeOption && placeTypeOption.plural) { + return placeTypeOption.plural; + } + + try { + // Fallback for custom types not in the predefined list + // Convert from camelCase or snake_case and capitalize first letter of each word + const formatted = type + .replace(/_/g, " ") + .replace(/([A-Z])/g, " $1") + .trim() + .toLowerCase() + .replace(/\b\w/g, (c) => c.toUpperCase()); + + // Simple pluralization for fallback + if (formatted.endsWith("y")) { + return formatted.slice(0, -1) + "ies"; + } else if (!formatted.endsWith("s")) { + return formatted + "s"; + } + + return formatted; + } catch (error) { + console.error(`Error formatting place type: ${type}`, error); + return "Places"; + } + }; + + const sectionTitle = formatPlaceTypeTitle(placeType); + + return ( + + + {places.map((place) => ( + + } + /> + ))} + + {places.length === 0 && !isLoading && ( + + )} + + ); +} diff --git a/extensions/google-maps-search/src/components/preferences-actions.tsx b/extensions/google-maps-search/src/components/preferences-actions.tsx new file mode 100644 index 00000000000..d916cbf817b --- /dev/null +++ b/extensions/google-maps-search/src/components/preferences-actions.tsx @@ -0,0 +1,13 @@ +import { Action, ActionPanel, Icon } from "@raycast/api"; + +interface PreferencesActionsProps { + onOpenPreferences: () => void; +} + +export function PreferencesActions({ onOpenPreferences }: PreferencesActionsProps) { + return ( + + + + ); +} diff --git a/extensions/google-maps-search/src/components/preferencesActions.tsx b/extensions/google-maps-search/src/components/preferencesActions.tsx new file mode 100644 index 00000000000..75e8b67dd35 --- /dev/null +++ b/extensions/google-maps-search/src/components/preferencesActions.tsx @@ -0,0 +1,18 @@ +import { Action, ActionPanel, Icon } from "@raycast/api"; + +interface PreferencesActionsProps { + onOpenPreferences: () => void; +} + +export function PreferencesActions({ onOpenPreferences }: PreferencesActionsProps) { + return ( + + + + ); +} diff --git a/extensions/google-maps-search/src/find.tsx b/extensions/google-maps-search/src/find.tsx index 4dfad8ca1c8..07f0d0b9fd7 100644 --- a/extensions/google-maps-search/src/find.tsx +++ b/extensions/google-maps-search/src/find.tsx @@ -1,113 +1,22 @@ -import { useState, useEffect, useCallback } from "react"; -import { Action, ActionPanel, List, Icon, LocalStorage, getPreferenceValues, LaunchProps } from "@raycast/api"; -import { makeSearchURL } from "./utils/url"; -import { Preferences } from "./utils/types"; +import { LaunchProps, showToast, Toast, open } from "@raycast/api"; -function SearchCommand({ initialSearchText }: { initialSearchText?: string }) { - const { saveSearchHistory } = getPreferenceValues(); +// This command has been merged with searchPlaces.tsx +// Redirecting users to the new command +// Renamed to findPlaces.tsx - const [searchText, setSearchText] = useState(initialSearchText || ""); - const [recentSearches, setRecentSearches] = useState([]); - const [isLoading, setIsLoading] = useState(true); - - const loadRecentSearches = useCallback(async () => { - const storedSearches = await LocalStorage.getItem("recent-searches"); - setRecentSearches(storedSearches ? JSON.parse(storedSearches) : []); - setIsLoading(false); - }, []); - - useEffect(() => { - loadRecentSearches(); - }, [loadRecentSearches]); - - useEffect(() => { - if (searchText.length > 3 && !recentSearches.includes(searchText.trim()) && saveSearchHistory) { - const timeoutId = setTimeout(async () => { - const updatedSearches = [searchText, ...recentSearches.filter((s) => s !== searchText)].slice(0, 10); - await LocalStorage.setItem("recent-searches", JSON.stringify(updatedSearches)); - setRecentSearches(updatedSearches); - }, 3000); - - return () => clearTimeout(timeoutId); - } - }, [searchText, recentSearches, saveSearchHistory]); - - const handleRemoveSearch = useCallback( - async (searchToRemove: string) => { - const updatedSearches = recentSearches.filter((s) => s !== searchToRemove); - await LocalStorage.setItem("recent-searches", JSON.stringify(updatedSearches)); - setRecentSearches(updatedSearches); - }, - [recentSearches] - ); - - // New function to clear all recent searches - const handleClearAllSearches = useCallback(async () => { - await LocalStorage.removeItem("recent-searches"); - setRecentSearches([]); - }, []); - - const sharedProps: React.ComponentProps = { - searchBarPlaceholder: "Search Google Maps...", - searchText, - onSearchTextChange: setSearchText, - isLoading, - }; - - if (!searchText) { - return ( - - - {recentSearches.map((search) => ( - - - setSearchText(search)} /> - - handleRemoveSearch(search)} /> - {/* New action to clear all searches */} - - - } - /> - ))} - - ); - } - - return ( - - - - - - } - /> - +export default function Command({ launchContext, fallbackText }: LaunchProps<{ launchContext: { query: string } }>) { + // Show a toast informing the user about the change + showToast({ + style: Toast.Style.Success, + title: "Command Upgraded", + message: "Using the improved Search Places command", + }); + + // Open the searchPlaces command with the same query + const query = launchContext?.query ?? fallbackText; + open( + `raycast://extensions/messina/google-maps-search/searchPlaces${query ? `?query=${encodeURIComponent(query)}` : ""}` ); -} -export default function Command({ launchContext, fallbackText }: LaunchProps<{ launchContext: { query: string } }>) { - return ; + return null; } diff --git a/extensions/google-maps-search/src/findNearbyPlaces.tsx b/extensions/google-maps-search/src/findNearbyPlaces.tsx new file mode 100644 index 00000000000..9c0df15a774 --- /dev/null +++ b/extensions/google-maps-search/src/findNearbyPlaces.tsx @@ -0,0 +1,8 @@ +import { NearbyPlacesSearchForm } from "./components/nearbyPlacesSearchForm"; + +/** + * Main command component for finding nearby places + */ +export default function NearbyPlacesCommand() { + return ; +} diff --git a/extensions/google-maps-search/src/helpers/debounce.ts b/extensions/google-maps-search/src/helpers/debounce.ts index 0b84c21f82a..b78300a7974 100644 --- a/extensions/google-maps-search/src/helpers/debounce.ts +++ b/extensions/google-maps-search/src/helpers/debounce.ts @@ -2,19 +2,20 @@ * Creates a debounced function that delays invoking the original function until after `wait` milliseconds * have elapsed since the last time the debounced function was invoked. * - * @template T - The type of the function to be debounced - * @param {T} func - The function to debounce + * @template Args - The argument types of the function + * @template R - The return type of the function + * @param {(...args: Args) => R} func - The function to debounce * @param {number} wait - The number of milliseconds to delay - * @returns {(...args: Parameters) => Promise>} A new debounced function + * @returns {(...args: Args) => Promise} A new debounced function */ -export const debounce = any>( - func: T, +export const debounce = ( + func: (...args: Args) => R, wait: number -): ((...args: Parameters) => Promise>) => { +): ((...args: Args) => Promise) => { let timeout: NodeJS.Timeout | null; - return (...args: Parameters) => { - return new Promise>((resolve) => { + return (...args: Args) => { + return new Promise((resolve) => { // Clear the previous timeout if it exists if (timeout) clearTimeout(timeout); diff --git a/extensions/google-maps-search/src/hooks/useGeocoding.ts b/extensions/google-maps-search/src/hooks/useGeocoding.ts new file mode 100644 index 00000000000..44f1154d677 --- /dev/null +++ b/extensions/google-maps-search/src/hooks/useGeocoding.ts @@ -0,0 +1,155 @@ +import { useState } from "react"; +import { getPreferenceValues } from "@raycast/api"; +import { showFailureToast } from "@raycast/utils"; +import { Preferences } from "../types"; +import { geocodeAddress, searchPlaces } from "../utils/googlePlacesApi"; + +/** + * Type for geocoding options + */ +type GeocodingOptions = { + showToasts?: boolean; + source?: "home" | "custom"; + locationBias?: string | { lat: number; lng: number }; +}; + +/** + * Type for geocoding result + */ +type GeocodingResult = { lat: number; lng: number } | null; + +/** + * Safely geocode a place name or address with fallback to search + * @param place The place name or address to geocode + * @param options Optional configuration for geocoding behavior + * @returns Location coordinates or null if geocoding failed + */ +export async function geocodePlace( + place: string, + options: GeocodingOptions = { showToasts: true } +): Promise { + if (!place.trim()) { + if (options.showToasts) { + await showFailureToast({ + title: "Missing Address", + message: options.source === "home" ? "Home address is not set in preferences" : "Please enter an address", + }); + } + return null; + } + + try { + console.log(`Geocoding place: "${place}"${options.locationBias ? ` with location bias` : ""}`); + + // First try direct geocoding + const coords = await geocodeAddress(place, options.locationBias); + if (coords) { + console.log(`Successfully geocoded "${place}" to:`, coords); + return coords; + } + + // If geocoding fails, try using the Places API search + console.log( + `Geocoding failed for "${place}", trying search API instead${options.locationBias ? " with location bias" : ""}` + ); + + // If we have a location bias, convert it to coordinates for the search + let locationForSearch: { lat: number; lng: number } | undefined = undefined; + + if (options.locationBias) { + if (typeof options.locationBias === "string") { + // Try to geocode the location bias if it's a string + const biasCoords = await geocodeAddress(options.locationBias); + if (biasCoords) { + locationForSearch = biasCoords; + } + } else { + // Use the coordinates directly if provided + locationForSearch = options.locationBias; + } + } + + const searchResults = await searchPlaces(place, locationForSearch); + + if (searchResults && searchResults.length > 0) { + console.log(`Found "${place}" via search API:`, searchResults[0].location); + return searchResults[0].location; + } + + console.log(`No results found for "${place}"`); + + if (options.showToasts) { + await showFailureToast({ + title: "Geocoding Failed", + message: `Could not find location for "${place}"`, + }); + } + + return null; + } catch (error) { + console.error(`Error geocoding "${place}":`, error); + + if (options.showToasts) { + await showFailureToast({ + title: "Geocoding Error", + message: `Error finding location for "${place}"`, + }); + } + + return null; + } +} + +/** + * Hook for geocoding addresses with loading state + */ +export function useGeocoding() { + const [isLoading, setIsLoading] = useState(false); + const [error, setError] = useState(null); + const preferences = getPreferenceValues(); + + /** + * Geocode any address with loading state + * @param address The address to geocode (if undefined, uses home address from preferences) + * @param options Optional configuration for geocoding behavior + * @returns Location coordinates or null if geocoding failed + */ + const geocode = async ( + address?: string, + options: GeocodingOptions = { showToasts: true } + ): Promise => { + setIsLoading(true); + setError(null); + + try { + if (address) { + return await geocodePlace(address, { ...options, source: "custom" }); + } else { + return await geocodePlace(preferences.homeAddress, { ...options, source: "home" }); + } + } catch (err) { + // If it's already an Error instance, use it directly + if (err instanceof Error) { + setError(err); + return null; + } + + // Define an interface for our extended error type + interface ExtendedError extends Error { + originalError: unknown; + } + + // Create a new Error with the string representation + const error = new Error(String(err)) as ExtendedError; + // Add original error as a property for debugging + error.originalError = err; + + setError(error); + return null; + } finally { + setIsLoading(false); + } + }; + + return { geocode, isLoading, error }; +} diff --git a/extensions/google-maps-search/src/hooks/useNearbyPlaces.ts b/extensions/google-maps-search/src/hooks/useNearbyPlaces.ts new file mode 100644 index 00000000000..53d18b9b772 --- /dev/null +++ b/extensions/google-maps-search/src/hooks/useNearbyPlaces.ts @@ -0,0 +1,169 @@ +import { useState, useCallback, useRef, useEffect } from "react"; +import { getPreferenceValues, openExtensionPreferences } from "@raycast/api"; +import { Preferences, PlaceSearchResult, OriginOption } from "../types"; +import { getNearbyPlaces } from "../utils/googlePlacesApi"; +import { showFailureToast } from "@raycast/utils"; +import { geocodePlace } from "../hooks/useGeocoding"; + +export function useNearbyPlaces() { + const preferences = getPreferenceValues(); + const [isLoading, setIsLoading] = useState(false); + const [places, setPlaces] = useState([]); + + // Define location type for reuse + type Location = { lat: number; lng: number }; + + // Cache for geocoded home address + const cachedHomeAddressRef = useRef<{ + address: string; + location: Location | null; + }>({ address: "", location: null }); + + const searchNearbyPlaces = useCallback( + async (placeType: string, origin: OriginOption, customAddress: string, radius: number, openNow = false) => { + setIsLoading(true); + + try { + // Verify API key + if (!preferences.googlePlacesApiKey) { + // Clear any previous results + setPlaces([]); + showFailureToast({ + title: "API Key Missing", + message: "Please set your Google Places API key in preferences", + primaryAction: { + title: "Open Preferences", + onAction: () => openExtensionPreferences(), + }, + }); + return null; + } + + // Get search location based on origin type + const searchLocation = await getSearchLocation(origin, customAddress); + if (!searchLocation) { + // Clear any previous results + setPlaces([]); + showFailureToast({ + title: "Search failed", + message: "Failed to get search location", + }); + return null; + } + + // Search for nearby places + try { + const results = await getNearbyPlaces(searchLocation, placeType, radius, openNow); + setPlaces(results); + + return results; + } catch (error) { + // Clear any previous results + setPlaces([]); + handleSearchError(error); + return null; + } + } catch (error) { + console.error("Unexpected error in searchNearbyPlaces:", error); + // Clear any previous results + setPlaces([]); + handleSearchError(error); + return null; + } finally { + setIsLoading(false); + } + }, + [preferences.googlePlacesApiKey, preferences.homeAddress] + ); + + // Update cached home address when preferences change + useEffect(() => { + // Reset cache when home address changes + if (preferences.homeAddress !== cachedHomeAddressRef.current.address) { + cachedHomeAddressRef.current = { address: preferences.homeAddress, location: null }; + } + }, [preferences.homeAddress]); + + // Helper function to get search location based on origin type + const getSearchLocation = async (origin: OriginOption, customAddress: string): Promise => { + // For home address + if (origin === OriginOption.Home) { + // Validate home address is not empty + if (!preferences.homeAddress?.trim()) { + showFailureToast({ + title: "Home Address Missing", + message: "Please set your home address in preferences", + primaryAction: { + title: "Open Preferences", + onAction: () => openExtensionPreferences(), + }, + }); + return null; + } + + // Check if we have a cached result for the current home address + if (cachedHomeAddressRef.current.address === preferences.homeAddress && cachedHomeAddressRef.current.location) { + return cachedHomeAddressRef.current.location; + } + + // Otherwise geocode and cache the result + const location = await geocodePlace(preferences.homeAddress, { source: "home" }); + if (location) { + cachedHomeAddressRef.current = { + address: preferences.homeAddress, + location: location, + }; + } + return location; + } + + // For custom address + if (origin === OriginOption.Custom) { + // Validate custom address is not empty + if (!customAddress?.trim()) { + showFailureToast({ + title: "Custom Address Missing", + message: "Please enter a custom address", + }); + return null; + } + return geocodePlace(customAddress, { source: "custom" }); + } + + // This should never happen with TypeScript's enum type checking + // Throwing an error is better than silently falling back + const errorMessage = `Invalid origin option: ${origin}`; + console.error(errorMessage); + + showFailureToast({ + title: "Application Error", + message: "An unexpected error occurred with the origin selection.", + }); + + // Throw error for easier debugging + throw new Error(errorMessage); + }; + + // Helper function to handle search errors + const handleSearchError = (error: unknown) => { + // Only show specific error messages below + if (error instanceof Error && error.message.includes("ZERO_RESULTS")) { + showFailureToast({ + title: "No Places Found", + message: "No places found matching your criteria. Try increasing the search radius or changing the place type.", + }); + } else { + showFailureToast({ + title: "Failed to search for nearby places", + message: error instanceof Error ? error.message : "Check your API key and network connection", + }); + } + }; + + return { + isLoading, + places, + searchNearbyPlaces, + hasApiKey: !!preferences.googlePlacesApiKey, + }; +} diff --git a/extensions/google-maps-search/src/hooks/usePlaceSearch.ts b/extensions/google-maps-search/src/hooks/usePlaceSearch.ts new file mode 100644 index 00000000000..9156f198332 --- /dev/null +++ b/extensions/google-maps-search/src/hooks/usePlaceSearch.ts @@ -0,0 +1,84 @@ +import { useState, useCallback, useEffect } from "react"; +import { getPreferenceValues, openExtensionPreferences } from "@raycast/api"; +import { Preferences, PlaceSearchResult } from "../types"; +import { searchPlaces } from "../utils/googlePlacesApi"; +import { showFailureToast } from "@raycast/utils"; + +// Constants +const MIN_SEARCH_LENGTH = 2; +const DEBOUNCE_DELAY_MS = 500; + +export function usePlaceSearch(initialSearchText?: string) { + const [searchText, setSearchText] = useState(initialSearchText || ""); + const [isLoading, setIsLoading] = useState(false); + const [places, setPlaces] = useState([]); + const preferences = getPreferenceValues(); + + // Check if API key is set + useEffect(() => { + if (!preferences.googlePlacesApiKey) { + showFailureToast({ + title: "API Key Missing", + message: "Please set your Google Places API key in preferences", + primaryAction: { + title: "Open Preferences", + onAction: () => openExtensionPreferences(), + }, + }); + } + }, [preferences.googlePlacesApiKey]); + + // Helper function to check if search text is valid + const isValidSearchText = (text: string): boolean => { + return text.trim().length > MIN_SEARCH_LENGTH; + }; + + // Search for places when the search text changes + const performSearch = useCallback(async () => { + if (!isValidSearchText(searchText) || !preferences.googlePlacesApiKey) { + setPlaces([]); + return; + } + + setIsLoading(true); + try { + const results = await searchPlaces(searchText); + setPlaces(results); + } catch (error) { + console.error("Error searching places:", error); + await showFailureToast({ + title: "Search Failed", + message: "Failed to search places. Check your API key and network connection.", + }); + setPlaces([]); + } finally { + setIsLoading(false); + } + }, [searchText, preferences.googlePlacesApiKey]); + + // Debounce search to avoid too many API calls + useEffect(() => { + const debounceTimeout = setTimeout(() => { + if (isValidSearchText(searchText)) { + performSearch(); + } + }, DEBOUNCE_DELAY_MS); + + return () => clearTimeout(debounceTimeout); + }, [searchText, performSearch]); + + // Initial search if initialSearchText is provided + useEffect(() => { + if (initialSearchText && isValidSearchText(initialSearchText)) { + performSearch(); + } + }, [initialSearchText, performSearch, preferences.googlePlacesApiKey]); + + return { + searchText, + setSearchText, + isLoading, + places, + hasApiKey: !!preferences.googlePlacesApiKey, + }; +} diff --git a/extensions/google-maps-search/src/quickSearchMaps.tsx b/extensions/google-maps-search/src/quickSearchMaps.tsx index d73a5836fd3..b089a4060ed 100644 --- a/extensions/google-maps-search/src/quickSearchMaps.tsx +++ b/extensions/google-maps-search/src/quickSearchMaps.tsx @@ -1,8 +1,18 @@ import { LaunchProps, open } from "@raycast/api"; +import { showFailureToast } from "@raycast/utils"; import { makeSearchURL } from "./utils/url"; export default async (props: LaunchProps) => { - const { query } = props.arguments; - const searchURL = makeSearchURL(query || props.fallbackText); - open(searchURL); + try { + const { query } = props.arguments; + const searchURL = makeSearchURL(query || props.fallbackText); + await open(searchURL); + } catch (error) { + console.error("Error opening Google Maps:", error); + await showFailureToast({ + title: "Error opening Google Maps", + message: error instanceof Error ? error.message : "An unexpected error occurred", + }); + throw error; + } }; diff --git a/extensions/google-maps-search/src/searchPlaces.tsx b/extensions/google-maps-search/src/searchPlaces.tsx new file mode 100644 index 00000000000..97f6d8cca6d --- /dev/null +++ b/extensions/google-maps-search/src/searchPlaces.tsx @@ -0,0 +1,227 @@ +import { showFailureToast, useLocalStorage } from "@raycast/utils"; +import { useState, useCallback, useMemo } from "react"; +import { + List, + Icon, + openExtensionPreferences, + getPreferenceValues, + LaunchProps, + Clipboard, + Action, + ActionPanel, + showToast, + Toast, +} from "@raycast/api"; +import { PlaceDetailView } from "./components/placeDetailView"; +import { PlaceActions } from "./components/placeActions"; +import { PreferencesActions } from "./components/preferencesActions"; +import { makeSearchURL, createPlaceURL } from "./utils/url"; +import { Preferences } from "./types"; +import { usePlaceSearch } from "./hooks/usePlaceSearch"; +import { debounce } from "./helpers/debounce"; + +// Constants +const MIN_SEARCH_LENGTH = 3; // Minimum characters required for a valid search +const DEBOUNCE_DELAY_MS = 500; // Delay for debounced operations + +export default function Command({ launchContext, fallbackText }: LaunchProps<{ launchContext: { query: string } }>) { + return ; +} + +function SearchPlacesCommand({ initialSearchText }: { initialSearchText?: string }) { + const preferences = getPreferenceValues(); + const { saveSearchHistory } = preferences; + const { searchText, setSearchText, isLoading, places, hasApiKey } = usePlaceSearch(initialSearchText); + const [selectedPlaceId, setSelectedPlaceId] = useState(null); + + // Use useLocalStorage hook for recent searches + const { value: recentSearches = [], setValue: setRecentSearches } = useLocalStorage("recent-searches", []); + + // Save search to recent searches + const saveSearch = useCallback( + (search: string) => { + // Trim the search text first for consistent comparison + const trimmedSearch = search.trim(); + + if (trimmedSearch.length >= MIN_SEARCH_LENGTH && !recentSearches.includes(trimmedSearch) && saveSearchHistory) { + // Use the trimmed search for storage to maintain consistency + const updatedSearches = [trimmedSearch, ...recentSearches.filter((s) => s !== trimmedSearch)].slice(0, 10); + setRecentSearches(updatedSearches); + } + }, + [recentSearches, saveSearchHistory, setRecentSearches] + ); + + // Create a debounced save search function using our custom debounce helper + const debouncedSaveSearch = useMemo( + () => debounce((text: string) => saveSearch(text), DEBOUNCE_DELAY_MS), + [saveSearch] + ); + + // Handle search text change with debounce + const handleSearchTextChange = useCallback( + (text: string) => { + setSearchText(text); + + // Only attempt to save if it meets our criteria + // Trim the search text first for consistent comparison + const trimmedText = text.trim(); + if (trimmedText.length >= MIN_SEARCH_LENGTH && !recentSearches.includes(trimmedText) && saveSearchHistory) { + // Use our debounced save function with the original text + // (the saveSearch function will handle trimming consistently) + debouncedSaveSearch(text); + } + }, + [setSearchText, recentSearches, saveSearchHistory, debouncedSaveSearch] + ); + + // Handle removing a search from history + const handleRemoveSearchCallback = useCallback( + (searchToRemove: string) => { + const updatedSearches = recentSearches.filter((s) => s !== searchToRemove); + setRecentSearches(updatedSearches); + }, + [recentSearches, setRecentSearches] + ); + + // Handle clearing all recent searches + const handleClearAllSearchesCallback = useCallback(() => { + setRecentSearches([]); + }, [setRecentSearches]); + + // Handle copying coordinates URL + const handleCopyCoordinatesCallback = useCallback(async (query: string) => { + try { + // Create a URL that makes it easy to get coordinates + const placeURL = createPlaceURL(query); + + // Copy the URL to clipboard + await Clipboard.copy(placeURL); + + // Show success toast with clear instructions + await showToast({ + style: Toast.Style.Success, + title: "Location URL copied", + message: "Open URL, right-click on pin, select 'Copy coordinates'", + }); + } catch (error) { + // Show error toast + showFailureToast(error, { title: "Failed to copy URL", message: String(error) }); + } + }, []); + + // Format place types for display + const formatPlaceTypesCallback = (types: string[]): string => { + return types + .slice(0, 3) + .map((type) => type.replace(/_/g, " ")) + .join(", "); + }; + + // If a place is selected, show its details + if (selectedPlaceId) { + return setSelectedPlaceId(null)} />; + } + + // Otherwise, show the search interface + return ( + + {!hasApiKey ? ( + } + /> + ) : searchText.length < MIN_SEARCH_LENGTH ? ( + <> + + {recentSearches.length > 0 && ( + + {recentSearches.map((search) => ( + + setSearchText(search)} /> + + handleRemoveSearchCallback(search)} + shortcut={{ modifiers: ["cmd"], key: "d" }} + /> + + + } + /> + ))} + + )} + + ) : places.length === 0 && !isLoading ? ( + + ) : ( + <> + {/* Show Google Maps search option */} + + + + + handleCopyCoordinatesCallback(searchText)} + /> + + } + /> + + + {/* Show Places API results */} + + {places.map((place) => ( + } + /> + ))} + + + )} + + ); +} diff --git a/extensions/google-maps-search/src/tools/findNearbyPlaces.ts b/extensions/google-maps-search/src/tools/findNearbyPlaces.ts new file mode 100644 index 00000000000..65f45886664 --- /dev/null +++ b/extensions/google-maps-search/src/tools/findNearbyPlaces.ts @@ -0,0 +1,103 @@ +import { getNearbyPlaces, geocodeAddress, getApiKey } from "../utils/googlePlacesApi"; +import { makeSearchURL } from "../utils/url"; +import { formatDistance, calculateDistance } from "../utils/common"; +import { showFailureToast } from "@raycast/utils"; + +/** + * Input type for the findNearbyPlaces tool + */ +type FindNearbyPlacesInput = { + /** + * The type of place to search for (e.g., restaurant, cafe, etc.) + */ + type: string; + + /** + * The location to search near (address or place name) + */ + location: string; + + /** + * The search radius in meters (default: 1000) + */ + radius?: number; + + /** + * Whether to only show open places + */ + openNow?: boolean; + + /** + * Maximum number of results to return + */ + limit?: number; +}; + +/** + * Tool for searching places near a specified location + */ +export default async function (input: FindNearbyPlacesInput): Promise { + try { + // Use the getApiKey function instead of directly accessing preferences.apiKey + // This ensures consistent API key handling across the application + const apiKey = getApiKey(); + if (!apiKey) { + return "Please set your Google Places API key in preferences."; + } + const radius = input.radius || 1000; + const limit = input.limit || 5; + + // Geocode the location to get coordinates + const locationCoords = await geocodeAddress(input.location); + if (!locationCoords) { + return `I couldn't find the location "${input.location}". Please try a different location.`; + } + + // Search for nearby places + const places = await getNearbyPlaces(locationCoords, input.type, radius); + + // Filter by openNow if specified + const filteredPlaces = input.openNow ? places.filter((place) => place.openNow) : places; + + if (filteredPlaces.length === 0) { + return `I couldn't find any ${input.openNow ? "open " : ""}${input.type} places near "${ + input.location + }". Try a different location or place type.`; + } + + const topPlaces = filteredPlaces.slice(0, limit); + let response = `Here are ${input.openNow ? "open " : ""}${input.type} places near "${input.location}":\n\n`; + + for (const place of topPlaces) { + const distance = calculateDistance( + locationCoords.lat, + locationCoords.lng, + place.location.lat, + place.location.lng + ); + + response += `- **${place.name}**\n`; + response += ` Address: ${place.address}\n`; + response += ` Distance: ${formatDistance(distance)}\n`; + if (place.rating) response += ` Rating: ${place.rating}/5\n`; + if (place.openNow !== undefined) response += ` Status: ${place.openNow ? "Open Now" : "Closed"}\n`; + response += ` [View on Google Maps](${makeSearchURL(encodeURIComponent(`${place.name} ${place.address}`))})\n\n`; + } + + if (filteredPlaces.length > limit) { + response += `\n*${filteredPlaces.length - limit} more results available.*`; + } + + return response; + } catch (error) { + showFailureToast(error, { title: "Error Searching Nearby Places" }); + return `Sorry, I encountered an error while searching for ${input.type} places near "${input.location}". Please check your API key and try again.`; + } +} + +/** + * Confirmation message for the findNearbyPlaces tool + */ +export function confirmation(input: FindNearbyPlacesInput): string { + return `Search for ${input.openNow ? "open " : ""}${input.type} places near "${input.location}"`; +} diff --git a/extensions/google-maps-search/src/tools/findPlaces.ts b/extensions/google-maps-search/src/tools/findPlaces.ts new file mode 100644 index 00000000000..166310aa2b2 --- /dev/null +++ b/extensions/google-maps-search/src/tools/findPlaces.ts @@ -0,0 +1,65 @@ +import { getPreferenceValues } from "@raycast/api"; +import { searchPlaces } from "../utils/googlePlacesApi"; +import { makeSearchURL } from "../utils/url"; +import { Preferences } from "../types"; +import { showFailureToast } from "@raycast/utils"; + +/** + * Input type for the find-places tool + */ +type FindPlacesInput = { + /** + * The search query for finding places + */ + query: string; + + /** + * Maximum number of results to return + */ + limit?: number; +}; + +/** + * Tool for finding places by search query + */ +export async function findPlaces(input: FindPlacesInput): Promise { + try { + // Get API key from preferences if needed in searchPlaces + const preferences = getPreferenceValues(); + if (!preferences.googlePlacesApiKey) { + throw new Error("Google Places API key is required"); + } + const results = await searchPlaces(input.query); + + if (results.length === 0) { + return `I couldn't find any places matching "${input.query}". Try a different search term.`; + } + + // Ensure limit is a positive number + const limit = Math.max(1, input.limit || 3); + const topResults = results.slice(0, limit); + let response = `Here are some places matching "${input.query}":\n\n`; + + for (const place of topResults) { + response += `- **${place.name}**\n`; + response += ` Address: ${place.address}\n`; + if (place.rating) response += ` Rating: ${place.rating}/5\n`; + if (place.openNow !== undefined) response += ` Status: ${place.openNow ? "Open Now" : "Closed"}\n`; + response += ` [View on Google Maps](${makeSearchURL( + encodeURIComponent(place.name) + " " + encodeURIComponent(place.address) + )})\n\n`; + } + + if (results.length > limit) { + response += `\n*${results.length - limit} more results available.*`; + } + + return response; + } catch (error) { + showFailureToast(error, { title: "Error Searching Places", message: String(error) }); + return `Sorry, I encountered an error while searching for "${input.query}". Please check your API key and try again.`; + } +} + +// Export as default for Raycast tool compatibility +export default findPlaces; diff --git a/extensions/google-maps-search/src/tools/getDirections.ts b/extensions/google-maps-search/src/tools/getDirections.ts new file mode 100644 index 00000000000..2dda10eedd4 --- /dev/null +++ b/extensions/google-maps-search/src/tools/getDirections.ts @@ -0,0 +1,83 @@ +import { getPreferenceValues } from "@raycast/api"; +import { geocodeAddress } from "../utils/googlePlacesApi"; +import { makeDirectionsURL } from "../utils/url"; +import { Preferences } from "../types"; +import { showFailureToast } from "@raycast/utils"; + +/** + * Input type for the get-directions tool + */ +type GetDirectionsInput = { + /** + * The destination address or place name + */ + destination: string; + + /** + * The starting address or place name (optional) + */ + origin?: string; + + /** + * The transportation mode (driving, walking, bicycling, transit) + */ + mode?: string; +}; + +/** + * Tool for getting directions between locations + */ +export async function getDirections(input: GetDirectionsInput): Promise { + try { + const preferences = getPreferenceValues(); + let mode = input.mode || preferences.preferredMode || "driving"; + + // Validate that mode is one of the allowed values + const validModes = ["driving", "walking", "bicycling", "transit"]; + if (!validModes.includes(mode)) { + console.warn(`Invalid transportation mode: ${mode}. Defaulting to driving.`); + mode = "driving"; + } + + // Validate destination and origin by geocoding + const destCoords = await geocodeAddress(input.destination); + if (!destCoords) { + return `I couldn't find the destination "${input.destination}". Please try a different address or place name.`; + } + + if (input.origin) { + const originCoords = await geocodeAddress(input.origin); + if (!originCoords) { + return `I couldn't find the origin "${input.origin}". Please try a different address or place name.`; + } + } + + // Create directions URL + const directionsUrl = makeDirectionsURL(input.origin || "", input.destination, mode); + + // Format response + let response = `## Directions to ${input.destination}\n\n`; + + if (input.origin) { + response += `From: ${input.origin}\n`; + } else { + // If no origin was provided, we're using the home address from preferences + response += `From: Home Address (${preferences.homeAddress || "Not set"})\n`; + } + response += `To: ${input.destination}\n`; + response += `Mode: ${mode.charAt(0).toUpperCase() + mode.slice(1)}\n\n`; + + response += `[Open Directions in Google Maps](${directionsUrl})\n\n`; + + response += + "You can view turn-by-turn directions, traffic information, and estimated travel time by opening the link in Google Maps."; + + return response; + } catch (error) { + showFailureToast(error, { title: "Error Getting Directions" }); + return `Sorry, I encountered an error while getting directions to "${input.destination}". Please check your API key and try again.`; + } +} + +// Export as default for Raycast tool compatibility +export default getDirections; diff --git a/extensions/google-maps-search/src/tools/getDistance.ts b/extensions/google-maps-search/src/tools/getDistance.ts new file mode 100644 index 00000000000..32d6d45c067 --- /dev/null +++ b/extensions/google-maps-search/src/tools/getDistance.ts @@ -0,0 +1,99 @@ +import { getPreferenceValues } from "@raycast/api"; +import { geocodeAddress } from "../utils/googlePlacesApi"; +import { makeDirectionsURL } from "../utils/url"; +import { Preferences, TransportType } from "../types"; +import { showFailureToast } from "@raycast/utils"; +import { calculateHaversineDistance } from "../utils/locationHelpers"; + +/** + * Input type for the get-distance tool + */ +type GetDistanceInput = { + /** + * The destination address or place name + */ + destination: string; + + /** + * The starting address or place name (optional) + */ + origin?: string; + + /** + * The transportation mode (driving, walking, bicycling, transit) + */ + mode?: TransportType | string; +}; + +/** + * Tool for calculating distance between locations + */ +export async function getDistance(input: GetDistanceInput): Promise { + try { + const preferences = getPreferenceValues(); + let mode = input.mode || preferences.preferredMode || TransportType.Driving; + + // Validate that mode is one of the allowed values + const validModes = [TransportType.Driving, TransportType.Walking, TransportType.Cycling, TransportType.Transit]; + // Convert string mode to enum if needed + if (typeof mode === "string") { + // Find the matching enum value + const enumValue = Object.values(TransportType).find((val) => val === mode); + if (enumValue) { + mode = enumValue as TransportType; + } else { + mode = TransportType.Driving; // Default if not found + } + } + + if (!validModes.includes(mode as TransportType)) { + console.warn(`Invalid transportation mode: ${mode}. Defaulting to driving.`); + mode = TransportType.Driving; + } + + // Determine origin + const origin = input.origin || preferences.homeAddress; + if (!origin) { + return "Please provide an origin address or set your home address in preferences."; + } + + // Validate destination and origin by geocoding + const destCoords = await geocodeAddress(input.destination); + if (!destCoords) { + return `I couldn't find the destination "${input.destination}". Please try a different address or place name.`; + } + + const originCoords = await geocodeAddress(origin); + if (!originCoords) { + return `I couldn't find the origin "${origin}". Please try a different address or place name.`; + } + + // Calculate straight-line distance using Haversine formula + const distance = calculateHaversineDistance(originCoords.lat, originCoords.lng, destCoords.lat, destCoords.lng); + + // Create directions URL + const directionsUrl = makeDirectionsURL(origin, input.destination, mode); + + // Format response + let response = `## Distance to ${input.destination}\n\n`; + response += `From: ${input.origin || "Home Address"}\n`; + response += `To: ${input.destination}\n`; + response += `Mode: ${mode.charAt(0).toUpperCase() + mode.slice(1)}\n\n`; + + // Add straight-line distance + response += `Straight-line distance: ${distance.toFixed(1)} km (${(distance * 0.621371).toFixed(1)} miles)\n\n`; + + response += `[Open Directions in Google Maps](${directionsUrl})\n\n`; + + response += + "You can view turn-by-turn directions, traffic information, and estimated travel time by opening the link in Google Maps."; + + return response; + } catch (error) { + showFailureToast(error, { title: "Error Calculating Distance" }); + return `Sorry, I encountered an error while calculating the distance to "${input.destination}". Please check your API key and try again.`; + } +} + +// Export as default for Raycast tool compatibility +export default getDistance; diff --git a/extensions/google-maps-search/src/tools/getPlaceDetails.ts b/extensions/google-maps-search/src/tools/getPlaceDetails.ts new file mode 100644 index 00000000000..a51e4f9cd71 --- /dev/null +++ b/extensions/google-maps-search/src/tools/getPlaceDetails.ts @@ -0,0 +1,101 @@ +import { getPreferenceValues } from "@raycast/api"; +import { getPlaceDetails, searchPlaces } from "../utils/googlePlacesApi"; +import { makeSearchURL, makeDirectionsURL } from "../utils/url"; +import { formatPriceLevel, formatRating } from "../utils/common"; +import { Preferences } from "../types"; +import { showFailureToast } from "@raycast/utils"; + +/** + * Input type for the get-place-details tool + */ +type GetPlaceDetailsInput = { + /** + * The place ID or name to get details for + */ + place: string; + + /** + * Whether the input is a place ID (true) or a place name (false) + */ + isPlaceId?: boolean; +}; + +/** + * Tool for getting detailed information about a specific place + */ +export default async function (input: GetPlaceDetailsInput): Promise { + try { + // Get preferences for preferred transport mode + const preferences = getPreferenceValues(); + let placeId = input.isPlaceId ? input.place : null; + + // If not a place ID, search for the place first + if (!placeId) { + const searchResults = await searchPlaces(input.place); + if (searchResults.length === 0) { + return `I couldn't find any place matching "${input.place}". Please try a different name.`; + } + placeId = searchResults[0].placeId; + } + + // Get detailed information about the place + const details = await getPlaceDetails(placeId); + + let response = `# ${details.name}\n\n`; + + // Basic information + response += `**Address**: ${details.address}\n`; + if (details.phoneNumber) response += `**Phone**: ${details.phoneNumber}\n`; + if (details.website) response += `**Website**: [${details.website}](${details.website})\n`; + + // Rating and price level + if (details.rating) { + response += `**Rating**: ${formatRating(details.rating, 1, details.userRatingsTotal)}\n`; + } + if (details.priceLevel !== undefined) { + response += `**Price Level**: ${formatPriceLevel(details.priceLevel)}\n`; + } + + // Opening hours + if (details.openingHours) { + response += `\n**Status**: ${details.openingHours.isOpen ? "Open Now" : "Closed"}\n`; + if (details.openingHours.weekdayText && details.openingHours.weekdayText.length > 0) { + response += "\n**Opening Hours**:\n"; + for (const day of details.openingHours.weekdayText) { + response += `- ${day}\n`; + } + } + } + + // Categories/types + if (details.types && details.types.length > 0) { + response += "\n**Categories**: "; + response += details.types + .slice(0, 5) + .map((type) => type.replace(/_/g, " ")) + .join(", "); + response += "\n"; + } + + // Links + response += "\n**Links**:\n"; + response += `- [View on Google Maps](${makeSearchURL(`${details.name} ${details.address}`)})\n`; + response += `- [Get Directions](${makeDirectionsURL("", details.address, preferences.preferredMode)})\n`; + + // Reviews + if (details.reviews && details.reviews.length > 0) { + response += "\n## Top Reviews\n\n"; + for (const review of details.reviews.slice(0, 2)) { + response += `### ${review.authorName} - ${formatRating(review.rating)}\n`; + response += `*${review.relativeTimeDescription}*\n\n`; + response += `${review.text}\n\n`; + response += "---\n\n"; + } + } + + return response; + } catch (error) { + showFailureToast(error, { title: "Error Getting Place Details", message: String(error) }); + return `Sorry, I encountered an error while getting details for "${input.place}". Please check your API key and try again.`; + } +} diff --git a/extensions/google-maps-search/src/tools/searchNearbyPlaces.ts b/extensions/google-maps-search/src/tools/searchNearbyPlaces.ts new file mode 100644 index 00000000000..25fd1cb7160 --- /dev/null +++ b/extensions/google-maps-search/src/tools/searchNearbyPlaces.ts @@ -0,0 +1,106 @@ +import { getPreferenceValues } from "@raycast/api"; +import { getNearbyPlaces, geocodeAddress } from "../utils/googlePlacesApi"; +import { makeSearchURL } from "../utils/url"; +import { formatDistance, calculateDistance } from "../utils/common"; +import { Preferences } from "../types"; +import { showFailureToast } from "@raycast/utils"; + +/** + * Input type for the search-nearby-places tool + */ +type SearchNearbyPlacesInput = { + /** + * The type of place to search for (e.g., restaurant, cafe, etc.) + */ + type: string; + + /** + * The location to search near (address or place name) + */ + location: string; + + /** + * The search radius in meters (default: 1000) + */ + radius?: number; + + /** + * Whether to only show open places + */ + openNow?: boolean; + + /** + * Maximum number of results to return + */ + limit?: number; +}; + +/** + * Tool for searching places near a specified location + */ +export async function searchNearbyPlaces(input: SearchNearbyPlacesInput): Promise { + try { + // Get API key from preferences if needed in getNearbyPlaces + const preferences = getPreferenceValues(); + if (!preferences.googlePlacesApiKey) { + throw new Error("Google Places API key is required"); + } + const radius = typeof input.radius === "number" && input.radius > 0 ? input.radius : 1000; + if (typeof input.radius === "number" && input.radius <= 0) { + console.warn(`Invalid radius value (${input.radius}), defaulting to 1000.`); + } + const limit = typeof input.limit === "number" && input.limit > 0 ? input.limit : 5; + if (typeof input.limit === "number" && input.limit <= 0) { + console.warn(`Invalid limit value (${input.limit}), defaulting to 5.`); + } + + // Geocode the location to get coordinates + const locationCoords = await geocodeAddress(input.location); + if (!locationCoords) { + return `I couldn't find the location "${input.location}". Please try a different location.`; + } + + // Search for nearby places + const places = await getNearbyPlaces(locationCoords, input.type, radius); + + // Filter by openNow if specified + const filteredPlaces = input.openNow ? places.filter((place) => place.openNow) : places; + + if (filteredPlaces.length === 0) { + return `I couldn't find any ${input.openNow ? "open " : ""}${input.type} places near "${ + input.location + }". Try a different location or place type.`; + } + + const topPlaces = filteredPlaces.slice(0, limit); + let response = `Here are ${input.openNow ? "open " : ""}${input.type} places near "${input.location}":\n\n`; + + for (const place of topPlaces) { + const distance = calculateDistance( + locationCoords.lat, + locationCoords.lng, + place.location.lat, + place.location.lng + ); + + response += `- **${place.name}**\n`; + response += ` Address: ${place.address}\n`; + response += ` Distance: ${formatDistance(distance)}\n`; + if (place.rating) response += ` Rating: ${place.rating}/5\n`; + if (place.openNow !== undefined) response += ` Status: ${place.openNow ? "Open Now" : "Closed"}\n`; + response += ` [View on Google Maps](${makeSearchURL(encodeURIComponent(`${place.name} ${place.address}`))})\n\n`; + } + + if (filteredPlaces.length > limit) { + response += `\n*${filteredPlaces.length - limit} more results available.*`; + } + + return response; + } catch (error) { + showFailureToast(error, { title: "Error Searching Nearby Places", message: String(error) }); + return `Sorry, I encountered an error while searching for ${input.type} places near "${input.location}". Please check your API key and try again.`; + } +} + +// Export as default for Raycast tool compatibility +export default searchNearbyPlaces; diff --git a/extensions/google-maps-search/src/tools/searchPlaces.ts b/extensions/google-maps-search/src/tools/searchPlaces.ts new file mode 100644 index 00000000000..ef6d3503a50 --- /dev/null +++ b/extensions/google-maps-search/src/tools/searchPlaces.ts @@ -0,0 +1,66 @@ +import { getPreferenceValues } from "@raycast/api"; +import { makeSearchURL } from "../utils/url"; +import { searchPlaces as searchPlacesApi } from "../utils/googlePlacesApi"; +import { Preferences } from "../types"; +import { showFailureToast } from "@raycast/utils"; + +/** + * Input type for the search-places tool + */ +type SearchPlacesInput = { + /** + * The search query for finding places + */ + query: string; + + /** + * Maximum number of results to return + */ + limit?: number; +}; + +/** + * Tool for finding places by search query + */ +// Default maximum number of results to return if not specified +const DEFAULT_LIMIT = 3; + +export async function searchPlaces(input: SearchPlacesInput): Promise { + try { + // Get API key from preferences if needed in searchPlaces + const preferences = getPreferenceValues(); + if (!preferences.googlePlacesApiKey) { + throw new Error("Google Places API key is required"); + } + const results = await searchPlacesApi(input.query); + + if (results.length === 0) { + return `I couldn't find any places matching "${input.query}". Try a different search term.`; + } + + // Ensure limit is a positive number + const limit = Math.max(1, input.limit || DEFAULT_LIMIT); + const topResults = results.slice(0, limit); + let response = `Here are some places matching "${input.query}":\n\n`; + + for (const place of topResults) { + response += `- **${place.name}**\n`; + response += ` Address: ${place.address}\n`; + if (place.rating) response += ` Rating: ${place.rating}/5\n`; + if (place.openNow !== undefined) response += ` Status: ${place.openNow ? "Open Now" : "Closed"}\n`; + response += ` [View on Google Maps](${makeSearchURL(encodeURIComponent(`${place.name} ${place.address}`))})\n\n`; + } + + if (results.length > limit) { + response += `\n*${results.length - limit} more results available.*`; + } + + return response; + } catch (error) { + showFailureToast(error, { title: "Error Searching Places" }); + return `Sorry, I encountered an error while searching for "${input.query}". Please check your API key and try again.`; + } +} + +// Export as default for Raycast tool compatibility +export default searchPlaces; diff --git a/extensions/google-maps-search/src/tools/showPlacesOnMap.ts b/extensions/google-maps-search/src/tools/showPlacesOnMap.ts new file mode 100644 index 00000000000..0968b194d09 --- /dev/null +++ b/extensions/google-maps-search/src/tools/showPlacesOnMap.ts @@ -0,0 +1,206 @@ +import { getPreferenceValues } from "@raycast/api"; +import { showFailureToast } from "@raycast/utils"; +import { Preferences } from "../types"; +import { renderMap } from "../utils/mapRenderer"; + +// Maximum allowed map dimensions for the API +const MAX_MAP_WIDTH = 640; +const MAX_MAP_HEIGHT = 640; +const DEFAULT_MAP_SIZE = `${MAX_MAP_WIDTH}x${MAX_MAP_HEIGHT}`; + +/** + * Input type for the showPlacesOnMap tool + */ +export type ShowPlacesOnMapInput = { + /** + * A comma-separated list of place names or addresses to show on the map + */ + places: string; + + /** + * Optional center location for the map (address or place name) + */ + center?: string; + + /** + * Optional zoom level (1-20, where 1 is world view and 20 is building view) + */ + zoom?: number; + + /** + * Optional map size (width x height in pixels, max 640x640) + */ + size?: string; + + /** + * Whether to use colored markers with labels (A, B, C, etc.) + */ + useColoredMarkers?: boolean; +}; + +/** + * Tool for showing multiple places on a Google Maps interface + */ +export async function showPlacesOnMap(input: ShowPlacesOnMapInput): Promise { + try { + const preferences = getPreferenceValues(); + if (!preferences.googlePlacesApiKey) { + return "Please set your Google Maps API key in preferences."; + } + + console.log("Received places input:", input.places); + + // Parse the places list - use semicolons as the primary separator + let placesList: string[] = []; + + // First try to split by semicolons (explicit address separators) + const semicolonSplit = input.places + .split(";") + .map((place) => place.trim()) + .filter((place) => place.length > 0); + + if (semicolonSplit.length > 1) { + placesList = semicolonSplit; + console.log("Split by semicolons:", placesList); + } else { + // If no semicolons, try to intelligently split by commas + // This is tricky because commas can be part of an address + + const commaSplit = input.places + .split(",") + .map((place) => place.trim()) + .filter((place) => place.length > 0); + + if (commaSplit.length > 1) { + // Check if this looks like a list of place names (e.g., "Place A, Place B, Place C") + // or a single address with commas (e.g., "123 Main St, City, State ZIP") + + // Addresses typically have numbers and specific patterns + const hasAddressPattern = input.places.match( + /\d+\s+[A-Za-z]+\s+(?:St|Ave|Blvd|Rd|Drive|Lane|Place|Court|Plaza|Square|Highway|Parkway)/i + ); + + // If it has an address pattern, it's likely a single address with commas + if (hasAddressPattern) { + placesList = [input.places.trim()]; + console.log("Detected address pattern, using as single place:", placesList); + } else { + // Otherwise, treat as separate place names + placesList = commaSplit; + console.log("Split by commas (place names):", placesList); + } + } else { + // Just one item, use as is + placesList = [input.places.trim()]; + console.log("Single place input:", placesList); + } + } + + if (placesList.length === 0) { + return "Please provide at least one place to show on the map."; + } + + // Default zoom level if not specified + const zoom = input.zoom || 14; + + // Validate zoom level + if (zoom < 1 || zoom > 20) { + return "Zoom level must be between 1 and 20."; + } + + // Validate map size if provided + const size = input.size || DEFAULT_MAP_SIZE; + if (size && !/^\d+x\d+$/.test(size)) { + return `Map size must be in the format 'widthxheight', e.g., '${DEFAULT_MAP_SIZE}'.`; + } + // Check max dimensions (API limit: MAX_MAP_WIDTH x MAX_MAP_HEIGHT) + const [widthStr, heightStr] = size.split("x"); + const width = parseInt(widthStr, 10); + const height = parseInt(heightStr, 10); + if (width > MAX_MAP_WIDTH || height > MAX_MAP_HEIGHT) { + return `Map size cannot exceed ${MAX_MAP_WIDTH}x${MAX_MAP_HEIGHT} pixels.`; + } + + console.log("Rendering map with places:", placesList); + + try { + // Use the new map renderer utility with proper error handling + const renderResult = await renderMap({ + places: placesList, + center: input.center, + zoom, + size, + useColoredMarkers: input.useColoredMarkers !== false, // Default to true if not specified + includeLink: true, + altText: "Map of places", + }); + + // Validate the render result to prevent data format errors + if (!renderResult || typeof renderResult !== "object") { + console.error("Invalid render result:", renderResult); + throw new Error("Map rendering failed with invalid data format"); + } + + const { markdown, successfulPlaces, failedPlaces } = renderResult; + + // Validate the markdown output + if (!markdown || typeof markdown !== "string") { + console.error("Invalid markdown in render result:", markdown); + throw new Error("Map rendering produced invalid markdown"); + } + + // Validate the places arrays + if (!Array.isArray(successfulPlaces) || !Array.isArray(failedPlaces)) { + console.error("Invalid places arrays in render result:", { successfulPlaces, failedPlaces }); + throw new Error("Map rendering produced invalid place data"); + } + + // Check if we have any successful places + if (successfulPlaces.length === 0) { + return "Sorry, I couldn't find any of the specified places. Please try with more specific place names or addresses."; + } + + // Create markdown response with the map image + let response = `# Places on Map\n\n`; + + // Add the static map image using the markdown from renderMap + response += `${markdown}\n\n`; + + // List the places shown on the map + response += `## Places Shown\n\n`; + successfulPlaces.forEach((place, index) => { + if (place && typeof place === "object" && place.name) { + response += `${index + 1}. ${place.name}\n`; + } + }); + + // List the places that failed to geocode + if (failedPlaces.length > 0) { + response += `\n## Places Not Found\n\n`; + response += `The following places couldn't be found on the map:\n\n`; + failedPlaces.forEach((place, index) => { + if (place && typeof place === "string") { + response += `${index + 1}. ${place}\n`; + } + }); + response += `\nTry using more specific names or addresses for these places.\n`; + } + + return response; + } catch (renderError) { + console.error("Error rendering map:", renderError); + return `Error rendering map: ${ + renderError instanceof Error ? renderError.message : "Unknown error" + }. Please try with different places or a different format.`; + } + } catch (error) { + console.error("Error in showPlacesOnMap tool:", error); + showFailureToast(error, { title: "Error Showing Places on Map", message: String(error) }); + return `Sorry, I encountered an error while trying to show the places on a map. ${ + error instanceof Error ? error.message : "Unknown error" + }`; + } +} + +// Default export for Raycast compatibility +export default showPlacesOnMap; diff --git a/extensions/google-maps-search/src/travelHome.tsx b/extensions/google-maps-search/src/travelHome.tsx index 2eba3c13e64..a02014b750c 100644 --- a/extensions/google-maps-search/src/travelHome.tsx +++ b/extensions/google-maps-search/src/travelHome.tsx @@ -1,9 +1,18 @@ import { getPreferenceValues, open } from "@raycast/api"; -import { Preferences } from "./utils/types"; +import { Preferences } from "./types"; import { makeDirectionsURL } from "./utils/url"; +import { showFailureToast } from "@raycast/utils"; -export default async () => { - const preferences = getPreferenceValues(); - const dirURL = makeDirectionsURL("", preferences.homeAddress, preferences.preferredMode); - await open(dirURL); -}; +// Renamed to travelHome.tsx +export default async function travelHome() { + try { + const preferences = getPreferenceValues(); + const dirURL = makeDirectionsURL("", preferences.homeAddress, preferences.preferredMode); + await open(dirURL); + } catch (error) { + await showFailureToast({ + title: "Failed to open directions", + message: String(error), + }); + } +} diff --git a/extensions/google-maps-search/src/travelTo.tsx b/extensions/google-maps-search/src/travelTo.tsx index 07f3a2c3025..c7a647134c4 100644 --- a/extensions/google-maps-search/src/travelTo.tsx +++ b/extensions/google-maps-search/src/travelTo.tsx @@ -1,8 +1,9 @@ import { Action, ActionPanel, Form, getPreferenceValues, Icon, popToRoot } from "@raycast/api"; import { useEffect, useState, useCallback } from "react"; import { fetchItemInput } from "./utils/input"; -import { Preferences, TransportType, OriginOption } from "./utils/types"; +import { Preferences, TransportType, OriginOption } from "./types"; import { makeDirectionsURL } from "./utils/url"; +import { showFailureToast } from "@raycast/utils"; export default function Command() { // Get user preferences @@ -10,21 +11,29 @@ export default function Command() { // State variables const [origin, setOrigin] = useState(preferences.preferredOrigin); // Controls which origin option is selected - const [originAddress, setOriginAddress] = useState(""); // Stores the origin address + const [originAddress, setOriginAddress] = useState( + preferences.preferredOrigin === OriginOption.Home ? preferences.homeAddress : "" + ); // Stores the origin address const [destination, setDestination] = useState(""); // Stores the destination address - const [mode, setMode] = useState(preferences.preferredMode); // Stores the selected transport mode + const [mode, setMode] = useState(preferences.preferredMode); // Stores the selected transport mode const [isLoading, setIsLoading] = useState(preferences.useSelected); // Controls loading state // Handle changes to the origin dropdown const handleOriginChange = useCallback( (value: string) => { - const newOrigin = value as OriginOption; - setOrigin(newOrigin); - if (newOrigin === OriginOption.CurLoc) { - setOriginAddress(""); - } else if (newOrigin === OriginOption.Home) { + // Validate that value is a valid OriginOption + const isValidOriginOption = Object.values(OriginOption).includes(value as OriginOption); + if (!isValidOriginOption) { + console.warn(`Invalid origin option: ${value}`); + return; + } + + // Since we've already validated that value is a valid OriginOption, we can use it directly + const originOption = value as OriginOption; + setOrigin(originOption); + if (originOption === OriginOption.Home) { setOriginAddress(preferences.homeAddress); - } else { + } else if (originOption === OriginOption.Custom) { setOriginAddress(""); } }, @@ -39,7 +48,7 @@ export default function Command() { const inputItem = await fetchItemInput(); setDestination(inputItem); } catch (error) { - console.error("Error fetching input:", error); + showFailureToast("Error fetching input", { message: String(error) }); } finally { setIsLoading(false); } @@ -82,7 +91,6 @@ export default function Command() { {/* Origin selection dropdown */} - @@ -97,7 +105,12 @@ export default function Command() { /> )} {/* Transport mode selection dropdown */} - + setMode(newValue as TransportType)} + > diff --git a/extensions/google-maps-search/src/types/core.ts b/extensions/google-maps-search/src/types/core.ts new file mode 100644 index 00000000000..e08ff7f07a8 --- /dev/null +++ b/extensions/google-maps-search/src/types/core.ts @@ -0,0 +1,48 @@ +/** + * Corresponds to Google Map's four possible modes of travel. + */ +export enum TransportType { + Cycling = "bicycling", + Driving = "driving", + Transit = "transit", + Walking = "walking", +} + +/** + * Enum for origin options in the form + */ +export enum OriginOption { + Home = "home", + Custom = "custom", +} + +/** + * Reusable interface for geographic coordinates + */ +export interface GeoLocation { + lat: number; + lng: number; +} + +/** + * Sort order options for place results + */ +export type SortOrder = "none" | "distance" | "rating" | "price" | "price-desc"; + +/** + * Corresponds to the preferences defined in package.json. + */ +export interface Preferences { + /** + * Google Places API key used for all API calls + */ + googlePlacesApiKey: string; + homeAddress: string; + preferredMode: TransportType; + preferredOrigin: OriginOption; + useSelected: boolean; + saveSearchHistory: boolean; + showMapInSidebar: boolean; + unitSystem: "metric" | "imperial"; + defaultSortOrder: SortOrder; +} diff --git a/extensions/google-maps-search/src/types/googleMapsApi.ts b/extensions/google-maps-search/src/types/googleMapsApi.ts new file mode 100644 index 00000000000..a13881557fc --- /dev/null +++ b/extensions/google-maps-search/src/types/googleMapsApi.ts @@ -0,0 +1,36 @@ +import { TravelMode, UnitSystem } from "@googlemaps/google-maps-services-js"; + +/** + * Types for Google Maps API parameters + */ + +/** + * Re-export travel modes from Google Maps API + * @see https://developers.google.com/maps/documentation/directions/get-directions#TravelModes + */ +export { TravelMode }; + +/** + * Re-export unit systems from Google Maps API + * @see https://developers.google.com/maps/documentation/directions/get-directions#UnitSystems + */ +export { UnitSystem }; + +/** + * Parameters for Google Maps Directions API + * @see https://developers.google.com/maps/documentation/directions/get-directions#request-parameters + */ +export interface GoogleMapsDirectionsParams { + origin: string; + destination: string; + mode: TravelMode; + key: string; + units: UnitSystem; + alternatives?: boolean; + avoid?: "tolls" | "highways" | "ferries" | "indoor"; + language?: string; + region?: string; + traffic_model?: "best_guess" | "pessimistic" | "optimistic"; + transit_mode?: "bus" | "subway" | "train" | "tram" | "rail"; + transit_routing_preference?: "less" | "more"; +} diff --git a/extensions/google-maps-search/src/types/index.ts b/extensions/google-maps-search/src/types/index.ts new file mode 100644 index 00000000000..c5bf124d7bc --- /dev/null +++ b/extensions/google-maps-search/src/types/index.ts @@ -0,0 +1,10 @@ +// External library imports +export { TravelMode, UnitSystem } from "./googleMapsApi"; + +// Internal type exports +export type { Preferences, GeoLocation, SortOrder } from "./core"; +export { TransportType, OriginOption } from "./core"; +export type { PlaceSearchResult, PlaceDetails, PlaceReview, PlaceTypeOption, OpeningHours } from "./places"; +export { PLACE_TYPES } from "./places"; +export type { RouteInfo, RouteStep, Distance, Duration } from "./routes"; +export type { GoogleMapsDirectionsParams } from "./googleMapsApi"; diff --git a/extensions/google-maps-search/src/types/places.ts b/extensions/google-maps-search/src/types/places.ts new file mode 100644 index 00000000000..fae9488a978 --- /dev/null +++ b/extensions/google-maps-search/src/types/places.ts @@ -0,0 +1,87 @@ +import { GeoLocation } from "./core"; + +/** + * Interface for place opening hours + */ +export interface OpeningHours { + weekdayText?: string[]; + isOpen?: boolean; +} + +/** + * Interface for place search results + */ +export interface PlaceSearchResult { + placeId: string; + name: string; + address: string; + location: GeoLocation; + types: string[]; + rating?: number; + userRatingsTotal?: number; + openNow?: boolean; + photoReference?: string; + vicinity?: string; + priceLevel?: number; +} + +/** + * Interface for place details + */ +export interface PlaceDetails extends PlaceSearchResult { + phoneNumber?: string; + website?: string; + openingHours?: OpeningHours; + reviews?: PlaceReview[]; + photos?: string[]; +} + +/** + * Interface for place reviews + */ +export interface PlaceReview { + authorName: string; + rating: number; + relativeTimeDescription: string; + text: string; + time: number; +} + +/** + * Interface for place type options + */ +export interface PlaceTypeOption { + title: string; + value: string; + plural?: string; // Plural form of the title +} + +/** + * Available place types for Google Places API + */ +export const PLACE_TYPES: PlaceTypeOption[] = [ + { title: "Restaurant", value: "restaurant", plural: "Restaurants" }, + { title: "Cafe", value: "cafe", plural: "Cafes" }, + { title: "Bar", value: "bar", plural: "Bars" }, + { title: "Supermarket", value: "supermarket", plural: "Supermarkets" }, + { title: "Bakery", value: "bakery", plural: "Bakeries" }, + { title: "Bank", value: "bank", plural: "Banks" }, + { title: "Gas Station", value: "gas_station", plural: "Gas Stations" }, + { title: "Hospital", value: "hospital", plural: "Hospitals" }, + { title: "Pharmacy", value: "pharmacy", plural: "Pharmacies" }, + { title: "Park", value: "park", plural: "Parks" }, + { title: "Gym", value: "gym_or_health_club", plural: "Gyms" }, + { title: "School", value: "school", plural: "Schools" }, + { title: "Shopping Mall", value: "shopping_mall", plural: "Shopping Malls" }, + { title: "Movie Theater", value: "movie_theater", plural: "Movie Theaters" }, + { title: "Museum", value: "museum", plural: "Museums" }, + { title: "Hotel", value: "lodging", plural: "Hotels" }, + { title: "Post Office", value: "post_office", plural: "Post Offices" }, + { title: "Library", value: "library", plural: "Libraries" }, + { title: "Police", value: "police", plural: "Police Stations" }, + { title: "Airport", value: "airport", plural: "Airports" }, + { title: "Bus Station", value: "bus_station", plural: "Bus Stations" }, + { title: "Train Station", value: "train_station", plural: "Train Stations" }, + { title: "Subway Station", value: "subway_station", plural: "Subway Stations" }, + { title: "Tourist Attraction", value: "tourist_attraction", plural: "Tourist Attractions" }, +]; diff --git a/extensions/google-maps-search/src/types/routes.ts b/extensions/google-maps-search/src/types/routes.ts new file mode 100644 index 00000000000..0237a90a5a7 --- /dev/null +++ b/extensions/google-maps-search/src/types/routes.ts @@ -0,0 +1,40 @@ +import { TransportType } from "./core"; + +/** + * Interface for distance information + */ +export interface Distance { + text: string; + value: number; // in meters +} + +/** + * Interface for duration information + */ +export interface Duration { + text: string; + value: number; // in seconds +} + +/** + * Interface for route information + */ +export interface RouteInfo { + distance: Distance; + duration: Duration; + startAddress: string; + endAddress: string; + steps: RouteStep[]; + polyline: string; // encoded polyline +} + +/** + * Interface for route steps + */ +export interface RouteStep { + distance: Distance; + duration: Duration; + instructions: string; + travelMode: TransportType; + polyline: string; // encoded polyline +} diff --git a/extensions/google-maps-search/src/utils/apiHelpers.ts b/extensions/google-maps-search/src/utils/apiHelpers.ts new file mode 100644 index 00000000000..1a988bdc20d --- /dev/null +++ b/extensions/google-maps-search/src/utils/apiHelpers.ts @@ -0,0 +1,81 @@ +// External library imports +import { showFailureToast } from "@raycast/utils"; +import { openExtensionPreferences, getPreferenceValues } from "@raycast/api"; + +// Internal type exports +import { Preferences } from "../types"; + +/** + * Validates that an API key exists and shows an error toast if not + * @returns True if API key exists, false otherwise + */ +export async function validateApiKey(): Promise { + const preferences = getPreferenceValues(); + + if (!preferences.googlePlacesApiKey) { + await showFailureToast({ + title: "API Key Missing", + message: "Please set your Google Places API key in preferences", + primaryAction: { + title: "Open Preferences", + onAction: () => openExtensionPreferences(), + }, + }); + return false; + } + + return true; +} + +/** + * Executes an API request with standardized error handling + * @param requestFn Function that performs the actual API request + * @param errorTitle Title for error toast + * @param errorMessage Message for error toast + * @returns The result of the API request or null if an error occurred + */ +export async function executeApiRequest( + requestFn: () => Promise, + errorTitle: string, + errorMessage: string +): Promise { + try { + // Validate API key before making request + if (!(await validateApiKey())) { + return null; + } + + return await requestFn(); + } catch (error) { + // Get detailed error information + const errorDetails = + error instanceof Error + ? error.message + (error.stack ? `\nStack: ${error.stack.split("\n")[1]?.trim()}` : "") + : String(error); + + console.error(`${errorTitle}: ${errorDetails}`); + + await showFailureToast({ + title: errorTitle, + message: `${errorMessage}${error instanceof Error ? `\nDetails: ${error.message}` : ""}`, + }); + return null; + } +} + +/** + * Validates a Google API response status + * @param status The status from the Google API response + * @param errorTitle Title for error toast if status is not OK + * @returns True if status is OK, false otherwise + */ +export async function validateGoogleApiStatus(status: string, errorTitle: string): Promise { + if (status !== "OK") { + await showFailureToast({ + title: errorTitle, + message: `API returned status: ${status}`, + }); + return false; + } + return true; +} diff --git a/extensions/google-maps-search/src/utils/common.ts b/extensions/google-maps-search/src/utils/common.ts new file mode 100644 index 00000000000..5b4e86d9eac --- /dev/null +++ b/extensions/google-maps-search/src/utils/common.ts @@ -0,0 +1,287 @@ +// External library imports +import { getPreferenceValues } from "@raycast/api"; +import { Preferences } from "../types"; + +// Internal type exports +import { TravelMode, UnitSystem } from "../types/googleMapsApi"; +import { PLACE_TYPES } from "../types/places"; + +// Default radius values +export const DEFAULT_RADIUS_KM = 5; +export const DEFAULT_RADIUS_MILES = 3; + +// Default radius in meters for API calls (50km or ~31 miles) +export const DEFAULT_SEARCH_RADIUS_METRIC = 50000; +export const DEFAULT_SEARCH_RADIUS_IMPERIAL = Math.round(31 * 1609.34); + +/** + * Determines if the input is likely a business name rather than a place type + * @param input The user input string + * @returns True if the input appears to be a business name + */ +export function isLikelyBusinessName(input: string): boolean { + // Check if input contains multiple words (most business names do) + if (input.trim().split(/\s+/).length > 1) { + return true; + } + + // Check if input contains capital letters (indicating proper nouns) + if (/[A-Z]/.test(input) && input !== input.toUpperCase()) { + return true; + } + + // Check if input contains special characters common in business names + if (/[&'"]/.test(input)) { + return true; + } + + // Check if input is not in our place types list + const normalizedInput = input.toLowerCase().replace(/\s+/g, "_"); + const isKnownPlaceType = PLACE_TYPES.some( + (type) => type.value === normalizedInput || type.title.toLowerCase() === input.toLowerCase() + ); + + return !isKnownPlaceType; +} + +/** + * Convert miles to kilometers + * @param miles Distance in miles + * @returns Distance in kilometers + */ +export function milesToKm(miles: number): number { + return miles * 1.60934; +} + +/** + * Convert kilometers to miles + * @param km Distance in kilometers + * @returns Distance in miles + */ +export function kmToMiles(km: number): number { + return km / 1.60934; +} + +/** + * Convert meters to feet + * @param meters Distance in meters + * @returns Distance in feet + */ +export function metersToFeet(meters: number): number { + return meters * 3.28084; +} + +/** + * Get the user's preferred unit system + * @returns The user's preferred unit system ("metric" or "imperial") + */ +export function getUnitSystem(): "metric" | "imperial" { + const preferences = getPreferenceValues(); + return preferences.unitSystem || "metric"; +} + +/** + * Renders star rating as text (e.g., "★★★★☆" for 4.0) + * @param rating Rating value (0-5) + * @returns Formatted star rating as string + */ +export function renderStarRating(rating: number | undefined): string { + if (rating === undefined) return "No Rating"; + + // Validate that rating is between 0-5 + if (rating < 0 || rating > 5) { + console.warn(`Invalid rating value: ${rating}. Expected value between 0-5.`); + return "Rating not available"; + } + + const fullStars = Math.floor(rating); + const halfStar = rating % 1 >= 0.5; + const emptyStars = 5 - fullStars - (halfStar ? 1 : 0); + + return "★".repeat(fullStars) + (halfStar ? "½" : "") + "☆".repeat(emptyStars); +} + +/** + * Format price level as dollar signs + * @param level Price level (0-4) + * @returns Formatted price level as string + */ +export function formatPriceLevel(level?: number): string { + if (level === undefined) return "Price not available"; + + // Validate that level is between 0-4 + if (level < 0 || level > 4 || !Number.isInteger(level)) { + console.warn(`Invalid price level: ${level}. Expected integer between 0-4.`); + return "Price not available"; + } + + return level === 0 ? "Free" : "$".repeat(level); +} + +/** + * Format rating with different display options + * @param rating Rating value + * @param format Format option: 1 = "4.8 ★★★★★ (58)", 2 = "★★★★☆ (4.0)", 3 = "★★★★☆" + * @param totalRatings Total number of ratings (only used in format 1) + * @returns Formatted rating string + * @throws Error if format is not 1, 2, or 3 + */ +export function formatRating(rating?: number, format: 1 | 2 | 3 = 2, totalRatings?: number): string { + if (rating === undefined) return "No ratings yet"; + + // Validate rating is within a reasonable range + if (rating < 0 || rating > 5) { + console.warn(`Invalid rating value: ${rating}. Expected value between 0-5.`); + return "Invalid rating"; + } + + const stars = renderStarRating(rating); + + let formattedRating: string; + + switch (format) { + case 1: // Overall rating average, stars, (Total Ratings Count) + formattedRating = `${rating.toFixed(1)} ${stars}${totalRatings ? ` (${totalRatings})` : ""}`; + break; + case 2: // Stars, Rating + formattedRating = `${stars} (${rating.toFixed(1)})`; + break; + case 3: // Stars only + formattedRating = stars; + break; + default: + // This should never happen due to TypeScript's type checking, + // but we handle it anyway for runtime safety + console.error(`Invalid format: ${format}. Expected 1, 2, or 3.`); + throw new Error(`Invalid format: ${format}. Expected 1, 2, or 3.`); + } + + return formattedRating; +} + +/** + * Get the default radius based on the user's preferred unit system + * @returns Default radius as a string (5 for km, 3 for miles) + */ +export function getDefaultRadius(): string { + return getUnitSystem() === "metric" ? DEFAULT_RADIUS_KM.toString() : DEFAULT_RADIUS_MILES.toString(); +} + +/** + * Calculate distance between two coordinates + * @param lat1 Latitude of first point (-90 to 90) + * @param lon1 Longitude of first point (-180 to 180) + * @param lat2 Latitude of second point (-90 to 90) + * @param lon2 Longitude of second point (-180 to 180) + * @returns Distance in kilometers + * @throws Error if any coordinate is outside its valid range + */ +export function calculateDistance(lat1: number, lon1: number, lat2: number, lon2: number): number { + // Validate latitude values (-90 to 90) + if (lat1 < -90 || lat1 > 90 || lat2 < -90 || lat2 > 90) { + const invalidLat = lat1 < -90 || lat1 > 90 ? lat1 : lat2; + const errorMsg = `Invalid latitude value: ${invalidLat}. Latitude must be between -90 and 90 degrees.`; + console.error(errorMsg); + throw new Error(errorMsg); + } + + // Validate longitude values (-180 to 180) + if (lon1 < -180 || lon1 > 180 || lon2 < -180 || lon2 > 180) { + const invalidLon = lon1 < -180 || lon1 > 180 ? lon1 : lon2; + const errorMsg = `Invalid longitude value: ${invalidLon}. Longitude must be between -180 and 180 degrees.`; + console.error(errorMsg); + throw new Error(errorMsg); + } + + const R = 6371; // Radius of the earth in km + const dLat = ((lat2 - lat1) * Math.PI) / 180; + const dLon = ((lon2 - lon1) * Math.PI) / 180; + const a = + Math.sin(dLat / 2) * Math.sin(dLat / 2) + + Math.cos((lat1 * Math.PI) / 180) * Math.cos((lat2 * Math.PI) / 180) * Math.sin(dLon / 2) * Math.sin(dLon / 2); + const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)); + const distance = R * c; // Distance in km + return distance; +} + +/** + * Format distance in a user-friendly way, respecting the user's unit system preference + * @param distance Distance value + * @param unit Unit of the distance value ('km' for kilometers or 'm' for meters) + * @param unitSystemOverride Optional override for the unit system + * @returns Formatted distance string + */ +export function formatDistance( + distance: number, + unit: "km" | "m" = "km", + unitSystemOverride?: "metric" | "imperial" +): string { + if (distance < 0) { + console.warn(`Invalid distance value: ${distance}. Expected non-negative number.`); + return "Invalid distance"; + } + const unitSystem = unitSystemOverride || getUnitSystem(); + + // Convert to kilometers if input is in meters + const distanceKm = unit === "m" ? distance / 1000 : distance; + + if (unitSystem === "metric") { + // Metric system (kilometers/meters) + if (distanceKm < 1) { + // Convert to meters if less than 1 km + return `${Math.round(distanceKm * 1000)} m`; + } else if (distanceKm < 10) { + // Show one decimal place for distances under 10 km + return `${distanceKm.toFixed(1)} km`; + } else { + // Round to nearest km for larger distances + return `${Math.round(distanceKm)} km`; + } + } else { + // Imperial system (miles/feet) + const distanceMiles = kmToMiles(distanceKm); + + if (distanceMiles < 0.1) { + // Convert to feet if less than 0.1 miles + return `${Math.round(distanceMiles * 5280)} ft`; + } else if (distanceMiles < 10) { + // Show one decimal place for distances under 10 miles + return `${distanceMiles.toFixed(1)} mi`; + } else { + // Round to nearest mile for larger distances + return `${Math.round(distanceMiles)} mi`; + } + } +} + +/** + * Get the default search radius in meters based on the user's preferred unit system + * @returns Default search radius in meters + */ +export function getDefaultSearchRadiusInMeters(): number { + return getUnitSystem() === "metric" ? DEFAULT_SEARCH_RADIUS_METRIC : DEFAULT_SEARCH_RADIUS_IMPERIAL; +} + +/** + * Get the user's preferred unit system for Google Maps API + * @returns The user's preferred unit system for Google Maps API + */ +export function getUnitSystemForApi(): UnitSystem { + return getUnitSystem() === "metric" ? UnitSystem.metric : UnitSystem.imperial; +} + +/** + * Get the travel mode for Google Maps API + * @param mode The travel mode string + * @returns The validated travel mode for Google Maps API + */ +export function getTravelModeForApi(mode: string): TravelMode { + const validModes = Object.values(TravelMode); + + if (validModes.includes(mode as TravelMode)) { + return mode as TravelMode; + } + + console.warn(`Invalid travel mode: ${mode}. Using ${TravelMode.driving} instead.`); + return TravelMode.driving; +} diff --git a/extensions/google-maps-search/src/utils/formatting.ts b/extensions/google-maps-search/src/utils/formatting.ts new file mode 100644 index 00000000000..905dd901fa4 --- /dev/null +++ b/extensions/google-maps-search/src/utils/formatting.ts @@ -0,0 +1,296 @@ +// External library imports +import { getPreferenceValues } from "@raycast/api"; + +// Internal type exports +import { Preferences, PlaceSearchResult } from "../types"; +import { makeSearchURL } from "./url"; +import { calculateDistance } from "./common"; + +/** + * Interface for formatting options + */ +export interface FormattingOptions { + /** + * Unit system preference (metric or imperial) + */ + unitSystem?: "metric" | "imperial"; +} + +/** + * Interface for rating format options + */ +export interface RatingFormatOptions { + /** + * Format style for ratings + * - 1: "4.8 ★★★★★ (58)" - rating first, then stars, then total ratings + * - 2: "★★★★☆ (4.0)" - stars first, then rating in parentheses + * - 3: "★★★★☆" - stars only + */ + format?: 1 | 2 | 3; + + /** + * Total number of ratings (only used in format 1) + */ + totalRatings?: number; +} + +/** + * Renders star rating as text (e.g., "★★★★☆" for 4.0) + * @param rating The rating value + * @returns Formatted star rating string + */ +export function renderStarRating(rating: number | undefined): string { + if (rating === undefined) return "No Rating"; + + const fullStars = Math.floor(rating); + const halfStar = rating % 1 >= 0.5; + const emptyStars = 5 - fullStars - (halfStar ? 1 : 0); + + return "★".repeat(fullStars) + (halfStar ? "½" : "") + "☆".repeat(emptyStars); +} + +/** + * Format price level as dollar signs + * @param level Price level (0-4) + * @returns Formatted price level as string + */ +export function formatPriceLevel(level?: number): string { + if (level === undefined) return ""; + + switch (level) { + case 0: + return "Free"; + case 1: + return "$"; + case 2: + return "$$"; + case 3: + return "$$$"; + case 4: + return "$$$$"; + default: + return ""; + } +} + +/** + * Format rating with different display options + * @param rating Rating value + * @param options Rating format options + * @returns Formatted rating string + */ +export function formatRating(rating?: number, options?: RatingFormatOptions): string { + if (rating === undefined) return "No Rating"; + + const format = options?.format || 2; + const totalRatings = options?.totalRatings; + const stars = renderStarRating(rating); + + switch (format) { + case 1: + return `${rating.toFixed(1)} ${stars}${totalRatings ? ` (${totalRatings})` : ""}`; + case 2: + return `${stars} (${rating.toFixed(1)})`; + case 3: + return stars; + default: + return `${rating.toFixed(1)} ${stars}`; + } +} + +/** + * Format distance in a user-friendly way, respecting the user's unit system preference + * @param distance Distance value + * @param unit Unit of the distance value ('km' for kilometers or 'm' for meters) + * @param options Optional formatting options + * @returns Formatted distance string + */ +export function formatDistance(distance: number, unit: "km" | "m" = "m", options?: FormattingOptions): string { + // Get user preferences + const preferences = getPreferenceValues(); + const unitSystem = options?.unitSystem || preferences.unitSystem || "metric"; + + // Convert to meters for consistency + let meters: number; + if (unit === "km") { + meters = distance * 1000; + } else if (unit === "m") { + meters = distance; + } else { + throw new Error(`Unsupported unit: ${unit}`); + } + + if (unitSystem === "imperial") { + // Convert to miles + const miles = meters / 1609.34; + + if (miles < 0.1) { + // Show in feet for short distances + const feet = Math.round(meters * 3.28084); + return `${feet} ft`; + } else if (miles < 10) { + // Show with one decimal for medium distances + return `${miles.toFixed(1)} mi`; + } else { + // Show as integer for longer distances + return `${Math.round(miles)} mi`; + } + } else { + // Metric system + if (meters < 1000) { + // Show in meters for short distances + return `${Math.round(meters)} m`; + } else { + // Show in kilometers for longer distances + const km = meters / 1000; + return km < 10 ? `${km.toFixed(1)} km` : `${Math.round(km)} km`; + } + } +} + +/** + * Format a duration in seconds to a human-readable string + * @param seconds Duration in seconds + * @returns Formatted duration string (e.g., "1h 30m" or "45m") + */ +export function formatDuration(seconds: number): string { + if (seconds < 60) { + return `${seconds}s`; + } + + const minutes = Math.floor(seconds / 60); + if (minutes < 60) { + return `${minutes}m`; + } + + const hours = Math.floor(minutes / 60); + const remainingMinutes = minutes % 60; + return remainingMinutes > 0 ? `${hours}h ${remainingMinutes}m` : `${hours}h`; +} + +/** + * Format a phone number for display + * @param phoneNumber The phone number to format + * @returns Formatted phone number + */ +export function formatPhoneNumber(phoneNumber: string): string { + // Remove non-numeric characters + const cleaned = phoneNumber.replace(/\D/g, ""); + + // Format based on length + if (cleaned.length === 10) { + // US format: (XXX) XXX-XXXX + return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3, 6)}-${cleaned.slice(6)}`; + } else if (cleaned.length === 11 && cleaned[0] === "1") { + // US with country code: +1 (XXX) XXX-XXXX + return `+1 (${cleaned.slice(1, 4)}) ${cleaned.slice(4, 7)}-${cleaned.slice(7)}`; + } + + // Return original if we can't format it + return phoneNumber; +} + +/** + * Format an address for display + * @param components Address components + * @returns Formatted address string + */ +export function formatAddress(components: { + street?: string; + city?: string; + state?: string; + zip?: string; + country?: string; +}): string { + const { street, city, state, zip, country } = components; + + let formattedAddress = ""; + + if (street) { + formattedAddress += street; + } + + if (city) { + formattedAddress += formattedAddress ? `, ${city}` : city; + } + + if (state) { + formattedAddress += formattedAddress ? `, ${state}` : state; + } + + if (zip) { + formattedAddress += formattedAddress ? ` ${zip}` : zip; + } + + if (country) { + formattedAddress += formattedAddress ? `, ${country}` : country; + } + + return formattedAddress; +} + +/** + * Format place search results into a markdown string + * @param places Array of place search results + * @param userLocation User's current location for distance calculation + * @returns Formatted markdown string with place details + */ +export function formatPlaceResults(places: PlaceSearchResult[], userLocation: { lat: number; lng: number }): string { + if (!places || places.length === 0) { + return "No places found."; + } + + let markdown = ""; + + for (const place of places) { + // Calculate distance from user location + const distance = calculateDistance(userLocation.lat, userLocation.lng, place.location.lat, place.location.lng); + + // Format place details + markdown += `## ${place.name}\n\n`; + + // Add address + markdown += `**Address:** ${place.address || place.vicinity || "Not available"}\n\n`; + + // Add distance + markdown += `**Distance:** ${formatDistance(distance)}\n\n`; + + // Add rating if available + if (place.rating !== undefined) { + markdown += `**Rating:** ${formatRating(place.rating, { + format: 2, + totalRatings: place.userRatingsTotal, + })}\n\n`; + } + + // Add price level if available + if (place.priceLevel !== undefined) { + markdown += `**Price:** ${formatPriceLevel(place.priceLevel)}\n\n`; + } + + // Add open now status if available + if (place.openNow !== undefined) { + markdown += `**Status:** ${place.openNow ? "Open Now" : "Closed"}\n\n`; + } + + // Add types if available + if (place.types && place.types.length > 0) { + const readableTypes = place.types + .map((type) => type.replace(/_/g, " ")) + .map((type) => type.charAt(0).toUpperCase() + type.slice(1)) + .join(", "); + + markdown += `**Categories:** ${readableTypes}\n\n`; + } + + // Add Google Maps link + const encodedName = encodeURIComponent(place.name); + const encodedAddress = encodeURIComponent(place.address || place.vicinity || ""); + markdown += `[View on Google Maps](${makeSearchURL(`${encodedName} ${encodedAddress}`)})\n\n`; + + // Add separator between places + markdown += `---\n\n`; + } + + return markdown; +} diff --git a/extensions/google-maps-search/src/utils/googlePlacesApi.ts b/extensions/google-maps-search/src/utils/googlePlacesApi.ts new file mode 100644 index 00000000000..0a44773ebde --- /dev/null +++ b/extensions/google-maps-search/src/utils/googlePlacesApi.ts @@ -0,0 +1,461 @@ +// External library imports +import { + Client, + PlaceInputType, + GeocodeRequest, + LatLngBounds, + Status, + TextSearchRequest, + PlacesNearbyRequest, + DirectionsRequest, + TravelMode, + UnitSystem, +} from "@googlemaps/google-maps-services-js"; + +// Internal type exports +import { Preferences, PlaceSearchResult, PlaceDetails, RouteInfo, TransportType, PLACE_TYPES } from "../types"; + +// Internal helper functions +import { milesToKm, getUnitSystem, getDefaultRadius, getTravelModeForApi, getUnitSystemForApi } from "./common"; +import { getPreferenceValues } from "@raycast/api"; + +// Initialize the Google Maps client +let client: Client | null = null; + +/** + * Get the Google Maps client instance + * @returns The Google Maps client + */ +export function getClient(): Client { + if (!client) { + client = new Client({}); + } + return client; +} + +/** + * Get the Google Places API key from preferences + * @returns The API key + */ +export function getApiKey(): string { + const preferences = getPreferenceValues(); + const apiKey = preferences.googlePlacesApiKey; + + // Add validation and logging to help diagnose API key issues + if (!apiKey || apiKey.trim() === "") { + console.error("Google Places API key is missing or empty in preferences"); + } else if (apiKey.length < 20) { + console.warn("Google Places API key appears to be invalid (too short)"); + } + + return apiKey; +} + +/** + * Perform a text search using the Google Places API + * @param query The search query + * @param location Optional location to search near + * @param radius The search radius in meters + * @returns Array of place search results + */ +export async function searchPlaces( + query: string, + location?: { lat: number; lng: number }, + radius?: number +): Promise { + try { + const apiKey = getApiKey(); + + // Create properly typed params object + const params: TextSearchRequest["params"] = { + query, + key: apiKey, + }; + + // Add optional parameters if provided + if (location) { + params.location = `${location.lat},${location.lng}`; + } + + if (radius) { + params.radius = radius; + } + + const response = await getClient().textSearch({ params }); + + if (response.data.status !== Status.OK) { + console.error(`Places API error: ${response.data.status}`); + throw new Error(`Places API error: ${response.data.status}`); + } + + if (!response.data.results || !Array.isArray(response.data.results)) { + console.error("Invalid response format: results is not an array"); + throw new Error("Invalid response format from Google Places API"); + } + + return response.data.results.map((result) => { + // Validate location data to prevent errors + if (!result.geometry?.location?.lat || !result.geometry?.location?.lng) { + console.error("Missing location data in result:", result.name); + throw new Error(`Missing location data for "${result.name || "unknown place"}"`); + } + + return { + placeId: result.place_id || "", + name: result.name || "", + address: result.formatted_address || result.vicinity || "", + location: { + lat: result.geometry.location.lat, + lng: result.geometry.location.lng, + }, + types: result.types || [], + rating: result.rating, + userRatingsTotal: result.user_ratings_total, + photoReference: result.photos?.[0]?.photo_reference, + vicinity: result.vicinity, + priceLevel: result.price_level, + openNow: result.opening_hours?.open_now, + }; + }); + } catch (error) { + console.error("Error searching for places:", error); + return []; + } +} + +/** + * Get details for a specific place using its place ID + * @param placeId The Google Place ID + * @returns Detailed place information + */ +export async function getPlaceDetails(placeId: string): Promise { + const apiKey = getApiKey(); + + const response = await getClient().placeDetails({ + params: { + place_id: placeId, + key: apiKey, + fields: [ + "name", + "formatted_address", + "geometry", + "types", + "rating", + "user_ratings_total", + "photos", + "formatted_phone_number", + "website", + "opening_hours", + "reviews", + "price_level", + "vicinity", + ], + }, + }); + + if (response.data.status !== Status.OK) { + throw new Error(`Place details API error: ${response.data.status}`); + } + + const result = response.data.result; + + return { + placeId, + name: result.name || "", + address: result.formatted_address || "", + location: { + lat: + result.geometry?.location?.lat ?? + (() => { + throw new Error("Missing location latitude"); + })(), + lng: + result.geometry?.location?.lng ?? + (() => { + throw new Error("Missing location longitude"); + })(), + }, + types: result.types || [], + rating: result.rating, + userRatingsTotal: result.user_ratings_total, + phoneNumber: result.formatted_phone_number, + website: result.website, + openingHours: { + weekdayText: result.opening_hours?.weekday_text, + isOpen: result.opening_hours?.open_now, + }, + reviews: result.reviews?.map((review) => ({ + authorName: review.author_name, + rating: review.rating, + relativeTimeDescription: review.relative_time_description, + text: review.text, + time: Number(review.time), // Convert to number to match PlaceReview interface + })), + photos: result.photos?.map( + (photo) => + `https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=${photo.photo_reference}&key=${apiKey}` + ), + priceLevel: result.price_level, + vicinity: result.vicinity, + }; +} + +/** + * Geocode an address to get its coordinates + * @param address The address to geocode + * @param locationBias Optional location to bias results toward (string address or coordinates) + * @returns The latitude and longitude + */ +export async function geocodeAddress( + address: string, + locationBias?: string | { lat: number; lng: number } +): Promise<{ lat: number; lng: number } | null> { + const apiKey = getApiKey(); + + if (!address.trim()) { + console.warn("Empty address provided to geocodeAddress"); + return null; + } + + try { + // Create base params with proper typing + const params: GeocodeRequest["params"] = { + address, + key: apiKey, + }; + + // Add location bias if provided + if (locationBias) { + if (typeof locationBias === "string") { + // Use region bias if it's a string (typically a city or region name) + const region = locationBias.split(",")[0].trim(); + params.region = region; + console.log(`Geocoding "${address}" with region bias: ${region}`); + } else { + // Use bounds bias with coordinates + const delta = 0.045; // Roughly 5km at equator + const bounds: LatLngBounds = { + northeast: { lat: locationBias.lat + delta, lng: locationBias.lng + delta }, + southwest: { lat: locationBias.lat - delta, lng: locationBias.lng - delta }, + }; + params.bounds = bounds; + console.log(`Geocoding "${address}" with bounds bias`); + } + } else { + console.log(`Geocoding "${address}" without bias`); + } + + // Make the geocoding request + const response = await getClient().geocode({ params }); + + // Handle response based on status + if (response.data.status === Status.OK) { + const location = response.data.results[0]?.geometry?.location; + if (location) { + console.log(`Successfully geocoded "${address}" to:`, location); + return location; + } + } else if (response.data.status === Status.ZERO_RESULTS) { + console.log(`No geocoding results found for address: ${address}`); + } else { + console.error(`Geocoding API error: ${response.data.status} for address: ${address}`); + } + + return null; + } catch (error) { + console.error(`Error during geocoding for address ${address}:`, error); + return null; + } +} + +/** + * Get directions between two points + * @param origin The starting point (address or coordinates) + * @param destination The ending point (address or coordinates) + * @param mode The travel mode (driving, walking, bicycling, or transit) + * @returns The API response + * @throws Error if the API request fails + */ +export async function getDirections( + origin: string | { lat: number; lng: number }, + destination: string | { lat: number; lng: number }, + mode: TransportType +): Promise { + try { + const apiKey = getApiKey(); + + // Format origin and destination + const originStr = typeof origin === "string" ? origin : `${origin.lat},${origin.lng}`; + const destinationStr = typeof destination === "string" ? destination : `${destination.lat},${destination.lng}`; + + // Get validated travel mode and unit system + const travelMode = getTravelModeForApi(mode); + const unitSystem = getUnitSystemForApi(); + + // Create properly typed params object + const params: DirectionsRequest["params"] = { + origin: originStr, + destination: destinationStr, + mode: travelMode as TravelMode, + key: apiKey, + units: unitSystem as UnitSystem, + }; + + const response = await getClient().directions({ params }); + + if (response.data.status !== Status.OK || response.data.routes.length === 0) { + throw new Error(`Directions API error: ${response.data.status || "No routes found"}`); + } + + const route = response.data.routes[0]; + const leg = route.legs[0]; + + // The API will return distances in the requested unit system + // but we'll also store the raw values for potential conversion + return { + distance: leg.distance, + duration: leg.duration, + startAddress: leg.start_address, + endAddress: leg.end_address, + steps: leg.steps.map((step) => ({ + distance: step.distance, + duration: step.duration, + instructions: step.html_instructions, + travelMode: step.travel_mode.toLowerCase() as TransportType, + polyline: step.polyline.points, + })), + polyline: route.overview_polyline.points, + }; + } catch (error) { + console.error("Error getting directions:", error); + return null; + } +} + +/** + * Get nearby places based on a location and place type + * @param location The location to search near + * @param type The type of place to search for + * @param radiusInMeters The search radius in meters + * @param openNow Whether to only return places that are currently open + * @returns The API response + */ +export async function getNearbyPlaces( + location: { lat: number; lng: number }, + type: string, + radius = parseInt(getDefaultRadius(), 10), + openNow = false +): Promise { + try { + const apiKey = getApiKey(); + const unitSystem = getUnitSystem(); + + // Convert radius to meters if using imperial units (input would be in miles) + const radiusInMeters = Math.min( + unitSystem === "imperial" ? Math.round(milesToKm(radius) * 1000) : radius, + 50000 // Google Places API maximum radius + ); + + // Validate the place type + const validPlaceTypes = new Set(PLACE_TYPES.map((placeType) => placeType.value as PlaceInputType)); + if (!validPlaceTypes.has(type as PlaceInputType)) { + console.warn(`Invalid place type: ${type}. This may cause the API request to fail.`); + } + + // Create properly typed params object + const params: PlacesNearbyRequest["params"] = { + location: `${location.lat},${location.lng}`, + radius: radiusInMeters, + type: type as PlaceInputType, + key: apiKey, + }; + + // Add openNow parameter if requested + if (openNow) { + params.opennow = true; + } + + const response = await getClient().placesNearby({ params }); + + if (response.data.status !== Status.OK && response.data.status !== Status.ZERO_RESULTS) { + console.error(`Nearby places API error: ${response.data.status}`); + return []; + } + + if (!response.data.results || !Array.isArray(response.data.results)) { + console.error("Invalid response format: results is not an array"); + return []; + } + + // Return empty array for ZERO_RESULTS + if (response.data.status === Status.ZERO_RESULTS) { + return []; + } + + return response.data.results.map((result) => { + // Validate location data to prevent errors + if (!result.geometry?.location?.lat || !result.geometry?.location?.lng) { + throw new Error(`Missing location data in result: ${result.name}`); + } + + return { + placeId: result.place_id || "", + name: result.name || "", + address: result.vicinity || "", + location: { + lat: result.geometry.location.lat, + lng: result.geometry.location.lng, + }, + types: result.types || [], + rating: result.rating, + userRatingsTotal: result.user_ratings_total, + photoReference: result.photos?.[0]?.photo_reference, + vicinity: result.vicinity, + priceLevel: result.price_level, + openNow: result.opening_hours?.open_now, + }; + }); + } catch (error) { + console.error("Error getting nearby places:", error); + return []; + } +} + +/** + * Get a static map image URL for a location or route + * @param center The center of the map (coordinates or place ID) + * @param zoom The zoom level + * @param markers Optional array of markers to display on the map + * @param path Optional encoded polyline path to display on the map + * @returns The static map image URL + */ +export function getStaticMapUrl( + center: { lat: number; lng: number } | string, + zoom = 15, + markers?: Array<{ lat: number; lng: number; label?: string }>, + path?: string +): string { + const apiKey = getApiKey(); + const centerStr = typeof center === "string" ? center : `${center.lat},${center.lng}`; + + let url = `https://maps.googleapis.com/maps/api/staticmap?center=${encodeURIComponent( + centerStr + )}&zoom=${zoom}&size=600x300&scale=2&key=${apiKey}`; + + // Add markers + if (markers && markers.length > 0) { + markers.forEach((marker, index) => { + const label = encodeURIComponent(marker.label || String.fromCharCode(65 + index)); // A, B, C, etc. + const lat = encodeURIComponent(marker.lat); + const lng = encodeURIComponent(marker.lng); + url += `&markers=color:red%7Clabel:${label}%7C${lat},${lng}`; + }); + } + + // Add path + if (path) { + url += `&path=enc:${path}`; + } + + return url; +} diff --git a/extensions/google-maps-search/src/utils/locationHelpers.ts b/extensions/google-maps-search/src/utils/locationHelpers.ts new file mode 100644 index 00000000000..1bbef677b66 --- /dev/null +++ b/extensions/google-maps-search/src/utils/locationHelpers.ts @@ -0,0 +1,76 @@ +/** + * Utilities for handling location data + */ + +// Constants +/** + * Radius of the Earth in kilometers + */ +export const EARTH_RADIUS_KM = 6371; + +/** + * Format a location (either string address or coordinates) to a string + * @param location Location as string + * @returns Formatted location string + */ +export function formatLocation(location: string): string; +/** + * Format a location object with lat/lng properties + * @param location Location object + * @returns Formatted location string + */ +export function formatLocation(location: { lat: number; lng: number }): string; +/** + * Format separate latitude and longitude values + * @param lat Latitude + * @param lng Longitude + * @returns Formatted location string + */ +export function formatLocation(lat: number, lng: number): string; +export function formatLocation(locationOrLat: string | { lat: number; lng: number } | number, lng?: number): string { + if (typeof locationOrLat === "string") { + return locationOrLat; + } + if (typeof locationOrLat === "number" && typeof lng === "number") { + return `${locationOrLat},${lng}`; + } + if (isValidLocation(locationOrLat)) { + return `${locationOrLat.lat},${locationOrLat.lng}`; + } + throw new Error("Invalid location format"); +} + +/** + * Check if a location object is valid + * @param location Location object to check + * @returns True if location has valid lat and lng properties + */ +export function isValidLocation(location: unknown): location is { lat: number; lng: number } { + return ( + Boolean(location) && + typeof location === "object" && + location !== null && + "lat" in location && + "lng" in location && + typeof (location as { lat: unknown }).lat === "number" && + typeof (location as { lng: unknown }).lng === "number" + ); +} + +/** + * Calculate the distance between two points using the Haversine formula + * @param lat1 Latitude of first point + * @param lng1 Longitude of first point + * @param lat2 Latitude of second point + * @param lng2 Longitude of second point + * @returns Distance in kilometers + */ +export function calculateHaversineDistance(lat1: number, lng1: number, lat2: number, lng2: number): number { + const dLat = (lat2 - lat1) * (Math.PI / 180); + const dLng = (lng2 - lng1) * (Math.PI / 180); + const a = + Math.sin(dLat / 2) * Math.sin(dLat / 2) + + Math.cos(lat1 * (Math.PI / 180)) * Math.cos(lat2 * (Math.PI / 180)) * Math.sin(dLng / 2) * Math.sin(dLng / 2); + const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)); + return EARTH_RADIUS_KM * c; +} diff --git a/extensions/google-maps-search/src/utils/mapRenderer.ts b/extensions/google-maps-search/src/utils/mapRenderer.ts new file mode 100644 index 00000000000..7b8dc81275d --- /dev/null +++ b/extensions/google-maps-search/src/utils/mapRenderer.ts @@ -0,0 +1,437 @@ +import { getApiKey } from "./googlePlacesApi"; +import { geocodePlace } from "../hooks/useGeocoding"; + +/** + * Options for rendering a map + */ +export interface RenderMapOptions { + /** + * Places to show on the map (strings will be geocoded) + */ + places: Array; + + /** + * Center of the map (optional, will be calculated from places if not provided) + */ + center?: string | { lat: number; lng: number }; + + /** + * Zoom level (1-20, where 1 is world view and 20 is building view) + */ + zoom?: number; + + /** + * Map size (width x height in pixels) + */ + size?: string; + + /** + * Custom map URL (optional, will be generated if not provided) + */ + mapUrl?: string; + + /** + * Alt text for the map image + */ + altText?: string; + + /** + * Whether to include a clickable link to Google Maps + */ + includeLink?: boolean; + + /** + * Whether to use colored markers with labels (A, B, C, etc.) + */ + useColoredMarkers?: boolean; +} + +/** + * Available marker colors for the static maps API + */ +export const MARKER_COLORS = ["red", "blue", "green", "purple", "orange", "yellow", "gray", "brown", "black", "white"]; + +/** + * Type for geocode result + */ +interface GeocodedLocation { + lat: number; + lng: number; +} + +/** + * Helper function to check if a place was successfully geocoded + * @param result The geocode result to validate + * @returns True if the result contains valid coordinates + */ +function isValidGeocodeResult(result: GeocodedLocation | null): result is GeocodedLocation { + if (!result) return false; + + // Check if coordinates are valid numbers + if (typeof result.lat !== "number" || typeof result.lng !== "number") { + return false; + } + + // Check if coordinates are within valid range + if (result.lat < -90 || result.lat > 90 || result.lng < -180 || result.lng > 180) { + return false; + } + + return true; +} + +/** + * Generates a static Google Maps image URL with multiple places + * @param options Map rendering options + * @returns Promise resolving to the static map URL + */ +export async function generateStaticMapUrl(options: RenderMapOptions): Promise<{ + url: string; + successfulPlaces: Array<{ name: string; coords: { lat: number; lng: number } }>; + failedPlaces: string[]; +}> { + try { + const apiKey = getApiKey(); + if (!apiKey) { + console.error("Missing Google Maps API key"); + throw new Error("Google Maps API key is required"); + } + + const mapSize = options.size || "600x400"; + const mapZoom = options.zoom || 15; + const mapScale = 2; // Request higher resolution map (2x pixel density) + const mapFormat = "png32"; // Use higher quality PNG format with full transparency + + // Validate input options + if (!options.places || !Array.isArray(options.places) || options.places.length === 0) { + console.error("Invalid places array:", options.places); + throw new Error("Places array is required and must not be empty"); + } + + console.log("Generating map for places:", options.places); + + // Track which places were successfully added to the map + // Using 'let' because successfulPlaces may be reassigned if URL length exceeds limits + let successfulPlaces: Array<{ name: string; coords: { lat: number; lng: number } }> = []; + const failedPlaces: string[] = []; + + // Base URL + const staticMapUrl = "https://maps.googleapis.com/maps/api/staticmap?"; + + // Add map size, format and scale + let url = `${staticMapUrl}size=${mapSize}&format=${mapFormat}&scale=${mapScale}`; + + // Add map type + url += "&maptype=roadmap"; + + // Try to get center coordinates if provided + let centerCoords: GeocodedLocation | null = null; + + if (options.center) { + if (typeof options.center === "string") { + centerCoords = await geocodePlace(options.center); + } else if ( + options.center && + typeof options.center === "object" && + "lat" in options.center && + "lng" in options.center && + typeof options.center.lat === "number" && + typeof options.center.lng === "number" + ) { + centerCoords = options.center; + } else { + console.warn("Invalid center coordinates format:", options.center); + } + + if (centerCoords) { + const safeCenterCoords = `${centerCoords.lat.toFixed(6)},${centerCoords.lng.toFixed(6)}`; + url += `¢er=${safeCenterCoords}`; + } + } + + // Add markers for each place + const markers: Array<{ lat: number; lng: number; label?: string }> = []; + const labels = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + + for (let i = 0; i < options.places.length; i++) { + const place = options.places[i]; + let placeCoords: GeocodedLocation | null = null; + let placeName = ""; + + try { + if (typeof place === "string") { + console.log(`Attempting to geocode place: "${place}"`); + + // Use the center parameter as a location bias for geocoding + // This helps ensure that place names are geocoded near the specified center + let locationBias: GeocodedLocation | string | undefined = options.center; + + // If we already have some successfully geocoded places, use the first one as a bias + // This helps keep subsequent places near the first one + if (successfulPlaces.length > 0 && !locationBias) { + locationBias = successfulPlaces[0].coords; + console.log(`Using first place as location bias: ${JSON.stringify(locationBias)}`); + } + + placeCoords = await geocodePlace(place, { locationBias }); + placeName = place; + + if (!isValidGeocodeResult(placeCoords)) { + console.warn(`Failed to geocode place: ${place}`); + failedPlaces.push(place); + continue; + } + + console.log(`Successfully geocoded "${place}" to:`, placeCoords); + + // Add marker for this place + markers.push({ + lat: placeCoords.lat, + lng: placeCoords.lng, + label: labels[i % labels.length], + }); + + // Add to successful places + successfulPlaces.push({ + name: placeName, + coords: placeCoords, + }); + } else if ( + place && + typeof place === "object" && + "lat" in place && + "lng" in place && + typeof place.lat === "number" && + typeof place.lng === "number" + ) { + placeCoords = place; + placeName = place.label || `Location (${place.lat.toFixed(4)}, ${place.lng.toFixed(4)})`; + + // Add marker for this place + markers.push({ + lat: placeCoords.lat, + lng: placeCoords.lng, + label: labels[i % labels.length], + }); + + // Add to successful places + successfulPlaces.push({ + name: placeName, + coords: placeCoords, + }); + } else { + console.warn("Invalid place format:", place); + if (typeof place === "string") { + failedPlaces.push(place); + } else { + failedPlaces.push("Invalid place format"); + } + } + } catch (error) { + console.error(`Error processing place ${place}:`, error); + if (typeof place === "string") { + failedPlaces.push(place); + } else { + failedPlaces.push("Error processing place"); + } + } + } + + // Add markers to URL + for (let i = 0; i < markers.length; i++) { + const marker = markers[i]; + const color = options.useColoredMarkers ? MARKER_COLORS[i % MARKER_COLORS.length] : "red"; + const label = marker.label || ""; + + // The Google Maps Static API requires URL-encoded parameters + // The format should be: markers=color:red%7Clabel:A%7Clat,lng + // Note: The pipe character | needs to be URL-encoded as %7C + url += `&markers=color:${color}%7Clabel:${label}%7C${marker.lat.toFixed(6)},${marker.lng.toFixed(6)}`; + } + + // Use the visible parameter to ensure all places are shown on the map + // This is simpler than calculating a viewport and lets the API handle it + if (successfulPlaces.length > 0) { + // Add each place to the visible parameter + const visiblePlaces = successfulPlaces.map( + (place) => `${place.coords.lat.toFixed(6)},${place.coords.lng.toFixed(6)}` + ); + + // Add the visible parameter with all places + url += `&visible=${visiblePlaces.join("%7C")}`; + + console.log("Using visible parameter to show all places"); + } else if (centerCoords) { + // If no successful places, fall back to center and zoom + url += `¢er=${centerCoords.lat.toFixed(6)},${centerCoords.lng.toFixed(6)}`; + url += `&zoom=${mapZoom}`; + } + + // Add API key + url += `&key=${apiKey}`; + + // Check URL length - Google Maps Static API has a limit of 16,384 characters + const MAX_URL_LENGTH = 16384; + if (url.length > MAX_URL_LENGTH) { + console.warn(`Static map URL exceeds maximum length (${url.length} > ${MAX_URL_LENGTH})`); + + // Try to reduce the URL length by limiting the number of markers + if (markers.length > 10) { + console.log("Reducing number of markers to stay within URL length limit"); + + // Start fresh with just the base parameters + url = `${staticMapUrl}size=${mapSize}&format=${mapFormat}&scale=${mapScale}&maptype=roadmap`; + + // Only include the first 10 markers (or fewer if needed) + const maxMarkers = Math.min(10, Math.floor((MAX_URL_LENGTH - url.length - apiKey.length - 50) / 100)); + const limitedMarkers = markers.slice(0, maxMarkers); + const limitedSuccessfulPlaces = successfulPlaces.slice(0, maxMarkers); + + // Add the limited markers + for (let i = 0; i < limitedMarkers.length; i++) { + const marker = limitedMarkers[i]; + const color = options.useColoredMarkers ? MARKER_COLORS[i % MARKER_COLORS.length] : "red"; + const label = marker.label || ""; + url += `&markers=color:${color}%7Clabel:${label}%7C${marker.lat.toFixed(6)},${marker.lng.toFixed(6)}`; + } + + // Recalculate visible parameter with limited markers + if (limitedSuccessfulPlaces.length > 0) { + const visiblePlaces = limitedSuccessfulPlaces.map( + (place) => `${place.coords.lat.toFixed(6)},${place.coords.lng.toFixed(6)}` + ); + url += `&visible=${visiblePlaces.join("%7C")}`; + } else if (centerCoords) { + url += `¢er=${centerCoords.lat.toFixed(6)},${centerCoords.lng.toFixed(6)}&zoom=${mapZoom}`; + } + + // Add API key + url += `&key=${apiKey}`; + + console.log(`Reduced URL length to ${url.length} characters with ${limitedMarkers.length} markers`); + + // Update the failedPlaces array to include places that were removed due to URL length + const removedPlaces = successfulPlaces.slice(maxMarkers); + failedPlaces.push(...removedPlaces.map((p) => p.name)); + + // Update the successfulPlaces array + successfulPlaces = [...limitedSuccessfulPlaces]; + } + } + + return { url, successfulPlaces, failedPlaces }; + } catch (error) { + console.error("Error generating static map URL:", error); + throw error; + } +} + +/** + * Renders a map as a markdown image with optional clickable link + * @param options Map rendering options + * @returns Promise resolving to markdown string for the map + */ +export async function renderMap(options: RenderMapOptions): Promise<{ + markdown: string; + successfulPlaces: Array<{ name: string; coords: { lat: number; lng: number } }>; + failedPlaces: string[]; +}> { + try { + const { url, successfulPlaces, failedPlaces } = await generateStaticMapUrl(options); + const altText = options.altText || "Map"; + const mapUrl = options.mapUrl || getGoogleMapsUrl(successfulPlaces); + + console.log("Generated map URL:", url); + console.log("Successful places:", successfulPlaces.length); + console.log("Failed places:", failedPlaces.length); + + // Create markdown for the map image + const markdown = options.includeLink !== false ? `[![${altText}](${url})](${mapUrl})` : `![${altText}](${url})`; + + return { + markdown, + successfulPlaces, + failedPlaces, + }; + } catch (error) { + console.error("Error rendering map:", error); + // Return a fallback response instead of throwing + return { + markdown: `*Map rendering failed: ${error instanceof Error ? error.message : "Unknown error"}*`, + successfulPlaces: [], + failedPlaces: Array.isArray(options.places) + ? options.places.filter((p) => typeof p === "string").map((p) => p as string) + : [], + }; + } +} + +/** + * Generates a Google Maps URL for multiple places + * @param places Array of places with names and coordinates + * @returns Google Maps URL + */ +export function getGoogleMapsUrl(places: Array<{ name: string; coords?: { lat: number; lng: number } }>): string { + if (places.length === 0) { + return "https://www.google.com/maps"; + } + + if (places.length === 1) { + // For a single place, use direct search or coordinates + if (places[0].coords) { + return `https://www.google.com/maps?q=${places[0].coords.lat},${places[0].coords.lng}`; + } else { + return `https://www.google.com/maps/search/${encodeURIComponent(places[0].name)}`; + } + } + + // For multiple places, create a search with all places + const searchQuery = places.map((p) => p.name).join(" and "); + return `https://www.google.com/maps/search/${encodeURIComponent(searchQuery)}`; +} + +/** + * Renders a simple single-location map as markdown (convenience function) + * @param location Location coordinates + * @param zoom Zoom level (1-20) + * @param includeLink Whether to include a clickable link to Google Maps + * @param altText Alt text for the image + * @param mapUrl Optional custom map URL for the clickable link + * @returns Markdown string for the map + */ +export async function renderSingleLocationMap( + location: { lat: number; lng: number } | string, + zoom = 15, + includeLink = true, + altText = "Map", + mapUrl?: string +): Promise { + let locationCoords: GeocodedLocation | null = null; + + if (typeof location === "string") { + locationCoords = await geocodePlace(location); + + if (!locationCoords) { + console.error(`Could not geocode location: ${location}`); + return `> **Error:** Could not geocode location: \ +${location}\ +\n`; + } + } else { + locationCoords = location; + } + + // Create a properly formatted and encoded map URL + const safeCoords = `${locationCoords.lat.toFixed(6)},${locationCoords.lng.toFixed(6)}`; + const defaultMapUrl = `https://www.google.com/maps?q=${encodeURIComponent(safeCoords)}`; + + const result = await renderMap({ + places: [locationCoords], + zoom, + includeLink, + altText, + mapUrl: mapUrl || defaultMapUrl, + }); + + return result.markdown; +} diff --git a/extensions/google-maps-search/src/utils/navigation.tsx b/extensions/google-maps-search/src/utils/navigation.tsx new file mode 100644 index 00000000000..7f7aedc5faa --- /dev/null +++ b/extensions/google-maps-search/src/utils/navigation.tsx @@ -0,0 +1,55 @@ +// External library imports +import { Navigation } from "@raycast/api"; + +// Internal type exports +import { PlaceSearchResult } from "../types"; +import { PlaceSearchResults } from "../components/placeSearchResults"; +import { PlaceDetailView } from "../components/placeDetailView"; + +/** + * Creates navigation functions for handling place search results and details + * @param push Navigation push function from useNavigation hook + * @param pop Navigation pop function from useNavigation hook + * @param places Array of place search results + * @param placeType Optional place type that was searched for + * @returns Object containing navigation functions + */ +export function createPlaceNavigation( + push: Navigation["push"], + pop: () => void, + places: PlaceSearchResult[], + placeType?: string +): { + /** + * Navigates to the search results list + * @param isLoading Whether results are still loading + */ + navigateToResults: (isLoading: boolean) => void; + navigateToDetails: (selectedPlaceId: string) => void; +} { + /** + * Navigates to the search results list + * @param isLoading Whether results are still loading + */ + const navigateToResults = (isLoading: boolean) => { + push( + navigateToDetails(selectedPlaceId)} + onBack={() => pop()} + placeType={placeType} + /> + ); + }; + + // Navigate to place details with a simplified back function + const navigateToDetails = (selectedPlaceId: string) => { + push( navigateToResults(false)} />); + }; + + return { + navigateToResults, + navigateToDetails, + }; +} diff --git a/extensions/google-maps-search/src/utils/storageHelpers.ts b/extensions/google-maps-search/src/utils/storageHelpers.ts new file mode 100644 index 00000000000..e13e36c28aa --- /dev/null +++ b/extensions/google-maps-search/src/utils/storageHelpers.ts @@ -0,0 +1,331 @@ +// External library imports +import { LocalStorage } from "@raycast/api"; +import { OriginOption } from "../types"; + +/** + * Type for values that can be stored in LocalStorage + * LocalStorage can store strings, numbers, booleans, and objects that can be serialized to JSON + */ +export type StorageValue = string | number | boolean | null | StorageValue[] | { [key: string]: StorageValue }; + +/** + * Type validators for storage-related data types + * These type predicates help ensure type safety when working with stored values + */ + +/** + * Validates that a value is a string + */ +export function isString(value: unknown): value is string { + return typeof value === "string"; +} + +/** + * Validates that a value is a number + */ +export function isNumber(value: unknown): value is number { + return typeof value === "number" && !isNaN(value); +} + +/** + * Validates that a value is a boolean + */ +export function isBoolean(value: unknown): value is boolean { + return typeof value === "boolean"; +} + +/** + * Validates that a value is a string array + */ +export function isStringArray(value: unknown): value is string[] { + return Array.isArray(value) && value.every((item) => typeof item === "string"); +} + +/** + * Validates that a value is a valid OriginOption + */ +export function isOriginOption(value: unknown): value is OriginOption { + return typeof value === "string" && Object.values(OriginOption).includes(value as OriginOption); +} + +/** + * Validates that a value is a location object with lat and lng properties + */ +export function isLocation(value: unknown): value is { lat: number; lng: number } { + if (typeof value !== "object" || value === null) { + return false; + } + + // Use type assertion once after validation + const obj = value as Record; + + return ( + "lat" in obj && + "lng" in obj && + typeof obj.lat === "number" && + typeof obj.lng === "number" && + !isNaN(obj.lat) && + !isNaN(obj.lng) + ); +} + +/** + * Utility function to validate and safely access values from useLocalStorage hook + * @param value The value from useLocalStorage + * @param validator A type predicate function to validate the value + * @param defaultValue Default value to use if validation fails + * @returns The validated value or default value + * + * @example + * // With Raycast's useLocalStorage hook + * import { useLocalStorage } from "@raycast/utils"; + * import { validateStoredValue, isStringArray } from "./storageHelpers"; + * + * function MyComponent() { + * // Get the raw value from useLocalStorage + * const { value: rawRecentSearches } = useLocalStorage("recent-searches", []); + * + * // Validate the value using our utility + * const recentSearches = validateStoredValue(rawRecentSearches, isStringArray, []); + * + * // Now recentSearches is guaranteed to be a string array + * return ( + * + * {recentSearches.map(search => ( + * + * ))} + * + * ); + * } + */ +export function validateStoredValue(value: unknown, validator: (value: unknown) => value is T, defaultValue: T): T { + if (validator(value)) { + return value; + } + + console.warn("Stored value failed type validation, using default value instead"); + return defaultValue; +} + +/** + * Gets an item from LocalStorage with error handling + * @param key The key to retrieve + * @param defaultValue Optional default value if the key doesn't exist or an error occurs + * @param validator Optional function to validate the parsed value matches expected type + * @returns The stored value or the default value + * + * @example + * import { getStorageItem, isString } from "./storageHelpers"; + * + * async function getWelcomeMessage() { + * const welcomeMessage = await getStorageItem("welcome-message", "Hello, world!", isString); + * console.log(welcomeMessage); // Guaranteed to be a string + * } + */ +export async function getStorageItem( + key: string, + defaultValue?: T, + validator?: (value: unknown) => value is T +): Promise { + try { + const value = await LocalStorage.getItem(key); + if (value === undefined) { + return defaultValue; + } + + // Parse the value if it's a string + let parsedValue: unknown; + if (typeof value === "string") { + try { + parsedValue = JSON.parse(value); + } catch (parseError) { + console.warn(`Failed to parse stored JSON for key "${key}", returning default value`, parseError); + return defaultValue; + } + } else { + parsedValue = value; + } + + // If a validator is provided, use it to check the type + if (validator && !validator(parsedValue)) { + console.warn(`Value stored at key "${key}" failed type validation, returning default value`); + return defaultValue; + } + + // Without a validator, we have to trust the type assertion + return parsedValue as T; + } catch (error) { + console.error(`Failed to get item from storage: ${key}`, error); + return defaultValue; + } +} + +/** + * Sets an item in LocalStorage with error handling + * @param key The key to set + * @param value The value to store + * @returns True if successful, false if an error occurred + * + * @example + * import { setStorageItem } from "./storageHelpers"; + * + * async function saveWelcomeMessage(message: string) { + * const success = await setStorageItem("welcome-message", message); + * if (!success) { + * console.error("Failed to save welcome message"); + * } + * } + */ +export async function setStorageItem(key: string, value: StorageValue): Promise { + try { + // Handle null values - store as string "null" + if (value === null) { + await LocalStorage.setItem(key, "null"); + return true; + } + + // Handle objects - need to stringify + if (typeof value === "object") { + try { + const stringifiedValue = JSON.stringify(value); + await LocalStorage.setItem(key, stringifiedValue); + return true; + } catch (stringifyError) { + console.error(`Failed to stringify object for key "${key}": possible circular reference`, stringifyError); + return false; + } + } + + // Handle primitive values + await LocalStorage.setItem(key, value as string | number | boolean); + return true; + } catch (error) { + console.error(`Failed to save item to storage: ${key}`, error); + return false; + } +} + +/** + * Removes an item from LocalStorage with error handling + * @param key The key to remove + * @returns True if successful, false if an error occurred + * + * @example + * import { removeStorageItem } from "./storageHelpers"; + * + * async function clearWelcomeMessage() { + * const success = await removeStorageItem("welcome-message"); + * if (!success) { + * console.error("Failed to clear welcome message"); + * } + * } + */ +export async function removeStorageItem(key: string): Promise { + try { + await LocalStorage.removeItem(key); + return true; + } catch (error) { + console.error(`Failed to remove item from storage: ${key}`, error); + return false; + } +} + +/** + * Saves multiple items to LocalStorage in a batch with error handling + * @param items Object with keys and values to store + * @returns Object with success status and details about failed operations + * + * @example + * import { batchSetStorageItems } from "./storageHelpers"; + * + * async function saveSettings(settings: { [key: string]: string }) { + * const result = await batchSetStorageItems(settings); + * if (!result.success) { + * console.error(`Failed to save ${result.failedItems.length} settings:`, result.failedItems); + * } + * } + */ +export async function batchSetStorageItems(items: Record): Promise<{ + success: boolean; + failedItems: { key: string; error: unknown }[]; +}> { + const operations: { key: string; promise: Promise; error?: unknown }[] = []; + + // Process each item individually to handle potential JSON.stringify errors + for (const [key, value] of Object.entries(items)) { + try { + let valueToStore: string | number | boolean; + + // Handle null values + if (value === null) { + valueToStore = "null"; + } + // Handle objects - need to stringify + else if (typeof value === "object") { + try { + valueToStore = JSON.stringify(value); + } catch (stringifyError) { + console.error(`Failed to stringify object for key "${key}": possible circular reference`, stringifyError); + operations.push({ + key, + promise: Promise.reject(stringifyError), + error: stringifyError, + }); + continue; // Skip to next item + } + } + // Handle primitive values + else { + valueToStore = value as string | number | boolean; + } + + operations.push({ + key, + promise: LocalStorage.setItem(key, valueToStore), + }); + } catch (error) { + // Catch any other unexpected errors + operations.push({ + key, + promise: Promise.reject(error), + error, + }); + } + } + + try { + // Use Promise.allSettled to continue even if some operations fail + const results = await Promise.allSettled(operations.map((op) => op.promise)); + + // Collect failed operations + const failedItems = results + .map((result, index) => ({ + result, + key: operations[index].key, + })) + .filter((item) => item.result.status === "rejected") + .map((item) => ({ + key: item.key, + error: (item.result as PromiseRejectedResult).reason, + })); + + // Log failures if any + if (failedItems.length > 0) { + console.warn( + `${failedItems.length} of ${results.length} storage operations failed:`, + failedItems.map((item) => item.key).join(", ") + ); + } + + return { + success: failedItems.length === 0, + failedItems, + }; + } catch (error) { + console.error("Failed to execute batch storage operations", error); + return { + success: false, + failedItems: [{ key: "batch_operation", error }], + }; + } +} diff --git a/extensions/google-maps-search/src/utils/types.ts b/extensions/google-maps-search/src/utils/types.ts index ce5154de898..50d6ef1bf98 100644 --- a/extensions/google-maps-search/src/utils/types.ts +++ b/extensions/google-maps-search/src/utils/types.ts @@ -1,7 +1,9 @@ +import { Distance, Duration, TransportType } from "../types"; + /** * Corresponds to Google Map's four possible modes of travel. */ -export enum TransportType { +export enum transportType { Cycling = "bicycling", Driving = "driving", Transit = "transit", @@ -12,11 +14,15 @@ export enum TransportType { * Enum for origin options in the form */ export enum OriginOption { - CurLoc = "curloc", Home = "home", Custom = "custom", } +/** + * Sort order options for place results + */ +export type SortOrder = "none" | "distance" | "rating" | "price" | "price-desc"; + /** * Corresponds to the preferences defined in package.json. */ @@ -26,4 +32,114 @@ export interface Preferences { preferredOrigin: OriginOption; useSelected: boolean; saveSearchHistory: boolean; + googlePlacesApiKey: string; + showMapInSidebar: boolean; + unitSystem: "metric" | "imperial"; + defaultSortOrder: SortOrder; +} + +/** + * Interface for place search results + */ +export interface PlaceSearchResult { + placeId: string; + name: string; + address: string; + location: { + lat: number; + lng: number; + }; + types: string[]; + rating?: number; + userRatingsTotal?: number; + openNow?: boolean; + photoReference?: string; + vicinity?: string; + priceLevel?: number; +} + +/** + * Interface for place details + */ +export interface PlaceDetails extends PlaceSearchResult { + phoneNumber?: string; + website?: string; + openingHours?: { + weekdayText?: string[]; + isOpen?: boolean; + }; + reviews?: PlaceReview[]; + photos?: string[]; +} + +/** + * Interface for place reviews + */ +export interface PlaceReview { + authorName: string; + rating: number; + relativeTimeDescription: string; + text: string; + time: number; } + +/** + * Interface for route information + */ +export interface RouteInfo { + distance: Distance; + duration: Duration; + startAddress: string; + endAddress: string; + steps: RouteStep[]; + polyline: string; // encoded polyline +} + +/** + * Interface for route steps + */ +export interface RouteStep { + distance: Distance; + duration: Duration; + instructions: string; + travelMode: TransportType; + polyline: string; // encoded polyline +} + +/** + * Interface for place type options + */ +export interface PlaceTypeOption { + title: string; + value: string; +} + +/** + * Available place types for Google Places API + */ +export const PLACE_TYPES: PlaceTypeOption[] = [ + { title: "Restaurant", value: "restaurant" }, + { title: "Cafe", value: "cafe" }, + { title: "Bar", value: "bar" }, + { title: "Supermarket", value: "supermarket" }, + { title: "Bakery", value: "bakery" }, + { title: "Bank", value: "bank" }, + { title: "Gas Station", value: "gas_station" }, + { title: "Hospital", value: "hospital" }, + { title: "Pharmacy", value: "pharmacy" }, + { title: "Park", value: "park" }, + { title: "Gym", value: "gym" }, + { title: "School", value: "school" }, + { title: "Shopping Mall", value: "shopping_mall" }, + { title: "Movie Theater", value: "movie_theater" }, + { title: "Museum", value: "museum" }, + { title: "Hotel", value: "lodging" }, + { title: "Post Office", value: "post_office" }, + { title: "Library", value: "library" }, + { title: "Police", value: "police" }, + { title: "Airport", value: "airport" }, + { title: "Bus Station", value: "bus_station" }, + { title: "Train Station", value: "train_station" }, + { title: "Subway Station", value: "subway_station" }, + { title: "Tourist Attraction", value: "tourist_attraction" }, +]; diff --git a/extensions/google-maps-search/src/utils/unitConversions.ts b/extensions/google-maps-search/src/utils/unitConversions.ts new file mode 100644 index 00000000000..696ae294b3e --- /dev/null +++ b/extensions/google-maps-search/src/utils/unitConversions.ts @@ -0,0 +1,97 @@ +// External library imports +import { getPreferenceValues } from "@raycast/api"; + +// Internal type exports +import { Preferences } from "../types"; + +// Conversion constants +export const KM_PER_MILE = 1.60934; +export const FEET_PER_METER = 3.28084; +export const METERS_PER_MILE = 1609.34; + +// Default values +export const DEFAULT_RADIUS_KM = 5; +export const DEFAULT_RADIUS_MILES = 3; +export const DEFAULT_SEARCH_RADIUS_KM = 50000; // 50km in meters +export const DEFAULT_SEARCH_RADIUS_MILES = 30; // miles + +/** + * Convert miles to kilometers + * @param miles Distance in miles + * @returns Distance in kilometers + */ +export function milesToKm(miles: number): number { + return miles * KM_PER_MILE; +} + +/** + * Convert kilometers to miles + * @param km Distance in kilometers + * @returns Distance in miles + */ +export function kmToMiles(km: number): number { + return km / KM_PER_MILE; +} + +/** + * Convert meters to feet + * @param meters Distance in meters + * @returns Distance in feet + */ +export function metersToFeet(meters: number): number { + return meters * FEET_PER_METER; +} + +/** + * Convert feet to meters + * @param feet Distance in feet + * @returns Distance in meters + */ +export function feetToMeters(feet: number): number { + return feet / FEET_PER_METER; +} + +/** + * Convert meters to miles + * @param meters Distance in meters + * @returns Distance in miles + */ +export function metersToMiles(meters: number): number { + return meters / METERS_PER_MILE; +} + +/** + * Convert miles to meters + * @param miles Distance in miles + * @returns Distance in meters + */ +export function milesToMeters(miles: number): number { + return miles * METERS_PER_MILE; +} + +/** + * Get the user's preferred unit system + * @returns The user's preferred unit system ("metric" or "imperial") + */ +export function getUnitSystem(): "metric" | "imperial" { + const preferences = getPreferenceValues(); + return preferences.unitSystem || "metric"; +} + +/** + * Get the default radius based on the user's preferred unit system + * @returns Default radius as a number (5 for km, 3 for miles) + */ +export function getDefaultRadius(): number { + const unitSystem = getUnitSystem(); + return unitSystem === "metric" ? DEFAULT_RADIUS_KM : DEFAULT_RADIUS_MILES; +} + +/** + * Get the default search radius in meters based on the user's preferred unit system + * @returns Default search radius in meters + */ +export function getDefaultSearchRadiusInMeters(): number { + const unitSystem = getUnitSystem(); + return unitSystem === "metric" ? DEFAULT_SEARCH_RADIUS_KM : Math.round(DEFAULT_SEARCH_RADIUS_MILES * METERS_PER_MILE); +} diff --git a/extensions/google-maps-search/src/utils/url.ts b/extensions/google-maps-search/src/utils/url.ts index 23ca8f823a7..03f9839afab 100644 --- a/extensions/google-maps-search/src/utils/url.ts +++ b/extensions/google-maps-search/src/utils/url.ts @@ -1,14 +1,27 @@ +// External library imports +import { getPreferenceValues } from "@raycast/api"; + +// Internal type exports +import { Preferences } from "../types"; + /** * Given an origin, a destination, and a travel mode, returns a direction url according to the following specs: * https://developers.google.com/maps/documentation/urls/get-started * - * @param origin The origin address + * @param origin The origin address (uses home address from preferences if empty) * @param destination The destination address * @param transporttype One of four possible transit types * @returns A properly URI encoded string according to Google Maps documentation */ export function makeDirectionsURL(origin: string, destination: string, transporttype: string): string { const mapsBase = "https://www.google.com/maps/dir/?api=1"; + + // If origin is empty, get the home address from preferences + if (!origin) { + const preferences = getPreferenceValues(); + origin = preferences.homeAddress || ""; + } + return ( mapsBase + "&origin=" + @@ -29,5 +42,87 @@ export function makeDirectionsURL(origin: string, destination: string, transport */ export function makeSearchURL(query: string): string { const mapsBase = "https://www.google.com/maps/search/?api=1"; - return mapsBase + "&query=" + encodeURI(query); + return mapsBase + "&query=" + encodeURIComponent(query); +} + +/** + * Creates a Google Maps place URL that makes it easier to copy coordinates + * Using the "place" endpoint instead of "search" makes it easier to get coordinates + * + * @param query The query string for the place + * @returns A properly URI encoded Google Maps place URL + */ +export function createPlaceURL(query: string): string { + return `https://www.google.com/maps/place/${encodeURIComponent(query)}`; +} + +/** + * Extracts coordinates from a Google Maps URL + * Note: This is a fallback method and may not always work reliably + * + * @param url The Google Maps URL + * @returns An object with lat and lng properties or null if coordinates couldn't be extracted + */ +export function extractCoordinatesFromURL(url: string): { lat: number; lng: number } | null { + try { + // Try to extract coordinates from URL + // Example URL pattern: https://www.google.com/maps/place/.../@37.7749,-122.4194,15z/... + const match = url.match(/@(-?\d+\.\d+),(-?\d+\.\d+)/); + if (match && match.length >= 3) { + return { + lat: parseFloat(match[1]), + lng: parseFloat(match[2]), + }; + } + return null; + } catch (error) { + console.error("Error extracting coordinates:", error); + return null; + } +} + +/** + * Formats coordinates as a string in various formats + * + * @param coordinates The coordinates object with lat and lng properties + * @param format The format to use: 'decimal' (default), 'dms' (degrees, minutes, seconds) + * @returns A formatted string representation of the coordinates + */ +export function formatCoordinates( + coordinates: { lat: number; lng: number }, + format: "decimal" | "dms" | "google" = "decimal" +): string { + if (coordinates === null) return ""; + + const { lat, lng } = coordinates; + + switch (format) { + case "decimal": + return `${lat.toFixed(6)}, ${lng.toFixed(6)}`; + case "dms": + return `${convertToDMS(lat, "lat")} ${convertToDMS(lng, "lng")}`; + case "google": + return `${lat},${lng}`; + default: + return `${lat.toFixed(6)}, ${lng.toFixed(6)}`; + } +} + +/** + * Converts decimal degrees to degrees, minutes, seconds format + * + * @param value The decimal degrees value + * @param type Whether this is a latitude or longitude value + * @returns A formatted DMS string + */ +function convertToDMS(value: number, type: "lat" | "lng"): string { + const absolute = Math.abs(value); + const degrees = Math.floor(absolute); + const minutesNotTruncated = (absolute - degrees) * 60; + const minutes = Math.floor(minutesNotTruncated); + const seconds = Math.round((minutesNotTruncated - minutes) * 60); + + const direction = type === "lat" ? (value >= 0 ? "N" : "S") : value >= 0 ? "E" : "W"; + + return `${degrees}°${minutes}'${seconds}"${direction}`; } diff --git a/extensions/google-maps-search/src/utils/validation.ts b/extensions/google-maps-search/src/utils/validation.ts new file mode 100644 index 00000000000..dff1c243d3c --- /dev/null +++ b/extensions/google-maps-search/src/utils/validation.ts @@ -0,0 +1,70 @@ +/** + * Validation utilities for form inputs + */ + +/** + * Validates that a value is not empty + * @param value The value to validate + * @param fieldName The name of the field (for error messages) + * @returns Error message or null if valid + */ +export function validateRequired(value: string, fieldName: string): string | null { + return value.trim() ? null : `${fieldName} is required`; +} + +/** + * Validates that a value is a positive number + * @param value The value to validate + * @param fieldName The name of the field (for error messages) + * @returns Error message or null if valid + */ +export function validateNumeric(value: string, fieldName: string): string | null { + const num = Number(value); + + // Handle NaN, zero (including negative zero), and negative numbers + if (isNaN(num) || num <= 0 || Object.is(num, -0)) { + return `${fieldName} must be a positive number`; + } + + return null; +} + +/** + * Validates that a value is within a specified range + * @param value The value to validate + * @param min The minimum allowed value + * @param max The maximum allowed value + * @param fieldName The name of the field (for error messages) + * @returns Error message or null if valid + * @throws Error if min > max (invalid range definition) + */ +export function validateRange(value: string, min: number, max: number, fieldName: string): string | null { + // Validate the range definition + if (min > max) { + throw new Error(`Invalid range definition: min (${min}) cannot be greater than max (${max})`); + } + + const num = Number(value); + if (isNaN(num)) { + return `${fieldName} must be a number`; + } + if (num < min || num > max) { + return `${fieldName} must be between ${min} and ${max}`; + } + return null; +} + +/** + * Validates an API key format (basic check) + * @param apiKey The API key to validate + * @returns Error message or null if valid + */ +export function validateApiKey(apiKey: string): string | null { + if (!apiKey.trim()) { + return "API key is required"; + } + if (apiKey.length < 10) { + return "API key appears to be too short"; + } + return null; +}