@chenpx976/chrome-devtools-mcp 0.0.0-stage → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +223 -2
- package/out/Default/gen/src/ArcBrowser.js +128 -0
- package/out/Default/gen/src/BrowserManager.js +562 -0
- package/out/Default/gen/src/LogpointManager.js +287 -0
- package/out/Default/gen/src/McpContext.js +1031 -0
- package/out/Default/gen/src/McpPage.js +1427 -0
- package/out/Default/gen/src/McpResponse.js +1350 -0
- package/out/Default/gen/src/McpWorker.js +66 -0
- package/out/Default/gen/src/NetworkOverrideManager.js +447 -0
- package/out/Default/gen/src/SlimMcpResponse.js +23 -0
- package/out/Default/gen/src/TextSnapshot.js +336 -0
- package/out/Default/gen/src/ToolHandler.js +531 -0
- package/out/Default/gen/src/bin/check-latest-version.js +53 -0
- package/out/Default/gen/src/bin/chrome-devtools-mcp-main.js +80 -0
- package/out/Default/gen/src/bin/chrome-devtools-mcp.js +23 -0
- package/out/Default/gen/src/bin/chrome-devtools.js +213 -0
- package/out/Default/gen/src/collectors/PageCollector.js +325 -0
- package/out/Default/gen/src/collectors/ServiceWorkerCollector.js +198 -0
- package/out/Default/gen/src/collectors/constants.js +7 -0
- package/out/Default/gen/src/config/ConfigLocator.js +70 -0
- package/out/Default/gen/src/config/ConfigParser.js +163 -0
- package/out/Default/gen/src/config/ConfigWatcher.js +94 -0
- package/out/Default/gen/src/config/ServerConfig.js +284 -0
- package/out/Default/gen/src/config/browser-options.js +135 -0
- package/out/Default/gen/src/config/category-options.js +84 -0
- package/out/Default/gen/src/config/cli-commands.js +208 -0
- package/out/Default/gen/src/config/cli-options.js +2090 -0
- package/out/Default/gen/src/config/mcp-options.js +371 -0
- package/out/Default/gen/src/config/puppeteer-options.js +69 -0
- package/out/Default/gen/src/config/tool-options.js +60 -0
- package/out/Default/gen/src/daemon/client.js +281 -0
- package/out/Default/gen/src/daemon/daemon.js +280 -0
- package/out/Default/gen/src/daemon/types.js +7 -0
- package/out/Default/gen/src/daemon/utils.js +173 -0
- package/out/Default/gen/src/devtools/DevToolsCommentBridge.js +151 -0
- package/out/Default/gen/src/devtools/DevtoolsUtils.js +413 -0
- package/out/Default/gen/src/devtools/McpHostBindingAdapter.js +164 -0
- package/out/Default/gen/src/devtools/issueDescriptions.js +42 -0
- package/out/Default/gen/src/formatters/CommentFormatter.js +73 -0
- package/out/Default/gen/src/formatters/ConsoleFormatter.js +363 -0
- package/out/Default/gen/src/formatters/CssFormatter.js +883 -0
- package/out/Default/gen/src/formatters/HeapSnapshotFormatter.js +239 -0
- package/out/Default/gen/src/formatters/IssueFormatter.js +194 -0
- package/out/Default/gen/src/formatters/LogpointFormatter.js +62 -0
- package/out/Default/gen/src/formatters/NetworkFormatter.js +295 -0
- package/out/Default/gen/src/formatters/NetworkOverridesFormatter.js +57 -0
- package/out/Default/gen/src/formatters/RemoteObjectFormatter.js +231 -0
- package/out/Default/gen/src/formatters/SnapshotFormatter.js +172 -0
- package/out/Default/gen/src/formatters/WebAuthnFormatter.js +56 -0
- package/out/Default/gen/src/formatters/constants.js +8 -0
- package/out/Default/gen/src/index.js +434 -0
- package/out/Default/gen/src/processors/ChunkedTraceParser.js +361 -0
- package/out/Default/gen/src/processors/HeapSnapshotManager.js +595 -0
- package/out/Default/gen/src/processors/PerformanceTrace.js +132 -0
- package/out/Default/gen/src/telemetry/ClearcutLogger.js +271 -0
- package/out/Default/gen/src/telemetry/WatchdogClient.js +60 -0
- package/out/Default/gen/src/telemetry/errors.js +18 -0
- package/out/Default/gen/src/telemetry/flagUtils.js +89 -0
- package/out/Default/gen/src/telemetry/metricsRegistry.js +85 -0
- package/out/Default/gen/src/telemetry/persistence.js +82 -0
- package/out/Default/gen/src/telemetry/transformation.js +229 -0
- package/out/Default/gen/src/telemetry/types.js +36 -0
- package/out/Default/gen/src/telemetry/watchdog/ClearcutSender.js +213 -0
- package/out/Default/gen/src/telemetry/watchdog/main.js +142 -0
- package/out/Default/gen/src/third_party/THIRD_PARTY_NOTICES +3774 -0
- package/out/Default/gen/src/third_party/browser.js +808 -0
- package/out/Default/gen/src/third_party/bundled-packages.json +11 -0
- package/out/Default/gen/src/third_party/cli.js +139 -0
- package/out/Default/gen/src/third_party/devtools-formatter-worker.js +125 -0
- package/out/Default/gen/src/third_party/devtools-heap-snapshot-worker.js +111 -0
- package/out/Default/gen/src/third_party/index.js +128 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameOrigin.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameSite.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CompatibilityModeQuirks.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/LowTextContrast.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/bounceTrackingMitigations.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/clientHintMetaTagModifiedHTML.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistEmbeddingRequirementNotSatisfied.md +26 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistIFrameAttributeLoosensEmbeddingRequirement.md +19 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowConnectionAllowlistFrom.md +21 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidHeader.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistItemNotInnerList.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistMoreThanOneList.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeDomainNonAscii.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludePortMismatch.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeSchemeMismatch.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnDomainNonAscii.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantRead.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantReadOptOut.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantSet.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantSetOptOut.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsAllowCredentialsRequired.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsDisabledScheme.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsDisallowedByMode.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsInvalidHeaderValues.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsOriginMismatch.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsPreflightResponseInvalid.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsRedirectContainsCredentials.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsWildcardOriginNotAllowed.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspEvalViolation.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspInlineViolation.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspTrustedTypesPolicyViolation.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspTrustedTypesSinkViolation.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspURLViolation.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/deprecation.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsEmptyList.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidContentType.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestDnsFetchFailed.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidContentType.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestInvalidEmail.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestJwksHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestJwksInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidAudience.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidIssuedAt.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidNonce.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidSdHash.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidTyp.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingAud.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingCnf.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingIat.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingNonce.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingSdHash.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbSignatureFailed.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmail.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmailVerified.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidHolderKey.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuedAt.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuer.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtJwksMissingKeys.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingCnf.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingEmail.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIat.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIss.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtSignatureFailed.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtUnsupportedHeaderAlg.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestUserLoggedOut.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsBlockedByConnectionAllowlist.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestCanceled.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestConfigBlockedByConnectionAllowlist.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestErrorIdToken.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestTooManyRequests.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/fetchingPartitionedBlobURL.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormDuplicateIdForInputError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputWithNoLabelError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelForNameError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextMissingToolDescription.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextMissingToolName.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextParameterMissingName.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericGeolocationPromptWithoutUserGesture.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericResponseWasBlockedByORB.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/heavyAd.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/lazyLoadImageZeroSize.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/mixedContent.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/navigatingPartitionedBlobURL.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabled.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFencedFrameDisallowed.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFontSizeTooLarge.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFontSizeTooSmall.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementGeolocationDeprecated.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidDisplayStyle.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidSizeValue.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidType.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidTypeActivation.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementLowContrast.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementNonOpaqueColor.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPaddingRightUnsupported.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementRegistrationFailed.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementRequestInProgress.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementSecurityChecksFailed.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementTypeNotSupported.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementUntrustedEvent.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/propertyRuleInvalidNameIssue.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/propertyRuleIssue.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectivePermissionsIntervention.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedArrayBuffer.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriInvalidSignatureHeader.md +14 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriInvalidSignatureInputHeader.md +15 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriMissingSignatureHeader.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriMissingSignatureInputHeader.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedInvalidLength.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedSignatureExpired.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedSignatureMismatch.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/stylesheetLateImport.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/stylesheetRequestFailed.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestType.md +17 -0
- package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestMalformedDictionary.md +14 -0
- package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestMissingId.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestMissingNameOrShortName.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestParsingOrNetworkError.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallNoManifest.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallStartUrlInvalid.md +3 -0
- package/out/Default/gen/src/third_party/lighthouse-devtools-mcp-bundle.js +60395 -0
- package/out/Default/gen/src/tools/ToolDefinition.js +180 -0
- package/out/Default/gen/src/tools/categories.js +37 -0
- package/out/Default/gen/src/tools/comments.js +230 -0
- package/out/Default/gen/src/tools/console.js +122 -0
- package/out/Default/gen/src/tools/css.js +54 -0
- package/out/Default/gen/src/tools/emulation.js +98 -0
- package/out/Default/gen/src/tools/extensions.js +108 -0
- package/out/Default/gen/src/tools/input.js +658 -0
- package/out/Default/gen/src/tools/lighthouse.js +279 -0
- package/out/Default/gen/src/tools/logpoints.js +51 -0
- package/out/Default/gen/src/tools/memory.js +531 -0
- package/out/Default/gen/src/tools/network.js +325 -0
- package/out/Default/gen/src/tools/pages.js +420 -0
- package/out/Default/gen/src/tools/performance.js +258 -0
- package/out/Default/gen/src/tools/pwa.js +152 -0
- package/out/Default/gen/src/tools/screencast.js +160 -0
- package/out/Default/gen/src/tools/screenshot.js +315 -0
- package/out/Default/gen/src/tools/script.js +319 -0
- package/out/Default/gen/src/tools/slim/tools.js +110 -0
- package/out/Default/gen/src/tools/snapshot.js +88 -0
- package/out/Default/gen/src/tools/thirdPartyDeveloper.js +73 -0
- package/out/Default/gen/src/tools/toolNames.js +10 -0
- package/out/Default/gen/src/tools/tools.js +72 -0
- package/out/Default/gen/src/tools/webauthn.js +51 -0
- package/out/Default/gen/src/tools/webmcp.js +55 -0
- package/out/Default/gen/src/types.js +21 -0
- package/out/Default/gen/src/utils/TaskRunner.js +151 -0
- package/out/Default/gen/src/utils/WaitForHelper.js +343 -0
- package/out/Default/gen/src/utils/bytes.js +95 -0
- package/out/Default/gen/src/utils/check-for-updates.js +81 -0
- package/out/Default/gen/src/utils/disclaimers.js +27 -0
- package/out/Default/gen/src/utils/errorHandling.js +23 -0
- package/out/Default/gen/src/utils/files.js +81 -0
- package/out/Default/gen/src/utils/id.js +16 -0
- package/out/Default/gen/src/utils/keyboard.js +307 -0
- package/out/Default/gen/src/utils/logger.js +145 -0
- package/out/Default/gen/src/utils/logpoint.js +44 -0
- package/out/Default/gen/src/utils/network.js +81 -0
- package/out/Default/gen/src/utils/pagination.js +50 -0
- package/out/Default/gen/src/utils/polyfill.js +11 -0
- package/out/Default/gen/src/utils/raceWithSignal.js +26 -0
- package/out/Default/gen/src/utils/resourceType.js +27 -0
- package/out/Default/gen/src/utils/text.js +43 -0
- package/out/Default/gen/src/utils/timeout.js +14 -0
- package/out/Default/gen/src/utils/url.js +311 -0
- package/out/Default/gen/src/version.js +11 -0
- package/package.json +125 -4
- package/skills/a11y-debugging/SKILL.md +86 -0
- package/skills/a11y-debugging/references/a11y-snippets.md +92 -0
- package/skills/arc-compatibility/SKILL.md +174 -0
- package/skills/arc-compatibility/SOURCES.md +238 -0
- package/skills/arc-compatibility/references/compatibility.md +115 -0
- package/skills/arc-compatibility/references/output-contract.md +62 -0
- package/skills/arc-compatibility/references/workflows.md +108 -0
- package/skills/chrome-devtools/SKILL.md +80 -0
- package/skills/chrome-devtools-cli/SKILL.md +208 -0
- package/skills/chrome-devtools-cli/references/installation.md +24 -0
- package/skills/cookie-debugging/SKILL.md +152 -0
- package/skills/debug-optimize-lcp/SKILL.md +121 -0
- package/skills/debug-optimize-lcp/references/elements-and-size.md +27 -0
- package/skills/debug-optimize-lcp/references/lcp-breakdown.md +23 -0
- package/skills/debug-optimize-lcp/references/lcp-snippets.md +79 -0
- package/skills/debug-optimize-lcp/references/optimization-strategies.md +38 -0
- package/skills/inspect-in-devtools/SKILL.md +82 -0
- package/skills/memory-leak-debugging/SKILL.md +58 -0
- package/skills/memory-leak-debugging/references/common-leaks.md +33 -0
- package/skills/troubleshooting/SKILL.md +107 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@modelcontextprotocol/core": "2.4.0",
|
|
3
|
+
"@modelcontextprotocol/server": "2.4.0",
|
|
4
|
+
"core-js": "3.51.0",
|
|
5
|
+
"lighthouse": "13.6.0",
|
|
6
|
+
"semver": "7.8.6",
|
|
7
|
+
"yargs": "18.2.0",
|
|
8
|
+
"zod": "4.6.7",
|
|
9
|
+
"puppeteer-core": "25.18.1",
|
|
10
|
+
"https://github.com/ChromeDevTools/devtools-frontend": "02cc93adfdf8615af37f81e1b206a6aecf9386f5"
|
|
11
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import {createRequire as __devtoolsCreateRequire} from 'node:module';
|
|
2
|
+
const require = __devtoolsCreateRequire(import.meta.url);
|
|
3
|
+
var ua=Object.create;var er=Object.defineProperty;var oa=Object.getOwnPropertyDescriptor;var aa=Object.getOwnPropertyNames;var la=Object.getPrototypeOf,ca=Object.prototype.hasOwnProperty;var N=(s,e)=>()=>{try{return e||s((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}};var fa=(s,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of aa(e))!ca.call(s,r)&&r!==t&&er(s,r,{get:()=>e[r],enumerable:!(n=oa(e,r))||n.enumerable});return s};var zt=(s,e,t)=>(t=s!=null?ua(la(s)):{},fa(e||!s||!s.__esModule?er(t,"default",{value:s,enumerable:!0}):t,s));var Hs=N((PD,Lr)=>{Lr.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var pi=N((Pp,Di)=>{"use strict";Di.exports=function(e){if(e===void 0&&(e=2),e>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+e+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var t=Error.prepareStackTrace;Error.prepareStackTrace=function(r,i){return i};var n=new Error().stack;if(Error.prepareStackTrace=t,n!==null&&typeof n=="object")return n[e]?n[e].getFileName():void 0}});var Ct=N((em,eu)=>{"use strict";var Yl="2.0.0",Xl=Number.MAX_SAFE_INTEGER||9007199254740991,kl=16,Kl=250,Zl=[" ",`
|
|
4
|
+
`,"\v","\f","\r"," ","\xA0","\u1680","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005","\u2006","\u2007","\u2008","\u2009","\u200A","\u2028","\u2029","\u202F","\u205F","\u3000","\uFEFF"],Jl=["major","premajor","minor","preminor","patch","prepatch","prerelease"];eu.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:kl,MAX_SAFE_BUILD_LENGTH:Kl,MAX_SAFE_INTEGER:Xl,WHITESPACE_CHARACTERS:Zl,RELEASE_TYPES:Jl,SEMVER_SPEC_VERSION:Yl,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Lt=N((tm,tu)=>{"use strict";var Ql=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...s)=>console.error("SEMVER",...s):()=>{};tu.exports=Ql});var St=N((We,su)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:yn,MAX_SAFE_BUILD_LENGTH:ec,MAX_LENGTH:tc}=Ct(),sc=Lt();We=su.exports={};var nc=We.re=[],rc=We.safeRe=[],O=We.src=[],ic=We.safeSrc=[],_=We.t={},uc=0,On="[a-zA-Z0-9-]",oc=[["\\s",1],["\\d",tc],[On,ec]],ac=s=>{for(let[e,t]of oc)s=s.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return s},H=(s,e,t)=>{let n=ac(e),r=uc++;sc(s,r,e),_[s]=r,O[r]=e,ic[r]=n,nc[r]=new RegExp(e,t?"g":void 0),rc[r]=new RegExp(n,t?"g":void 0)};H("NUMERICIDENTIFIER","0|[1-9]\\d*");H("NUMERICIDENTIFIERLOOSE","\\d+");H("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${On}*`);H("MAINVERSION",`(${O[_.NUMERICIDENTIFIER]})\\.(${O[_.NUMERICIDENTIFIER]})\\.(${O[_.NUMERICIDENTIFIER]})`);H("MAINVERSIONLOOSE",`(${O[_.NUMERICIDENTIFIERLOOSE]})\\.(${O[_.NUMERICIDENTIFIERLOOSE]})\\.(${O[_.NUMERICIDENTIFIERLOOSE]})`);H("PRERELEASEIDENTIFIER",`(?:${O[_.NONNUMERICIDENTIFIER]}|${O[_.NUMERICIDENTIFIER]})`);H("PRERELEASEIDENTIFIERLOOSE",`(?:${O[_.NONNUMERICIDENTIFIER]}|${O[_.NUMERICIDENTIFIERLOOSE]})`);H("PRERELEASE",`(?:-(${O[_.PRERELEASEIDENTIFIER]}(?:\\.${O[_.PRERELEASEIDENTIFIER]})*))`);H("PRERELEASELOOSE",`(?:-?(${O[_.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${O[_.PRERELEASEIDENTIFIERLOOSE]})*))`);H("BUILDIDENTIFIER",`${On}+`);H("BUILD",`(?:\\+(${O[_.BUILDIDENTIFIER]}(?:\\.${O[_.BUILDIDENTIFIER]})*))`);H("FULLPLAIN",`v?${O[_.MAINVERSION]}${O[_.PRERELEASE]}?${O[_.BUILD]}?`);H("FULL",`^${O[_.FULLPLAIN]}$`);H("LOOSEPLAIN",`[v=\\s]*${O[_.MAINVERSIONLOOSE]}${O[_.PRERELEASELOOSE]}?${O[_.BUILD]}?`);H("LOOSE",`^${O[_.LOOSEPLAIN]}$`);H("GTLT","((?:<|>)?=?)");H("XRANGEIDENTIFIERLOOSE",`${O[_.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);H("XRANGEIDENTIFIER",`${O[_.NUMERICIDENTIFIER]}|x|X|\\*`);H("XRANGEPLAIN",`[v=\\s]*(${O[_.XRANGEIDENTIFIER]})(?:\\.(${O[_.XRANGEIDENTIFIER]})(?:\\.(${O[_.XRANGEIDENTIFIER]})(?:${O[_.PRERELEASE]})?${O[_.BUILD]}?)?)?`);H("XRANGEPLAINLOOSE",`[v=\\s]*(${O[_.XRANGEIDENTIFIERLOOSE]})(?:\\.(${O[_.XRANGEIDENTIFIERLOOSE]})(?:\\.(${O[_.XRANGEIDENTIFIERLOOSE]})(?:${O[_.PRERELEASELOOSE]})?${O[_.BUILD]}?)?)?`);H("XRANGE",`^${O[_.GTLT]}\\s*${O[_.XRANGEPLAIN]}$`);H("XRANGELOOSE",`^${O[_.GTLT]}\\s*${O[_.XRANGEPLAINLOOSE]}$`);H("COERCEPLAIN",`(^|[^\\d])(\\d{1,${yn}})(?:\\.(\\d{1,${yn}}))?(?:\\.(\\d{1,${yn}}))?`);H("COERCE",`${O[_.COERCEPLAIN]}(?:$|[^\\d])`);H("COERCEFULL",O[_.COERCEPLAIN]+`(?:${O[_.PRERELEASE]})?(?:${O[_.BUILD]})?(?:$|[^\\d])`);H("COERCERTL",O[_.COERCE],!0);H("COERCERTLFULL",O[_.COERCEFULL],!0);H("LONETILDE","(?:~>?)");H("TILDETRIM",`(\\s*)${O[_.LONETILDE]}\\s+`,!0);We.tildeTrimReplace="$1~";H("TILDE",`^${O[_.LONETILDE]}${O[_.XRANGEPLAIN]}$`);H("TILDELOOSE",`^${O[_.LONETILDE]}${O[_.XRANGEPLAINLOOSE]}$`);H("LONECARET","(?:\\^)");H("CARETTRIM",`(\\s*)${O[_.LONECARET]}\\s+`,!0);We.caretTrimReplace="$1^";H("CARET",`^${O[_.LONECARET]}${O[_.XRANGEPLAIN]}$`);H("CARETLOOSE",`^${O[_.LONECARET]}${O[_.XRANGEPLAINLOOSE]}$`);H("COMPARATORLOOSE",`^${O[_.GTLT]}\\s*(${O[_.LOOSEPLAIN]})$|^$`);H("COMPARATOR",`^${O[_.GTLT]}\\s*(${O[_.FULLPLAIN]})$|^$`);H("COMPARATORTRIM",`(\\s*)${O[_.GTLT]}\\s*(${O[_.LOOSEPLAIN]}|${O[_.XRANGEPLAIN]})`,!0);We.comparatorTrimReplace="$1$2$3";H("HYPHENRANGE",`^\\s*(${O[_.XRANGEPLAIN]})\\s+-\\s+(${O[_.XRANGEPLAIN]})\\s*$`);H("HYPHENRANGELOOSE",`^\\s*(${O[_.XRANGEPLAINLOOSE]})\\s+-\\s+(${O[_.XRANGEPLAINLOOSE]})\\s*$`);H("STAR","(<|>)?=?\\s*\\*");H("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");H("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ps=N((sm,nu)=>{"use strict";var lc=Object.freeze({loose:!0}),cc=Object.freeze({}),fc=s=>s?typeof s!="object"?lc:s:cc;nu.exports=fc});var _n=N((nm,uu)=>{"use strict";var ru=/^[0-9]+$/,iu=(s,e)=>{if(typeof s=="number"&&typeof e=="number")return s===e?0:s<e?-1:1;let t=ru.test(s),n=ru.test(e);return t&&n&&(s=+s,e=+e),s===e?0:t&&!n?-1:n&&!t?1:s<e?-1:1},hc=(s,e)=>iu(e,s);uu.exports={compareIdentifiers:iu,rcompareIdentifiers:hc}});var ge=N((rm,au)=>{"use strict";var ds=Lt(),{MAX_LENGTH:ou,MAX_SAFE_INTEGER:ms}=Ct(),{safeRe:gs,t:Fs}=St(),Dc=ps(),{compareIdentifiers:Sn}=_n(),pc=(s,e)=>{let t=e.split(".");if(t.length>s.length)return!1;for(let n=0;n<t.length;n++)if(Sn(s[n],t[n])!==0)return!1;return!0},$n=class s{constructor(e,t){if(t=Dc(t),e instanceof s){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ou)throw new TypeError(`version is longer than ${ou} characters`);ds("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?gs[Fs.LOOSE]:gs[Fs.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ms||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ms||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ms||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let i=+r;if(i>=0&&i<ms)return i}return r}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(ds("SemVer.compare",this.version,this.options,e),!(e instanceof s)){if(typeof e=="string"&&e===this.version)return 0;e=new s(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof s||(e=new s(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof s||(e=new s(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],r=e.prerelease[t];if(ds("prerelease compare",t,n,r),n===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(n===void 0)return-1;if(n===r)continue;return Sn(n,r)}while(++t)}compareBuild(e){e instanceof s||(e=new s(e,this.options));let t=0;do{let n=this.build[t],r=e.build[t];if(ds("build compare",t,n,r),n===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(n===void 0)return-1;if(n===r)continue;return Sn(n,r)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let r=`-${t}`.match(this.options.loose?gs[Fs.PRERELEASELOOSE]:gs[Fs.PRERELEASE]);if(!r||r[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let r=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(t){let i=[t,r];if(n===!1&&(i=[t]),pc(this.prerelease,t)){let u=this.prerelease[t.split(".").length];isNaN(u)&&(this.prerelease=i)}else this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};au.exports=$n});var tt=N((im,cu)=>{"use strict";var lu=ge(),dc=(s,e,t=!1)=>{if(s instanceof lu)return s;try{return new lu(s,e)}catch(n){if(!t)return null;throw n}};cu.exports=dc});var hu=N((um,fu)=>{"use strict";var mc=tt(),gc=(s,e)=>{let t=mc(s,e);return t?t.version:null};fu.exports=gc});var pu=N((om,Du)=>{"use strict";var Fc=tt(),Ec=(s,e)=>{let t=Fc(s.trim().replace(/^[=v]+/,""),e);return t?t.version:null};Du.exports=Ec});var gu=N((am,mu)=>{"use strict";var du=ge(),Cc=(s,e,t,n,r)=>{typeof t=="string"&&(r=n,n=t,t=void 0);try{return new du(s instanceof du?s.version:s,t).inc(e,n,r).version}catch{return null}};mu.exports=Cc});var Cu=N((lm,Eu)=>{"use strict";var Fu=tt(),bc=(s,e)=>{let t=Fu(s,null,!0),n=Fu(e,null,!0),r=t.compare(n);if(r===0)return null;let i=r>0,u=i?t:n,o=i?n:t,l=!!u.prerelease.length;if(!!o.prerelease.length&&!l){if(!o.patch&&!o.minor)return"major";if(o.compareMain(u)===0)return o.minor&&!o.patch?"minor":"patch"}let D=l?"pre":"";return t.major!==n.major?D+"major":t.minor!==n.minor?D+"minor":t.patch!==n.patch?D+"patch":"prerelease"};Eu.exports=bc});var Au=N((cm,bu)=>{"use strict";var Ac=ge(),wc=(s,e)=>new Ac(s,e).major;bu.exports=wc});var xu=N((fm,wu)=>{"use strict";var xc=ge(),yc=(s,e)=>new xc(s,e).minor;wu.exports=yc});var Ou=N((hm,yu)=>{"use strict";var Oc=ge(),_c=(s,e)=>new Oc(s,e).patch;yu.exports=_c});var Su=N((Dm,_u)=>{"use strict";var Sc=tt(),$c=(s,e)=>{let t=Sc(s,e);return t&&t.prerelease.length?t.prerelease:null};_u.exports=$c});var Re=N((pm,Bu)=>{"use strict";var $u=ge(),Bc=(s,e,t)=>new $u(s,t).compare(new $u(e,t));Bu.exports=Bc});var Ru=N((dm,Iu)=>{"use strict";var Ic=Re(),Rc=(s,e,t)=>Ic(e,s,t);Iu.exports=Rc});var vu=N((mm,Pu)=>{"use strict";var Pc=Re(),vc=(s,e)=>Pc(s,e,!0);Pu.exports=vc});var Es=N((gm,Lu)=>{"use strict";var ju=ge(),jc=(s,e,t)=>{let n=new ju(s,t),r=new ju(e,t);return n.compare(r)||n.compareBuild(r)};Lu.exports=jc});var Tu=N((Fm,Nu)=>{"use strict";var Lc=Es(),Nc=(s,e)=>s.sort((t,n)=>Lc(t,n,e));Nu.exports=Nc});var qu=N((Em,Mu)=>{"use strict";var Tc=Es(),Mc=(s,e)=>s.sort((t,n)=>Tc(n,t,e));Mu.exports=Mc});var Nt=N((Cm,Wu)=>{"use strict";var qc=Re(),Wc=(s,e,t)=>qc(s,e,t)>0;Wu.exports=Wc});var Cs=N((bm,Uu)=>{"use strict";var Uc=Re(),Gc=(s,e,t)=>Uc(s,e,t)<0;Uu.exports=Gc});var Bn=N((Am,Gu)=>{"use strict";var Hc=Re(),Vc=(s,e,t)=>Hc(s,e,t)===0;Gu.exports=Vc});var In=N((wm,Hu)=>{"use strict";var zc=Re(),Yc=(s,e,t)=>zc(s,e,t)!==0;Hu.exports=Yc});var bs=N((xm,Vu)=>{"use strict";var Xc=Re(),kc=(s,e,t)=>Xc(s,e,t)>=0;Vu.exports=kc});var As=N((ym,zu)=>{"use strict";var Kc=Re(),Zc=(s,e,t)=>Kc(s,e,t)<=0;zu.exports=Zc});var Rn=N((Om,Yu)=>{"use strict";var Jc=Bn(),Qc=In(),ef=Nt(),tf=bs(),sf=Cs(),nf=As(),rf=(s,e,t,n)=>{switch(e){case"===":return typeof s=="object"&&(s=s.version),typeof t=="object"&&(t=t.version),s===t;case"!==":return typeof s=="object"&&(s=s.version),typeof t=="object"&&(t=t.version),s!==t;case"":case"=":case"==":return Jc(s,t,n);case"!=":return Qc(s,t,n);case">":return ef(s,t,n);case">=":return tf(s,t,n);case"<":return sf(s,t,n);case"<=":return nf(s,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Yu.exports=rf});var ku=N((_m,Xu)=>{"use strict";var uf=ge(),of=tt(),{safeRe:ws,t:xs}=St(),af=(s,e)=>{if(s instanceof uf)return s;if(typeof s=="number"&&(s=String(s)),typeof s!="string")return null;e=e||{};let t=null;if(!e.rtl)t=s.match(e.includePrerelease?ws[xs.COERCEFULL]:ws[xs.COERCE]);else{let l=e.includePrerelease?ws[xs.COERCERTLFULL]:ws[xs.COERCERTL],c;for(;(c=l.exec(s))&&(!t||t.index+t[0].length!==s.length);)(!t||c.index+c[0].length!==t.index+t[0].length)&&(t=c),l.lastIndex=c.index+c[1].length+c[2].length;l.lastIndex=-1}if(t===null)return null;let n=t[2],r=t[3]||"0",i=t[4]||"0",u=e.includePrerelease&&t[5]?`-${t[5]}`:"",o=e.includePrerelease&&t[6]?`+${t[6]}`:"";return of(`${n}.${r}.${i}${u}${o}`,e)};Xu.exports=af});var Zu=N((Sm,Ku)=>{"use strict";var lf=tt(),cf=Ct(),ff=ge(),hf=(s,e,t)=>{if(!cf.RELEASE_TYPES.includes(e))return null;let n=Df(s,t);return n&&pf(n,e)},Df=(s,e)=>{let t=s instanceof ff?s.version:s;return lf(t,e)},pf=(s,e)=>{if(df(e))return s.version;switch(s.prerelease=[],e){case"major":s.minor=0,s.patch=0;break;case"minor":s.patch=0;break}return s.format()},df=s=>s.startsWith("pre");Ku.exports=hf});var Qu=N(($m,Ju)=>{"use strict";var Pn=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let r=this.map.keys().next().value;this.delete(r)}this.map.set(e,t)}return this}};Ju.exports=Pn});var fo=N((Bm,co)=>{"use strict";var{MAX_LENGTH:jn,MAX_SAFE_BUILD_LENGTH:no,WHITESPACE_CHARACTERS:mf}=Ct(),ro=new Uint8Array(65536);for(let s of mf)ro[s.charCodeAt(0)]=1;var Ln=s=>s!==void 0&&ro[s.charCodeAt(0)]===1,eo=s=>s==="v"||s==="="||Ln(s),Tt=s=>s!==void 0&&s>="0"&&s<="9",io=s=>s!==void 0&&(s>="a"&&s<="z"||s>="A"&&s<="Z"),uo=s=>Tt(s)||io(s)||s==="-",Nn=s=>Tt(s)||s==="x"||s==="X"||s==="*",oo=(s,e,t,n)=>{if(!Tt(s[e]))return e;if(e>=n.start&&e<n.end)return Math.min(e+t,n.end);if(e>=n.previousStart&&e<n.previousEnd)return Math.min(e+t,n.previousEnd);let r=e+1;for(;Tt(s[r]);)r++;return n.previousStart=n.start,n.previousEnd=n.end,n.start=e,n.end=r,Math.min(e+t,r)},Tn=(s,e,t,n)=>!t&&s[e]==="0"?e+1:oo(s,e,t?jn:jn+1,n),vn=(s,e,t,n)=>{let r=oo(s,e,jn,n);if(io(s[r])||s[r]==="-"){let i=r+1,u=i+no;for(;i<u&&uo(s[i]);)i++;return i}return Tn(s,e,t,n)},ao=(s,e,t,n)=>{let r=s[e]==="-";if(!t&&!r)return e;let i=e+(r?1:0),u=vn(s,i,t,n);if(u===i){if(!t||!r)return e;u=vn(s,e,t,n)}for(;s[u]===".";){let o=vn(s,u+1,t,n);if(o===u+1)break;u=o}return u},to=(s,e)=>{let t=e;for(;t-e<no&&uo(s[t]);)t++;return t},lo=(s,e)=>{if(s[e]!=="+")return e;let t=to(s,e+1);if(t===e+1)return e;for(;s[t]===".";){let n=to(s,t+1);if(n===t+1)break;t=n}return t},gf=(s,e,t)=>{let n=e;for(let i=0;i<3;i++){let u=Tn(s,n,!0,t);if(u===n)return e;if(n=u,i<2){if(s[n]!==".")return e;n++}}let r=ao(s,n,!0,t);return lo(s,r)},so=(s,e,t)=>Tt(s[e])?Tn(s,e,!1,t):Nn(s[e])?e+1:e,Ff=(s,e,t)=>{let n=so(s,e,t);for(let i=0;i<2;i++){if(s[n]!==".")return n;let u=so(s,n+1,t);if(u===n+1)return n;n=u}let r=ao(s,n,!1,t);return lo(s,r)},Ef=(s,e,t)=>{let n=gf(s,e,t);return n!==e?n:Ff(s,e,t)},Cf=(s,e)=>{let t=e;return Ln(s[t])&&t++,(s[t]==="<"||s[t]===">")&&t++,s[t]==="="&&t++,Ln(s[t])?t:-1},bf=s=>{let e="",t=0,n=0,r={start:-1,end:-1,previousStart:-1,previousEnd:-1};for(;n<s.length;){let i=n;if(s[n]==="<"||s[n]===">")n++;else if(!eo(s[n])&&!Nn(s[n])){n++;continue}for(;n<s.length&&eo(s[n]);)n++;if(!Nn(s[n]))continue;let u=Cf(s,i);u!==-1&&(e+=s.slice(t,u),t=u+1),n=Ef(s,n,r)}return e+s.slice(t)};co.exports=bf});var Pe=N((Im,mo)=>{"use strict";var Af=/\s+/g,Mn=class s{constructor(e,t){if(t=xf(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof qn)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(Af," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(r=>!Do(r[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&Pf(r[0])){this.set=[r];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(Rf,"");let n=((this.options.includePrerelease&&Bf)|(this.options.loose&&If))+":"+e,r=ho.get(n);if(r)return r;let i=this.options.loose,u=i?Ae[Fe.HYPHENRANGELOOSE]:Ae[Fe.HYPHENRANGE];e=e.replace(u,Hf(this.options.includePrerelease)),te("hyphen replace",e),e=Of(e),te("comparator trim",e),e=e.replace(Ae[Fe.TILDETRIM],Sf),te("tilde trim",e),e=e.replace(Ae[Fe.CARETTRIM],$f),te("caret trim",e);let o=e.split(" ").map(f=>vf(f,this.options)).join(" ").split(/\s+/).map(f=>Gf(f,this.options));i&&(o=o.filter(f=>(te("loose invalid filter",f,this.options),!!f.match(Ae[Fe.COMPARATORLOOSE])))),te("range list",o);let l=new Map,c=o.map(f=>new qn(f,this.options));for(let f of c){if(Do(f))return[f];l.set(f.value,f)}l.size>1&&l.has("")&&l.delete("");let D=[...l.values()];return ho.set(n,D),D}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some(n=>po(n,t)&&e.set.some(r=>po(r,t)&&n.every(i=>r.every(u=>i.intersects(u,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new yf(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Vf(this.set[t],e,this.options))return!0;return!1}};mo.exports=Mn;var wf=Qu(),ho=new wf,xf=ps(),qn=Mt(),te=Lt(),yf=ge(),Of=fo(),{safeRe:Ae,src:_f,t:Fe,tildeTrimReplace:Sf,caretTrimReplace:$f}=St(),{FLAG_INCLUDE_PRERELEASE:Bf,FLAG_LOOSE:If}=Ct(),Rf=new RegExp(_f[Fe.BUILD],"g"),Do=s=>s.value==="<0.0.0-0",Pf=s=>s.value==="",po=(s,e)=>{let t=!0,n=s.slice(),r=n.pop();for(;t&&n.length;)t=n.every(i=>r.intersects(i,e)),r=n.pop();return t},vf=(s,e)=>(s=s.replace(Ae[Fe.BUILD],""),te("comp",s,e),s=Tf(s,e),te("caret",s),s=Lf(s,e),te("tildes",s),s=qf(s,e),te("xrange",s),s=Uf(s,e),te("stars",s),s),pe=s=>!s||s.toLowerCase()==="x"||s==="*",jf=(s,e,t)=>pe(s)&&!pe(e)||pe(e)&&t&&!pe(t),Lf=(s,e)=>s.trim().split(/\s+/).map(t=>Nf(t,e)).join(" "),Nf=(s,e)=>{let t=e.loose?Ae[Fe.TILDELOOSE]:Ae[Fe.TILDE],n=e.includePrerelease?"-0":"";return s.replace(t,(r,i,u,o,l)=>{te("tilde",s,r,i,u,o,l);let c;return pe(i)?c="":pe(u)?c=`>=${i}.0.0${n} <${+i+1}.0.0-0`:pe(o)?c=`>=${i}.${u}.0${n} <${i}.${+u+1}.0-0`:l?(te("replaceTilde pr",l),c=`>=${i}.${u}.${o}-${l} <${i}.${+u+1}.0-0`):c=`>=${i}.${u}.${o} <${i}.${+u+1}.0-0`,te("tilde return",c),c})},Tf=(s,e)=>s.trim().split(/\s+/).map(t=>Mf(t,e)).join(" "),Mf=(s,e)=>{te("caret",s,e);let t=e.loose?Ae[Fe.CARETLOOSE]:Ae[Fe.CARET],n=e.includePrerelease?"-0":"";return s.replace(t,(r,i,u,o,l)=>{te("caret",s,r,i,u,o,l);let c;return pe(i)?c="":pe(u)?c=`>=${i}.0.0${n} <${+i+1}.0.0-0`:pe(o)?i==="0"?c=`>=${i}.${u}.0${n} <${i}.${+u+1}.0-0`:c=`>=${i}.${u}.0${n} <${+i+1}.0.0-0`:l?(te("replaceCaret pr",l),i==="0"?u==="0"?c=`>=${i}.${u}.${o}-${l} <${i}.${u}.${+o+1}-0`:c=`>=${i}.${u}.${o}-${l} <${i}.${+u+1}.0-0`:c=`>=${i}.${u}.${o}-${l} <${+i+1}.0.0-0`):(te("no pr"),i==="0"?u==="0"?c=`>=${i}.${u}.${o} <${i}.${u}.${+o+1}-0`:c=`>=${i}.${u}.${o} <${i}.${+u+1}.0-0`:c=`>=${i}.${u}.${o} <${+i+1}.0.0-0`),te("caret return",c),c})},qf=(s,e)=>(te("replaceXRanges",s,e),s.split(/\s+/).map(t=>Wf(t,e)).join(" ")),Wf=(s,e)=>{s=s.trim();let t=e.loose?Ae[Fe.XRANGELOOSE]:Ae[Fe.XRANGE];return s.replace(t,(n,r,i,u,o,l)=>{if(te("xRange",s,n,r,i,u,o,l),jf(i,u,o))return s;let c=pe(i),D=c||pe(u),f=D||pe(o),m=f;return r==="="&&m&&(r=""),l=e.includePrerelease?"-0":"",c?r===">"||r==="<"?n="<0.0.0-0":n="*":r&&m?(D&&(u=0),o=0,r===">"?(r=">=",D?(i=+i+1,u=0,o=0):(u=+u+1,o=0)):r==="<="&&(r="<",D?i=+i+1:u=+u+1),r==="<"&&(l="-0"),n=`${r+i}.${u}.${o}${l}`):D?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:f&&(n=`>=${i}.${u}.0${l} <${i}.${+u+1}.0-0`),te("xRange return",n),n})},Uf=(s,e)=>(te("replaceStars",s,e),s.trim().replace(Ae[Fe.STAR],"")),Gf=(s,e)=>(te("replaceGTE0",s,e),s.trim().replace(Ae[e.includePrerelease?Fe.GTE0PRE:Fe.GTE0],"")),Hf=s=>(e,t,n,r,i,u,o,l,c,D,f,m)=>(pe(n)?t="":pe(r)?t=`>=${n}.0.0${s?"-0":""}`:pe(i)?t=`>=${n}.${r}.0${s?"-0":""}`:u?t=`>=${t}`:t=`>=${t}${s?"-0":""}`,pe(c)?l="":pe(D)?l=`<${+c+1}.0.0-0`:pe(f)?l=`<${c}.${+D+1}.0-0`:m?l=`<=${c}.${D}.${f}-${m}`:s?l=`<${c}.${D}.${+f+1}-0`:l=`<=${l}`,`${t} ${l}`.trim()),Vf=(s,e,t)=>{for(let n=0;n<s.length;n++)if(!s[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<s.length;n++)if(te(s[n].semver),s[n].semver!==qn.ANY&&s[n].semver.prerelease.length>0){let r=s[n].semver;if(r.major===e.major&&r.minor===e.minor&&r.patch===e.patch)return!0}return!1}return!0}});var Mt=N((Rm,Ao)=>{"use strict";var qt=Symbol("SemVer ANY"),Gn=class s{static get ANY(){return qt}constructor(e,t){if(t=go(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Un("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===qt?this.value="":this.value=this.operator+this.semver.version,Un("comp",this)}parse(e){let t=this.options.loose?Fo[Eo.COMPARATORLOOSE]:Fo[Eo.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Co(n[2],this.options.loose):this.semver=qt}toString(){return this.value}test(e){if(Un("Comparator.test",e,this.options.loose),this.semver===qt||e===qt)return!0;if(typeof e=="string")try{e=new Co(e,this.options)}catch{return!1}return Wn(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new bo(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new bo(this.value,t).test(e.semver):(t=go(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Wn(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Wn(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Ao.exports=Gn;var go=ps(),{safeRe:Fo,t:Eo}=St(),Wn=Rn(),Un=Lt(),Co=ge(),bo=Pe()});var Wt=N((Pm,wo)=>{"use strict";var zf=Pe(),Yf=(s,e,t)=>{try{e=new zf(e,t)}catch{return!1}return e.test(s)};wo.exports=Yf});var yo=N((vm,xo)=>{"use strict";var Xf=Pe(),kf=(s,e)=>new Xf(s,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));xo.exports=kf});var _o=N((jm,Oo)=>{"use strict";var Kf=ge(),Zf=Pe(),Jf=(s,e,t)=>{let n=null,r=null,i=null;try{i=new Zf(e,t)}catch{return null}return s.forEach(u=>{i.test(u)&&(!n||r.compare(u)===-1)&&(n=u,r=new Kf(n,t))}),n};Oo.exports=Jf});var $o=N((Lm,So)=>{"use strict";var Qf=ge(),eh=Pe(),th=(s,e,t)=>{let n=null,r=null,i=null;try{i=new eh(e,t)}catch{return null}return s.forEach(u=>{i.test(u)&&(!n||r.compare(u)===1)&&(n=u,r=new Qf(n,t))}),n};So.exports=th});var Ro=N((Nm,Io)=>{"use strict";var Hn=ge(),sh=Pe(),Bo=Nt(),nh=(s,e)=>{s=new sh(s,e);let t=new Hn("0.0.0");if(s.test(t)||(t=new Hn("0.0.0-0"),s.test(t)))return t;t=null;for(let n=0;n<s.set.length;++n){let r=s.set[n],i=null;r.forEach(u=>{let o=new Hn(u.semver.version);switch(u.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!i||Bo(o,i))&&(i=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),i&&(!t||Bo(t,i))&&(t=i)}return t&&s.test(t)?t:null};Io.exports=nh});var vo=N((Tm,Po)=>{"use strict";var rh=Pe(),ih=(s,e)=>{try{return new rh(s,e).range||"*"}catch{return null}};Po.exports=ih});var ys=N((Mm,To)=>{"use strict";var uh=ge(),No=Mt(),{ANY:oh}=No,ah=Pe(),lh=Wt(),jo=Nt(),Lo=Cs(),ch=As(),fh=bs(),hh=(s,e,t,n)=>{s=new uh(s,n),e=new ah(e,n);let r,i,u,o,l;switch(t){case">":r=jo,i=ch,u=Lo,o=">",l=">=";break;case"<":r=Lo,i=fh,u=jo,o="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lh(s,e,n))return!1;for(let c=0;c<e.set.length;++c){let D=e.set[c],f=null,m=null;if(D.forEach(p=>{p.semver===oh&&(p=new No(">=0.0.0")),f=f||p,m=m||p,r(p.semver,f.semver,n)?f=p:u(p.semver,m.semver,n)&&(m=p)}),f.operator===o||f.operator===l||(!m.operator||m.operator===o)&&i(s,m.semver))return!1;if(m.operator===l&&u(s,m.semver))return!1}return!0};To.exports=hh});var qo=N((qm,Mo)=>{"use strict";var Dh=ys(),ph=(s,e,t)=>Dh(s,e,">",t);Mo.exports=ph});var Uo=N((Wm,Wo)=>{"use strict";var dh=ys(),mh=(s,e,t)=>dh(s,e,"<",t);Wo.exports=mh});var Vo=N((Um,Ho)=>{"use strict";var Go=Pe(),gh=(s,e,t)=>(s=new Go(s,t),e=new Go(e,t),s.intersects(e,t));Ho.exports=gh});var Yo=N((Gm,zo)=>{"use strict";var Fh=Wt(),Eh=Re();zo.exports=(s,e,t)=>{let n=[],r=null,i=null,u=s.sort((D,f)=>Eh(D,f,t));for(let D of u)Fh(D,e,t)?(i=D,r||(r=D)):(i&&n.push([r,i]),i=null,r=null);r&&n.push([r,null]);let o=[];for(let[D,f]of n)D===f?o.push(D):!f&&D===u[0]?o.push("*"):f?D===u[0]?o.push(`<=${f}`):o.push(`${D} - ${f}`):o.push(`>=${D}`);let l=o.join(" || "),c=typeof e.raw=="string"?e.raw:String(e);return l.length<c.length?l:e}});var Qo=N((Hm,Jo)=>{"use strict";var Xo=Pe(),Yn=Mt(),{ANY:Vn}=Yn,zn=Wt(),Xn=Re(),Ch=(s,e,t={})=>{if(s===e)return!0;s=new Xo(s,t),e=new Xo(e,t);let n=!1;e:for(let r of s.set){for(let i of e.set){let u=Ah(r,i,t);if(n=n||u!==null,u)continue e}if(n)return!1}return!0},bh=[new Yn(">=0.0.0-0")],ko=[new Yn(">=0.0.0")],Ah=(s,e,t)=>{if(s===e)return!0;if(s.length===1&&s[0].semver===Vn){if(e.length===1&&e[0].semver===Vn)return!0;t.includePrerelease?s=bh:s=ko}if(e.length===1&&e[0].semver===Vn){if(t.includePrerelease)return!0;e=ko}let n=new Set,r,i;for(let p of s)p.operator===">"||p.operator===">="?r=Ko(r,p,t):p.operator==="<"||p.operator==="<="?i=Zo(i,p,t):n.add(p.semver);if(n.size>1)return null;let u;if(r&&i){if(u=Xn(r.semver,i.semver,t),u>0)return null;if(u===0&&(r.operator!==">="||i.operator!=="<="))return null}for(let p of n){if(r&&!zn(p,String(r),t)||i&&!zn(p,String(i),t))return null;for(let C of e)if(!zn(p,String(C),t))return!1;return!0}let o,l,c,D,f=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,m=r&&!t.includePrerelease&&r.semver.prerelease.length?r.semver:!1;f&&f.prerelease.length===1&&i.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let p of e){if(D=D||p.operator===">"||p.operator===">=",c=c||p.operator==="<"||p.operator==="<=",r){if(m&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===m.major&&p.semver.minor===m.minor&&p.semver.patch===m.patch&&(m=!1),p.operator===">"||p.operator===">="){if(o=Ko(r,p,t),o===p&&o!==r)return!1}else if(r.operator===">="&&!p.test(r.semver))return!1}if(i){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator==="<"||p.operator==="<="){if(l=Zo(i,p,t),l===p&&l!==i)return!1}else if(i.operator==="<="&&!p.test(i.semver))return!1}if(!p.operator&&(i||r)&&u!==0)return!1}return!(r&&c&&!i&&u!==0||i&&D&&!r&&u!==0||m||f)},Ko=(s,e,t)=>{if(!s)return e;let n=Xn(s.semver,e.semver,t);return n>0?s:n<0||e.operator===">"&&s.operator===">="?e:s},Zo=(s,e,t)=>{if(!s)return e;let n=Xn(s.semver,e.semver,t);return n<0?s:n>0||e.operator==="<"&&s.operator==="<="?e:s};Jo.exports=Ch});var na=N((Vm,sa)=>{"use strict";var kn=St(),ea=Ct(),wh=ge(),ta=_n(),xh=tt(),yh=hu(),Oh=pu(),_h=gu(),Sh=Cu(),$h=Au(),Bh=xu(),Ih=Ou(),Rh=Su(),Ph=Re(),vh=Ru(),jh=vu(),Lh=Es(),Nh=Tu(),Th=qu(),Mh=Nt(),qh=Cs(),Wh=Bn(),Uh=In(),Gh=bs(),Hh=As(),Vh=Rn(),zh=ku(),Yh=Zu(),Xh=Mt(),kh=Pe(),Kh=Wt(),Zh=yo(),Jh=_o(),Qh=$o(),eD=Ro(),tD=vo(),sD=ys(),nD=qo(),rD=Uo(),iD=Vo(),uD=Yo(),oD=Qo();sa.exports={parse:xh,valid:yh,clean:Oh,inc:_h,diff:Sh,major:$h,minor:Bh,patch:Ih,prerelease:Rh,compare:Ph,rcompare:vh,compareLoose:jh,compareBuild:Lh,sort:Nh,rsort:Th,gt:Mh,lt:qh,eq:Wh,neq:Uh,gte:Gh,lte:Hh,cmp:Vh,coerce:zh,truncate:Yh,Comparator:Xh,Range:kh,satisfies:Kh,toComparators:Zh,maxSatisfying:Jh,minSatisfying:Qh,minVersion:eD,validRange:tD,outside:sD,gtr:nD,ltr:rD,intersects:iD,simplifyRange:uD,subset:oD,SemVer:wh,re:kn.re,src:kn.src,tokens:kn.t,SEMVER_SPEC_VERSION:ea.SEMVER_SPEC_VERSION,RELEASE_TYPES:ea.RELEASE_TYPES,compareIdentifiers:ta.compareIdentifiers,rcompareIdentifiers:ta.rcompareIdentifiers}});var ha=Object.defineProperty,j=(s,e)=>ha(s,"name",{value:e,configurable:!0}),wt=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(s,e,t,n,r,i){this.type=s,this.name=e,this.prefix=t,this.value=n,this.suffix=r,this.modifier=i}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};j(wt,"Part");var Da=/[$_\p{ID_Start}]/u,pa=/[$_\u200C\u200D\p{ID_Continue}]/u,Ss=".*";function tr(s,e){return(e?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(s)}j(tr,"isASCII");function Is(s,e=!1){let t=[],n=0;for(;n<s.length;){let r=s[n],i=j(function(u){if(!e)throw new TypeError(u);t.push({type:"INVALID_CHAR",index:n,value:s[n++]})},"ErrorOrInvalid");if(r==="*"){t.push({type:"ASTERISK",index:n,value:s[n++]});continue}if(r==="+"||r==="?"){t.push({type:"OTHER_MODIFIER",index:n,value:s[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:s[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:s[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:s[n++]});continue}if(r===":"){let u="",o=n+1;for(;o<s.length;){let l=s.substr(o,1);if(o===n+1&&Da.test(l)||o!==n+1&&pa.test(l)){u+=s[o++];continue}break}if(!u){i(`Missing parameter name at ${n}`);continue}t.push({type:"NAME",index:n,value:u}),n=o;continue}if(r==="("){let u=1,o="",l=n+1,c=!1;if(s[l]==="?"){i(`Pattern cannot start with "?" at ${l}`);continue}for(;l<s.length;){if(!tr(s[l],!1)){i(`Invalid character '${s[l]}' at ${l}.`),c=!0;break}if(s[l]==="\\"){o+=s[l++]+s[l++];continue}if(s[l]===")"){if(u--,u===0){l++;break}}else if(s[l]==="("&&(u++,s[l+1]!=="?")){i(`Capturing groups are not allowed at ${l}`),c=!0;break}o+=s[l++]}if(c)continue;if(u){i(`Unbalanced pattern at ${n}`);continue}if(!o){i(`Missing pattern at ${n}`);continue}t.push({type:"REGEX",index:n,value:o}),n=l;continue}t.push({type:"CHAR",index:n,value:s[n++]})}return t.push({type:"END",index:n,value:""}),t}j(Is,"lexer");function Rs(s,e={}){let t=Is(s);e.delimiter??="/#?",e.prefixes??="./";let n=`[^${we(e.delimiter)}]+?`,r=[],i=0,u=0,o="",l=new Set,c=j(v=>{if(u<t.length&&t[u].type===v)return t[u++].value},"tryConsume"),D=j(()=>c("OTHER_MODIFIER")??c("ASTERISK"),"tryConsumeModifier"),f=j(v=>{let U=c(v);if(U!==void 0)return U;let{type:V,index:Y}=t[u];throw new TypeError(`Unexpected ${V} at ${Y}, expected ${v}`)},"mustConsume"),m=j(()=>{let v="",U;for(;U=c("CHAR")??c("ESCAPED_CHAR");)v+=U;return v},"consumeText"),p=j(v=>v,"DefaultEncodePart"),C=e.encodePart||p,b="",F=j(v=>{b+=v},"appendToPendingFixedValue"),q=j(()=>{b.length&&(r.push(new wt(3,"","",C(b),"",3)),b="")},"maybeAddPartFromPendingFixedValue"),J=j((v,U,V,Y,Z)=>{let Q=3;switch(Z){case"?":Q=1;break;case"*":Q=0;break;case"+":Q=2;break}if(!U&&!V&&Q===3){F(v);return}if(q(),!U&&!V){if(!v)return;r.push(new wt(3,"","",C(v),"",Q));return}let se;V?V==="*"?se=Ss:se=V:se=n;let X=2;se===n?(X=1,se=""):se===Ss&&(X=0,se="");let y;if(U?y=U:V&&(y=i++),l.has(y))throw new TypeError(`Duplicate name '${y}'.`);l.add(y),r.push(new wt(X,y,C(v),se,C(Y),Q))},"addPart");for(;u<t.length;){let v=c("CHAR"),U=c("NAME"),V=c("REGEX");if(!U&&!V&&(V=c("ASTERISK")),U||V){let Z=v??"";e.prefixes.indexOf(Z)===-1&&(F(Z),Z=""),q();let Q=D();J(Z,U,V,"",Q);continue}let Y=v??c("ESCAPED_CHAR");if(Y){F(Y);continue}if(c("OPEN")){let Z=m(),Q=c("NAME"),se=c("REGEX");!Q&&!se&&(se=c("ASTERISK"));let X=m();f("CLOSE");let y=D();J(Z,Q,se,X,y);continue}q(),f("END")}return r}j(Rs,"parse");function we(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}j(we,"escapeString");function $s(s){return s&&s.ignoreCase?"ui":"u"}j($s,"flags");function sr(s,e,t){return Ps(Rs(s,t),e,t)}j(sr,"stringToRegexp");function rt(s){switch(s){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}j(rt,"modifierToString");function Ps(s,e,t={}){t.delimiter??="/#?",t.prefixes??="./",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith="";let n=t.start?"^":"";for(let o of s){if(o.type===3){o.modifier===3?n+=we(o.value):n+=`(?:${we(o.value)})${rt(o.modifier)}`;continue}e&&e.push(o.name);let l=`[^${we(t.delimiter)}]+?`,c=o.value;if(o.type===1?c=l:o.type===0&&(c=Ss),!o.prefix.length&&!o.suffix.length){o.modifier===3||o.modifier===1?n+=`(${c})${rt(o.modifier)}`:n+=`((?:${c})${rt(o.modifier)})`;continue}if(o.modifier===3||o.modifier===1){n+=`(?:${we(o.prefix)}(${c})${we(o.suffix)})`,n+=rt(o.modifier);continue}n+=`(?:${we(o.prefix)}`,n+=`((?:${c})(?:`,n+=we(o.suffix),n+=we(o.prefix),n+=`(?:${c}))*)${we(o.suffix)})`,o.modifier===0&&(n+="?")}let r=`[${we(t.endsWith)}]|$`,i=`[${we(t.delimiter)}]`;if(t.end)return t.strict||(n+=`${i}?`),t.endsWith.length?n+=`(?=${r})`:n+="$",new RegExp(n,$s(t));t.strict||(n+=`(?:${i}(?=${r}))?`);let u=!1;if(s.length){let o=s[s.length-1];o.type===3&&o.modifier===3&&(u=t.delimiter.indexOf(o)>-1)}return u||(n+=`(?=${i}|${r})`),new RegExp(n,$s(t))}j(Ps,"partsToRegexp");var Xe={delimiter:"",prefixes:"",sensitive:!0,strict:!0},da={delimiter:".",prefixes:"",sensitive:!0,strict:!0},ma={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function nr(s,e){return s.length?s[0]==="/"?!0:!e||s.length<2?!1:(s[0]=="\\"||s[0]=="{")&&s[1]=="/":!1}j(nr,"isAbsolutePathname");function vs(s,e){return s.startsWith(e)?s.substring(e.length,s.length):s}j(vs,"maybeStripPrefix");function rr(s,e){return s.endsWith(e)?s.substr(0,s.length-e.length):s}j(rr,"maybeStripSuffix");function js(s){return!s||s.length<2?!1:s[0]==="["||(s[0]==="\\"||s[0]==="{")&&s[1]==="["}j(js,"treatAsIPv6Hostname");var ir=["ftp","file","http","https","ws","wss"];function Ls(s){if(!s)return!0;for(let e of ir)if(s.test(e))return!0;return!1}j(Ls,"isSpecialScheme");function ur(s,e){if(s=vs(s,"#"),e||s==="")return s;let t=new URL("https://example.com");return t.hash=s,t.hash?t.hash.substring(1,t.hash.length):""}j(ur,"canonicalizeHash");function or(s,e){if(s=vs(s,"?"),e||s==="")return s;let t=new URL("https://example.com");return t.search=s,t.search?t.search.substring(1,t.search.length):""}j(or,"canonicalizeSearch");function ar(s,e){return e||s===""?s:js(s)?Ms(s):Ts(s)}j(ar,"canonicalizeHostname");function lr(s,e){if(e||s==="")return s;let t=new URL("https://example.com");return t.password=s,t.password}j(lr,"canonicalizePassword");function cr(s,e){if(e||s==="")return s;let t=new URL("https://example.com");return t.username=s,t.username}j(cr,"canonicalizeUsername");function fr(s,e,t){if(t||s==="")return s;if(e&&!ir.includes(e))return new URL(`${e}:${s}`).pathname;let n=s[0]=="/";return s=new URL(n?s:"/-"+s,"https://example.com").pathname,n||(s=s.substring(2,s.length)),s}j(fr,"canonicalizePathname");function hr(s,e,t){return Ns(e)===s&&(s=""),t||s===""?s:qs(s)}j(hr,"canonicalizePort");function Dr(s,e){return s=rr(s,":"),e||s===""?s:Yt(s)}j(Dr,"canonicalizeProtocol");function Ns(s){switch(s){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}j(Ns,"defaultPortForProtocol");function Yt(s){if(s==="")return s;if(/^[-+.A-Za-z0-9]*$/.test(s))return s.toLowerCase();throw new TypeError(`Invalid protocol '${s}'.`)}j(Yt,"protocolEncodeCallback");function pr(s){if(s==="")return s;let e=new URL("https://example.com");return e.username=s,e.username}j(pr,"usernameEncodeCallback");function dr(s){if(s==="")return s;let e=new URL("https://example.com");return e.password=s,e.password}j(dr,"passwordEncodeCallback");function Ts(s){if(s==="")return s;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(s))throw new TypeError(`Invalid hostname '${s}'`);let e=new URL("https://example.com");return e.hostname=s,e.hostname}j(Ts,"hostnameEncodeCallback");function Ms(s){if(s==="")return s;if(/[^0-9a-fA-F[\]:]/g.test(s))throw new TypeError(`Invalid IPv6 hostname '${s}'`);return s.toLowerCase()}j(Ms,"ipv6HostnameEncodeCallback");function qs(s){if(s===""||/^[0-9]*$/.test(s)&&parseInt(s)<=65535)return s;throw new TypeError(`Invalid port '${s}'.`)}j(qs,"portEncodeCallback");function mr(s){if(s==="")return s;let e=new URL("https://example.com");return e.pathname=s[0]!=="/"?"/-"+s:s,s[0]!=="/"?e.pathname.substring(2,e.pathname.length):e.pathname}j(mr,"standardURLPathnameEncodeCallback");function gr(s){return s===""?s:new URL(`data:${s}`).pathname}j(gr,"pathURLPathnameEncodeCallback");function Fr(s){if(s==="")return s;let e=new URL("https://example.com");return e.search=s,e.search.substring(1,e.search.length)}j(Fr,"searchEncodeCallback");function Er(s){if(s==="")return s;let e=new URL("https://example.com");return e.hash=s,e.hash.substring(1,e.hash.length)}j(Er,"hashEncodeCallback");var Cr=class{#s;#e=[];#n={};#t=0;#r=1;#a=0;#o=0;#D=0;#p=0;#d=!1;constructor(s){this.#s=s}get result(){return this.#n}parse(){for(this.#e=Is(this.#s,!0);this.#t<this.#e.length;this.#t+=this.#r){if(this.#r=1,this.#e[this.#t].type==="END"){if(this.#o===0){this.#E(),this.#c()?this.#i(9,1):this.#f()?this.#i(8,1):this.#i(7,0);continue}else if(this.#o===2){this.#h(5);continue}this.#i(10,0);break}if(this.#D>0)if(this.#O())this.#D-=1;else continue;if(this.#y()){this.#D+=1;continue}switch(this.#o){case 0:this.#C()&&this.#h(1);break;case 1:if(this.#C()){this.#$();let s=7,e=1;this.#A()?(s=2,e=3):this.#d&&(s=2),this.#i(s,e)}break;case 2:this.#g()?this.#h(3):(this.#F()||this.#f()||this.#c())&&this.#h(5);break;case 3:this.#w()?this.#i(4,1):this.#g()&&this.#i(5,1);break;case 4:this.#g()&&this.#i(5,1);break;case 5:this.#_()?this.#p+=1:this.#S()&&(this.#p-=1),this.#x()&&!this.#p?this.#i(6,1):this.#F()?this.#i(7,0):this.#f()?this.#i(8,1):this.#c()&&this.#i(9,1);break;case 6:this.#F()?this.#i(7,0):this.#f()?this.#i(8,1):this.#c()&&this.#i(9,1);break;case 7:this.#f()?this.#i(8,1):this.#c()&&this.#i(9,1);break;case 8:this.#c()&&this.#i(9,1);break;case 9:break;case 10:break}}this.#n.hostname!==void 0&&this.#n.port===void 0&&(this.#n.port="")}#i(s,e){switch(this.#o){case 0:break;case 1:this.#n.protocol=this.#l();break;case 2:break;case 3:this.#n.username=this.#l();break;case 4:this.#n.password=this.#l();break;case 5:this.#n.hostname=this.#l();break;case 6:this.#n.port=this.#l();break;case 7:this.#n.pathname=this.#l();break;case 8:this.#n.search=this.#l();break;case 9:this.#n.hash=this.#l();break;case 10:break}this.#o!==0&&s!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(s)&&(this.#n.hostname??=""),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(s)&&(this.#n.pathname??=this.#d?"/":""),[1,2,3,4,5,6,7].includes(this.#o)&&s===9&&(this.#n.search??="")),this.#b(s,e)}#b(s,e){this.#o=s,this.#a=this.#t+e,this.#t+=e,this.#r=0}#E(){this.#t=this.#a,this.#r=0}#h(s){this.#E(),this.#o=s}#m(s){return s<0&&(s=this.#e.length-s),s<this.#e.length?this.#e[s]:this.#e[this.#e.length-1]}#u(s,e){let t=this.#m(s);return t.value===e&&(t.type==="CHAR"||t.type==="ESCAPED_CHAR"||t.type==="INVALID_CHAR")}#C(){return this.#u(this.#t,":")}#A(){return this.#u(this.#t+1,"/")&&this.#u(this.#t+2,"/")}#g(){return this.#u(this.#t,"@")}#w(){return this.#u(this.#t,":")}#x(){return this.#u(this.#t,":")}#F(){return this.#u(this.#t,"/")}#f(){if(this.#u(this.#t,"?"))return!0;if(this.#e[this.#t].value!=="?")return!1;let s=this.#m(this.#t-1);return s.type!=="NAME"&&s.type!=="REGEX"&&s.type!=="CLOSE"&&s.type!=="ASTERISK"}#c(){return this.#u(this.#t,"#")}#y(){return this.#e[this.#t].type=="OPEN"}#O(){return this.#e[this.#t].type=="CLOSE"}#_(){return this.#u(this.#t,"[")}#S(){return this.#u(this.#t,"]")}#l(){let s=this.#e[this.#t],e=this.#m(this.#a).index;return this.#s.substring(e,s.index)}#$(){let s={};Object.assign(s,Xe),s.encodePart=Yt;let e=sr(this.#l(),void 0,s);this.#d=Ls(e)}};j(Cr,"Parser");var _s=["protocol","username","password","hostname","port","pathname","search","hash"],Ye="*";function Bs(s,e){if(typeof s!="string")throw new TypeError("parameter 1 is not of type 'string'.");let t=new URL(s,e);return{protocol:t.protocol.substring(0,t.protocol.length-1),username:t.username,password:t.password,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search!==""?t.search.substring(1,t.search.length):void 0,hash:t.hash!==""?t.hash.substring(1,t.hash.length):void 0}}j(Bs,"extractValues");function Te(s,e){return e?At(s):s}j(Te,"processBaseURLString");function bt(s,e,t){let n;if(typeof e.baseURL=="string")try{n=new URL(e.baseURL),e.protocol===void 0&&(s.protocol=Te(n.protocol.substring(0,n.protocol.length-1),t)),!t&&e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.username===void 0&&(s.username=Te(n.username,t)),!t&&e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.username===void 0&&e.password===void 0&&(s.password=Te(n.password,t)),e.protocol===void 0&&e.hostname===void 0&&(s.hostname=Te(n.hostname,t)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&(s.port=Te(n.port,t)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.pathname===void 0&&(s.pathname=Te(n.pathname,t)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.pathname===void 0&&e.search===void 0&&(s.search=Te(n.search.substring(1,n.search.length),t)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.pathname===void 0&&e.search===void 0&&e.hash===void 0&&(s.hash=Te(n.hash.substring(1,n.hash.length),t))}catch{throw new TypeError(`invalid baseURL '${e.baseURL}'.`)}if(typeof e.protocol=="string"&&(s.protocol=Dr(e.protocol,t)),typeof e.username=="string"&&(s.username=cr(e.username,t)),typeof e.password=="string"&&(s.password=lr(e.password,t)),typeof e.hostname=="string"&&(s.hostname=ar(e.hostname,t)),typeof e.port=="string"&&(s.port=hr(e.port,s.protocol,t)),typeof e.pathname=="string"){if(s.pathname=e.pathname,n&&!nr(s.pathname,t)){let r=n.pathname.lastIndexOf("/");r>=0&&(s.pathname=Te(n.pathname.substring(0,r+1),t)+s.pathname)}s.pathname=fr(s.pathname,s.protocol,t)}return typeof e.search=="string"&&(s.search=or(e.search,t)),typeof e.hash=="string"&&(s.hash=ur(e.hash,t)),s}j(bt,"applyInit");function At(s){return s.replace(/([+*?:{}()\\])/g,"\\$1")}j(At,"escapePatternString");function br(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}j(br,"escapeRegexpString");function Ar(s,e){e.delimiter??="/#?",e.prefixes??="./",e.sensitive??=!1,e.strict??=!1,e.end??=!0,e.start??=!0,e.endsWith="";let t=".*",n=`[^${br(e.delimiter)}]+?`,r=/[$_\u200C\u200D\p{ID_Continue}]/u,i="";for(let u=0;u<s.length;++u){let o=s[u];if(o.type===3){if(o.modifier===3){i+=At(o.value);continue}i+=`{${At(o.value)}}${rt(o.modifier)}`;continue}let l=o.hasCustomName(),c=!!o.suffix.length||!!o.prefix.length&&(o.prefix.length!==1||!e.prefixes.includes(o.prefix)),D=u>0?s[u-1]:null,f=u<s.length-1?s[u+1]:null;if(!c&&l&&o.type===1&&o.modifier===3&&f&&!f.prefix.length&&!f.suffix.length)if(f.type===3){let m=f.value.length>0?f.value[0]:"";c=r.test(m)}else c=!f.hasCustomName();if(!c&&!o.prefix.length&&D&&D.type===3){let m=D.value[D.value.length-1];c=e.prefixes.includes(m)}c&&(i+="{"),i+=At(o.prefix),l&&(i+=`:${o.name}`),o.type===2?i+=`(${o.value})`:o.type===1?l||(i+=`(${n})`):o.type===0&&(!l&&(!D||D.type===3||D.modifier!==3||c||o.prefix!=="")?i+="*":i+=`(${t})`),o.type===1&&l&&o.suffix.length&&r.test(o.suffix[0])&&(i+="\\"),i+=At(o.suffix),c&&(i+="}"),o.modifier!==3&&(i+=rt(o.modifier))}return i}j(Ar,"partsToPattern");var wr=class{#s;#e={};#n={};#t={};#r={};#a=!1;constructor(s={},e,t){try{let n;if(typeof e=="string"?n=e:t=e,typeof s=="string"){let o=new Cr(s);if(o.parse(),s=o.result,n===void 0&&typeof s.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");s.baseURL=n}else{if(!s||typeof s!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(n)throw new TypeError("parameter 1 is not of type 'string'.")}typeof t>"u"&&(t={ignoreCase:!1});let r={ignoreCase:t.ignoreCase===!0},i={pathname:Ye,protocol:Ye,username:Ye,password:Ye,hostname:Ye,port:Ye,search:Ye,hash:Ye};this.#s=bt(i,s,!0),Ns(this.#s.protocol)===this.#s.port&&(this.#s.port="");let u;for(u of _s){if(!(u in this.#s))continue;let o={},l=this.#s[u];switch(this.#n[u]=[],u){case"protocol":Object.assign(o,Xe),o.encodePart=Yt;break;case"username":Object.assign(o,Xe),o.encodePart=pr;break;case"password":Object.assign(o,Xe),o.encodePart=dr;break;case"hostname":Object.assign(o,da),js(l)?o.encodePart=Ms:o.encodePart=Ts;break;case"port":Object.assign(o,Xe),o.encodePart=qs;break;case"pathname":Ls(this.#e.protocol)?(Object.assign(o,ma,r),o.encodePart=mr):(Object.assign(o,Xe,r),o.encodePart=gr);break;case"search":Object.assign(o,Xe,r),o.encodePart=Fr;break;case"hash":Object.assign(o,Xe,r),o.encodePart=Er;break}try{this.#r[u]=Rs(l,o),this.#e[u]=Ps(this.#r[u],this.#n[u],o),this.#t[u]=Ar(this.#r[u],o),this.#a=this.#a||this.#r[u].some(c=>c.type===2)}catch{throw new TypeError(`invalid ${u} pattern '${this.#s[u]}'.`)}}}catch(n){throw new TypeError(`Failed to construct 'URLPattern': ${n.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(s={},e){let t={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&e)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return!1;try{typeof s=="object"?t=bt(t,s,!1):t=bt(t,Bs(s,e),!1)}catch{return!1}let n;for(n of _s)if(!this.#e[n].exec(t[n]))return!1;return!0}exec(s={},e){let t={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&e)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return;try{typeof s=="object"?t=bt(t,s,!1):t=bt(t,Bs(s,e),!1)}catch{return null}let n={};e?n.inputs=[s,e]:n.inputs=[s];let r;for(r of _s){let i=this.#e[r].exec(t[r]);if(!i)return null;let u={};for(let[o,l]of this.#n[r].entries())if(typeof l=="string"||typeof l=="number"){let c=i[o+1];u[l]=c}n[r]={input:t[r]??"",groups:u}}return n}static compareComponent(s,e,t){let n=j((o,l)=>{for(let c of["type","modifier","prefix","value","suffix"]){if(o[c]<l[c])return-1;if(o[c]!==l[c])return 1}return 0},"comparePart"),r=new wt(3,"","","","",3),i=new wt(0,"","","","",3),u=j((o,l)=>{let c=0;for(;c<Math.min(o.length,l.length);++c){let D=n(o[c],l[c]);if(D)return D}return o.length===l.length?0:n(o[c]??r,l[c]??r)},"comparePartList");return!e.#t[s]&&!t.#t[s]?0:e.#t[s]&&!t.#t[s]?u(e.#r[s],[i]):!e.#t[s]&&t.#t[s]?u([i],t.#r[s]):u(e.#r[s],t.#r[s])}get protocol(){return this.#t.protocol}get username(){return this.#t.username}get password(){return this.#t.password}get hostname(){return this.#t.hostname}get port(){return this.#t.port}get pathname(){return this.#t.pathname}get search(){return this.#t.search}get hash(){return this.#t.hash}get hasRegExpGroups(){return this.#a}};j(wr,"URLPattern");globalThis.URLPattern||(globalThis.URLPattern=wr);import{notStrictEqual as El,strictEqual as Cl}from"assert";var ga={right:Aa,center:wa},Fa=0,Xt=1,Ea=2,kt=3,Ws=class{constructor(e){var t;this.width=e.width,this.wrap=(t=e.wrap)!==null&&t!==void 0?t:!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]=="string")return this.applyLayoutDSL(e[0]);let t=e.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]=="string"&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
|
|
5
|
+
`).map(r=>r.split(" ")),n=0;return t.forEach(r=>{r.length>1&&xe.stringWidth(r[0])>n&&(n=Math.min(Math.floor(this.width*.5),xe.stringWidth(r[0])))}),t.forEach(r=>{this.div(...r.map((i,u)=>({text:i.trim(),padding:this.measurePadding(i),width:u===0&&r.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let t=xe.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(t=>{this.rowToString(t,e)}),e.filter(t=>!t.hidden).map(t=>t.text).join(`
|
|
6
|
+
`)}rowToString(e,t){return this.rasterize(e).forEach((n,r)=>{let i="";n.forEach((u,o)=>{let{width:l}=e[o],c=this.negatePadding(e[o]),D=u;if(c>xe.stringWidth(u)&&(D+=" ".repeat(c-xe.stringWidth(u))),e[o].align&&e[o].align!=="left"&&this.wrap){let m=ga[e[o].align];D=m(D,c),xe.stringWidth(D)<c&&(D+=" ".repeat((l||0)-xe.stringWidth(D)-1))}let f=e[o].padding||[0,0,0,0];f[kt]&&(i+=" ".repeat(f[kt])),i+=xr(e[o],D,"| "),i+=D,i+=xr(e[o],D," |"),f[Xt]&&(i+=" ".repeat(f[Xt])),r===0&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))}),t.push({text:i.replace(/ +$/,""),span:e.span})}),t}renderInline(e,t){let n=e.match(/^ */),r=n?n[0].length:0,i=t.text,u=xe.stringWidth(i.trimRight());return t.span?this.wrap?r<u?e:(t.hidden=!0,i.trimRight()+" ".repeat(r-u)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){let t=[],n=this.columnWidths(e),r;return e.forEach((i,u)=>{i.width=n[u],this.wrap?r=xe.wrap(i.text,this.negatePadding(i),{hard:!0}).split(`
|
|
7
|
+
`):r=i.text.split(`
|
|
8
|
+
`),i.border&&(r.unshift("."+"-".repeat(this.negatePadding(i)+2)+"."),r.push("'"+"-".repeat(this.negatePadding(i)+2)+"'")),i.padding&&(r.unshift(...new Array(i.padding[Fa]||0).fill("")),r.push(...new Array(i.padding[Ea]||0).fill(""))),r.forEach((o,l)=>{t[l]||t.push([]);let c=t[l];for(let D=0;D<u;D++)c[D]===void 0&&c.push("");c.push(o)})}),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[kt]||0)+(e.padding[Xt]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map(u=>u.width||xe.stringWidth(u.text));let t=e.length,n=this.width,r=e.map(u=>{if(u.width)return t--,n-=u.width,u.width}),i=t?Math.floor(n/t):0;return r.map((u,o)=>u===void 0?Math.max(i,Ca(e[o])):u)}};function xr(s,e,t){return s.border?/[.']-+[.']/.test(e)?"":e.trim().length!==0?t:" ":""}function Ca(s){let e=s.padding||[],t=1+(e[kt]||0)+(e[Xt]||0);return s.border?t+4:t}function ba(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function Aa(s,e){s=s.trim();let t=xe.stringWidth(s);return t<e?" ".repeat(e-t)+s:s}function wa(s,e){s=s.trim();let t=xe.stringWidth(s);return t>=e?s:" ".repeat(e-t>>1)+s}var xe;function yr(s,e){return xe=e,new Ws({width:s?.width||ba(),wrap:s?.wrap})}function Us({onlyFirst:s=!1}={}){let r="(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,s?void 0:"g")}var xa=Us();function $t(s){if(typeof s!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof s}\``);return!s.includes("\x1B")&&!s.includes("\x9B")?s:s.replace(xa,"")}var Or=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],_r=12288,Sr=65510,$r=[12288,12288,65281,65376,65504,65510];var Br=4352,Ir=262141,Gs=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101594,101631,101664,101760,101874,101888,102801,102816,102866,110576,110579,110581,110587,110589,110590,110592,110888,110898,110898,110928,110930,110933,110933,110948,110952,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127406,127406,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128729,128732,128735,128747,128748,128756,128764,128986,128986,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129734,129736,129736,129740,129757,129759,129771,129775,129786,131072,196605,196608,262141];var Kt=(s,e)=>{let t=0,n=Math.floor(s.length/2)-1;for(;t<=n;){let r=Math.floor((t+n)/2),i=r*2;if(e<s[i])n=r-1;else if(e>s[i+1])t=r+1;else return!0}return!1};var Rr=19968,[_a,Sa]=$a(Gs);function $a(s){let e=s[0],t=s[1];for(let n=0;n<s.length;n+=2){let r=s[n],i=s[n+1];if(Rr>=r&&Rr<=i)return[r,i];i-r>t-e&&(e=r,t=i)}return[e,t]}var Pr=s=>s<161||s>1114109?!1:Kt(Or,s),vr=s=>s<_r||s>Sr?!1:Kt($r,s);var jr=s=>s>=_a&&s<=Sa?!0:s<Br||s>Ir?!1:Kt(Gs,s);function Ba(s){if(!Number.isSafeInteger(s))throw new TypeError(`Expected a code point, got \`${typeof s}\`.`)}function Ve(s,{ambiguousAsWide:e=!1}={}){return Ba(s),vr(s)||jr(s)||e&&Pr(s)?2:1}var Nr=zt(Hs(),1),Ia=new Intl.Segmenter,Ra=/^\p{Default_Ignorable_Code_Point}$/u;function Vs(s,e={}){if(typeof s!="string"||s.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:n=!1}=e;if(n||(s=$t(s)),s.length===0)return 0;let r=0,i={ambiguousAsWide:!t};for(let{segment:u}of Ia.segment(s)){let o=u.codePointAt(0);if(!(o<=31||o>=127&&o<=159)&&!(o>=8203&&o<=8207||o===65279)&&!(o>=768&&o<=879||o>=6832&&o<=6911||o>=7616&&o<=7679||o>=8400&&o<=8447||o>=65056&&o<=65071)&&!(o>=55296&&o<=57343)&&!(o>=65024&&o<=65039)&&!Ra.test(u)){if((0,Nr.default)().test(u)){r+=2;continue}r+=Ve(o,i)}}return r}function zs({onlyFirst:s=!1}={}){let r="(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,s?void 0:"g")}var Pa=zs();function Bt(s){if(typeof s!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof s}\``);return!s.includes("\x1B")&&!s.includes("\x9B")?s:s.replace(Pa,"")}var Tr=zt(Hs(),1),va=new Intl.Segmenter,ja=/^\p{Default_Ignorable_Code_Point}$/u;function it(s,e={}){if(typeof s!="string"||s.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:n=!1}=e;if(n||(s=Bt(s)),s.length===0)return 0;let r=0,i={ambiguousAsWide:!t};for(let{segment:u}of va.segment(s)){let o=u.codePointAt(0);if(!(o<=31||o>=127&&o<=159)&&!(o>=8203&&o<=8207||o===65279)&&!(o>=768&&o<=879||o>=6832&&o<=6911||o>=7616&&o<=7679||o>=8400&&o<=8447||o>=65056&&o<=65071)&&!(o>=55296&&o<=57343)&&!(o>=65024&&o<=65039)&&!ja.test(u)){if((0,Tr.default)().test(u)){r+=2;continue}r+=Ve(o,i)}}return r}var Mr=(s=0)=>e=>`\x1B[${e+s}m`,qr=(s=0)=>e=>`\x1B[${38+s};5;${e}m`,Wr=(s=0)=>(e,t,n)=>`\x1B[${38+s};2;${e};${t};${n}m`,re={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},GD=Object.keys(re.modifier),La=Object.keys(re.color),Na=Object.keys(re.bgColor),HD=[...La,...Na];function Ta(){let s=new Map;for(let[e,t]of Object.entries(re)){for(let[n,r]of Object.entries(t))re[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},t[n]=re[n],s.set(r[0],r[1]);Object.defineProperty(re,e,{value:t,enumerable:!1})}return Object.defineProperty(re,"codes",{value:s,enumerable:!1}),re.color.close="\x1B[39m",re.bgColor.close="\x1B[49m",re.color.ansi=Mr(),re.color.ansi256=qr(),re.color.ansi16m=Wr(),re.bgColor.ansi=Mr(10),re.bgColor.ansi256=qr(10),re.bgColor.ansi16m=Wr(10),Object.defineProperties(re,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(i=>i+i).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>re.rgbToAnsi256(...re.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let o=e%36;t=Math.floor(e/36)/5,n=Math.floor(o/6)/5,r=o%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let u=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(u+=60),u},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>re.ansi256ToAnsi(re.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>re.ansi256ToAnsi(re.hexToAnsi256(e)),enumerable:!1}}),re}var Ma=Ta(),Ur=Ma;var Jt=new Set(["\x1B","\x9B"]),qa=39,Xs="\x07",Vr="[",Wa="]",zr="m",Zt=`${Wa}8;;`,Gr=s=>`${Jt.values().next().value}${Vr}${s}${zr}`,Hr=s=>`${Jt.values().next().value}${Zt}${s}${Xs}`,Ua=s=>s.split(" ").map(e=>it(e)),Ys=(s,e,t)=>{let n=[...e],r=!1,i=!1,u=it(Bt(s.at(-1)));for(let[o,l]of n.entries()){let c=it(l);if(u+c<=t?s[s.length-1]+=l:(s.push(l),u=0),Jt.has(l)&&(r=!0,i=n.slice(o+1,o+1+Zt.length).join("")===Zt),r){i?l===Xs&&(r=!1,i=!1):l===zr&&(r=!1);continue}u+=c,u===t&&o<n.length-1&&(s.push(""),u=0)}!u&&s.at(-1).length>0&&s.length>1&&(s[s.length-2]+=s.pop())},Ga=s=>{let e=s.split(" "),t=e.length;for(;t>0&&!(it(e[t-1])>0);)t--;return t===e.length?s:e.slice(0,t).join(" ")+e.slice(t).join("")},Ha=(s,e,t={})=>{if(t.trim!==!1&&s.trim()==="")return"";let n="",r,i,u=Ua(s),o=[""];for(let[f,m]of s.split(" ").entries()){t.trim!==!1&&(o[o.length-1]=o.at(-1).trimStart());let p=it(o.at(-1));if(f!==0&&(p>=e&&(t.wordWrap===!1||t.trim===!1)&&(o.push(""),p=0),(p>0||t.trim===!1)&&(o[o.length-1]+=" ",p++)),t.hard&&u[f]>e){let C=e-p,b=1+Math.floor((u[f]-C-1)/e);Math.floor((u[f]-1)/e)<b&&o.push(""),Ys(o,m,e);continue}if(p+u[f]>e&&p>0&&u[f]>0){if(t.wordWrap===!1&&p<e){Ys(o,m,e);continue}o.push("")}if(p+u[f]>e&&t.wordWrap===!1){Ys(o,m,e);continue}o[o.length-1]+=m}t.trim!==!1&&(o=o.map(f=>Ga(f)));let l=o.join(`
|
|
9
|
+
`),c=[...l],D=0;for(let[f,m]of c.entries()){if(n+=m,Jt.has(m)){let{groups:C}=new RegExp(`(?:\\${Vr}(?<code>\\d+)m|\\${Zt}(?<uri>.*)${Xs})`).exec(l.slice(D))||{groups:{}};if(C.code!==void 0){let b=Number.parseFloat(C.code);r=b===qa?void 0:b}else C.uri!==void 0&&(i=C.uri.length===0?void 0:C.uri)}let p=Ur.codes.get(Number(r));c[f+1]===`
|
|
10
|
+
`?(i&&(n+=Hr("")),r&&p&&(n+=Gr(p))):m===`
|
|
11
|
+
`&&(r&&p&&(n+=Gr(r)),i&&(n+=Hr(i))),D+=m.length}return n};function ks(s,e,t){return String(s).normalize().replaceAll(`\r
|
|
12
|
+
`,`
|
|
13
|
+
`).split(`
|
|
14
|
+
`).map(n=>Ha(n,e,t)).join(`
|
|
15
|
+
`)}function Ks(s){return yr(s,{stringWidth:Vs,stripAnsi:$t,wrap:ks})}import{dirname as Yr,resolve as Xr}from"path";import{readdirSync as Va,statSync as za}from"fs";function kr(s,e){let t=Xr(".",s),n;for(za(t).isDirectory()||(t=Yr(t));;){if(n=e(t,Va(t)),n)return Xr(t,n);if(t=Yr(n=t),n===t)break}}import{inspect as bl}from"util";import{fileURLToPath as mi}from"url";import{format as ka}from"util";import{normalize as Ka,resolve as Za}from"path";function ut(s){if(s!==s.toLowerCase()&&s!==s.toUpperCase()||(s=s.toLowerCase()),s.indexOf("-")===-1&&s.indexOf("_")===-1)return s;{let t="",n=!1,r=s.match(/^-+/);for(let i=r?r[0].length:0;i<s.length;i++){let u=s.charAt(i);n&&(n=!1,u=u.toUpperCase()),i!==0&&(u==="-"||u==="_")?n=!0:u!=="-"&&u!=="_"&&(t+=u)}return t}}function Qt(s,e){let t=s.toLowerCase();e=e||"-";let n="";for(let r=0;r<s.length;r++){let i=t.charAt(r),u=s.charAt(r);i!==u&&r>0?n+=`${e}${t.charAt(r)}`:n+=u}return n}function es(s){return s==null?!1:typeof s=="number"||/^0x[0-9a-f]+$/i.test(s)?!0:/^0[^.]/.test(s)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(s)}function Kr(s){if(Array.isArray(s))return s.map(u=>typeof u!="string"?u+"":u);s=s.trim();let e=0,t=null,n=null,r=null,i=[];for(let u=0;u<s.length;u++){if(t=n,n=s.charAt(u),n===" "&&!r){t!==" "&&e++;continue}n===r?r=null:(n==="'"||n==='"')&&!r&&(r=n),i[e]||(i[e]=""),i[e]+=n}return i}var Se;(function(s){s.BOOLEAN="boolean",s.STRING="string",s.NUMBER="number",s.ARRAY="array"})(Se||(Se={}));var ze,ts=class{constructor(e){ze=e}parse(e,t){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),r=Kr(e),i=typeof e=="string",u=Ya(Object.assign(Object.create(null),n.alias)),o=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),l=Object.assign(Object.create(null),n.default),c=n.configObjects||[],D=n.envPrefix,f=o["populate--"],m=f?"--":"_",p=Object.create(null),C=Object.create(null),b=n.__||ze.format,F={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},q=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,J=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(h){let g=typeof h=="object"?h.key:h,A=Object.keys(h).map(function(E){return{boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();A&&(F[A][g]=!0),F.arrays[g]=!0,F.keys.push(g)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(h){F.bools[h]=!0,F.keys.push(h)}),[].concat(n.string||[]).filter(Boolean).forEach(function(h){F.strings[h]=!0,F.keys.push(h)}),[].concat(n.number||[]).filter(Boolean).forEach(function(h){F.numbers[h]=!0,F.keys.push(h)}),[].concat(n.count||[]).filter(Boolean).forEach(function(h){F.counts[h]=!0,F.keys.push(h)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(h){F.normalize[h]=!0,F.keys.push(h)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([h,g])=>{typeof g=="number"&&(F.nargs[h]=g,F.keys.push(h))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([h,g])=>{typeof g=="function"&&(F.coercions[h]=g,F.keys.push(h))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(h){F.configs[h]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([h,g])=>{(typeof g=="boolean"||typeof g=="function")&&(F.configs[h]=g)})),nt(n.key,u,n.default,F.arrays),Object.keys(l).forEach(function(h){(F.aliases[h]||[]).forEach(function(g){l[g]=l[h]})});let v=null;Vt();let U=[],V=Object.assign(Object.create(null),{_:[]}),Y={};for(let h=0;h<r.length;h++){let g=r[h],A=g.replace(/^-{3,}/,"---"),E,d,I,x,P,de;if(g!=="--"&&/^-/.test(g)&&ue(g))Z(g);else if(A.match(/^---+(=|$)/)){Z(g);continue}else if(g.match(/^--.+=/)||!o["short-option-groups"]&&g.match(/^-.+=/))x=g.match(/^--?([^=]+)=([\s\S]*)$/),x!==null&&Array.isArray(x)&&x.length>=3&&(M(x[1],F.arrays)?h=se(h,x[1],r,x[2]):M(x[1],F.nargs)!==!1?h=Q(h,x[1],r,x[2]):X(x[1],x[2],!0));else if(g.match(J)&&o["boolean-negation"])x=g.match(J),x!==null&&Array.isArray(x)&&x.length>=2&&(d=x[1],X(d,M(d,F.arrays)?[!1]:!1));else if(g.match(/^--.+/)||!o["short-option-groups"]&&g.match(/^-[^-]+/))x=g.match(/^--?(.+)/),x!==null&&Array.isArray(x)&&x.length>=2&&(d=x[1],M(d,F.arrays)?h=se(h,d,r):M(d,F.nargs)!==!1?h=Q(h,d,r):(P=r[h+1],P!==void 0&&(!P.match(/^-/)||P.match(q))&&!M(d,F.bools)&&!M(d,F.counts)||/^(true|false)$/.test(P)?(X(d,P),h++):X(d,oe(d))));else if(g.match(/^-.\..+=/))x=g.match(/^-([^=]+)=([\s\S]*)$/),x!==null&&Array.isArray(x)&&x.length>=3&&X(x[1],x[2]);else if(g.match(/^-.\..+/)&&!g.match(q))P=r[h+1],x=g.match(/^-(.\..+)/),x!==null&&Array.isArray(x)&&x.length>=2&&(d=x[1],P!==void 0&&!P.match(/^-/)&&!M(d,F.bools)&&!M(d,F.counts)?(X(d,P),h++):X(d,oe(d)));else if(g.match(/^-[^-]+/)&&!g.match(q)){I=g.slice(1,-1).split(""),E=!1;for(let Ee=0;Ee<I.length;Ee++){if(P=g.slice(Ee+2),I[Ee+1]&&I[Ee+1]==="="){de=g.slice(Ee+3),d=I[Ee],M(d,F.arrays)?h=se(h,d,r,de):M(d,F.nargs)!==!1?h=Q(h,d,r,de):X(d,de),E=!0;break}if(P==="-"){X(I[Ee],P);continue}if(/[A-Za-z]/.test(I[Ee])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(P)&&M(P,F.bools)===!1){X(I[Ee],P),E=!0;break}if(I[Ee+1]&&I[Ee+1].match(/\W/)){X(I[Ee],P),E=!0;break}else X(I[Ee],oe(I[Ee]))}d=g.slice(-1)[0],!E&&d!=="-"&&(M(d,F.arrays)?h=se(h,d,r):M(d,F.nargs)!==!1?h=Q(h,d,r):(P=r[h+1],P!==void 0&&(!/^(-|--)[^-]/.test(P)||P.match(q))&&!M(d,F.bools)&&!M(d,F.counts)||/^(true|false)$/.test(P)?(X(d,P),h++):X(d,oe(d))))}else if(g.match(/^-[0-9]$/)&&g.match(q)&&M(g.slice(1),F.bools))d=g.slice(1),X(d,oe(d));else if(g==="--"){U=r.slice(h+1);break}else if(o["halt-at-non-option"]){U=r.slice(h);break}else Z(g)}k(V,!0),k(V,!1),G(V),he(),ie(V,F.aliases,l,!0),De(V),o["set-placeholder-key"]&&st(V),Object.keys(F.counts).forEach(function(h){Ge(V,h.split("."))||X(h,0)}),f&&U.length&&(V[m]=[]),U.forEach(function(h){V[m].push(h)}),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(V).filter(h=>h!=="--"&&h.includes("-")).forEach(h=>{delete V[h]}),o["strip-aliased"]&&[].concat(...Object.keys(u).map(h=>u[h])).forEach(h=>{o["camel-case-expansion"]&&h.includes("-")&&delete V[h.split(".").map(g=>ut(g)).join(".")],delete V[h]});function Z(h){let g=B("_",h);(typeof g=="string"||typeof g=="number")&&V._.push(g)}function Q(h,g,A,E){let d,I=M(g,F.nargs);if(I=typeof I!="number"||isNaN(I)?1:I,I===0)return je(E)||(v=Error(b("Argument unexpected for: %s",g))),X(g,oe(g)),h;let x=je(E)?0:1;if(o["nargs-eats-options"])A.length-(h+1)+x<I&&(v=Error(b("Not enough arguments following: %s",g))),x=I;else{for(d=h+1;d<A.length&&(!A[d].match(/^-[^0-9]/)||A[d].match(q)||ue(A[d]));d++)x++;x<I&&(v=Error(b("Not enough arguments following: %s",g)))}let P=Math.min(x,I);for(!je(E)&&P>0&&(X(g,E),P--),d=h+1;d<P+h+1;d++)X(g,A[d]);return h+P}function se(h,g,A,E){let d=[],I=E||A[h+1],x=M(g,F.nargs);if(M(g,F.bools)&&!/^(true|false)$/.test(I))d.push(!0);else if(je(I)||je(E)&&/^-/.test(I)&&!q.test(I)&&!ue(I)){if(l[g]!==void 0){let P=l[g];d=Array.isArray(P)?P:[P]}}else{je(E)||d.push(w(g,E,!0));for(let P=h+1;P<A.length&&!(!o["greedy-arrays"]&&d.length>0||x&&typeof x=="number"&&d.length>=x||(I=A[P],/^-/.test(I)&&!q.test(I)&&!ue(I)));P++)h=P,d.push(w(g,I,i))}return typeof x=="number"&&(x&&d.length<x||isNaN(x)&&d.length===0)&&(v=Error(b("Not enough arguments following: %s",g))),X(g,d),h}function X(h,g,A=i){if(/-/.test(h)&&o["camel-case-expansion"]){let I=h.split(".").map(function(x){return ut(x)}).join(".");y(h,I)}let E=w(h,g,A),d=h.split(".");He(V,d,E),F.aliases[h]&&F.aliases[h].forEach(function(I){let x=I.split(".");He(V,x,E)}),d.length>1&&o["dot-notation"]&&(F.aliases[d[0]]||[]).forEach(function(I){let x=I.split("."),P=[].concat(d);P.shift(),x=x.concat(P),(F.aliases[h]||[]).includes(x.join("."))||He(V,x,E)}),M(h,F.normalize)&&!M(h,F.arrays)&&[h].concat(F.aliases[h]||[]).forEach(function(x){Object.defineProperty(Y,x,{enumerable:!0,get(){return g},set(P){g=typeof P=="string"?ze.normalize(P):P}})})}function y(h,g){F.aliases[h]&&F.aliases[h].length||(F.aliases[h]=[g],p[g]=!0),F.aliases[g]&&F.aliases[g].length||y(g,h)}function w(h,g,A){A&&(g=Xa(g)),(M(h,F.bools)||M(h,F.counts))&&typeof g=="string"&&(g=g==="true");let E=Array.isArray(g)?g.map(function(d){return B(h,d)}):B(h,g);return M(h,F.counts)&&(je(E)||typeof E=="boolean")&&(E=Zs()),M(h,F.normalize)&&M(h,F.arrays)&&(Array.isArray(g)?E=g.map(d=>ze.normalize(d)):E=ze.normalize(g)),E}function B(h,g){return!o["parse-positional-numbers"]&&h==="_"||!M(h,F.strings)&&!M(h,F.bools)&&!Array.isArray(g)&&(es(g)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${g}`)))||!je(g)&&M(h,F.numbers))&&(g=Number(g)),g}function G(h){let g=Object.create(null);ie(g,F.aliases,l),Object.keys(F.configs).forEach(function(A){let E=h[A]||g[A];if(E)try{let d=null,I=ze.resolve(ze.cwd(),E),x=F.configs[A];if(typeof x=="function"){try{d=x(I)}catch(P){d=P}if(d instanceof Error){v=d;return}}else d=ze.require(I);K(d)}catch(d){d.name==="PermissionDenied"?v=d:h[A]&&(v=Error(b("Invalid JSON config file: %s",E)))}})}function K(h,g){Object.keys(h).forEach(function(A){let E=h[A],d=g?g+"."+A:A;typeof E=="object"&&E!==null&&!Array.isArray(E)&&o["dot-notation"]?K(E,d):(!Ge(V,d.split("."))||M(d,F.arrays)&&o["combine-arrays"])&&X(d,E)})}function he(){typeof c<"u"&&c.forEach(function(h){K(h)})}function k(h,g){if(typeof D>"u")return;let A=typeof D=="string"?D:"",E=ze.env();Object.keys(E).forEach(function(d){if(A===""||d.lastIndexOf(A,0)===0){let I=d.split("__").map(function(x,P){return P===0&&(x=x.substring(A.length)),ut(x)});(g&&F.configs[I.join(".")]||!g)&&!Ge(h,I)&&X(I.join("."),E[d])}})}function De(h){let g,A=new Set;Object.keys(h).forEach(function(E){if(!A.has(E)&&(g=M(E,F.coercions),typeof g=="function"))try{let d=B(E,g(h[E]));[].concat(F.aliases[E]||[],E).forEach(I=>{A.add(I),h[I]=d})}catch(d){v=d}})}function st(h){return F.keys.forEach(g=>{~g.indexOf(".")||typeof h[g]>"u"&&(h[g]=void 0)}),h}function ie(h,g,A,E=!1){Object.keys(A).forEach(function(d){Ge(h,d.split("."))||(He(h,d.split("."),A[d]),E&&(C[d]=!0),(g[d]||[]).forEach(function(I){Ge(h,I.split("."))||He(h,I.split("."),A[d])}))})}function Ge(h,g){let A=h;o["dot-notation"]||(g=[g.join(".")]),g.slice(0,-1).forEach(function(d){A=A[d]||{}});let E=g[g.length-1];return typeof A!="object"?!1:E in A}function He(h,g,A){let E=h;o["dot-notation"]||(g=[g.join(".")]),g.slice(0,-1).forEach(function(de){de=Zr(de),typeof E=="object"&&E[de]===void 0&&(E[de]={}),typeof E[de]!="object"||Array.isArray(E[de])?(Array.isArray(E[de])?E[de].push({}):E[de]=[E[de],{}],E=E[de][E[de].length-1]):E=E[de]});let d=Zr(g[g.length-1]),I=M(g.join("."),F.arrays),x=Array.isArray(A),P=o["duplicate-arguments-array"];!P&&M(d,F.nargs)&&(P=!0,(!je(E[d])&&F.nargs[d]===1||Array.isArray(E[d])&&E[d].length===F.nargs[d])&&(E[d]=void 0)),A===Zs()?E[d]=Zs(E[d]):Array.isArray(E[d])?P&&I&&x?E[d]=o["flatten-duplicate-arrays"]?E[d].concat(A):(Array.isArray(E[d][0])?E[d]:[E[d]]).concat([A]):!P&&!!I==!!x?E[d]=A:E[d]=E[d].concat([A]):E[d]===void 0&&I?E[d]=x?A:[A]:P&&!(E[d]===void 0||M(d,F.counts)||M(d,F.bools))?E[d]=[E[d],A]:E[d]=A}function nt(...h){h.forEach(function(g){Object.keys(g||{}).forEach(function(A){F.aliases[A]||(F.aliases[A]=[].concat(u[A]||[]),F.aliases[A].concat(A).forEach(function(E){if(/-/.test(E)&&o["camel-case-expansion"]){let d=ut(E);d!==A&&F.aliases[A].indexOf(d)===-1&&(F.aliases[A].push(d),p[d]=!0)}}),F.aliases[A].concat(A).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&o["camel-case-expansion"]){let d=Qt(E,"-");d!==A&&F.aliases[A].indexOf(d)===-1&&(F.aliases[A].push(d),p[d]=!0)}}),F.aliases[A].forEach(function(E){F.aliases[E]=[A].concat(F.aliases[A].filter(function(d){return E!==d}))}))})})}function M(h,g){let A=[].concat(F.aliases[h]||[],h),E=Object.keys(g),d=A.find(I=>E.includes(I));return d?g[d]:!1}function Os(h){let g=Object.keys(F);return[].concat(g.map(E=>F[E])).some(function(E){return Array.isArray(E)?E.includes(h):E[h]})}function L(h,...g){return[].concat(...g).some(function(E){let d=h.match(E);return d&&Os(d[1])})}function ne(h){if(h.match(q)||!h.match(/^-[^-]+/))return!1;let g=!0,A,E=h.slice(1).split("");for(let d=0;d<E.length;d++){if(A=h.slice(d+2),!Os(E[d])){g=!1;break}if(E[d+1]&&E[d+1]==="="||A==="-"||/[A-Za-z]/.test(E[d])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(A)||E[d+1]&&E[d+1].match(/\W/))break}return g}function ue(h){return o["unknown-options-as-args"]&&z(h)}function z(h){return h=h.replace(/^-{3,}/,"--"),h.match(q)||ne(h)?!1:!L(h,/^-+([^=]+?)=[\s\S]*$/,J,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function oe(h){return!M(h,F.bools)&&!M(h,F.counts)&&`${h}`in l?l[h]:le(ve(h))}function le(h){return{[Se.BOOLEAN]:!0,[Se.STRING]:"",[Se.NUMBER]:void 0,[Se.ARRAY]:[]}[h]}function ve(h){let g=Se.BOOLEAN;return M(h,F.strings)?g=Se.STRING:M(h,F.numbers)?g=Se.NUMBER:M(h,F.bools)?g=Se.BOOLEAN:M(h,F.arrays)&&(g=Se.ARRAY),g}function je(h){return h===void 0}function Vt(){Object.keys(F.counts).find(h=>M(h,F.arrays)?(v=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",h)),!0):M(h,F.nargs)?(v=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",h)),!0):!1)}return{aliases:Object.assign({},F.aliases),argv:Object.assign(Y,V),configuration:o,defaulted:Object.assign({},C),error:v,newAliases:Object.assign({},p)}}};function Ya(s){let e=[],t=Object.create(null),n=!0;for(Object.keys(s).forEach(function(r){e.push([].concat(s[r],r))});n;){n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(e[r].filter(function(o){return e[i].indexOf(o)!==-1}).length){e[r]=e[r].concat(e[i]),e.splice(i,1),n=!0;break}}return e.forEach(function(r){r=r.filter(function(u,o,l){return l.indexOf(u)===o});let i=r.pop();i!==void 0&&typeof i=="string"&&(t[i]=r)}),t}function Zs(s){return s!==void 0?s+1:1}function Zr(s){return s==="__proto__"?"___proto___":s}function Xa(s){return typeof s=="string"&&(s[0]==="'"||s[0]==='"')&&s[s.length-1]===s[0]?s.substring(1,s.length-1):s}import{readFileSync as Ja}from"fs";import{createRequire as Jr}from"node:module";var Js,Qs,en,Qr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,ei=(Qs=(Js=process==null?void 0:process.versions)===null||Js===void 0?void 0:Js.node)!==null&&Qs!==void 0?Qs:(en=process==null?void 0:process.version)===null||en===void 0?void 0:en.slice(1);if(ei&&Number(ei.match(/^([^.]+)/)[1])<Qr)throw Error(`yargs parser supports a minimum Node.js version of ${Qr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Qa=process?process.env:{},ti=Jr?Jr(import.meta.url):void 0,si=new ts({cwd:process.cwd,env:()=>Qa,format:ka,normalize:Ka,resolve:Za,require:s=>{if(typeof ti<"u")return ti(s);if(s.match(/\.json$/))return JSON.parse(Ja(s,"utf8"));throw Error("only .json config files are supported in ESM")}}),It=function(e,t){return si.parse(e.slice(),t).argv};It.detailed=function(s,e){return si.parse(s.slice(),e)};It.camelCase=ut;It.decamelize=Qt;It.looksLikeNumber=es;var tn=It;import{basename as Al,dirname as wl,extname as xl,relative as yl,resolve as di,join as Ol}from"path";function ni(){return el()?0:1}function el(){return tl()&&!process.defaultApp}function tl(){return!!process.versions.electron}function ri(s){return s.slice(ni()+1)}function ii(){return process.argv[ni()]}function sn({onlyFirst:s=!1}={}){let r="(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,s?void 0:"g")}var sl=sn();function nn(s){if(typeof s!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof s}\``);return!s.includes("\x1B")&&!s.includes("\x9B")?s:s.replace(sl,"")}var nl=new Intl.Segmenter,ui=/[^\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Nonspacing_Mark}\p{Enclosing_Mark}\p{Surrogate}]/v,rl=/\p{Spacing_Mark}/v,il=/^\p{RGI_Emoji}$/v,ul=/^[\d#*]\u20E3$/,ol=/\p{Extended_Pictographic}/gu;function al(s){if(s.length>50)return!1;if(ul.test(s))return!0;if(s.includes("\u200D")){let e=s.match(ol);return e!==null&&e.length>=2}return!1}function ll(s){let e=s.search(ui);return e===-1?void 0:s.slice(e)}function oi(s){return s>=4352&&s<=4447||s>=43360&&s<=43388}function ai(s){return s>=4448&&s<=4519||s>=55216&&s<=55238}function li(s){return s>=4520&&s<=4607||s>=55243&&s<=55291}function cl(s){return oi(s)||ai(s)||li(s)}function fl(s,e){let t=[];for(let r of s)ui.test(r)&&t.push(r.codePointAt(0));if(t.length===0)return;let n=0;for(let r=0;r<t.length;r++){let i=t[r];if(!cl(i)){if(n===0)return;for(let u=r;u<t.length;u++)n+=Ve(t[u],e);return n}if(oi(i)&&ai(t[r+1])){n+=2,r+=li(t[r+2])?2:1;continue}n+=Ve(i,e)}return n}function hl(s,e){let t=0,n=!0;for(let r of s){if(n){n=!1;continue}(rl.test(r)||r>="\uFF00"&&r<="\uFFEF")&&(t+=Ve(r.codePointAt(0),e))}return t}function rn(s,e={}){if(typeof s!="string"||s.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:n=!1}=e,r=s;if(!n&&(r.includes("\x1B")||r.includes("\x9B"))&&(r=nn(r)),r.length===0)return 0;if(/^[\u0020-\u007E]*$/.test(r))return r.length;let i=0,u={ambiguousAsWide:!t};for(let{segment:o}of nl.segment(r)){let l=ll(o);if(l===void 0)continue;if(il.test(o)||al(o)){i+=2;continue}let c=fl(l,u);if(c!==void 0){i+=c;continue}let D=l.codePointAt(0);i+=Ve(D,u),i+=hl(l,u)}return i}import{readFileSync as Dl,statSync as pl,writeFile as dl}from"fs";import{format as ml}from"util";import{resolve as gl}from"path";var ci={fs:{readFileSync:Dl,writeFile:dl},format:ml,resolve:gl,exists:s=>{try{return pl(s).isFile()}catch{return!1}}};var Le,un=class{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let t=e.shift(),n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),Le.format.apply(Le.format,[this.cache[this.locale][t]||t].concat(e))}__n(){let e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),r=e.shift(),i=function(){};typeof e[e.length-1]=="function"&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let u=r===1?t:n;this.cache[this.locale][t]&&(u=this.cache[this.locale][t][r===1?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();let o=[u];return~u.indexOf("%d")&&o.push(r),Le.format.apply(Le.format,o.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach(function(r,i){let u=t[i+1];n+=r,typeof u<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let e=this,t=this.writeQueue[0],n=t.directory,r=t.locale,i=t.cb,u=this._resolveLocaleFile(n,r),o=JSON.stringify(this.cache[r],null,2);Le.fs.writeFile(u,o,"utf-8",function(l){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(l)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{Le.fs.readFileSync&&(e=JSON.parse(Le.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=Le.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let r=Le.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(r)&&(n=r)}return n}_fileExistsSync(e){return Le.exists(e)}};function fi(s,e){Le=e;let t=new un(s);return{__:t.__.bind(t),__n:t.__n.bind(t),setLocale:t.setLocale.bind(t),getLocale:t.getLocale.bind(t),updateLocale:t.updateLocale.bind(t),locale:t.locale}}var Fl=s=>fi(s,ci),hi=Fl;var gi=zt(pi(),1);import{createRequire as _l}from"node:module";import{readFileSync as Sl,readdirSync as $l}from"node:fs";var on=mi(import.meta.url),Bl=on.substring(0,on.lastIndexOf("node_modules")),Il=_l(import.meta.url),an={assert:{notStrictEqual:El,strictEqual:Cl},cliui:Ks,findUp:kr,getEnv:s=>process.env[s],inspect:bl,getProcessArgvBin:ii,mainFilename:Bl||process.cwd(),Parser:tn,path:{basename:Al,dirname:wl,extname:xl,relative:yl,resolve:di,join:Ol},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(s,e)=>process.emitWarning(s,e),execPath:()=>process.execPath,exit:s=>{process.exit(s)},nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:Sl,readdirSync:$l,require:Il,getCallerFile:()=>{let s=(0,gi.default)(3);return s.match(/^file:\/\//)?mi(s):s},stringWidth:rn,y18n:hi({directory:di(on,"../../../locales"),updateFiles:!1})};function Ce(s,e,t,n){t.assert.notStrictEqual(s,e,n)}function ln(s,e){e.assert.strictEqual(typeof s,"string")}function xt(s){return Object.keys(s)}function ee(s){return!!s&&!!s.then&&typeof s.then=="function"}var ce=class s extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,s)}};function ke(s){let t=s.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r=t.shift();if(!r)throw new Error(`No command found in: ${s}`);let i={cmd:r.replace(n,""),demanded:[],optional:[]};return t.forEach((u,o)=>{let l=!1;u=u.replace(/\s/g,""),/\.+[\]>]/.test(u)&&o===t.length-1&&(l=!0),/^\[/.test(u)?i.optional.push({cmd:u.replace(n,"").split("|"),variadic:l}):i.demanded.push({cmd:u.replace(n,"").split("|"),variadic:l})}),i}var Rl=["first","second","third","fourth","fifth","sixth"];function S(s,e,t){function n(){return typeof s=="object"?[{demanded:[],optional:[]},s,e]:[ke(`cmd ${s}`),e,t]}try{let r=0,[i,u,o]=n(),l=[].slice.call(u);for(;l.length&&l[l.length-1]===void 0;)l.pop();let c=o||l.length;if(c<i.demanded.length)throw new ce(`Not enough arguments provided. Expected ${i.demanded.length} but received ${l.length}.`);let D=i.demanded.length+i.optional.length;if(c>D)throw new ce(`Too many arguments provided. Expected max ${D} but received ${c}.`);i.demanded.forEach(f=>{let m=l.shift(),p=Fi(m);f.cmd.filter(b=>b===p||b==="*").length===0&&Ei(p,f.cmd,r),r+=1}),i.optional.forEach(f=>{if(l.length===0)return;let m=l.shift(),p=Fi(m);f.cmd.filter(b=>b===p||b==="*").length===0&&Ei(p,f.cmd,r),r+=1})}catch(r){console.warn(r.stack)}}function Fi(s){return Array.isArray(s)?"array":s===null?"null":typeof s}function Ei(s,e,t){throw new ce(`Invalid ${Rl[t]||"manyith"} argument. Expected ${e.join(" or ")} but received ${s}.`)}var ss=class{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,n=!0,r=!1){if(S("<array|function> [boolean] [boolean] [boolean]",[e,t,n],arguments.length),Array.isArray(e)){for(let i=0;i<e.length;i++){if(typeof e[i]!="function")throw Error("middleware must be a function");let u=e[i];u.applyBeforeValidation=t,u.global=n}Array.prototype.push.apply(this.globalMiddleware,e)}else if(typeof e=="function"){let i=e;i.applyBeforeValidation=t,i.global=n,i.mutates=r,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,t){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(r=>{let i=[...n[t]||[],t];return r.option?!i.includes(r.option):!0}),e.option=t,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let e=this.frozens.pop();e!==void 0&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter(e=>e.global)}};function Ci(s){return s?s.map(e=>(e.applyBeforeValidation=!1,e)):[]}function ot(s,e,t,n){return t.reduce((r,i)=>{if(i.applyBeforeValidation!==n)return r;if(i.mutates){if(i.applied)return r;i.applied=!0}if(ee(r))return r.then(u=>Promise.all([u,i(u,e)])).then(([u,o])=>Object.assign(u,o));{let u=i(r,e);return ee(u)?u.then(o=>Object.assign(r,o)):Object.assign(r,u)}},s)}function at(s,e,t=n=>{throw n}){try{let n=Pl(s)?s():s;return ee(n)?n.then(r=>e(r)):e(n)}catch(n){return t(n)}}function Pl(s){return typeof s=="function"}var yt=/(^\*)|(^\$0)/,cn=class{constructor(e,t,n,r){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=r,this.usage=e,this.globalMiddleware=n,this.validation=t}addDirectory(e,t,n,r){r=r||{},this.requireCache.add(n);let i=this.shim.path.resolve(this.shim.path.dirname(n),e),u=this.shim.readdirSync(i,{recursive:!!r.recurse});Array.isArray(r.extensions)||(r.extensions=["js"]);let o=typeof r.visit=="function"?r.visit:l=>l;for(let l of u){let c=l.toString();if(r.exclude){let f=!1;if(typeof r.exclude=="function"?f=r.exclude(c):f=r.exclude.test(c),f)continue}if(r.include){let f=!1;if(typeof r.include=="function"?f=r.include(c):f=r.include.test(c),!f)continue}let D=!1;for(let f of r.extensions)c.endsWith(f)&&(D=!0);if(D){let f=this.shim.path.join(i,c),m=t(f),p=Object.create(null,Object.getOwnPropertyDescriptors({...m}));if(o(p,f,c)){if(this.requireCache.has(f))continue;this.requireCache.add(f),p.command||(p.command=this.shim.path.basename(f,this.shim.path.extname(f))),this.addHandler(p)}}}}addHandler(e,t,n,r,i,u){let o=[],l=Ci(i);if(r=r||(()=>{}),Array.isArray(e))if(vl(e))[e,...o]=e;else for(let c of e)this.addHandler(c);else if(Ll(e)){let c=Array.isArray(e.command)||typeof e.command=="string"?e.command:null;if(c===null)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);e.aliases&&(c=[].concat(c).concat(e.aliases)),this.addHandler(c,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated);return}else if(bi(n)){this.addHandler([e].concat(o),t,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof e=="string"){let c=ke(e);o=o.map(m=>ke(m).cmd);let D=!1,f=[c.cmd].concat(o).filter(m=>yt.test(m)?(D=!0,!1):!0);f.length===0&&D&&f.push("$0"),D&&(c.cmd=f[0],o=f.slice(1),e=e.replace(yt,c.cmd)),o.forEach(m=>{this.aliasMap[m]=c.cmd}),t!==!1&&this.usage.command(e,t,D,o,u),this.handlers[c.cmd]={original:e,description:t,handler:r,builder:n||{},middlewares:l,deprecated:u,demanded:c.demanded,optional:c.optional},D&&(this.defaultCommand=this.handlers[c.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,t,n,r,i,u){let o=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,l=t.getInternalMethods().getContext(),c=l.commands.slice(),D=!e;e&&(l.commands.push(e),l.fullCommands.push(o.original));let f=this.applyBuilderUpdateUsageAndParse(D,o,t,n.aliases,c,r,i,u);return ee(f)?f.then(m=>this.applyMiddlewareAndGetResult(D,o,m.innerArgv,l,i,m.aliases,t)):this.applyMiddlewareAndGetResult(D,o,f.innerArgv,l,i,f.aliases,t)}applyBuilderUpdateUsageAndParse(e,t,n,r,i,u,o,l){let c=t.builder,D=n;if(ns(c)){n.getInternalMethods().getUsageInstance().freeze();let f=c(n.getInternalMethods().reset(r),l);if(ee(f))return f.then(m=>(D=wi(m)?m:n,this.parseAndUpdateUsage(e,t,D,i,u,o)))}else jl(c)&&(n.getInternalMethods().getUsageInstance().freeze(),D=n.getInternalMethods().reset(r),Object.keys(t.builder).forEach(f=>{D.option(f,c[f])}));return this.parseAndUpdateUsage(e,t,D,i,u,o)}parseAndUpdateUsage(e,t,n,r,i,u){e&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(r,t),t.description);let o=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,u);return ee(o)?o.then(l=>({aliases:n.parsed.aliases,innerArgv:l})):{aliases:n.parsed.aliases,innerArgv:o}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&e.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(e,t){let n=yt.test(t.original)?t.original.replace(yt,"").trim():t.original,r=e.filter(i=>!yt.test(i));return r.push(n),`$0 ${r.join(" ")}`}handleValidationAndGetResult(e,t,n,r,i,u,o,l){if(!u.getInternalMethods().getHasOutput()){let c=u.getInternalMethods().runValidation(i,l,u.parsed.error,e);n=at(n,D=>(c(D),D))}if(t.handler&&!u.getInternalMethods().getHasOutput()){u.getInternalMethods().setHasOutput();let c=!!u.getOptions().configuration["populate--"];u.getInternalMethods().postProcess(n,c,!1,!1),n=ot(n,u,o,!1),n=at(n,D=>{let f=t.handler(D);return ee(f)?f.then(()=>D):D}),e||u.getInternalMethods().getUsageInstance().cacheHelpMessage(),ee(n)&&!u.getInternalMethods().hasParseCallback()&&n.catch(D=>{try{u.getInternalMethods().getUsageInstance().fail(null,D)}catch{}})}return e||(r.commands.pop(),r.fullCommands.pop()),n}applyMiddlewareAndGetResult(e,t,n,r,i,u,o){let l={};if(i)return n;o.getInternalMethods().getHasOutput()||(l=this.populatePositionals(t,n,r,o));let c=this.globalMiddleware.getMiddleware().slice(0).concat(t.middlewares),D=ot(n,o,c,!0);return ee(D)?D.then(f=>this.handleValidationAndGetResult(e,t,f,r,u,o,c,l)):this.handleValidationAndGetResult(e,t,D,r,u,o,c,l)}populatePositionals(e,t,n,r){t._=t._.slice(n.commands.length);let i=e.demanded.slice(0),u=e.optional.slice(0),o={};for(this.validation.positionalCount(i.length,t._.length);i.length;){let l=i.shift();this.populatePositional(l,t,o)}for(;u.length;){let l=u.shift();this.populatePositional(l,t,o)}return t._=n.commands.concat(t._.map(l=>""+l)),this.postProcessPositionals(t,o,this.cmdToParseOptions(e.original),r),o}populatePositional(e,t,n){let r=e.cmd[0];e.variadic?n[r]=t._.splice(0).map(String):t._.length&&(n[r]=[String(t._.shift())])}cmdToParseOptions(e){let t={array:[],default:{},alias:{},demand:{}},n=ke(e);return n.demanded.forEach(r=>{let[i,...u]=r.cmd;r.variadic&&(t.array.push(i),t.default[i]=[]),t.alias[i]=u,t.demand[i]=!0}),n.optional.forEach(r=>{let[i,...u]=r.cmd;r.variadic&&(t.array.push(i),t.default[i]=[]),t.alias[i]=u}),t}postProcessPositionals(e,t,n,r){let i=Object.assign({},r.getOptions());i.default=Object.assign(n.default,i.default);for(let c of Object.keys(n.alias))i.alias[c]=(i.alias[c]||[]).concat(n.alias[c]);i.array=i.array.concat(n.array),i.config={};let u=[];if(Object.keys(t).forEach(c=>{t[c].map(D=>{i.configuration["unknown-options-as-args"]&&(i.key[c]=!0),u.push(`--${c}`),u.push(D)})}),!u.length)return;let o=Object.assign({},i.configuration,{"populate--":!1}),l=this.shim.Parser.detailed(u,Object.assign({},i,{configuration:o}));if(l.error)r.getInternalMethods().getUsageInstance().fail(l.error.message,l.error);else{let c=Object.keys(t);Object.keys(t).forEach(D=>{c.push(...l.aliases[D])}),Object.keys(l.argv).forEach(D=>{c.includes(D)&&(t[D]||(t[D]=l.argv[D]),!this.isInConfigs(r,D)&&!this.isDefaulted(r,D)&&Object.prototype.hasOwnProperty.call(e,D)&&Object.prototype.hasOwnProperty.call(l.argv,D)&&(Array.isArray(e[D])||Array.isArray(l.argv[D]))?e[D]=[].concat(e[D],l.argv[D]):e[D]=l.argv[D])})}}isDefaulted(e,t){let{default:n}=e.getOptions();return Object.prototype.hasOwnProperty.call(n,t)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(t))}isInConfigs(e,t){let{configObjects:n}=e.getOptions();return n.some(r=>Object.prototype.hasOwnProperty.call(r,t))||n.some(r=>Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(t)))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){let n=yt.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let t=this.defaultCommand.builder;if(ns(t))return t(e,!0);bi(t)||Object.keys(t).forEach(n=>{e.option(n,t[n])})}extractDesc({describe:e,description:t,desc:n}){for(let r of[e,t,n]){if(typeof r=="string"||r===!1)return r;Ce(r,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let e=this.frozens.pop();Ce(e,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function Ai(s,e,t,n){return new cn(s,e,t,n)}function bi(s){return typeof s=="object"&&!!s.builder&&typeof s.handler=="function"}function vl(s){return s.every(e=>typeof e=="string")}function ns(s){return typeof s=="function"}function jl(s){return typeof s=="object"}function Ll(s){return typeof s=="object"&&!Array.isArray(s)}function Ke(s={},e=()=>!0){let t={};return xt(s).forEach(n=>{e(n,s[n])&&(t[n]=s[n])}),t}function Ze(s){typeof process>"u"||[process.stdout,process.stderr].forEach(e=>{let t=e;t._handle&&t.isTTY&&typeof t._handle.setBlocking=="function"&&t._handle.setBlocking(s)})}function Nl(s){return typeof s=="boolean"}function yi(s,e){let t=e.y18n.__,n={},r=[];n.failFn=function(w){r.push(w)};let i=null,u=null,o=!0;n.showHelpOnFail=function(w=!0,B){let[G,K]=typeof w=="string"?[!0,w]:[w,B];return s.getInternalMethods().isGlobalContext()&&(u=K),i=K,o=G,n};let l=!1;n.fail=function(w,B){let G=s.getInternalMethods().getLoggerInstance();if(r.length)for(let K=r.length-1;K>=0;--K){let he=r[K];if(Nl(he)){if(B)throw B;if(w)throw Error(w)}else he(w,B,n)}else{if(s.getExitProcess()&&Ze(!0),!l){l=!0,o&&(s.showHelp("error"),G.error()),(w||B)&&G.error(w||B);let K=i||u;K&&((w||B)&&G.error(""),G.error(K))}if(B=B||new ce(w),s.getExitProcess())return s.exit(1);if(s.getInternalMethods().hasParseCallback())return s.exit(1,B);throw B}};let c=[],D=!1;n.usage=(y,w)=>y===null?(D=!0,c=[],n):(D=!1,c.push([y,w||""]),n),n.getUsage=()=>c,n.getUsageDisabled=()=>D,n.getPositionalGroupName=()=>t("Positionals:");let f=[];n.example=(y,w)=>{f.push([y,w||""])};let m=[];n.command=function(w,B,G,K,he=!1){G&&(m=m.map(k=>(k[2]=!1,k))),m.push([w,B||"",G,K,he])},n.getCommands=()=>m;let p={};n.describe=function(w,B){Array.isArray(w)?w.forEach(G=>{n.describe(G,B)}):typeof w=="object"?Object.keys(w).forEach(G=>{n.describe(G,w[G])}):p[w]=B},n.getDescriptions=()=>p;let C=[];n.epilog=y=>{C.push(y)};let b=!1,F;n.wrap=y=>{b=!0,F=y},n.getWrap=()=>e.getEnv("YARGS_DISABLE_WRAP")?null:(b||(F=Q(),b=!0),F);let q="__yargsString__:";n.deferY18nLookup=y=>q+y,n.help=function(){if(U)return U;v();let w=s.customScriptName?s.$0:e.path.basename(s.$0),B=s.getDemandedOptions(),G=s.getDemandedCommands(),K=s.getDeprecatedOptions(),he=s.getGroups(),k=s.getOptions(),De=[];De=De.concat(Object.keys(p)),De=De.concat(Object.keys(B)),De=De.concat(Object.keys(G)),De=De.concat(Object.keys(k.default)),De=De.filter(Y),De=Object.keys(De.reduce((L,ne)=>(ne!=="_"&&(L[ne]=!0),L),{}));let st=n.getWrap(),ie=e.cliui({width:st,wrap:!!st});if(!D){if(c.length)c.forEach(L=>{ie.div({text:`${L[0].replace(/\$0/g,w)}`}),L[1]&&ie.div({text:`${L[1]}`,padding:[1,0,0,0]})}),ie.div();else if(m.length){let L=null;G._?L=`${w} <${t("command")}>
|
|
16
|
+
`:L=`${w} [${t("command")}]
|
|
17
|
+
`,ie.div(`${L}`)}}if(m.length>1||m.length===1&&!m[0][2]){ie.div(t("Commands:"));let L=s.getInternalMethods().getContext(),ne=L.commands.length?`${L.commands.join(" ")} `:"";s.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(m=m.sort((z,oe)=>z[0].localeCompare(oe[0])));let ue=w?`${w} `:"";m.forEach(z=>{let oe=`${ue}${ne}${z[0].replace(/^\$0 ?/,"")}`;ie.span({text:oe,padding:[0,2,0,2],width:J(m,st,`${w}${ne}`)+4},{text:z[1]});let le=[];z[2]&&le.push(`[${t("default")}]`),z[3]&&z[3].length&&le.push(`[${t("aliases:")} ${z[3].join(", ")}]`),z[4]&&(typeof z[4]=="string"?le.push(`[${t("deprecated: %s",z[4])}]`):le.push(`[${t("deprecated")}]`)),le.length?ie.div({text:le.join(" "),padding:[0,0,0,2],align:"right"}):ie.div()}),ie.div()}let Ge=(Object.keys(k.alias)||[]).concat(Object.keys(s.parsed.newAliases)||[]);De=De.filter(L=>!s.parsed.newAliases[L]&&Ge.every(ne=>(k.alias[ne]||[]).indexOf(L)===-1));let He=t("Options:");he[He]||(he[He]=[]),V(De,k.alias,he,He);let nt=L=>/^--/.test(rs(L)),M=Object.keys(he).filter(L=>he[L].length>0).map(L=>{let ne=he[L].filter(Y).map(ue=>{if(Ge.includes(ue))return ue;for(let z=0,oe;(oe=Ge[z])!==void 0;z++)if((k.alias[oe]||[]).includes(ue))return oe;return ue});return{groupName:L,normalizedKeys:ne}}).filter(({normalizedKeys:L})=>L.length>0).map(({groupName:L,normalizedKeys:ne})=>{let ue=ne.reduce((z,oe)=>(z[oe]=[oe].concat(k.alias[oe]||[]).map(le=>L===n.getPositionalGroupName()?le:(/^[0-9]$/.test(le)?k.boolean.includes(oe)?"-":"--":le.length>1?"--":"-")+le).sort((le,ve)=>nt(le)===nt(ve)?0:nt(le)?1:-1).join(", "),z),{});return{groupName:L,normalizedKeys:ne,switches:ue}});if(M.filter(({groupName:L})=>L!==n.getPositionalGroupName()).some(({normalizedKeys:L,switches:ne})=>!L.every(ue=>nt(ne[ue])))&&M.filter(({groupName:L})=>L!==n.getPositionalGroupName()).forEach(({normalizedKeys:L,switches:ne})=>{L.forEach(ue=>{nt(ne[ue])&&(ne[ue]=Tl(ne[ue],4))})}),M.forEach(({groupName:L,normalizedKeys:ne,switches:ue})=>{ie.div(L),ne.forEach(z=>{let oe=ue[z],le=p[z]||"",ve=null;le.includes(q)&&(le=t(le.substring(q.length))),k.boolean.includes(z)&&(ve=`[${t("boolean")}]`),k.count.includes(z)&&(ve=`[${t("count")}]`),k.string.includes(z)&&(ve=`[${t("string")}]`),k.normalize.includes(z)&&(ve=`[${t("string")}]`),k.array.includes(z)&&(ve=`[${t("array")}]`),k.number.includes(z)&&(ve=`[${t("number")}]`);let je=g=>typeof g=="string"?`[${t("deprecated: %s",g)}]`:`[${t("deprecated")}]`,Vt=[z in K?je(K[z]):null,ve,z in B?`[${t("required")}]`:null,k.choices&&k.choices[z]?`[${t("choices:")} ${n.stringifiedValues(k.choices[z])}]`:null,Z(k.default[z],k.defaultDescription[z])].filter(Boolean).join(" ");ie.span({text:rs(oe),padding:[0,2,0,2+xi(oe)],width:J(ue,st)+4},le);let h=s.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Vt&&!h?ie.div({text:Vt,padding:[0,0,0,2],align:"right"}):ie.div()}),ie.div()}),f.length&&(ie.div(t("Examples:")),f.forEach(L=>{L[0]=L[0].replace(/\$0/g,w)}),f.forEach(L=>{L[1]===""?ie.div({text:L[0],padding:[0,2,0,2]}):ie.div({text:L[0],padding:[0,2,0,2],width:J(f,st)+4},{text:L[1]})}),ie.div()),C.length>0){let L=C.map(ne=>ne.replace(/\$0/g,w)).join(`
|
|
18
|
+
`);ie.div(`${L}
|
|
19
|
+
`)}return ie.toString().replace(/\s*$/,"")};function J(y,w,B){let G=0;return Array.isArray(y)||(y=Object.values(y).map(K=>[K])),y.forEach(K=>{G=Math.max(e.stringWidth(B?`${B} ${rs(K[0])}`:rs(K[0]))+xi(K[0]),G)}),w&&(G=Math.min(G,parseInt((w*.5).toString(),10))),G}function v(){let y=s.getDemandedOptions(),w=s.getOptions();(Object.keys(w.alias)||[]).forEach(B=>{w.alias[B].forEach(G=>{p[G]&&n.describe(B,p[G]),G in y&&s.demandOption(B,y[G]),w.boolean.includes(G)&&s.boolean(B),w.count.includes(G)&&s.count(B),w.string.includes(G)&&s.string(B),w.normalize.includes(G)&&s.normalize(B),w.array.includes(G)&&s.array(B),w.number.includes(G)&&s.number(B)})})}let U;n.cacheHelpMessage=function(){U=this.help()},n.clearCachedHelpMessage=function(){U=void 0},n.hasCachedHelpMessage=function(){return!!U};function V(y,w,B,G){let K=[],he=null;return Object.keys(B).forEach(k=>{K=K.concat(B[k])}),y.forEach(k=>{he=[k].concat(w[k]),he.some(De=>K.indexOf(De)!==-1)||B[G].push(k)}),K}function Y(y){return s.getOptions().hiddenOptions.indexOf(y)<0||s.parsed.argv[s.getOptions().showHiddenOpt]}n.showHelp=y=>{let w=s.getInternalMethods().getLoggerInstance();y||(y="error"),(typeof y=="function"?y:w[y])(n.help())},n.functionDescription=y=>["(",y.name?e.Parser.decamelize(y.name,"-"):t("generated-value"),")"].join(""),n.stringifiedValues=function(w,B){let G="",K=B||", ",he=[].concat(w);return!w||!he.length||he.forEach(k=>{G.length&&(G+=K),G+=JSON.stringify(k)}),G};function Z(y,w){let B=`[${t("default:")} `;if(y===void 0&&!w)return null;if(w)B+=w;else switch(typeof y){case"string":B+=`"${y}"`;break;case"object":B+=JSON.stringify(y);break;default:B+=y}return`${B}]`}function Q(){return e.process.stdColumns?Math.min(80,e.process.stdColumns):80}let se=null;n.version=y=>{se=y},n.showVersion=y=>{let w=s.getInternalMethods().getLoggerInstance();y||(y="error"),(typeof y=="function"?y:w[y])(se)},n.reset=function(w){return i=null,l=!1,c=[],D=!1,C=[],f=[],m=[],p=Ke(p,B=>!w[B]),n};let X=[];return n.freeze=function(){X.push({failMessage:i,failureOutput:l,usages:c,usageDisabled:D,epilogs:C,examples:f,commands:m,descriptions:p})},n.unfreeze=function(w=!1){let B=X.pop();B&&(w?(p={...B.descriptions,...p},m=[...B.commands,...m],c=[...B.usages,...c],f=[...B.examples,...f],C=[...B.epilogs,...C]):{failMessage:i,failureOutput:l,usages:c,usageDisabled:D,epilogs:C,examples:f,commands:m,descriptions:p}=B)},n}function fn(s){return typeof s=="object"}function Tl(s,e){return fn(s)?{text:s.text,indentation:s.indentation+e}:{text:s,indentation:e}}function xi(s){return fn(s)?s.indentation:0}function rs(s){return fn(s)?s.text:s}var Oi=`###-begin-{{app_name}}-completions-###
|
|
20
|
+
#
|
|
21
|
+
# yargs command completion script
|
|
22
|
+
#
|
|
23
|
+
# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc
|
|
24
|
+
# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.
|
|
25
|
+
#
|
|
26
|
+
_{{app_name}}_yargs_completions()
|
|
27
|
+
{
|
|
28
|
+
local cur_word args type_list
|
|
29
|
+
|
|
30
|
+
cur_word="\${COMP_WORDS[COMP_CWORD]}"
|
|
31
|
+
args=("\${COMP_WORDS[@]}")
|
|
32
|
+
|
|
33
|
+
# ask yargs to generate completions.
|
|
34
|
+
# see https://stackoverflow.com/a/40944195/7080036 for the spaces-handling awk
|
|
35
|
+
mapfile -t type_list < <({{app_path}} --get-yargs-completions "\${args[@]}")
|
|
36
|
+
mapfile -t COMPREPLY < <(compgen -W "$( printf '%q ' "\${type_list[@]}" )" -- "\${cur_word}" |
|
|
37
|
+
awk '/ / { print "\\""$0"\\"" } /^[^ ]+$/ { print $0 }')
|
|
38
|
+
|
|
39
|
+
# if no match was found, fall back to filename completion
|
|
40
|
+
if [ \${#COMPREPLY[@]} -eq 0 ]; then
|
|
41
|
+
COMPREPLY=()
|
|
42
|
+
fi
|
|
43
|
+
|
|
44
|
+
return 0
|
|
45
|
+
}
|
|
46
|
+
complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
|
|
47
|
+
###-end-{{app_name}}-completions-###
|
|
48
|
+
`,_i=`#compdef {{app_name}}
|
|
49
|
+
###-begin-{{app_name}}-completions-###
|
|
50
|
+
#
|
|
51
|
+
# yargs command completion script
|
|
52
|
+
#
|
|
53
|
+
# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc
|
|
54
|
+
# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.
|
|
55
|
+
#
|
|
56
|
+
_{{app_name}}_yargs_completions()
|
|
57
|
+
{
|
|
58
|
+
local reply
|
|
59
|
+
local si=$IFS
|
|
60
|
+
IFS=$'
|
|
61
|
+
' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "\${words[@]}"))
|
|
62
|
+
IFS=$si
|
|
63
|
+
if [[ \${#reply} -gt 0 ]]; then
|
|
64
|
+
_describe 'values' reply
|
|
65
|
+
else
|
|
66
|
+
_default
|
|
67
|
+
fi
|
|
68
|
+
}
|
|
69
|
+
if [[ "\${zsh_eval_context[-1]}" == "loadautofunc" ]]; then
|
|
70
|
+
_{{app_name}}_yargs_completions "$@"
|
|
71
|
+
else
|
|
72
|
+
compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
73
|
+
fi
|
|
74
|
+
###-end-{{app_name}}-completions-###
|
|
75
|
+
`,Si=`###-begin-{{app_name}}-completions-###
|
|
76
|
+
#
|
|
77
|
+
# yargs command completion script
|
|
78
|
+
#
|
|
79
|
+
# Installation: {{app_path}} {{completion_command}} > ~/.config/fish/completions/{{app_name}}.fish
|
|
80
|
+
#
|
|
81
|
+
complete -f -c {{app_name}} -a '({{app_path}} --get-yargs-completions (commandline -o)[2..-1])'
|
|
82
|
+
###-end-{{app_name}}-completions-###
|
|
83
|
+
`;var hn=class{constructor(e,t,n,r){var i,u,o,l,c;this.yargs=e,this.usage=t,this.command=n,this.shim=r,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(o=((i=this.shim.getEnv("SHELL"))===null||i===void 0?void 0:i.includes("zsh"))||((u=this.shim.getEnv("ZSH_NAME"))===null||u===void 0?void 0:u.includes("zsh")))!==null&&o!==void 0?o:!1,this.fishShell=(c=(l=this.shim.getEnv("SHELL"))===null||l===void 0?void 0:l.includes("fish"))!==null&&c!==void 0?c:!1}defaultCompletion(e,t,n,r){let i=this.command.getCommandHandlers();for(let o=0,l=e.length;o<l;++o)if(i[e[o]]&&i[e[o]].builder){let c=i[e[o]].builder;if(ns(c)){this.indexAfterLastReset=o+1;let D=this.yargs.getInternalMethods().reset();return c(D,!0),D.argv}}let u=[];this.commandCompletions(u,e,n),this.optionCompletions(u,e,t,n),this.choicesFromOptionsCompletions(u,e,t,n),this.choicesFromPositionalsCompletions(u,e,t,n),r(null,u)}commandCompletions(e,t,n){let r=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&r[r.length-1]!==n&&!this.previousArgHasChoices(t)&&this.usage.getCommands().forEach(i=>{let u=ke(i[0]).cmd;if(t.indexOf(u)===-1){let o=i[1]||"";this.fishShell?e.push(u+" "+o):this.zshShell?e.push(u.replace(/:/g,"\\:")+":"+o):e.push(u)}})}optionCompletions(e,t,n,r){if((r.match(/^-/)||r===""&&e.length===0)&&!this.previousArgHasChoices(t)){let i=this.yargs.getOptions(),u=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(i.key).forEach(o=>{let l=!!i.configuration["boolean-negation"]&&i.boolean.includes(o);!u.includes(o)&&!i.hiddenOptions.includes(o)&&!this.argsContainKey(t,o,l)&&this.completeOptionKey(o,e,r,l&&!!i.default[o])})}}choicesFromOptionsCompletions(e,t,n,r){if(this.previousArgHasChoices(t)){let i=this.getPreviousArgChoices(t);i&&i.length>0&&(this.fishShell?e.push(...i):e.push(...i.map(u=>u.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(e,t,n,r){if(r===""&&e.length>0&&this.previousArgHasChoices(t))return;let i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],u=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),o=i[n._.length-u-1];if(!o)return;let l=this.yargs.getOptions().choices[o]||[];for(let c of l)c.startsWith(r)&&(this.fishShell?e.push(c):e.push(c.replace(/:/g,"\\:")))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],n="";if(!t.startsWith("-")&&e.length>1&&(n=t,t=e[e.length-2]),!t.startsWith("-"))return;let r=t.replace(/^-+/,""),i=this.yargs.getOptions(),u=[r,...this.yargs.getAliases()[r]||[]],o;for(let l of u)if(Object.prototype.hasOwnProperty.call(i.key,l)&&Array.isArray(i.choices[l])){o=i.choices[l];break}if(o)return o.filter(l=>!n||l.startsWith(n))}previousArgHasChoices(e){let t=this.getPreviousArgChoices(e);return t!==void 0&&t.length>0}argsContainKey(e,t,n){let r=i=>e.indexOf((/^[^0-9]$/.test(i)?"-":"--")+i)!==-1;if(r(t)||n&&r(`no-${t}`))return!0;if(this.aliases){for(let i of this.aliases[t])if(r(i))return!0}return!1}completeOptionKey(e,t,n,r){var i,u,o,l;let c=e;if(this.zshShell||this.fishShell){let p=this.usage.getDescriptions(),C=(u=(i=this===null||this===void 0?void 0:this.aliases)===null||i===void 0?void 0:i[e])===null||u===void 0?void 0:u.find(J=>{let v=p[J];return typeof v=="string"&&v.length>0}),b=C?p[C]:void 0,q=((l=(o=p[e])!==null&&o!==void 0?o:b)!==null&&l!==void 0?l:"").replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ");this.fishShell?c=`${e} ${q}`:c=`${e.replace(/:/g,"\\:")}:${q}`}let D=p=>/^--/.test(p),f=p=>/^[^0-9]$/.test(p),m=!D(n)&&f(e)?"-":"--";t.push(m+c),r&&t.push(m+"no-"+c)}customCompletion(e,t,n,r){if(Ce(this.customCompletionFunction,null,this.shim),ql(this.customCompletionFunction)){let i=this.customCompletionFunction(n,t);return ee(i)?i.then(u=>{this.shim.process.nextTick(()=>{r(null,u)})}).catch(u=>{this.shim.process.nextTick(()=>{r(u,void 0)})}):r(null,i)}else return Wl(this.customCompletionFunction)?this.customCompletionFunction(n,t,(i=r)=>this.defaultCompletion(e,t,n,i),i=>{r(null,i)}):this.customCompletionFunction(n,t,i=>{r(null,i)})}getCompletion(e,t){let n=e.length?e[e.length-1]:"",r=this.yargs.parse(e,!0),i=this.customCompletionFunction?u=>this.customCompletion(e,u,n,t):u=>this.defaultCompletion(e,u,n,t);return ee(r)?r.then(i):i(r)}generateCompletionScript(e,t){let n;this.zshShell?n=_i:this.fishShell?n=Si:n=Oi;let r=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),n=n.replace(/{{app_name}}/g,r),n=n.replace(/{{completion_command}}/g,t),n.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}};function $i(s,e,t,n){return new hn(s,e,t,n)}function ql(s){return s.length<3}function Wl(s){return s.length>3}function Bi(s,e){if(s.length===0)return e.length;if(e.length===0)return s.length;let t=[],n;for(n=0;n<=e.length;n++)t[n]=[n];let r;for(r=0;r<=s.length;r++)t[0][r]=r;for(n=1;n<=e.length;n++)for(r=1;r<=s.length;r++)e.charAt(n-1)===s.charAt(r-1)?t[n][r]=t[n-1][r-1]:n>1&&r>1&&e.charAt(n-2)===s.charAt(r-1)&&e.charAt(n-1)===s.charAt(r-2)?t[n][r]=t[n-2][r-2]+1:t[n][r]=Math.min(t[n-1][r-1]+1,Math.min(t[n][r-1]+1,t[n-1][r]+1));return t[e.length][s.length]}var Ii=["$0","--","_"];function Ri(s,e,t){let n=t.y18n.__,r=t.y18n.__n,i={};i.nonOptionCount=function(f){let m=s.getDemandedCommands(),C=f._.length+(f["--"]?f["--"].length:0)-s.getInternalMethods().getContext().commands.length;m._&&(C<m._.min||C>m._.max)&&(C<m._.min?m._.minMsg!==void 0?e.fail(m._.minMsg?m._.minMsg.replace(/\$0/g,C.toString()).replace(/\$1/,m._.min.toString()):null):e.fail(r("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",C,C.toString(),m._.min.toString())):C>m._.max&&(m._.maxMsg!==void 0?e.fail(m._.maxMsg?m._.maxMsg.replace(/\$0/g,C.toString()).replace(/\$1/,m._.max.toString()):null):e.fail(r("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",C,C.toString(),m._.max.toString()))))},i.positionalCount=function(f,m){m<f&&e.fail(r("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",m,m+"",f+""))},i.requiredArguments=function(f,m){let p=null;for(let C of Object.keys(m))(!Object.prototype.hasOwnProperty.call(f,C)||typeof f[C]>"u")&&(p=p||{},p[C]=m[C]);if(p){let C=[];for(let F of Object.keys(p)){let q=p[F];q&&C.indexOf(q)<0&&C.push(q)}let b=C.length?`
|
|
84
|
+
${C.join(`
|
|
85
|
+
`)}`:"";e.fail(r("Missing required argument: %s","Missing required arguments: %s",Object.keys(p).length,Object.keys(p).join(", ")+b))}},i.unknownArguments=function(f,m,p,C,b=!0){var F;let q=s.getInternalMethods().getCommandInstance().getCommands(),J=[],v=s.getInternalMethods().getContext();if(Object.keys(f).forEach(U=>{!Ii.includes(U)&&!Object.prototype.hasOwnProperty.call(p,U)&&!Object.prototype.hasOwnProperty.call(s.getInternalMethods().getParseContext(),U)&&!i.isValidAndSomeAliasIsNotNew(U,m)&&J.push(U)}),b&&(v.commands.length>0||q.length>0||C)&&f._.slice(v.commands.length).forEach(U=>{q.includes(""+U)||J.push(""+U)}),b){let V=((F=s.getDemandedCommands()._)===null||F===void 0?void 0:F.max)||0,Y=v.commands.length+V;Y<f._.length&&f._.slice(Y).forEach(Z=>{Z=String(Z),!v.commands.includes(Z)&&!J.includes(Z)&&J.push(Z)})}J.length&&e.fail(r("Unknown argument: %s","Unknown arguments: %s",J.length,J.map(U=>U.trim()?U:`"${U}"`).join(", ")))},i.unknownCommands=function(f){let m=s.getInternalMethods().getCommandInstance().getCommands(),p=[],C=s.getInternalMethods().getContext();return(C.commands.length>0||m.length>0)&&f._.slice(C.commands.length).forEach(b=>{m.includes(""+b)||p.push(""+b)}),p.length>0?(e.fail(r("Unknown command: %s","Unknown commands: %s",p.length,p.join(", "))),!0):!1},i.isValidAndSomeAliasIsNotNew=function(f,m){if(!Object.prototype.hasOwnProperty.call(m,f))return!1;let p=s.parsed.newAliases;return[f,...m[f]].some(C=>!Object.prototype.hasOwnProperty.call(p,C)||!p[f])},i.limitedChoices=function(f){let m=s.getOptions(),p={};if(!Object.keys(m.choices).length)return;Object.keys(f).forEach(F=>{Ii.indexOf(F)===-1&&Object.prototype.hasOwnProperty.call(m.choices,F)&&[].concat(f[F]).forEach(q=>{m.choices[F].indexOf(q)===-1&&q!==void 0&&(p[F]=(p[F]||[]).concat(q))})});let C=Object.keys(p);if(!C.length)return;let b=n("Invalid values:");C.forEach(F=>{b+=`
|
|
86
|
+
${n("Argument: %s, Given: %s, Choices: %s",F,e.stringifiedValues(p[F]),e.stringifiedValues(m.choices[F]))}`}),e.fail(b)};let u={};i.implies=function(f,m){S("<string|object> [array|number|string]",[f,m],arguments.length),typeof f=="object"?Object.keys(f).forEach(p=>{i.implies(p,f[p])}):(s.global(f),u[f]||(u[f]=[]),Array.isArray(m)?m.forEach(p=>i.implies(f,p)):(Ce(m,void 0,t),u[f].push(m)))},i.getImplied=function(){return u};function o(D,f){let m=Number(f);return f=isNaN(m)?f:m,typeof f=="number"?f=D._.length>=f:f.match(/^--no-.+/)?(f=f.match(/^--no-(.+)/)[1],f=!Object.prototype.hasOwnProperty.call(D,f)):f=Object.prototype.hasOwnProperty.call(D,f),f}i.implications=function(f){let m=[];if(Object.keys(u).forEach(p=>{let C=p;(u[p]||[]).forEach(b=>{let F=C,q=b;F=o(f,F),b=o(f,b),F&&!b&&m.push(` ${C} -> ${q}`)})}),m.length){let p=`${n("Implications failed:")}
|
|
87
|
+
`;m.forEach(C=>{p+=C}),e.fail(p)}};let l={};i.conflicts=function(f,m){S("<string|object> [array|string]",[f,m],arguments.length),typeof f=="object"?Object.keys(f).forEach(p=>{i.conflicts(p,f[p])}):(s.global(f),l[f]||(l[f]=[]),Array.isArray(m)?m.forEach(p=>i.conflicts(f,p)):l[f].push(m))},i.getConflicting=()=>l,i.conflicting=function(f){Object.keys(f).forEach(m=>{l[m]&&l[m].forEach(p=>{p&&f[m]!==void 0&&f[p]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",m,p))})}),s.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(l).forEach(m=>{l[m].forEach(p=>{p&&f[t.Parser.camelCase(m)]!==void 0&&f[t.Parser.camelCase(p)]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",m,p))})})},i.recommendCommands=function(f,m){m=m.sort((F,q)=>q.length-F.length);let C=null,b=1/0;for(let F=0,q;(q=m[F])!==void 0;F++){let J=Bi(f,q);J<=3&&J<b&&(b=J,C=q)}C&&e.fail(n("Did you mean %s?",C))},i.reset=function(f){return u=Ke(u,m=>!f[m]),l=Ke(l,m=>!f[m]),i};let c=[];return i.freeze=function(){c.push({implied:u,conflicting:l})},i.unfreeze=function(){let f=c.pop();Ce(f,void 0,t),{implied:u,conflicting:l}=f},i}var Dn=[],Rt;function Pt(s,e,t,n){Rt=n;let r={};if(Object.prototype.hasOwnProperty.call(s,"extends")){if(typeof s.extends!="string")return r;let i=/\.json|\..*rc$/.test(s.extends),u=null;if(i)u=Gl(e,s.extends);else try{u=import.meta.resolve(s.extends)}catch{return s}Ul(u),Dn.push(u),r=i?JSON.parse(Rt.readFileSync(u,"utf8")):n.require(s.extends),delete s.extends,r=Pt(r,Rt.path.dirname(u),t,Rt)}return Dn=[],t?Pi(r,s):Object.assign({},r,s)}function Ul(s){if(Dn.indexOf(s)>-1)throw new ce(`Circular extended configurations: '${s}'.`)}function Gl(s,e){return Rt.path.resolve(s,e)}function Pi(s,e){let t={};function n(r){return r&&typeof r=="object"&&!Array.isArray(r)}Object.assign(t,s);for(let r of Object.keys(e))r!=="__proto__"&&(n(e[r])&&n(t[r])?t[r]=Pi(s[r],e[r]):t[r]=e[r]);return t}var $=function(s,e,t,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?s!==e||!r:!e.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(s,t):r?r.value=t:e.set(s,t),t},a=function(s,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?s!==e||!n:!e.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(s):n?n.value:e.get(s)},fe,lt,vt,be,ye,is,Je,ct,us,$e,os,Be,Me,Oe,Ie,as,ft,me,R,ls,cs,_e,ht,Ot,Dt,Qe,fs,T,pt,dt,mt,W,hs,qe,ae;function Qi(s){return(e=[],t=s.process.cwd(),n)=>{let r=new xn(e,t,n,s);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:!0}),r.help(),r.version(),r}}var vi=Symbol("copyDoubleDash"),ji=Symbol("copyDoubleDash"),pn=Symbol("deleteFromParserHintObject"),Li=Symbol("emitWarning"),Ni=Symbol("freeze"),Ti=Symbol("getDollarZero"),gt=Symbol("getParserConfiguration"),Mi=Symbol("getUsageConfiguration"),dn=Symbol("guessLocale"),qi=Symbol("guessVersion"),Wi=Symbol("parsePositionalNumbers"),mn=Symbol("pkgUp"),et=Symbol("populateParserHintArray"),_t=Symbol("populateParserHintSingleValueDictionary"),gn=Symbol("populateParserHintArrayDictionary"),Fn=Symbol("populateParserHintDictionary"),En=Symbol("sanitizeKey"),Cn=Symbol("setKey"),bn=Symbol("unfreeze"),Ui=Symbol("validateAsync"),Gi=Symbol("getCommandInstance"),Hi=Symbol("getContext"),Vi=Symbol("getHasOutput"),zi=Symbol("getLoggerInstance"),Yi=Symbol("getParseContext"),Xi=Symbol("getUsageInstance"),ki=Symbol("getValidationInstance"),Ds=Symbol("hasParseCallback"),Ki=Symbol("isGlobalContext"),Ft=Symbol("postProcess"),Zi=Symbol("rebase"),An=Symbol("reset"),jt=Symbol("runYargsParserAndExecuteCommands"),wn=Symbol("runValidation"),Ji=Symbol("setHasOutput"),Et=Symbol("kTrackManuallySetKeys"),Hl="en_US",xn=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,fe.set(this,void 0),lt.set(this,void 0),vt.set(this,{commands:[],fullCommands:[]}),be.set(this,null),ye.set(this,null),is.set(this,"show-hidden"),Je.set(this,null),ct.set(this,!0),us.set(this,{}),$e.set(this,!0),os.set(this,[]),Be.set(this,void 0),Me.set(this,{}),Oe.set(this,!1),Ie.set(this,null),as.set(this,!0),ft.set(this,void 0),me.set(this,""),R.set(this,void 0),ls.set(this,void 0),cs.set(this,{}),_e.set(this,null),ht.set(this,null),Ot.set(this,{}),Dt.set(this,{}),Qe.set(this,void 0),fs.set(this,!1),T.set(this,void 0),pt.set(this,!1),dt.set(this,!1),mt.set(this,!1),W.set(this,void 0),hs.set(this,{}),qe.set(this,null),ae.set(this,void 0),$(this,T,r,"f"),$(this,Qe,e,"f"),$(this,lt,t,"f"),$(this,ls,n,"f"),$(this,Be,new ss(this),"f"),this.$0=this[Ti](),this[An](),$(this,fe,a(this,fe,"f"),"f"),$(this,W,a(this,W,"f"),"f"),$(this,ae,a(this,ae,"f"),"f"),$(this,R,a(this,R,"f"),"f"),a(this,R,"f").showHiddenOpt=a(this,is,"f"),$(this,ft,this[ji](),"f"),a(this,T,"f").y18n.setLocale(Hl)}addHelpOpt(e,t){let n="help";return S("[string|boolean] [string]",[e,t],arguments.length),a(this,Ie,"f")&&(this[pn](a(this,Ie,"f")),$(this,Ie,null,"f")),e===!1&&t===void 0?this:($(this,Ie,typeof e=="string"?e:n,"f"),this.boolean(a(this,Ie,"f")),this.describe(a(this,Ie,"f"),t||a(this,W,"f").deferY18nLookup("Show help")),this)}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(S("[string|boolean] [string]",[e,t],arguments.length),e===!1&&t===void 0)return this;let n=typeof e=="string"?e:a(this,is,"f");return this.boolean(n),this.describe(n,t||a(this,W,"f").deferY18nLookup("Show hidden options")),a(this,R,"f").showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return S("<object|string|array> [string|array]",[e,t],arguments.length),this[gn](this.alias.bind(this),"alias",e,t),this}array(e){return S("<array|string>",[e],arguments.length),this[et]("array",e),this[Et](e),this}boolean(e){return S("<array|string>",[e],arguments.length),this[et]("boolean",e),this[Et](e),this}check(e,t){return S("<function> [boolean]",[e,t],arguments.length),this.middleware((n,r)=>at(()=>e(n,r.getOptions()),i=>(i?(typeof i=="string"||i instanceof Error)&&a(this,W,"f").fail(i.toString(),i):a(this,W,"f").fail(a(this,T,"f").y18n.__("Argument check failed: %s",e.toString())),n),i=>(a(this,W,"f").fail(i.message?i.message:i.toString(),i),n)),!1,t),this}choices(e,t){return S("<object|string|array> [string|array]",[e,t],arguments.length),this[gn](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if(S("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new ce("coerce callback must be provided");for(let r of e)this.coerce(r,t);return this}else if(typeof e=="object"){for(let r of Object.keys(e))this.coerce(r,e[r]);return this}if(!t)throw new ce("coerce callback must be provided");let n=e;return a(this,R,"f").key[n]=!0,a(this,Be,"f").addCoerceMiddleware((r,i)=>{var u;let o=(u=i.getAliases()[n])!==null&&u!==void 0?u:[],l=[n,...o].filter(c=>Object.prototype.hasOwnProperty.call(r,c));return l.length===0?r:at(()=>t(r[l[0]]),c=>(l.forEach(D=>{r[D]=c}),r),c=>{throw new ce(c.message)})},n),this}conflicts(e,t){return S("<string|object> [string|array]",[e,t],arguments.length),a(this,ae,"f").conflicts(e,t),this}config(e="config",t,n){return S("[object|string] [string|function] [function]",[e,t,n],arguments.length),typeof e=="object"&&!Array.isArray(e)?(e=Pt(e,a(this,lt,"f"),this[gt]()["deep-merge-config"]||!1,a(this,T,"f")),a(this,R,"f").configObjects=(a(this,R,"f").configObjects||[]).concat(e),this):(typeof t=="function"&&(n=t,t=void 0),this.describe(e,t||a(this,W,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach(r=>{a(this,R,"f").config[r]=n||!0}),this)}completion(e,t,n){return S("[string] [string|boolean|function] [function]",[e,t,n],arguments.length),typeof t=="function"&&(n=t,t=void 0),$(this,ye,e||a(this,ye,"f")||"completion","f"),!t&&t!==!1&&(t="generate completion script"),this.command(a(this,ye,"f"),t),n&&a(this,be,"f").registerFunction(n),this}command(e,t,n,r,i,u){return S("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,n,r,i,u],arguments.length),a(this,fe,"f").addHandler(e,t,n,r,i,u),this}commands(e,t,n,r,i,u){return this.command(e,t,n,r,i,u)}commandDir(e,t){S("<string> [object]",[e,t],arguments.length);let n=a(this,ls,"f")||a(this,T,"f").require;return a(this,fe,"f").addDirectory(e,n,a(this,T,"f").getCallerFile(),t),this}count(e){return S("<array|string>",[e],arguments.length),this[et]("count",e),this[Et](e),this}default(e,t,n){return S("<object|string|array> [*] [string]",[e,t,n],arguments.length),n&&(ln(e,a(this,T,"f")),a(this,R,"f").defaultDescription[e]=n),typeof t=="function"&&(ln(e,a(this,T,"f")),a(this,R,"f").defaultDescription[e]||(a(this,R,"f").defaultDescription[e]=a(this,W,"f").functionDescription(t)),t=t.call()),this[_t](this.default.bind(this),"default",e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return S("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,n,r],arguments.length),typeof t!="number"&&(n=t,t=1/0),this.global("_",!1),a(this,R,"f").demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(r=>{Ce(n,!0,a(this,T,"f")),this.demandOption(r,n)}),t=1/0):typeof t!="number"&&(n=t,t=1/0),typeof e=="number"?(Ce(n,!0,a(this,T,"f")),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(r=>{Ce(n,!0,a(this,T,"f")),this.demandOption(r,n)}):typeof n=="string"?this.demandOption(e,n):(n===!0||typeof n>"u")&&this.demandOption(e),this}demandOption(e,t){return S("<object|string|array> [string]",[e,t],arguments.length),this[_t](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return S("<string> [string|boolean]",[e,t],arguments.length),a(this,R,"f").deprecatedOptions[e]=t,this}describe(e,t){return S("<object|string|array> [string]",[e,t],arguments.length),this[Cn](e,!0),a(this,W,"f").describe(e,t),this}detectLocale(e){return S("<boolean>",[e],arguments.length),$(this,ct,e,"f"),this}env(e){return S("[string|boolean]",[e],arguments.length),e===!1?delete a(this,R,"f").envPrefix:a(this,R,"f").envPrefix=e||"",this}epilogue(e){return S("<string>",[e],arguments.length),a(this,W,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return S("<string|array> [string]",[e,t],arguments.length),Array.isArray(e)?e.forEach(n=>this.example(...n)):a(this,W,"f").example(e,t),this}exit(e,t){$(this,Oe,!0,"f"),$(this,Je,t,"f"),a(this,$e,"f")&&a(this,T,"f").process.exit(e)}exitProcess(e=!0){return S("[boolean]",[e],arguments.length),$(this,$e,e,"f"),this}fail(e){if(S("<function|boolean>",[e],arguments.length),typeof e=="boolean"&&e!==!1)throw new ce("Invalid first argument. Expected function or boolean 'false'");return a(this,W,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return S("<array> [function]",[e,t],arguments.length),t?a(this,be,"f").getCompletion(e,t):new Promise((n,r)=>{a(this,be,"f").getCompletion(e,(i,u)=>{i?r(i):n(u)})})}getDemandedOptions(){return S([],0),a(this,R,"f").demandedOptions}getDemandedCommands(){return S([],0),a(this,R,"f").demandedCommands}getDeprecatedOptions(){return S([],0),a(this,R,"f").deprecatedOptions}getDetectLocale(){return a(this,ct,"f")}getExitProcess(){return a(this,$e,"f")}getGroups(){return Object.assign({},a(this,Me,"f"),a(this,Dt,"f"))}getHelp(){if($(this,Oe,!0,"f"),!a(this,W,"f").hasCachedHelpMessage()){if(!this.parsed){let t=this[jt](a(this,Qe,"f"),void 0,void 0,0,!0);if(ee(t))return t.then(()=>a(this,W,"f").help())}let e=a(this,fe,"f").runDefaultBuilderOn(this);if(ee(e))return e.then(()=>a(this,W,"f").help())}return Promise.resolve(a(this,W,"f").help())}getOptions(){return a(this,R,"f")}getStrict(){return a(this,pt,"f")}getStrictCommands(){return a(this,dt,"f")}getStrictOptions(){return a(this,mt,"f")}global(e,t){return S("<string|array> [boolean]",[e,t],arguments.length),e=[].concat(e),t!==!1?a(this,R,"f").local=a(this,R,"f").local.filter(n=>e.indexOf(n)===-1):e.forEach(n=>{a(this,R,"f").local.includes(n)||a(this,R,"f").local.push(n)}),this}group(e,t){S("<string|array> <string>",[e,t],arguments.length);let n=a(this,Dt,"f")[t]||a(this,Me,"f")[t];a(this,Dt,"f")[t]&&delete a(this,Dt,"f")[t];let r={};return a(this,Me,"f")[t]=(n||[]).concat(e).filter(i=>r[i]?!1:r[i]=!0),this}hide(e){return S("<string>",[e],arguments.length),a(this,R,"f").hiddenOptions.push(e),this}implies(e,t){return S("<string|object> [number|string|array]",[e,t],arguments.length),a(this,ae,"f").implies(e,t),this}locale(e){return S("[string]",[e],arguments.length),e===void 0?(this[dn](),a(this,T,"f").y18n.getLocale()):($(this,ct,!1,"f"),a(this,T,"f").y18n.setLocale(e),this)}middleware(e,t,n){return a(this,Be,"f").addMiddleware(e,!!t,n)}nargs(e,t){return S("<string|object|array> [number]",[e,t],arguments.length),this[_t](this.nargs.bind(this),"narg",e,t),this}normalize(e){return S("<array|string>",[e],arguments.length),this[et]("normalize",e),this}number(e){return S("<array|string>",[e],arguments.length),this[et]("number",e),this[Et](e),this}option(e,t){if(S("<string|object> [object]",[e,t],arguments.length),typeof e=="object")Object.keys(e).forEach(n=>{this.options(n,e[n])});else{typeof t!="object"&&(t={}),this[Et](e),a(this,qe,"f")&&(e==="version"||t?.alias==="version")&&this[Li](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
|
|
88
|
+
`),void 0,"versionWarning"),a(this,R,"f").key[e]=!0,t.alias&&this.alias(e,t.alias);let n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);let r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,typeof t.demandOption=="string"?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),"default"in t&&this.default(e,t.default),t.implies!==void 0&&this.implies(e,t.implies),t.nargs!==void 0&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||t.type==="boolean")&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||t.type==="array")&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||t.type==="number")&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||t.type==="string")&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||t.type==="count")&&this.count(e),typeof t.global=="boolean"&&this.global(e,t.global),t.defaultDescription&&(a(this,R,"f").defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,u=a(this,W,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(u,e)||typeof i=="string")&&this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){S("[string|array] [function|boolean|object] [function]",[e,t,n],arguments.length),this[Ni](),typeof e>"u"&&(e=a(this,Qe,"f")),typeof t=="object"&&($(this,ht,t,"f"),t=n),typeof t=="function"&&($(this,_e,t,"f"),t=!1),t||$(this,Qe,e,"f"),a(this,_e,"f")&&$(this,$e,!1,"f");let r=this[jt](e,!!t),i=this.parsed;return a(this,be,"f").setParsed(this.parsed),ee(r)?r.then(u=>(a(this,_e,"f")&&a(this,_e,"f").call(this,a(this,Je,"f"),u,a(this,me,"f")),u)).catch(u=>{throw a(this,_e,"f")&&a(this,_e,"f")(u,this.parsed.argv,a(this,me,"f")),u}).finally(()=>{this[bn](),this.parsed=i}):(a(this,_e,"f")&&a(this,_e,"f").call(this,a(this,Je,"f"),r,a(this,me,"f")),this[bn](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return ee(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(ee(r))throw new ce(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return r}parserConfiguration(e){return S("<object>",[e],arguments.length),$(this,cs,e,"f"),this}pkgConf(e,t){S("<string> [string]",[e,t],arguments.length);let n=null,r=this[mn](t||a(this,lt,"f"));return r[e]&&typeof r[e]=="object"&&(n=Pt(r[e],t||a(this,lt,"f"),this[gt]()["deep-merge-config"]||!1,a(this,T,"f")),a(this,R,"f").configObjects=(a(this,R,"f").configObjects||[]).concat(n)),this}positional(e,t){S("<string> <object>",[e,t],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=Ke(t,(u,o)=>u==="type"&&!["string","number","boolean"].includes(o)?!1:n.includes(u));let r=a(this,vt,"f").fullCommands[a(this,vt,"f").fullCommands.length-1],i=r?a(this,fe,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return xt(i).forEach(u=>{let o=i[u];Array.isArray(o)?o.indexOf(e)!==-1&&(t[u]=!0):o[e]&&!(u in t)&&(t[u]=o[e])}),this.group(e,a(this,W,"f").getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return S("[boolean]",[e],arguments.length),$(this,fs,e,"f"),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return S("<array|string|object> [number]",[e],arguments.length),typeof e=="string"&&a(this,R,"f").narg[e]?this:(this[_t](this.requiresArg.bind(this),"narg",e,NaN),this)}showCompletionScript(e,t){return S("[string] [string]",[e,t],arguments.length),e=e||this.$0,a(this,ft,"f").log(a(this,be,"f").generateCompletionScript(e,t||a(this,ye,"f")||"completion")),this}showHelp(e){if(S("[string|function]",[e],arguments.length),$(this,Oe,!0,"f"),!a(this,W,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[jt](a(this,Qe,"f"),void 0,void 0,0,!0);if(ee(n))return n.then(()=>{a(this,W,"f").showHelp(e)}),this}let t=a(this,fe,"f").runDefaultBuilderOn(this);if(ee(t))return t.then(()=>{a(this,W,"f").showHelp(e)}),this}return a(this,W,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return S("[boolean|string] [string]",[e,t],arguments.length),a(this,W,"f").showHelpOnFail(e,t),this}showVersion(e){return S("[string|function]",[e],arguments.length),a(this,W,"f").showVersion(e),this}skipValidation(e){return S("<array|string>",[e],arguments.length),this[et]("skipValidation",e),this}strict(e){return S("[boolean]",[e],arguments.length),$(this,pt,e!==!1,"f"),this}strictCommands(e){return S("[boolean]",[e],arguments.length),$(this,dt,e!==!1,"f"),this}strictOptions(e){return S("[boolean]",[e],arguments.length),$(this,mt,e!==!1,"f"),this}string(e){return S("<array|string>",[e],arguments.length),this[et]("string",e),this[Et](e),this}terminalWidth(){return S([],0),a(this,T,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return S("<object>",[e],arguments.length),$(this,ct,!1,"f"),a(this,T,"f").y18n.updateLocale(e),this}usage(e,t,n,r){if(S("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,n,r],arguments.length),t!==void 0){if(Ce(e,null,a(this,T,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,n,r);throw new ce(".usage() description must start with $0 if being used as alias for .command()")}else return a(this,W,"f").usage(e),this}usageConfiguration(e){return S("<object>",[e],arguments.length),$(this,hs,e,"f"),this}version(e,t,n){let r="version";if(S("[boolean|string] [string] [string]",[e,t,n],arguments.length),a(this,qe,"f")&&(this[pn](a(this,qe,"f")),a(this,W,"f").version(void 0),$(this,qe,null,"f")),arguments.length===0)n=this[qi](),e=r;else if(arguments.length===1){if(e===!1)return this;n=e,e=r}else arguments.length===2&&(n=t,t=void 0);return $(this,qe,typeof e=="string"?e:r,"f"),t=t||a(this,W,"f").deferY18nLookup("Show version number"),a(this,W,"f").version(n||void 0),this.boolean(a(this,qe,"f")),this.describe(a(this,qe,"f"),t),this}wrap(e){return S("<number|null|undefined>",[e],arguments.length),a(this,W,"f").wrap(e),this}[(fe=new WeakMap,lt=new WeakMap,vt=new WeakMap,be=new WeakMap,ye=new WeakMap,is=new WeakMap,Je=new WeakMap,ct=new WeakMap,us=new WeakMap,$e=new WeakMap,os=new WeakMap,Be=new WeakMap,Me=new WeakMap,Oe=new WeakMap,Ie=new WeakMap,as=new WeakMap,ft=new WeakMap,me=new WeakMap,R=new WeakMap,ls=new WeakMap,cs=new WeakMap,_e=new WeakMap,ht=new WeakMap,Ot=new WeakMap,Dt=new WeakMap,Qe=new WeakMap,fs=new WeakMap,T=new WeakMap,pt=new WeakMap,dt=new WeakMap,mt=new WeakMap,W=new WeakMap,hs=new WeakMap,qe=new WeakMap,ae=new WeakMap,vi)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch{}return e}[ji](){return{log:(...e)=>{this[Ds]()||console.log(...e),$(this,Oe,!0,"f"),a(this,me,"f").length&&$(this,me,a(this,me,"f")+`
|
|
89
|
+
`,"f"),$(this,me,a(this,me,"f")+e.join(" "),"f")},error:(...e)=>{this[Ds]()||console.error(...e),$(this,Oe,!0,"f"),a(this,me,"f").length&&$(this,me,a(this,me,"f")+`
|
|
90
|
+
`,"f"),$(this,me,a(this,me,"f")+e.join(" "),"f")}}}[pn](e){xt(a(this,R,"f")).forEach(t=>{if((r=>r==="configObjects")(t))return;let n=a(this,R,"f")[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete a(this,W,"f").getDescriptions()[e]}[Li](e,t,n){a(this,us,"f")[n]||(a(this,T,"f").process.emitWarning(e,t),a(this,us,"f")[n]=!0)}[Ni](){a(this,os,"f").push({options:a(this,R,"f"),configObjects:a(this,R,"f").configObjects.slice(0),exitProcess:a(this,$e,"f"),groups:a(this,Me,"f"),strict:a(this,pt,"f"),strictCommands:a(this,dt,"f"),strictOptions:a(this,mt,"f"),completionCommand:a(this,ye,"f"),output:a(this,me,"f"),exitError:a(this,Je,"f"),hasOutput:a(this,Oe,"f"),parsed:this.parsed,parseFn:a(this,_e,"f"),parseContext:a(this,ht,"f")}),a(this,W,"f").freeze(),a(this,ae,"f").freeze(),a(this,fe,"f").freeze(),a(this,Be,"f").freeze()}[Ti](){let e="",t;return/\b(node|iojs|electron|bun)(\.exe)?$/.test(a(this,T,"f").process.argv()[0])?t=a(this,T,"f").process.argv().slice(1,2):t=a(this,T,"f").process.argv().slice(0,1),e=t.map(n=>{let r=this[Zi](a(this,lt,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&r.length<n.length?r:n}).join(" ").trim(),a(this,T,"f").getEnv("_")&&a(this,T,"f").getProcessArgvBin()===a(this,T,"f").getEnv("_")&&(e=a(this,T,"f").getEnv("_").replace(`${a(this,T,"f").path.dirname(a(this,T,"f").process.execPath())}/`,"")),e}[gt](){return a(this,cs,"f")}[Mi](){return a(this,hs,"f")}[dn](){if(!a(this,ct,"f"))return;let e=a(this,T,"f").getEnv("LC_ALL")||a(this,T,"f").getEnv("LC_MESSAGES")||a(this,T,"f").getEnv("LANG")||a(this,T,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[qi](){return this[mn]().version||"unknown"}[Wi](e){let t=e["--"]?e["--"]:e._;for(let n=0,r;(r=t[n])!==void 0;n++)a(this,T,"f").Parser.looksLikeNumber(r)&&Number.isSafeInteger(Math.floor(parseFloat(`${r}`)))&&(t[n]=Number(r));return e}[mn](e){let t=e||"*";if(a(this,Ot,"f")[t])return a(this,Ot,"f")[t];let n={};try{let r=e||a(this,T,"f").mainFilename;a(this,T,"f").path.extname(r)&&(r=a(this,T,"f").path.dirname(r));let i=a(this,T,"f").findUp(r,(u,o)=>{if(o.includes("package.json"))return"package.json"});Ce(i,void 0,a(this,T,"f")),n=JSON.parse(a(this,T,"f").readFileSync(i,"utf8"))}catch{}return a(this,Ot,"f")[t]=n||{},a(this,Ot,"f")[t]}[et](e,t){t=[].concat(t),t.forEach(n=>{n=this[En](n),a(this,R,"f")[e].push(n)})}[_t](e,t,n,r){this[Fn](e,t,n,r,(i,u,o)=>{a(this,R,"f")[i][u]=o})}[gn](e,t,n,r){this[Fn](e,t,n,r,(i,u,o)=>{a(this,R,"f")[i][u]=(a(this,R,"f")[i][u]||[]).concat(o)})}[Fn](e,t,n,r,i){if(Array.isArray(n))n.forEach(u=>{e(u,r)});else if((u=>typeof u=="object")(n))for(let u of xt(n))e(u,n[u]);else i(t,this[En](n),r)}[En](e){return e==="__proto__"?"___proto___":e}[Cn](e,t){return this[_t](this[Cn].bind(this),"key",e,t),this}[bn](){var e,t,n,r,i,u,o,l,c,D,f,m;let p=a(this,os,"f").pop();Ce(p,void 0,a(this,T,"f"));let C;e=this,t=this,n=this,r=this,i=this,u=this,o=this,l=this,c=this,D=this,f=this,m=this,{options:{set value(b){$(e,R,b,"f")}}.value,configObjects:C,exitProcess:{set value(b){$(t,$e,b,"f")}}.value,groups:{set value(b){$(n,Me,b,"f")}}.value,output:{set value(b){$(r,me,b,"f")}}.value,exitError:{set value(b){$(i,Je,b,"f")}}.value,hasOutput:{set value(b){$(u,Oe,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){$(o,pt,b,"f")}}.value,strictCommands:{set value(b){$(l,dt,b,"f")}}.value,strictOptions:{set value(b){$(c,mt,b,"f")}}.value,completionCommand:{set value(b){$(D,ye,b,"f")}}.value,parseFn:{set value(b){$(f,_e,b,"f")}}.value,parseContext:{set value(b){$(m,ht,b,"f")}}.value}=p,a(this,R,"f").configObjects=C,a(this,W,"f").unfreeze(),a(this,ae,"f").unfreeze(),a(this,fe,"f").unfreeze(),a(this,Be,"f").unfreeze()}[Ui](e,t){return at(t,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[Gi].bind(this),getContext:this[Hi].bind(this),getHasOutput:this[Vi].bind(this),getLoggerInstance:this[zi].bind(this),getParseContext:this[Yi].bind(this),getParserConfiguration:this[gt].bind(this),getUsageConfiguration:this[Mi].bind(this),getUsageInstance:this[Xi].bind(this),getValidationInstance:this[ki].bind(this),hasParseCallback:this[Ds].bind(this),isGlobalContext:this[Ki].bind(this),postProcess:this[Ft].bind(this),reset:this[An].bind(this),runValidation:this[wn].bind(this),runYargsParserAndExecuteCommands:this[jt].bind(this),setHasOutput:this[Ji].bind(this)}}[Gi](){return a(this,fe,"f")}[Hi](){return a(this,vt,"f")}[Vi](){return a(this,Oe,"f")}[zi](){return a(this,ft,"f")}[Yi](){return a(this,ht,"f")||{}}[Xi](){return a(this,W,"f")}[ki](){return a(this,ae,"f")}[Ds](){return!!a(this,_e,"f")}[Ki](){return a(this,as,"f")}[Ft](e,t,n,r){return n||ee(e)||(t||(e=this[vi](e)),(this[gt]()["parse-positional-numbers"]||this[gt]()["parse-positional-numbers"]===void 0)&&(e=this[Wi](e)),r&&(e=ot(e,this,a(this,Be,"f").getMiddleware(),!1))),e}[An](e={}){$(this,R,a(this,R,"f")||{},"f");let t={};t.local=a(this,R,"f").local||[],t.configObjects=a(this,R,"f").configObjects||[];let n={};t.local.forEach(u=>{n[u]=!0,(e[u]||[]).forEach(o=>{n[o]=!0})}),Object.assign(a(this,Dt,"f"),Object.keys(a(this,Me,"f")).reduce((u,o)=>{let l=a(this,Me,"f")[o].filter(c=>!(c in n));return l.length>0&&(u[o]=l),u},{})),$(this,Me,{},"f");let r=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],i=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return r.forEach(u=>{t[u]=(a(this,R,"f")[u]||[]).filter(o=>!n[o])}),i.forEach(u=>{t[u]=Ke(a(this,R,"f")[u],o=>!n[o])}),t.envPrefix=a(this,R,"f").envPrefix,$(this,R,t,"f"),$(this,W,a(this,W,"f")?a(this,W,"f").reset(n):yi(this,a(this,T,"f")),"f"),$(this,ae,a(this,ae,"f")?a(this,ae,"f").reset(n):Ri(this,a(this,W,"f"),a(this,T,"f")),"f"),$(this,fe,a(this,fe,"f")?a(this,fe,"f").reset():Ai(a(this,W,"f"),a(this,ae,"f"),a(this,Be,"f"),a(this,T,"f")),"f"),a(this,be,"f")||$(this,be,$i(this,a(this,W,"f"),a(this,fe,"f"),a(this,T,"f")),"f"),a(this,Be,"f").reset(),$(this,ye,null,"f"),$(this,me,"","f"),$(this,Je,null,"f"),$(this,Oe,!1,"f"),this.parsed=!1,this}[Zi](e,t){return a(this,T,"f").path.relative(e,t)}[jt](e,t,n,r=0,i=!1){var u,o,l,c;let D=!!n||i;e=e||a(this,Qe,"f"),a(this,R,"f").__=a(this,T,"f").y18n.__,a(this,R,"f").configuration=this[gt]();let f=!!a(this,R,"f").configuration["populate--"],m=Object.assign({},a(this,R,"f").configuration,{"populate--":!0}),p=a(this,T,"f").Parser.detailed(e,Object.assign({},a(this,R,"f"),{configuration:{"parse-positional-numbers":!1,...m}})),C=Object.assign(p.argv,a(this,ht,"f")),b,F=p.aliases,q=!1,J=!1;Object.keys(C).forEach(v=>{v===a(this,Ie,"f")&&C[v]?q=!0:v===a(this,qe,"f")&&C[v]&&(J=!0)}),C.$0=this.$0,this.parsed=p,r===0&&a(this,W,"f").clearCachedHelpMessage();try{if(this[dn](),t)return this[Ft](C,f,!!n,!1);a(this,Ie,"f")&&[a(this,Ie,"f")].concat(F[a(this,Ie,"f")]||[]).filter(Z=>Z.length>1).includes(""+C._[C._.length-1])&&(C._.pop(),q=!0),$(this,as,!1,"f");let v=a(this,fe,"f").getCommands(),U=!((u=a(this,be,"f"))===null||u===void 0)&&u.completionKey?[(o=a(this,be,"f"))===null||o===void 0?void 0:o.completionKey,...(c=this.getAliases()[(l=a(this,be,"f"))===null||l===void 0?void 0:l.completionKey])!==null&&c!==void 0?c:[]].some(Y=>Object.prototype.hasOwnProperty.call(C,Y)):!1,V=q||U||i;if(C._.length){if(v.length){let Y;for(let Z=r||0,Q;C._[Z]!==void 0;Z++)if(Q=String(C._[Z]),v.includes(Q)&&Q!==a(this,ye,"f")){let se=a(this,fe,"f").runCommand(Q,this,p,Z+1,i,q||J||i);return this[Ft](se,f,!!n,!1)}else if(!Y&&Q!==a(this,ye,"f")){Y=Q;break}!a(this,fe,"f").hasDefaultCommand()&&a(this,fs,"f")&&Y&&!V&&a(this,ae,"f").recommendCommands(Y,v)}a(this,ye,"f")&&C._.includes(a(this,ye,"f"))&&!U&&(a(this,$e,"f")&&Ze(!0),this.showCompletionScript(),this.exit(0))}if(a(this,fe,"f").hasDefaultCommand()&&!V){let Y=a(this,fe,"f").runCommand(null,this,p,0,i,q||J||i);return this[Ft](Y,f,!!n,!1)}if(U){a(this,$e,"f")&&Ze(!0),e=[].concat(e);let Y=e.slice(e.indexOf(`--${a(this,be,"f").completionKey}`)+1);return a(this,be,"f").getCompletion(Y,(Z,Q)=>{if(Z)throw new ce(Z.message);(Q||[]).forEach(se=>{a(this,ft,"f").log(se)}),this.exit(0)}),this[Ft](C,!f,!!n,!1)}if(a(this,Oe,"f")||(q?(a(this,$e,"f")&&Ze(!0),D=!0,this.showHelp(Y=>{a(this,ft,"f").log(Y),this.exit(0)})):J&&(a(this,$e,"f")&&Ze(!0),D=!0,a(this,W,"f").showVersion("log"),this.exit(0))),!D&&a(this,R,"f").skipValidation.length>0&&(D=Object.keys(C).some(Y=>a(this,R,"f").skipValidation.indexOf(Y)>=0&&C[Y]===!0)),!D){if(p.error)throw new ce(p.error.message);if(!U){let Y=this[wn](F,{},p.error);n||(b=ot(C,this,a(this,Be,"f").getMiddleware(),!0)),b=this[Ui](Y,b??C),ee(b)&&!n&&(b=b.then(()=>ot(C,this,a(this,Be,"f").getMiddleware(),!1)))}}}catch(v){if(v instanceof ce)a(this,W,"f").fail(v.message,v);else throw v}return this[Ft](b??C,f,!!n,!0)}[wn](e,t,n,r){let i={...this.getDemandedOptions()};return u=>{if(n)throw new ce(n.message);a(this,ae,"f").nonOptionCount(u),a(this,ae,"f").requiredArguments(u,i);let o=!1;a(this,dt,"f")&&(o=a(this,ae,"f").unknownCommands(u)),a(this,pt,"f")&&!o?a(this,ae,"f").unknownArguments(u,e,t,!!r):a(this,mt,"f")&&a(this,ae,"f").unknownArguments(u,e,{},!1,!1),a(this,ae,"f").limitedChoices(u),a(this,ae,"f").implications(u),a(this,ae,"f").conflicting(u)}}[Ji](){$(this,Oe,!0,"f")}[Et](e){if(typeof e=="string")a(this,R,"f").key[e]=!0;else for(let t of e)a(this,R,"f").key[t]=!0}};function wi(s){return!!s&&typeof s.getInternalMethods=="function"}var Vl=Qi(an),zl=Vl;var lD=zt(na(),1);var aD=!!(typeof process<"u"&&process.version);var Ut={cdpSend:"puppeteer:protocol:SEND \u25BA",cdpReceive:"puppeteer:protocol:RECV \u25C0",bidiSend:"puppeteer:webDriverBiDi:SEND \u25BA",bidiReceive:"puppeteer:webDriverBiDi:RECV \u25C0",error:"puppeteer:error",ffmpeg:"puppeteer:ffmpeg"};function ra(s){return{all:s=s||new Map,on:function(e,t){var n=s.get(e);n?n.push(t):s.set(e,[t])},off:function(e,t){var n=s.get(e);n&&(t?n.splice(n.indexOf(t)>>>0,1):s.set(e,[]))},emit:function(e,t){var n=s.get(e);n&&n.slice().map(function(r){r(t)}),(n=s.get("*"))&&n.slice().map(function(r){r(e,t)})}}}Symbol.dispose??=Symbol("dispose");Symbol.asyncDispose??=Symbol("asyncDispose");var Ne=Symbol.dispose,Ue=Symbol.asyncDispose,Kn=class s{#s=!1;#e=[];get disposed(){return this.#s}dispose(){this[Ne]()}use(e){return e&&typeof e[Ne]=="function"&&this.#e.push(e),e}adopt(e,t){return this.#e.push({[Ne](){t(e)}}),e}defer(e){this.#e.push({[Ne](){e()}})}move(){if(this.#s)throw new ReferenceError("A disposed stack can not use anything new");let e=new s;return e.#e=this.#e,this.#e=[],this.#s=!0,e}[Ne](){if(this.#s)return;this.#s=!0;let e=[];for(let t of this.#e.reverse())try{t[Ne]()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1){let t=null;for(let n of e)t===null?t=n:t=new Gt(n,t);throw t}}[Symbol.toStringTag]="DisposableStack"},ia=globalThis.DisposableStack??Kn,Zn=class s{#s=!1;#e=[];get disposed(){return this.#s}async disposeAsync(){await this[Ue]()}use(e){if(e){let t=e[Ue],n=e[Ne];typeof t=="function"?this.#e.push(e):typeof n=="function"&&this.#e.push({[Ue]:async()=>{e[Ne]()}})}return e}adopt(e,t){return this.#e.push({[Ue](){return t(e)}}),e}defer(e){this.#e.push({[Ue](){return e()}})}move(){if(this.#s)throw new ReferenceError("A disposed stack can not use anything new");let e=new s;return e.#e=this.#e,this.#e=[],this.#s=!0,e}async[Ue](){if(this.#s)return;this.#s=!0;let e=[];for(let t of this.#e.reverse())try{await t[Ue]()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1){let t=null;for(let n of e)t===null?t=n:t=new Gt(n,t);throw t}}[Symbol.toStringTag]="AsyncDisposableStack"},Zm=globalThis.AsyncDisposableStack??Zn,Gt=class extends Error{#s;#e;constructor(e,t,n="An error was suppressed during disposal"){super(n),this.name="SuppressedError",this.#s=e,this.#e=t}get error(){return this.#s}get suppressed(){return this.#e}},Jm=globalThis.SuppressedError??Gt;var Ht=class{#s;#e=new Map;#n;constructor(e=ra(new Map),t){this.#s=e,this.#n=t}on(e,t){let n=this.#e.get(e);return n===void 0?this.#e.set(e,[t]):n.push(t),this.#s.on(e,t),this}off(e,t){let n=this.#e.get(e)??[];if(t===void 0){for(let i of n)this.#s.off(e,i);return this.#e.delete(e),this}let r=n.lastIndexOf(t);return r>-1&&this.#s.off(e,...n.splice(r,1)),this}emit(e,t){return this.#s.emit(e,t),this.listenerCount(e)>0}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n)}listenerCount(e){return this.#e.get(e)?.length||0}removeAllListeners(e){return e!==void 0?this.off(e):(this[Ne](),this)}[Ne](){this[Ue]().catch(e=>{this.#n?.(Ut.error)?.(e)})}async[Ue](){for(let[e,t]of this.#e)for(let n of t)this.#s.off(e,n);this.#e.clear()}};var Jn=(s,e)=>{if(!s)throw new Error(e)};var Qn=class{#s;#e=new ia;#n;#t=!1;#r=[];onclose;onmessage;constructor(e,t,n){this.#s=e,this.#n=n;let r=this.#e.use(new Ht(t,n));r.on("data",u=>this.#a(u)),r.on("close",()=>{this.onclose&&this.onclose.call(null)}),r.on("error",u=>{this.#n?.(Ut.error)?.(u)}),this.#e.use(new Ht(e)).on("error",u=>{this.#n?.(Ut.error)?.(u)})}send(e){Jn(!this.#t,"`PipeTransport` is closed."),this.#s.write(e),this.#s.write("\0")}#a(e){if(Jn(!this.#t,"`PipeTransport` is closed."),this.#r.push(e),e.indexOf("\0")===-1)return;let t=Buffer.concat(this.#r),n=0,r=t.indexOf("\0");for(;r!==-1;){let i=t.toString(void 0,n,r);setImmediate(()=>{this.onmessage&&this.onmessage.call(null,i)}),n=r+1,r=t.indexOf("\0",n)}n>=t.length?this.#r=[]:this.#r=[t.subarray(n)]}close(){this.#t=!0,this.#e.dispose()}};var f0=globalThis.URLPattern;var export_semver=lD.default;export{Qn as PipeTransport,f0 as URLPattern,ri as hideBin,export_semver as semver,zl as yargs};
|
|
91
|
+
/**
|
|
92
|
+
* @license
|
|
93
|
+
* Copyright 2026 Google LLC
|
|
94
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
95
|
+
*/
|
|
96
|
+
/*! Bundled license information:
|
|
97
|
+
|
|
98
|
+
yargs-parser/build/lib/string-utils.js:
|
|
99
|
+
yargs-parser/build/lib/tokenize-arg-string.js:
|
|
100
|
+
yargs-parser/build/lib/yargs-parser-types.js:
|
|
101
|
+
yargs-parser/build/lib/yargs-parser.js:
|
|
102
|
+
(**
|
|
103
|
+
* @license
|
|
104
|
+
* Copyright (c) 2016, Contributors
|
|
105
|
+
* SPDX-License-Identifier: ISC
|
|
106
|
+
*)
|
|
107
|
+
|
|
108
|
+
yargs-parser/build/lib/index.js:
|
|
109
|
+
(**
|
|
110
|
+
* @fileoverview Main entrypoint for libraries using yargs-parser in Node.js
|
|
111
|
+
*
|
|
112
|
+
* @license
|
|
113
|
+
* Copyright (c) 2016, Contributors
|
|
114
|
+
* SPDX-License-Identifier: ISC
|
|
115
|
+
*)
|
|
116
|
+
|
|
117
|
+
puppeteer-core/lib/puppeteer/environment.js:
|
|
118
|
+
puppeteer-core/lib/puppeteer/common/Debug.js:
|
|
119
|
+
puppeteer-core/lib/puppeteer/util/assert.js:
|
|
120
|
+
(**
|
|
121
|
+
* @license
|
|
122
|
+
* Copyright 2020 Google Inc.
|
|
123
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
124
|
+
*)
|
|
125
|
+
|
|
126
|
+
puppeteer-core/lib/puppeteer/util/disposable.js:
|
|
127
|
+
(**
|
|
128
|
+
* @license
|
|
129
|
+
* Copyright 2023 Google Inc.
|
|
130
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
131
|
+
*)
|
|
132
|
+
|
|
133
|
+
puppeteer-core/lib/puppeteer/common/EventEmitter.js:
|
|
134
|
+
(**
|
|
135
|
+
* @license
|
|
136
|
+
* Copyright 2022 Google Inc.
|
|
137
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
138
|
+
*)
|
|
139
|
+
*/
|