From cb06eeec639979043e0c6aec37138e34256ddabe Mon Sep 17 00:00:00 2001 From: Ruben Romero Montes Date: Thu, 16 Jul 2026 14:55:56 +0200 Subject: [PATCH 1/5] feat(report): advisory-grouped remediation with version ranges and GHSA links (TC-4523) Restructure the remediation column to display advisory-grouped data: - Group remediations by advisory with version range context - Derive fixedIn versions from version ranges (highVersion where !highInclusive) - Add GHSA advisory link generation in TrustifyResponseHandler - Add VersionComparator for semantic version sorting - Replace RemediationDetails with AdvisoryRemediations component - Fix duplicate CVE rows via mergeRemediation dedup in buildVulnerabilityItems - Rewrite advisory link URLs through branding config - Bump trustify-da-api dependency to 2.0.12-SNAPSHOT Co-Authored-By: Claude Opus 4.6 --- pom.xml | 2 +- .../providers/ProviderResponseHandler.java | 3 +- .../trustify/TrustifyResponseHandler.java | 240 +- .../providers/trustify/VersionComparator.java | 65 + .../integration/report/BrandingConfig.java | 2 + .../integration/report/ReportTemplate.java | 20 +- src/main/resources/application.properties | 1 + .../freemarker/templates/generated/main.js | 2 +- .../freemarker/templates/generated/vendor.js | 2 +- .../integration/HtmlReportTest.java | 90 + .../RecommendationAggregationTest.java | 18 +- .../trustify/TrustifyResponseHandlerTest.java | 136 +- .../RegistryEnrichmentServiceTest.java | 15 +- .../__files/reports/pypi_report.json | 266 +- .../resources/__files/reports/report.json | 3129 +++++++++-------- src/test/resources/application.properties | 1 + ui/src/api/report.ts | 113 +- ui/src/components/AdvisoryRemediations.tsx | 222 ++ ui/src/components/VulnerabilityLink.tsx | 116 +- ui/src/components/VulnerabilityRow.tsx | 36 +- ui/src/utils/utils.ts | 21 +- 21 files changed, 2689 insertions(+), 1811 deletions(-) create mode 100644 src/main/java/io/github/guacsec/trustifyda/integration/providers/trustify/VersionComparator.java create mode 100644 ui/src/components/AdvisoryRemediations.tsx diff --git a/pom.xml b/pom.xml index d1705f6d..1bb77237 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,7 @@ 3.1.1 - 2.0.11 + 2.0.12-SNAPSHOT 11.0.1 7.8.0 2.0.2 diff --git a/src/main/java/io/github/guacsec/trustifyda/integration/providers/ProviderResponseHandler.java b/src/main/java/io/github/guacsec/trustifyda/integration/providers/ProviderResponseHandler.java index 500d990e..05a13776 100644 --- a/src/main/java/io/github/guacsec/trustifyda/integration/providers/ProviderResponseHandler.java +++ b/src/main/java/io/github/guacsec/trustifyda/integration/providers/ProviderResponseHandler.java @@ -545,8 +545,7 @@ private void incrementCounter(PackageItem item, VulnerabilityCounter counter, bo private boolean hasUpstreamRemediation(Remediation r) { return (r.getFixedIn() != null && !r.getFixedIn().isEmpty()) - || (r.getVersionRanges() != null && !r.getVersionRanges().isEmpty()) - || (r.getRemediations() != null && !r.getRemediations().isEmpty()); + || (r.getAdvisories() != null && !r.getAdvisories().isEmpty()); } private boolean hasTrustedContentRemediation(Remediation r) { diff --git a/src/main/java/io/github/guacsec/trustifyda/integration/providers/trustify/TrustifyResponseHandler.java b/src/main/java/io/github/guacsec/trustifyda/integration/providers/trustify/TrustifyResponseHandler.java index 7ca10caa..0932e70b 100644 --- a/src/main/java/io/github/guacsec/trustifyda/integration/providers/trustify/TrustifyResponseHandler.java +++ b/src/main/java/io/github/guacsec/trustifyda/integration/providers/trustify/TrustifyResponseHandler.java @@ -37,6 +37,7 @@ import io.github.guacsec.trustifyda.api.PackageRef; import io.github.guacsec.trustifyda.api.v5.AdvisoryInfo; +import io.github.guacsec.trustifyda.api.v5.AdvisoryRemediation; import io.github.guacsec.trustifyda.api.v5.Issue; import io.github.guacsec.trustifyda.api.v5.Remediation; import io.github.guacsec.trustifyda.api.v5.RemediationCategory; @@ -141,6 +142,15 @@ private List toIssues(JsonNode response) { setCvssData(issue, vuln, purlStatus); issuesByCveSource.put(key, issue); }); + issuesByCveSource + .values() + .forEach( + issue -> { + var remediation = issue.getRemediation(); + if (remediation != null && remediation.getFixedIn() != null) { + remediation.getFixedIn().sort(VersionComparator.INSTANCE); + } + }); issues.addAll(issuesByCveSource.values()); }); @@ -181,11 +191,13 @@ private void setCvssData(Issue issue, JsonNode vuln, JsonNode purlStatus) { issue.setSeverity(SeverityUtils.fromScore(sd.score)); } - var r = new Remediation(); - boolean hasRemediation = processVersionRange(purlStatus, r, false); - hasRemediation |= processRemediations(purlStatus, r); - - if (hasRemediation) { + var advRem = createAdvisoryRemediation(purlStatus); + if (advRem != null) { + var r = new Remediation(); + r.addAdvisoriesItem(advRem); + if (advRem.getFixedIn() != null) { + r.addFixedInItem(advRem.getFixedIn()); + } issue.setRemediation(r); } } @@ -207,9 +219,11 @@ private void mergeIssueData(Issue existing, JsonNode vuln, JsonNode purlStatus) } } - var r = ensureRemediation(existing); - processVersionRange(purlStatus, r, true); - processRemediations(purlStatus, r); + var advRem = createAdvisoryRemediation(purlStatus); + if (advRem != null) { + var r = ensureRemediation(existing); + mergeAdvisoryRemediation(r, advRem); + } } private record ScoreData(Float score, String severity) {} @@ -240,11 +254,99 @@ private ScoreData extractScoreData(JsonNode vuln, JsonNode purlStatus) { return new ScoreData(score, severity); } - private boolean processVersionRange(JsonNode purlStatus, Remediation r, boolean dedup) { + private AdvisoryRemediation createAdvisoryRemediation(JsonNode purlStatus) { + var advisoryInfo = buildAdvisoryInfo(purlStatus); + var advRem = new AdvisoryRemediation(); + advRem.setAdvisory(advisoryInfo); + + var status = JsonUtils.getTextValue(purlStatus, "status"); + if (status != null) { + advRem.setStatus(status); + } + var versionRange = purlStatus.get("version_range"); - if (versionRange == null || versionRange.isNull()) { - return false; + if (versionRange != null && !versionRange.isNull()) { + advRem.addVersionRangesItem(buildVersionRange(versionRange)); + var highVersion = JsonUtils.getTextValue(versionRange, "high_version"); + var highInclusive = JsonUtils.getBooleanValue(versionRange, "high_inclusive"); + if (highVersion != null && (highInclusive == null || !highInclusive)) { + advRem.setFixedIn(highVersion); + } + } + + var remediations = (ArrayNode) purlStatus.get("remediations"); + if (remediations != null && !remediations.isEmpty()) { + remediations.forEach( + rem -> { + var info = buildRemediationInfoFromNode(rem, advisoryInfo); + if (info != null) { + advRem.addRemediationsItem(info); + } + }); + } else if (advisoryInfo != null) { + var info = new RemediationInfo(); + if (advRem.getFixedIn() != null) { + info.category(RemediationCategory.VENDOR_FIX); + } + advRem.addRemediationsItem(info); + } + + if (advRem.getVersionRanges() != null + || advRem.getRemediations() != null + || advRem.getAdvisory() != null) { + return advRem; } + return null; + } + + private void mergeAdvisoryRemediation(Remediation r, AdvisoryRemediation advRem) { + var existingAdvisories = r.getAdvisories(); + if (existingAdvisories != null && advRem.getAdvisory() != null) { + var existingMatch = + existingAdvisories.stream() + .filter( + a -> + a.getAdvisory() != null + && Objects.equals(a.getAdvisory().getId(), advRem.getAdvisory().getId())) + .findFirst(); + if (existingMatch.isPresent()) { + var existing = existingMatch.get(); + if (advRem.getVersionRanges() != null) { + for (var vr : advRem.getVersionRanges()) { + if (!isDuplicateVersionRange(existing, vr)) { + existing.addVersionRangesItem(vr); + } + } + } + if (advRem.getRemediations() != null) { + for (var rem : advRem.getRemediations()) { + if (!isDuplicateRemediationInfo(existing.getRemediations(), rem)) { + existing.addRemediationsItem(rem); + } + } + } + if (existing.getFixedIn() == null && advRem.getFixedIn() != null) { + existing.setFixedIn(advRem.getFixedIn()); + } + if (advRem.getFixedIn() != null) { + var fixedIn = r.getFixedIn(); + if (fixedIn == null || !fixedIn.contains(advRem.getFixedIn())) { + r.addFixedInItem(advRem.getFixedIn()); + } + } + return; + } + } + r.addAdvisoriesItem(advRem); + if (advRem.getFixedIn() != null) { + var fixedIn = r.getFixedIn(); + if (fixedIn == null || !fixedIn.contains(advRem.getFixedIn())) { + r.addFixedInItem(advRem.getFixedIn()); + } + } + } + + private VersionRange buildVersionRange(JsonNode versionRange) { var vr = new VersionRange(); var schemeId = JsonUtils.getTextValue(versionRange, "version_scheme_id"); if (schemeId != null) { @@ -259,75 +361,57 @@ private boolean processVersionRange(JsonNode purlStatus, Remediation r, boolean vr.lowInclusive(lowInclusive); } var highVersion = JsonUtils.getTextValue(versionRange, "high_version"); - var highInclusive = JsonUtils.getBooleanValue(versionRange, "high_inclusive"); if (highVersion != null) { vr.highVersion(highVersion); - if (highInclusive == null || !highInclusive) { - if (dedup) { - var fixedIn = r.getFixedIn(); - if (fixedIn == null || !fixedIn.contains(highVersion)) { - r.addFixedInItem(highVersion); - } - } else { - r.addFixedInItem(highVersion); - } - } } + var highInclusive = JsonUtils.getBooleanValue(versionRange, "high_inclusive"); if (highInclusive != null) { vr.highInclusive(highInclusive); } - r.addVersionRangesItem(vr); - return true; + return vr; } - private boolean processRemediations(JsonNode purlStatus, Remediation r) { - var remediations = (ArrayNode) purlStatus.get("remediations"); - var advisoryInfo = buildAdvisoryInfo(purlStatus); - if (remediations != null && !remediations.isEmpty()) { - remediations.forEach( - rem -> { - var info = new RemediationInfo(); - var category = JsonUtils.getTextValue(rem, "category"); - if (category != null) { - try { - info.category(RemediationCategory.fromValue(category.toUpperCase())); - } catch (IllegalArgumentException e) { - LOGGER.infof("Unknown remediation category: %s", category); - } - } - var details = JsonUtils.getTextValue(rem, "details"); - if (details != null) { - info.details(details); - } - var url = JsonUtils.getTextValue(rem, "url"); - if (url != null) { - try { - info.url(URI.create(url)); - } catch (IllegalArgumentException e) { - LOGGER.infof("Invalid remediation URL: %s", url); - } - } - if (advisoryInfo != null) { - info.advisory(advisoryInfo); - } - if (!isDuplicateRemediation(r, info)) { - r.addRemediationsItem(info); - } - }); - return true; - } else { - var info = - buildRemediationInfo(purlStatus, r.getFixedIn() != null && !r.getFixedIn().isEmpty()); - if (info != null && !isDuplicateRemediation(r, info)) { - r.addRemediationsItem(info); - return true; + private RemediationInfo buildRemediationInfoFromNode(JsonNode rem, AdvisoryInfo advisoryInfo) { + var info = new RemediationInfo(); + var category = JsonUtils.getTextValue(rem, "category"); + if (category != null) { + try { + info.category(RemediationCategory.fromValue(category.toUpperCase())); + } catch (IllegalArgumentException e) { + LOGGER.infof("Unknown remediation category: %s", category); } } - return false; + var details = JsonUtils.getTextValue(rem, "details"); + if (details != null) { + info.details(details); + } + var url = JsonUtils.getTextValue(rem, "url"); + if (url != null) { + try { + info.url(URI.create(url)); + } catch (IllegalArgumentException e) { + LOGGER.infof("Invalid remediation URL: %s", url); + } + } + return info; } - private boolean isDuplicateRemediation(Remediation r, RemediationInfo info) { - var existing = r.getRemediations(); + private boolean isDuplicateVersionRange(AdvisoryRemediation advRem, VersionRange vr) { + var existing = advRem.getVersionRanges(); + if (existing == null) { + return false; + } + return existing.stream() + .anyMatch( + e -> + Objects.equals(e.getLowVersion(), vr.getLowVersion()) + && Objects.equals(e.getHighVersion(), vr.getHighVersion()) + && Objects.equals(e.getLowInclusive(), vr.getLowInclusive()) + && Objects.equals(e.getHighInclusive(), vr.getHighInclusive()) + && Objects.equals(e.getVersionSchemeId(), vr.getVersionSchemeId())); + } + + private boolean isDuplicateRemediationInfo(List existing, RemediationInfo info) { if (existing == null) { return false; } @@ -336,9 +420,7 @@ private boolean isDuplicateRemediation(Remediation r, RemediationInfo info) { e -> Objects.equals(e.getCategory(), info.getCategory()) && Objects.equals(e.getDetails(), info.getDetails()) - && Objects.equals( - e.getAdvisory() != null ? e.getAdvisory().getId() : null, - info.getAdvisory() != null ? info.getAdvisory().getId() : null)); + && Objects.equals(e.getUrl(), info.getUrl())); } private Remediation ensureRemediation(Issue issue) { @@ -371,18 +453,10 @@ private AdvisoryInfo buildAdvisoryInfo(JsonNode purlStatus) { } catch (IllegalArgumentException e) { LOGGER.infof("Invalid advisory URL: %s", identifier); } - } - return info; - } - - private RemediationInfo buildRemediationInfo(JsonNode purlStatus, boolean hasFixedVersions) { - var advisoryInfo = buildAdvisoryInfo(purlStatus); - if (advisoryInfo == null) { - return null; - } - var info = new RemediationInfo().advisory(advisoryInfo); - if (hasFixedVersions) { - info.category(RemediationCategory.VENDOR_FIX); + } else if (identifier != null && identifier.startsWith("GHSA-")) { + info.url(URI.create("https://github.com/advisories/" + identifier)); + } else if (documentId.startsWith("GHSA-")) { + info.url(URI.create("https://github.com/advisories/" + documentId)); } return info; } diff --git a/src/main/java/io/github/guacsec/trustifyda/integration/providers/trustify/VersionComparator.java b/src/main/java/io/github/guacsec/trustifyda/integration/providers/trustify/VersionComparator.java new file mode 100644 index 00000000..fbb88ea7 --- /dev/null +++ b/src/main/java/io/github/guacsec/trustifyda/integration/providers/trustify/VersionComparator.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023-2025 Trustify Dependency Analytics Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package io.github.guacsec.trustifyda.integration.providers.trustify; + +import java.util.Comparator; +import java.util.regex.Pattern; + +enum VersionComparator implements Comparator { + INSTANCE; + + private static final Pattern SPLIT = Pattern.compile("[.\\-]"); + + @Override + public int compare(String a, String b) { + if (a == null && b == null) return 0; + if (a == null) return -1; + if (b == null) return 1; + + String[] partsA = SPLIT.split(a); + String[] partsB = SPLIT.split(b); + int len = Math.max(partsA.length, partsB.length); + + for (int i = 0; i < len; i++) { + String sa = i < partsA.length ? partsA[i] : ""; + String sb = i < partsB.length ? partsB[i] : ""; + int cmp = comparePart(sa, sb); + if (cmp != 0) return cmp; + } + return 0; + } + + private static int comparePart(String a, String b) { + boolean aNum = isNumeric(a); + boolean bNum = isNumeric(b); + if (aNum && bNum) { + return Long.compare(Long.parseLong(a), Long.parseLong(b)); + } + if (aNum) return -1; + if (bNum) return 1; + return a.compareToIgnoreCase(b); + } + + private static boolean isNumeric(String s) { + if (s.isEmpty()) return false; + for (int i = 0; i < s.length(); i++) { + if (!Character.isDigit(s.charAt(i))) return false; + } + return true; + } +} diff --git a/src/main/java/io/github/guacsec/trustifyda/integration/report/BrandingConfig.java b/src/main/java/io/github/guacsec/trustifyda/integration/report/BrandingConfig.java index 51e0ab94..f31e20b1 100644 --- a/src/main/java/io/github/guacsec/trustifyda/integration/report/BrandingConfig.java +++ b/src/main/java/io/github/guacsec/trustifyda/integration/report/BrandingConfig.java @@ -32,4 +32,6 @@ public interface BrandingConfig { String imageRecommendation(); String imageRecommendationLink(); + + String advisoryIssueTemplate(); } diff --git a/src/main/java/io/github/guacsec/trustifyda/integration/report/ReportTemplate.java b/src/main/java/io/github/guacsec/trustifyda/integration/report/ReportTemplate.java index e95483da..4ab6c1cb 100644 --- a/src/main/java/io/github/guacsec/trustifyda/integration/report/ReportTemplate.java +++ b/src/main/java/io/github/guacsec/trustifyda/integration/report/ReportTemplate.java @@ -78,6 +78,10 @@ public Map setVariables( params.put("rhdaSource", rhdaSource); getBrandingConfig() .ifPresent(config -> params.put("brandingConfig", getBrandingConfigMap(config))); + ConfigProvider.getConfig() + .getOptionalValue("branding.advisory-issue-template", String.class) + .filter(t -> !t.isEmpty()) + .ifPresent(t -> params.put("advisoryIssueTemplate", t)); if (!disabled && writeKey.isPresent()) { params.put("userId", userId); params.put("anonymousId", anonymousId); @@ -132,6 +136,9 @@ private Optional getBrandingConfig() { .orElse(""), config .getOptionalValue("branding.image-remediation-link", String.class) + .orElse(""), + config + .getOptionalValue("branding.advisory-issue-template", String.class) .orElse(""))); } catch (Exception e) { return Optional.empty(); @@ -146,6 +153,9 @@ private Map getBrandingConfigMap(BrandingConfig config) { branding.put("exploreDescription", config.exploreDescription()); branding.put("imageRecommendation", config.imageRecommendation()); branding.put("imageRecommendationLink", config.imageRecommendationLink()); + if (!config.advisoryIssueTemplate().isEmpty()) { + branding.put("advisoryIssueTemplate", config.advisoryIssueTemplate()); + } return branding; } @@ -157,6 +167,7 @@ private static class BrandingConfigImpl implements BrandingConfig { private final String exploreDescription; private final String imageRecommendation; private final String imageRecommendationLink; + private final String advisoryIssueTemplate; public BrandingConfigImpl( String displayName, @@ -164,13 +175,15 @@ public BrandingConfigImpl( String exploreTitle, String exploreDescription, String imageRecommendation, - String imageRecommendationLink) { + String imageRecommendationLink, + String advisoryIssueTemplate) { this.displayName = displayName; this.exploreUrl = exploreUrl; this.exploreTitle = exploreTitle; this.exploreDescription = exploreDescription; this.imageRecommendation = imageRecommendation; this.imageRecommendationLink = imageRecommendationLink; + this.advisoryIssueTemplate = advisoryIssueTemplate; } @Override @@ -202,6 +215,11 @@ public String imageRecommendation() { public String imageRecommendationLink() { return imageRecommendationLink; } + + @Override + public String advisoryIssueTemplate() { + return advisoryIssueTemplate; + } } @RegisterForReflection diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index bc678d14..7c91290d 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -83,6 +83,7 @@ quarkus.hibernate-orm.sql-load-script=no-file #branding.explore.url=https://guac.sh/trustify/ #branding.explore.title=Learn more about Trustify #branding.explore.description=The Trustify project is a collection of software components that enables you to store and retrieve Software Bill of Materials (SBOMs), and advisory documents. +#branding.advisory-issue-template=https://access.redhat.com/security/cve/__ISSUE_ID__ # Note: For native images, you can either: # 1. Set directly: -Dquarkus.datasource.jdbc.url=jdbc:postgresql://... (overrides everything) # 2. Use environment variables: DB_POSTGRES_HOST, DB_POSTGRES_PORT, etc. diff --git a/src/main/resources/freemarker/templates/generated/main.js b/src/main/resources/freemarker/templates/generated/main.js index cfbdd243..44b1c16f 100644 --- a/src/main/resources/freemarker/templates/generated/main.js +++ b/src/main/resources/freemarker/templates/generated/main.js @@ -1 +1 @@ -!function(){"use strict";var e={4712:function(e,n,r){var i=r(1477),t=r(5741),a=(r(9220),r(4685)),o=r(3457),l=r(3710);function c(e){var n=[];return Object.keys(e.providers).forEach(function(r){var i=e.providers[r].sources;void 0!==i&&Object.keys(i).length>0?Object.keys(i).forEach(function(e){n.push({provider:r,source:e,report:i[e]})}):"trusted-content"!==r&&n.push({provider:r,source:r,report:{}})}),n.sort(function(e,n){return 0===Object.keys(e.report).length&&0===Object.keys(n.report).length?1:Object.keys(n.report).length-Object.keys(e.report).length})}function s(e){var n,r;if(!e||!e.provider)return"unknown";var i=null!==(n=e.provider)&&void 0!==n?n:"unknown";return i===(null!==(r=e.source)&&void 0!==r?r:"unknown")?i:"".concat(e.provider,"/").concat(e.source)}function d(e){var n;return!(!e.remediation||!(e.remediation.fixedIn||null!==(n=e.remediation)&&void 0!==n&&n.trustedContent))}function u(e){var n=[];return e.map(function(e){return{dependencyRef:e.ref,vulnerabilities:e.issues||[]}}).forEach(function(e){var r;null===(r=e.vulnerabilities)||void 0===r||r.forEach(function(r){r.cves&&r.cves.length>0?r.cves.forEach(function(i){n.push({id:i,dependencyRef:e.dependencyRef,vulnerability:r})}):n.push({id:r.id,dependencyRef:e.dependencyRef,vulnerability:r})})}),n.sort(function(e,n){return n.vulnerability.cvssScore-e.vulnerability.cvssScore})}var h=r(9292),v=r(6180),g=r(9341),p=r(3844),x=r(2881),f=r(4900),m=r(3144),j=r(2092),y=r(5767),I=r(4646),A=r(260),C=r(1352),b=r(3571),w=r(2995),N=r(9133),T=r(628),S=r(2972),M=r(8056),O=r(2008),E=r(481),P=["#800000","#FF0000","#FFA500","#5BA352","#808080"],D=function(e){var n,r,i,t,a,o,l=e.summary,c=null!==(n=null===l||void 0===l?void 0:l.critical)&&void 0!==n?n:0,s=null!==(r=null===l||void 0===l?void 0:l.high)&&void 0!==r?r:0,d=null!==(i=null===l||void 0===l?void 0:l.medium)&&void 0!==i?i:0,u=null!==(t=null===l||void 0===l?void 0:l.low)&&void 0!==t?t:0,h=null!==(a=null===l||void 0===l?void 0:l.unknown)&&void 0!==a?a:0,v=null!==(o=null===l||void 0===l?void 0:l.total)&&void 0!==o?o:0,g=c+s+d+u+h>0,p=g?P:["#D5F5E3"],x=[{name:"Critical: ".concat(c),symbol:{type:"square",fill:P[0]}},{name:"High: ".concat(s),symbol:{type:"square",fill:P[1]}},{name:"Medium: ".concat(d),symbol:{type:"square",fill:P[2]}},{name:"Low: ".concat(u),symbol:{type:"square",fill:P[3]}},{name:"Unknown: ".concat(h),symbol:{type:"square",fill:P[4]}}];return(0,E.jsx)("div",{children:(0,E.jsx)(j.b,{style:{paddingBottom:"inherit",padding:"0"},children:(0,E.jsx)(M.a,{children:(0,E.jsx)("div",{style:{height:"230px",width:"350px"},children:(0,E.jsx)(O.H,{constrainToVisibleArea:!0,data:g?[{x:"Critical",y:c},{x:"High",y:s},{x:"Medium",y:d},{x:"Low",y:u},{x:"Unknown",y:h}]:[{x:"Empty",y:1e-10}],labels:function(e){var n=e.datum;return g?"".concat(n.x,": ").concat(n.y):"No vulnerabilities"},legendData:x,legendOrientation:"vertical",legendPosition:"right",padding:{left:20,right:140},subTitle:"Unique vulnerabilities",title:"".concat(v),width:350,colorScale:p})})})})})},k="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxM3B4IiB2aWV3Qm94PSIwIDAgMTIgMTMiIGlkPSJTZWN1cml0eUNoZWNrSWNvbiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDx0aXRsZT5Db21iaW5lZCBTaGFwZTwvdGl0bGU+CiAgICA8ZyBpZD0iTXVsdGktdmVuZG9yIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iT3ZlcnZpZXctQ29weSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEyMDcsIC05OTMpIiBmaWxsPSIjM0U4NjM1Ij4KICAgICAgICAgICAgPGcgaWQ9IkRldGFpbHMtb2YtZGVwZW5kZW5jeS1jb20uZ2l0aHViIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0MjcsIDgxOSkiPgogICAgICAgICAgICAgICAgPGcgaWQ9IkRlcGVuZGVuY3ktMSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwgMTQ0KSI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc4MC4xNzI4LCAyNCkiPgogICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwgMy4yKSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iSWNvbnMvMi4tU2l6ZS1zbS9BY3Rpb25zL2NoZWNrIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLCAyLjgpIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTAuNTU2NTc4OSwwIEMxMC43OTA2MjQ5LDAgMTAuOTc5MzMyMiwwLjE4MTU0Mjk2OSAxMC45NzkzMzIyLDAuNDA2MjUgTDEwLjk3OTMzMjIsNS43NDA4MjAzMSBDMTAuOTc5MzMyMiw5Ljc1IDYuMjQwODE5MDcsMTMgNS40OTU3OTI5NiwxMyBDNC43NTA3NjY4NCwxMyAwLDkuNzUgMCw1LjczOTU1MDc4IEwwLDAuNDA2MjUgQzAsMC4xODE1NDI5NjkgMC4xODg3MDcyNzIsMCAwLjQyMjc1MzMwNCwwIFogTTguNTQyNzc4ODMsMy4xMTc4MjY2NyBMNC43OTEyOTYxLDYuODkwODczNTMgTDMuMDM5ODEzMzgsNS4xMjkzMjQ0IEMyLjg4MzYwOSw0Ljk3MjIwNjgzIDIuNjMwMzI4MTIsNC45NzIyMDY4MyAyLjQ3NDEyMzc1LDUuMTI5MzI0NCBMMS45MDg0NDkzOCw1LjY5ODI2NTU2IEMxLjc1MjI0NTAxLDUuODU1MzgzMTIgMS43NTIyNDUwMSw2LjExMDEwNDQ5IDEuOTA4NDQ5MzgsNi4yNjcyMDY3MSBMNC41MDg0NTc5Nyw4Ljg4MjE1OTkxIEM0LjY2NDY0NzA4LDkuMDM5Mjc3NDcgNC45MTc5MTI3LDkuMDM5Mjc3NDcgNS4wNzQxMzIzMyw4Ljg4MjE3NTI1IEw5LjY3NDE0MjgyLDQuMjU1NzA4OTggQzkuODMwMzQ3Miw0LjA5ODU5MTQxIDkuODMwMzQ3MiwzLjg0Mzg3MDA0IDkuNjc0MTQyODIsMy42ODY3Njc4MiBMOS4xMDg0Njg0NiwzLjExNzgyNjY3IEM4Ljk1MjI2NDA4LDIuOTYwNzI0NDQgOC42OTg5ODMyLDIuOTYwNzI0NDQgOC41NDI3Nzg4MywzLjExNzgyNjY3IFoiIGlkPSJDb21iaW5lZC1TaGFwZSI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=",F=r(296),L=r(3029),B=r(2901),R="maven",U="https://central.sonatype.com/artifact/",W="https://pkg.go.dev/",z="https://www.npmjs.com/package/",Z="https://pypi.org/project/",V="pkg:",K=/%[0-9A-Fa-f]{2}/,G=function(e){var n="";return e.namespace&&(n=e.type===R?"".concat(e.namespace,":"):"".concat(e.namespace,"/")),n+="".concat(e.name)},Y=function(e,n){var r=re.fromString(e),i=G(r),t=r.version?decodeURIComponent(r.version):"";return n?i+"@".concat(t):i},H=function(e){var n=re.fromString(e);if(n.qualifiers&&n.qualifiers.has("repository_url")){var r=decodeURIComponent(n.qualifiers.get("repository_url")||"");r.endsWith("/")&&(r=r.substring(0,r.length-1));var i=n.namespace;return i&&(i=i.replace(/\./g,"/")),"".concat(r,"/").concat(i,"/").concat(n.name,"/").concat(n.version)}var t=U;return n.namespace?"".concat(U).concat(n.namespace,"/").concat(n.name,"/").concat(n.version):t},Q=function(e){var n=re.fromString(e);switch(n.type){case R:return"".concat(U).concat(n.namespace,"/").concat(n.name,"/").concat(n.version);case"golang":var r=n.version;return null!==r&&void 0!==r&&r.match(/v\d\.\d.\d-\d{14}-\w{12}/)?"".concat(W).concat(n.namespace,"/").concat(n.name):"".concat(W).concat(n.namespace,"/").concat(n.name,"@").concat(n.version);case"npm":return n.namespace?"".concat(z).concat(n.namespace,"/").concat(n.name,"/v/").concat(n.version):"".concat(z).concat(n.name,"/v/").concat(n.version);case"pypi":return n.namespace?"".concat(Z).concat(n.namespace,"/").concat(n.name,"/").concat(n.version):"".concat(Z).concat(n.name,"/").concat(n.version);case"deb":return"".concat("https://sources.debian.org/patches/").concat(n.name,"/").concat(n.version);case"cargo":return"".concat("https://crates.io/crates/").concat(n.name,"/").concat(n.version);default:return n.toString()}},X=function(e){var n=re.fromString(e).version;return n?decodeURIComponent(n):""},q=function(e,n){var r=re.fromString(e),i=encodeURIComponent(G(r));return n.remediationTemplate.replace("__PACKAGE_TYPE__",r.type).replace("__PACKAGE_NAME__",i).replace("__PACKAGE_VERSION__",r.version||"")},J=function(e){return e.toLowerCase().replace(/./,function(e){return e.toUpperCase()})},_=function(e){var n=$(e),r="";if(n.repository_url){var i=n.repository_url.indexOf("/");r+=-1!==i?n.repository_url.substring(i+1):""}else r+="".concat(n.short_name);return n.tag&&(r+=":".concat(n.tag)),r},$=function(e){var n=e.split("?"),r=n[0],i=n[1],t=new URLSearchParams(i),a=t.get("repository_url")||"",o=t.get("tag")||"",l=t.get("arch")||"",c=r.split("@");return{repository_url:a,tag:o,short_name:c[0].substring(c[0].indexOf("/")+1),version:r.substring(r.lastIndexOf("@")).replace("%3A",":"),arch:l}},ee=function(e,n,r,i){var t=c(n),a=i||"";for(var o in t){var l=t[o].report.dependencies;if(l){var s=Object.values(l).find(function(n){var r,i=n.ref,t=decodeURIComponent(i),a=(r=e,K.test(r)?decodeURIComponent(e):e);return re.fromString(t).toString()===re.fromString(a).toString()});if(s&&s.recommendation&&a){var d=decodeURIComponent(s.recommendation);if(void 0!==ne(d,r))return a+_(d)}}}return a},ne=function(e,n){var r=JSON.parse(n).find(function(n){return re.fromString(n.purl).toString()===re.fromString(e).toString()});return null===r||void 0===r?void 0:r.catalogUrl},re=function(){function e(n,r,i,t,a){(0,L.A)(this,e),this.type=void 0,this.namespace=void 0,this.name=void 0,this.version=void 0,this.qualifiers=void 0,this.type=n,this.namespace=r,this.name=i,this.version=t,this.qualifiers=a}return(0,B.A)(e,[{key:"toString",value:function(){var e=this.name;return this.version&&(e+="@".concat(this.version)),this.namespace?"".concat(V).concat(this.type,"/").concat(this.namespace,"/").concat(e):this.qualifiers?"".concat(V).concat(this.type,"/").concat(e,"?").concat(Array.from(this.qualifiers.entries()).map(function(e){var n=(0,F.A)(e,2),r=n[0],i=n[1];return"".concat(r,"=").concat(i)}).join("&")):"".concat(V).concat(this.type,"/").concat(e)}}],[{key:"fromString",value:function(n){var r,i,t=n.replace(V,""),a=t.indexOf("?");-1!==a&&(i=t.substring(a+1),t=t.substring(0,a));var o,l,c=t.substring(0,t.indexOf("/")),s=t.split("/");s.length>2&&(o=s.slice(1,s.length-1).join("/")),-1!==t.indexOf("@")&&(l=t.substring(t.indexOf("@")+1));var d=s[s.length-1];return l&&(d=d.substring(0,d.indexOf("@"))),new e(c,o,d,l,new Map((null===(r=i)||void 0===r?void 0:r.split("&").map(function(e){return e.split("=")}))||[]))}}])}(),ie={PERMISSIVE:"#0066CC",WEAK_COPYLEFT:"#3E8635",STRONG_COPYLEFT:"#F0AB00",UNKNOWN:"#C46100"},te={PERMISSIVE:"Permissive",WEAK_COPYLEFT:"Weak copyleft",STRONG_COPYLEFT:"Strong copyleft",UNKNOWN:"Unknown"};function ae(e){if(!e)return 1;switch(e.toUpperCase().replace(/-/g,"_")){case"PERMISSIVE":return 4;case"WEAK_COPYLEFT":return 3;case"STRONG_COPYLEFT":return 2;default:return 1}}var oe="#F0AB00";function le(e){var n;if(!e)return te.UNKNOWN;var r=e.toUpperCase().replace(/-/g,"_");return null!==(n=te[r])&&void 0!==n?n:e}function ce(e){var n;if(!e)return ie.UNKNOWN;var r=e.toUpperCase().replace(/-/g,"_");return null!==(n=ie[r])&&void 0!==n?n:ie.UNKNOWN}function se(e){var n;if(e){var r=e.toUpperCase().replace(/-/g,"_");n="PERMISSIVE"===r?"blue":"WEAK_COPYLEFT"===r?"green":"STRONG_COPYLEFT"===r?"yellow":"gray"}else n="gray";return n}var de=["PERMISSIVE","WEAK_COPYLEFT","STRONG_COPYLEFT","UNKNOWN"];function ue(e){if(!e)return de.length;var n=e.toUpperCase().replace(/-/g,"_"),r=de.indexOf(n);return r>=0?r:de.length}var he=function(e){var n,r,i,t,a,o=e.summary,l=null!==(n=o.permissive)&&void 0!==n?n:0,c=null!==(r=o.strongCopyleft)&&void 0!==r?r:0,s=null!==(i=o.unknown)&&void 0!==i?i:0,d=null!==(t=o.weakCopyleft)&&void 0!==t?t:0,u=null!==(a=o.total)&&void 0!==a?a:0,h=l+c+s+d>0,v=[{name:"Permissive: ".concat(l),symbol:{type:"square",fill:ie.PERMISSIVE}},{name:"Weak Copyleft: ".concat(d),symbol:{type:"square",fill:ie.WEAK_COPYLEFT}},{name:"Strong Copyleft: ".concat(c),symbol:{type:"square",fill:ie.STRONG_COPYLEFT}},{name:"Unknown: ".concat(s),symbol:{type:"square",fill:ie.UNKNOWN}}];return(0,E.jsx)("div",{children:(0,E.jsx)(j.b,{style:{paddingBottom:"inherit",padding:"0"},children:(0,E.jsx)(M.a,{children:(0,E.jsx)("div",{style:{height:"230px",width:"350px"},children:(0,E.jsx)(O.H,{constrainToVisibleArea:!0,data:h?[{x:"Permissive",y:l},{x:"Weak Copyleft",y:d},{x:"Strong Copyleft",y:c},{x:"Unknown",y:s}]:[{x:"Empty",y:1e-10}],labels:function(e){var n=e.datum;return h?"".concat(n.x,": ").concat(n.y):"No licenses"},legendData:v,legendOrientation:"vertical",legendPosition:"right",padding:{left:0,right:160},subTitle:"Total licenses",title:"".concat(u),width:350,colorScale:Object.values(ie)})})})})})},ve=r(4102),ge={width:"16px",height:"16px",verticalAlign:"middle"},pe="330px";var xe=function(e){var n,r,i=e.report,t=e.isReportMap,a=e.purl,d=Kn(),u=d.brandingConfig||{displayName:"Trustify",exploreUrl:"https://guac.sh/trustify/",exploreTitle:"Learn more about Trustify",exploreDescription:"The Trustify project is a collection of software components that enables you to store and retrieve Software Bill of Materials (SBOMs), and advisory documents.",imageRecommendation:"",imageRecommendationLink:""},M=Boolean(u.exploreTitle.trim().length>0)&&Boolean(u.exploreUrl.trim().length>0)&&Boolean(u.exploreDescription.trim().length>0),O=Boolean(t)&&u.imageRecommendation.trim().length>0&&u.imageRecommendationLink.trim().length>0,P=i.licenses||[],F=(null!==(n=i.licenses)&&void 0!==n?n:[]).filter(function(e){return e.summary.total>0}),L=null===(r=i.licenses)||void 0===r?void 0:r.find(function(e){return"SBOM"===e.status.name}),B=null===L||void 0===L?void 0:L.projectLicense,R=Boolean(B),U=function(){return(0,E.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAON0lEQVR4nOxad1xTV/s/mYwQRkBWGCJDFERZgqCvoDhQKuKroghVpK2COIqK9VVrXWhx4oIiIKKoIAilIlgHqFAKssIeIeywQhIIWTfr97nxTX9IwVaI/et9Pp/7ObnPedb33vPc85xzghYIBAg0Gi0BExCPy1UsKytd3EahWAqFIqy2jnaHo5NznpaWVv9EOslJSbsvn4+8mnAv2d5m7txymLdlw/piFoulnpX7bOZEejCxWCyVQRqNiMFg+Dq6up1oNFoE82urq+119fQ6Ncf4RXh7etaJxWKss4tLrrmFRZW2jna3UCjC9PZQp1dVVjoVFxWtHBkZUR+thEKhoKXLlqfuDgs7pKenRx0bRFdn5/QN3mvqdXT1Ojds8r3aUF8/L+fJkyC/gIALYeGHDo6VF4lEyMz09O1pqSk7yU1N8yQSCQrmKysrM//l7p7lv3XbxcePHn1FNCC2bd0edOkDAD/duHE0NvrmqfGeBgqFEtg5OLxauWr1Q2ubOcUCAVBraCAvfPU8x/u3t69cNQiEvpj4hKWmZmZ1Y3WfPX3qe/qH47e4XC4evl+0eHH6mcjz/srKyrzRcgw6XWv/3j1pVZWViwkEAtVtydJMoqFhAwTxVSvLK1xKfi9aiUAgRBgsFtLV1aWk//LEhsvlKvZQu41nmJo1IiQSCYj7Kea7mOvXz862si78JiTkHCQQq6mrq/dPNzFtgYRIQ9ogx7WLyvJhDPEdZI7byCTwJPUSwOOVu5LT0m01NTVpY0H0UqkGXiuWd3qvW3fp2ImT+8f2QxCEDQoIeN1QXzc/aMeOH4K+2XFOQm6x4WZm7RI0NDpJOBxcG5+PutzZatAkFEh19PSJlP6+XuKla9e9XRcteoaGmV/t2Hmuoa7eNv/Vy43KOBwT4miFNLZzPBvbu6RKbBYDNNQUAojPAybmtkCXaAqmm80FK31Cwc8PIw1uRkWdPnby5M6xASoqKXGlraIib7w3nHAr9kB9Xa3zvgMHv/XfuvUKKz7xB1byg2NtAgipikSCaSg0MAIAnFPXAmGMAdAmEoIeaveMsPDwUDh42AZSZuzQkSN7sFjsSOzNG987zNPdAwAQwvyermaQcG0fyM+9A37LSwHJsd+BtoYXeWp4bJXZLEegZ2AOcp9m+3M4HOXxgpyIID4fk3r//rcWlpZlfgEBUZzcX/2Kbt8+HjjYg9zDHADb6H0gYpguEhkZViogkOAbFbU/dGk0mq7s9x8Apmlr96364ou7pSUly+g0qsRAXyUd5r/MjgcYNIJ5ISrKKzH5vuNsK+vff34U72JjqbRWTRVbaWHlAvh8Pq6upsb+UwDUVFc7Dg8Pa32xxvsOUixGdMbFR5wcogOhqmp/cOjuI55eXomFfC7qjqnRG9xX2w/YYBSADlKa2yApIeFoVkaG3wcAYPJYviINbgvevPEyNlBLgfOjj9oClnt6JrstWZptbWNT+nXwzuNCoVChhdxgbWmmeVmdoCPVHejvN/gUANTubhO4NbOwIEENTY4l3d3GPCAB3x09Fhy0Y0fEqbPnAh2dnJ7nZGd/qeLnexEz0+KdKRoDcCoqg3cePHTAYDAiAQShPgAwx8amGM746iqSk/Y05dcIBAIoKuPhp+XM5/MVYJmyd6XucNtKoZgpKaFbDYxnAfsFXgCvqjb0KQAAABIzC4uK6SYmzaKeHgMIvJ+KxGIxQiYgFArhHJV2oC1nFktbNFpkZW1d5unllYLBYkXo0RZxKirs6SYmteWlpW5oFGAqKaEpDgu8ZhS8fGDvs3pVkwoez6SQyTaw7PUrVy49y83rdvUIBG4rt4ocnS0KPiX6xUuWZHl6eT0QCgSYxHfFi++ODEv5P54+Fd1KabFqb2szrygrc1+/0feaFNgATZ8sFAAi0ZQy2g5yrOEVq1bfZ9DpetlZWQFGRPzj+Yt8wJLVQQCjoKohEYtRG3w3RT1+km26Zp1vKqW5lph0cz8ofHGbyhqiK3wKABwON5L38sW6DWvX1t56cH+3ERoNglXUgNIIe1pcTMyJF8+e+XksX5G878CBcKihcd67woLV/WIRcHZxzRltRzoPjCYOm41b772mhsNmq12PTVjb1I5O5UMieKALjQzwqRpqiiTWCGTa1jnsT+vvVs7PuS1uJVcicTgc85uQkO83bvaLxmAw0i8Yk8HQ9PjXIpqvn1/EwcP/OSLz0dzUZBV55sy1ivIydw0CoTd0777Dbh3dtrysJ3vgeGgmxuXTAracJBgbt0ClZR79iUnHw6gd6gMYNOvxk2xzbR2dvgkBwESqrHQMDtr+CoVCibcEhmaoaduvAwgUXtbf2VYH2luqgNMib67bQjP/lsZ3vMvnI6Oo3d1mZhYWlfsPHdpla2df8vDevZ1XLl64Nmfu3LwTZyK2q6urM25eu3rq8aNHwfDY9vn3+piQPXuOq6mrM0hFRe66sbcvgvZ229GxdAkFIHKYAVpEAnD42PdB/964MeGjb0BG1SSS4/Ej/0nqaG+3xCooAW3d6QCJQgPGIBWwhgbhOoUVfuRosNeaNcmwPI/HU3yYfG9XYlzckZGREQ1dPb3W3p4eEwVFRTafx1OG5TFYLHeIydSZ7+z8dN+BA4csZlrWwLo/3bxx+FZ0dMQ0VTWaIyTU0kehAF8iAQ1CCJRBfIBEo6G9+/eHbfYPuPGnQGEAE10Qn4/KyszYsm9XSMbqZR7kFe5undv9t+THxcQcptFomuPpDAwMaO8NCc60t7aSnDt96rJAIEBVkUjzXOzt2IudnegFb94sG6sjEokQGWlp2zas9a6A9WTXAjvbkSPh4XcpLWTLiWL8KIDJXonx8QfhAFrIZBMZL/iroJyVS9wpf6VLHxwk1NfVzm0hky34fD7mr+T/9BWSBxkaGTbB7dNfsgLFYjFoa221qCaRXAwNDVv/SleDQKBbzppNmmFq2oTFYgV/JT9hDkyF4Po+cMuW3+pqa5xUVVV72Wy2JsyPuhm9wtnFJU+uzj7HEIKv4aEh/OXz58/AQ2nTOp+SyooKp8/h57MBgC8Gna4JA4iMOHPmc/n4LDnwT9L/APxNQnwuw58FwOO0R4GV5eUuo1jSlcilyMgfmQwGQZ6+5A4gMS7uYMSJEwlsNltVxhOJeVhIOKT29nW+z9fbtr4ZYjLV5eVPrgCam5pmRV+/dtraxqZwnp1dwQi/Tbrq6man7Pul2o5p7UE2b6VQrM6fPRslL59yBfDw3r3dEokEeTLirD9A0zUKyIHPR/fPcxOBGTZC8Gtujt9Af7+OPHzKFUB1FcnFzNycZGRs3NbUf+uAQMz601CZNV8ELxvRDXV1tvLwKVcAPVTqdD19/Q749yC7YsF4Mqqa70uXnp4eI3n4lBuArs5OIy6Xq2ZoZNwI33MFvcTx5KYZvAdAaWmxlodfuQEoKixcCbe2dnZvOVCvDiSk648nh1MDQFNfDIoKC5bDlepUSW4AMh+nf43H4wcXuLq+6B3OX/UxWWtXIeju6pr5W0HBsqn6lQuArIyMLY319Q6b/P0vYxUUoFZaytcfk7ddIgIKyhJw9dLFCxAEYabie8oA2lpbzS/8eO6mPpHYvHV70MXeofzlTG7VuAksIyUcAAvXCuA8sLl59eq4W/t/l6YEgMvlKoXtDs2A+HyFExERW9EYMbKy6+SVv6PrsFwEZswRgeSkOwffvs73nGwMUwLw4O7dkI72dquQPXsP2drZF5V1fBfLhtpnwX1CAQCtNe/ND3QhwNCY0wMkEgDvXRBQVhUhI06ejIEgCDuZGCa9pBSLxQiv5ctasVgsPy3rl9k9rNy1JW17pZvD1BYEyLyBBUO0/38+CIQEuH6hNLhiM57OEXSYy/ilz1Hg+V0sOPNjpO+KVatSPzWOSb+BstJS1/6+PuP1vpuuo9FIUV1P1HHw36d9/5wCAEJCX1h4+J7b95KdL1+/sdphvvOvBVk8zaost1wTzc3XZXbmLBQBNEYCfn2Wu2EycaAnC4BUUb4IvD/7yqGza+xG+JQ58P3rdDQQCVCCG0mxyyxnz66WybsuWpSzd1dIVtrDtF0bfDNma+JarAbZJe4KSgAQzcWgmkT6aOJPRJN+A50dHTMQCITQwNCwZWCkeDGQbhAA0FqFgkH9PDp4qSMkUvLltsDzcLH39vXr1Rba2y/K+rSIYkAfHCTyuNxP2iCeEgD2CFtJUUmJhUKhJByIKj3cEEJw8iIA0cCgfTydadra0iPZISZTi4Cb907GR/93JuDxeCr/GAANgsYwl8PR4PP5WCB5fyiBUQBAWVUMSBXjF3KN9fXSCtTA0KhZdnAhDZwNJzlCpILH0/8xAKZmZrVwW19bO08Jq9ct41stEIHamhqXlPvJH5xa9lCp+jeuRp3G4XCMJR4emQxOzR/ldG8bEhgYGTV97B8DE9Gkk3i+8wLpYiXv5YsNAcEef3z+FvoIAaUaBc6fPRud9/KVj72jw9uB/gG93KfZfjwuVyUi8vx6dQ0NRlXz7W9heWY/AH3tSOCz3nFSO3ZT2loM9N9SQG5unp2ZnW1Z2r85f4TfKp3E4CGR/wgDagpRQMBHwMNDbDVnTvHOXaFH5rvMf0PqPB1Bod0Nh2Wf3UGD8pcYEHs70cXOwaHoHwXwNj9/xbe7Q3MXuy9J333c/VFZx4GHHxpXZqiIlv1squ+ZQtDQ7WVyau3IA4l7h3nN0nM2eMJLOqUAHBydc6Pj4idVTkx5c/fooUOJuU+ztwYEboucv7bdkDr0dPPf0RvoRoAHZxUACqE+cDcl1Z5IJHZOxv+UAfB4PExYaGh2SfHvy9yWuqUv/ZJG4CDeuX9Mp+EdEuTEY4FEpMi5Gh3jae/o+Gay/v8vAAD//4wb/4wEdbX7AAAAAElFTkSuQmCC",alt:"Trustify Icon",style:ge})},W=1+(F.length>0?1:0),z=Math.min(12,Math.max(1,Math.floor(12/W))),Z=1+Number(R)+Number(O)+Number(M);4===Z&&(Z=2);var V=Math.min(12,Math.max(1,Math.floor(12/Z)));return(0,E.jsxs)(o.x,{hasGutter:!0,children:[(0,E.jsxs)(h.h,{headingLevel:"h3",size:h.J["2xl"],style:{paddingLeft:"15px"},children:[(0,E.jsx)(v.I,{isInline:!0,status:"info",children:(0,E.jsx)(S.Ay,{style:{fill:"#f0ab00"}})}),"\xa0",u.displayName," overview of security issues"]}),(0,E.jsx)(g.c,{}),(0,E.jsx)(l.E,{md:12,lg:z,children:(0,E.jsxs)(p.Z,{isFlat:!0,isFullHeight:!0,children:[(0,E.jsx)(x.a,{children:(0,E.jsx)(f.Z,{children:(0,E.jsx)(m.X,{style:{fontSize:"large"},children:t?(0,E.jsxs)(E.Fragment,{children:[a?_(a):"No Image name"," - Vendor Issues"]}):(0,E.jsx)(E.Fragment,{children:"Vendor Issues"})})})}),(0,E.jsxs)(j.b,{children:[(0,E.jsx)(y.W,{children:(0,E.jsx)(I.d,{children:(0,E.jsx)(m.X,{children:"Below is a list of dependencies affected with CVE."})})}),(0,E.jsx)(A.B,{isAutoFit:!0,style:{paddingTop:"10px",gridTemplateColumns:"repeat(auto-fit, minmax(min(100%, ".concat(pe,"), 1fr))")},children:c(i).map(function(e,n){return(0,E.jsxs)(y.W,{style:{display:"flex",flexDirection:"column",alignItems:"center",minWidth:0},children:[(0,E.jsx)(m.X,{style:{fontSize:"large"},children:s(e)}),(0,E.jsx)(I.d,{children:(0,E.jsx)(D,{summary:e.report.summary})})]},n)})})]}),(0,E.jsx)(g.c,{})]})}),F.length>0&&(0,E.jsx)(l.E,{md:12,lg:z,children:(0,E.jsxs)(p.Z,{isFlat:!0,isFullHeight:!0,children:[(0,E.jsx)(x.a,{children:(0,E.jsx)(f.Z,{children:(0,E.jsx)(m.X,{style:{fontSize:"large"},children:"License Summary"})})}),(0,E.jsx)(j.b,{children:(0,E.jsx)(A.B,{isAutoFit:!0,style:{paddingTop:"30px",gridTemplateColumns:"repeat(auto-fit, minmax(min(100%, ".concat(pe,"), 1fr))")},children:F.map(function(e,n){return(0,E.jsxs)(y.W,{style:{display:"flex",flexDirection:"column",alignItems:"center",minWidth:0},children:[(0,E.jsx)(m.X,{style:{fontSize:"large"},children:e.status.name||"Unknown"}),(0,E.jsx)(I.d,{children:(0,E.jsx)(he,{summary:e.summary})})]},n)})})})]})}),(0,E.jsxs)(l.E,{md:V,children:[(0,E.jsx)(p.Z,{isFlat:!0,isFullHeight:!0,children:(0,E.jsxs)(y.W,{children:[(0,E.jsx)(f.Z,{component:"h4",children:(0,E.jsxs)(m.X,{style:{fontSize:"large"},children:[U(),"\xa0",u.displayName," Dependency Remediations"]})}),(0,E.jsx)(j.b,{children:(0,E.jsx)(I.d,{children:(0,E.jsx)(C.B8,{isPlain:!0,children:c(i).map(function(e,n){var r=e&&e.source&&e.provider?e.source===e.provider?e.provider:"".concat(e.provider,"/").concat(e.source):"default_value";return Object.keys(e.report).length>0?(0,E.jsxs)(b.c,{children:[(0,E.jsx)(v.I,{isInline:!0,status:"success",children:(0,E.jsx)("img",{src:k,alt:"Security Check Icon"})}),"\xa0",e.report.summary.remediations," remediations are available for ",r]}):(0,E.jsxs)(b.c,{children:[(0,E.jsx)(v.I,{isInline:!0,status:"success",children:(0,E.jsx)("img",{src:k,alt:"Security Check Icon"})}),"\xa0 There are no available remediations for your SBOM at this time for ",e.provider]})})})})})]})}),"\xa0"]}),R&&B&&(0,E.jsxs)(l.E,{md:V,children:[(0,E.jsx)(p.Z,{isFlat:!0,isFullHeight:!0,children:(0,E.jsxs)(y.W,{children:[(0,E.jsx)(f.Z,{component:"h4",children:(0,E.jsxs)(m.X,{style:{fontSize:"large"},children:["Project License ",(0,E.jsx)(w.o,{children:(0,E.jsx)(N.J,{color:se(B.category),children:B.expression||B.name||"\u2014"})})]})}),(0,E.jsx)(j.b,{children:(0,E.jsxs)(I.d,{children:[(0,E.jsx)(y.W,{children:(0,E.jsx)(m.X,{children:"License incompatibilities"})}),(0,E.jsx)(C.B8,{isPlain:!0,children:P.map(function(e,n){var r=function(e,n){for(var r=0,i=ae(n),t=0,a=Object.values(e);t=400||Object.keys(e.warnings).length>0},i=Object.keys(n.providers).map(function(e){return n.providers[e].status}).filter(function(e){return!e.ok||r(e)}),t=function(e){return e.ok&&!r(e)?fe.w.info:e.code>=500?fe.w.danger:fe.w.warning},a=function(e){var n=e.message;return e.ok&&r(e)?"".concat(J(e.name),": ").concat(Object.keys(e.warnings).length," package(s) could not be analyzed"):"".concat(J(e.name),": ").concat(n)};return(0,E.jsx)(E.Fragment,{children:i.map(function(e,n){return(0,E.jsx)(fe.F,{variant:t(e),title:a(e)},n)})})},je=r(6919),ye=r(5501),Ie=r(1792),Ae=r(3093),Ce=r(297),be=r(4072),we=r(6464),Ne=function(e){function n(e){var r;return(0,L.A)(this,n),(r=(0,je.A)(this,n,[e])).state={hasError:!1,error:null},r}return(0,ye.A)(n,e),(0,B.A)(n,[{key:"componentDidCatch",value:function(e,n){console.error("Report rendering error:",e,n)}},{key:"render",value:function(){var e;return this.state.hasError?(0,E.jsx)(M.a,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--200)",minHeight:"100vh"},children:(0,E.jsxs)(Ie.p,{variant:Ie.s.sm,children:[(0,E.jsx)(Ae.o,{icon:(0,E.jsx)(Ce.q,{icon:we.Ay,color:"var(--pf-v5-global--danger-color--100)"}),titleText:"Something went wrong",headingLevel:"h2"}),(0,E.jsx)(be.h,{children:(null===(e=this.state.error)||void 0===e?void 0:e.message)||"An unexpected error occurred while rendering the report."})]})}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(i.Component),Te=r(6334),Se=r(4248),Me=r(4471),Oe=r(9379),Ee=r(8380),Pe=r(1417),De=r(7066),ke=r(2227),Fe=r(99),Le=r(7172),Be=r(8516),Re=r(8579),Ue=r(9205),We=r(8099),ze=r(4785),Ze=r(4224),Ve=r(5772),Ke=r(4593),Ge=r(8480),Ye=r(5458),He=r(4546),Qe=function(e){return e[e.SET_PAGE=0]="SET_PAGE",e[e.SET_SORT_BY=1]="SET_SORT_BY",e}(Qe||{}),Xe={changed:!1,currentPage:{page:1,perPage:10},sortBy:void 0},qe=function(e,n){switch(n.type){case Qe.SET_PAGE:var r=n.payload;return(0,Oe.A)((0,Oe.A)({},e),{},{changed:!0,currentPage:{page:r.page,perPage:r.perPage}});case Qe.SET_SORT_BY:var i=n.payload;return(0,Oe.A)((0,Oe.A)({},e),{},{changed:!0,sortBy:{index:i.index,direction:i.direction}});default:return e}},Je=r(2514),_e=r(3842),$e=function(e){var n,r=e.count,i=e.params,t=e.isTop,a=e.perPageOptions,o=e.onChange,l=function(){return i.perPage||10};return(0,E.jsx)(Je.d,{itemCount:r,page:i.page||1,perPage:l(),onPageInput:function(e,n){o({page:n,perPage:l()})},onSetPage:function(e,n){o({page:n,perPage:l()})},onPerPageSelect:function(e,n){o({page:1,perPage:n})},widgetId:"pagination-options-menu",variant:t?Je.A.top:Je.A.bottom,perPageOptions:(n=a||[10,20,50,100],n.map(function(e){return{title:String(e),value:e}})),toggleTemplate:function(e){return(0,E.jsx)(_e.D,(0,Oe.A)({},e))}})},en=r(9694),nn=r(6911),rn=r(1413),tn=function(e){var n=e.numRenderedColumns,r=e.isLoading,i=void 0!==r&&r,t=e.isError,a=void 0!==t&&t,o=e.isNoData,l=void 0!==o&&o,c=e.errorEmptyState,s=void 0===c?null:c,d=e.noDataEmptyState,u=void 0===d?null:d,v=e.children,g=(0,E.jsxs)(Ie.p,{variant:Ie.s.sm,children:[(0,E.jsx)(Ce.q,{icon:we.Ay,color:rn.D.value}),(0,E.jsx)(h.h,{headingLevel:"h2",size:"lg",children:"Unable to connect"}),(0,E.jsx)(be.h,{children:"There was an error retrieving data. Check your connection and try again."})]}),p=(0,E.jsxs)(Ie.p,{variant:Ie.s.sm,children:[(0,E.jsx)(Ce.q,{icon:nn.Ay}),(0,E.jsx)(h.h,{headingLevel:"h2",size:"lg",children:"No data available"}),(0,E.jsx)(be.h,{children:"No data available to be shown here."})]});return(0,E.jsx)(E.Fragment,{children:i?(0,E.jsx)(ze.N,{children:(0,E.jsx)(Ue.Tr,{children:(0,E.jsx)(Ze.Td,{colSpan:n,children:(0,E.jsx)(M.a,{children:(0,E.jsx)(en.y,{size:"xl"})})})})}):a?(0,E.jsx)(ze.N,{"aria-label":"Table error",children:(0,E.jsx)(Ue.Tr,{children:(0,E.jsx)(Ze.Td,{colSpan:n,children:(0,E.jsx)(M.a,{children:s||g})})})}):l?(0,E.jsx)(ze.N,{"aria-label":"Table no data",children:(0,E.jsx)(Ue.Tr,{children:(0,E.jsx)(Ze.Td,{colSpan:n,children:(0,E.jsx)(M.a,{children:u||p})})})}):v})};function an(e){var n=e.name,r=e.items,t=e.getRowKey,a=e.columns,o=e.filterConfig,l=e.compareToByColumn,c=e.filterItem,s=e.renderExpandContent,d=e.ariaLabelPrefix,u=void 0===d?"Table":d,h=e.expandId,v=void 0===h?"compound-expand-table":h,g=e.defaultExpanded,x=void 0===g?{}:g,f=e.initialSortBy,m=(0,i.useState)(""),y=(0,F.A)(m,2),I=y[0],A=y[1],C=function(e){var n=(0,i.useReducer)(qe,(0,Oe.A)((0,Oe.A)({},Xe),{},{currentPage:e&&e.page?(0,Oe.A)({},e.page):(0,Oe.A)({},Xe.currentPage),sortBy:e&&e.sortBy?(0,Oe.A)({},e.sortBy):Xe.sortBy})),r=(0,F.A)(n,2),t=r[0],a=r[1],o=(0,i.useCallback)(function(e){var n;a({type:Qe.SET_PAGE,payload:{page:e.page>=1?e.page:1,perPage:null!==(n=e.perPage)&&void 0!==n?n:Xe.currentPage.perPage}})},[]),l=(0,i.useCallback)(function(e,n,r,i){a({type:Qe.SET_SORT_BY,payload:{index:n,direction:r}})},[]);return{page:t.currentPage,sortBy:t.sortBy,changePage:o,changeSortBy:l}}(f?{sortBy:f}:void 0),b=C.page,w=C.sortBy,N=C.changePage,T=C.changeSortBy,S=function(e){var n=e.items,r=e.currentSortBy,t=e.currentPage,a=e.filterItem,o=e.compareToByColumn;return(0,i.useMemo)(function(){var e,i=(0,Ye.A)(n||[]).filter(a),l=!1;return e=(0,Ye.A)(i).sort(function(e,n){var i=o(e,n,null===r||void 0===r?void 0:r.index);return 0!==i&&(l=!0),i}),l&&(null===r||void 0===r?void 0:r.direction)===He.l.desc&&(e=e.reverse()),{pageItems:e.slice((t.page-1)*t.perPage,t.page*t.perPage),filteredItems:i}},[n,t,r,o,a])}({items:r,currentPage:b,currentSortBy:w,compareToByColumn:l,filterItem:function(e){return c(e,I)}}),M=S.pageItems,O=S.filteredItems,P=(0,i.useState)(x),D=(0,F.A)(P,2),k=D[0],L=D[1],B=function(e,n,r,i){return{isExpanded:k[t(e)]===n,onToggle:function(){return function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t(e),a=(0,Oe.A)({},k);r?a[i]=n:delete a[i],L(a)}(e,n,k[t(e)]!==n)},expandId:v,rowIndex:r,columnIndex:i}},R=a.length;return(0,E.jsx)(p.Z,{children:(0,E.jsx)(j.b,{children:(0,E.jsxs)("div",{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:[(0,E.jsx)(Ee.M,{children:(0,E.jsxs)(Pe.P,{children:[(0,E.jsx)(De.h,{toggleIcon:(0,E.jsx)(Ke.Ay,{}),breakpoint:"xl",children:(0,E.jsx)(ke.T,{variant:"search-filter",children:(0,E.jsx)(Fe.D,{id:n+o.idSuffix,style:{width:"250px"},placeholder:o.placeholder,value:I,onChange:function(e,n){return A(n)},onClear:function(){return A("")}})})}),(0,E.jsx)(ke.T,{variant:ke.U.pagination,align:{default:"alignRight"},children:(0,E.jsx)($e,{isTop:!0,count:O.length,params:b,onChange:N})})]})}),(0,E.jsxs)(Le.X,{"aria-label":(null!==n&&void 0!==n?n:u)+" table",variant:Be.a.compact,children:[(0,E.jsx)(Re.d,{children:(0,E.jsx)(Ue.Tr,{children:a.map(function(e,n){return(0,E.jsx)(We.Th,{width:e.width,sort:null!=e.sortIndex?{columnIndex:e.sortIndex,sortBy:(0,Oe.A)({},w),onSort:T}:void 0,children:e.header},e.key)})})}),(0,E.jsx)(tn,{isNoData:0===O.length,numRenderedColumns:R,noDataEmptyState:(0,E.jsxs)(Ie.p,{variant:Ie.s.sm,children:[(0,E.jsx)(Ae.o,{icon:(0,E.jsx)(Ce.q,{icon:Ge.Ay}),titleText:"No results found",headingLevel:"h2"}),(0,E.jsx)(be.h,{children:"Clear all filters and try again."})]}),children:null===M||void 0===M?void 0:M.map(function(e,n){var r,i=t(e),o=k[i],l=!!o;return(0,E.jsxs)(ze.N,{isExpanded:l,children:[(0,E.jsx)(Ue.Tr,{children:a.map(function(r,i){return(0,E.jsx)(Ze.Td,{width:r.width,dataLabel:r.header,component:0===i?"th":void 0,compoundExpand:r.compoundExpand?B(e,r.key,n,i):void 0,children:r.render(e)},r.key)})}),l&&o?(0,E.jsx)(Ue.Tr,{isExpanded:!0,children:(0,E.jsx)(Ze.Td,{dataLabel:null===(r=a.find(function(e){return e.key===o}))||void 0===r?void 0:r.header,noPadding:!0,colSpan:R,children:(0,E.jsx)(Ve.g,{children:(0,E.jsx)("div",{className:"pf-v5-u-m-md",children:s(e,o)})})})}):null]},i)})})]}),(0,E.jsx)($e,{isTop:!1,count:O.length,params:b,onChange:N})]})})})}var on=function(e){var n=e.name,r=e.showVersion,i=void 0!==r&&r;return(0,E.jsx)(E.Fragment,{children:(0,E.jsx)("a",{href:Q(n),target:"_blank",rel:"noreferrer",children:Y(n,i)})})},ln=function(e){var n=e.packageName;e.cves;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(v.I,{isInline:!0,status:"success",children:(0,E.jsx)("img",{src:k,alt:"Security Check Icon"})}),"\xa0",(0,E.jsx)("a",{href:H(n),target:"_blank",rel:"noreferrer",children:X(n)})]})},cn=function(e){var n,r,i,t=e.packageRef,a=e.vulnerability,o=Kn();return(0,E.jsx)(E.Fragment,{children:null===(null===(n=a.remediation)||void 0===n?void 0:n.fixedIn)||0===(null===(r=a.remediation)||void 0===r||null===(i=r.fixedIn)||void 0===i?void 0:i.length)?(0,E.jsx)("p",{}):(0,E.jsx)("a",{href:q(t,o),target:"_blank",rel:"noreferrer",children:a.id})})},sn=r(8559),dn=r(7540),un=r(8762),hn=r(974),vn=function(e){var n,r=e.vulnerability;if("UNKNOWN"===r.severity)return(0,E.jsx)(E.Fragment,{children:"N/A"});switch(r.severity){case"CRITICAL":n="bar-critical";break;case"HIGH":n="bar-high";break;case"MEDIUM":n="bar-medium";break;case"LOW":n="bar-low";break;default:n="bar-default"}return(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(sn.B,{hasGutter:!0,children:(0,E.jsx)(dn.o,{isFilled:!0,children:(0,E.jsx)(un.k,{title:"".concat(r.cvssScore,"/10"),"aria-label":"cvss-score",value:r.cvssScore,min:0,max:10,size:un.j.sm,measureLocation:hn.Ri.none,className:"".concat(n)})})})})},gn=function(e){var n,r,i=e.vulnerability;switch(i.severity){case"CRITICAL":r="#800000";break;case"HIGH":r="#FF0000";break;case"MEDIUM":r="#FFA500";break;case"LOW":r="#5BA352";break;default:r="#808080"}return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(v.I,{isInline:!0,children:(0,E.jsx)(ve.Ay,{style:{fill:r,height:"13px"}})}),"\xa0",J(null!==(n=i.severity)&&void 0!==n?n:"UNKNOWN")]})},pn=function(e){var n,r,i=e.id,t=Kn();return(0,E.jsx)("a",{href:(n=i,r=t,r.cveIssueTemplate.replace("__ISSUE_ID__",n)),target:"_blank",rel:"noreferrer",children:i})},xn=r(4486),fn=function(e){var n=e.title,r=i.useState(!1),t=(0,F.A)(r,2),a=t[0],o=t[1];return(0,E.jsx)(xn.Q,{variant:xn.J.truncate,toggleText:a?"Show less":"Show more",onToggle:function(e,n){o(n)},isExpanded:a,children:n||"-"})},mn=function(e){var n,r,i,t,a,o=e.item,l=(e.providerName,e.rowIndex);return a=o.vulnerability.cves&&o.vulnerability.cves.length>0?o.vulnerability.cves:[o.vulnerability.id],(0,E.jsxs)(Ue.Tr,{children:[(0,E.jsx)(Ze.Td,{children:a.map(function(e,n){return(0,E.jsx)("p",{children:(0,E.jsx)(pn,{id:e})},n)})}),(0,E.jsx)(Ze.Td,{children:(0,E.jsx)(fn,{title:o.vulnerability.title})}),(0,E.jsx)(Ze.Td,{noPadding:!0,children:(0,E.jsx)(gn,{vulnerability:o.vulnerability})}),(0,E.jsx)(Ze.Td,{children:(0,E.jsx)(vn,{vulnerability:o.vulnerability})}),(0,E.jsx)(Ze.Td,{children:(0,E.jsx)(on,{name:o.dependencyRef,showVersion:!0})}),(0,E.jsx)(Ze.Td,{children:null!==(n=o.vulnerability.remediation)&&void 0!==n&&n.trustedContent?(0,E.jsx)(ln,{cves:o.vulnerability.cves||[],packageName:null===(r=o.vulnerability.remediation)||void 0===r||null===(i=r.trustedContent)||void 0===i?void 0:i.ref},l):null!==(t=o.vulnerability.remediation)&&void 0!==t&&t.fixedIn?(0,E.jsx)(cn,{packageRef:o.dependencyRef,vulnerability:o.vulnerability}):d(o.vulnerability)?null:(0,E.jsx)("span",{})})]},l)},jn=function(e){var n=e.providerName,r=e.transitiveDependencies;return(0,E.jsx)(p.Z,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:(0,E.jsxs)(Le.X,{variant:Be.a.compact,"aria-label":(null!==n&&void 0!==n?n:"Default")+" transitive vulnerabilities",children:[(0,E.jsx)(Re.d,{children:(0,E.jsxs)(Ue.Tr,{children:[(0,E.jsx)(We.Th,{width:15,children:"Vulnerability ID"}),(0,E.jsx)(We.Th,{width:20,children:"Description"}),(0,E.jsx)(We.Th,{width:10,children:"Severity"}),(0,E.jsx)(We.Th,{width:15,children:"CVSS Score"}),(0,E.jsx)(We.Th,{width:20,children:"Transitive Dependency"}),(0,E.jsx)(We.Th,{width:20,children:"Remediation"})]})}),(0,E.jsx)(tn,{isNoData:0===r.length,numRenderedColumns:7,children:u(r).map(function(e,r){return(0,E.jsx)(ze.N,{children:(0,E.jsx)(mn,{item:e,providerName:n,rowIndex:r})},r)})})]})})},yn=function(e){var n=e.providerName,r=e.dependency,i=e.vulnerabilities;return(0,E.jsx)(p.Z,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:(0,E.jsxs)(Le.X,{variant:Be.a.compact,"aria-label":(null!==n&&void 0!==n?n:"Default")+" direct vulnerabilities",children:[(0,E.jsx)(Re.d,{children:(0,E.jsxs)(Ue.Tr,{children:[(0,E.jsx)(We.Th,{width:15,children:"Vulnerability ID"}),(0,E.jsx)(We.Th,{width:20,children:"Description"}),(0,E.jsx)(We.Th,{width:10,children:"Severity"}),(0,E.jsx)(We.Th,{width:15,children:"CVSS Score"}),(0,E.jsx)(We.Th,{width:20,children:"Direct Dependency"}),(0,E.jsx)(We.Th,{width:20,children:"Remediation"})]})}),(0,E.jsx)(tn,{isNoData:0===i.length,numRenderedColumns:6,children:null===i||void 0===i?void 0:i.map(function(e,i){var t=[];return e.cves&&e.cves.length>0?e.cves.forEach(function(e){return t.push(e)}):e.unique&&t.push(e.id),(0,E.jsx)(ze.N,{children:t.map(function(t,a){return(0,E.jsx)(mn,{item:{id:e.id,dependencyRef:r.ref,vulnerability:e},providerName:n,rowIndex:i},"".concat(i,"-").concat(a))})},i)})})]})})},In=r(1640),An=function(e){var n=e.vulnerabilities,r=void 0===n?[]:n,i=e.transitiveDependencies,t=void 0===i?[]:i,a={CRITICAL:0,HIGH:0,MEDIUM:0,LOW:0,UNKNOWN:0};return r.length>0?r.forEach(function(e){var n=e.severity;n&&a.hasOwnProperty(n)&&a[n]++}):null===t||void 0===t||t.forEach(function(e){var n;null===(n=e.issues)||void 0===n||n.forEach(function(e){var n=e.severity;n&&a.hasOwnProperty(n)&&a[n]++})}),(0,E.jsxs)(In.Z,{children:[a.CRITICAL>0&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(v.I,{isInline:!0,children:(0,E.jsx)(ve.Ay,{style:{fill:"#800000",height:"13px"}})}),"\xa0",a.CRITICAL,"\xa0"]}),a.HIGH>0&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(v.I,{isInline:!0,children:(0,E.jsx)(ve.Ay,{style:{fill:"#FF0000",height:"13px"}})}),"\xa0",a.HIGH,"\xa0"]}),a.MEDIUM>0&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(v.I,{isInline:!0,children:(0,E.jsx)(ve.Ay,{style:{fill:"#FFA500",height:"13px"}})}),"\xa0",a.MEDIUM,"\xa0"]}),a.LOW>0&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(v.I,{isInline:!0,children:(0,E.jsx)(ve.Ay,{style:{fill:"#5BA352",height:"13px"}})}),"\xa0",a.LOW,"\xa0"]}),a.UNKNOWN>0&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(v.I,{isInline:!0,children:(0,E.jsx)(ve.Ay,{style:{fill:"#808080",height:"13px"}})}),"\xa0",a.UNKNOWN]})]})},Cn=function(e){var n,r,i=e.dependency,t=null===(n=i.issues)||void 0===n?void 0:n.some(function(e){return d(e)}),a=(null===(r=i.transitive)||void 0===r?void 0:r.some(function(e){var n;return null===(n=e.issues)||void 0===n?void 0:n.some(function(e){return d(e)})}))||!1;return(0,E.jsx)(E.Fragment,{children:t||a?"Yes":"No"})},bn=function(e){var n=e.name,r=e.dependencies,i=[{key:"name",header:"Dependency Name",width:30,sortIndex:1,render:function(e){return(0,E.jsx)(on,{name:e.ref})}},{key:"version",header:"Current Version",width:15,render:function(e){return X(e.ref)}},{key:"direct",header:"Direct Vulnerabilities",width:15,compoundExpand:!0,render:function(e){var n,r;return null!==(n=e.issues)&&void 0!==n&&n.length?(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,E.jsx)("div",{style:{width:"25px"},children:null===(r=e.issues)||void 0===r?void 0:r.length}),(0,E.jsx)(g.c,{orientation:{default:"vertical"},style:{paddingRight:"10px"}}),(0,E.jsx)(An,{vulnerabilities:e.issues})]}):0}},{key:"transitive",header:"Transitive Vulnerabilities",width:15,compoundExpand:!0,render:function(e){var n;return null!==(n=e.transitive)&&void 0!==n&&n.length?(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,E.jsx)("div",{style:{width:"25px"},children:e.transitive.map(function(e){var n;return null===(n=e.issues)||void 0===n?void 0:n.length}).reduce(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)})}),(0,E.jsx)(g.c,{orientation:{default:"vertical"},style:{paddingRight:"10px"}}),(0,E.jsx)(An,{transitiveDependencies:e.transitive})]}):0}},{key:"rhRemediation",header:"Remediation available",width:15,render:function(e){return(0,E.jsx)(Cn,{dependency:e})}}];return(0,E.jsx)(an,{name:n,items:r,getRowKey:function(e){return e.ref},columns:i,filterConfig:{placeholder:"Filter by Dependency name",idSuffix:"-dependency-filter"},compareToByColumn:function(e,n,r){return 1===r?e.ref.localeCompare(n.ref):0},filterItem:function(e,n){var r,i;return!!(null!==(r=e.issues)&&void 0!==r&&r.length||null!==(i=e.transitive)&&void 0!==i&&i.length)&&(!n||0===n.trim().length||-1!==e.ref.toLowerCase().indexOf(n.toLowerCase()))},renderExpandContent:function(e,r){var i,t;return"direct"===r&&null!==(i=e.issues)&&void 0!==i&&i.length?(0,E.jsx)(yn,{providerName:n,dependency:e,vulnerabilities:e.issues}):"transitive"===r&&null!==(t=e.transitive)&&void 0!==t&&t.length?(0,E.jsx)(jn,{providerName:n,transitiveDependencies:e.transitive}):null},ariaLabelPrefix:"Dependencies",expandId:"compound-expandable-example",defaultExpanded:{"siemur/test-space":"name"}})},wn=de;var Nn=function(e){var n=e.evidence,r=void 0===n?[]:n,t=e.countBy,a="identifiers"===(void 0===t?"evidence":t)?function(e){var n={PERMISSIVE:0,WEAK_COPYLEFT:0,STRONG_COPYLEFT:0,UNKNOWN:0};return null===e||void 0===e||e.forEach(function(e){(e.identifiers||[]).forEach(function(e){var r=(e.category||"UNKNOWN").toUpperCase().replace(/-/g,"_");n.hasOwnProperty(r)?n[r]++:n.UNKNOWN++})}),n}(r):function(e){var n={PERMISSIVE:0,WEAK_COPYLEFT:0,STRONG_COPYLEFT:0,UNKNOWN:0};return null===e||void 0===e||e.forEach(function(e){var r=(e.category||"UNKNOWN").toUpperCase().replace(/-/g,"_");n.hasOwnProperty(r)?n[r]++:n.UNKNOWN++}),n}(r);return(0,E.jsx)(In.Z,{children:wn.map(function(e){return a[e]>0&&(0,E.jsxs)(i.Fragment,{children:[(0,E.jsx)(v.I,{isInline:!0,children:(0,E.jsx)(ve.Ay,{style:{fill:ie[e],height:"13px"}})}),"\xa0",a[e],"\xa0"]},e)})})},Tn=function(e){var n=e.concluded;return(0,E.jsx)(p.Z,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:(0,E.jsxs)(A.B,{children:[(0,E.jsxs)(y.W,{children:[(0,E.jsx)(m.X,{children:"License name"}),(0,E.jsx)(I.d,{children:n.name||"\u2014"})]}),(0,E.jsxs)(y.W,{children:[(0,E.jsx)(m.X,{children:"Expression"}),(0,E.jsx)(I.d,{children:n.expression||"\u2014"})]}),(0,E.jsxs)(y.W,{children:[(0,E.jsx)(m.X,{children:"Category"}),(0,E.jsx)(I.d,{children:n.category?le(n.category):"\u2014"})]})]})})},Sn=r(5435),Mn="Evidence",On="Expression",En="Identifiers",Pn="Category",Dn="Status";function kn(e){var n,r=e.info,i=null!==(n=null===r||void 0===r?void 0:r.identifiers)&&void 0!==n?n:[],t=i.some(function(e){return!0===e.isDeprecated}),a=i.some(function(e){return!0===e.isOsiApproved}),o=i.some(function(e){return!0===e.isFsfLibre});return t||a||o?(0,E.jsxs)(Sn.s,{gap:{default:"gapSm"},alignItems:{default:"alignItemsCenter"},children:[t&&(0,E.jsx)(In.Z,{children:(0,E.jsx)("span",{title:"Deprecated identifier",children:(0,E.jsx)(v.I,{isInline:!0,children:(0,E.jsx)(ve.Ay,{style:{fill:oe,height:"13px"}})})})}),a&&(0,E.jsx)(In.Z,{children:(0,E.jsx)("img",{src:"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/open-source-initiative.svg",alt:"OSI Approved",title:"OSI Approved",style:{height:"1.1em",verticalAlign:"middle"}})}),o&&(0,E.jsx)(In.Z,{children:(0,E.jsx)("img",{src:"https://www.gnu.org/graphics/fsf-logo-notext-small.png",alt:"FSF Libre",title:"FSF Free/Libre",style:{height:"1.1em",verticalAlign:"middle"}})})]}):(0,E.jsx)(E.Fragment,{children:"\u2014"})}var Fn=function(e){var n=e.evidence,r=void 0===n?[]:n,t=(0,i.useMemo)(function(){return(0,Ye.A)(r).sort(function(e,n){return ue(e.category)-ue(n.category)})},[r]);return(0,E.jsx)(p.Z,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:(0,E.jsxs)(Le.X,{variant:Be.a.compact,"aria-label":"Evidence licenses",children:[(0,E.jsx)(Re.d,{children:(0,E.jsxs)(Ue.Tr,{children:[(0,E.jsx)(We.Th,{width:30,children:Mn}),(0,E.jsx)(We.Th,{width:20,children:On}),(0,E.jsx)(We.Th,{width:25,children:En}),(0,E.jsx)(We.Th,{width:15,children:Pn}),(0,E.jsx)(We.Th,{width:10,children:Dn})]})}),(0,E.jsx)(tn,{isNoData:0===t.length,numRenderedColumns:5,children:(0,E.jsx)(ze.N,{children:t.map(function(e,n){var r,i,t,a=e.name||(null===(r=e.identifiers)||void 0===r?void 0:r.map(function(e){return e.name||e.id}).join(", "))||e.expression||"\u2014",o=e.expression||"\u2014",l=null!==(i=null===(t=e.identifiers)||void 0===t?void 0:t.map(function(e){return e.id}))&&void 0!==i?i:[],c=e.category||"\u2014",s=ce(e.category);return(0,E.jsxs)(Ue.Tr,{children:[(0,E.jsx)(Ze.Td,{dataLabel:Mn,children:a}),(0,E.jsx)(Ze.Td,{dataLabel:On,children:o}),(0,E.jsx)(Ze.Td,{dataLabel:En,style:{whiteSpace:"pre-line"},children:l.length?l.join("\n"):"\u2014"}),(0,E.jsx)(Ze.Td,{dataLabel:Pn,children:"\u2014"!==c?(0,E.jsxs)("span",{children:[(0,E.jsx)(v.I,{isInline:!0,children:(0,E.jsx)(ve.Ay,{style:{fill:s,height:"13px"}})}),"\xa0",le(e.category)]}):"\u2014"}),(0,E.jsx)(Ze.Td,{dataLabel:Dn,children:(0,E.jsx)(kn,{info:e})})]},n)})})})]})})};var Ln=function(e){var n=e.name,r=function(e){return Object.entries(e||{}).map(function(e){var n=(0,F.A)(e,2),r=n[0],i=n[1];return{ref:r,concluded:i.concluded,evidence:i.evidence||[]}})}(e.dependencies),i=[{key:"name",header:"Dependency Name",width:30,sortIndex:1,render:function(e){return(0,E.jsx)(on,{name:e.ref})}},{key:"version",header:"Current Version",width:15,render:function(e){return X(e.ref)}},{key:"concluded",header:"Concluded",width:20,sortIndex:2,compoundExpand:!0,render:function(e){var n;if(!e.concluded)return"\u2014";var r=e.concluded.expression||e.concluded.name||"\u2014",i=null===(n=e.concluded.identifiers)||void 0===n?void 0:n.some(function(e){return!0===e.isDeprecated});return(0,E.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[i&&(0,E.jsx)(v.I,{isInline:!0,title:"Concluded license is deprecated",children:(0,E.jsx)(ve.Ay,{style:{fill:"#F0AB00",height:"13px"}})}),r]})}},{key:"category",header:"Category",width:15,sortIndex:3,render:function(e){var n;return null!==(n=e.concluded)&&void 0!==n&&n.category?(0,E.jsxs)("span",{children:[(0,E.jsx)(v.I,{isInline:!0,children:(0,E.jsx)(ve.Ay,{style:{fill:ce(e.concluded.category),height:"13px"}})}),"\xa0",le(e.concluded.category)]}):"\u2014"}},{key:"evidences",header:"Evidences",width:25,compoundExpand:!0,render:function(e){var n;return null!==(n=e.evidence)&&void 0!==n&&n.length?(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,E.jsx)("div",{style:{width:"25px"},children:e.evidence.length}),(0,E.jsx)(g.c,{orientation:{default:"vertical"},style:{paddingRight:"10px"}}),(0,E.jsx)(Nn,{evidence:e.evidence,countBy:"identifiers"})]}):0}}];return(0,E.jsx)(an,{name:n,items:r,getRowKey:function(e){return e.ref},columns:i,filterConfig:{placeholder:"Filter by Dependency name",idSuffix:"-license-filter"},compareToByColumn:function(e,n,r){switch(r){case 1:return e.ref.localeCompare(n.ref);case 2:var i,t,a,o,l=(null===(i=e.concluded)||void 0===i?void 0:i.expression)||(null===(t=e.concluded)||void 0===t?void 0:t.name)||"",c=(null===(a=n.concluded)||void 0===a?void 0:a.expression)||(null===(o=n.concluded)||void 0===o?void 0:o.name)||"";return l.localeCompare(c);case 3:var s,d,u=(null===(s=e.concluded)||void 0===s?void 0:s.category)||"",h=(null===(d=n.concluded)||void 0===d?void 0:d.category)||"";return u.localeCompare(h);default:return 0}},filterItem:function(e,n){return!n||0===n.trim().length||-1!==e.ref.toLowerCase().indexOf(n.toLowerCase())},renderExpandContent:function(e,n){var r;return"concluded"===n&&e.concluded?(0,E.jsx)(Tn,{concluded:e.concluded}):"evidences"===n&&null!==(r=e.evidence)&&void 0!==r&&r.length?(0,E.jsx)(Fn,{evidence:e.evidence}):null},ariaLabelPrefix:"Licenses",expandId:"evidences-compound-expand",initialSortBy:{index:3,direction:"desc"}})},Bn=r(1157),Rn="vulnerabilities",Un="licenses",Wn=function(e){var n=e.report,r=Kn(),t=c(n),o=t.length>0,l=(0,i.useMemo)(function(){var e;return(null!==(e=n.licenses)&&void 0!==e?e:[]).filter(function(e){return e.summary.total>0})},[n.licenses]),d=l.length>0,u=o?s(t[0]):null,h=d?l[0].status.name:null,v=i.useState(o?Rn:Un),g=(0,F.A)(v,2),p=g[0],x=g[1],f=i.useState(null!==u&&void 0!==u?u:0),m=(0,F.A)(f,2),j=m[0],y=m[1],I=i.useState(null!==h&&void 0!==h?h:0),A=(0,F.A)(I,2),C=A[0],b=A[1],w=r.writeKey&&""!==r.writeKey.trim()?Bn.N.load({writeKey:r.writeKey}):null,N=(0,i.useRef)("");(0,i.useEffect)(function(){w&&null!=r.anonymousId&&w.setAnonymousId(r.anonymousId)},[w,r.anonymousId]),(0,i.useEffect)(function(){d&&null!=h&&(new Set(l.map(function(e){return e.status.name})).has(String(C))||b(h))},[d,h,l,C]);var T=p===Rn?j:C;(0,i.useEffect)(function(){w&&T!==N.current&&(w.track("rhda.exhort.tab",{tabName:T}),N.current=T)},[w,T]);var S=[];return o&&S.push((0,E.jsx)(Te.o,{eventKey:Rn,title:(0,E.jsx)(Se.V,{children:"Vulnerabilities"}),"aria-label":"Vulnerabilities",children:(0,E.jsx)(Me.t,{activeKey:j,onSelect:function(e,n){y(n)},isSecondary:!0,isBox:!0,variant:"light300","aria-label":"Vulnerability providers",role:"region",children:t.map(function(e){var n,r=s(e),i=null===(n=e.report.dependencies)||void 0===n?void 0:n.filter(function(e){return e.highestVulnerability});return(0,E.jsx)(Te.o,{eventKey:r,title:(0,E.jsx)(Se.V,{children:r}),"aria-label":"".concat(r," source"),children:(0,E.jsx)(a.d8,{variant:a.zC.default,children:(0,E.jsx)(bn,{name:r,dependencies:i})})},r)})})},Rn)),d&&S.push((0,E.jsx)(Te.o,{eventKey:Un,title:(0,E.jsx)(Se.V,{children:"Licenses"}),"aria-label":"Licenses",children:(0,E.jsx)(Me.t,{activeKey:C,onSelect:function(e,n){b(n)},isSecondary:!0,isBox:!0,variant:"light300","aria-label":"License providers",role:"region",children:l.map(function(e){return(0,E.jsx)(Te.o,{eventKey:e.status.name,title:(0,E.jsx)(Se.V,{children:e.status.name}),"aria-label":"".concat(e.status.name," source"),children:(0,E.jsx)(a.d8,{variant:a.zC.default,children:(0,E.jsx)(Ln,{name:e.status.name,dependencies:e.packages})})},e.status.name)})})},Un)),0===S.length?null:(0,E.jsx)("div",{children:(0,E.jsx)(Me.t,{activeKey:p,onSelect:function(e,n){x(n)},"aria-label":"Providers",role:"region",variant:"light300",isBox:!0,children:S})})},zn=function(e){var n,r=e.report,t=(0,i.useMemo)(function(){return Object.entries(r).sort(function(e,n){var r=(0,F.A)(e,1)[0],i=(0,F.A)(n,1)[0];return r.localeCompare(i)})},[r]),c=i.useState((null===(n=t[0])||void 0===n?void 0:n[0])||""),s=(0,F.A)(c,2),d=s[0],u=s[1],h=i.useState(!0),v=(0,F.A)(h,1)[0];(0,i.useEffect)(function(){var e,n=(null===(e=t[0])||void 0===e?void 0:e[0])||"";u(function(e){return new Set(t.map(function(e){return(0,F.A)(e,1)[0]})).has(String(e))?e:n})},[t]);var g=t.map(function(e){var n=(0,F.A)(e,2),r=n[0],i=n[1];return(0,E.jsxs)(Te.o,{eventKey:r,title:(0,E.jsx)(Se.V,{children:_(r)}),"aria-label":"".concat(r," source"),children:[(0,E.jsx)(me,{report:i}),(0,E.jsx)(a.d8,{variant:a.zC.light,children:(0,E.jsx)(o.x,{hasGutter:!0,children:(0,E.jsx)(l.E,{children:(0,E.jsx)(xe,{report:i,isReportMap:!0,purl:r})})})}),(0,E.jsx)(a.d8,{variant:a.zC.default,children:(0,E.jsx)(Wn,{report:i})})]})});return(0,E.jsx)("div",{children:(0,E.jsx)(Me.t,{activeKey:d,onSelect:function(e,n){u(n)},"aria-label":"Providers",role:"region",variant:v?"light300":"default",isBox:!0,children:g})})},Zn=window.appData,Vn=(0,i.createContext)(Zn),Kn=function(){return(0,i.useContext)(Vn)};var Gn=function(){return(0,E.jsx)(Vn.Provider,{value:Zn,children:(0,E.jsx)(Ne,{children:(e=Zn.report,"object"===typeof e&&null!==e&&Object.keys(e).every(function(n){return"scanned"in e[n]&&"providers"in e[n]&&"object"===typeof e[n].scanned&&"object"===typeof e[n].providers})?(0,E.jsx)(a.d8,{variant:a.zC.default,children:(0,E.jsx)(zn,{report:Zn.report})}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(me,{report:Zn.report}),(0,E.jsx)(a.d8,{variant:a.zC.light,children:(0,E.jsx)(o.x,{hasGutter:!0,children:(0,E.jsx)(l.E,{children:(0,E.jsx)(xe,{report:Zn.report})})})}),(0,E.jsx)(a.d8,{variant:a.zC.default,children:(0,E.jsx)(Wn,{report:Zn.report})})]}))})});var e},Yn=function(e){e&&e instanceof Function&&r.e(121).then(r.bind(r,6895)).then(function(n){var r=n.getCLS,i=n.getFID,t=n.getFCP,a=n.getLCP,o=n.getTTFB;r(e),i(e),t(e),a(e),o(e)})};t.createRoot(document.getElementById("root")).render((0,E.jsx)(i.StrictMode,{children:(0,E.jsx)(Gn,{})})),Yn()}},n={};function r(i){var t=n[i];if(void 0!==t)return t.exports;var a=n[i]={id:i,loaded:!1,exports:{}};return e[i].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=e,function(){var e=[];r.O=function(n,i,t,a){if(!i){var o=1/0;for(d=0;d=a)&&Object.keys(r.O).every(function(e){return r.O[e](i[c])})?i.splice(c--,1):(l=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[i,t,a]}}(),r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},function(){var e,n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};r.t=function(i,t){if(1&t&&(i=this(i)),8&t)return i;if("object"===typeof i&&i){if(4&t&&i.__esModule)return i;if(16&t&&"function"===typeof i.then)return i}var a=Object.create(null);r.r(a);var o={};e=e||[null,n({}),n([]),n(n)];for(var l=2&t&&i;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=n(l))Object.getOwnPropertyNames(l).forEach(function(e){o[e]=function(){return i[e]}});return o.default=function(){return i},r.d(a,o),a}}(),r.d=function(e,n){for(var i in n)r.o(n,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},r.e=function(){return Promise.resolve()},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={792:0};r.O.j=function(n){return 0===e[n]};var n=function(n,i){var t,a,o=i[0],l=i[1],c=i[2],s=0;if(o.some(function(n){return 0!==e[n]})){for(t in l)r.o(l,t)&&(r.m[t]=l[t]);if(c)var d=c(r)}for(n&&n(i);s0?Object.keys(i).forEach(function(e){n.push({provider:r,source:e,report:i[e]})}):"trusted-content"!==r&&n.push({provider:r,source:r,report:{}})}),n.sort(function(e,n){return 0===Object.keys(e.report).length&&0===Object.keys(n.report).length?1:Object.keys(n.report).length-Object.keys(e.report).length})}function d(e){if(!e||!e.provider)return"Other";var n=e.provider&&"unknown"!==e.provider?e.provider:"Other",r=e.source&&"unknown"!==e.source?e.source:"Other";return n===r?n:"".concat(n,"/").concat(r)}function u(e){var n;return!(!e.remediation||!(e.remediation.fixedIn||null!==(n=e.remediation)&&void 0!==n&&n.trustedContent||e.remediation.advisories&&e.remediation.advisories.length>0))}function h(e,n){if(!n)return e;if(!e)return n;var r=(e.fixedIn||[]).concat((n.fixedIn||[]).filter(function(n){return!(e.fixedIn||[]).includes(n)})),i=(e.advisories||[]).concat(n.advisories||[]);return{fixedIn:r.length>0?r:e.fixedIn,advisories:i.length>0?i:e.advisories,trustedContent:e.trustedContent||n.trustedContent}}function v(e){var n=new Map;return e.map(function(e){return{dependencyRef:e.ref,vulnerabilities:e.issues||[]}}).forEach(function(e){var r;null===(r=e.vulnerabilities)||void 0===r||r.forEach(function(r){(r.cves&&r.cves.length>0?r.cves:[r.id]).forEach(function(i){var t=i+"|"+e.dependencyRef,a=n.get(t);a?a.vulnerability=(0,l.A)((0,l.A)({},a.vulnerability),{},{remediation:h(a.vulnerability.remediation,r.remediation)}):n.set(t,{id:i,dependencyRef:e.dependencyRef,vulnerability:(0,l.A)({},r)})})})}),Array.from(n.values()).sort(function(e,n){return n.vulnerability.cvssScore-e.vulnerability.cvssScore})}var g=r(9292),x=r(6180),p=r(9341),f=r(3844),m=r(2881),j=r(4900),y=r(3144),I=r(2092),A=r(5767),C=r(4646),b=r(260),N=r(1352),w=r(3571),T=r(2995),S=r(9133),O=r(628),M=r(2972),E=r(8056),P=r(2008),D=r(481),k=["#800000","#FF0000","#FFA500","#5BA352","#808080"],F=function(e){var n,r,i,t,a,o,s=e.summary,l=null!==(n=null===s||void 0===s?void 0:s.critical)&&void 0!==n?n:0,c=null!==(r=null===s||void 0===s?void 0:s.high)&&void 0!==r?r:0,d=null!==(i=null===s||void 0===s?void 0:s.medium)&&void 0!==i?i:0,u=null!==(t=null===s||void 0===s?void 0:s.low)&&void 0!==t?t:0,h=null!==(a=null===s||void 0===s?void 0:s.unknown)&&void 0!==a?a:0,v=null!==(o=null===s||void 0===s?void 0:s.total)&&void 0!==o?o:0,g=l+c+d+u+h>0,x=g?k:["#D5F5E3"],p=[{name:"Critical: ".concat(l),symbol:{type:"square",fill:k[0]}},{name:"High: ".concat(c),symbol:{type:"square",fill:k[1]}},{name:"Medium: ".concat(d),symbol:{type:"square",fill:k[2]}},{name:"Low: ".concat(u),symbol:{type:"square",fill:k[3]}},{name:"Unknown: ".concat(h),symbol:{type:"square",fill:k[4]}}];return(0,D.jsx)("div",{children:(0,D.jsx)(I.b,{style:{paddingBottom:"inherit",padding:"0"},children:(0,D.jsx)(E.a,{children:(0,D.jsx)("div",{style:{height:"230px",width:"350px"},children:(0,D.jsx)(P.H,{constrainToVisibleArea:!0,data:g?[{x:"Critical",y:l},{x:"High",y:c},{x:"Medium",y:d},{x:"Low",y:u},{x:"Unknown",y:h}]:[{x:"Empty",y:1e-10}],labels:function(e){var n=e.datum;return g?"".concat(n.x,": ").concat(n.y):"No vulnerabilities"},legendData:p,legendOrientation:"vertical",legendPosition:"right",padding:{left:20,right:140},subTitle:"Unique vulnerabilities",title:"".concat(v),width:350,colorScale:x})})})})})},L="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxM3B4IiB2aWV3Qm94PSIwIDAgMTIgMTMiIGlkPSJTZWN1cml0eUNoZWNrSWNvbiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDx0aXRsZT5Db21iaW5lZCBTaGFwZTwvdGl0bGU+CiAgICA8ZyBpZD0iTXVsdGktdmVuZG9yIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iT3ZlcnZpZXctQ29weSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEyMDcsIC05OTMpIiBmaWxsPSIjM0U4NjM1Ij4KICAgICAgICAgICAgPGcgaWQ9IkRldGFpbHMtb2YtZGVwZW5kZW5jeS1jb20uZ2l0aHViIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0MjcsIDgxOSkiPgogICAgICAgICAgICAgICAgPGcgaWQ9IkRlcGVuZGVuY3ktMSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwgMTQ0KSI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc4MC4xNzI4LCAyNCkiPgogICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwgMy4yKSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iSWNvbnMvMi4tU2l6ZS1zbS9BY3Rpb25zL2NoZWNrIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLCAyLjgpIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTAuNTU2NTc4OSwwIEMxMC43OTA2MjQ5LDAgMTAuOTc5MzMyMiwwLjE4MTU0Mjk2OSAxMC45NzkzMzIyLDAuNDA2MjUgTDEwLjk3OTMzMjIsNS43NDA4MjAzMSBDMTAuOTc5MzMyMiw5Ljc1IDYuMjQwODE5MDcsMTMgNS40OTU3OTI5NiwxMyBDNC43NTA3NjY4NCwxMyAwLDkuNzUgMCw1LjczOTU1MDc4IEwwLDAuNDA2MjUgQzAsMC4xODE1NDI5NjkgMC4xODg3MDcyNzIsMCAwLjQyMjc1MzMwNCwwIFogTTguNTQyNzc4ODMsMy4xMTc4MjY2NyBMNC43OTEyOTYxLDYuODkwODczNTMgTDMuMDM5ODEzMzgsNS4xMjkzMjQ0IEMyLjg4MzYwOSw0Ljk3MjIwNjgzIDIuNjMwMzI4MTIsNC45NzIyMDY4MyAyLjQ3NDEyMzc1LDUuMTI5MzI0NCBMMS45MDg0NDkzOCw1LjY5ODI2NTU2IEMxLjc1MjI0NTAxLDUuODU1MzgzMTIgMS43NTIyNDUwMSw2LjExMDEwNDQ5IDEuOTA4NDQ5MzgsNi4yNjcyMDY3MSBMNC41MDg0NTc5Nyw4Ljg4MjE1OTkxIEM0LjY2NDY0NzA4LDkuMDM5Mjc3NDcgNC45MTc5MTI3LDkuMDM5Mjc3NDcgNS4wNzQxMzIzMyw4Ljg4MjE3NTI1IEw5LjY3NDE0MjgyLDQuMjU1NzA4OTggQzkuODMwMzQ3Miw0LjA5ODU5MTQxIDkuODMwMzQ3MiwzLjg0Mzg3MDA0IDkuNjc0MTQyODIsMy42ODY3Njc4MiBMOS4xMDg0Njg0NiwzLjExNzgyNjY3IEM4Ljk1MjI2NDA4LDIuOTYwNzI0NDQgOC42OTg5ODMyLDIuOTYwNzI0NDQgOC41NDI3Nzg4MywzLjExNzgyNjY3IFoiIGlkPSJDb21iaW5lZC1TaGFwZSI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=",B=r(296),R=r(3029),V=r(2901),W="maven",U="https://central.sonatype.com/artifact/",Z="https://pkg.go.dev/",z="https://www.npmjs.com/package/",K="https://pypi.org/project/",G="__ISSUE_ID__",Y="pkg:",H=/%[0-9A-Fa-f]{2}/,Q=function(e,n){var r=oe.fromString(e),i=function(e){var n="";return e.namespace&&(n=e.type===W?"".concat(e.namespace,":"):"".concat(e.namespace,"/")),n+"".concat(e.name)}(r),t=r.version?decodeURIComponent(r.version):"";return n?i+"@".concat(t):i},X=function(e){var n=oe.fromString(e);if(n.qualifiers&&n.qualifiers.has("repository_url")){var r=decodeURIComponent(n.qualifiers.get("repository_url")||"");r.endsWith("/")&&(r=r.substring(0,r.length-1));var i=n.namespace;return i&&(i=i.replace(/\./g,"/")),"".concat(r,"/").concat(i,"/").concat(n.name,"/").concat(n.version)}var t=U;return n.namespace?"".concat(U).concat(n.namespace,"/").concat(n.name,"/").concat(n.version):t},q=function(e){var n=oe.fromString(e);switch(n.type){case W:return"".concat(U).concat(n.namespace,"/").concat(n.name,"/").concat(n.version);case"golang":var r=n.version;return null!==r&&void 0!==r&&r.match(/v\d\.\d.\d-\d{14}-\w{12}/)?"".concat(Z).concat(n.namespace,"/").concat(n.name):"".concat(Z).concat(n.namespace,"/").concat(n.name,"@").concat(n.version);case"npm":return n.namespace?"".concat(z).concat(n.namespace,"/").concat(n.name,"/v/").concat(n.version):"".concat(z).concat(n.name,"/v/").concat(n.version);case"pypi":return n.namespace?"".concat(K).concat(n.namespace,"/").concat(n.name,"/").concat(n.version):"".concat(K).concat(n.name,"/").concat(n.version);case"deb":return"".concat("https://sources.debian.org/patches/").concat(n.name,"/").concat(n.version);case"cargo":return"".concat("https://crates.io/crates/").concat(n.name,"/").concat(n.version);default:return n.toString()}},J=function(e){var n=oe.fromString(e).version;return n?decodeURIComponent(n):""},_=/CVE-\d{4}-\d+/,$=/RH[A-Z]{2}-\d{4}[_:]\d+/,ee=function(e,n){var r,i=n.advisoryIssueTemplate||(null===(r=n.brandingConfig)||void 0===r?void 0:r.advisoryIssueTemplate);if(!i)return e;var t=e.match(_);if(t)return i.replace(G,t[0]);var a=e.match($);return a?i.replace(G,a[0]):e},ne=function(e){return e.toLowerCase().replace(/./,function(e){return e.toUpperCase()})},re=function(e){var n=ie(e),r="";if(n.repository_url){var i=n.repository_url.indexOf("/");r+=-1!==i?n.repository_url.substring(i+1):""}else r+="".concat(n.short_name);return n.tag&&(r+=":".concat(n.tag)),r},ie=function(e){var n=e.split("?"),r=n[0],i=n[1],t=new URLSearchParams(i),a=t.get("repository_url")||"",o=t.get("tag")||"",s=t.get("arch")||"",l=r.split("@");return{repository_url:a,tag:o,short_name:l[0].substring(l[0].indexOf("/")+1),version:r.substring(r.lastIndexOf("@")).replace("%3A",":"),arch:s}},te=function(e,n,r,i){var t=c(n),a=i||"";for(var o in t){var s=t[o].report.dependencies;if(s){var l=Object.values(s).find(function(n){var r,i=n.ref,t=decodeURIComponent(i),a=(r=e,H.test(r)?decodeURIComponent(e):e);return oe.fromString(t).toString()===oe.fromString(a).toString()});if(l&&l.recommendation&&a){var d=decodeURIComponent(l.recommendation);if(void 0!==ae(d,r))return a+re(d)}}}return a},ae=function(e,n){var r=JSON.parse(n).find(function(n){return oe.fromString(n.purl).toString()===oe.fromString(e).toString()});return null===r||void 0===r?void 0:r.catalogUrl},oe=function(){function e(n,r,i,t,a){(0,R.A)(this,e),this.type=void 0,this.namespace=void 0,this.name=void 0,this.version=void 0,this.qualifiers=void 0,this.type=n,this.namespace=r,this.name=i,this.version=t,this.qualifiers=a}return(0,V.A)(e,[{key:"toString",value:function(){var e=this.name;return this.version&&(e+="@".concat(this.version)),this.namespace?"".concat(Y).concat(this.type,"/").concat(this.namespace,"/").concat(e):this.qualifiers?"".concat(Y).concat(this.type,"/").concat(e,"?").concat(Array.from(this.qualifiers.entries()).map(function(e){var n=(0,B.A)(e,2),r=n[0],i=n[1];return"".concat(r,"=").concat(i)}).join("&")):"".concat(Y).concat(this.type,"/").concat(e)}}],[{key:"fromString",value:function(n){var r,i,t=n.replace(Y,""),a=t.indexOf("?");-1!==a&&(i=t.substring(a+1),t=t.substring(0,a));var o,s,l=t.substring(0,t.indexOf("/")),c=t.split("/");c.length>2&&(o=c.slice(1,c.length-1).join("/")),-1!==t.indexOf("@")&&(s=t.substring(t.indexOf("@")+1));var d=c[c.length-1];return s&&(d=d.substring(0,d.indexOf("@"))),new e(l,o,d,s,new Map((null===(r=i)||void 0===r?void 0:r.split("&").map(function(e){return e.split("=")}))||[]))}}])}(),se={PERMISSIVE:"#0066CC",WEAK_COPYLEFT:"#3E8635",STRONG_COPYLEFT:"#F0AB00",UNKNOWN:"#C46100"},le={PERMISSIVE:"Permissive",WEAK_COPYLEFT:"Weak copyleft",STRONG_COPYLEFT:"Strong copyleft",UNKNOWN:"Unknown"};function ce(e){if(!e)return 1;switch(e.toUpperCase().replace(/-/g,"_")){case"PERMISSIVE":return 4;case"WEAK_COPYLEFT":return 3;case"STRONG_COPYLEFT":return 2;default:return 1}}var de="#F0AB00";function ue(e){var n;if(!e)return le.UNKNOWN;var r=e.toUpperCase().replace(/-/g,"_");return null!==(n=le[r])&&void 0!==n?n:e}function he(e){var n;if(!e)return se.UNKNOWN;var r=e.toUpperCase().replace(/-/g,"_");return null!==(n=se[r])&&void 0!==n?n:se.UNKNOWN}function ve(e){var n;if(e){var r=e.toUpperCase().replace(/-/g,"_");n="PERMISSIVE"===r?"blue":"WEAK_COPYLEFT"===r?"green":"STRONG_COPYLEFT"===r?"yellow":"gray"}else n="gray";return n}var ge=["PERMISSIVE","WEAK_COPYLEFT","STRONG_COPYLEFT","UNKNOWN"];function xe(e){if(!e)return ge.length;var n=e.toUpperCase().replace(/-/g,"_"),r=ge.indexOf(n);return r>=0?r:ge.length}var pe=function(e){var n,r,i,t,a,o=e.summary,s=null!==(n=o.permissive)&&void 0!==n?n:0,l=null!==(r=o.strongCopyleft)&&void 0!==r?r:0,c=null!==(i=o.unknown)&&void 0!==i?i:0,d=null!==(t=o.weakCopyleft)&&void 0!==t?t:0,u=null!==(a=o.total)&&void 0!==a?a:0,h=s+l+c+d>0,v=[{name:"Permissive: ".concat(s),symbol:{type:"square",fill:se.PERMISSIVE}},{name:"Weak Copyleft: ".concat(d),symbol:{type:"square",fill:se.WEAK_COPYLEFT}},{name:"Strong Copyleft: ".concat(l),symbol:{type:"square",fill:se.STRONG_COPYLEFT}},{name:"Unknown: ".concat(c),symbol:{type:"square",fill:se.UNKNOWN}}];return(0,D.jsx)("div",{children:(0,D.jsx)(I.b,{style:{paddingBottom:"inherit",padding:"0"},children:(0,D.jsx)(E.a,{children:(0,D.jsx)("div",{style:{height:"230px",width:"350px"},children:(0,D.jsx)(P.H,{constrainToVisibleArea:!0,data:h?[{x:"Permissive",y:s},{x:"Weak Copyleft",y:d},{x:"Strong Copyleft",y:l},{x:"Unknown",y:c}]:[{x:"Empty",y:1e-10}],labels:function(e){var n=e.datum;return h?"".concat(n.x,": ").concat(n.y):"No licenses"},legendData:v,legendOrientation:"vertical",legendPosition:"right",padding:{left:0,right:160},subTitle:"Total licenses",title:"".concat(u),width:350,colorScale:Object.values(se)})})})})})},fe=r(4102),me={width:"16px",height:"16px",verticalAlign:"middle"},je="330px";var ye=function(e){var n,r,i=e.report,t=e.isReportMap,a=e.purl,l=nr(),u=l.brandingConfig||{displayName:"Trustify",exploreUrl:"https://guac.sh/trustify/",exploreTitle:"Learn more about Trustify",exploreDescription:"The Trustify project is a collection of software components that enables you to store and retrieve Software Bill of Materials (SBOMs), and advisory documents.",imageRecommendation:"",imageRecommendationLink:""},h=Boolean(u.exploreTitle.trim().length>0)&&Boolean(u.exploreUrl.trim().length>0)&&Boolean(u.exploreDescription.trim().length>0),v=Boolean(t)&&u.imageRecommendation.trim().length>0&&u.imageRecommendationLink.trim().length>0,E=i.licenses||[],P=(null!==(n=i.licenses)&&void 0!==n?n:[]).filter(function(e){return e.summary.total>0}),k=null===(r=i.licenses)||void 0===r?void 0:r.find(function(e){return"SBOM"===e.status.name}),B=null===k||void 0===k?void 0:k.projectLicense,R=Boolean(B),V=function(){return(0,D.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAON0lEQVR4nOxad1xTV/s/mYwQRkBWGCJDFERZgqCvoDhQKuKroghVpK2COIqK9VVrXWhx4oIiIKKoIAilIlgHqFAKssIeIeywQhIIWTfr97nxTX9IwVaI/et9Pp/7ObnPedb33vPc85xzghYIBAg0Gi0BExCPy1UsKytd3EahWAqFIqy2jnaHo5NznpaWVv9EOslJSbsvn4+8mnAv2d5m7txymLdlw/piFoulnpX7bOZEejCxWCyVQRqNiMFg+Dq6up1oNFoE82urq+119fQ6Ncf4RXh7etaJxWKss4tLrrmFRZW2jna3UCjC9PZQp1dVVjoVFxWtHBkZUR+thEKhoKXLlqfuDgs7pKenRx0bRFdn5/QN3mvqdXT1Ojds8r3aUF8/L+fJkyC/gIALYeGHDo6VF4lEyMz09O1pqSk7yU1N8yQSCQrmKysrM//l7p7lv3XbxcePHn1FNCC2bd0edOkDAD/duHE0NvrmqfGeBgqFEtg5OLxauWr1Q2ubOcUCAVBraCAvfPU8x/u3t69cNQiEvpj4hKWmZmZ1Y3WfPX3qe/qH47e4XC4evl+0eHH6mcjz/srKyrzRcgw6XWv/3j1pVZWViwkEAtVtydJMoqFhAwTxVSvLK1xKfi9aiUAgRBgsFtLV1aWk//LEhsvlKvZQu41nmJo1IiQSCYj7Kea7mOvXz862si78JiTkHCQQq6mrq/dPNzFtgYRIQ9ogx7WLyvJhDPEdZI7byCTwJPUSwOOVu5LT0m01NTVpY0H0UqkGXiuWd3qvW3fp2ImT+8f2QxCEDQoIeN1QXzc/aMeOH4K+2XFOQm6x4WZm7RI0NDpJOBxcG5+PutzZatAkFEh19PSJlP6+XuKla9e9XRcteoaGmV/t2Hmuoa7eNv/Vy43KOBwT4miFNLZzPBvbu6RKbBYDNNQUAojPAybmtkCXaAqmm80FK31Cwc8PIw1uRkWdPnby5M6xASoqKXGlraIib7w3nHAr9kB9Xa3zvgMHv/XfuvUKKz7xB1byg2NtAgipikSCaSg0MAIAnFPXAmGMAdAmEoIeaveMsPDwUDh42AZSZuzQkSN7sFjsSOzNG987zNPdAwAQwvyermaQcG0fyM+9A37LSwHJsd+BtoYXeWp4bJXZLEegZ2AOcp9m+3M4HOXxgpyIID4fk3r//rcWlpZlfgEBUZzcX/2Kbt8+HjjYg9zDHADb6H0gYpguEhkZViogkOAbFbU/dGk0mq7s9x8Apmlr96364ou7pSUly+g0qsRAXyUd5r/MjgcYNIJ5ISrKKzH5vuNsK+vff34U72JjqbRWTRVbaWHlAvh8Pq6upsb+UwDUVFc7Dg8Pa32xxvsOUixGdMbFR5wcogOhqmp/cOjuI55eXomFfC7qjqnRG9xX2w/YYBSADlKa2yApIeFoVkaG3wcAYPJYviINbgvevPEyNlBLgfOjj9oClnt6JrstWZptbWNT+nXwzuNCoVChhdxgbWmmeVmdoCPVHejvN/gUANTubhO4NbOwIEENTY4l3d3GPCAB3x09Fhy0Y0fEqbPnAh2dnJ7nZGd/qeLnexEz0+KdKRoDcCoqg3cePHTAYDAiAQShPgAwx8amGM746iqSk/Y05dcIBAIoKuPhp+XM5/MVYJmyd6XucNtKoZgpKaFbDYxnAfsFXgCvqjb0KQAAABIzC4uK6SYmzaKeHgMIvJ+KxGIxQiYgFArhHJV2oC1nFktbNFpkZW1d5unllYLBYkXo0RZxKirs6SYmteWlpW5oFGAqKaEpDgu8ZhS8fGDvs3pVkwoez6SQyTaw7PUrVy49y83rdvUIBG4rt4ocnS0KPiX6xUuWZHl6eT0QCgSYxHfFi++ODEv5P54+Fd1KabFqb2szrygrc1+/0feaFNgATZ8sFAAi0ZQy2g5yrOEVq1bfZ9DpetlZWQFGRPzj+Yt8wJLVQQCjoKohEYtRG3w3RT1+km26Zp1vKqW5lph0cz8ofHGbyhqiK3wKABwON5L38sW6DWvX1t56cH+3ERoNglXUgNIIe1pcTMyJF8+e+XksX5G878CBcKihcd67woLV/WIRcHZxzRltRzoPjCYOm41b772mhsNmq12PTVjb1I5O5UMieKALjQzwqRpqiiTWCGTa1jnsT+vvVs7PuS1uJVcicTgc85uQkO83bvaLxmAw0i8Yk8HQ9PjXIpqvn1/EwcP/OSLz0dzUZBV55sy1ivIydw0CoTd0777Dbh3dtrysJ3vgeGgmxuXTAracJBgbt0ClZR79iUnHw6gd6gMYNOvxk2xzbR2dvgkBwESqrHQMDtr+CoVCibcEhmaoaduvAwgUXtbf2VYH2luqgNMib67bQjP/lsZ3vMvnI6Oo3d1mZhYWlfsPHdpla2df8vDevZ1XLl64Nmfu3LwTZyK2q6urM25eu3rq8aNHwfDY9vn3+piQPXuOq6mrM0hFRe66sbcvgvZ229GxdAkFIHKYAVpEAnD42PdB/964MeGjb0BG1SSS4/Ej/0nqaG+3xCooAW3d6QCJQgPGIBWwhgbhOoUVfuRosNeaNcmwPI/HU3yYfG9XYlzckZGREQ1dPb3W3p4eEwVFRTafx1OG5TFYLHeIydSZ7+z8dN+BA4csZlrWwLo/3bxx+FZ0dMQ0VTWaIyTU0kehAF8iAQ1CCJRBfIBEo6G9+/eHbfYPuPGnQGEAE10Qn4/KyszYsm9XSMbqZR7kFe5undv9t+THxcQcptFomuPpDAwMaO8NCc60t7aSnDt96rJAIEBVkUjzXOzt2IudnegFb94sG6sjEokQGWlp2zas9a6A9WTXAjvbkSPh4XcpLWTLiWL8KIDJXonx8QfhAFrIZBMZL/iroJyVS9wpf6VLHxwk1NfVzm0hky34fD7mr+T/9BWSBxkaGTbB7dNfsgLFYjFoa221qCaRXAwNDVv/SleDQKBbzppNmmFq2oTFYgV/JT9hDkyF4Po+cMuW3+pqa5xUVVV72Wy2JsyPuhm9wtnFJU+uzj7HEIKv4aEh/OXz58/AQ2nTOp+SyooKp8/h57MBgC8Gna4JA4iMOHPmc/n4LDnwT9L/APxNQnwuw58FwOO0R4GV5eUuo1jSlcilyMgfmQwGQZ6+5A4gMS7uYMSJEwlsNltVxhOJeVhIOKT29nW+z9fbtr4ZYjLV5eVPrgCam5pmRV+/dtraxqZwnp1dwQi/Tbrq6man7Pul2o5p7UE2b6VQrM6fPRslL59yBfDw3r3dEokEeTLirD9A0zUKyIHPR/fPcxOBGTZC8Gtujt9Af7+OPHzKFUB1FcnFzNycZGRs3NbUf+uAQMz601CZNV8ELxvRDXV1tvLwKVcAPVTqdD19/Q749yC7YsF4Mqqa70uXnp4eI3n4lBuArs5OIy6Xq2ZoZNwI33MFvcTx5KYZvAdAaWmxlodfuQEoKixcCbe2dnZvOVCvDiSk648nh1MDQFNfDIoKC5bDlepUSW4AMh+nf43H4wcXuLq+6B3OX/UxWWtXIeju6pr5W0HBsqn6lQuArIyMLY319Q6b/P0vYxUUoFZaytcfk7ddIgIKyhJw9dLFCxAEYabie8oA2lpbzS/8eO6mPpHYvHV70MXeofzlTG7VuAksIyUcAAvXCuA8sLl59eq4W/t/l6YEgMvlKoXtDs2A+HyFExERW9EYMbKy6+SVv6PrsFwEZswRgeSkOwffvs73nGwMUwLw4O7dkI72dquQPXsP2drZF5V1fBfLhtpnwX1CAQCtNe/ND3QhwNCY0wMkEgDvXRBQVhUhI06ejIEgCDuZGCa9pBSLxQiv5ctasVgsPy3rl9k9rNy1JW17pZvD1BYEyLyBBUO0/38+CIQEuH6hNLhiM57OEXSYy/ilz1Hg+V0sOPNjpO+KVatSPzWOSb+BstJS1/6+PuP1vpuuo9FIUV1P1HHw36d9/5wCAEJCX1h4+J7b95KdL1+/sdphvvOvBVk8zaost1wTzc3XZXbmLBQBNEYCfn2Wu2EycaAnC4BUUb4IvD/7yqGza+xG+JQ58P3rdDQQCVCCG0mxyyxnz66WybsuWpSzd1dIVtrDtF0bfDNma+JarAbZJe4KSgAQzcWgmkT6aOJPRJN+A50dHTMQCITQwNCwZWCkeDGQbhAA0FqFgkH9PDp4qSMkUvLltsDzcLH39vXr1Rba2y/K+rSIYkAfHCTyuNxP2iCeEgD2CFtJUUmJhUKhJByIKj3cEEJw8iIA0cCgfTydadra0iPZISZTi4Cb907GR/93JuDxeCr/GAANgsYwl8PR4PP5WCB5fyiBUQBAWVUMSBXjF3KN9fXSCtTA0KhZdnAhDZwNJzlCpILH0/8xAKZmZrVwW19bO08Jq9ct41stEIHamhqXlPvJH5xa9lCp+jeuRp3G4XCMJR4emQxOzR/ldG8bEhgYGTV97B8DE9Gkk3i+8wLpYiXv5YsNAcEef3z+FvoIAaUaBc6fPRud9/KVj72jw9uB/gG93KfZfjwuVyUi8vx6dQ0NRlXz7W9heWY/AH3tSOCz3nFSO3ZT2loM9N9SQG5unp2ZnW1Z2r85f4TfKp3E4CGR/wgDagpRQMBHwMNDbDVnTvHOXaFH5rvMf0PqPB1Bod0Nh2Wf3UGD8pcYEHs70cXOwaHoHwXwNj9/xbe7Q3MXuy9J333c/VFZx4GHHxpXZqiIlv1squ+ZQtDQ7WVyau3IA4l7h3nN0nM2eMJLOqUAHBydc6Pj4idVTkx5c/fooUOJuU+ztwYEboucv7bdkDr0dPPf0RvoRoAHZxUACqE+cDcl1Z5IJHZOxv+UAfB4PExYaGh2SfHvy9yWuqUv/ZJG4CDeuX9Mp+EdEuTEY4FEpMi5Gh3jae/o+Gay/v8vAAD//4wb/4wEdbX7AAAAAElFTkSuQmCC",alt:"Trustify Icon",style:me})},W=1+(P.length>0?1:0),U=Math.min(12,Math.max(1,Math.floor(12/W))),Z=1+Number(R)+Number(v)+Number(h);4===Z&&(Z=2);var z=Math.min(12,Math.max(1,Math.floor(12/Z)));return(0,D.jsxs)(o.x,{hasGutter:!0,children:[(0,D.jsxs)(g.h,{headingLevel:"h3",size:g.J["2xl"],style:{paddingLeft:"15px"},children:[(0,D.jsx)(x.I,{isInline:!0,status:"info",children:(0,D.jsx)(M.Ay,{style:{fill:"#f0ab00"}})}),"\xa0",u.displayName," overview of security issues"]}),(0,D.jsx)(p.c,{}),(0,D.jsx)(s.E,{md:12,lg:U,children:(0,D.jsxs)(f.Z,{isFlat:!0,isFullHeight:!0,children:[(0,D.jsx)(m.a,{children:(0,D.jsx)(j.Z,{children:(0,D.jsx)(y.X,{style:{fontSize:"large"},children:t?(0,D.jsxs)(D.Fragment,{children:[a?re(a):"No Image name"," - Vendor Issues"]}):(0,D.jsx)(D.Fragment,{children:"Vendor Issues"})})})}),(0,D.jsxs)(I.b,{children:[(0,D.jsx)(A.W,{children:(0,D.jsx)(C.d,{children:(0,D.jsx)(y.X,{children:"Below is a list of dependencies affected with CVE."})})}),(0,D.jsx)(b.B,{isAutoFit:!0,style:{paddingTop:"10px",gridTemplateColumns:"repeat(auto-fit, minmax(min(100%, ".concat(je,"), 1fr))")},children:c(i).map(function(e,n){return(0,D.jsxs)(A.W,{style:{display:"flex",flexDirection:"column",alignItems:"center",minWidth:0},children:[(0,D.jsx)(y.X,{style:{fontSize:"large"},children:d(e)}),(0,D.jsx)(C.d,{children:(0,D.jsx)(F,{summary:e.report.summary})})]},n)})})]}),(0,D.jsx)(p.c,{})]})}),P.length>0&&(0,D.jsx)(s.E,{md:12,lg:U,children:(0,D.jsxs)(f.Z,{isFlat:!0,isFullHeight:!0,children:[(0,D.jsx)(m.a,{children:(0,D.jsx)(j.Z,{children:(0,D.jsx)(y.X,{style:{fontSize:"large"},children:"License Summary"})})}),(0,D.jsx)(I.b,{children:(0,D.jsx)(b.B,{isAutoFit:!0,style:{paddingTop:"30px",gridTemplateColumns:"repeat(auto-fit, minmax(min(100%, ".concat(je,"), 1fr))")},children:P.map(function(e,n){return(0,D.jsxs)(A.W,{style:{display:"flex",flexDirection:"column",alignItems:"center",minWidth:0},children:[(0,D.jsx)(y.X,{style:{fontSize:"large"},children:e.status.name||"Unknown"}),(0,D.jsx)(C.d,{children:(0,D.jsx)(pe,{summary:e.summary})})]},n)})})})]})}),(0,D.jsxs)(s.E,{md:z,children:[(0,D.jsx)(f.Z,{isFlat:!0,isFullHeight:!0,children:(0,D.jsxs)(A.W,{children:[(0,D.jsx)(j.Z,{component:"h4",children:(0,D.jsxs)(y.X,{style:{fontSize:"large"},children:[V(),"\xa0",u.displayName," Dependency Remediations"]})}),(0,D.jsx)(I.b,{children:(0,D.jsx)(C.d,{children:(0,D.jsx)(N.B8,{isPlain:!0,children:c(i).map(function(e,n){var r=e&&e.source&&e.provider?e.source===e.provider?e.provider:"".concat(e.provider,"/").concat(e.source):"default_value";return Object.keys(e.report).length>0?(0,D.jsxs)(w.c,{children:[(0,D.jsx)(x.I,{isInline:!0,status:"success",children:(0,D.jsx)("img",{src:L,alt:"Security Check Icon"})}),"\xa0",e.report.summary.remediations," remediations are available for ",r]}):(0,D.jsxs)(w.c,{children:[(0,D.jsx)(x.I,{isInline:!0,status:"success",children:(0,D.jsx)("img",{src:L,alt:"Security Check Icon"})}),"\xa0 There are no available remediations for your SBOM at this time for ",e.provider]})})})})})]})}),"\xa0"]}),R&&B&&(0,D.jsxs)(s.E,{md:z,children:[(0,D.jsx)(f.Z,{isFlat:!0,isFullHeight:!0,children:(0,D.jsxs)(A.W,{children:[(0,D.jsx)(j.Z,{component:"h4",children:(0,D.jsxs)(y.X,{style:{fontSize:"large"},children:["Project License ",(0,D.jsx)(T.o,{children:(0,D.jsx)(S.J,{color:ve(B.category),children:B.expression||B.name||"\u2014"})})]})}),(0,D.jsx)(I.b,{children:(0,D.jsxs)(C.d,{children:[(0,D.jsx)(A.W,{children:(0,D.jsx)(y.X,{children:"License incompatibilities"})}),(0,D.jsx)(N.B8,{isPlain:!0,children:E.map(function(e,n){var r=function(e,n){for(var r=0,i=ce(n),t=0,a=Object.values(e);t=400||Object.keys(e.warnings).length>0},i=Object.keys(n.providers).map(function(e){return n.providers[e].status}).filter(function(e){return!e.ok||r(e)}),t=function(e){return e.ok&&!r(e)?Ie.w.info:e.code>=500?Ie.w.danger:Ie.w.warning},a=function(e){var n=e.message;return e.ok&&r(e)?"".concat(ne(e.name),": ").concat(Object.keys(e.warnings).length," package(s) could not be analyzed"):"".concat(ne(e.name),": ").concat(n)};return(0,D.jsx)(D.Fragment,{children:i.map(function(e,n){return(0,D.jsx)(Ie.F,{variant:t(e),title:a(e)},n)})})},Ce=r(6919),be=r(5501),Ne=r(1792),we=r(3093),Te=r(297),Se=r(4072),Oe=r(6464),Me=function(e){function n(e){var r;return(0,R.A)(this,n),(r=(0,Ce.A)(this,n,[e])).state={hasError:!1,error:null},r}return(0,be.A)(n,e),(0,V.A)(n,[{key:"componentDidCatch",value:function(e,n){console.error("Report rendering error:",e,n)}},{key:"render",value:function(){var e;return this.state.hasError?(0,D.jsx)(E.a,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--200)",minHeight:"100vh"},children:(0,D.jsxs)(Ne.p,{variant:Ne.s.sm,children:[(0,D.jsx)(we.o,{icon:(0,D.jsx)(Te.q,{icon:Oe.Ay,color:"var(--pf-v5-global--danger-color--100)"}),titleText:"Something went wrong",headingLevel:"h2"}),(0,D.jsx)(Se.h,{children:(null===(e=this.state.error)||void 0===e?void 0:e.message)||"An unexpected error occurred while rendering the report."})]})}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(i.Component),Ee=r(6334),Pe=r(4248),De=r(4471),ke=r(8380),Fe=r(1417),Le=r(7066),Be=r(2227),Re=r(99),Ve=r(7172),We=r(8516),Ue=r(8579),Ze=r(9205),ze=r(5693),Ke=r(4785),Ge=r(4224),Ye=r(5772),He=r(4593),Qe=r(8480),Xe=r(5458),qe=r(4546),Je=function(e){return e[e.SET_PAGE=0]="SET_PAGE",e[e.SET_SORT_BY=1]="SET_SORT_BY",e}(Je||{}),_e={changed:!1,currentPage:{page:1,perPage:10},sortBy:void 0},$e=function(e,n){switch(n.type){case Je.SET_PAGE:var r=n.payload;return(0,l.A)((0,l.A)({},e),{},{changed:!0,currentPage:{page:r.page,perPage:r.perPage}});case Je.SET_SORT_BY:var i=n.payload;return(0,l.A)((0,l.A)({},e),{},{changed:!0,sortBy:{index:i.index,direction:i.direction}});default:return e}},en=r(2514),nn=r(3842),rn=function(e){var n,r=e.count,i=e.params,t=e.isTop,a=e.perPageOptions,o=e.onChange,s=function(){return i.perPage||10};return(0,D.jsx)(en.d,{itemCount:r,page:i.page||1,perPage:s(),onPageInput:function(e,n){o({page:n,perPage:s()})},onSetPage:function(e,n){o({page:n,perPage:s()})},onPerPageSelect:function(e,n){o({page:1,perPage:n})},widgetId:"pagination-options-menu",variant:t?en.A.top:en.A.bottom,perPageOptions:(n=a||[10,20,50,100],n.map(function(e){return{title:String(e),value:e}})),toggleTemplate:function(e){return(0,D.jsx)(nn.D,(0,l.A)({},e))}})},tn=r(9694),an=r(6911),on=r(1413),sn=function(e){var n=e.numRenderedColumns,r=e.isLoading,i=void 0!==r&&r,t=e.isError,a=void 0!==t&&t,o=e.isNoData,s=void 0!==o&&o,l=e.errorEmptyState,c=void 0===l?null:l,d=e.noDataEmptyState,u=void 0===d?null:d,h=e.children,v=(0,D.jsxs)(Ne.p,{variant:Ne.s.sm,children:[(0,D.jsx)(Te.q,{icon:Oe.Ay,color:on.D.value}),(0,D.jsx)(g.h,{headingLevel:"h2",size:"lg",children:"Unable to connect"}),(0,D.jsx)(Se.h,{children:"There was an error retrieving data. Check your connection and try again."})]}),x=(0,D.jsxs)(Ne.p,{variant:Ne.s.sm,children:[(0,D.jsx)(Te.q,{icon:an.Ay}),(0,D.jsx)(g.h,{headingLevel:"h2",size:"lg",children:"No data available"}),(0,D.jsx)(Se.h,{children:"No data available to be shown here."})]});return(0,D.jsx)(D.Fragment,{children:i?(0,D.jsx)(Ke.N,{children:(0,D.jsx)(Ze.Tr,{children:(0,D.jsx)(Ge.Td,{colSpan:n,children:(0,D.jsx)(E.a,{children:(0,D.jsx)(tn.y,{size:"xl"})})})})}):a?(0,D.jsx)(Ke.N,{"aria-label":"Table error",children:(0,D.jsx)(Ze.Tr,{children:(0,D.jsx)(Ge.Td,{colSpan:n,children:(0,D.jsx)(E.a,{children:c||v})})})}):s?(0,D.jsx)(Ke.N,{"aria-label":"Table no data",children:(0,D.jsx)(Ze.Tr,{children:(0,D.jsx)(Ge.Td,{colSpan:n,children:(0,D.jsx)(E.a,{children:u||x})})})}):h})};function ln(e){var n=e.name,r=e.items,t=e.getRowKey,a=e.columns,o=e.filterConfig,s=e.compareToByColumn,c=e.filterItem,d=e.renderExpandContent,u=e.ariaLabelPrefix,h=void 0===u?"Table":u,v=e.expandId,g=void 0===v?"compound-expand-table":v,x=e.defaultExpanded,p=void 0===x?{}:x,m=e.initialSortBy,j=(0,i.useState)(""),y=(0,B.A)(j,2),A=y[0],C=y[1],b=function(e){var n=(0,i.useReducer)($e,(0,l.A)((0,l.A)({},_e),{},{currentPage:e&&e.page?(0,l.A)({},e.page):(0,l.A)({},_e.currentPage),sortBy:e&&e.sortBy?(0,l.A)({},e.sortBy):_e.sortBy})),r=(0,B.A)(n,2),t=r[0],a=r[1],o=(0,i.useCallback)(function(e){var n;a({type:Je.SET_PAGE,payload:{page:e.page>=1?e.page:1,perPage:null!==(n=e.perPage)&&void 0!==n?n:_e.currentPage.perPage}})},[]),s=(0,i.useCallback)(function(e,n,r,i){a({type:Je.SET_SORT_BY,payload:{index:n,direction:r}})},[]);return{page:t.currentPage,sortBy:t.sortBy,changePage:o,changeSortBy:s}}(m?{sortBy:m}:void 0),N=b.page,w=b.sortBy,T=b.changePage,S=b.changeSortBy,O=function(e){var n=e.items,r=e.currentSortBy,t=e.currentPage,a=e.filterItem,o=e.compareToByColumn;return(0,i.useMemo)(function(){var e,i=(0,Xe.A)(n||[]).filter(a),s=!1;return e=(0,Xe.A)(i).sort(function(e,n){var i=o(e,n,null===r||void 0===r?void 0:r.index);return 0!==i&&(s=!0),i}),s&&(null===r||void 0===r?void 0:r.direction)===qe.l.desc&&(e=e.reverse()),{pageItems:e.slice((t.page-1)*t.perPage,t.page*t.perPage),filteredItems:i}},[n,t,r,o,a])}({items:r,currentPage:N,currentSortBy:w,compareToByColumn:s,filterItem:function(e){return c(e,A)}}),M=O.pageItems,E=O.filteredItems,P=(0,i.useState)(p),k=(0,B.A)(P,2),F=k[0],L=k[1],R=function(e,n,r,i){return{isExpanded:F[t(e)]===n,onToggle:function(){return function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t(e),a=(0,l.A)({},F);r?a[i]=n:delete a[i],L(a)}(e,n,F[t(e)]!==n)},expandId:g,rowIndex:r,columnIndex:i}},V=a.length;return(0,D.jsx)(f.Z,{children:(0,D.jsx)(I.b,{children:(0,D.jsxs)("div",{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:[(0,D.jsx)(ke.M,{children:(0,D.jsxs)(Fe.P,{children:[(0,D.jsx)(Le.h,{toggleIcon:(0,D.jsx)(He.Ay,{}),breakpoint:"xl",children:(0,D.jsx)(Be.T,{variant:"search-filter",children:(0,D.jsx)(Re.D,{id:n+o.idSuffix,style:{width:"250px"},placeholder:o.placeholder,value:A,onChange:function(e,n){return C(n)},onClear:function(){return C("")}})})}),(0,D.jsx)(Be.T,{variant:Be.U.pagination,align:{default:"alignRight"},children:(0,D.jsx)(rn,{isTop:!0,count:E.length,params:N,onChange:T})})]})}),(0,D.jsxs)(Ve.X,{"aria-label":(null!==n&&void 0!==n?n:h)+" table",variant:We.a.compact,children:[(0,D.jsx)(Ue.d,{children:(0,D.jsx)(Ze.Tr,{children:a.map(function(e,n){return(0,D.jsx)(ze.Th,{width:e.width,sort:null!=e.sortIndex?{columnIndex:e.sortIndex,sortBy:(0,l.A)({},w),onSort:S}:void 0,children:e.header},e.key)})})}),(0,D.jsx)(sn,{isNoData:0===E.length,numRenderedColumns:V,noDataEmptyState:(0,D.jsxs)(Ne.p,{variant:Ne.s.sm,children:[(0,D.jsx)(we.o,{icon:(0,D.jsx)(Te.q,{icon:Qe.Ay}),titleText:"No results found",headingLevel:"h2"}),(0,D.jsx)(Se.h,{children:"Clear all filters and try again."})]}),children:null===M||void 0===M?void 0:M.map(function(e,n){var r,i=t(e),o=F[i],s=!!o;return(0,D.jsxs)(Ke.N,{isExpanded:s,children:[(0,D.jsx)(Ze.Tr,{children:a.map(function(r,i){return(0,D.jsx)(Ge.Td,{width:r.width,dataLabel:r.header,component:0===i?"th":void 0,compoundExpand:r.compoundExpand?R(e,r.key,n,i):void 0,children:r.render(e)},r.key)})}),s&&o?(0,D.jsx)(Ze.Tr,{isExpanded:!0,children:(0,D.jsx)(Ge.Td,{dataLabel:null===(r=a.find(function(e){return e.key===o}))||void 0===r?void 0:r.header,noPadding:!0,colSpan:V,children:(0,D.jsx)(Ye.g,{children:(0,D.jsx)("div",{className:"pf-v5-u-m-md",children:d(e,o)})})})}):null]},i)})})]}),(0,D.jsx)(rn,{isTop:!1,count:E.length,params:N,onChange:T})]})})})}var cn=function(e){var n=e.name,r=e.showVersion,i=void 0!==r&&r;return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("a",{href:q(n),target:"_blank",rel:"noreferrer",children:Q(n,i)})})},dn=r(3685),un={VENDOR_FIX:"Vendor Fix",WORKAROUND:"Workaround",MITIGATION:"Mitigation",NO_FIX_PLANNED:"No Fix Planned",NONE_AVAILABLE:"None Available",WILL_NOT_FIX:"Will Not Fix"},hn={VENDOR_FIX:"blue",WORKAROUND:"orange",MITIGATION:"orange",NO_FIX_PLANNED:"red",NONE_AVAILABLE:"grey",WILL_NOT_FIX:"red"},vn=function(e){var n=[];return e.lowVersion&&n.push("".concat(e.lowInclusive?">=":">"," ").concat(e.lowVersion)),e.highVersion&&n.push("".concat(e.highInclusive?"<=":"<"," ").concat(e.highVersion)),n.join(", ")||"Unknown range"};function gn(e){var n=[];return e.forEach(function(e){var r=e.versionRanges||[],i=e.remediations||[],t=function(e){return e.map(function(e){return e.category}).filter(function(e){return!!e}).filter(function(e,n,r){return r.indexOf(e)===n})}(i),a=r.filter(function(e){return e.highVersion&&!e.highInclusive}).map(function(e){return e.highVersion}).filter(function(e,n,r){return r.indexOf(e)===n});a.length>0?a.forEach(function(a){var o=r.filter(function(e){return e.highVersion===a&&!e.highInclusive});n.push({version:a,ranges:o,advisory:e.advisory,status:e.status,remediations:i,categories:t})}):e.fixedIn?n.push({version:e.fixedIn,ranges:r,advisory:e.advisory,status:e.status,remediations:i,categories:t}):n.push({version:"",ranges:r,advisory:e.advisory,status:e.status,remediations:i,categories:t})}),n.sort(function(e,n){return e.version?n.version?function(e,n){for(var r=e.split(/[.-]/),i=n.split(/[.-]/),t=Math.max(r.length,i.length),a=0;a0&&(0,D.jsxs)("div",{style:{marginTop:"4px"},children:[(0,D.jsxs)("strong",{children:["Affected range",e.ranges.length>1?"s":"",":"]}),e.ranges.map(function(e,n){return(0,D.jsx)("div",{children:vn(e)},n)})]}),e.remediations.length>0&&(0,D.jsxs)("div",{style:{marginTop:"4px"},children:[(0,D.jsxs)("strong",{children:["Remediation",e.remediations.length>1?"s":"",":"]}),e.remediations.map(function(e,n){var t,a=e.category?null!==(t=un[e.category])&&void 0!==t?t:e.category:"Remediation",o=r&&e.details&&e.details.trim()===r.trim(),s=e.url?ee(e.url,i):void 0;return(0,D.jsxs)("div",{children:[(0,D.jsx)("strong",{children:a}),e.details&&!o&&(0,D.jsxs)(D.Fragment,{children:[": ",s?(0,D.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:e.details}):e.details]})]},n)})]}),l&&(0,D.jsx)("p",{style:{marginTop:"4px"},children:(0,D.jsx)("a",{href:l,target:"_blank",rel:"noreferrer",children:(null===(s=e.advisory)||void 0===s?void 0:s.title)||c})})]}),u=e.categories.map(function(n,r){var i,t=null!==(i=un[n])&&void 0!==i?i:n,a=hn[n]||"grey";return(0,D.jsx)(S.J,{isCompact:!0,color:a,style:{marginLeft:0===r&&e.version?"6px":r>0?"4px":void 0},children:t},r)});return(0,D.jsxs)("div",{style:{marginBottom:n=":">"," ").concat(e.lowVersion)),e.highVersion&&n.push("".concat(e.highInclusive?"<=":"<"," ").concat(e.highVersion)),n.join(", ")||"Unknown range"},mn=function(e,n){for(var r=e.split(/[.-]/),i=n.split(/[.-]/),t=Math.max(r.length,i.length),a=0;a0&&", ",e]},n):(0,D.jsxs)("span",{children:[n>0&&", ",(0,D.jsx)(dn.A,{headerContent:(0,D.jsxs)("strong",{children:["Fixed in ",e]}),bodyContent:(0,D.jsxs)("div",{children:[(0,D.jsxs)("strong",{children:["Affected range",r.length>1?"s":"",":"]}),r.map(function(e,n){return(0,D.jsx)("div",{children:fn(e)},n)})]}),children:(0,D.jsx)(O.$n,{variant:"link",isInline:!0,children:e})})]},n)})]})},yn=r(8559),In=r(7540),An=r(8762),Cn=r(974),bn=function(e){var n,r=e.vulnerability;if("UNKNOWN"===r.severity)return(0,D.jsx)(D.Fragment,{children:"N/A"});switch(r.severity){case"CRITICAL":n="bar-critical";break;case"HIGH":n="bar-high";break;case"MEDIUM":n="bar-medium";break;case"LOW":n="bar-low";break;default:n="bar-default"}return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(yn.B,{hasGutter:!0,children:(0,D.jsx)(In.o,{isFilled:!0,children:(0,D.jsx)(An.k,{title:"".concat(r.cvssScore,"/10"),"aria-label":"cvss-score",value:r.cvssScore,min:0,max:10,size:An.j.sm,measureLocation:Cn.Ri.none,className:"".concat(n)})})})})},Nn=function(e){var n,r,i=e.vulnerability;switch(i.severity){case"CRITICAL":r="#800000";break;case"HIGH":r="#FF0000";break;case"MEDIUM":r="#FFA500";break;case"LOW":r="#5BA352";break;default:r="#808080"}return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(x.I,{isInline:!0,children:(0,D.jsx)(fe.Ay,{style:{fill:r,height:"13px"}})}),"\xa0",ne(null!==(n=i.severity)&&void 0!==n?n:"UNKNOWN")]})},wn=function(e){var n,r,i=e.id,t=nr();return(0,D.jsx)("a",{href:(n=i,r=t,r.cveIssueTemplate.replace(G,n)),target:"_blank",rel:"noreferrer",children:i})},Tn=r(4486),Sn=function(e){var n=e.title,r=i.useState(!1),t=(0,B.A)(r,2),a=t[0],o=t[1];return(0,D.jsx)(Tn.Q,{variant:Tn.J.truncate,toggleText:a?"Show less":"Show more",onToggle:function(e,n){o(n)},isExpanded:a,children:n||"-"})},On=function(e){var n,r,i,t,a=e.item,o=(e.providerName,e.rowIndex);return t=a.vulnerability.cves&&a.vulnerability.cves.length>0?a.vulnerability.cves:[a.vulnerability.id],(0,D.jsxs)(Ze.Tr,{children:[(0,D.jsx)(Ge.Td,{children:t.map(function(e,n){return(0,D.jsx)("p",{children:(0,D.jsx)(wn,{id:e})},n)})}),(0,D.jsx)(Ge.Td,{children:(0,D.jsx)(Sn,{title:a.vulnerability.title})}),(0,D.jsx)(Ge.Td,{noPadding:!0,children:(0,D.jsx)(Nn,{vulnerability:a.vulnerability})}),(0,D.jsx)(Ge.Td,{children:(0,D.jsx)(bn,{vulnerability:a.vulnerability})}),(0,D.jsx)(Ge.Td,{children:(0,D.jsx)(cn,{name:a.dependencyRef,showVersion:!0})}),(0,D.jsxs)(Ge.Td,{children:[(null===(n=a.vulnerability.remediation)||void 0===n?void 0:n.trustedContent)&&(0,D.jsx)(pn,{cves:a.vulnerability.cves||[],packageName:a.vulnerability.remediation.trustedContent.ref},o),null!==(r=a.vulnerability.remediation)&&void 0!==r&&r.advisories&&a.vulnerability.remediation.advisories.length>0?(0,D.jsx)(xn,{advisories:a.vulnerability.remediation.advisories,vulnerabilityTitle:a.vulnerability.title}):(null===(i=a.vulnerability.remediation)||void 0===i?void 0:i.fixedIn)&&a.vulnerability.remediation.fixedIn.length>0&&(0,D.jsx)(jn,{vulnerability:a.vulnerability})]})]},o)},Mn=function(e){var n=e.providerName,r=e.transitiveDependencies;return(0,D.jsx)(f.Z,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:(0,D.jsxs)(Ve.X,{variant:We.a.compact,"aria-label":(null!==n&&void 0!==n?n:"Default")+" transitive vulnerabilities",children:[(0,D.jsx)(Ue.d,{children:(0,D.jsxs)(Ze.Tr,{children:[(0,D.jsx)(ze.Th,{width:15,children:"Vulnerability ID"}),(0,D.jsx)(ze.Th,{width:20,children:"Description"}),(0,D.jsx)(ze.Th,{width:10,children:"Severity"}),(0,D.jsx)(ze.Th,{width:15,children:"CVSS Score"}),(0,D.jsx)(ze.Th,{width:20,children:"Transitive Dependency"}),(0,D.jsx)(ze.Th,{width:20,children:"Remediation"})]})}),(0,D.jsx)(sn,{isNoData:0===r.length,numRenderedColumns:7,children:v(r).map(function(e,r){return(0,D.jsx)(Ke.N,{children:(0,D.jsx)(On,{item:e,providerName:n,rowIndex:r})},r)})})]})})},En=function(e){var n=e.providerName,r=e.dependency,i=e.vulnerabilities;return(0,D.jsx)(f.Z,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:(0,D.jsxs)(Ve.X,{variant:We.a.compact,"aria-label":(null!==n&&void 0!==n?n:"Default")+" direct vulnerabilities",children:[(0,D.jsx)(Ue.d,{children:(0,D.jsxs)(Ze.Tr,{children:[(0,D.jsx)(ze.Th,{width:15,children:"Vulnerability ID"}),(0,D.jsx)(ze.Th,{width:20,children:"Description"}),(0,D.jsx)(ze.Th,{width:10,children:"Severity"}),(0,D.jsx)(ze.Th,{width:15,children:"CVSS Score"}),(0,D.jsx)(ze.Th,{width:20,children:"Direct Dependency"}),(0,D.jsx)(ze.Th,{width:20,children:"Remediation"})]})}),(0,D.jsx)(sn,{isNoData:0===i.length,numRenderedColumns:6,children:null===i||void 0===i?void 0:i.map(function(e,i){var t=[];return e.cves&&e.cves.length>0?e.cves.forEach(function(e){return t.push(e)}):e.unique&&t.push(e.id),(0,D.jsx)(Ke.N,{children:t.map(function(t,a){return(0,D.jsx)(On,{item:{id:e.id,dependencyRef:r.ref,vulnerability:e},providerName:n,rowIndex:i},"".concat(i,"-").concat(a))})},i)})})]})})},Pn=r(1640),Dn=function(e){var n=e.vulnerabilities,r=void 0===n?[]:n,i=e.transitiveDependencies,t=void 0===i?[]:i,a={CRITICAL:0,HIGH:0,MEDIUM:0,LOW:0,UNKNOWN:0};return r.length>0?r.forEach(function(e){var n=e.severity;n&&a.hasOwnProperty(n)&&a[n]++}):null===t||void 0===t||t.forEach(function(e){var n;null===(n=e.issues)||void 0===n||n.forEach(function(e){var n=e.severity;n&&a.hasOwnProperty(n)&&a[n]++})}),(0,D.jsxs)(Pn.Z,{children:[a.CRITICAL>0&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(x.I,{isInline:!0,children:(0,D.jsx)(fe.Ay,{style:{fill:"#800000",height:"13px"}})}),"\xa0",a.CRITICAL,"\xa0"]}),a.HIGH>0&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(x.I,{isInline:!0,children:(0,D.jsx)(fe.Ay,{style:{fill:"#FF0000",height:"13px"}})}),"\xa0",a.HIGH,"\xa0"]}),a.MEDIUM>0&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(x.I,{isInline:!0,children:(0,D.jsx)(fe.Ay,{style:{fill:"#FFA500",height:"13px"}})}),"\xa0",a.MEDIUM,"\xa0"]}),a.LOW>0&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(x.I,{isInline:!0,children:(0,D.jsx)(fe.Ay,{style:{fill:"#5BA352",height:"13px"}})}),"\xa0",a.LOW,"\xa0"]}),a.UNKNOWN>0&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(x.I,{isInline:!0,children:(0,D.jsx)(fe.Ay,{style:{fill:"#808080",height:"13px"}})}),"\xa0",a.UNKNOWN]})]})},kn=function(e){var n,r,i=e.dependency,t=null===(n=i.issues)||void 0===n?void 0:n.some(function(e){return u(e)}),a=(null===(r=i.transitive)||void 0===r?void 0:r.some(function(e){var n;return null===(n=e.issues)||void 0===n?void 0:n.some(function(e){return u(e)})}))||!1;return(0,D.jsx)(D.Fragment,{children:t||a?"Yes":"No"})},Fn=function(e){var n=e.name,r=e.dependencies,i=[{key:"name",header:"Dependency Name",width:30,sortIndex:1,render:function(e){return(0,D.jsx)(cn,{name:e.ref})}},{key:"version",header:"Current Version",width:15,render:function(e){return J(e.ref)}},{key:"direct",header:"Direct Vulnerabilities",width:15,compoundExpand:!0,render:function(e){var n,r;return null!==(n=e.issues)&&void 0!==n&&n.length?(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,D.jsx)("div",{style:{width:"25px"},children:null===(r=e.issues)||void 0===r?void 0:r.length}),(0,D.jsx)(p.c,{orientation:{default:"vertical"},style:{paddingRight:"10px"}}),(0,D.jsx)(Dn,{vulnerabilities:e.issues})]}):0}},{key:"transitive",header:"Transitive Vulnerabilities",width:15,compoundExpand:!0,render:function(e){var n;return null!==(n=e.transitive)&&void 0!==n&&n.length?(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,D.jsx)("div",{style:{width:"25px"},children:e.transitive.map(function(e){var n;return null===(n=e.issues)||void 0===n?void 0:n.length}).reduce(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)})}),(0,D.jsx)(p.c,{orientation:{default:"vertical"},style:{paddingRight:"10px"}}),(0,D.jsx)(Dn,{transitiveDependencies:e.transitive})]}):0}},{key:"rhRemediation",header:"Remediation available",width:15,render:function(e){return(0,D.jsx)(kn,{dependency:e})}}];return(0,D.jsx)(ln,{name:n,items:r,getRowKey:function(e){return e.ref},columns:i,filterConfig:{placeholder:"Filter by Dependency name",idSuffix:"-dependency-filter"},compareToByColumn:function(e,n,r){return 1===r?e.ref.localeCompare(n.ref):0},filterItem:function(e,n){var r,i;return!!(null!==(r=e.issues)&&void 0!==r&&r.length||null!==(i=e.transitive)&&void 0!==i&&i.length)&&(!n||0===n.trim().length||-1!==e.ref.toLowerCase().indexOf(n.toLowerCase()))},renderExpandContent:function(e,r){var i,t;return"direct"===r&&null!==(i=e.issues)&&void 0!==i&&i.length?(0,D.jsx)(En,{providerName:n,dependency:e,vulnerabilities:e.issues}):"transitive"===r&&null!==(t=e.transitive)&&void 0!==t&&t.length?(0,D.jsx)(Mn,{providerName:n,transitiveDependencies:e.transitive}):null},ariaLabelPrefix:"Dependencies",expandId:"compound-expandable-example",defaultExpanded:{"siemur/test-space":"name"}})},Ln=ge;var Bn=function(e){var n=e.evidence,r=void 0===n?[]:n,t=e.countBy,a="identifiers"===(void 0===t?"evidence":t)?function(e){var n={PERMISSIVE:0,WEAK_COPYLEFT:0,STRONG_COPYLEFT:0,UNKNOWN:0};return null===e||void 0===e||e.forEach(function(e){(e.identifiers||[]).forEach(function(e){var r=(e.category||"UNKNOWN").toUpperCase().replace(/-/g,"_");n.hasOwnProperty(r)?n[r]++:n.UNKNOWN++})}),n}(r):function(e){var n={PERMISSIVE:0,WEAK_COPYLEFT:0,STRONG_COPYLEFT:0,UNKNOWN:0};return null===e||void 0===e||e.forEach(function(e){var r=(e.category||"UNKNOWN").toUpperCase().replace(/-/g,"_");n.hasOwnProperty(r)?n[r]++:n.UNKNOWN++}),n}(r);return(0,D.jsx)(Pn.Z,{children:Ln.map(function(e){return a[e]>0&&(0,D.jsxs)(i.Fragment,{children:[(0,D.jsx)(x.I,{isInline:!0,children:(0,D.jsx)(fe.Ay,{style:{fill:se[e],height:"13px"}})}),"\xa0",a[e],"\xa0"]},e)})})},Rn=function(e){var n=e.concluded;return(0,D.jsx)(f.Z,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:(0,D.jsxs)(b.B,{children:[(0,D.jsxs)(A.W,{children:[(0,D.jsx)(y.X,{children:"License name"}),(0,D.jsx)(C.d,{children:n.name||"\u2014"})]}),(0,D.jsxs)(A.W,{children:[(0,D.jsx)(y.X,{children:"Expression"}),(0,D.jsx)(C.d,{children:n.expression||"\u2014"})]}),(0,D.jsxs)(A.W,{children:[(0,D.jsx)(y.X,{children:"Category"}),(0,D.jsx)(C.d,{children:n.category?ue(n.category):"\u2014"})]})]})})},Vn=r(5435),Wn="Evidence",Un="Expression",Zn="Identifiers",zn="Category",Kn="Status";function Gn(e){var n,r=e.info,i=null!==(n=null===r||void 0===r?void 0:r.identifiers)&&void 0!==n?n:[],t=i.some(function(e){return!0===e.isDeprecated}),a=i.some(function(e){return!0===e.isOsiApproved}),o=i.some(function(e){return!0===e.isFsfLibre});return t||a||o?(0,D.jsxs)(Vn.s,{gap:{default:"gapSm"},alignItems:{default:"alignItemsCenter"},children:[t&&(0,D.jsx)(Pn.Z,{children:(0,D.jsx)("span",{title:"Deprecated identifier",children:(0,D.jsx)(x.I,{isInline:!0,children:(0,D.jsx)(fe.Ay,{style:{fill:de,height:"13px"}})})})}),a&&(0,D.jsx)(Pn.Z,{children:(0,D.jsx)("img",{src:"https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/open-source-initiative.svg",alt:"OSI Approved",title:"OSI Approved",style:{height:"1.1em",verticalAlign:"middle"}})}),o&&(0,D.jsx)(Pn.Z,{children:(0,D.jsx)("img",{src:"https://www.gnu.org/graphics/fsf-logo-notext-small.png",alt:"FSF Libre",title:"FSF Free/Libre",style:{height:"1.1em",verticalAlign:"middle"}})})]}):(0,D.jsx)(D.Fragment,{children:"\u2014"})}var Yn=function(e){var n=e.evidence,r=void 0===n?[]:n,t=(0,i.useMemo)(function(){return(0,Xe.A)(r).sort(function(e,n){return xe(e.category)-xe(n.category)})},[r]);return(0,D.jsx)(f.Z,{style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:(0,D.jsxs)(Ve.X,{variant:We.a.compact,"aria-label":"Evidence licenses",children:[(0,D.jsx)(Ue.d,{children:(0,D.jsxs)(Ze.Tr,{children:[(0,D.jsx)(ze.Th,{width:30,children:Wn}),(0,D.jsx)(ze.Th,{width:20,children:Un}),(0,D.jsx)(ze.Th,{width:25,children:Zn}),(0,D.jsx)(ze.Th,{width:15,children:zn}),(0,D.jsx)(ze.Th,{width:10,children:Kn})]})}),(0,D.jsx)(sn,{isNoData:0===t.length,numRenderedColumns:5,children:(0,D.jsx)(Ke.N,{children:t.map(function(e,n){var r,i,t,a=e.name||(null===(r=e.identifiers)||void 0===r?void 0:r.map(function(e){return e.name||e.id}).join(", "))||e.expression||"\u2014",o=e.expression||"\u2014",s=null!==(i=null===(t=e.identifiers)||void 0===t?void 0:t.map(function(e){return e.id}))&&void 0!==i?i:[],l=e.category||"\u2014",c=he(e.category);return(0,D.jsxs)(Ze.Tr,{children:[(0,D.jsx)(Ge.Td,{dataLabel:Wn,children:a}),(0,D.jsx)(Ge.Td,{dataLabel:Un,children:o}),(0,D.jsx)(Ge.Td,{dataLabel:Zn,style:{whiteSpace:"pre-line"},children:s.length?s.join("\n"):"\u2014"}),(0,D.jsx)(Ge.Td,{dataLabel:zn,children:"\u2014"!==l?(0,D.jsxs)("span",{children:[(0,D.jsx)(x.I,{isInline:!0,children:(0,D.jsx)(fe.Ay,{style:{fill:c,height:"13px"}})}),"\xa0",ue(e.category)]}):"\u2014"}),(0,D.jsx)(Ge.Td,{dataLabel:Kn,children:(0,D.jsx)(Gn,{info:e})})]},n)})})})]})})};var Hn=function(e){var n=e.name,r=function(e){return Object.entries(e||{}).map(function(e){var n=(0,B.A)(e,2),r=n[0],i=n[1];return{ref:r,concluded:i.concluded,evidence:i.evidence||[]}})}(e.dependencies),i=[{key:"name",header:"Dependency Name",width:30,sortIndex:1,render:function(e){return(0,D.jsx)(cn,{name:e.ref})}},{key:"version",header:"Current Version",width:15,render:function(e){return J(e.ref)}},{key:"concluded",header:"Concluded",width:20,sortIndex:2,compoundExpand:!0,render:function(e){var n;if(!e.concluded)return"\u2014";var r=e.concluded.expression||e.concluded.name||"\u2014",i=null===(n=e.concluded.identifiers)||void 0===n?void 0:n.some(function(e){return!0===e.isDeprecated});return(0,D.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[i&&(0,D.jsx)(x.I,{isInline:!0,title:"Concluded license is deprecated",children:(0,D.jsx)(fe.Ay,{style:{fill:"#F0AB00",height:"13px"}})}),r]})}},{key:"category",header:"Category",width:15,sortIndex:3,render:function(e){var n;return null!==(n=e.concluded)&&void 0!==n&&n.category?(0,D.jsxs)("span",{children:[(0,D.jsx)(x.I,{isInline:!0,children:(0,D.jsx)(fe.Ay,{style:{fill:he(e.concluded.category),height:"13px"}})}),"\xa0",ue(e.concluded.category)]}):"\u2014"}},{key:"evidences",header:"Evidences",width:25,compoundExpand:!0,render:function(e){var n;return null!==(n=e.evidence)&&void 0!==n&&n.length?(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,D.jsx)("div",{style:{width:"25px"},children:e.evidence.length}),(0,D.jsx)(p.c,{orientation:{default:"vertical"},style:{paddingRight:"10px"}}),(0,D.jsx)(Bn,{evidence:e.evidence,countBy:"identifiers"})]}):0}}];return(0,D.jsx)(ln,{name:n,items:r,getRowKey:function(e){return e.ref},columns:i,filterConfig:{placeholder:"Filter by Dependency name",idSuffix:"-license-filter"},compareToByColumn:function(e,n,r){switch(r){case 1:return e.ref.localeCompare(n.ref);case 2:var i,t,a,o,s=(null===(i=e.concluded)||void 0===i?void 0:i.expression)||(null===(t=e.concluded)||void 0===t?void 0:t.name)||"",l=(null===(a=n.concluded)||void 0===a?void 0:a.expression)||(null===(o=n.concluded)||void 0===o?void 0:o.name)||"";return s.localeCompare(l);case 3:var c,d,u=(null===(c=e.concluded)||void 0===c?void 0:c.category)||"",h=(null===(d=n.concluded)||void 0===d?void 0:d.category)||"";return u.localeCompare(h);default:return 0}},filterItem:function(e,n){return!n||0===n.trim().length||-1!==e.ref.toLowerCase().indexOf(n.toLowerCase())},renderExpandContent:function(e,n){var r;return"concluded"===n&&e.concluded?(0,D.jsx)(Rn,{concluded:e.concluded}):"evidences"===n&&null!==(r=e.evidence)&&void 0!==r&&r.length?(0,D.jsx)(Yn,{evidence:e.evidence}):null},ariaLabelPrefix:"Licenses",expandId:"evidences-compound-expand",initialSortBy:{index:3,direction:"desc"}})},Qn=r(1157),Xn="vulnerabilities",qn="licenses",Jn=function(e){var n=e.report,r=nr(),t=c(n),o=t.length>0,s=(0,i.useMemo)(function(){var e;return(null!==(e=n.licenses)&&void 0!==e?e:[]).filter(function(e){return e.summary.total>0})},[n.licenses]),l=s.length>0,u=o?d(t[0]):null,h=l?s[0].status.name:null,v=i.useState(o?Xn:qn),g=(0,B.A)(v,2),x=g[0],p=g[1],f=i.useState(null!==u&&void 0!==u?u:0),m=(0,B.A)(f,2),j=m[0],y=m[1],I=i.useState(null!==h&&void 0!==h?h:0),A=(0,B.A)(I,2),C=A[0],b=A[1],N=r.writeKey&&""!==r.writeKey.trim()?Qn.N.load({writeKey:r.writeKey}):null,w=(0,i.useRef)("");(0,i.useEffect)(function(){N&&null!=r.anonymousId&&N.setAnonymousId(r.anonymousId)},[N,r.anonymousId]),(0,i.useEffect)(function(){l&&null!=h&&(new Set(s.map(function(e){return e.status.name})).has(String(C))||b(h))},[l,h,s,C]);var T=x===Xn?j:C;(0,i.useEffect)(function(){N&&T!==w.current&&(N.track("rhda.exhort.tab",{tabName:T}),w.current=T)},[N,T]);var S=[];return o&&S.push((0,D.jsx)(Ee.o,{eventKey:Xn,title:(0,D.jsx)(Pe.V,{children:"Vulnerabilities"}),"aria-label":"Vulnerabilities",children:(0,D.jsx)(De.t,{activeKey:j,onSelect:function(e,n){y(n)},isSecondary:!0,isBox:!0,variant:"light300","aria-label":"Vulnerability providers",role:"region",children:t.map(function(e){var n,r=d(e),i=null===(n=e.report.dependencies)||void 0===n?void 0:n.filter(function(e){return e.highestVulnerability});return(0,D.jsx)(Ee.o,{eventKey:r,title:(0,D.jsx)(Pe.V,{children:r}),"aria-label":"".concat(r," source"),children:(0,D.jsx)(a.d8,{variant:a.zC.default,children:(0,D.jsx)(Fn,{name:r,dependencies:i})})},r)})})},Xn)),l&&S.push((0,D.jsx)(Ee.o,{eventKey:qn,title:(0,D.jsx)(Pe.V,{children:"Licenses"}),"aria-label":"Licenses",children:(0,D.jsx)(De.t,{activeKey:C,onSelect:function(e,n){b(n)},isSecondary:!0,isBox:!0,variant:"light300","aria-label":"License providers",role:"region",children:s.map(function(e){return(0,D.jsx)(Ee.o,{eventKey:e.status.name,title:(0,D.jsx)(Pe.V,{children:e.status.name}),"aria-label":"".concat(e.status.name," source"),children:(0,D.jsx)(a.d8,{variant:a.zC.default,children:(0,D.jsx)(Hn,{name:e.status.name,dependencies:e.packages})})},e.status.name)})})},qn)),0===S.length?null:(0,D.jsx)("div",{children:(0,D.jsx)(De.t,{activeKey:x,onSelect:function(e,n){p(n)},"aria-label":"Providers",role:"region",variant:"light300",isBox:!0,children:S})})},_n=function(e){var n,r=e.report,t=(0,i.useMemo)(function(){return Object.entries(r).sort(function(e,n){var r=(0,B.A)(e,1)[0],i=(0,B.A)(n,1)[0];return r.localeCompare(i)})},[r]),l=i.useState((null===(n=t[0])||void 0===n?void 0:n[0])||""),c=(0,B.A)(l,2),d=c[0],u=c[1],h=i.useState(!0),v=(0,B.A)(h,1)[0];(0,i.useEffect)(function(){var e,n=(null===(e=t[0])||void 0===e?void 0:e[0])||"";u(function(e){return new Set(t.map(function(e){return(0,B.A)(e,1)[0]})).has(String(e))?e:n})},[t]);var g=t.map(function(e){var n=(0,B.A)(e,2),r=n[0],i=n[1];return(0,D.jsxs)(Ee.o,{eventKey:r,title:(0,D.jsx)(Pe.V,{children:re(r)}),"aria-label":"".concat(r," source"),children:[(0,D.jsx)(Ae,{report:i}),(0,D.jsx)(a.d8,{variant:a.zC.light,children:(0,D.jsx)(o.x,{hasGutter:!0,children:(0,D.jsx)(s.E,{children:(0,D.jsx)(ye,{report:i,isReportMap:!0,purl:r})})})}),(0,D.jsx)(a.d8,{variant:a.zC.default,children:(0,D.jsx)(Jn,{report:i})})]})});return(0,D.jsx)("div",{children:(0,D.jsx)(De.t,{activeKey:d,onSelect:function(e,n){u(n)},"aria-label":"Providers",role:"region",variant:v?"light300":"default",isBox:!0,children:g})})},$n=window.appData,er=(0,i.createContext)($n),nr=function(){return(0,i.useContext)(er)};var rr=function(){return(0,D.jsx)(er.Provider,{value:$n,children:(0,D.jsx)(Me,{children:(e=$n.report,"object"===typeof e&&null!==e&&Object.keys(e).every(function(n){return"scanned"in e[n]&&"providers"in e[n]&&"object"===typeof e[n].scanned&&"object"===typeof e[n].providers})?(0,D.jsx)(a.d8,{variant:a.zC.default,children:(0,D.jsx)(_n,{report:$n.report})}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Ae,{report:$n.report}),(0,D.jsx)(a.d8,{variant:a.zC.light,children:(0,D.jsx)(o.x,{hasGutter:!0,children:(0,D.jsx)(s.E,{children:(0,D.jsx)(ye,{report:$n.report})})})}),(0,D.jsx)(a.d8,{variant:a.zC.default,children:(0,D.jsx)(Jn,{report:$n.report})})]}))})});var e},ir=function(e){e&&e instanceof Function&&r.e(121).then(r.bind(r,6895)).then(function(n){var r=n.getCLS,i=n.getFID,t=n.getFCP,a=n.getLCP,o=n.getTTFB;r(e),i(e),t(e),a(e),o(e)})};t.createRoot(document.getElementById("root")).render((0,D.jsx)(i.StrictMode,{children:(0,D.jsx)(rr,{})})),ir()}},n={};function r(i){var t=n[i];if(void 0!==t)return t.exports;var a=n[i]={id:i,loaded:!1,exports:{}};return e[i].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=e,function(){var e=[];r.O=function(n,i,t,a){if(!i){var o=1/0;for(d=0;d=a)&&Object.keys(r.O).every(function(e){return r.O[e](i[l])})?i.splice(l--,1):(s=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[i,t,a]}}(),r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},function(){var e,n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};r.t=function(i,t){if(1&t&&(i=this(i)),8&t)return i;if("object"===typeof i&&i){if(4&t&&i.__esModule)return i;if(16&t&&"function"===typeof i.then)return i}var a=Object.create(null);r.r(a);var o={};e=e||[null,n({}),n([]),n(n)];for(var s=2&t&&i;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach(function(e){o[e]=function(){return i[e]}});return o.default=function(){return i},r.d(a,o),a}}(),r.d=function(e,n){for(var i in n)r.o(n,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},r.e=function(){return Promise.resolve()},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={792:0};r.O.j=function(n){return 0===e[n]};var n=function(n,i){var t,a,o=i[0],s=i[1],l=i[2],c=0;if(o.some(function(n){return 0!==e[n]})){for(t in s)r.o(s,t)&&(r.m[t]=s[t]);if(l)var d=l(r)}for(n&&n(i);c1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function g(e){var t=function(e){return void 0!==e},n=e._x,r=e._x1,o=e._x0,a=e._voronoiX,i=e._y,l=e._y1,c=e._y0,s=e._voronoiY,u=t(r)?r:n,f=t(l)?l:i,d={x:t(a)?a:u,x0:t(o)?o:n,y:t(s)?s:f,y0:t(c)?c:i};return v()({},d,e)}function y(e){var t=e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding"],n="number"===typeof t?t:0,r="object"===typeof t?t:{};return{top:r.top||n,bottom:r.bottom||n,left:r.left||n,right:r.right||n}}function b(e){return"tooltip"===(e&&e.type&&e.type.role)}function x(e,t){return _(e)?e(t):e}function w(e,t){return t.disableInlineStyles?{}:e&&Object.keys(e).some(function(t){return _(e[t])})?Object.keys(e).reduce(function(n,r){return n[r]=x(e[r],t),n},{}):e}function O(e){return"number"===typeof e?e*(Math.PI/180):e}function S(e){return"number"===typeof e?e/(Math.PI/180):e}function C(e){var t=y(e),n=t.left,r=t.right,o=t.top,a=t.bottom,i=e.width,l=e.height;return Math.min(i-n-r,l-o-a)/2}function A(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?function(e,t){return"x"===t?[O(e.startAngle||0),O(e.endAngle||360)]:[e.innerRadius||0,C(e)]}(e,t):function(e,t){var n="x"!==t,r=y(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}(e,t)}function k(e){return null==e}function _(e){return"function"===typeof e}function E(e){return _(e)?e:null===e||void 0===e?function(e){return e}:p()(e)}function P(e,t,n){var r=h(e.theme&&e.theme[n]?e.theme[n]:{},["style"]),o=function(e){if(void 0!==e.horizontal||!e.children)return e.horizontal;var t=function(e){return e.reduce(function(e,n){var r=n.props||{};return e||r.horizontal||!r.children?e||r.horizontal:t(l.Children.toArray(r.children))},!1)};return t(l.Children.toArray(e.children))}(e),a=void 0===o?{}:{horizontal:o};return v()(a,e,r,t)}function j(e,t,n){var r=t?e:0,o=t||e;o||(o=0);var a=o-r,i=Math.abs(a),l=a/i||1,c=n||1,s=Math.max(Math.ceil(i/c),0);return Array.from(Array(s),function(e,t){return r+t*l*c})}var N=["desc","id","tabIndex","origin"];function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var R=(0,l.forwardRef)(function(e,t){var n,r=e.desc,o=e.id,a=e.tabIndex,i=(e.origin,L(e,N)),c=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ue=(0,l.forwardRef)(function(e,t){var n,r=e.desc,o=e.id,a=e.tabIndex,i=(e.origin,se(e,ae)),c=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ve=function(e){var t,n=e.children,r=e.desc,o=e.id,a=(e.origin,e.tabIndex),i=e.title,c=me(e,fe),s=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xe=function(e){e.desc;var t,n=e.id,r=e.tabIndex,o=(e.origin,be(e,he)),a=function(e){for(var t=1;t1?t-1:0),r=1;r0)return n.reduce(function(e,t){return[e,Oe(t)].join(" ")},Oe(e)).trim();if(void 0===e||null===e||"string"===typeof e)return e;var o=[];for(var a in e)if(e.hasOwnProperty(a)){var i=e[a];o.push("".concat(a,"(").concat(i,")"))}return o.join(" ").trim()};function Se(e){var t={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return e?t[e]:t.grayscale}var Ce=n(7800);function Ae(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,Ce.A)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}var ke=n(1023),_e=n.n(ke);function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||je(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pe(e){return function(e){if(Array.isArray(e))return Ne(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||je(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function je(e,t){if(e){if("string"===typeof e)return Ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]&&arguments[2];return!("undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement)||n?Ue(e,t):Ge(e,t)},Ke=function(e,t){return qe(e,t)};function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(e)?e[t]||e[0]:e},ot=function(e){var t=e.backgroundStyle,n=e.backgroundPadding;return Array.isArray(t)&&!Q()(t)||Array.isArray(n)&&!Q()(n)},at=function(e,t,n){var r=e.polar,o=rt(e.style),a=r?function(e,t){var n=e.labelPlacement,r=e.datum;if(!n||"vertical"===n)return 0;var o=void 0!==t?t%360:we(e,r),a=0;return 0===o||180===o?a=90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)}(e):0,i=void 0===o.angle?x(e.angle,e):o.angle,l=void 0===i?a:i,c=e.transform||o.transform,s=c&&x(c,e);return s||l?Oe(s,l&&{rotate:[l,t,n]}):void 0},it=function(e,t){var n=e.direction,r=e.textAnchor,o=e.x,a=e.dx;if("rtl"===n)return o-t;switch(r){case"middle":return Math.round(o-t/2);case"end":return Math.round(o-t);default:return o+(a||0)}},lt=function(e,t){var n=e.verticalAnchor,r=e.y,o=e.originalDy,a=r+(void 0===o?0:o);switch(n){case"start":return Math.floor(a);case"end":return Math.ceil(a-t);default:return Math.floor(a-t/2)}},ct=function(e,t){return ot(e)?function(e,t){var n=e.dy,r=e.dx,o=e.transform,a=e.backgroundStyle,i=e.backgroundPadding,c=e.backgroundComponent,s=e.inline,u=e.y,f=t.map(function(e,o){var a=rt(t,o-1),l=e.textSize,c=e.fontSize*e.lineHeight,f=Math.ceil(c),d=rt(i,o),p=rt(i,o-1),m=s&&r||0,v=o&&!s?a.fontSize*a.lineHeight+p.top+p.bottom:n-.5*c-(e.fontSize-e.capHeight);return{textHeight:f,labelSize:l,heightWithPadding:f+d.top+d.bottom,widthWithPadding:l.width+d.left+d.right+m,y:u,fontSize:e.fontSize,dy:v}});return f.map(function(t,n){var r=it(e,t.labelSize.width),d=f.slice(0,n+1).reduce(function(e,t){return e+t.dy},u),p=rt(i,n),m=t.heightWithPadding,h=s?function(e,t,n){var r=e.textAnchor,o=t.map(function(e){return e.widthWithPadding}),a=-o.reduce(function(e,t){return e+t},0)/2;switch(r){case"start":return o.reduce(function(e,t,r){return rn?e-t:e},0);default:return o.reduce(function(e,t,r){return r===n?e+t/2:e+(r=0&&t._call.call(void 0,e),t=t._next;--At}()}finally{At=0,function(){var e,t,n=St,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:St=t);Ct=e,zt(r)}(),Pt=0}}function Ft(){var e=Nt.now(),t=e-Et;t>1e3&&(jt-=t,Et=e)}function zt(e){At||(kt&&(kt=clearTimeout(kt)),e-Pt>24?(e<1/0&&(kt=setTimeout(Dt,e-Nt.now()-jt)),_t&&(_t=clearInterval(_t))):(_t||(Et=Nt.now(),_t=setInterval(Ft,1e3)),At=1,Tt(Dt)))}function Bt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?t-1:0),r=1;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:Qn;if((0,Dn.A)(this,t),n=(0,zn.A)(this,t),Object.defineProperties(n,{_intern:{value:new Map},_key:{value:r}}),null!=e){var o,a=Ae(e);try{for(a.s();!(o=a.n()).done;){var i=o.value,l=(0,In.A)(i,2),c=l[0],s=l[1];n.set(c,s)}}catch(u){a.e(u)}finally{a.f()}}return n}return(0,Un.A)(t,e),(0,Fn.A)(t,[{key:"get",value:function(e){return Wn(t,"get",this,3)([Kn(this,e)])}},{key:"has",value:function(e){return Wn(t,"has",this,3)([Kn(this,e)])}},{key:"set",value:function(e,n){return Wn(t,"set",this,3)([$n(this,e),n])}},{key:"delete",value:function(e){return Wn(t,"delete",this,3)([Yn(this,e)])}}])}(Gn(Map));function Kn(e,t){var n=e._intern,r=(0,e._key)(t);return n.has(r)?n.get(r):t}function $n(e,t){var n=e._intern,r=(0,e._key)(t);return n.has(r)?n.get(r):(n.set(r,t),t)}function Yn(e,t){var n=e._intern,r=(0,e._key)(t);return n.has(r)&&(t=n.get(r),n.delete(r)),t}function Qn(e){return null!==e&&"object"===typeof e?e.valueOf():e}var Jn=Symbol("implicit");function Zn(){var e=new qn,t=[],n=[],r=Jn;function o(o){var a=e.get(o);if(void 0===a){if(r!==Jn)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new qn;var r,a=Ae(n);try{for(a.s();!(r=a.n()).done;){var i=r.value;e.has(i)||e.set(i,t.push(i)-1)}}catch(l){a.e(l)}finally{a.f()}return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return Zn(t,n).unknown(r)},Ln.apply(o,arguments),o}function er(){var e,t,n=Zn().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,l=!1,c=0,s=0,u=.5;function f(){var n=r().length,f=i=rr?10:c>=or?5:c>=ar?2:1;return l<0?(a=Math.pow(10,-l)/s,(r=Math.round(e*a))/at&&--o,a=-a):(a=Math.pow(10,l)*s,(r=Math.round(e/a))*at&&--o),o0))return[];if((e=+e)===(t=+t))return[e];var r=t=i))return[];var s=l-i+1,u=new Array(s);if(r)if(c<0)for(var f=0;ft?1:e>=t?0:NaN}function fr(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function dr(e){var t,n,r;function o(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o>>1;n(e[i],r)<0?o=i+1:a=i}while(o2&&void 0!==arguments[2]?arguments[2]:0,a=o(e,t,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o>>1;n(e[i],r)<=0?o=i+1:a=i}while(o3?(o=m===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,u,m){if(s>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(d.n=-1),p(l,c)):d.n=c:d.v=c);try{if(s=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=d.n<0)?c:n.call(r,d))!==i)break}catch(t){a=e,l=1,c=t}finally{s=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(mr(t={},r,function(){return this}),t),f=s.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,mr(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=s,mr(f,"constructor",s),mr(s,"constructor",c),c.displayName="GeneratorFunction",mr(s,o,"GeneratorFunction"),mr(f),mr(f,o,"Generator"),mr(f,r,function(){return this}),mr(f,"toString",function(){return"[object Generator]"}),(vr=function(){return{w:a,m:d}})()}var hr=vr().m(yr);function gr(e){return null===e?NaN:+e}function yr(e,t){var n,r,o,a,i,l,c,s,u;return vr().w(function(f){for(;;)switch(f.p=f.n){case 0:if(void 0!==t){f.n=8;break}n=Ae(e),f.p=1,n.s();case 2:if((r=n.n()).done){f.n=4;break}if(!(null!=(o=r.value)&&(o=+o)>=o)){f.n=3;break}return f.n=3,o;case 3:f.n=2;break;case 4:f.n=6;break;case 5:f.p=5,s=f.v,n.e(s);case 6:return f.p=6,n.f(),f.f(6);case 7:f.n=15;break;case 8:a=-1,i=Ae(e),f.p=9,i.s();case 10:if((l=i.n()).done){f.n=12;break}if(c=l.value,!(null!=(c=t(c,++a,e))&&(c=+c)>=c)){f.n=11;break}return f.n=11,c;case 11:f.n=10;break;case 12:f.n=14;break;case 13:f.p=13,u=f.v,i.e(u);case 14:return f.p=14,i.f(),f.f(14);case 15:return f.a(2)}},hr,null,[[9,13,14,15],[1,5,6,7]])}var br=dr(ur),xr=br.right,wr=(br.left,dr(gr).center,xr);function Or(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Sr(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Cr(){}var Ar=.7,kr=1/Ar,_r="\\s*([+-]?\\d+)\\s*",Er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jr=/^#([0-9a-f]{3,8})$/,Nr=new RegExp("^rgb\\(".concat(_r,",").concat(_r,",").concat(_r,"\\)$")),Tr=new RegExp("^rgb\\(".concat(Pr,",").concat(Pr,",").concat(Pr,"\\)$")),Mr=new RegExp("^rgba\\(".concat(_r,",").concat(_r,",").concat(_r,",").concat(Er,"\\)$")),Ir=new RegExp("^rgba\\(".concat(Pr,",").concat(Pr,",").concat(Pr,",").concat(Er,"\\)$")),Lr=new RegExp("^hsl\\(".concat(Er,",").concat(Pr,",").concat(Pr,"\\)$")),Rr=new RegExp("^hsla\\(".concat(Er,",").concat(Pr,",").concat(Pr,",").concat(Er,"\\)$")),Dr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Fr(){return this.rgb().formatHex()}function zr(){return this.rgb().formatRgb()}function Br(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=jr.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Hr(t):3===n?new Xr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Wr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Wr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Nr.exec(e))?new Xr(t[1],t[2],t[3],1):(t=Tr.exec(e))?new Xr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Mr.exec(e))?Wr(t[1],t[2],t[3],t[4]):(t=Ir.exec(e))?Wr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Lr.exec(e))?Yr(t[1],t[2]/100,t[3]/100,1):(t=Rr.exec(e))?Yr(t[1],t[2]/100,t[3]/100,t[4]):Dr.hasOwnProperty(e)?Hr(Dr[e]):"transparent"===e?new Xr(NaN,NaN,NaN,0):null}function Hr(e){return new Xr(e>>16&255,e>>8&255,255&e,1)}function Wr(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xr(e,t,n,r)}function Ur(e,t,n,r){return 1===arguments.length?((o=e)instanceof Cr||(o=Br(o)),o?new Xr((o=o.rgb()).r,o.g,o.b,o.opacity):new Xr):new Xr(e,t,n,null==r?1:r);var o}function Xr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Vr(){return"#".concat($r(this.r)).concat($r(this.g)).concat($r(this.b))}function Gr(){var e=qr(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(Kr(this.r),", ").concat(Kr(this.g),", ").concat(Kr(this.b)).concat(1===e?")":", ".concat(e,")"))}function qr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Kr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $r(e){return((e=Kr(e))<16?"0":"")+e.toString(16)}function Yr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Jr(e,t,n,r)}function Qr(e){if(e instanceof Jr)return new Jr(e.h,e.s,e.l,e.opacity);if(e instanceof Cr||(e=Br(e)),!e)return new Jr;if(e instanceof Jr)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,c=(a+o)/2;return l?(i=t===a?(n-r)/l+6*(n0&&c<1?0:i,new Jr(i,l,c,e.opacity)}function Jr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Zr(e){return(e=(e||0)%360)<0?e+360:e}function eo(e){return Math.max(0,Math.min(1,e||0))}function to(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function no(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}Or(Cr,Br,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Fr,formatHex:Fr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Qr(this).formatHsl()},formatRgb:zr,toString:zr}),Or(Xr,Ur,Sr(Cr,{brighter:function(e){return e=null==e?kr:Math.pow(kr,e),new Xr(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Ar:Math.pow(Ar,e),new Xr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},clamp:function(){return new Xr(Kr(this.r),Kr(this.g),Kr(this.b),qr(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Vr,formatHex:Vr,formatHex8:function(){return"#".concat($r(this.r)).concat($r(this.g)).concat($r(this.b)).concat($r(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:Gr,toString:Gr})),Or(Jr,function(e,t,n,r){return 1===arguments.length?Qr(e):new Jr(e,t,n,null==r?1:r)},Sr(Cr,{brighter:function(e){return e=null==e?kr:Math.pow(kr,e),new Jr(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Ar:Math.pow(Ar,e),new Jr(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Xr(to(e>=240?e-240:e+120,o,r),to(e,o,r),to(e<120?e+240:e-120,o,r),this.opacity)},clamp:function(){return new Jr(Zr(this.h),eo(this.s),eo(this.l),qr(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=qr(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(Zr(this.h),", ").concat(100*eo(this.s),"%, ").concat(100*eo(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));var ro=function(e){return function(){return e}};function oo(e,t){return function(n){return e+n*t}}function ao(e){return 1===(e=+e)?io:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ro(isNaN(t)?n:t)}}function io(e,t){var n=t-e;return n?oo(e,n):ro(isNaN(e)?t:e)}var lo=function e(t){var n=ao(t);function r(e,t){var r=n((e=Ur(e)).r,(t=Ur(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=io(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function co(e){return function(t){var n,r,o=t.length,a=new Array(o),i=new Array(o),l=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,l=ra&&(o=t.slice(a,o),l[i]?l[i]+=o:l[++i]=o),(n=n[0])===(r=r[0])?l[i]?l[i]+=r:l[++i]=r:(l[++i]=null,c.push({i:i,x:fo(n,r)})),a=vo.lastIndex;return at&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(i[0],i[e-1])),r=e>2?Ao:Co,o=a=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),l,c)))(e(s(t)))}return f.invert=function(n){return s(t((a||(a=r(l,i.map(e),fo)))(n)))},f.domain=function(e){return arguments.length?(i=Array.from(e,xo),u()):i.slice()},f.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},f.rangeRound=function(e){return l=Array.from(e),c=bo,u()},f.clamp=function(e){return arguments.length?(s=!!e||Oo,u()):s!==Oo},f.interpolate=function(e){return arguments.length?(c=e,u()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function Eo(){return _o()(Oo,Oo)}var Po,jo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function No(e){if(!(t=jo.exec(e)))throw new Error("invalid format: "+e);var t;return new To({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function To(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Mo(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Io(e){return(e=Mo(Math.abs(e)))?e[1]:NaN}function Lo(e,t){var n=Mo(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}No.prototype=To.prototype,To.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Ro={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Lo(100*e,t)},r:Lo,s:function(e,t){var n=Mo(e,t);if(!n)return Po=void 0,e.toPrecision(t);var r=n[0],o=n[1],a=o-(Po=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Mo(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Do(e){return e}var Fo,zo,Bo,Ho=Array.prototype.map,Wo=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Uo(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Do:(t=Ho.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,l=t[0],c=0;o>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),a.push(e.substring(o-=l,o+l)),!((c+=l+1)>r));)l=t[i=(i+1)%t.length];return a.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?Do:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Ho.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",s=void 0===e.minus?"\u2212":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e,t){var n=(e=No(e)).fill,f=e.align,d=e.sign,p=e.symbol,m=e.zero,v=e.width,h=e.comma,g=e.precision,y=e.trim,b=e.type;"n"===b?(h=!0,b="g"):Ro[b]||(void 0===g&&(g=12),y=!0,b="g"),(m||"0"===n&&"="===f)&&(m=!0,n="0",f="=");var x=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),w=("$"===p?a:/[%p]/.test(b)?c:"")+(t&&void 0!==t.suffix?t.suffix:""),O=Ro[b],S=/[defgprs%]/.test(b);function C(e){var t,o,a,c=x,p=w;if("c"===b)p=O(e)+p,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:O(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),C&&0===+e&&"+"!==d&&(C=!1),c=(C?"("===d?d:s:"-"===d||"("===d?"":d)+c,p=("s"!==b||isNaN(e)||void 0===Po?"":Wo[8+Po/3])+p+(C&&"("===d?")":""),S)for(t=-1,o=e.length;++t(a=e.charCodeAt(t))||a>57){p=(46===a?i+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}h&&!m&&(e=r(e,1/0));var A=c.length+e.length+p.length,k=A>1)+c+e+p+k.slice(A);break;default:e=k+c+e+p}return l(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:f,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(Io(t)/3))),r=Math.pow(10,-n),o=f(((e=No(e)).type="f",e),{suffix:Wo[8+n/3]});return function(e){return o(r*e)}}}}function Xo(e,t,n,r){var o,a=sr(e,t,n);switch((r=No(null==r?",f":r)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Io(t)/3)))-Io(Math.abs(e)))}(a,i))||(r.precision=o),Bo(r,i);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Io(t)-Io(e))+1}(a,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-Io(Math.abs(e)))}(a))||(r.precision=o-2*("%"===r.type))}return zo(r)}function Vo(e){var t=e.domain;return e.ticks=function(e){var n=t();return lr(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Xo(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,l=a.length-1,c=a[i],s=a[l],u=10;for(s0;){if((o=cr(c,s,n))===r)return a[i]=c,a[l]=s,t(a);if(o>0)c=Math.floor(c/o)*o,s=Math.ceil(s/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,s=Math.floor(s*o)/o}r=o}return e},e}function Go(){var e=Eo();return e.copy=function(){return ko(e,Go())},Ln.apply(e,arguments),Vo(e)}function qo(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,xo),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return qo(e).unknown(t)},e=arguments.length?Array.from(e,xo):[0,1],Vo(n)}function Ko(e,t){var n,r=0,o=(e=e.slice()).length-1,a=e[r],i=e[o];return i0){for(;d<=p;++d)for(u=1;ul)break;v.push(f)}}else for(;d<=p;++d)for(u=a-1;u>=1;--u)if(!((f=d>0?u/n(-d):u*n(d))l)break;v.push(f)}2*v.length=a)&&(n=a)}}catch(u){o.e(u)}finally{o.f()}}else{var i,l=-1,c=Ae(e);try{for(c.s();!(i=c.n()).done;){var s=i.value;null!=(s=t(s,++l,e))&&(n=s)&&(n=s)}}catch(u){c.e(u)}finally{c.f()}}return n}function ha(e,t){var n;if(void 0===t){var r,o=Ae(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;null!=a&&(n>a||void 0===n&&a>=a)&&(n=a)}}catch(u){o.e(u)}finally{o.f()}}else{var i,l=-1,c=Ae(e);try{for(c.s();!(i=c.n()).done;){var s=i.value;null!=(s=t(s,++l,e))&&(n>s||void 0===n&&s>=s)&&(n=s)}}catch(u){c.e(u)}finally{c.f()}}return n}function ga(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ur;if(e===ur)return ya;if("function"!==typeof e)throw new TypeError("compare is not a function");return function(t,n){var r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}function ya(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et?1:0)}function ba(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,o=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?ya:ga(o);r>n;){if(r-n>600){var a=r-n+1,i=t-n+1,l=Math.log(a),c=.5*Math.exp(2*l/3),s=.5*Math.sqrt(l*c*(a-c)/a)*(i-a/2<0?-1:1);ba(e,t,Math.max(n,Math.floor(t-i*c/a+s)),Math.min(r,Math.floor(t+(a-i)*c/a+s)),o)}var u=e[t],f=n,d=r;for(xa(e,n,t),o(e[r],u)>0&&xa(e,n,r);f0;)--d}0===o(e[n],u)?xa(e,n,d):xa(e,++d,r),d<=t&&(n=d+1),t<=d&&(r=d-1)}return e}function xa(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function wa(e,t,n){if((r=(e=Float64Array.from(yr(e,n))).length)&&!isNaN(t=+t)){if(t<=0||r<2)return ha(e);if(t>=1)return va(e);var r,o=(r-1)*t,a=Math.floor(o),i=va(ba(e,a).subarray(0,a+1));return i+(ha(e.subarray(a+1))-i)*(o-a)}}function Oa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gr;if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}}function Sa(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e0?r[o-1]:t[0],o=r?[o[r-1],n]:[o[i-1],o[i]]},i.unknown=function(t){return arguments.length?(e=t,i):i},i.thresholds=function(){return o.slice()},i.copy=function(){return Ca().domain([t,n]).range(a).unknown(e)},Ln.apply(Vo(i),arguments)}function Aa(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[wr(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Aa().domain(t).range(n).unknown(e)},Ln.apply(o,arguments)}Fo=Uo({thousands:",",grouping:[3],currency:["$",""]}),zo=Fo.format,Bo=Fo.formatPrefix;var ka=1e3,_a=6e4,Ea=36e5,Pa=864e5,ja=6048e5,Na=2592e6,Ta=31536e6,Ma=new Date,Ia=new Date;function La(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return l;do{l.push(i=new Date(+n)),t(n,a),e(n)}while(i=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(o.count=function(t,r){return Ma.setTime(+t),Ia.setTime(+r),e(Ma),e(Ia),Math.floor(n(Ma,Ia))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var Ra=La(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Ra.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?La(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Ra:null};Ra.range;var Da=La(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*ka)},function(e,t){return(t-e)/ka},function(e){return e.getUTCSeconds()}),Fa=(Da.range,La(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ka)},function(e,t){e.setTime(+e+t*_a)},function(e,t){return(t-e)/_a},function(e){return e.getMinutes()})),za=(Fa.range,La(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*_a)},function(e,t){return(t-e)/_a},function(e){return e.getUTCMinutes()})),Ba=(za.range,La(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ka-e.getMinutes()*_a)},function(e,t){e.setTime(+e+t*Ea)},function(e,t){return(t-e)/Ea},function(e){return e.getHours()})),Ha=(Ba.range,La(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ea)},function(e,t){return(t-e)/Ea},function(e){return e.getUTCHours()})),Wa=(Ha.range,La(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*_a)/Pa},function(e){return e.getDate()-1})),Ua=(Wa.range,La(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Pa},function(e){return e.getUTCDate()-1})),Xa=(Ua.range,La(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Pa},function(e){return Math.floor(e/Pa)}));Xa.range;function Va(e){return La(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*_a)/ja})}var Ga=Va(0),qa=Va(1),Ka=Va(2),$a=Va(3),Ya=Va(4),Qa=Va(5),Ja=Va(6);Ga.range,qa.range,Ka.range,$a.range,Ya.range,Qa.range,Ja.range;function Za(e){return La(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/ja})}var ei=Za(0),ti=Za(1),ni=Za(2),ri=Za(3),oi=Za(4),ai=Za(5),ii=Za(6),li=(ei.range,ti.range,ni.range,ri.range,oi.range,ai.range,ii.range,La(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()})),ci=(li.range,La(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()})),si=(ci.range,La(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()}));si.every=function(e){return isFinite(e=Math.floor(e))&&e>0?La(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};si.range;var ui=La(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});ui.every=function(e){return isFinite(e=Math.floor(e))&&e>0?La(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};ui.range;function fi(e,t,n,r,o,a){var i=[[Da,1,ka],[Da,5,5e3],[Da,15,15e3],[Da,30,3e4],[a,1,_a],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,Ea],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Pa],[r,2,1728e5],[n,1,ja],[t,1,Na],[t,3,7776e6],[e,1,Ta]];function l(t,n,r){var o=Math.abs(n-t)/r,a=dr(function(e){return(0,In.A)(e,3)[2]}).right(i,o);if(a===i.length)return e.every(sr(t/Ta,n/Ta,r));if(0===a)return Ra.every(Math.max(sr(t,n,r),1));var l=(0,In.A)(i[o/i[a-1][2]68?1900:2e3),n+r[0].length):-1}function Hi(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Wi(e,t,n){var r=_i.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Ui(e,t,n){var r=_i.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Xi(e,t,n){var r=_i.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Vi(e,t,n){var r=_i.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Gi(e,t,n){var r=_i.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function qi(e,t,n){var r=_i.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ki(e,t,n){var r=_i.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function $i(e,t,n){var r=_i.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Yi(e,t,n){var r=_i.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Qi(e,t,n){var r=Ei.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ji(e,t,n){var r=_i.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Zi(e,t,n){var r=_i.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function el(e,t){return ji(e.getDate(),t,2)}function tl(e,t){return ji(e.getHours(),t,2)}function nl(e,t){return ji(e.getHours()%12||12,t,2)}function rl(e,t){return ji(1+Wa.count(si(e),e),t,3)}function ol(e,t){return ji(e.getMilliseconds(),t,3)}function al(e,t){return ol(e,t)+"000"}function il(e,t){return ji(e.getMonth()+1,t,2)}function ll(e,t){return ji(e.getMinutes(),t,2)}function cl(e,t){return ji(e.getSeconds(),t,2)}function sl(e){var t=e.getDay();return 0===t?7:t}function ul(e,t){return ji(Ga.count(si(e)-1,e),t,2)}function fl(e){var t=e.getDay();return t>=4||0===t?Ya(e):Ya.ceil(e)}function dl(e,t){return e=fl(e),ji(Ya.count(si(e),e)+(4===si(e).getDay()),t,2)}function pl(e){return e.getDay()}function ml(e,t){return ji(qa.count(si(e)-1,e),t,2)}function vl(e,t){return ji(e.getFullYear()%100,t,2)}function hl(e,t){return ji((e=fl(e)).getFullYear()%100,t,2)}function gl(e,t){return ji(e.getFullYear()%1e4,t,4)}function yl(e,t){var n=e.getDay();return ji((e=n>=4||0===n?Ya(e):Ya.ceil(e)).getFullYear()%1e4,t,4)}function bl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ji(t/60|0,"0",2)+ji(t%60,"0",2)}function xl(e,t){return ji(e.getUTCDate(),t,2)}function wl(e,t){return ji(e.getUTCHours(),t,2)}function Ol(e,t){return ji(e.getUTCHours()%12||12,t,2)}function Sl(e,t){return ji(1+Ua.count(ui(e),e),t,3)}function Cl(e,t){return ji(e.getUTCMilliseconds(),t,3)}function Al(e,t){return Cl(e,t)+"000"}function kl(e,t){return ji(e.getUTCMonth()+1,t,2)}function _l(e,t){return ji(e.getUTCMinutes(),t,2)}function El(e,t){return ji(e.getUTCSeconds(),t,2)}function Pl(e){var t=e.getUTCDay();return 0===t?7:t}function jl(e,t){return ji(ei.count(ui(e)-1,e),t,2)}function Nl(e){var t=e.getUTCDay();return t>=4||0===t?oi(e):oi.ceil(e)}function Tl(e,t){return e=Nl(e),ji(oi.count(ui(e),e)+(4===ui(e).getUTCDay()),t,2)}function Ml(e){return e.getUTCDay()}function Il(e,t){return ji(ti.count(ui(e)-1,e),t,2)}function Ll(e,t){return ji(e.getUTCFullYear()%100,t,2)}function Rl(e,t){return ji((e=Nl(e)).getUTCFullYear()%100,t,2)}function Dl(e,t){return ji(e.getUTCFullYear()%1e4,t,4)}function Fl(e,t){var n=e.getUTCDay();return ji((e=n>=4||0===n?oi(e):oi.ceil(e)).getUTCFullYear()%1e4,t,4)}function zl(){return"+0000"}function Bl(){return"%"}function Hl(e){return+e}function Wl(e){return Math.floor(+e/1e3)}function Ul(e){return new Date(e)}function Xl(e){return e instanceof Date?+e:+new Date(+e)}function Vl(e,t,n,r,o,a,i,l,c,s){var u=Eo(),f=u.invert,d=u.domain,p=s(".%L"),m=s(":%S"),v=s("%I:%M"),h=s("%I %p"),g=s("%a %d"),y=s("%b %d"),b=s("%B"),x=s("%Y");function w(e){return(c(e)=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Hl,s:Wl,S:cl,u:sl,U:ul,V:dl,w:pl,W:ml,x:null,X:null,y:vl,Y:gl,Z:bl,"%":Bl},x={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:xl,e:xl,f:Al,g:Rl,G:Fl,H:wl,I:Ol,j:Sl,L:Cl,m:kl,M:_l,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Hl,s:Wl,S:El,u:Pl,U:jl,V:Tl,w:Ml,W:Il,x:null,X:null,y:Ll,Y:Dl,Z:zl,"%":Bl},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=h.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:Xi,e:Xi,f:Yi,g:Bi,G:zi,H:Gi,I:Gi,j:Vi,L:$i,m:Ui,M:qi,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Wi,Q:Ji,s:Zi,S:Ki,u:Li,U:Ri,V:Di,w:Ii,W:Fi,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:Bi,Y:zi,Z:Hi,"%":Qi};function O(e,t){return function(n){var r,o,a,i=[],l=-1,c=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in a||(a.w=1),"Z"in a?(o=(r=wi(Oi(a.y,0,1))).getUTCDay(),r=o>4||0===o?ti.ceil(r):ti(r),r=Ua.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(o=(r=xi(Oi(a.y,0,1))).getDay(),r=o>4||0===o?qa.ceil(r):qa(r),r=Wa.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?wi(Oi(a.y,0,1)).getUTCDay():xi(Oi(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,wi(a)):xi(a)}}function C(e,t,n,r){for(var o,a,i=0,l=t.length,c=n.length;i=c)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=w[o in ki?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}(e),Ci=Si.format,Si.parse,Ai=Si.utcFormat,Si.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var cc=["linear","time","log","sqrt"];function sc(e){return"function"===typeof e?_(e.copy)&&_(e.domain)&&_(e.range):"string"===typeof e&&cc.includes(e)}function uc(e,t){return!!e.scale&&(!e.scale.x&&!e.scale.y||!!e.scale[t])}function fc(e,t){if(uc(e,t)){var n=e.scale[t]||e.scale;return"string"===typeof n?n:function(e){if("string"===typeof e)return e;var t=hc.filter(function(t){return void 0!==e[t.method]})[0];return t?t.name:void 0}(n)}}function dc(e,t){if(!e.data)return"linear";var n=E(e[t]);return jn(e.data.map(function(e){var r=An()(n(e))?n(e)[t]:n(e);return void 0!==r?r:e[t]}))?"time":"linear"}function pc(e){if(sc(e)){var t=function(e){var t;return"scale".concat((t=e)&&t[0].toUpperCase()+t.slice(1))}(e);return r[t]()}return Go()}function mc(e,t){var n=function(e,t){if(!uc(e,t))return;var n=e.scale[t]||e.scale;if(sc(n))return _(n)?n:pc(n);return}(e,t);return n?"string"===typeof n?pc(n):n:pc(function(e,t){var n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),n)return jn(n)?"time":"linear"}(e,t)||dc(e,t))}function vc(e,t){return fc(e,t)||dc(e,t)}var hc=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function gc(e){return!(!e||!e["@@__IMMUTABLE_ITERABLE__@@"])}function yc(e,t){return gc(e)?e.reduce(function(e,n,r){var o=n;return t&&t[r]&&(o=yc(n)),e[r]=o,e},function(e){return!(!e||!e["@@__IMMUTABLE_LIST__@@"])}(e)?[]:{}):e}function bc(e){return function(e){if(Array.isArray(e))return xc(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return xc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xc(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:"ascending";if(!t)return e;var r=t;"x"!==t&&"y"!==t||(r="_".concat(t));var o="ascending"===n?"asc":"desc";return Sn()(e,r,o)}function Ac(e,t){var n=1/Number.MAX_SAFE_INTEGER,r={x:vc(t,"x"),y:vc(t,"y")};if("log"!==r.x&&"log"!==r.y)return e;var o=function(e,t){return"log"!==r[t]||0!==e["_".concat(t)]};return e.map(function(e){return o(e,"x")&&o(e,"y")&&o(e,"y0")?e:function(e){var t=o(e,"x")?e._x:n,r=o(e,"y")?e._y:n,a=o(e,"y0")?e._y0:n;return Object.assign({},e,{_x:t,_y:r,_y0:a})}(e)})}function kc(e,t){var n,r=!!e.eventKey,o=_(n=e.eventKey)?n:null===n||void 0===n?function(){}:p()(n);return t.map(function(e,t){if(void 0!==e.eventKey)return e;if(r){var n=o(e,t);return void 0!==n?Object.assign({eventKey:n},e):e}return e})}function _c(e,t){var n=function(e,t){var n,r=e.tickValues,o=e.tickFormat;n=r&&(Array.isArray(r)||r[t])?r[t]||r:o&&Array.isArray(o)?o:[];return n.filter(function(e){return"string"===typeof e})}(e,t),r=function(e,t){if(!e.categories)return[];var n=function(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}(e,t),r=n&&n.filter(function(e){return"string"===typeof e});return r?(o=r,o.filter(function(e){return void 0!==e})):[];var o}(e,t),o=function(e,t){var n=Array.isArray(e.data)||gc(e.data);if(!n)return[];var r=void 0===e[t]?t:e[t],o=E(r),a=e.data.reduce(function(e,t){return e.push(wc(t)),e},[]),i=Cc(a,e.sortKey,e.sortOrder);return i.reduce(function(e,t){var n=wc(t);return e.push(o(n)),e},[]).filter(function(e){return"string"===typeof e}).reduce(function(e,t){return void 0!==t&&null!==t&&-1===e.indexOf(t)&&e.push(t),e},[])}(e,t),a=_n()([].concat(bc(n),bc(r),bc(o)));return 0===a.length?null:a.reduce(function(e,t,n){return e[t]=n+1,e},{})}function Ec(e,t,n){if(!(Array.isArray(e)||gc(e))||Oc(e)<1)return[];var r=["x","y","y0"];n=Array.isArray(n)?n:r;var o,a=n.reduce(function(e,n){var r;return e[n]=E(void 0!==t[r=n]?t[r]:r),e},{}),i=wn()(n,r)&&"_x"===t.x&&"_y"===t.y&&"_y0"===t.y0;!1===i&&(o={x:-1!==n.indexOf("x")?_c(t,"x"):void 0,y:-1!==n.indexOf("y")?_c(t,"y"):void 0,y0:-1!==n.indexOf("y0")?_c(t,"y"):void 0});var l=i?e:e.reduce(function(e,t,r){var i=wc(t),l={x:r,y:i},c=n.reduce(function(e,t){var n=a[t](i),r=void 0!==n?n:l[t];return void 0!==r&&("string"===typeof r&&o[t]?(e["".concat(t,"Name")]=r,e["_".concat(t)]=o[t][r]):e["_".concat(t)]=r),e},{}),s=Object.assign({},c,i);return Q()(s)||e.push(s),e},[]),c=Ac(Cc(l,t.sortKey,t.sortOrder),t);return kc(t,c)}function Pc(e){return e.data?Ec(e.data,e):Ec(function(e){var t=Sc(e,"x"),n=Sc(e,"y");return t.map(function(e,t){return{x:e,y:n[t]}})}(e),e)}var jc=n(6744),Nc=n.n(jc),Tc=function(e){return+e};function Mc(e){return e*e}function Ic(e){return e*(2-e)}function Lc(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function Rc(e){return e*e*e}function Dc(e){return--e*e*e+1}function Fc(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var zc=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),Bc=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),Hc=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),Wc=Math.PI,Uc=Wc/2;function Xc(e){return 1===+e?1:1-Math.cos(e*Uc)}function Vc(e){return Math.sin(e*Uc)}function Gc(e){return(1-Math.cos(Wc*e))/2}function qc(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function Kc(e){return qc(1-+e)}function $c(e){return 1-qc(e)}function Yc(e){return((e*=2)<=1?qc(1-e):2-qc(e-1))/2}function Qc(e){return 1-Math.sqrt(1-e*e)}function Jc(e){return Math.sqrt(1- --e*e)}function Zc(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var es=4/11,ts=6/11,ns=8/11,rs=3/4,os=9/11,as=10/11,is=15/16,ls=21/22,cs=63/64,ss=1/es/es;function us(e){return 1-fs(1-e)}function fs(e){return(e=+e)2&&void 0!==arguments[2]?arguments[2]:0;return function(r){return r=1?t:function(){return yo("function"===typeof e?e.apply(this,arguments):e,"function"===typeof t?t.apply(this,arguments):t)(n)}}},Cs=function(e,t){var n,r=function(e,t){return e!==t&&ws(e)&&ws(t)?"function"===typeof e||"function"===typeof t?Ss(e,t):"object"===typeof e&&An()(e)||"object"===typeof t&&An()(t)?Cs(e,t):yo(e,t):Os(e,t)},o=function(e){return Array.isArray(e)?Sn()(e,"key"):e},a={},i={},l=e,c=t;for(n in null!==l&&"object"===typeof l||(l={}),null!==c&&"object"===typeof c||(c={}),c)n in l?a[n]=r(o(l[n]),o(c[n])):i[n]=c[n];return function(e){for(n in a)i[n]=a[n](e);return i}},As=function(e,t){return e!==t&&ws(e)&&ws(t)?"function"===typeof e||"function"===typeof t?Ss(e,t):An()(e)||An()(t)?Cs(e,t):"string"===typeof e||"string"===typeof t?function(e,t){var n=function(e){return"string"===typeof e?e.replace(/,/g,""):e};return yo(n(e),n(t))}(e,t):yo(e,t):Os(e,t)};function ks(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return _s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1)return m({data:g.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),y.current&&v.unsubscribe(y.current),h.current.shift(),void x();m({data:g.current(b(t)),animationInfo:{progress:t,animating:t<1}})}};return u(p.data,p.animationInfo)},Ps=n(4777),js=n.n(Ps);function Ns(e,t){return(e.key||t).toString()}function Ts(e){return e.reduce(function(e,t,n){return e[Ns(t,n)]=t,e},{})}function Ms(e,t){var n=!1,r=Object.keys(e).reduce(function(e,r){return r in t||(n=!0,e[r]=!0),e},{});return n&&r}function Is(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function Ls(e,t){var n=!1,r=!1,o=function(e,t){if(!t||e.type!==t.type)return{};var o=function(e,t){var n=e&&Ts(e),r=t&&Ts(t);return{entering:n&&Ms(r,n),exiting:r&&Ms(n,r)}}(Is(e),Is(t))||{},a=o.entering,i=o.exiting;return n=n||!!i,r=r||!!a,{entering:a||!1,exiting:i||!1}},a=function(e,t){return e.map(function(n,r){return n&&n.props&&n.props.children&&t[r]?a(l.Children.toArray(e[r].props.children),l.Children.toArray(t[r].props.children)):o(n,t[r])})},i=a(l.Children.toArray(e),l.Children.toArray(t));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:i,nodesShouldEnter:!1}}function Rs(e,t,n){var r=t&&t.nodesWillExit,o=t&&t.nodesWillEnter,a=t&&t.nodesShouldEnter,i=t&&t.nodesShouldLoad,l=t&&t.nodesDoneLoad,c=t&&t.childrenTransitions||[],s={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},u=function(e,t,r){return i?function(e,t,n){var r=Object.assign({},e,{onEnd:n});if(r&&r.onLoad&&!r.onLoad.duration)return{animate:e,data:t};var o=e.onLoad&&e.onLoad.after?e.onLoad.after:js();return{animate:r,data:t.map(function(e,n){return Object.assign({},e,o(e,n,t))})}}(r,t,function(){n({nodesShouldLoad:!1,nodesDoneLoad:!0})}):function(e,t,n,r){var o=Object.assign({},e,{onEnd:r});if(o&&o.onLoad&&!o.onLoad.duration)return{animate:o,data:n};var a=o.onLoad&&o.onLoad.before?o.onLoad.before:js();return{animate:o,data:n.map(function(e,t){return Object.assign({},e,a(e,t,n))}),clipWidth:0}}(r,0,t,function(){n({nodesDoneLoad:!0})})},f=function(e,t,r,o){return function(e,t,n,r,o){var a=e&&e.onExit,i=Object.assign({},e,a),l=n;if(r){e.onEnd=o;var c=e.onExit&&e.onExit.before?e.onExit.before:js();l=n.map(function(e,t){var o=(e.key||t).toString();return r[o]?Object.assign({},e,c(e,t,n)):e})}return{animate:i,data:l}}(o,0,r,e,function(){n({nodesWillExit:!1})})},d=function(e,t,r,o){return a?function(e,t,n,r){var o=e&&e.onEnter,a=Object.assign({},e,o),i=t;if(n){a.onEnd=r;var l=a.onEnter&&a.onEnter.after?a.onEnter.after:js();i=t.map(function(e,r){var o=Ns(e,r);return n[o]?Object.assign({},e,l(e,r,t)):e})}return{animate:a,data:i}}(o,r,e,function(){n({nodesWillEnter:!1})}):function(e,t,n,r,o){var a=e,i=n;if(r){a=Object.assign({},e,{onEnd:o});var l=e.onEnter&&e.onEnter.before?e.onEnter.before:js();i=n.map(function(e,t){var o=(e.key||t).toString();return r[o]?Object.assign({},e,l(e,t,n)):e})}return{animate:a,data:i}}(o,0,r,e,function(){n({nodesShouldEnter:!0})})},p=function(e,t){var n=e.props.animate;if(!e.type)return{};var r=e.props&&e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;if(r){var o=n[t]&&n[t].duration;return void 0!==o?o:r[t]&&r[t].duration}return{}};return function(n,i){var m=Is(n)||[],h=v()({},e.animate,n.props.animate),g=n.props.polar&&n.type.defaultPolarTransitions||n.type.defaultTransitions;h.onExit=v()({},h.onExit,g&&g.onExit),h.onEnter=v()({},h.onEnter,g&&g.onEnter),h.onLoad=v()({},h.onLoad,g&&g.onLoad);var y=c[i]||c[0];if(!l){var b={duration:void 0!==s.load?s.load:p(n,"onLoad")};return u(0,m,Object.assign({},h,b))}if(r){var x=y&&y.exiting,w=void 0!==s.exit?s.exit:p(n,"onExit"),O=x?{duration:w}:{delay:w};return f(x,0,m,Object.assign({},h,O))}if(o){var S=y&&y.entering,C=void 0!==s.enter?s.enter:p(n,"onEnter"),A=void 0!==s.move?s.move:n.props.animate&&n.props.animate.duration,k={duration:a&&S?C:A};return d(S,0,m,Object.assign({},h,k))}return!t&&h&&h.onExit?function(e,t){var n=e.onEnter&&e.onEnter.after?e.onEnter.after:js();return{data:t.map(function(e,r){return Object.assign({},e,n(e,r,t))})}}(h,m):{animate:h,data:m}}}function Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return Object.keys(t).reduce(function(o,a){var i=n[a]||{},l=t[a]||{};if("parent"===a){var c=Zs(e,l,i,{eventKey:a,target:"parent"});o[a]=void 0!==c?Object.assign({},i,c):i}else{var s=_n()(Object.keys(l).concat(Object.keys(i)));o[a]=s.reduce(function(t,n){var o={eventKey:a,target:n,childName:r},c=Zs(e,l[n],i[n],o);return t[n]=void 0!==c?Object.assign({},i[n],c):i[n],Xs()(t,function(e){return!Q()(e)})},{})}return Xs()(o,function(e){return!Q()(e)})},{})}function Zs(e,t,n,r){var o=function(e,t){return"string"===typeof e[t]?"all"===e[t]||e[t]===r[t]:!!Array.isArray(e[t])&&e[t].map(function(e){return"".concat(e)}).includes(r[t])},a=Array.isArray(e)?e:[e];r.childName&&(a=e.filter(function(e){return o(e,"childName")}));var i=a.filter(function(e){return o(e,"target")});if(!Q()(i)){var l=i.filter(function(e){return o(e,"eventKey")});if(!Q()(l))return l.reduce(function(e,r){var o=(r&&_(r.mutation)?r.mutation:function(){})(Object.assign({},t,n));return Object.assign({},e,o)},{})}}function eu(e){var t=e.match(Ks);return t&&t[1]&&t[1].toLowerCase()}function tu(e){return function(e){if(Array.isArray(e))return nu(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return nu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nu(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=function(n){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ou(e,t)}(c,n);var r,o,a,i=au(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,e)).state={},t.getEventState=Qs.bind(iu(t)),t.getScopedEvents=Ys.bind(iu(t)),t.getEvents=function(e,n,r){return $s.call(iu(t),e,n,r,t.getScopedEvents)},t.externalMutations=t.getExternalMutations(t.props),t.calculatedState=t.getStateChanges(t.props),t.globalEvents={},t.prevGlobalEventKeys=[],t.boundGlobalEvents={},t.cacheValues(t.getCalculatedValues(e)),t}return r=c,o=[{key:"shouldComponentUpdate",value:function(e){var t=this.getExternalMutations(e),n=this.props.animating||this.props.animate,r=!Nc()(t,this.externalMutations);if(n||r)return this.cacheValues(this.getCalculatedValues(e)),this.externalMutations=t,this.applyExternalMutations(e,t),!0;var o=this.getStateChanges(e);return Nc()(this.calculatedState,o)?!Nc()(this.props,e)&&(this.cacheValues(this.getCalculatedValues(e)),!0):(this.cacheValues(this.getCalculatedValues(e)),!0)}},{key:"componentDidMount",value:function(){var e=this,t=Object.keys(this.globalEvents);t.forEach(function(t){return e.addGlobalListener(t)}),this.prevGlobalEventKeys=t}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.getStateChanges(e);this.calculatedState=n;var r=Object.keys(this.globalEvents);Nn(this.prevGlobalEventKeys,r).forEach(function(e){return t.removeGlobalListener(e)}),Nn(r,this.prevGlobalEventKeys).forEach(function(e){return t.addGlobalListener(e)}),this.prevGlobalEventKeys=r}},{key:"componentWillUnmount",value:function(){var e=this;this.prevGlobalEventKeys.forEach(function(t){return e.removeGlobalListener(t)})}},{key:"addGlobalListener",value:function(e){var t=this,n=function(n){var r=t.globalEvents[e];return r&&r(function(e){return Object.assign(e,{nativeEvent:e})}(n))};this.boundGlobalEvents[e]=n,window.addEventListener(eu(e),n)}},{key:"removeGlobalListener",value:function(e){window.removeEventListener(eu(e),this.boundGlobalEvents[e])}},{key:"getStateChanges",value:function(e){var n=this;if(!this.hasEvents)return{};var r=function(e,t){var r=v()({},n.getEventState(e,t),n.getSharedEventState(e,t));return Q()(r)?void 0:r};return(t.components||su).map(function(t){if(e.standalone||"parent"!==t.name)return void 0!==t.index?r(t.index,t.name):n.dataKeys.map(function(e){return r(e,t.name)}).filter(Boolean)}).filter(Boolean)}},{key:"applyExternalMutations",value:function(e,t){if(!Q()(t)){var n=e.externalEventMutations.reduce(function(e,t){return _(t.callback)?e.concat(t.callback):e},[]),r=n.length?function(){n.forEach(function(e){return e()})}:void 0;this.setState(t,r)}}},{key:"getCalculatedValues",value:function(t){var n=t.sharedEvents,r=function(e,t){var n=Array.isArray(t)&&t.reduce(function(t,n){var r=e[n],o=r&&r.type&&r.type.defaultEvents,a=_(o)?o(r.props):o;return Array.isArray(a)?t.concat.apply(t,Gs(a)):t},[]);return n&&n.length?n:void 0}(t,e.expectedComponents),o=n&&_(n.getEventState)?n.getEventState:function(){},a=this.getBaseProps(t,o);return{componentEvents:r,getSharedEventState:o,baseProps:a,dataKeys:Object.keys(a).filter(function(e){return"parent"!==e}),hasEvents:t.events||t.sharedEvents||r,events:this.getAllEvents(t)}}},{key:"getExternalMutations",value:function(e){var t=e.sharedEvents,n=e.externalEventMutations;return Q()(n)||t?void 0:Js(n,this.baseProps,this.state)}},{key:"cacheValues",value:function(e){var t=this;Object.keys(e).forEach(function(n){t[n]=e[n]})}},{key:"getBaseProps",value:function(t,n){var r=(n||this.getSharedEventState.bind(this))("parent","parent"),o=this.getEventState("parent","parent"),a=v()({},o,r),i=a.parentControlledProps,l=i?f()(a,i):{},c=v()({},l,t);return"function"===typeof e.getBaseProps?e.getBaseProps(c):{}}},{key:"getAllEvents",value:function(e){var t;return Array.isArray(this.componentEvents)?Array.isArray(e.events)?(t=this.componentEvents).concat.apply(t,tu(e.events)):this.componentEvents:e.events}},{key:"getComponentProps",value:function(t,n,r){var o=this.props.name||e.role,a=this.dataKeys&&this.dataKeys[r]||r,i="".concat(o,"-").concat(n,"-").concat(a),l=this.baseProps[a]&&this.baseProps[a][n]||this.baseProps[a];if(l||this.hasEvents){var c=t&&"object"===typeof t&&"props"in t?t.props:void 0;if(this.hasEvents){var s=this.getEvents(this.props,n,a),u=v()({index:r,key:i},this.getEventState(a,n),this.getSharedEventState(a,n),c,l,{id:i}),f=v()({},function(e,t,n){return e?Object.keys(e).reduce(function(r,o){return r[o]=function(r){return e[o](r,n,t,o)},r},{}):{}}(s,a,u),u.events);return Object.assign({},u,{events:f})}return v()({index:r,key:i},c,l,{id:i})}}},{key:"renderContainer",value:function(e,t){var n,r=e.type&&"container"===e.type.role?this.getComponentProps(e,"parent","parent"):{};return r.events&&(this.globalEvents=(n=r.events,Xs()(n,function(e,t){return Ks.test(t)})),r.events=function(e){return bn()(e,function(e,t){return Ks.test(t)})}(r.events)),l.cloneElement(e,r,t)}},{key:"animateComponent",value:function(e,t){var n,r="object"===typeof e.animate&&(null===(n=e.animate)||void 0===n?void 0:n.animationWhitelist)||t,o=this.constructor;return l.createElement(Ws,{animate:e.animate,animationWhitelist:r},l.createElement(o,e))}},{key:"renderContinuousData",value:function(e){var t=this,n=e.dataComponent,r=e.labelComponent,o=e.groupComponent,a=this.dataKeys.filter(function(e){return"all"!==e}),i=a.reduce(function(e,n){var o=e,a=t.getComponentProps(r,"labels",n);return a&&void 0!==a.text&&null!==a.text&&(o=o.concat(l.cloneElement(r,a))),o},[]),c=this.getComponentProps(n,"data","all"),s=[l.cloneElement(n,c)].concat(tu(i));return this.renderContainer(o,s)}},{key:"renderData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cu,r=e.dataComponent,o=e.labelComponent,a=e.groupComponent,i=this.dataKeys.reduce(function(e,o,a){var i=t.getComponentProps(r,"data",a);return n(i.datum)&&e.push(l.cloneElement(r,i)),e},[]),c=this.dataKeys.map(function(e,n){var r=t.getComponentProps(o,"labels",n);if(void 0!==r.text&&null!==r.text)return l.cloneElement(o,r)}).filter(Boolean),s=[].concat(tu(i),tu(c));return this.renderContainer(a,s)}}],o&&ru(r.prototype,o),a&&ru(r,a),Object.defineProperty(r,"prototype",{writable:!1}),c}(e);return n}Array.prototype.slice;function fu(e){return function(){return e}}function du(e,t){return te?1:t>=e?0:NaN}function pu(e){return e}var mu,vu,hu,gu,yu,bu,xu,wu,Ou,Su,Cu,Au,ku,_u,Eu=Math.abs,Pu=Math.atan2,ju=Math.cos,Nu=Math.max,Tu=Math.min,Mu=Math.sin,Iu=Math.sqrt,Lu=1e-12,Ru=Math.PI,Du=Ru/2,Fu=2*Ru;function zu(e){return e>=1?Du:e<=-1?-Du:Math.asin(e)}function Bu(){var e=pu,t=du,n=null,r=fu(0),o=fu(Fu),a=fu(0);function i(i){var l,c,s,u,f,d,p=(d=i,i="object"===typeof d&&"length"in d?d:Array.from(d)).length,m=0,v=new Array(p),h=new Array(p),g=+r.apply(this,arguments),y=Math.min(Fu,Math.max(-Fu,o.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/p,a.apply(this,arguments)),x=b*(y<0?-1:1);for(l=0;l0&&(m+=f);for(null!=t?v.sort(function(e,n){return t(h[e],h[n])}):null!=n&&v.sort(function(e,t){return n(i[e],i[t])}),l=0,s=m?(y-p*x)/m:0;l0?f*s:0)+x,h[c]={data:i[c],index:l,value:f,startAngle:g,endAngle:u,padAngle:b};return h}return i.value=function(t){return arguments.length?(e="function"===typeof t?t:fu(+t),i):e},i.sortValues=function(e){return arguments.length?(t=e,n=null,i):t},i.sort=function(e){return arguments.length?(n=e,t=null,i):n},i.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:fu(+e),i):r},i.endAngle=function(e){return arguments.length?(o="function"===typeof e?e:fu(+e),i):o},i.padAngle=function(e){return arguments.length?(a="function"===typeof e?e:fu(+e),i):a},i}function Hu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Wu=Math.PI,Uu=2*Wu,Xu=1e-6,Vu=Uu-Xu;function Gu(e){this._+=e[0];for(var t=1,n=e.length;t=0))throw new Error("invalid digits: ".concat(e));if(t>15)return Gu;var n=Math.pow(10,t);return function(e){this._+=e[0];for(var t=1,r=e.length;tXu)if(Math.abs(u*l-c*s)>Xu&&o){var d=n-a,p=r-i,m=l*l+c*c,v=d*d+p*p,h=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((Wu-Math.acos((m+f-v)/(2*h*g)))/2),b=y/g,x=y/h;Math.abs(b-1)>Xu&&this._append(wu||(wu=Hu(["L",",",""])),e+b*s,t+b*u),this._append(Ou||(Ou=Hu(["A",",",",0,0,",",",",",""])),o,o,+(u*d>s*p),this._x1=e+x*l,this._y1=t+x*c)}else this._append(xu||(xu=Hu(["L",",",""])),this._x1=e,this._y1=t);else;}},{key:"arc",value:function(e,t,n,r,o,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw new Error("negative radius: ".concat(n));var i=n*Math.cos(r),l=n*Math.sin(r),c=e+i,s=t+l,u=1^a,f=a?r-o:o-r;null===this._x1?this._append(Su||(Su=Hu(["M",",",""])),c,s):(Math.abs(this._x1-c)>Xu||Math.abs(this._y1-s)>Xu)&&this._append(Cu||(Cu=Hu(["L",",",""])),c,s),n&&(f<0&&(f=f%Uu+Uu),f>Vu?this._append(Au||(Au=Hu(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,u,e-i,t-l,n,n,u,this._x1=c,this._y1=s):f>Xu&&this._append(ku||(ku=Hu(["A",",",",0,",",",",",",",""])),n,n,+(f>=Wu),u,this._x1=e+n*Math.cos(o),this._y1=t+n*Math.sin(o)))}},{key:"rect",value:function(e,t,n,r){this._append(_u||(_u=Hu(["M",",","h","v","h","Z"])),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+r,-n)}},{key:"toString",value:function(){return this._}}])}();function Ku(e){return e.innerRadius}function $u(e){return e.outerRadius}function Yu(e){return e.startAngle}function Qu(e){return e.endAngle}function Ju(e){return e&&e.padAngle}function Zu(e,t,n,r,o,a,i){var l=e-n,c=t-r,s=(i?a:-a)/Iu(l*l+c*c),u=s*c,f=-s*l,d=e+u,p=t+f,m=n+u,v=r+f,h=(d+m)/2,g=(p+v)/2,y=m-d,b=v-p,x=y*y+b*b,w=o-a,O=d*v-m*p,S=(b<0?-1:1)*Iu(Nu(0,w*w*x-O*O)),C=(O*b-y*S)/x,A=(-O*y-b*S)/x,k=(O*b+y*S)/x,_=(-O*y+b*S)/x,E=C-h,P=A-g,j=k-h,N=_-g;return E*E+P*P>j*j+N*N&&(C=k,A=_),{cx:C,cy:A,x01:-u,y01:-f,x11:C*(o/w-1),y11:A*(o/w-1)}}function ef(){var e=Ku,t=$u,n=fu(0),r=null,o=Yu,a=Qu,i=Ju,l=null,c=function(e){var t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{var r=Math.floor(n);if(!(r>=0))throw new RangeError("invalid digits: ".concat(n));t=r}return e},function(){return new qu(t)}}(s);function s(){var s,u,f,d=+e.apply(this,arguments),p=+t.apply(this,arguments),m=o.apply(this,arguments)-Du,v=a.apply(this,arguments)-Du,h=Eu(v-m),g=v>m;if(l||(l=s=c()),pLu)if(h>Fu-Lu)l.moveTo(p*ju(m),p*Mu(m)),l.arc(0,0,p,m,v,!g),d>Lu&&(l.moveTo(d*ju(v),d*Mu(v)),l.arc(0,0,d,v,m,g));else{var y,b,x=m,w=v,O=m,S=v,C=h,A=h,k=i.apply(this,arguments)/2,_=k>Lu&&(r?+r.apply(this,arguments):Iu(d*d+p*p)),E=Tu(Eu(p-d)/2,+n.apply(this,arguments)),P=E,j=E;if(_>Lu){var N=zu(_/d*Mu(k)),T=zu(_/p*Mu(k));(C-=2*N)>Lu?(O+=N*=g?1:-1,S-=N):(C=0,O=S=(m+v)/2),(A-=2*T)>Lu?(x+=T*=g?1:-1,w-=T):(A=0,x=w=(m+v)/2)}var M=p*ju(x),I=p*Mu(x),L=d*ju(S),R=d*Mu(S);if(E>Lu){var D,F=p*ju(w),z=p*Mu(w),B=d*ju(O),H=d*Mu(O);if(h1?0:f<-1?Ru:Math.acos(f))/2),q=Iu(D[0]*D[0]+D[1]*D[1]);P=Tu(E,(d-q)/(G-1)),j=Tu(E,(p-q)/(G+1))}else P=j=0}A>Lu?j>Lu?(y=Zu(B,H,M,I,p,j,g),b=Zu(F,z,L,R,p,j,g),l.moveTo(y.cx+y.x01,y.cy+y.y01),jLu&&C>Lu?P>Lu?(y=Zu(L,R,F,z,d,-P,g),b=Zu(M,I,B,H,d,-P,g),l.lineTo(y.cx+y.x01,y.cy+y.y01),P180&&e<360?e+90:e-90:e>90&&e<270?e-180:e}(_,y),P=function(e,t){return"perpendicular"===t?e>90&&e<270?"bottom":"top":"parallel"===t?e>=0&&e<=180?"right":"left":e<45||e>315?"top":e>=45&&e<135?"right":e>=135&&e<225?"bottom":"left"}(_,y),j=O.textAnchor||function(e){return"top"===e||"bottom"===e?"middle":"right"===e?"start":"end"}(P),N=O.verticalAnchor||function(e){return"left"===e||"right"===e?"middle":"bottom"===e?"start":"end"}(P),T={width:d,height:p,index:r,datum:o,data:a,slice:i,orientation:P,text:e,style:O,x:Math.round(k[0])+f.x,y:Math.round(k[1])+f.y,textAnchor:j,verticalAnchor:N,angle:E,calculatedLabelRadius:C};if(!b(l))return T;var M=c&&c.tooltip||{};return v()({},T,h(M,["style"]))},af=function(e,t){return e*function(e){return Math.cos(e-O(90))}(t)},lf=function(e,t){return e*function(e){return Math.sin(e-O(90))}(t)},cf=function(e){return e.reduce(function(e,t){return e+t},0)/e.length},sf=function(e,t){var n=P(e,t,"pie"),r=tf(n),o=r.slices,a=r.style,i=r.data,l=r.origin,c=r.defaultRadius,s=r.labels,u=r.events,f=r.sharedEvents,d=r.height,p=r.width,m=r.standalone,h=r.name,g=r.innerRadius,y=r.cornerRadius,b=r.padAngle,w=r.disableInlineStyles,O=r.labelIndicator,C=n.radius||c,A={parent:{standalone:m,height:d,width:p,slices:o,name:h,style:a.parent}};return o.reduce(function(e,t,o){var a=v()({},i[o],{startAngle:S(t.startAngle),endAngle:S(t.endAngle),padAngle:S(t.padAngle)}),c=k(a.eventKey)?o:a.eventKey,d={index:o,slice:t,datum:a,data:i,origin:l,innerRadius:g,radius:C,cornerRadius:y,padAngle:b,style:w?{}:nf(o,r),disableInlineStyles:w};e[c]={data:d};var p=rf(n,a,o);if(void 0!==p&&null!==p||s&&(u||f)){var m=x(p,d);if(e[c].labels=of(m,Object.assign({},n,d),r),O){var h=e[c].labels;h.calculatedLabelRadius>C&&(e[c].labelIndicators=function(e,t,n){var r=e.innerRadius,o=e.radius,a=e.slice,i=a.startAngle,l=a.endAngle,c=e.labelIndicatorInnerOffset,s=e.labelIndicatorOuterOffset,u=e.index,f=t.height,d=t.width,p=n.calculatedLabelRadius,m=cf([r,o]),h=cf([l,i]),g=d/2,y=f/2,b=m+c,x=p-s,w={x1:g+af(b,h),y1:y+lf(b,h),x2:g+af(x,h),y2:y+lf(x,h),index:u};return v()({},w)}(Object.assign({},n,d),r,h))}}return e},A)},uf=["desc","id","tabIndex","origin"];function ff(){return ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vf=(0,l.forwardRef)(function(e,t){var n,r=e.desc,o=e.id,a=e.tabIndex,i=(e.origin,mf(e,uf)),c=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:Pf,r=e.dataComponent,o=e.labelComponent,a=e.groupComponent,i=e.labelIndicator,c=e.labelPosition;if(!a)throw new Error("VictoryPie expects a groupComponent prop");var s=i&&"centroid"===c,u=[];if(r){var f=this.dataKeys.reduce(function(e,o,a){var i=t.getComponentProps(r,"data",a);return n(i.datum)&&e.push(l.cloneElement(r,i)),e},[]);u.push.apply(u,Of(f))}if(o){var d=this.dataKeys.map(function(e,n){var r=t.getComponentProps(o,"labels",n);if(void 0!==r.text&&null!==r.text)return l.cloneElement(o,r)}).filter(function(e){return void 0!==e});u.push.apply(u,Of(d))}if(s&&i){var p=l.createElement(H,null);"object"===typeof i&&(p=i);var m=this.dataKeys.map(function(e,n){var r=t.getComponentProps(p,"labelIndicators",n);return l.cloneElement(p,r)});u.push.apply(u,Of(m))}return this.renderContainer(a,u)}},{key:"render",value:function(){var e=Nf.animationWhitelist,t=Nf.role,n=P(this.props,Ef,t);if(this.shouldAnimate())return this.animateComponent(n,e);var r=this.renderComponents(n);return function(e,t){return l.cloneElement(e,$(t))}(n.standalone?this.renderContainer(n.containerComponent,r):r,n)}}],n&&Cf(t.prototype,n),r&&Cf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.Component);jf.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],jf.displayName="VictoryPie",jf.role="pie",jf.defaultTransitions={onExit:{duration:500,before:function(){return{_y:0,label:" "}}},onEnter:{duration:500,before:function(){return{_y:0,label:" "}},after:function(e){return{y_:e._y,label:e.label}}}},jf.defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:l.createElement(wf,null),labelComponent:l.createElement(pt,null),containerComponent:l.createElement(Jt,null),groupComponent:l.createElement("g",null),sortOrder:"ascending",theme:gn.grayscale},jf.getBaseProps=function(e){return sf(e,Ef)},jf.getData=Pc,jf.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];var Nf=uu(jf),Tf=(n(2248),{name:"--pf-v5-chart-global--FontFamily",value:'"RedHatText", helvetica, arial, sans-serif',var:'var(--pf-v5-chart-global--FontFamily, "RedHatText", helvetica, arial, sans-serif)'}),Mf={name:"--pf-v5-chart-global--letter-spacing",value:"normal",var:"var(--pf-v5-chart-global--letter-spacing, normal)"},If={name:"--pf-v5-chart-global--FontSize--sm",value:14,var:"var(--pf-v5-chart-global--FontSize--sm, 14)"},Lf={name:"--pf-v5-chart-global--label--Padding",value:10,var:"var(--pf-v5-chart-global--label--Padding, 10)"},Rf={name:"--pf-v5-chart-global--label--stroke",value:"transparent",var:"var(--pf-v5-chart-global--label--stroke, transparent)"},Df={name:"--pf-v5-chart-global--label--text-anchor",value:"middle",var:"var(--pf-v5-chart-global--label--text-anchor, middle)"},Ff={name:"--pf-v5-chart-global--label--Fill",value:"#151515",var:"var(--pf-v5-chart-global--label--Fill, #151515)"},zf={name:"--pf-v5-chart-global--layout--Padding",value:50,var:"var(--pf-v5-chart-global--layout--Padding, 50)"},Bf={name:"--pf-v5-chart-global--layout--Height",value:300,var:"var(--pf-v5-chart-global--layout--Height, 300)"},Hf={name:"--pf-v5-chart-global--layout--Width",value:450,var:"var(--pf-v5-chart-global--layout--Width, 450)"},Wf={name:"--pf-v5-chart-global--stroke-line-cap",value:"round",var:"var(--pf-v5-chart-global--stroke-line-cap, round)"},Uf={name:"--pf-v5-chart-global--stroke-line-join",value:"round",var:"var(--pf-v5-chart-global--stroke-line-join, round)"},Xf={name:"--pf-v5-chart-area--data--Fill",value:"#151515",var:"var(--pf-v5-chart-area--data--Fill, #151515)"},Vf={name:"--pf-v5-chart-area--Opacity",value:.3,var:"var(--pf-v5-chart-area--Opacity, 0.3)"},Gf={name:"--pf-v5-chart-area--stroke--Width",value:2,var:"var(--pf-v5-chart-area--stroke--Width, 2)"},qf={name:"--pf-v5-chart-axis--axis--stroke--Width",value:1,var:"var(--pf-v5-chart-axis--axis--stroke--Width, 1)"},Kf={name:"--pf-v5-chart-axis--axis--stroke--Color",value:"#d2d2d2",var:"var(--pf-v5-chart-axis--axis--stroke--Color, #d2d2d2)"},$f={name:"--pf-v5-chart-axis--axis--Fill",value:"transparent",var:"var(--pf-v5-chart-axis--axis--Fill, transparent)"},Yf={name:"--pf-v5-chart-axis--axis-label--Padding",value:40,var:"var(--pf-v5-chart-axis--axis-label--Padding, 40)"},Qf={name:"--pf-v5-chart-axis--axis-label--stroke--Color",value:"transparent",var:"var(--pf-v5-chart-axis--axis-label--stroke--Color, transparent)"},Jf={name:"--pf-v5-chart-axis--grid--Fill",value:"none",var:"var(--pf-v5-chart-axis--grid--Fill, none)"},Zf={name:"--pf-v5-chart-axis--grid--PointerEvents",value:"painted",var:"var(--pf-v5-chart-axis--grid--PointerEvents, painted)"},ed={name:"--pf-v5-chart-axis--tick--Fill",value:"transparent",var:"var(--pf-v5-chart-axis--tick--Fill, transparent)"},td={name:"--pf-v5-chart-axis--tick--Size",value:5,var:"var(--pf-v5-chart-axis--tick--Size, 5)"},nd={name:"--pf-v5-chart-axis--tick--stroke--Color",value:"#d2d2d2",var:"var(--pf-v5-chart-axis--tick--stroke--Color, #d2d2d2)"},rd={name:"--pf-v5-chart-axis--tick--Width",value:1,var:"var(--pf-v5-chart-axis--tick--Width, 1)"},od={name:"--pf-v5-chart-axis--tick-label--Fill",value:"#4f5255",var:"var(--pf-v5-chart-axis--tick-label--Fill, #4f5255)"},ad={name:"--pf-v5-chart-bar--Width",value:10,var:"var(--pf-v5-chart-bar--Width, 10)"},id={name:"--pf-v5-chart-bar--data--stroke",value:"none",var:"var(--pf-v5-chart-bar--data--stroke, none)"},ld={name:"--pf-v5-chart-bar--data--Fill",value:"#151515",var:"var(--pf-v5-chart-bar--data--Fill, #151515)"},cd={name:"--pf-v5-chart-bar--data--Padding",value:8,var:"var(--pf-v5-chart-bar--data--Padding, 8)"},sd={name:"--pf-v5-chart-bar--data-stroke--Width",value:0,var:"var(--pf-v5-chart-bar--data-stroke--Width, 0)"},ud={name:"--pf-v5-chart-boxplot--max--Padding",value:8,var:"var(--pf-v5-chart-boxplot--max--Padding, 8)"},fd={name:"--pf-v5-chart-boxplot--max--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-boxplot--max--stroke--Color, #151515)"},dd={name:"--pf-v5-chart-boxplot--max--stroke--Width",value:1,var:"var(--pf-v5-chart-boxplot--max--stroke--Width, 1)"},pd={name:"--pf-v5-chart-boxplot--median--Padding",value:8,var:"var(--pf-v5-chart-boxplot--median--Padding, 8)"},md={name:"--pf-v5-chart-boxplot--median--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-boxplot--median--stroke--Color, #151515)"},vd={name:"--pf-v5-chart-boxplot--median--stroke--Width",value:1,var:"var(--pf-v5-chart-boxplot--median--stroke--Width, 1)"},hd={name:"--pf-v5-chart-boxplot--min--Padding",value:8,var:"var(--pf-v5-chart-boxplot--min--Padding, 8)"},gd={name:"--pf-v5-chart-boxplot--min--stroke--Width",value:1,var:"var(--pf-v5-chart-boxplot--min--stroke--Width, 1)"},yd={name:"--pf-v5-chart-boxplot--min--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-boxplot--min--stroke--Color, #151515)"},bd={name:"--pf-v5-chart-boxplot--lower-quartile--Padding",value:8,var:"var(--pf-v5-chart-boxplot--lower-quartile--Padding, 8)"},xd={name:"--pf-v5-chart-boxplot--lower-quartile--Fill",value:"#8a8d90",var:"var(--pf-v5-chart-boxplot--lower-quartile--Fill, #8a8d90)"},wd={name:"--pf-v5-chart-boxplot--upper-quartile--Padding",value:8,var:"var(--pf-v5-chart-boxplot--upper-quartile--Padding, 8)"},Od={name:"--pf-v5-chart-boxplot--upper-quartile--Fill",value:"#8a8d90",var:"var(--pf-v5-chart-boxplot--upper-quartile--Fill, #8a8d90)"},Sd={name:"--pf-v5-chart-boxplot--box--Width",value:20,var:"var(--pf-v5-chart-boxplot--box--Width, 20)"},Cd={name:"--pf-v5-chart-candelstick--data--stroke--Width",value:1,var:"var(--pf-v5-chart-candelstick--data--stroke--Width, 1)"},Ad={name:"--pf-v5-chart-candelstick--data--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-candelstick--data--stroke--Color, #151515)"},kd={name:"--pf-v5-chart-candelstick--candle--positive--Color",value:"#fff",var:"var(--pf-v5-chart-candelstick--candle--positive--Color, #fff)"},_d={name:"--pf-v5-chart-candelstick--candle--negative--Color",value:"#151515",var:"var(--pf-v5-chart-candelstick--candle--negative--Color, #151515)"},Ed={name:"--pf-v5-chart-errorbar--BorderWidth",value:8,var:"var(--pf-v5-chart-errorbar--BorderWidth, 8)"},Pd={name:"--pf-v5-chart-errorbar--data--Fill",value:"transparent",var:"var(--pf-v5-chart-errorbar--data--Fill, transparent)"},jd={name:"--pf-v5-chart-errorbar--data--Opacity",value:1,var:"var(--pf-v5-chart-errorbar--data--Opacity, 1)"},Nd={name:"--pf-v5-chart-errorbar--data-stroke--Width",value:2,var:"var(--pf-v5-chart-errorbar--data-stroke--Width, 2)"},Td={name:"--pf-v5-chart-errorbar--data-stroke--Color",value:"#151515",var:"var(--pf-v5-chart-errorbar--data-stroke--Color, #151515)"},Md={name:"--pf-v5-chart-legend--gutter--Width",value:20,var:"var(--pf-v5-chart-legend--gutter--Width, 20)"},Id={name:"--pf-v5-chart-legend--orientation",value:"horizontal",var:"var(--pf-v5-chart-legend--orientation, horizontal)"},Ld={name:"--pf-v5-chart-legend--title--orientation",value:"top",var:"var(--pf-v5-chart-legend--title--orientation, top)"},Rd={name:"--pf-v5-chart-legend--data--type",value:"square",var:"var(--pf-v5-chart-legend--data--type, square)"},Dd={name:"--pf-v5-chart-legend--title--Padding",value:2,var:"var(--pf-v5-chart-legend--title--Padding, 2)"},Fd={name:"--pf-v5-chart-line--data--Fill",value:"transparent",var:"var(--pf-v5-chart-line--data--Fill, transparent)"},zd={name:"--pf-v5-chart-line--data--Opacity",value:1,var:"var(--pf-v5-chart-line--data--Opacity, 1)"},Bd={name:"--pf-v5-chart-line--data--stroke--Width",value:2,var:"var(--pf-v5-chart-line--data--stroke--Width, 2)"},Hd={name:"--pf-v5-chart-line--data--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-line--data--stroke--Color, #151515)"},Wd={name:"--pf-v5-chart-pie--Padding",value:20,var:"var(--pf-v5-chart-pie--Padding, 20)"},Ud={name:"--pf-v5-chart-pie--data--Padding",value:8,var:"var(--pf-v5-chart-pie--data--Padding, 8)"},Xd={name:"--pf-v5-chart-pie--data--stroke--Width",value:1,var:"var(--pf-v5-chart-pie--data--stroke--Width, 1)"},Vd={name:"--pf-v5-chart-pie--data--stroke--Color",value:"transparent",var:"var(--pf-v5-chart-pie--data--stroke--Color, transparent)"},Gd={name:"--pf-v5-chart-pie--labels--Padding",value:8,var:"var(--pf-v5-chart-pie--labels--Padding, 8)"},qd={name:"--pf-v5-chart-pie--Height",value:230,var:"var(--pf-v5-chart-pie--Height, 230)"},Kd={name:"--pf-v5-chart-pie--Width",value:230,var:"var(--pf-v5-chart-pie--Width, 230)"},$d={name:"--pf-v5-chart-scatter--data--stroke--Color",value:"transparent",var:"var(--pf-v5-chart-scatter--data--stroke--Color, transparent)"},Yd={name:"--pf-v5-chart-scatter--data--stroke--Width",value:0,var:"var(--pf-v5-chart-scatter--data--stroke--Width, 0)"},Qd={name:"--pf-v5-chart-scatter--data--Opacity",value:1,var:"var(--pf-v5-chart-scatter--data--Opacity, 1)"},Jd={name:"--pf-v5-chart-scatter--data--Fill",value:"#151515",var:"var(--pf-v5-chart-scatter--data--Fill, #151515)"},Zd={name:"--pf-v5-chart-stack--data--stroke--Width",value:1,var:"var(--pf-v5-chart-stack--data--stroke--Width, 1)"},ep={name:"--pf-v5-chart-tooltip--corner-radius",value:0,var:"var(--pf-v5-chart-tooltip--corner-radius, 0)"},tp={name:"--pf-v5-chart-tooltip--pointer-length",value:10,var:"var(--pf-v5-chart-tooltip--pointer-length, 10)"},np={name:"--pf-v5-chart-tooltip--Fill",value:"#f0f0f0",var:"var(--pf-v5-chart-tooltip--Fill, #f0f0f0)"},rp={name:"--pf-v5-chart-tooltip--flyoutStyle--corner-radius",value:0,var:"var(--pf-v5-chart-tooltip--flyoutStyle--corner-radius, 0)"},op={name:"--pf-v5-chart-tooltip--flyoutStyle--stroke--Width",value:0,var:"var(--pf-v5-chart-tooltip--flyoutStyle--stroke--Width, 0)"},ap={name:"--pf-v5-chart-tooltip--flyoutStyle--PointerEvents",value:"none",var:"var(--pf-v5-chart-tooltip--flyoutStyle--PointerEvents, none)"},ip={name:"--pf-v5-chart-tooltip--flyoutStyle--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-tooltip--flyoutStyle--stroke--Color, #151515)"},lp={name:"--pf-v5-chart-tooltip--flyoutStyle--Fill",value:"#151515",var:"var(--pf-v5-chart-tooltip--flyoutStyle--Fill, #151515)"},cp={name:"--pf-v5-chart-tooltip--pointer--Width",value:20,var:"var(--pf-v5-chart-tooltip--pointer--Width, 20)"},sp={name:"--pf-v5-chart-tooltip--Padding",value:8,var:"var(--pf-v5-chart-tooltip--Padding, 8)"},up={name:"--pf-v5-chart-tooltip--PointerEvents",value:"none",var:"var(--pf-v5-chart-tooltip--PointerEvents, none)"},fp={name:"--pf-v5-chart-voronoi--data--Fill",value:"transparent",var:"var(--pf-v5-chart-voronoi--data--Fill, transparent)"},dp={name:"--pf-v5-chart-voronoi--data--stroke--Color",value:"transparent",var:"var(--pf-v5-chart-voronoi--data--stroke--Color, transparent)"},pp={name:"--pf-v5-chart-voronoi--data--stroke--Width",value:0,var:"var(--pf-v5-chart-voronoi--data--stroke--Width, 0)"},mp={name:"--pf-v5-chart-voronoi--labels--Fill",value:"#f0f0f0",var:"var(--pf-v5-chart-voronoi--labels--Fill, #f0f0f0)"},vp={name:"--pf-v5-chart-voronoi--labels--Padding",value:8,var:"var(--pf-v5-chart-voronoi--labels--Padding, 8)"},hp={name:"--pf-v5-chart-voronoi--labels--PointerEvents",value:"none",var:"var(--pf-v5-chart-voronoi--labels--PointerEvents, none)"},gp={name:"--pf-v5-chart-voronoi--flyout--stroke--Width",value:1,var:"var(--pf-v5-chart-voronoi--flyout--stroke--Width, 1)"},yp={name:"--pf-v5-chart-voronoi--flyout--PointerEvents",value:"none",var:"var(--pf-v5-chart-voronoi--flyout--PointerEvents, none)"},bp={name:"--pf-v5-chart-voronoi--flyout--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-voronoi--flyout--stroke--Color, #151515)"},xp={name:"--pf-v5-chart-voronoi--flyout--stroke--Fill",value:"#151515",var:"var(--pf-v5-chart-voronoi--flyout--stroke--Fill, #151515)"},wp=Tf.value.replace(/ /g,""),Op=Mf.value,Sp=If.value,Cp={fontFamily:wp,fontSize:Sp,letterSpacing:Op,padding:Lf.value,stroke:Rf.var,fill:Ff.var},Ap=Object.assign(Object.assign({},Cp),{textAnchor:Df.value}),kp={padding:zf.value,height:Bf.value,width:Hf.value},_p=Wf.value,Ep=Uf.value,Pp={area:Object.assign(Object.assign({},kp),{style:{data:{fill:Xf.var,fillOpacity:Vf.value,strokeWidth:Gf.value},labels:Ap}}),axis:Object.assign(Object.assign({},kp),{style:{axis:{fill:$f.var,strokeWidth:qf.value,stroke:Kf.var,strokeLinecap:_p,strokeLinejoin:Ep},axisLabel:Object.assign(Object.assign({},Ap),{padding:Yf.value,stroke:Qf.var}),grid:{fill:Jf.var,stroke:"none",pointerEvents:Zf.value,strokeLinecap:_p,strokeLinejoin:Ep},ticks:{fill:ed.var,size:td.value,stroke:nd.var,strokeLinecap:_p,strokeLinejoin:Ep,strokeWidth:rd.value},tickLabels:Object.assign(Object.assign({},Cp),{fill:od.var})}}),bar:Object.assign(Object.assign({},kp),{barWidth:ad.value,style:{data:{fill:ld.var,padding:cd.value,stroke:id.var,strokeWidth:sd.value},labels:Cp}}),boxplot:Object.assign(Object.assign({},kp),{style:{max:{padding:ud.value,stroke:fd.var,strokeWidth:dd.value},maxLabels:Cp,median:{padding:pd.value,stroke:md.var,strokeWidth:vd.value},medianLabels:Cp,min:{padding:hd.value,stroke:yd.var,strokeWidth:gd.value},minLabels:Cp,q1:{fill:xd.var,padding:bd.value},q1Labels:Cp,q3:{fill:Od.var,padding:wd.value},q3Labels:Cp},boxWidth:Sd.value}),candlestick:Object.assign(Object.assign({},kp),{candleColors:{positive:kd.var,negative:_d.var},style:{data:{stroke:Ad.var,strokeWidth:Cd.value},labels:Ap}}),chart:Object.assign({},kp),errorbar:Object.assign(Object.assign({},kp),{borderWidth:Ed.value,style:{data:{fill:Pd.var,opacity:jd.value,stroke:Td.var,strokeWidth:Nd.value},labels:Ap}}),group:Object.assign({},kp),legend:{gutter:Md.value,orientation:Id.value,titleOrientation:Ld.value,style:{data:{type:Rd.value},labels:Cp,title:Object.assign(Object.assign({},Cp),{fontSize:Sp,padding:Dd.value})}},line:Object.assign(Object.assign({},kp),{style:{data:{fill:Fd.var,opacity:zd.value,stroke:Hd.var,strokeWidth:Bd.value},labels:Ap}}),pie:{padding:Wd.value,style:{data:{padding:Ud.value,stroke:Vd.var,strokeWidth:Xd.value},labels:Object.assign(Object.assign({},Cp),{padding:Gd.value})},height:qd.value,width:Kd.value},scatter:Object.assign(Object.assign({},kp),{style:{data:{fill:Jd.var,opacity:Qd.value,stroke:$d.var,strokeWidth:Yd.value},labels:Ap}}),stack:Object.assign(Object.assign({},kp),{style:{data:{strokeWidth:Zd.value}}}),tooltip:{cornerRadius:ep.value,flyoutPadding:sp.value,flyoutStyle:{cornerRadius:rp.value,fill:lp.var,pointerEvents:ap.var,stroke:ip.var,strokeWidth:op.var},pointerLength:tp.value,pointerWidth:cp.value,style:{fill:np.var,pointerEvents:up.var}},voronoi:Object.assign(Object.assign({},kp),{style:{data:{fill:fp.var,stroke:dp.var,strokeWidth:pp.value},labels:Object.assign(Object.assign({},Ap),{fill:mp.var,padding:vp.value,pointerEvents:hp.value}),flyout:{fill:xp.var,pointerEvents:yp.var,stroke:bp.var,strokeWidth:gp.var}}})},jp={name:"--pf-v5-chart-donut--pie--Height",value:230,var:"var(--pf-v5-chart-donut--pie--Height, 230)"},Np={name:"--pf-v5-chart-donut--pie--angle--Padding",value:1,var:"var(--pf-v5-chart-donut--pie--angle--Padding, 1)"},Tp={name:"--pf-v5-chart-donut--pie--Padding",value:20,var:"var(--pf-v5-chart-donut--pie--Padding, 20)"},Mp={name:"--pf-v5-chart-donut--pie--Width",value:230,var:"var(--pf-v5-chart-donut--pie--Width, 230)"},Ip={pie:{height:jp.value,padding:Tp.value,padAngle:Np.value,width:Mp.value}},Lp=Pp,Rp=Ip,Dp=n(2727),Fp=n.n(Dp),zp="blue",Bp="cyan",Hp="gold",Wp="gray",Up="green",Xp="multi",Vp="multi-ordered",Gp="multi-unordered",qp="orange",Kp="purple",$p={name:"--pf-v5-chart-theme--blue--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--blue--ColorScale--100, #06c)"},Yp={name:"--pf-v5-chart-theme--blue--ColorScale--200",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--blue--ColorScale--200, #8bc1f7)"},Qp={name:"--pf-v5-chart-theme--blue--ColorScale--300",value:"#002f5d",var:"var(--pf-v5-chart-theme--blue--ColorScale--300, #002f5d)"},Jp={name:"--pf-v5-chart-theme--blue--ColorScale--400",value:"#519de9",var:"var(--pf-v5-chart-theme--blue--ColorScale--400, #519de9)"},Zp={name:"--pf-v5-chart-theme--blue--ColorScale--500",value:"#004b95",var:"var(--pf-v5-chart-theme--blue--ColorScale--500, #004b95)"},em=function(e){var t=e.COLOR_SCALE;return{area:{colorScale:t,style:{data:{fill:t[0]}}},axis:{colorScale:t},bar:{colorScale:t,style:{data:{fill:t[0]}}},boxplot:{colorScale:t,style:{q1:{fill:t[0]},q3:{fill:t[0]}}},candlestick:{colorScale:t},chart:{colorScale:t},errorbar:{colorScale:t},group:{colorScale:t},legend:{colorScale:t},line:{colorScale:t,style:{data:{stroke:t[0]}}},pie:{colorScale:t},scatter:{colorScale:t},stack:{colorScale:t},voronoi:{colorScale:t}}},tm=[$p.var,Yp.var,Qp.var,Jp.var,Zp.var],nm=em({COLOR_SCALE:tm}),rm={name:"--pf-v5-chart-theme--cyan--ColorScale--100",value:"#009596",var:"var(--pf-v5-chart-theme--cyan--ColorScale--100, #009596)"},om={name:"--pf-v5-chart-theme--cyan--ColorScale--200",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--cyan--ColorScale--200, #a2d9d9)"},am={name:"--pf-v5-chart-theme--cyan--ColorScale--300",value:"#003737",var:"var(--pf-v5-chart-theme--cyan--ColorScale--300, #003737)"},im={name:"--pf-v5-chart-theme--cyan--ColorScale--400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--cyan--ColorScale--400, #73c5c5)"},lm={name:"--pf-v5-chart-theme--cyan--ColorScale--500",value:"#005f60",var:"var(--pf-v5-chart-theme--cyan--ColorScale--500, #005f60)"},cm=[rm.var,om.var,am.var,im.var,lm.var],sm=em({COLOR_SCALE:cm}),um={name:"--pf-v5-chart-theme--gold--ColorScale--100",value:"#f4c145",var:"var(--pf-v5-chart-theme--gold--ColorScale--100, #f4c145)"},fm={name:"--pf-v5-chart-theme--gold--ColorScale--200",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--gold--ColorScale--200, #f9e0a2)"},dm={name:"--pf-v5-chart-theme--gold--ColorScale--300",value:"#c58c00",var:"var(--pf-v5-chart-theme--gold--ColorScale--300, #c58c00)"},pm={name:"--pf-v5-chart-theme--gold--ColorScale--400",value:"#f6d173",var:"var(--pf-v5-chart-theme--gold--ColorScale--400, #f6d173)"},mm={name:"--pf-v5-chart-theme--gold--ColorScale--500",value:"#f0ab00",var:"var(--pf-v5-chart-theme--gold--ColorScale--500, #f0ab00)"},vm=[um.var,fm.var,dm.var,pm.var,mm.var],hm=em({COLOR_SCALE:vm}),gm={name:"--pf-v5-chart-theme--gray--ColorScale--100",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--gray--ColorScale--100, #b8bbbe)"},ym={name:"--pf-v5-chart-theme--gray--ColorScale--200",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--gray--ColorScale--200, #f0f0f0)"},bm={name:"--pf-v5-chart-theme--gray--ColorScale--300",value:"#6a6e73",var:"var(--pf-v5-chart-theme--gray--ColorScale--300, #6a6e73)"},xm={name:"--pf-v5-chart-theme--gray--ColorScale--400",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--gray--ColorScale--400, #d2d2d2)"},wm={name:"--pf-v5-chart-theme--gray--ColorScale--500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--gray--ColorScale--500, #8a8d90)"},Om=[gm.var,ym.var,bm.var,xm.var,wm.var],Sm=em({COLOR_SCALE:Om}),Cm=em({COLOR_SCALE:[{name:"--pf-v5-chart-theme--green--ColorScale--100",value:"#4cb140",var:"var(--pf-v5-chart-theme--green--ColorScale--100, #4cb140)"}.var,{name:"--pf-v5-chart-theme--green--ColorScale--200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--green--ColorScale--200, #bde2b9)"}.var,{name:"--pf-v5-chart-theme--green--ColorScale--300",value:"#23511e",var:"var(--pf-v5-chart-theme--green--ColorScale--300, #23511e)"}.var,{name:"--pf-v5-chart-theme--green--ColorScale--400",value:"#7cc674",var:"var(--pf-v5-chart-theme--green--ColorScale--400, #7cc674)"}.var,{name:"--pf-v5-chart-theme--green--ColorScale--500",value:"#38812f",var:"var(--pf-v5-chart-theme--green--ColorScale--500, #38812f)"}.var]}),Am=em({COLOR_SCALE:[{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--100, #06c)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--200",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--200, #4cb140)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--300",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--300, #009596)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--400",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--400, #f4c145)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--500, #ec7a08)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--600",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--600, #8bc1f7)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--700, #23511e)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--800",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--800, #a2d9d9)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--900",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--900, #f9e0a2)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000, #8f4700)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100, #002f5d)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200, #bde2b9)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300, #003737)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400, #c58c00)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500, #f4b678)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600, #519de9)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700, #38812f)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800, #73c5c5)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900, #f6d173)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000, #c46100)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100, #004b95)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200, #7cc674)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300, #005f60)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400, #f0ab00)"}.var,{name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500, #ef9234)"}.var]}),km=em({COLOR_SCALE:[{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--100, #06c)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--200",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--200, #f4c145)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--300",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--300, #4cb140)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--400",value:"#5752d1",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--400, #5752d1)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--500, #ec7a08)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--600",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--600, #009596)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--700",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--700, #b8bbbe)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--800",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--800, #8bc1f7)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--900",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--900, #c58c00)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000, #bde2b9)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100",value:"#2a265f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100, #2a265f)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200, #f4b678)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300, #003737)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400, #f0f0f0)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500, #002f5d)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600, #f9e0a2)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700, #23511e)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800, #b2b0ea)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900, #8f4700)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000, #a2d9d9)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100",value:"#6a6e73",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100, #6a6e73)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200, #519de9)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300, #f0ab00)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400, #7cc674)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500, #3c3d99)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600, #ef9234)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700, #005f60)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800, #d2d2d2)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900, #004b95)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000, #f6d173)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100, #38812f)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200",value:"#8481dd",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200, #8481dd)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300, #c46100)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400, #73c5c5)"}.var,{name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500, #8a8d90)"}.var]}),_m=em({COLOR_SCALE:[{name:"--pf-v5-chart-theme--orange--ColorScale--100",value:"#ec7a08",var:"var(--pf-v5-chart-theme--orange--ColorScale--100, #ec7a08)"}.var,{name:"--pf-v5-chart-theme--orange--ColorScale--200",value:"#f4b678",var:"var(--pf-v5-chart-theme--orange--ColorScale--200, #f4b678)"}.var,{name:"--pf-v5-chart-theme--orange--ColorScale--300",value:"#8f4700",var:"var(--pf-v5-chart-theme--orange--ColorScale--300, #8f4700)"}.var,{name:"--pf-v5-chart-theme--orange--ColorScale--400",value:"#ef9234",var:"var(--pf-v5-chart-theme--orange--ColorScale--400, #ef9234)"}.var,{name:"--pf-v5-chart-theme--orange--ColorScale--500",value:"#c46100",var:"var(--pf-v5-chart-theme--orange--ColorScale--500, #c46100)"}.var]}),Em=em({COLOR_SCALE:[{name:"--pf-v5-chart-theme--purple--ColorScale--100",value:"#5752d1",var:"var(--pf-v5-chart-theme--purple--ColorScale--100, #5752d1)"}.var,{name:"--pf-v5-chart-theme--purple--ColorScale--200",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--purple--ColorScale--200, #b2b0ea)"}.var,{name:"--pf-v5-chart-theme--purple--ColorScale--300",value:"#2a265f",var:"var(--pf-v5-chart-theme--purple--ColorScale--300, #2a265f)"}.var,{name:"--pf-v5-chart-theme--purple--ColorScale--400",value:"#8481dd",var:"var(--pf-v5-chart-theme--purple--ColorScale--400, #8481dd)"}.var,{name:"--pf-v5-chart-theme--purple--ColorScale--500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--purple--ColorScale--500, #3c3d99)"}.var]}),Pm=function(e){var t=Object.assign({},JSON.parse(JSON.stringify(Lp)));return Fp()(t,jm(e))},jm=function(e){switch(e){case zp:return nm;case Bp:return sm;case Hp:return hm;case Wp:return Sm;case Up:return Cm;case Xp:case Vp:return Am;case Gp:return km;case qp:return _m;case Kp:return Em;default:return nm}},Nm=function(e){return function(e,t){return Fp()(Pm(e),t)}(e,Rp)},Tm=("undefined"===typeof window||!window.document||window.document.createElement,function(e){var t=e.className,n=e.themeColor,r=e.theme,o=void 0===r?Pm(n):r,a=(0,i.Tt)(e,["className","themeColor","theme"]),c=function(e){var t,n=e.className;return n&&(t=n.replace(/VictoryContainer/g,"").replace(/pf-v5-c-chart/g,"").replace(/pf-c-chart/g,"").replace(/\s+/g," ").trim()),t&&t.length?"pf-v5-c-chart ".concat(t):"pf-v5-c-chart"}({className:t});return l.createElement(Jt,Object.assign({className:c,theme:o},a))});Tm.displayName="ChartContainer",s()(Tm,Jt);var Mm={name:"--pf-v5-chart-global--label--Margin",value:8,var:"var(--pf-v5-chart-global--label--Margin, 8)"},Im={name:"--pf-v5-chart-legend--Margin",value:16,var:"var(--pf-v5-chart-legend--Margin, 16)"},Lm={name:"--pf-v5-chart-legend--position",value:"right",var:"var(--pf-v5-chart-legend--position, right)"},Rm={label:{fontFamily:Tf.var,fontSize:If.value,letterSpacing:Mf.var,margin:Mm.value,fill:Ff.var},legend:{margin:Im.value,position:Lm.value}},Dm={label:{subTitle:{fill:{name:"--pf-v5-chart-donut--label--subtitle--Fill",value:"#b8bbbe",var:"var(--pf-v5-chart-donut--label--subtitle--Fill, #b8bbbe)"}.var,fontSize:If.value},subTitlePosition:{name:"--pf-v5-chart-donut--label--subtitle--position",value:"center",var:"var(--pf-v5-chart-donut--label--subtitle--position, center)"}.value,title:{fill:{name:"--pf-v5-chart-donut--label--title--Fill",value:"#151515",var:"var(--pf-v5-chart-donut--label--title--Fill, #151515)"}.var,fontSize:{name:"--pf-v5-chart-global--FontSize--2xl",value:24,var:"var(--pf-v5-chart-global--FontSize--2xl, 24)"}.value}}},Fm=function(e){var t=e.style,n=e.textAnchor,r=(0,i.Tt)(e,["style","textAnchor"]),o=function(e){return v()(Object.assign(Object.assign({},e),{textAnchor:n}),{fill:Rm.label.fill,fontFamily:Rm.label.fontFamily,fontSize:Rm.label.fontSize,letterSpacing:Rm.label.letterSpacing})},a=Array.isArray(t)?t.map(o):o(t);return l.createElement(pt,Object.assign({style:a,textAnchor:n},r))};Fm.displayName="ChartLabel",s()(Fm,pt);var zm=n(5770),Bm=n.n(zm),Hm=n(173),Wm=n.n(Hm);function Um(e){return function(e){if(Array.isArray(e))return Xm(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Xm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xm(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=e.style||{};return{parent:v()(n.parent,t.parent,{height:"100%",width:"100%"}),data:v()({},n.data,t.data),labels:v()({},n.labels,t.labels),border:v()({},n.border,t.border),title:v()({},n.title,t.title)}}(e,n&&n.legend&&n.legend.style?n.legend.style:{}),o=function(e){var t=e.colorScale;return"string"===typeof t?Se(t):t||[]}(e),a="horizontal"===t,i=y({padding:e.borderPadding});return Object.assign({},e,{style:r,isHorizontal:a,colorScale:o,borderPadding:i})},Ym=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?t%n:Math.floor(t/n):r?t:0},Qm=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?Math.floor(t/n):t%n:r?0:t},Jm=function(e){var t=e.data,n=e.style&&e.style.data||{},r=Km(e);return t.map(function(t,o){var a=t.symbol||{},i=r[o].fontSize,l=a.size||n.size||i/2.5,c=e.symbolSpacer||Math.max(l,i);return Gm(Gm({},t),{},{size:l,symbolSpacer:c,fontSize:i,textSize:Ke(t.name,r[o]),column:Ym(e,o),row:Qm(e,o)})})},Zm=function(e,t){var n=e.gutter||{},r="object"===typeof n?(n.left||0)+(n.right||0):n||0,o=Wm()(t,"column");return Object.keys(o).reduce(function(e,t,n){var a=o[t].map(function(e){return e.textSize.width+e.size+e.symbolSpacer+r});return e[n]=Math.max.apply(Math,Um(a)),e},[])},ev=function(e,t){var n=e.rowGutter||{},r="object"===typeof n?(n.top||0)+(n.bottom||0):n||0,o=Wm()(t,"row");return Object.keys(o).reduce(function(e,t,n){var a=o[t].map(function(e){return e.textSize.height+e.symbolSpacer+r});return e[n]=Math.max.apply(Math,Um(a)),e},[])},tv=function(e){var t=e.style&&e.style.title||{},n=Ke(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},nv=function(e,t){var n=e.title,r=e.titleOrientation,o=e.centerTitle,a=e.borderPadding,i=t.height,l=t.width,c=function(e){var t=e.titleOrientation,n=e.centerTitle,r=e.titleComponent,o=e.style&&e.style.title||{},a=r.props&&r.props.style||{},i=function(e,t){var n={textAnchor:"right"===e?"end":"start",verticalAnchor:"bottom"===e?"end":"start"};if(t){var r="top"===e||"bottom"===e;return{textAnchor:r?"middle":n.textAnchor,verticalAnchor:r?n.verticalAnchor:"middle"}}return n}(t,n);return Array.isArray(a)?a.map(function(e){return v()({},e,o,i)}):v()({},a,o,i)}(e),s=Array.isArray(c)?c[0].padding:c.padding,u="top"===r||"bottom"===r,f="right"===r?"right":"left",d={x:o?l/2:a["bottom"===r?"bottom":"top"]+(s||0),y:o?i/2:a[f]+(s||0)},p=function(){return a[r]+(s||0)},m=u?d.x:p(),h=u?p():d.y;return{x:"right"===r?e.x+l-m:e.x+m,y:"bottom"===r?e.y+i-h:e.y+h,style:c,text:n}},rv=function(e,t){var n=P(e,t,"legend"),r=Object.assign({},n,$m(n)),o=r.title,a=r.titleOrientation,i=Jm(r),l=Zm(r,i),c=ev(r,i),s=o?tv(r):{height:0,width:0};return{height:"left"===a||"right"===a?Math.max(av(c),s.height):av(c)+s.height,width:"left"===a||"right"===a?av(l)+s.width:Math.max(av(l),s.width)}},ov=function(e,t){var n=P(e,t,"legend"),r=Object.assign({},n,$m(n)),o=r.data,a=r.standalone,i=r.theme,l=r.padding,c=r.style,s=r.colorScale,u=r.gutter,f=r.rowGutter,d=r.borderPadding,p=r.title,m=r.titleOrientation,h=r.name,g=r.x,y=void 0===g?0:g,b=r.y,x=void 0===b?0:b,w=Jm(r),O=Zm(r,w),S=ev(r,w),C=Km(r),A=p?tv(r):{height:0,width:0},_="left"===m?A.width:0,E="top"===m?A.height:0,j=u&&"object"===typeof u&&u.left||0,N=f&&"object"===typeof f&&f.top||0,T=rv(r,t),M=function(e,t,n){var r=e.x,o=e.y,a=e.borderPadding,i=e.style;return{x:r,y:o,height:(t||0)+a.top+a.bottom,width:(n||0)+a.left+a.right,style:Object.assign({fill:"none"},i.border)}}(r,T.height,T.width),I=nv(r,M),L={parent:{data:o,standalone:a,theme:i,padding:l,name:h,height:r.height,width:r.width,style:c.parent},all:{border:M,title:I}};return w.reduce(function(e,t,n){var r=s[n%s.length],a=v()({},t.symbol,c.data,{fill:r}),i=k(t.eventKey)?n:t.eventKey,l=function(e,t,n){var r=e.column,o=e.row;return{x:Bm()(r).reduce(function(e,t){return e+n[t]},0),y:Bm()(o).reduce(function(e,n){return e+t[n]},0)}}(t,S,O),u=x+d.top+t.symbolSpacer,f=y+d.left+t.symbolSpacer,p={index:n,data:o,datum:t,symbol:a.type||a.symbol||"circle",size:t.size,style:a,y:u+l.y+E+N,x:f+l.x+_+j},m={datum:t,data:o,text:t.name,style:C[n],y:p.y,x:p.x+t.symbolSpacer+t.size/2};return e[i]={data:p,labels:m},e},L)};function av(e){if(e&&e.length){for(var t=0,n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?0:e.pointerLength,g="left"===r?"0 0 0":"0 0 1",y="".concat(n," ").concat(n," ").concat(g);return"M ".concat(d,", ").concat(f-t/2,"\n L ").concat(h?c:d,", ").concat(h?s:f+t/2,"\n L ").concat(d,", ").concat(f+t/2,"\n L ").concat(d,", ").concat(m-n,"\n A ").concat(y," ").concat(d+l*n,", ").concat(m,"\n L ").concat(p-l*n,", ").concat(m,"\n A ").concat(y," ").concat(p,", ").concat(m-n,"\n L ").concat(p,", ").concat(v+n,"\n A ").concat(y," ").concat(p-l*n,", ").concat(v,"\n L ").concat(d+l*n,", ").concat(v,"\n A ").concat(y," ").concat(d,", ").concat(v+n,"\n z")}(e):function(e){var t=e.pointerWidth,n=e.cornerRadius,r=e.orientation,o=e.width,a=e.height,i=e.center,l="bottom"===r?1:-1,c=e.x+(e.dx||0),s=e.y+(e.dy||0),u=i.x,f=i.y,d=f+l*(a/2),p=f-l*(a/2),m=u+o/2,v=u-o/2,h=l*(s-d)<0?0:e.pointerLength,g="bottom"===r?"0 0 0":"0 0 1",y="".concat(n," ").concat(n," ").concat(g);return"M ".concat(u-t/2,", ").concat(d,"\n L ").concat(h?c:u+t/2,", ").concat(h?s:d,"\n L ").concat(u+t/2,", ").concat(d,"\n L ").concat(m-n,", ").concat(d,"\n A ").concat(y," ").concat(m,", ").concat(d-l*n,"\n L ").concat(m,", ").concat(p+l*n,"\n A ").concat(y," ").concat(m-n,", ").concat(p,"\n L ").concat(v+n,", ").concat(p,"\n A ").concat(y," ").concat(v,", ").concat(p+l*n,"\n L ").concat(v,", ").concat(d-l*n,"\n A ").concat(y," ").concat(v+n,", ").concat(d,"\n z")}(e)},Xv={pathComponent:l.createElement(vf,null),role:"presentation",shapeRendering:"auto"},Vv=function(e){var t=function(e){var t=x(e.id,e),n=w(e.style,e);return Hv(Hv({},e),{},{id:t,style:n})}(Hv(Hv({},Xv),e)),n=$(t);K(t.height,"Flyout props[height] is undefined"),K(t.width,"Flyout props[width] is undefined"),K(t.x,"Flyout props[x] is undefined"),K(t.y,"Flyout props[y] is undefined");var r={center:t.center||{x:0,y:0},cornerRadius:t.cornerRadius||0,dx:t.dx,dy:t.dy,height:t.height,orientation:t.orientation||"top",pointerLength:t.pointerLength||0,pointerWidth:t.pointerWidth||0,width:t.width,x:t.x,y:t.y};return l.cloneElement(t.pathComponent,Hv(Hv(Hv({},t.events),n),{},{style:t.style,d:Uv(r),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath}))};function Gv(e){return function(e){if(Array.isArray(e))return qv(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return qv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qv(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n270?"right":"left":t>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}},{key:"getStyles",value:function(e){var t=e.theme||gn.grayscale,n=t&&t.tooltip&&t.tooltip.style?t.tooltip.style:{},r=Array.isArray(e.style)?e.style.map(function(e){return v()({},e,n)}):v()({},e.style,n),o=t&&t.tooltip&&t.tooltip.flyoutStyle?t.tooltip.flyoutStyle:{},a=e.flyoutStyle?v()({},e.flyoutStyle,o):o,i=Array.isArray(r)?r.map(function(t){return w(t,e)}):w(r,e);return{style:i,flyoutStyle:w(a,Object.assign({},e,{style:i}))}}},{key:"getEvaluatedProps",value:function(e){var t=e.cornerRadius,n=e.centerOffset,r=e.dx,o=e.dy,a=x(e.active,e),i=x(e.text,Object.assign({},e,{active:a}));void 0!==i&&null!==i||(i=""),"number"===typeof i&&(i=i.toString());var l=this.getStyles(Object.assign({},e,{active:a,text:i})),c=l.style,s=l.flyoutStyle,u=x(e.orientation,Object.assign({},e,{active:a,text:i,style:c,flyoutStyle:s}))||this.getDefaultOrientation(e),f=y({padding:x(e.flyoutPadding,Object.assign({},e,{active:a,text:i,style:c,flyoutStyle:s,orientation:u}))||this.getLabelPadding(c)}),d=x(e.pointerWidth,Object.assign({},e,{active:a,text:i,style:c,flyoutStyle:s,orientation:u})),p=x(e.pointerLength,Object.assign({},e,{active:a,text:i,style:c,flyoutStyle:s,orientation:u})),m=Ke(i,c),v=this.getDimensions(Object.assign({},e,{style:c,flyoutStyle:s,active:a,text:i,orientation:u,flyoutPadding:f,pointerWidth:d,pointerLength:p}),m),h=v.flyoutHeight,g=v.flyoutWidth,b=Object.assign({},e,{active:a,text:i,style:c,flyoutStyle:s,orientation:u,flyoutHeight:h,flyoutWidth:g,flyoutPadding:f,pointerWidth:d,pointerLength:p}),w=An()(n)&&void 0!==(null===n||void 0===n?void 0:n.x)?x(n.x,b):0,O=An()(n)&&void 0!==(null===n||void 0===n?void 0:n.y)?x(n.y,b):0;return $v($v({},b),{},{centerOffset:{x:w,y:O},dx:void 0!==r?x(r,b):0,dy:void 0!==o?x(o,b):0,cornerRadius:x(t,b)})}},{key:"getCalculatedValues",value:function(e){var t=e.style,n=e.text,r=e.flyoutStyle,o={height:e.flyoutHeight,width:e.flyoutWidth};return{style:t,flyoutStyle:r,labelSize:Ke(n,t),flyoutDimensions:o,flyoutCenter:this.getFlyoutCenter(e,o),transform:this.getTransform(e)}}},{key:"getTransform",value:function(e){var t=e.x,n=e.y,r=(e.style||{}).angle||e.angle||this.getDefaultAngle(e);return r?"rotate(".concat(r," ").concat(t," ").concat(n,")"):void 0}},{key:"getDefaultAngle",value:function(e){var t=e.polar,n=e.labelPlacement,r=e.orientation,o=e.datum;if(!t||!n||"vertical"===n)return 0;var a=we(e,o),i=0;return 0===a||180===a?i="top"===r&&180===a?270:90:a>0&&a<180?i=90-a:a>180&&a<360&&(i=270-a),i+(a>90&&a<180||a>270?1:-1)*("perpendicular"===n?0:90)}},{key:"constrainTooltip",value:function(e,t,n){var r=e.x,o=e.y,a=n.width,i=n.height,l=[0,t.width],c=[0,t.height],s=[r-a/2,r+a/2],u=[o-i/2,o+i/2],f=[s[0]l[1]?s[1]-l[1]:0],d=[u[0]c[1]?u[1]-c[1]:0];return{x:Math.round(r+f[0]-f[1]),y:Math.round(o+d[0]-d[1])}}},{key:"getFlyoutCenter",value:function(e,t){var n=e.x,r=e.y,o=e.dx,a=e.dy,i=e.pointerLength,l=e.orientation,c=e.constrainToVisibleArea,s=e.centerOffset,u=t.height,f=t.width,d="left"===l?-1:1,p="bottom"===l?-1:1,m={x:"left"===l||"right"===l?n+d*(i+f/2+d*o):n+o,y:"top"===l||"bottom"===l?r-p*(i+u/2-p*a):r+a},v=An()(e.center)&&void 0!==e.center.x?e.center.x:m.x,h=An()(e.center)&&void 0!==e.center.y?e.center.y:m.y,g={x:v+s.x,y:h+s.y};return c?this.constrainTooltip(g,e,t):g}},{key:"getLabelPadding",value:function(e){if(!e)return 0;var t=Array.isArray(e)?e.map(function(e){return e.padding}):[e.padding];return Math.max.apply(Math,Gv(t).concat([0]))}},{key:"getDimensions",value:function(e,t){var n=e.orientation,r=e.pointerLength,o=e.pointerWidth,a=e.flyoutHeight,i=e.flyoutWidth,l=e.flyoutPadding,c=x(e.cornerRadius,e);return{flyoutHeight:a?x(a,e):function(){var e=t.height+l.top+l.bottom,r="top"===n||"bottom"===n?2*c:2*c+o;return Math.max(r,e)}(),flyoutWidth:i?x(i,e):function(){var e=t.width+l.left+l.right,o="left"===n||"right"===n?2*c+r:2*c;return Math.max(o,e)}()}}},{key:"getLabelProps",value:function(e,t){var n=t.flyoutCenter,r=t.style,o=t.labelSize,a=t.dy,i=void 0===a?0:a,l=t.dx,c=void 0===l?0:l,s=e.text,u=e.datum,f=e.activePoints,d=e.labelComponent,p=e.index,m=e.flyoutPadding,h=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return v()({},d.props,{key:"".concat(this.id,"-label-").concat(p),text:s,datum:u,activePoints:f,textAnchor:h,dy:i,dx:c,style:r,x:function(){if(!h||"middle"===h)return n.x;var e="end"===h?-1:1;return n.x-e*(o.width/2)}()+(m.left-m.right)/2,y:n.y+(m.top-m.bottom)/2,verticalAnchor:"middle",angle:r.angle})}},{key:"getPointerOrientation",value:function(e,t,n){var r=t.y+n.height/2,o=t.y-n.height/2,a=t.x-n.width/2,i=t.x+n.width/2,l=[{side:"top",val:o>e.y?o-e.y:-1},{side:"bottom",val:re.x?a-e.x:-1}];return Sn()(l,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(e,t){var n=t.flyoutDimensions,r=t.flyoutStyle,o=t.flyoutCenter,a=e.x,i=e.y,l=e.dx,c=e.dy,s=e.datum,u=e.activePoints,f=e.index,d=e.pointerLength,p=e.pointerWidth,m=e.cornerRadius,h=e.events,g=e.flyoutComponent,y=x(e.pointerOrientation,e);return v()({},g.props,{x:a,y:i,dx:l,dy:c,datum:s,activePoints:u,index:f,pointerLength:d,pointerWidth:p,cornerRadius:m,events:h,orientation:y||this.getPointerOrientation({x:a,y:i},o,n),key:"".concat(this.id,"-tooltip-").concat(f),width:n.width,height:n.height,style:r,center:o})}},{key:"renderTooltip",value:function(e){var t=x(e.active,e),n=e.renderInPortal;if(!t)return n?l.createElement(oe,null):null;var r=this.getEvaluatedProps(e),o=r.flyoutComponent,a=r.labelComponent,i=r.groupComponent,c=this.getCalculatedValues(r),s=[l.cloneElement(o,this.getFlyoutProps(r,c)),l.cloneElement(a,this.getLabelProps(r,c))],u=l.cloneElement(i,{role:"presentation",transform:c.transform},s);return n?l.createElement(oe,null,u):u}},{key:"render",value:function(){var e=P(this.props,th,"tooltip");return this.renderTooltip(e)}}],n&&Qv(t.prototype,n),r&&Qv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.Component);nh.displayName="VictoryTooltip",nh.role="tooltip",nh.defaultProps={active:!1,renderInPortal:!0,labelComponent:l.createElement(pt,null),flyoutComponent:l.createElement(Vv,null),groupComponent:l.createElement("g",null)},nh.defaultEvents=function(e){var t=e.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],n=e.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return t},onFocus:function(){return t},onTouchStart:function(){return t},onMouseOut:function(){return n},onBlur:function(){return n},onTouchEnd:function(){return n}}}]};var rh=function(e){var t=e.constrainToVisibleArea,n=void 0!==t&&t,r=e.labelComponent,o=void 0===r?l.createElement(Fm,null):r,a=e.labelTextAnchor,c=e.themeColor,s=e.theme,u=void 0===s?Pm(c):s,f=(0,i.Tt)(e,["constrainToVisibleArea","labelComponent","labelTextAnchor","themeColor","theme"]),d=l.cloneElement(o,Object.assign({textAnchor:a,theme:u},o.props));return l.createElement(nh,Object.assign({constrainToVisibleArea:n,labelComponent:d,theme:u},f))};rh.displayName="ChartTooltip",s()(rh,nh);var oh=function(e){var t=e.height,n=e.padding,r=e.width,o=y({padding:n}),a=o.top,i=o.bottom,l=o.left,c=o.right,s=C({height:t,width:r,padding:n});return{x:s+l+(r-2*s-l-c)/2,y:s+a+(t-2*s-a-i)/2}},ah=function(e){var t=e.dx,n=void 0===t?0:t,r=e.height,o=e.labelPosition,a=e.legendPosition,i=e.padding,l=e.width,c=oh({height:r,padding:i,width:l}),s=C({height:r,width:l,padding:i});switch(o){case"bottom":case"center":return c.x+n;case"right":switch(a){case"bottom":return c.x+Rm.label.margin+n+s;case"right":return c.x+Rm.label.margin+n;default:return n}default:return n}},ih=function(e){var t=e.dy,n=void 0===t?0:t,r=e.height,o=e.labelPosition,a=e.padding,i=e.width,l=oh({height:r,padding:a,width:i}),c=C({height:r,width:i,padding:a});switch(o){case"center":case"right":return l.y+n;case"bottom":return l.y+c+2*Rm.label.margin+n;default:return n}},lh=function(e,t){var n=0;return e.map(function(e){var r=function(e){var t=e.text,n=e.theme.legend.style.labels;return Ke(t,Object.assign({},n))}({text:e.name,theme:t}).width;r>n&&(n=r)}),n},ch=function(e){var t=e.legendData,n=e.legendOrientation,r=e.legendProps,o=e.theme;return t||r.data?Iv.getDimensions(Object.assign({data:t,orientation:n,theme:o},r)):{}},sh=function(e){var t=e.dx,n=void 0===t?0:t,r=(e.height,e.legendPosition),o=e.legendData,a=e.legendOrientation,i=e.legendProps,l=e.padding,c=e.theme,s=e.width,u=y({padding:l}),f=u.left,d=s-f-u.right,p=ch({legendData:o,legendOrientation:a,legendProps:i,theme:c}),m=0;switch(r){case"bottom-left":m=f+n;break;case"right":m=d+Rm.legend.margin+f+n;break;default:m=n}return s-m>p.width},uh=function(e){for(var t=e.dx,n=e.height,r=e.legendPosition,o=e.legendData,a=e.legendOrientation,i=e.legendProps,l=e.padding,c=e.theme,s=e.width,u=o?o.length:0,f=u;f>0;f--){if(sh({dx:t,height:n,legendPosition:r,legendData:o,legendOrientation:a,legendProps:Object.assign(Object.assign({},i),{itemsPerRow:f}),padding:l,theme:c,width:s})){u=f;break}}return u},fh=function(e){var t=e.chartType,n=(0,i.Tt)(e,["chartType"]);return"pie"===t?hh(n):mh(n)},dh=function(e){var t=e.chartType,n=(0,i.Tt)(e,["chartType"]);switch(t){case"pie":return gh(n);case"bullet":return ph(n);default:return vh(n)}},ph=function(e){var t,n=e.dy,r=void 0===n?0:n,o=e.height,a=e.legendPosition,i=e.legendData,l=e.legendOrientation,c=e.legendProps,s=e.padding,u=e.theme,f=e.width,d=y({padding:s}),p=o;d.left,d.right;switch(a){case"bottom":case"bottom-left":return p+Rm.legend.margin+r;case"right":return(p-ch({legendData:i,legendOrientation:l,legendProps:c,theme:u}).height)/2+((t=i)&&t.length>0?17:0);default:return r}},mh=function(e){var t=e.dx,n=void 0===t?0:t,r=e.height,o=e.legendData,a=e.legendOrientation,i=e.legendPosition,l=e.legendProps,c=e.padding,s=e.theme,u=e.width,f=y({padding:c}),d=f.top,p=f.bottom,m=f.left,v=f.right,h=(Math.abs(r-(p+d)),Math.abs(u-(m+v))),g=ch({legendData:o,legendOrientation:a,legendProps:l,theme:s});switch(i){case"bottom":return u>g.width?Math.round((u-g.width)/2)+n:n;case"bottom-left":return m+n;case"right":return h+Rm.legend.margin+m+n;default:return n}},vh=function(e){var t,n=e.dy,r=void 0===n?0:n,o=e.height,a=e.legendPosition,i=e.legendData,l=e.legendOrientation,c=e.legendProps,s=e.padding,u=e.theme,f=e.width,d=y({padding:s}),p=d.top,m=d.bottom,v=d.left,h=d.right,g=Math.abs(o-(m+p));Math.abs(f-(v+h));switch(a){case"bottom":case"bottom-left":return g+2*Rm.legend.margin+p+r;case"right":return g/2+p-ch({legendData:i,legendOrientation:l,legendProps:c,theme:u}).height/2+((t=i)&&t.length>0?2:0);default:return r}},hh=function(e){var t=e.dx,n=void 0===t?0:t,r=e.height,o=e.legendData,a=e.legendOrientation,i=e.legendPosition,l=e.legendProps,c=e.padding,s=e.theme,u=e.width,f=oh({height:r,padding:c,width:u}),d=C({height:r,width:u,padding:c}),p=ch({legendData:o,legendOrientation:a,legendProps:l,theme:s});switch(i){case"bottom":return u>p.width?Math.round((u-p.width)/2)+n:n;case"right":return f.x+Rm.label.margin+n+d;default:return n}},gh=function(e){var t,n=e.dy,r=void 0===n?0:n,o=e.height,a=e.legendPosition,i=e.legendData,l=e.legendOrientation,c=e.legendProps,s=e.padding,u=e.theme,f=e.width,d=oh({height:o,padding:s,width:f}),p=C({height:o,width:f,padding:s});switch(a){case"bottom":return d.y+Rm.legend.margin+p+r;case"right":var m=ch({legendData:i,legendOrientation:l,legendProps:c,theme:u});return d.y-m.height/2+((t=i)&&t.length>0?2:0);default:return r}},yh=function(e,t,n){return"number"==typeof t?t:"object"==typeof t&&Object.keys(t).length>0?t[e]||0:yh(e,n,0)},bh=[{d:"M 0 0 L 5 5 M 4.5 -0.5 L 5.5 0.5 M -0.5 4.5 L 0.5 5.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 5 L 5 0 M -0.5 0.5 L 0.5 -0.5 M 4.5 5.5 L 5.5 4.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 2 0 L 2 5 M 4 0 L 4 5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 2 L 5 2 M 0 4 L 5 4",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 1.5 L 2.5 1.5 L 2.5 0 M 2.5 5 L 2.5 3.5 L 5 3.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 0 L 5 10 L 10 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 3 L 8 3 L 8 8 L 3 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 5 5 m -4 0 a 4 4 0 1 1 8 0 a 4 4 0 1 1 -8 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 0 L 10 10 M 9 -1 L 11 1 M -1 9 L 1 11",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 2 5 L 5 2 L 8 5 L 5 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 0 L 3 10 M 8 0 L 8 10",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 10 3 L 5 3 L 5 0 M 5 10 L 5 7 L 0 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 3 L 10 3 M 0 8 L 10 8",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 3 L 5 3 L 5 0 M 5 10 L 5 7 L 10 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0}],xh=function(e,t){return"".concat(e,":").concat(t)},wh=function(e){var t=e.colorScale,n=e.offset,r=void 0===n?0:n,o=e.patternId,a=e.patternUnshiftIndex,c=void 0===a?0:a,s=[].concat(bh);c>0&&c0?o:void 0},Sh=function(e){var t=e.colorScale,n=e.hasPatterns,r=e.patternScale,o=function(e,t){var n=[];return(e||t).forEach(function(e){return n.push(e)}),n}(t,e.themeColorScale),a=r,i=!r&&void 0!==n,c=l.useMemo(function(){return i?gt()("pf-pattern"):void 0},[i]);if(i&&(a=Oh({colorScale:o,patternId:c,patternScale:r})),Array.isArray(n))for(var s=0;s-1?e:void 0}(),Q=l.createElement(Nf,Object.assign({colorScale:a,height:B,key:"pf-chart-pie",labelComponent:R,name:S,padding:_,radius:Y,standalone:!1,style:function(){if(!q)return N;var e=N?Object.assign({},N):{};return e.data=Object.assign({fill:function(e){var t=e.slice,n=q[t.index%q.length];return n||G[t.index%G.length]}},e.data),e}(),theme:I,width:W},U)),J=0;"rtl"===O&&(J=lh(y,I));var Z=l.cloneElement(g,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:a,data:y},S&&{name:"".concat(S,"-").concat(g.type.displayName)}),{key:"pf-chart-pie-legend",orientation:F,theme:I}),"rtl"===O&&{dataComponent:g.props.dataComponent?l.cloneElement(g.props.dataComponent,{transform:"translate(".concat(J,")")}):l.createElement(Fv,{transform:"translate(".concat(J,")")})}),"rtl"===O&&{labelComponent:g.props.labelComponent?l.cloneElement(g.props.labelComponent,{direction:"rtl",dx:J-30}):l.createElement(Fm,{direction:"rtl",dx:J-30})}),g.props)),ee=function(){return Z.props.data?function(e){var t=e.allowWrap,n=void 0===t||t,r=e.chartType,o=void 0===r?"chart":r,a=e.colorScale,i=e.dx,c=void 0===i?0:i,s=e.dy,u=void 0===s?0:s,f=e.height,d=e.legendComponent,p=e.padding,m=e.patternScale,h=e.position,g=void 0===h?Rm.legend.position:h,y=e.theme,b=e.width,x=e.orientation,w=void 0===x?y.legend.orientation:x,O=d.props?d.props:{},S=n?uh({dx:c,height:f,legendData:O.data,legendOrientation:O.legendOrientation?O.legendOrientation:w,legendPosition:g,legendProps:O,padding:p,theme:y,width:b}):void 0,C=v()({},d.props,{itemsPerRow:S}),A=fh({chartType:o,dx:c,height:f,legendData:C.data,legendOrientation:C.legendOrientation?C.legendOrientation:w,legendPosition:g,legendProps:C,padding:p,theme:y,width:b}),k=dh({chartType:o,dy:u,height:f,legendData:C.data,legendOrientation:C.legendOrientation?C.legendOrientation:w,legendProps:C,legendPosition:g,padding:p,theme:y,width:b}),_=v()({},d.props,{colorScale:a,itemsPerRow:S,orientation:w,patternScale:m,standalone:!1,theme:y,x:A>0?A:0,y:k>0?k:0});return l.cloneElement(d,_)}(Object.assign({allowWrap:!0===m||"function"===typeof m,chartType:"pie",height:B,legendComponent:Z,padding:X,position:x,theme:I,width:W},q&&{patternScale:q})):null},te=j?l.cloneElement(f,Object.assign({desc:r,height:B,title:o,width:W,theme:I},f.props),[Q,ee(),K&&wh({patternId:$,colorScale:G,patternUnshiftIndex:k})]):null,ne=ee();return(0,l.useEffect)(function(){if((null===ne||void 0===ne?void 0:ne.props)&&"function"===typeof m){var e=function(e){var t=e.legendData,n=e.legendOrientation,r=e.legendProps,o=e.theme,a=ch({legendData:t,legendOrientation:n,legendProps:r,theme:o}),i=ch({legendData:t,legendOrientation:n,legendProps:Object.assign(Object.assign({},r),{itemsPerRow:void 0}),theme:o});return Math.abs(a.height-i.height)}({legendData:ne.props.data,legendOrientation:ne.props.orientation,legendProps:ne.props,theme:I});m(e)}},[ne,m,I,W]),j?l.createElement(l.Fragment,null,te):l.createElement(l.Fragment,null,Q,ne,K&&wh({patternId:$,colorScale:G,patternUnshiftIndex:k}))};Ch.displayName="ChartPie",s()(Ch,Nf);var Ah=function(e){var t=e.allowTooltip,n=void 0===t||t,r=e.ariaDesc,o=e.ariaTitle,a=e.capHeight,c=void 0===a?1.1:a,s=e.containerComponent,u=void 0===s?l.createElement(Tm,null):s,f=e.innerRadius,d=e.legendPosition,p=void 0===d?Rm.legend.position:d,m=e.legendDirection,v=void 0===m?"ltr":m,h=e.name,g=e.padAngle,y=e.padding,b=e.radius,x=e.standalone,w=void 0===x||x,O=e.subTitle,S=e.subTitleComponent,A=e.subTitlePosition,k=void 0===A?Dm.label.subTitlePosition:A,_=e.themeColor,E=e.title,P=e.titleComponent,j=void 0===P?l.createElement(Fm,null):P,N=e.theme,T=void 0===N?Nm(_):N,M=e.height,I=void 0===M?T.pie.height:M,L=e.width,R=void 0===L?T.pie.width:L,D=(0,i.Tt)(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendPosition","legendDirection","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","title","titleComponent","theme","height","width"]),F={bottom:yh("bottom",y,T.pie.padding),left:yh("left",y,T.pie.padding),right:yh("right",y,T.pie.padding),top:yh("top",y,T.pie.padding)},z=b||C({height:I,width:R,padding:F}),B=f||z-9,H=O&&"center"===k,W=function(){return!S&&H?X({styles:[Dm.label.title,Dm.label.subTitle],titles:[E,O]}):l.createElement(l.Fragment,{key:"pf-chart-donut-titles"},X({titles:E,dy:H?-8:0}),U({textComponent:S,dy:H?15:0}))},U=function(e){var t=e.dy,n=void 0===t?0:t,r=e.textComponent,o=void 0===r?l.createElement(Fm,null):r;if(!O)return null;var a=o.props?o.props:{};return l.cloneElement(o,Object.assign(Object.assign(Object.assign({},h&&{id:"".concat(h,"-").concat(o.type.displayName,"-subTitle")}),{key:"pf-chart-donut-subtitle",style:Dm.label.subTitle,text:O,textAnchor:"right"===k?"start":"middle",verticalAnchor:"middle",x:ah({height:I,labelPosition:k,legendPosition:p,padding:F,width:R}),y:ih({dy:n,height:I,labelPosition:k,padding:F,width:R})}),a))},X=function(e){var t=e.dy,n=void 0===t?0:t,r=e.styles,o=void 0===r?Dm.label.title:r,a=e.titles,i=void 0===a?E:a;if(!i)return null;var s=j?j.props:{};return l.cloneElement(j,Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(i)&&{capHeight:c}),h&&{id:"".concat(h,"-").concat(j.type.displayName,"-title")}),{key:"pf-chart-donut-title",style:o,text:i,textAnchor:"middle",verticalAnchor:"middle",x:ah({height:I,labelPosition:"center",legendPosition:p,padding:F,width:R}),y:ih({dy:n,height:I,labelPosition:"center",padding:F,width:R})}),s))},V=l.createElement(Ch,Object.assign({allowTooltip:n,height:I,innerRadius:B>0?B:0,key:"pf-chart-donut-pie",legendPosition:p,legendDirection:v,name:h,padAngle:void 0!==g?g:function(e){return e.datum._y>0?T.pie.padAngle:0},padding:y,radius:z>0?z:0,standalone:!1,theme:T,width:R},D)),G=l.cloneElement(u,Object.assign({desc:r,height:I,title:o,width:R,theme:T},u.props),[V,W()]);return w?l.createElement(l.Fragment,null,G):l.createElement(l.Fragment,null,V,W())};Ah.displayName="ChartDonut",s()(Ah,Nf)},8132:function(e,t,n){"use strict";n.d(t,{F:function(){return A},w:function(){return r}});var r,o=n(296),a=n(3906),i=n(1477),l=n(9867),c={alert:"pf-v5-c-alert",alertAction:"pf-v5-c-alert__action",alertActionGroup:"pf-v5-c-alert__action-group",alertDescription:"pf-v5-c-alert__description",alertIcon:"pf-v5-c-alert__icon",alertTitle:"pf-v5-c-alert__title",alertToggle:"pf-v5-c-alert__toggle",alertToggleIcon:"pf-v5-c-alert__toggle-icon",button:"pf-v5-c-button",dirRtl:"pf-v5-m-dir-rtl",modifiers:{custom:"pf-m-custom",success:"pf-m-success",danger:"pf-m-danger",warning:"pf-m-warning",info:"pf-m-info",inline:"pf-m-inline",plain:"pf-m-plain",expandable:"pf-m-expandable",expanded:"pf-m-expanded",truncate:"pf-m-truncate"},themeDark:"pf-v5-theme-dark"},s=n(5017),u=n(6464),f=n(2972),d=n(5618),p=(0,d.w)({name:"InfoCircleIcon",height:512,width:512,svgPath:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z",yOffset:0,xOffset:0}),m=(0,d.w)({name:"BellIcon",height:1024,width:896,svgPath:"M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z",yOffset:0,xOffset:0}),v={success:s.Ay,danger:u.Ay,warning:f.Ay,info:p,custom:m},h=function(e){var t=e.variant,n=e.customIcon,r=e.className,o=void 0===r?"":r,s=(0,a.Tt)(e,["variant","customIcon","className"]),u=v[t];return u?i.createElement("div",Object.assign({},s,{className:(0,l.A)(c.alertIcon,o)}),n||i.createElement(u,null)):null},g=n(1016),y=n(635),b=i.createContext(null),x={name:"--pf-v5-c-alert__title--max-lines",value:"1",var:"var(--pf-v5-c-alert__title--max-lines)"},w=n(9105),O=n(628),S=n(4542),C=function(e){var t=e["aria-label"],n=void 0===t?"":t,r=e.variantLabel,o=e.onToggleExpand,s=e.isExpanded,u=void 0!==s&&s,f=(0,a.Tt)(e,["aria-label","variantLabel","onToggleExpand","isExpanded"]),d=i.useContext(b),p=d.title,m=d.variantLabel;return i.createElement(O.$n,Object.assign({variant:O.Ak.plain,onClick:o,"aria-expanded":u,"aria-label":""===n?"Toggle ".concat(r||m," alert: ").concat(p):n},f),i.createElement("span",{className:(0,l.A)(c.alertToggleIcon)},i.createElement(S.Ay,{"aria-hidden":"true"})))};C.displayName="AlertToggleExpandButton",function(e){e.success="success",e.danger="danger",e.warning="warning",e.info="info",e.custom="custom"}(r||(r={}));var A=function(e){var t=e.variant,n=void 0===t?r.custom:t,s=e.isInline,u=void 0!==s&&s,f=e.isPlain,d=void 0!==f&&f,p=e.isLiveRegion,m=void 0!==p&&p,v=e.variantLabel,O=void 0===v?"".concat((0,g.ZH)(n)," alert:"):v,S=e.actionClose,k=e.actionLinks,_=e.title,E=e.component,P=void 0===E?"h4":E,j=e.children,N=void 0===j?"":j,T=e.className,M=void 0===T?"":T,I=e.ouiaId,L=e.ouiaSafe,R=void 0===L||L,D=e.timeout,F=void 0!==D&&D,z=e.timeoutAnimation,B=void 0===z?3e3:z,H=e.onTimeout,W=void 0===H?function(){}:H,U=e.truncateTitle,X=void 0===U?0:U,V=e.tooltipPosition,G=e.customIcon,q=e.isExpandable,K=void 0!==q&&q,$=e.toggleAriaLabel,Y=void 0===$?"".concat((0,g.ZH)(n)," alert details"):$,Q=e.onMouseEnter,J=void 0===Q?function(){}:Q,Z=e.onMouseLeave,ee=void 0===Z?function(){}:Z,te=e.id,ne=(0,a.Tt)(e,["variant","isInline","isPlain","isLiveRegion","variantLabel","actionClose","actionLinks","title","component","children","className","ouiaId","ouiaSafe","timeout","timeoutAnimation","onTimeout","truncateTitle","tooltipPosition","customIcon","isExpandable","toggleAriaLabel","onMouseEnter","onMouseLeave","id"]),re=(0,y.iK)(A.displayName,I,R,n),oe=i.createElement(i.Fragment,null,i.createElement("span",{className:"pf-v5-screen-reader"},O),_),ae=i.useRef(null),ie=P,le=i.useRef(),ce=(0,i.useState)(!1),se=(0,o.A)(ce,2),ue=se[0],fe=se[1];i.useEffect(function(){if(ae.current&&X){ae.current.style.setProperty(x.name,X.toString());var e=ae.current&&ae.current.offsetHeight0){var t=setTimeout(function(){return ve(!0)},e);return function(){return clearTimeout(t)}}},[F]),i.useEffect(function(){var e=function(){le.current&&(le.current.contains(document.activeElement)?(_e(!0),be(!1)):ke&&_e(!1))};return document.addEventListener("focus",e,!0),function(){return document.removeEventListener("focus",e,!0)}},[ke]),i.useEffect(function(){if(!1===ke||!1===Oe){var e=setTimeout(function(){return be(!0)},B);return function(){return clearTimeout(e)}}},[ke,Oe,B]),i.useEffect(function(){Ee&&W()},[Ee,W]);var Pe=(0,i.useState)(!1),je=(0,o.A)(Pe,2),Ne=je[0],Te=je[1];if(Ee)return null;var Me=i.createElement(ie,Object.assign({},ue&&{tabIndex:0},{ref:ae,className:(0,l.A)(c.alertTitle,X&&c.modifiers.truncate)}),oe);return i.createElement("div",Object.assign({ref:le,className:(0,l.A)(c.alert,u&&c.modifiers.inline,d&&c.modifiers.plain,K&&c.modifiers.expandable,Ne&&c.modifiers.expanded,c.modifiers[n],M)},re,m&&{"aria-live":"polite","aria-atomic":"false"},{onMouseEnter:function(e){Se(!0),be(!1),J(e)},onMouseLeave:function(e){Se(!1),ee(e)},id:te},ne),K&&i.createElement(b.Provider,{value:{title:_,variantLabel:O}},i.createElement("div",{className:(0,l.A)(c.alertToggle)},i.createElement(C,{isExpanded:Ne,onToggleExpand:function(){Te(!Ne)},"aria-label":Y}))),i.createElement(h,{variant:n,customIcon:G}),ue?i.createElement(w.m,{content:oe,position:V},Me):Me,S&&i.createElement(b.Provider,{value:{title:_,variantLabel:O}},i.createElement("div",{className:(0,l.A)(c.alertAction)},S)),N&&(!K||K&&Ne)&&i.createElement("div",{className:(0,l.A)(c.alertDescription)},N),k&&i.createElement("div",{className:(0,l.A)(c.alertActionGroup)},k))};A.displayName="Alert"},1495:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var r=n(3906),o=n(1477),a=n(9867),i="pf-v5-c-badge",l={read:"pf-m-read",unread:"pf-m-unread"},c=function(e){var t=e.isRead,n=void 0!==t&&t,c=e.className,s=void 0===c?"":c,u=e.children,f=void 0===u?"":u,d=e.screenReaderText,p=(0,r.Tt)(e,["isRead","className","children","screenReaderText"]);return o.createElement("span",Object.assign({},p,{className:(0,a.A)(i,n?l.read:l.unread,s)}),f,d&&o.createElement("span",{className:"pf-v5-screen-reader"},d))};c.displayName="Badge"},628:function(e,t,n){"use strict";n.d(t,{$n:function(){return v},Ak:function(){return r}});var r,o,a,i=n(4467),l=n(3906),c=n(1477),s=n(6915),u=n(9867),f=n(9694),d=n(635),p=n(1495);!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"}(r||(r={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(o||(o={})),function(e){e.default="default",e.sm="sm",e.lg="lg"}(a||(a={}));var m=function(e){var t=e.children,n=void 0===t?null:t,m=e.className,h=void 0===m?"":m,g=e.component,y=void 0===g?"button":g,b=e.isActive,x=void 0!==b&&b,w=e.isBlock,O=void 0!==w&&w,S=e.isDisabled,C=void 0!==S&&S,A=e.isAriaDisabled,k=void 0!==A&&A,_=e.isLoading,E=void 0===_?null:_,P=e.isDanger,j=void 0!==P&&P,N=e.spinnerAriaValueText,T=e.spinnerAriaLabelledBy,M=e.spinnerAriaLabel,I=e.size,L=void 0===I?a.default:I,R=e.inoperableEvents,D=void 0===R?["onClick","onKeyPress"]:R,F=e.isInline,z=void 0!==F&&F,B=e.type,H=void 0===B?o.button:B,W=e.variant,U=void 0===W?r.primary:W,X=e.iconPosition,V=void 0===X?"start":X,G=e["aria-label"],q=void 0===G?null:G,K=e.icon,$=void 0===K?null:K,Y=e.ouiaId,Q=e.ouiaSafe,J=void 0===Q||Q,Z=e.tabIndex,ee=void 0===Z?null:Z,te=e.innerRef,ne=e.countOptions,re=(0,l.Tt)(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]),oe=(0,d.iK)(v.displayName,Y,J,U),ae=y,ie="button"===ae,le=z&&"span"===ae,ce=D.reduce(function(e,t){return Object.assign(Object.assign({},e),(0,i.A)({},t,function(e){e.preventDefault()}))},{});return c.createElement(ae,Object.assign({},re,k?ce:null,{"aria-disabled":C||k,"aria-label":q,className:(0,u.A)(s.A.button,s.A.modifiers[U],O&&s.A.modifiers.block,C&&s.A.modifiers.disabled,k&&s.A.modifiers.ariaDisabled,x&&s.A.modifiers.active,z&&U===r.link&&s.A.modifiers.inline,j&&(U===r.secondary||U===r.link)&&s.A.modifiers.danger,null!==E&&U!==r.plain&&s.A.modifiers.progress,E&&s.A.modifiers.inProgress,L===a.sm&&s.A.modifiers.small,L===a.lg&&s.A.modifiers.displayLg,h),disabled:ie?C:null,tabIndex:null!==ee?ee:C?ie?null:-1:k?null:le?0:void 0,type:ie||le?H:null,role:le?"button":null,ref:te},oe),E&&c.createElement("span",{className:(0,u.A)(s.A.buttonProgress)},c.createElement(f.y,{size:f.J.md,isInline:z,"aria-valuetext":N,"aria-label":M,"aria-labelledby":T})),U===r.plain&&null===n&&$?$:null,U!==r.plain&&$&&("start"===V||"left"===V)&&c.createElement("span",{className:(0,u.A)(s.A.buttonIcon,s.A.modifiers.start)},$),n,U!==r.plain&&$&&("end"===V||"right"===V)&&c.createElement("span",{className:(0,u.A)(s.A.buttonIcon,s.A.modifiers.end)},$),ne&&c.createElement("span",{className:(0,u.A)(s.A.buttonCount,ne.className)},c.createElement(p.E,{isRead:ne.isRead},ne.count)))},v=c.forwardRef(function(e,t){return c.createElement(m,Object.assign({innerRef:t},e))});v.displayName="Button"},3844:function(e,t,n){"use strict";n.d(t,{E:function(){return s},Z:function(){return u}});var r=n(296),o=n(3906),a=n(1477),i=n(8492),l=n(9867),c=n(635),s=a.createContext({cardId:"",registerTitleId:function(){},isExpanded:!1,isClickable:!1,isSelectable:!1,isSelected:!1,isClicked:!1,isDisabled:!1}),u=function(e){var t=e.children,n=e.id,f=void 0===n?"":n,d=e.className,p=e.component,m=void 0===p?"div":p,v=e.isCompact,h=void 0!==v&&v,g=e.isSelectable,y=void 0!==g&&g,b=e.isClickable,x=void 0!==b&&b,w=e.isDisabled,O=void 0!==w&&w,S=e.isSelectableRaised,C=void 0!==S&&S,A=e.isSelected,k=void 0!==A&&A,_=e.isClicked,E=void 0!==_&&_,P=e.isDisabledRaised,j=void 0!==P&&P,N=e.isFlat,T=void 0!==N&&N,M=e.isExpanded,I=void 0!==M&&M,L=e.isRounded,R=void 0!==L&&L,D=e.isLarge,F=void 0!==D&&D,z=e.isFullHeight,B=void 0!==z&&z,H=e.isPlain,W=void 0!==H&&H,U=e.ouiaId,X=e.ouiaSafe,V=void 0===X||X,G=e.hasSelectableInput,q=void 0!==G&&G,K=e.selectableInputAriaLabel,$=e.onSelectableInputChange,Y=void 0===$?function(){}:$,Q=(0,o.Tt)(e,["children","id","className","component","isCompact","isSelectable","isClickable","isDisabled","isSelectableRaised","isSelected","isClicked","isDisabledRaised","isFlat","isExpanded","isRounded","isLarge","isFullHeight","isPlain","ouiaId","ouiaSafe","hasSelectableInput","selectableInputAriaLabel","onSelectableInputChange"]),J=m,Z=(0,c.iK)(u.displayName,U,V),ee=a.useState(""),te=(0,r.A)(ee,2),ne=te[0],re=te[1],oe=a.useState(),ae=(0,r.A)(oe,2),ie=ae[0],le=ae[1];h&&F&&(console.warn("Card: Cannot use isCompact with isLarge. Defaulting to isCompact"),F=!1);var ce=a.useRef(!1);return a.useEffect(function(){K?le({"aria-label":K}):ne?le({"aria-labelledby":ne}):q&&!ce.current&&(le({}),console.warn("If no CardTitle component is passed as a child of Card the selectableInputAriaLabel prop must be passed"))},[q,K,ne]),a.createElement(s.Provider,{value:{cardId:f,registerTitleId:function(e){re(e),ce.current=!!e},isExpanded:I,isClickable:x,isSelectable:y,isSelected:k,isClicked:E,isDisabled:O,hasSelectableInput:q}},q&&a.createElement("input",Object.assign({className:"pf-v5-screen-reader",id:"".concat(f,"-input")},ie,{type:"checkbox",checked:k,onChange:function(e){return Y(e,f)},disabled:j,tabIndex:-1})),a.createElement(J,Object.assign({id:f,className:(0,l.A)(i.A.card,h&&i.A.modifiers.compact,I&&i.A.modifiers.expanded,T&&i.A.modifiers.flat,R&&i.A.modifiers.rounded,F&&i.A.modifiers.displayLg,B&&i.A.modifiers.fullHeight,W&&i.A.modifiers.plain,j?(0,l.A)(i.A.modifiers.nonSelectableRaised):C?(0,l.A)(i.A.modifiers.selectableRaised,k&&i.A.modifiers.selectedRaised):y&&x?(0,l.A)(i.A.modifiers.selectable,i.A.modifiers.clickable,(k||E)&&i.A.modifiers.current):y?(0,l.A)(i.A.modifiers.selectable,k&&i.A.modifiers.selected):x?(0,l.A)(i.A.modifiers.clickable,E&&i.A.modifiers.current):"",O&&i.A.modifiers.disabled,d),tabIndex:C?"0":void 0},Q,Z),t))};u.displayName="Card"},2092:function(e,t,n){"use strict";n.d(t,{b:function(){return l}});var r=n(3906),o=n(1477),a=n(8492),i=n(9867),l=function(e){var t=e.children,n=e.className,l=e.component,c=void 0===l?"div":l,s=e.isFilled,u=void 0===s||s,f=(0,r.Tt)(e,["children","className","component","isFilled"]),d=c;return o.createElement(d,Object.assign({className:(0,i.A)(a.A.cardBody,!u&&a.A.modifiers.noFill,n)},f),t)};l.displayName="CardBody"},2881:function(e,t,n){"use strict";n.d(t,{a:function(){return k}});var r=n(3906),o=n(1477),a=n(9867),i=n(8492),l=n(3844),c=function(e){var t=e.children,n=e.className,l=(0,r.Tt)(e,["children","className"]);return o.createElement("div",Object.assign({className:(0,a.A)(i.A.cardHeaderMain,n)},l),t)};c.displayName="CardHeaderMain";var s=function(e){var t=e.children,n=e.className,l=e.hasNoOffset,c=void 0!==l&&l,s=(0,r.Tt)(e,["children","className","hasNoOffset"]);return o.createElement("div",Object.assign({className:(0,a.A)(i.A.cardActions,c&&i.A.modifiers.noOffset,n)},s),t)};s.displayName="CardActions";var u=function(e){var t=e.children,n=e.className,l=(0,r.Tt)(e,["children","className"]);return o.createElement("div",Object.assign({className:(0,a.A)(i.A.cardSelectableActions,n)},l),t)};u.displayName="CardSelectableActions";var f=n(628),d=n(4542),p=n(3029),m=n(2901),v=n(6919),h=n(5501),g={standalone:"pf-m-standalone",disabled:"pf-m-disabled"},y="pf-v5-c-radio",b="pf-v5-c-radio__body",x="pf-v5-c-radio__description",w="pf-v5-c-radio__input",O="pf-v5-c-radio__label",S=n(635),C=function(e){function t(e){var n;return(0,p.A)(this,t),(n=(0,v.A)(this,t,[e])).handleChange=function(e){n.props.onChange(e,e.currentTarget.checked)},e.label||e["aria-label"]||console.error("Radio:","Radio requires an aria-label to be specified"),n.state={ouiaStateId:(0,S.X)(t.displayName)},n}return(0,h.A)(t,e),(0,m.A)(t,[{key:"render",value:function(){var e=this.props,n=e["aria-label"],i=e.checked,l=e.className,c=e.inputClassName,s=e.defaultChecked,u=e.isLabelWrapped,f=e.isLabelBeforeButton,d=e.isChecked,p=e.isDisabled,m=e.isValid,v=e.label,h=(e.onChange,e.description),C=e.body,A=e.ouiaId,k=e.ouiaSafe,_=void 0===k||k,E=e.component,P=(0,r.Tt)(e,["aria-label","checked","className","inputClassName","defaultChecked","isLabelWrapped","isLabelBeforeButton","isChecked","isDisabled","isValid","label","onChange","description","body","ouiaId","ouiaSafe","component"]);P.id||console.error("Radio:","id is required to make input accessible");var j=o.createElement("input",Object.assign({},P,{className:(0,a.A)(w,c),type:"radio",onChange:this.handleChange,"aria-invalid":!m,disabled:p,checked:i||d},void 0===i&&{defaultChecked:s},!v&&{"aria-label":n},(0,S.Bs)(t.displayName,void 0!==A?A:this.state.ouiaStateId,_))),N=u&&!E||"label"===E,T=N?"span":"label",M=v?o.createElement(T,{className:(0,a.A)(O,p&&g.disabled),htmlFor:N?void 0:P.id},v):null,I=null!==E&&void 0!==E?E:N?"label":"div";return o.createElement(I,{className:(0,a.A)(y,!v&&g.standalone,l),htmlFor:N?P.id:void 0},f?o.createElement(o.Fragment,null,M,j):o.createElement(o.Fragment,null,j,M),h&&o.createElement("span",{className:(0,a.A)(x)},h),C&&o.createElement("span",{className:(0,a.A)(b)},C))}}])}(o.Component);C.displayName="Radio",C.defaultProps={className:"",isDisabled:!1,isValid:!0,onChange:function(){}};var A=n(2018),k=function(e){var t=e.children,n=e.className,p=e.actions,m=e.selectableActions,v=e.id,h=e.onExpand,g=e.toggleButtonProps,y=e.isToggleRightAligned,b=(0,r.Tt)(e,["children","className","actions","selectableActions","id","onExpand","toggleButtonProps","isToggleRightAligned"]);return o.createElement(l.E.Consumer,null,function(e){var r=e.cardId,l=e.isClickable,x=e.isSelectable,w=e.isSelected,O=e.isClicked,S=e.isDisabled,k=e.hasSelectableInput,_=o.createElement("div",{className:(0,a.A)(i.A.cardHeaderToggle)},o.createElement(f.$n,Object.assign({variant:"plain",type:"button",onClick:function(e){h(e,r)}},g),o.createElement("span",{className:(0,a.A)(i.A.cardHeaderToggleIcon)},o.createElement(d.Ay,{"aria-hidden":"true"})))),E=l&&!x||x&&!l,P=k;(null===p||void 0===p?void 0:p.actions)&&E&&!P&&console.warn("".concat(l?"Clickable":"Selectable"," only cards should not contain any other actions. If you wish to include additional actions, use a clickable and selectable card."));var j=function(e){(null===m||void 0===m?void 0:m.onClickAction)?m.onClickAction(e):(null===m||void 0===m?void 0:m.to)&&window.open(m.to,m.isExternalLink?"_blank":"_self")},N=function(){var e,t={className:"pf-m-standalone",inputClassName:l&&!x&&"pf-v5-screen-reader",label:o.createElement(o.Fragment,null),"aria-label":m.selectableActionAriaLabel,"aria-labelledby":m.selectableActionAriaLabelledby,id:m.selectableActionId,name:m.name,isDisabled:S},n=null!==(e=m.isChecked)&&void 0!==e?e:w;return l&&!x?Object.assign(Object.assign({},t),{onClick:j,isChecked:O}):x?Object.assign(Object.assign({},t),{onChange:m.onChange,isChecked:n}):t};return o.createElement("div",Object.assign({className:(0,a.A)(i.A.cardHeader,y&&i.A.modifiers.toggleRight,n),id:v},b),h&&!y&&_,(p||m&&(l||x))&&o.createElement(s,{className:null===p||void 0===p?void 0:p.className,hasNoOffset:(null===p||void 0===p?void 0:p.hasNoOffset)||(null===m||void 0===m?void 0:m.hasNoOffset)},null===p||void 0===p?void 0:p.actions,m&&(l||x)&&o.createElement(u,{className:null===m||void 0===m?void 0:m.className},"single"===(null===m||void 0===m?void 0:m.variant)||l&&!x?o.createElement(C,Object.assign({},N())):o.createElement(A.S,Object.assign({},N())))),t&&o.createElement(c,null,t),h&&y&&_)})};k.displayName="CardHeader"},4900:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(3906),o=n(1477),a=n(9867),i=n(8492),l=n(3844),c=function(e){var t=e.children,n=e.className,c=e.component,s=void 0===c?"div":c,u=(0,r.Tt)(e,["children","className","component"]),f=o.useContext(l.E),d=f.cardId,p=f.registerTitleId,m=s,v=d?"".concat(d,"-title"):"";return o.useEffect(function(){return p(v),function(){return p("")}},[p,v]),o.createElement("div",{className:(0,a.A)(i.A.cardTitle)},o.createElement(m,Object.assign({className:(0,a.A)(i.A.cardTitleText,n),id:v||void 0},u),t))};c.displayName="CardTitle"},2018:function(e,t,n){"use strict";n.d(t,{S:function(){return m}});var r=n(3029),o=n(2901),a=n(6919),i=n(5501),l=n(3906),c=n(1477),s=n(1284),u=n(9867),f=n(635),d=n(6032),p=function(){},m=function(e){function t(e){var n;return(0,r.A)(this,t),(n=(0,a.A)(this,t,[e])).handleChange=function(e){n.props.onChange(e,e.currentTarget.checked)},n.state={ouiaStateId:(0,f.X)(t.displayName)},n}return(0,i.A)(t,e),(0,o.A)(t,[{key:"render",value:function(){var e=this.props,n=e["aria-label"],r=e.className,o=e.inputClassName,a=e.onChange,i=e.isLabelWrapped,m=e.isLabelBeforeButton,v=e.isValid,h=e.isDisabled,g=e.isRequired,y=e.isChecked,b=e.label,x=e.checked,w=e.defaultChecked,O=e.description,S=e.body,C=e.ouiaId,A=e.ouiaSafe,k=e.component,_=(0,l.Tt)(e,["aria-label","className","inputClassName","onChange","isLabelWrapped","isLabelBeforeButton","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);_.id||console.error("Checkbox:","id is required to make input accessible");var E={};([!0,!1].includes(x)||!0===y)&&(E.checked=x||y),a!==p&&(E.checked=y),[!1,!0].includes(w)&&(E.defaultChecked=w);var P=c.createElement("input",Object.assign({},_,{className:(0,u.A)(s.A.checkInput,o),type:"checkbox",onChange:this.handleChange,"aria-invalid":!v,"aria-label":n,disabled:h,required:g,ref:function(e){return e&&(e.indeterminate=null===y)}},E,(0,f.Bs)(t.displayName,void 0!==C?C:this.state.ouiaStateId,A))),j=i&&!k||"label"===k,N=j?"span":"label",T=b?c.createElement(N,{className:(0,u.A)(s.A.checkLabel,h&&s.A.modifiers.disabled),htmlFor:j?void 0:_.id},b,g&&c.createElement("span",{className:(0,u.A)(s.A.checkLabelRequired),"aria-hidden":"true"},d.L)):null,M=null!==k&&void 0!==k?k:j?"label":"div";return E.checked=null!==E.checked&&E.checked,c.createElement(M,{className:(0,u.A)(s.A.check,!b&&s.A.modifiers.standalone,r),htmlFor:j?_.id:void 0},m?c.createElement(c.Fragment,null,T,P):c.createElement(c.Fragment,null,P,T),O&&c.createElement("span",{className:(0,u.A)(s.A.checkDescription)},O),S&&c.createElement("span",{className:(0,u.A)(s.A.checkBody)},S))}}])}(c.Component);m.displayName="Checkbox",m.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:p,ouiaSafe:!0}},260:function(e,t,n){"use strict";n.d(t,{B:function(){return p}});var r=n(4467),o=n(3906),a=n(1477),i=n(9867),l=n(2189),c=n(1016),s={name:"--pf-v5-c-description-list--GridTemplateColumns--min",value:"0",var:"var(--pf-v5-c-description-list--GridTemplateColumns--min)"},u={name:"--pf-v5-c-description-list__term--width",value:"12ch",var:"var(--pf-v5-c-description-list__term--width)"},f={name:"--pf-v5-c-description-list--m-horizontal__term--width",value:"fit-content(20ch)",var:"var(--pf-v5-c-description-list--m-horizontal__term--width)"},d=function(e,t){var n=t;return Object.keys(n||{}).reduce(function(t,o){return"default"===o?Object.assign(Object.assign({},t),(0,r.A)({},e,n[o])):Object.assign(Object.assign({},t),(0,r.A)({},"".concat(e,"-on-").concat(o),n[o]))},{})},p=function(e){var t=e.className,n=void 0===t?"":t,p=e.children,m=void 0===p?null:p,v=e.isHorizontal,h=void 0!==v&&v,g=e.isAutoColumnWidths,y=e.isAutoFit,b=e.isInlineGrid,x=e.isCompact,w=e.isFluid,O=e.isFillColumns,S=e.displaySize,C=void 0===S?"default":S,A=e.columnModifier,k=e.autoFitMinModifier,_=e.termWidth,E=e.horizontalTermWidthModifier,P=e.orientation,j=e.style,N=(0,o.Tt)(e,["className","children","isHorizontal","isAutoColumnWidths","isAutoFit","isInlineGrid","isCompact","isFluid","isFillColumns","displaySize","columnModifier","autoFitMinModifier","termWidth","horizontalTermWidthModifier","orientation","style"]);return y&&k&&(j=Object.assign(Object.assign({},j),d(s.name,k))),_&&(j=Object.assign(Object.assign({},j),(0,r.A)({},u.name,_))),h&&E&&(j=Object.assign(Object.assign({},j),d(f.name,E))),a.createElement("dl",Object.assign({className:(0,i.A)(l.A.descriptionList,(h||w)&&l.A.modifiers.horizontal,g&&l.A.modifiers.autoColumnWidths,y&&l.A.modifiers.autoFit,(0,c.ay)(A,l.A),(0,c.ay)(P,l.A),b&&l.A.modifiers.inlineGrid,x&&l.A.modifiers.compact,w&&l.A.modifiers.fluid,O&&l.A.modifiers.fillColumns,"lg"===C&&l.A.modifiers.displayLg,"2xl"===C&&l.A.modifiers.display_2xl,n),style:j},N),m)};p.displayName="DescriptionList"},4646:function(e,t,n){"use strict";n.d(t,{d:function(){return l}});var r=n(3906),o=n(1477),a=n(2189),i=n(9867),l=function(e){var t=e.children,n=void 0===t?null:t,l=e.className,c=(0,r.Tt)(e,["children","className"]);return o.createElement("dd",Object.assign({className:(0,i.A)(a.A.descriptionListDescription,l)},c),o.createElement("div",{className:(0,i.A)(a.A.descriptionListText)},n))};l.displayName="DescriptionListDescription"},5767:function(e,t,n){"use strict";n.d(t,{W:function(){return l}});var r=n(3906),o=n(1477),a=n(2189),i=n(9867),l=function(e){var t=e.className,n=e.children,l=(0,r.Tt)(e,["className","children"]);return o.createElement("div",Object.assign({className:(0,i.A)(a.A.descriptionListGroup,t)},l),n)};l.displayName="DescriptionListGroup"},3144:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var r=n(3906),o=n(1477),a=n(2189),i=n(9867),l=function(e){var t=e.children,n=e.className,l=e.icon,c=(0,r.Tt)(e,["children","className","icon"]);return o.createElement("dt",Object.assign({className:(0,i.A)(a.A.descriptionListTerm,n)},c),l?o.createElement("span",{className:(0,i.A)(a.A.descriptionListTermIcon)},l):null,o.createElement("span",{className:(0,i.A)(a.A.descriptionListText)},t))};l.displayName="DescriptionListTerm"},9341:function(e,t,n){"use strict";n.d(t,{c:function(){return s}});var r,o=n(3906),a=n(1477),i=n(9867),l={divider:"pf-v5-c-divider",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",vertical:"pf-m-vertical",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}},c=n(1016);!function(e){e.hr="hr",e.li="li",e.div="div"}(r||(r={}));var s=function(e){var t=e.className,n=e.component,s=void 0===n?r.hr:n,u=e.inset,f=e.orientation,d=(0,o.Tt)(e,["className","component","inset","orientation"]),p=s;return a.createElement(p,Object.assign({className:(0,i.A)(l.divider,(0,c.ay)(u,l),(0,c.ay)(f,l),t)},"hr"!==s&&{role:"separator"},d))};s.displayName="Divider"},1792:function(e,t,n){"use strict";n.d(t,{p:function(){return c},s:function(){return r}});var r,o=n(3906),a=n(1477),i=n(9867),l=n(3368);!function(e){e.xs="xs",e.sm="sm",e.lg="lg",e.xl="xl",e.full="full"}(r||(r={}));var c=function(e){var t=e.children,n=e.className,c=e.variant,s=void 0===c?r.full:c,u=e.isFullHeight,f=(0,o.Tt)(e,["children","className","variant","isFullHeight"]);return a.createElement("div",Object.assign({className:(0,i.A)(l.A.emptyState,"xs"===s&&l.A.modifiers.xs,"sm"===s&&l.A.modifiers.sm,"lg"===s&&l.A.modifiers.lg,"xl"===s&&l.A.modifiers.xl,u&&l.A.modifiers.fullHeight,n)},f),a.createElement("div",{className:(0,i.A)(l.A.emptyStateContent)},t))};c.displayName="EmptyState"},4072:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(3906),o=n(1477),a=n(9867),i=n(3368),l=function(e){var t=e.children,n=e.className,l=(0,r.Tt)(e,["children","className"]);return o.createElement("div",Object.assign({className:(0,a.A)(i.A.emptyStateBody,n)},l),t)};l.displayName="EmptyStateBody"},3093:function(e,t,n){"use strict";n.d(t,{o:function(){return l}});var r=n(3906),o=n(1477),a=n(9867),i=n(3368),l=function(e){var t=e.children,n=e.className,l=e.titleClassName,c=e.titleText,s=e.headingLevel,u=void 0===s?"h1":s,f=e.icon,d=(0,r.Tt)(e,["children","className","titleClassName","titleText","headingLevel","icon"]);return o.createElement("div",Object.assign({className:(0,a.A)("".concat(i.A.emptyState,"__header"),n)},d),f,(c||t)&&o.createElement("div",{className:(0,a.A)("".concat(i.A.emptyState,"__title"))},c&&o.createElement(u,{className:(0,a.A)(i.A.emptyStateTitleText,l)},c),t))};l.displayName="EmptyStateHeader"},297:function(e,t,n){"use strict";n.d(t,{q:function(){return u}});var r=n(4467),o=n(3906),a=n(1477),i=n(9867),l=n(3368),c=n(9694),s={name:"--pf-v5-c-empty-state__icon--Color",value:"#6a6e73",var:"var(--pf-v5-c-empty-state__icon--Color)"},u=function(e){var t=e.className,n=e.icon,u=e.color,f=(0,o.Tt)(e,["className","icon","color"]),d=a.createElement(n,null).type===c.y;return a.createElement("div",Object.assign({className:(0,i.A)(l.A.emptyStateIcon)},u&&!d&&{style:(0,r.A)({},s.name,u)}),a.createElement(n,Object.assign({className:t,"aria-hidden":!d},f)))};u.displayName="EmptyStateIcon"},4486:function(e,t,n){"use strict";n.d(t,{Q:function(){return O},J:function(){return r}});var r,o=n(3029),a=n(2901),i=n(6919),l=n(5501),c=n(3906),s=n(1477),u="pf-v5-c-expandable-section",f="pf-v5-c-expandable-section__content",d="pf-v5-c-expandable-section__toggle",p="pf-v5-c-expandable-section__toggle-icon",m="pf-v5-c-expandable-section__toggle-text",v={expanded:"pf-m-expanded",detached:"pf-m-detached",truncate:"pf-m-truncate",limitWidth:"pf-m-limit-width",displayLg:"pf-m-display-lg",indented:"pf-m-indented",active:"pf-m-active",expandTop:"pf-m-expand-top"},h=n(9867),g={name:"--pf-v5-c-expandable-section--m-truncate__content--LineClamp",value:"3",var:"var(--pf-v5-c-expandable-section--m-truncate__content--LineClamp)"},y=n(4542),b=n(1016),x=n(4930);!function(e){e.default="default",e.truncate="truncate"}(r||(r={}));var w=function(e,t){!t||e<1||t.style.setProperty(g.name,e.toString())},O=function(e){function t(e){var n;return(0,o.A)(this,t),(n=(0,i.A)(this,t,[e])).expandableContentRef=s.createRef(),n.observer=function(){},n.checkToggleVisibility=function(){var e;if(null===(e=n.expandableContentRef)||void 0===e?void 0:e.current){var t=n.props.truncateMaxLines||parseInt(g.value),r=n.expandableContentRef.current.scrollHeight/parseInt(getComputedStyle(n.expandableContentRef.current).lineHeight);n.setState({hasToggle:r>t})}},n.resize=function(){if(n.expandableContentRef.current){var e=n.expandableContentRef.current.offsetWidth;n.state.previousWidth!==e&&(n.setState({previousWidth:e}),n.checkToggleVisibility())}},n.handleResize=(0,b.sg)(n.resize,250),n.state={isExpanded:e.isExpanded||!1,hasToggle:!0,previousWidth:void 0},n}return(0,l.A)(t,e),(0,a.A)(t,[{key:"calculateToggleText",value:function(e,t,n,r){return r&&""!==t?t:r||""===n?e:n}},{key:"componentDidMount",value:function(){if(this.props.variant===r.truncate){var e=this.expandableContentRef.current;if(!e)return;this.setState({previousWidth:e.offsetWidth}),this.observer=(0,x.N)(e,this.handleResize,!1),this.props.truncateMaxLines&&w(this.props.truncateMaxLines,e),this.checkToggleVisibility()}}},{key:"componentDidUpdate",value:function(e){if(this.props.variant===r.truncate&&this.props.truncateMaxLines&&this.expandableContentRef.current&&(e.truncateMaxLines!==this.props.truncateMaxLines||e.children!==this.props.children)){var t=this.expandableContentRef.current;w(this.props.truncateMaxLines,t),this.checkToggleVisibility()}}},{key:"componentWillUnmount",value:function(){this.props.variant===r.truncate&&this.observer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.onToggle,o=t.isActive,a=t.className,i=t.toggleText,l=t.toggleTextExpanded,g=t.toggleTextCollapsed,x=t.toggleContent,w=t.children,O=t.isExpanded,S=t.isDetached,C=t.displaySize,A=t.isWidthLimited,k=t.isIndented,_=t.contentId,E=t.toggleId,P=t.variant,j=(t.truncateMaxLines,(0,c.Tt)(t,["onToggle","isActive","className","toggleText","toggleTextExpanded","toggleTextCollapsed","toggleContent","children","isExpanded","isDetached","displaySize","isWidthLimited","isIndented","contentId","toggleId","variant","truncateMaxLines"]));S&&!E&&console.warn("ExpandableSection: The toggleId value must be passed in and must match the toggleId of the ExpandableSectionToggle.");var N=n,T=O,M=_||(0,b.LP)("expandable-section-content"),I=E||(0,b.LP)("expandable-section-toggle");void 0===O&&(T=this.state.isExpanded,N=function(t,r){e.setState({isExpanded:r},function(){return null===n||void 0===n?void 0:n(t,e.state.isExpanded)})});var L=this.calculateToggleText(i,l,g,T),R=!S&&s.createElement("button",{className:(0,h.A)(d),type:"button","aria-expanded":T,"aria-controls":M,id:I,onClick:function(e){return null===N||void 0===N?void 0:N(e,!T)}},P!==r.truncate&&s.createElement("span",{className:(0,h.A)(p)},s.createElement(y.Ay,{"aria-hidden":!0})),s.createElement("span",{className:(0,h.A)(m)},x||L));return s.createElement("div",Object.assign({className:(0,h.A)(u,T&&v.expanded,o&&v.active,S&&v.detached,"lg"===C&&v.displayLg,A&&v.limitWidth,k&&v.indented,P===r.truncate&&v.truncate,a)},j),P===r.default&&R,s.createElement("div",{ref:this.expandableContentRef,className:(0,h.A)(f),hidden:P!==r.truncate&&!T,id:M,"aria-labelledby":I,role:"region"},w),P===r.truncate&&this.state.hasToggle&&R)}}])}(s.Component);O.displayName="ExpandableSection",O.defaultProps={className:"",toggleText:"",toggleTextExpanded:"",toggleTextCollapsed:"",onToggle:function(e,t){},isActive:!1,isDetached:!1,displaySize:"default",isWidthLimited:!1,isIndented:!1,variant:"default"}},6180:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(3906),o=n(1477),a={icon:"pf-v5-c-icon",iconContent:"pf-v5-c-icon__content",iconProgress:"pf-v5-c-icon__progress",modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl",inProgress:"pf-m-in-progress",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",info:"pf-m-info",custom:"pf-m-custom"},spinner:"pf-v5-c-spinner"},i=n(9867),l=n(9694),c=function(e){var t=e.children,n=e.className,c=e.progressIcon,s=e.size,u=e.iconSize,f=e.progressIconSize,d=e.status,p=e.isInline,m=void 0!==p&&p,v=e.isInProgress,h=void 0!==v&&v,g=e.defaultProgressArialabel,y=void 0===g?"Loading...":g,b=e.shouldMirrorRTL,x=void 0!==b&&b,w=(0,r.Tt)(e,["children","className","progressIcon","size","iconSize","progressIconSize","status","isInline","isInProgress","defaultProgressArialabel","shouldMirrorRTL"]),O=null!==c&&void 0!==c?c:o.createElement(l.y,{diameter:"1em","aria-label":y});return o.createElement("span",Object.assign({className:(0,i.A)(a.icon,m&&a.modifiers.inline,h&&a.modifiers.inProgress,a.modifiers[s],n)},w),o.createElement("span",{className:(0,i.A)(a.iconContent,a.modifiers[u],a.modifiers[d],x&&"pf-v5-m-mirror-inline-rtl")},t),h&&o.createElement("span",{className:(0,i.A)(a.iconProgress,a.modifiers[f],n)},O))};c.displayName="Icon"},9133:function(e,t,n){"use strict";n.d(t,{J:function(){return h}});var r=n(4467),o=n(296),a=n(3906),i=n(1477),l=n(7175),c=n(8954),s=n(628),u=n(9105),f=n(9867),d=n(7152),p=n(550),m={name:"--pf-v5-c-label__text--MaxWidth",value:"100%",var:"var(--pf-v5-c-label__text--MaxWidth)"},v={blue:l.A.modifiers.blue,cyan:l.A.modifiers.cyan,green:l.A.modifiers.green,orange:l.A.modifiers.orange,purple:l.A.modifiers.purple,red:l.A.modifiers.red,gold:l.A.modifiers.gold,grey:""},h=function(e){var t=e.children,n=e.className,h=void 0===n?"":n,g=e.color,y=void 0===g?"grey":g,b=e.variant,x=void 0===b?"filled":b,w=e.isCompact,O=void 0!==w&&w,S=e.isDisabled,C=void 0!==S&&S,A=e.isEditable,k=void 0!==A&&A,_=e.editableProps,E=e.textMaxWidth,P=e.tooltipPosition,j=e.icon,N=e.onClose,T=e.onClick,M=e.onEditCancel,I=e.onEditComplete,L=e.closeBtn,R=e.closeBtnAriaLabel,D=e.closeBtnProps,F=e.href,z=e.isOverflowLabel,B=e.render,H=(0,a.Tt)(e,["children","className","color","variant","isCompact","isDisabled","isEditable","editableProps","textMaxWidth","tooltipPosition","icon","onClose","onClick","onEditCancel","onEditComplete","closeBtn","closeBtnAriaLabel","closeBtnProps","href","isOverflowLabel","render"]),W=(0,i.useState)(!1),U=(0,o.A)(W,2),X=U[0],V=U[1],G=(0,i.useState)(t),q=(0,o.A)(G,2),K=q[0],$=q[1],Y=i.useRef(),Q=i.useRef();i.useEffect(function(){return document.addEventListener("mousedown",J),document.addEventListener("keydown",Z),function(){document.removeEventListener("mousedown",J),document.removeEventListener("keydown",Z)}}),i.useEffect(function(){T&&F?console.warn("Link labels cannot have onClick passed, this results in invalid HTML. Please remove either the href or onClick prop."):T&&k&&console.warn("Editable labels cannot have onClick passed, clicking starts the label edit process. Please remove either the isEditable or onClick prop.")},[T,F,k]);var J=function(e){X&&Q&&Q.current&&!Q.current.contains(e.target)&&(Q.current.value&&I&&I(e,Q.current.value),V(!1))},Z=function(e){var n,r,o=e.key;if((X||Y&&Y.current&&Y.current.contains(e.target))&&(!X||Q&&Q.current&&Q.current.contains(e.target))&&(!X||"Enter"!==o&&"Tab"!==o||(e.preventDefault(),e.stopImmediatePropagation(),Q.current.value&&I&&I(e,Q.current.value),V(!1),null===(n=null===Y||void 0===Y?void 0:Y.current)||void 0===n||n.focus()),X&&"Escape"===o&&(e.preventDefault(),e.stopImmediatePropagation(),Q.current.value&&(Q.current.value=t,M&&M(e,t)),V(!1),null===(r=null===Y||void 0===Y?void 0:Y.current)||void 0===r||r.focus()),!X&&"Enter"===o)){e.preventDefault(),e.stopImmediatePropagation(),V(!0);var a=e.target,i=document.createRange(),l=window.getSelection();i.selectNodeContents(a),i.collapse(!1),l.removeAllRanges(),l.addRange(i)}},ee=(F||T)&&C,te=i.createElement(s.$n,Object.assign({type:"button",variant:"plain",onClick:N,"aria-label":R||"Close ".concat(t)},ee&&{isDisabled:!0},D),i.createElement(d.Ay,null)),ne=i.createElement("span",{className:(0,f.A)(l.A.labelActions)},L||te),re=i.createRef(),oe=i.useRef(),ae=i.useState(!1),ie=(0,o.A)(ae,2),le=ie[0],ce=ie[1];(0,p.E)(function(){var e=k?Y:re;X||ce(e.current&&e.current.offsetWidthx&&c.createElement("li",{className:(0,f.A)(s.A.labelGroupListItem)},c.createElement(p.J,{isOverflowLabel:!0,onClick:e.toggleCollapse,className:(0,f.A)(i&&u.A.modifiers.compact)},P?w:T)),_&&c.createElement("li",{className:(0,f.A)(s.A.labelGroupListItem)},_),C&&A&&c.createElement("li",{className:(0,f.A)(s.A.labelGroupListItem,s.A.modifiers.textarea)},c.createElement("textarea",Object.assign({className:(0,f.A)(s.A.labelGroupTextarea),rows:1,tabIndex:0},k))))),h=c.createElement("div",{className:(0,f.A)(s.A.labelGroupClose)},c.createElement(d.$n,{variant:"plain","aria-label":m,onClick:b,id:"remove_group_".concat(t),"aria-labelledby":"remove_group_".concat(t," ").concat(t)},c.createElement(v.Ay,{"aria-hidden":"true"})));return c.createElement("div",{className:(0,f.A)(s.A.labelGroup,o,n&&s.A.modifiers.category,S&&s.A.modifiers.vertical,C&&s.A.modifiers.editable)},c.createElement("div",{className:(0,f.A)(s.A.labelGroupMain)},l),a&&h)}(e.props.id||t)})}}])}(c.Component);y.displayName="LabelGroup",y.defaultProps={expandedText:"Show Less",collapsedText:"${remaining} more",categoryName:"",defaultIsOpen:!1,numLabels:3,isClosable:!1,isCompact:!1,onClick:function(e){},closeBtnAriaLabel:"Close label group",tooltipPosition:"top","aria-label":"Label group category",isVertical:!1,isEditable:!1,hasEditableTextArea:!1}},1352:function(e,t,n){"use strict";n.d(t,{B8:function(){return u}});var r,o,a,i=n(3906),l=n(1477),c=n(5287),s=n(9867);!function(e){e.number="1",e.lowercaseLetter="a",e.uppercaseLetter="A",e.lowercaseRomanNumber="i",e.uppercaseRomanNumber="I"}(r||(r={})),function(e){e.inline="inline"}(o||(o={})),function(e){e.ol="ol",e.ul="ul"}(a||(a={}));var u=function(e){var t=e.className,n=void 0===t?"":t,o=e.children,u=void 0===o?null:o,f=e.variant,d=void 0===f?null:f,p=e.isBordered,m=void 0!==p&&p,v=e.isPlain,h=void 0!==v&&v,g=e.iconSize,y=void 0===g?"default":g,b=e.type,x=void 0===b?r.number:b,w=e.ref,O=void 0===w?null:w,S=e.component,C=void 0===S?a.ul:S,A=(0,i.Tt)(e,["className","children","variant","isBordered","isPlain","iconSize","type","ref","component"]);return C===a.ol?l.createElement("ol",Object.assign({ref:O,type:x},h&&{role:"list"},A,{className:(0,s.A)(c.A.list,d&&c.A.modifiers[d],m&&c.A.modifiers.bordered,h&&c.A.modifiers.plain,y&&"large"===y&&c.A.modifiers.iconLg,n)}),u):l.createElement("ul",Object.assign({ref:O},h&&{role:"list"},A,{className:(0,s.A)(c.A.list,d&&c.A.modifiers[d],m&&c.A.modifiers.bordered,h&&c.A.modifiers.plain,y&&"large"===y&&c.A.modifiers.iconLg,n)}),u)};u.displayName="List"},3571:function(e,t,n){"use strict";n.d(t,{c:function(){return l}});var r=n(3906),o=n(1477),a=n(5287),i=n(9867),l=function(e){var t=e.icon,n=void 0===t?null:t,l=e.children,c=void 0===l?null:l,s=(0,r.Tt)(e,["icon","children"]);return o.createElement("li",Object.assign({className:(0,i.A)(n&&a.A.listItem)},s),n&&o.createElement("span",{className:(0,i.A)(a.A.listItemIcon)},n),c)};l.displayName="ListItem"},1684:function(e,t,n){"use strict";n.d(t,{W:function(){return y}});var r=n(3029),o=n(2901),a=n(6919),i=n(5501),l=n(3906),c=n(1477),s=n(8204),u="pf-v5-c-breadcrumb__link",f="pf-v5-c-dropdown__toggle",d=n(9867),p=n(635),m=n(1631),v=n(1016),h=n(6841),g=function(e){function t(e){var n;return(0,r.A)(this,t),(n=(0,a.A)(this,t,[e])).menuRef=c.createRef(),n.activeMenu=null,n.state={ouiaStateId:(0,p.X)(y.displayName),transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:n.props.id},n.handleDrilldownTransition=function(e){var t=n.menuRef.current;if(t&&(t===e.target.closest(".".concat(s.A.menu))||Array.from(t.getElementsByClassName(s.A.menu)).includes(e.target.closest(".".concat(s.A.menu)))))if(n.state.transitionMoveTarget)n.state.transitionMoveTarget.focus(),n.setState({transitionMoveTarget:null});else{var r=t.querySelector("#"+n.props.activeMenu)||t||null,o=r.getElementsByTagName("UL");if(0===o.length)return;var a=Array.from(o[0].children);if(n.state.currentDrilldownMenuId&&r.id===n.state.currentDrilldownMenuId)return;n.setState({currentDrilldownMenuId:r.id});var i=a.filter(function(e){return!(e.classList.contains("pf-m-disabled")||e.classList.contains(s.A.divider))})[0].firstChild;i.focus(),i.tabIndex=0}},n.handleExtraKeys=function(e){var t=n.props.containsDrilldown,r=document.activeElement;if(e.target.closest(".".concat(s.A.menu))===n.activeMenu||e.target.classList.contains(u)||(n.activeMenu=e.target.closest(".".concat(s.A.menu)),n.setState({disableHover:!0})),"INPUT"!==e.target.tagName){var o=n.activeMenu,a=e.key,i=r.classList.contains(u)||r.classList.contains(f);if(" "===a||"Enter"===a){if(e.preventDefault(),t&&!i)if(r.closest("li").classList.contains("pf-m-current-path")&&"LI"===o.parentElement.tagName)r.tabIndex=-1,o.parentElement.firstChild.tabIndex=0,n.setState({transitionMoveTarget:o.parentElement.firstChild});else if(r.nextElementSibling&&r.nextElementSibling.classList.contains(s.A.menu)){var l=Array.from(r.nextElementSibling.getElementsByTagName("UL")[0].children).filter(function(e){return!(e.classList.contains("pf-m-disabled")||e.classList.contains(s.A.divider))});r.tabIndex=-1,l[0].firstChild.tabIndex=0,n.setState({transitionMoveTarget:l[0].firstChild})}document.activeElement.click()}}},n.createNavigableElements=function(){return n.props.containsDrilldown?n.activeMenu?Array.from(n.activeMenu.getElementsByTagName("UL")[0].children).filter(function(e){return!(e.classList.contains("pf-m-disabled")||e.classList.contains(s.A.divider))}):[]:n.menuRef.current?Array.from(n.menuRef.current.getElementsByTagName("LI")).filter(function(e){return!(e.classList.contains("pf-m-disabled")||e.classList.contains(s.A.divider))}):[]},e.innerRef&&(n.menuRef=e.innerRef),n}return(0,i.A)(t,e),(0,o.A)(t,[{key:"allowTabFirstItem",value:function(){var e=this.menuRef.current;if(e){var t=e.querySelector("ul button:not(:disabled), ul a:not(:disabled)");t&&(t.tabIndex=0)}}},{key:"componentDidMount",value:function(){this.context&&this.setState({disableHover:this.context.disableHover}),v.Sw&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}},{key:"componentWillUnmount",value:function(){v.Sw&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}},{key:"componentDidUpdate",value:function(e){e.children!==this.props.children&&this.allowTabFirstItem()}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,r=t.children,o=t.className,a=t.onSelect,i=t.selected,v=void 0===i?null:i,g=t.onActionClick,b=t.ouiaId,x=t.ouiaSafe,w=t.containsFlyout,O=t.isNavFlyout,S=t.containsDrilldown,C=t.isMenuDrilledIn,A=t.isPlain,k=t.isScrollable,_=t.drilldownItemPath,E=t.drilledInMenus,P=t.onDrillIn,j=t.onDrillOut,N=t.onGetMenuHeight,T=t.parentMenu,M=void 0===T?null:T,I=t.activeItemId,L=void 0===I?null:I,R=(t.innerRef,t.isRootMenu),D=(t.activeMenu,t.role),F=(0,l.Tt)(t,["id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","isNavFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role"]),z=C||E&&E.includes(n)||!1;return c.createElement(m.x.Provider,{value:{menuId:n,parentMenu:M||n,onSelect:a,onActionClick:g,activeItemId:L,selected:v,drilledInMenus:E,drilldownItemPath:_,onDrillIn:P,onDrillOut:j,onGetMenuHeight:N,flyoutRef:this.state.flyoutRef,setFlyoutRef:function(t){return e.setState({flyoutRef:t})},disableHover:this.state.disableHover,role:D}},R&&c.createElement(h.oV,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:function(e){return document.activeElement.closest("li")===e||document.activeElement.parentElement===e||document.activeElement.closest(".".concat(s.A.menuSearch))===e||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===e},getFocusableElement:function(e){var t,n;return"DIV"===(null===e||void 0===e?void 0:e.tagName)&&e.querySelector("input")||"LABEL"===(null===(t=e.firstChild)||void 0===t?void 0:t.tagName)&&e.querySelector("input")||"DIV"===(null===(n=e.firstChild)||void 0===n?void 0:n.tagName)&&e.querySelector("a, button, input")||e.firstChild},noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains(u)||document.activeElement.classList.contains(f)||"INPUT"===document.activeElement.tagName),noEnterHandling:!0,noSpaceHandling:!0}),c.createElement("div",Object.assign({id:n,className:(0,d.A)(s.A.menu,A&&s.A.modifiers.plain,k&&s.A.modifiers.scrollable,w&&s.A.modifiers.flyout,O&&s.A.modifiers.nav,S&&s.A.modifiers.drilldown,z&&s.A.modifiers.drilledIn,o),ref:this.menuRef},(0,p.Bs)(y.displayName,void 0!==b?b:this.state.ouiaStateId,x),F),r))}}])}(c.Component);g.displayName="Menu",g.contextType=m.x,g.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};var y=c.forwardRef(function(e,t){return c.createElement(g,Object.assign({},e,{innerRef:t}))});y.displayName="Menu"},7989:function(e,t,n){"use strict";n.d(t,{r:function(){return f}});var r=n(4467),o=n(3906),a=n(1477),i=n(8204),l=n(9867),c=n(1631),s={name:"--pf-v5-c-menu__content--Height",value:"auto",var:"var(--pf-v5-c-menu__content--Height)"},u={name:"--pf-v5-c-menu__content--MaxHeight",value:"18.75rem",var:"var(--pf-v5-c-menu__content--MaxHeight)"},f=a.forwardRef(function(e,t){var n=e.getHeight,f=e.children,d=e.menuHeight,p=e.maxMenuHeight,m=(0,o.Tt)(e,["getHeight","children","menuHeight","maxMenuHeight"]),v=a.createRef(),h=function(e,r,o){if(e){for(var a=e.clientHeight,l=null,c=e.closest(".".concat(i.A.menuList));null!==c&&1===c.nodeType;)c.classList.contains(i.A.menuList)&&(l=c),c=c.parentElement;if(l){var s=getComputedStyle(l);a+=parseFloat(s.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(s.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(l.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""))}o&&o(r,a),n&&n(a.toString())}return t||v};return a.createElement(c.x.Consumer,null,function(t){var n=t.menuId,o=t.onGetMenuHeight;return a.createElement("div",Object.assign({},m,{className:(0,l.A)(i.A.menuContent,e.className),ref:function(e){return h(e,n,o)},style:Object.assign(Object.assign({},d&&(0,r.A)({},s.name,d)),p&&(0,r.A)({},u.name,p))}),f)})});f.displayName="MenuContent"},1631:function(e,t,n){"use strict";n.d(t,{q:function(){return a},x:function(){return o}});var r=n(1477),o=r.createContext({menuId:null,parentMenu:null,onActionClick:function(){return null},onSelect:function(){return null},activeItemId:null,selected:null,drilledInMenus:[],drilldownItemPath:[],onDrillIn:null,onDrillOut:null,onGetMenuHeight:function(){return null},flyoutRef:null,setFlyoutRef:function(){return null},disableHover:!1,role:"menu"}),a=r.createContext({itemId:null,isDisabled:!1})},5201:function(e,t,n){"use strict";n.d(t,{D:function(){return _}});var r=n(296),o=n(3906),a=n(1477),i=n(8204),l=n(9867),c={name:"--pf-v5-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--top-offset)"},s={name:"--pf-v5-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--m-left--right-offset)"},u={name:"--pf-v5-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--left-offset)"},f=n(5618),d=(0,f.w)({name:"ExternalLinkAltIcon",height:512,width:512,svgPath:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z",yOffset:0,xOffset:0}),p=n(4542),m=n(9085),v=(0,f.w)({name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0}),h=n(2018),g=n(1631),y=n(412),b=function(e){var t=e.className,n=void 0===t?"":t,r=e.icon,c=e.onClick,s=e["aria-label"],u=e.isFavorited,f=void 0===u?null:u,d=e.isDisabled,p=e.actionId,m=e.innerRef,v=(0,o.Tt)(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return a.createElement(g.x.Consumer,null,function(e){var t=e.onActionClick;return a.createElement(g.q.Consumer,null,function(e){var o=e.itemId,u=e.isDisabled;return a.createElement("button",Object.assign({className:(0,l.A)(i.A.menuItemAction,null!==f&&i.A.modifiers.favorite,f&&i.A.modifiers.favorited,n),"aria-label":s,onClick:function(e){c&&c(e),t&&t(e,o,p)}},(!0===d||!0===u)&&{disabled:!0},{ref:m,tabIndex:-1},v),a.createElement("span",{className:(0,l.A)(i.A.menuItemActionIcon)},"favorites"===r||null!==f?a.createElement(y.Ay,{"aria-hidden":!0}):r))})})},x=a.forwardRef(function(e,t){return a.createElement(b,Object.assign({},e,{innerRef:t}))});x.displayName="MenuItemAction";var w=n(9105),O=n(1016),S=n(550),C=n(3083),A=a.createContext({direction:"right"}),k=function(e){var t=e.children,n=e.className,f=e.itemId,y=void 0===f?null:f,b=e.to,k=e.hasCheckbox,_=void 0!==k&&k,E=e.isActive,P=void 0===E?null:E,j=e.isFavorited,N=void 0===j?null:j,T=e.isLoadButton,M=void 0!==T&&T,I=e.isLoading,L=void 0!==I&&I,R=e.flyoutMenu,D=e.direction,F=e.description,z=void 0===F?null:F,B=e.onClick,H=void 0===B?function(){}:B,W=e.component,U=void 0===W?"button":W,X=e.isDisabled,V=void 0!==X&&X,G=e.isAriaDisabled,q=void 0!==G&&G,K=e.isExternalLink,$=void 0!==K&&K,Y=e.isSelected,Q=void 0===Y?null:Y,J=e.isFocused,Z=e.isDanger,ee=void 0!==Z&&Z,te=e.icon,ne=e.actions,re=e.onShowFlyout,oe=e.drilldownMenu,ae=e.isOnPath,ie=e.innerRef,le=e.id,ce=e["aria-label"],se=e.tooltipProps,ue=e.rel,fe=e.target,de=e.download,pe=(0,o.Tt)(e,["children","className","itemId","to","hasCheckbox","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isAriaDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef","id","aria-label","tooltipProps","rel","target","download"]),me=a.useContext(g.x),ve=me.menuId,he=me.parentMenu,ge=me.onSelect,ye=me.onActionClick,be=me.activeItemId,xe=me.selected,we=me.drilldownItemPath,Oe=me.onDrillIn,Se=me.onDrillOut,Ce=me.flyoutRef,Ae=me.setFlyoutRef,ke=me.disableHover,_e=me.role,Ee=b?"a":U;_&&!b&&(Ee="label");var Pe=a.useState(null),je=(0,r.A)(Pe,2),Ne=je[0],Te=je[1],Me=a.useContext(A),Ie=a.useState(Me.direction),Le=(0,r.A)(Ie,2),Re=Le[0],De=Le[1],Fe=a.useRef(),ze=Fe===Ce,Be=void 0!==R,He=function(e){!ze&&e?Ae(Fe):ze&&!e&&Ae(null),re&&e&&re()};(0,S.E)(function(){if(Be&&Fe.current&&O.Sw){var e=Fe.current.lastElementChild;if(e&&e.classList.contains(i.A.menu)){var t=Fe.current.getClientRects()[0],n=e.getClientRects()[0];if(t&&n){var r=t.x-n.width,o=window.innerWidth-t.x-t.width-n.width,a=Re;o<0&&"left"!==a?(De("left"),a="left"):r<0&&"right"!==a&&(De("right"),a="right");var l=0;r<0&&o<0&&(l="right"===a?-o:-r),"left"===a?(e.classList.add(i.A.modifiers.left),e.style.setProperty(s.name,"-".concat(l,"px"))):e.style.setProperty(u.name,"-".concat(l,"px"));var f=window.innerHeight-t.y-n.height;window.innerHeight-n.height<0&&f<0||f<0&&e.style.setProperty(c.name,"".concat(f,"px"))}}}},[ze,R]),a.useEffect(function(){De(Me.direction)},[Me]),a.useEffect(function(){if(Ne)if(ze){var e=Ne.nextElementSibling;Array.from(e.getElementsByTagName("UL")[0].children).filter(function(e){return!(e.classList.contains("pf-m-disabled")||e.classList.contains(i.A.divider))})[0].firstChild.focus()}else Ne.focus()},[ze,Ne]);var We,Ue=function(e){var t=e.key,n=e.target,r=e.type;" "!==t&&"Enter"!==t&&"ArrowRight"!==t&&"click"!==r||(e.stopPropagation(),e.preventDefault(),ze||(He(!0),Te(n))),"Escape"!==t&&"ArrowLeft"!==t||ze&&(e.stopPropagation(),He(!1))},Xe=function(e,t){q||(t&&t(e,y),H&&H(e))},Ve=ae&&ae||we&&we.includes(y)||!1;D&&(We="down"===D?function(e){return Oe&&Oe(e,ve,"function"===typeof oe?oe().props.id:oe.props.id,y)}:function(e){return Se&&Se(e,he,y)});var Ge={};"a"===Ee?Ge={href:b,"aria-disabled":!(!V&&!q)||null,disabled:null,target:$?"_blank":fe,rel:ue,download:de}:"button"===Ee&&(Ge={type:"button","aria-disabled":!!q||null}),ae?Ge["aria-expanded"]=!0:Be&&(Ge["aria-haspopup"]="menu",Ge["aria-expanded"]=ze);var qe=function(){return null!==Q?Q:null!==xe&&null!==y&&(Array.isArray(xe)&&xe.includes(y)||y===xe)};a.useEffect(function(){if(J&&Fe.current){var e=Fe.current,t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop=1?n-1:1;E(t,r),e.handleNewPage(t,r),e.setState({userInputPage:r})},"aria-label":S},o.createElement(p.Ay,null))),!M&&o.createElement("div",{className:i.paginationNavPageSelect},o.createElement(b.ks,{"aria-label":C,type:"number",isDisabled:a||s&&n===f&&n===u&&s>=0||0===n,min:u<=0&&f<=0?0:1,max:u,value:L,onKeyDown:function(t){return e.onKeyDown(t,n,u,N)},onChange:function(t){return e.onChange(t,u)}}),(s||0===s)&&o.createElement("span",{"aria-hidden":"true"},k," ",d?(0,c.td)(u,d,m):u)),o.createElement("div",{className:i.paginationNavControl},o.createElement(y.$n,{variant:y.Ak.plain,isDisabled:a||n===u,"aria-label":w,"data-action":"next",onClick:function(t){var r=n+1<=u?n+1:u;_(t,r),e.handleNewPage(t,r),e.setState({userInputPage:r})}},o.createElement(h.Ay,null))),!M&&o.createElement("div",{className:(0,l.A)(i.paginationNavControl,i.modifiers.last)},o.createElement(y.$n,{variant:y.Ak.plain,isDisabled:a||n===u,"aria-label":x,"data-action":"last",onClick:function(t){j(t,u),e.handleNewPage(t,u),e.setState({userInputPage:u})}},o.createElement(g,null))))}}],[{key:"parseInteger",value:function(e,t){var n=Number.parseInt(e,10);return Number.isNaN(n)||(n=(n=n>t?t:n)<1?1:n),n}}])}(o.Component);w.displayName="Navigation",w.defaultProps={className:"",isDisabled:!1,isCompact:!1,lastPage:0,firstPage:0,pagesTitle:"",pagesTitlePlural:"",toLastPageAriaLabel:"Go to last page",toNextPageAriaLabel:"Go to next page",toFirstPageAriaLabel:"Go to first page",toPreviousPageAriaLabel:"Go to previous page",currPageAriaLabel:"Current page",paginationAriaLabel:"Pagination",ofWord:"of",onNextClick:function(){},onPreviousClick:function(){},onFirstClick:function(){},onLastClick:function(){},onPageInput:function(){}};var O=n(296),S=n(5201),C=n(1684),A=n(7989),k=n(5494),_=n(3450),E=n(7643),P=function(e){var t=e.className,n=e.widgetId,r=e.page,i=e.itemCount,s=e.isDisabled,u=void 0!==s&&s,f=e.minWidth,d=e.dropDirection,p=void 0===d?"down":d,m=e.perPageOptions,v=void 0===m?[]:m,h=(e.itemsPerPageTitle,e.perPageSuffix),g=void 0===h?"per page":h,y=e.optionsToggleAriaLabel,b=e.ofWord,x=void 0===b?"of":b,w=e.perPage,P=void 0===w?0:w,j=e.firstIndex,N=void 0===j?0:j,T=e.lastIndex,M=void 0===T?0:T,I=e.isLastFullPageShown,L=void 0!==I&&I,R=e.itemsTitle,D=void 0===R?"":R,F=e.toggleTemplate,z=e.onPerPageSelect,B=void 0===z?function(){return null}:z,H=e.containerRef,W=e.appendTo,U=e.shouldPreventScrollOnItemFocus,X=void 0===U||U,V=e.focusTimeoutDelay,G=void 0===V?0:V,q=o.useState(!1),K=(0,O.A)(q,2),$=K[0],Y=K[1],Q=o.useRef(null),J=o.useRef(null);o.useEffect(function(){var e=function(e){var t,n,r;($&&(null===(t=J.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=Q.current)||void 0===n?void 0:n.contains(e.target)))&&("Escape"!==e.key&&"Tab"!==e.key||(Y(!1),null===(r=Q.current)||void 0===r||r.focus()))},t=function(e){var t,n,r;$&&(null===(t=Q.current)||void 0===t?void 0:t.contains(e.target))&&setTimeout(function(){var e,t=null===(e=null===J||void 0===J?void 0:J.current)||void 0===e?void 0:e.querySelector("li button:not(:disabled)");t&&t.focus({preventScroll:X})},G),!$||(null===(n=null===Q||void 0===Q?void 0:Q.current)||void 0===n?void 0:n.contains(e.target))||(null===(r=J.current)||void 0===r?void 0:r.contains(e.target))||Y(!1)};return window.addEventListener("keydown",e),window.addEventListener("click",t),function(){window.removeEventListener("keydown",e),window.removeEventListener("click",t)}},[G,$,J,X]);var Z=o.createElement(_.S,Object.assign({ref:Q,onClick:function(){Y(function(e){return!e})}},y&&{"aria-label":y},{isDisabled:u||i&&i<=0,isExpanded:$},n&&{id:"".concat(n,"-toggle")},{variant:"plainText","aria-haspopup":"listbox"}),F&&"string"===typeof F&&(0,c.ou)(F,{firstIndex:N,lastIndex:M,ofWord:x,itemCount:i,itemsTitle:D}),F&&"string"!==typeof F&&F({firstIndex:N,lastIndex:M,ofWord:x,itemCount:i,itemsTitle:D}),!F&&o.createElement(a.D,{firstIndex:N,lastIndex:M,ofWord:x,itemCount:i,itemsTitle:D})),ee=o.createElement(C.W,{className:(0,l.A)(t),onSelect:function(){var e;Y(function(e){return!e}),null===(e=Q.current)||void 0===e||e.focus()},ref:J},o.createElement(A.r,null,o.createElement(k.c,null,v.map(function(e){var t=e.value,n=e.title;return o.createElement(S.D,{key:t,"data-action":"per-page-".concat(t),isSelected:P===t,onClick:function(e){return function(e,t){for(var n=r;Math.ceil(i/t)1&&i-t*n<0;)n--;return B(e,t,n,(n-1)*t,n*t)}(e,t)}},n," ".concat(g))})))),te=null!==W&&void 0!==W?W:(null===H||void 0===H?void 0:H.current)||void 0;return o.createElement(E.N,{trigger:Z,triggerRef:Q,popper:ee,popperRef:J,isVisible:$,direction:p,appendTo:te,minWidth:void 0!==f?f:"revert"})};P.displayName="PaginationOptionsMenu";var j,N=n(635),T={name:"--pf-v5-c-pagination__nav-page-select--c-form-control--width-chars",value:"2",var:"var(--pf-v5-c-pagination__nav-page-select--c-form-control--width-chars)"};!function(e){e.bottom="bottom",e.top="top"}(j||(j={}));var M=[{title:"10",value:10},{title:"20",value:20},{title:"50",value:50},{title:"100",value:100}],I=function(e){var t=e.children,n=e.className,s=void 0===n?"":n,u=e.variant,f=void 0===u?j.top:u,d=e.isDisabled,p=void 0!==d&&d,m=e.isCompact,v=void 0!==m&&m,h=e.isSticky,g=void 0!==h&&h,y=e.isStatic,b=void 0!==y&&y,x=e.dropDirection,O=e.toggleTemplate,S=e.perPage,C=void 0===S?M[0].value:S,A=e.titles,k=void 0===A?{items:"",page:"",pages:"",itemsPerPage:"Items per page",perPageSuffix:"per page",toFirstPageAriaLabel:"Go to first page",toPreviousPageAriaLabel:"Go to previous page",toLastPageAriaLabel:"Go to last page",toNextPageAriaLabel:"Go to next page",optionsToggleAriaLabel:"",currPageAriaLabel:"Current page",paginationAriaLabel:"Pagination",ofWord:"of"}:A,_=e.firstPage,E=void 0===_?1:_,L=e.page,R=void 0===L?1:L,D=e.offset,F=void 0===D?null:D,z=e.isLastFullPageShown,B=void 0!==z&&z,H=e.itemsStart,W=void 0===H?null:H,U=e.itemsEnd,X=void 0===U?null:U,V=e.itemCount,G=e.perPageOptions,q=void 0===G?M:G,K=e.widgetId,$=void 0===K?"options-menu":K,Y=e.onSetPage,Q=void 0===Y?function(){}:Y,J=e.onPerPageSelect,Z=void 0===J?function(){}:J,ee=e.onFirstClick,te=void 0===ee?function(){}:ee,ne=e.onPreviousClick,re=void 0===ne?function(){}:ne,oe=e.onNextClick,ae=void 0===oe?function(){}:oe,ie=e.onPageInput,le=void 0===ie?function(){}:ie,ce=e.onLastClick,se=void 0===ce?function(){}:ce,ue=e.ouiaId,fe=e.ouiaSafe,de=void 0===fe||fe,pe=e.usePageInsets,me=e.inset,ve=e.menuAppendTo,he=(0,r.Tt)(e,["children","className","variant","isDisabled","isCompact","isSticky","isStatic","dropDirection","toggleTemplate","perPage","titles","firstPage","page","offset","isLastFullPageShown","itemsStart","itemsEnd","itemCount","perPageOptions","widgetId","onSetPage","onPerPageSelect","onFirstClick","onPreviousClick","onNextClick","onPageInput","onLastClick","ouiaId","ouiaSafe","usePageInsets","inset","menuAppendTo"]),ge=o.useRef(null),ye=o.useRef(null),be=function(){return V||0===V?Math.ceil(V/C)||0:we+1};o.useEffect(function(){var e=ge.current;!function(e,t){if(t){var n=String(e).length;n>=3?t.style.setProperty(T.name,"".concat(n)):t.style.setProperty(T.name,"2")}}(be(),e)},[C,V]);var xe=x||("bottom"!==f||b?"down":"up"),we=R;null!==F&&(W=F+1,we=Math.max(Math.ceil(W/C),1),X=F+C);var Oe=be(),Se=(we-1)*C+1,Ce=we*C;(V||0===V)&&(Se=V<=0?0:(we-1)*C+1,we0?we=E:we>Oe&&(we=Oe),V>=0&&(Ce=we===Oe||0===V?V:we*C));var Ae={firstIndex:Se,lastIndex:Ce,itemCount:V,itemsTitle:k.items,ofWord:k.ofWord};return o.createElement("div",Object.assign({ref:ge,className:(0,l.A)(i.pagination,f===j.bottom&&i.modifiers.bottom,pe&&i.modifiers.pageInsets,(0,c.ay)(me,i),v&&i.modifiers.compact,b&&i.modifiers.static,g&&i.modifiers.sticky,s)},$&&{id:"".concat($,"-").concat(f,"-pagination")},(0,N.iK)(I.displayName,ue,de,f),he),f===j.top&&o.createElement("div",{className:(0,l.A)(i.paginationTotalItems)},O&&"string"===typeof O&&(0,c.ou)(O,Ae),O&&"string"!==typeof O&&O(Ae),!O&&o.createElement(a.D,{firstIndex:Se,lastIndex:Ce,itemCount:V,itemsTitle:k.items,ofWord:k.ofWord})),q&&q.length>0&&o.createElement(P,{itemsPerPageTitle:k.itemsPerPage,perPageSuffix:k.perPageSuffix,itemsTitle:v?"":k.items,optionsToggleAriaLabel:k.optionsToggleAriaLabel,perPageOptions:q,firstIndex:null!==W?W:Se,lastIndex:null!==X?X:Ce,ofWord:k.ofWord,isLastFullPageShown:B,itemCount:V,page:we,perPage:C,lastPage:Oe,onPerPageSelect:Z,dropDirection:xe,widgetId:"".concat($,"-").concat(f),toggleTemplate:O,isDisabled:p,containerRef:ye,appendTo:ve}),o.createElement(w,{pagesTitle:k.page,pagesTitlePlural:k.pages,toLastPageAriaLabel:k.toLastPageAriaLabel,toPreviousPageAriaLabel:k.toPreviousPageAriaLabel,toNextPageAriaLabel:k.toNextPageAriaLabel,toFirstPageAriaLabel:k.toFirstPageAriaLabel,currPageAriaLabel:k.currPageAriaLabel,paginationAriaLabel:k.paginationAriaLabel,ofWord:k.ofWord,page:V&&V<=0?0:we,perPage:C,itemCount:V,firstPage:null!==W?W:1,lastPage:Oe,onSetPage:Q,onFirstClick:te,onPreviousClick:re,onNextClick:ae,onLastClick:se,onPageInput:le,isDisabled:p,isCompact:v}),t)};I.displayName="Pagination"},3842:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(1477),o=function(e){var t=e.firstIndex,n=void 0===t?0:t,o=e.lastIndex,a=void 0===o?0:o,i=e.itemCount,l=void 0===i?0:i,c=e.itemsTitle,s=void 0===c?"items":c,u=e.ofWord,f=void 0===u?"of":u;return r.createElement(r.Fragment,null,r.createElement("b",null,n," - ",a)," ",f," ",r.createElement("b",null,l)," ",s)};o.displayName="ToggleTemplate"},8762:function(e,t,n){"use strict";n.d(t,{j:function(){return r},k:function(){return m}});var r,o=n(3029),a=n(2901),i=n(6919),l=n(5501),c=n(3906),s=n(1477),u=n(206),f=n(9867),d=n(974),p=n(1016);!function(e){e.sm="sm",e.md="md",e.lg="lg"}(r||(r={}));var m=function(e){function t(){var e;return(0,o.A)(this,t),(e=(0,i.A)(this,t,arguments)).id=e.props.id||(0,p.LP)(),e}return(0,l.A)(t,e),(0,a.A)(t,[{key:"render",value:function(){var e=this.props,t=(e.id,e.size),n=e.className,o=e.value,a=e.title,i=e.label,l=e.variant,p=e.measureLocation,m=e.min,v=e.max,h=e.valueText,g=e.isTitleTruncated,y=e.tooltipPosition,b=e["aria-label"],x=e["aria-labelledby"],w=e.helperText,O=(0,c.Tt)(e,["id","size","className","value","title","label","variant","measureLocation","min","max","valueText","isTitleTruncated","tooltipPosition","aria-label","aria-labelledby","helperText"]),S={"aria-valuemin":m,"aria-valuenow":o,"aria-valuemax":v};(a||x)&&(S["aria-labelledby"]=a?"".concat(this.id,"-description"):x),b&&(S["aria-label"]=b),h&&(S["aria-valuetext"]=h),a||x||b||console.warn("One of aria-label or aria-labelledby properties should be passed when using the progress component without a title.");var C=Math.min(100,Math.max(0,Math.floor((o-m)/(v-m)*100)))||0;return s.createElement("div",Object.assign({},O,{className:(0,f.A)(u.A.progress,u.A.modifiers[l],["inside","outside"].includes(p)&&u.A.modifiers[p],"inside"===p?u.A.modifiers[r.lg]:u.A.modifiers[t],!a&&u.A.modifiers.singleline,n),id:this.id}),s.createElement(d.zb,{parentId:this.id,value:C,title:a,label:i,variant:l,measureLocation:p,progressBarAriaProps:S,isTitleTruncated:g,tooltipPosition:y,helperText:w}))}}])}(s.Component);m.displayName="Progress",m.defaultProps={className:"",measureLocation:d.Ri.top,variant:null,id:"",title:"",min:0,max:100,size:null,label:null,value:0,valueText:null,isTitleTruncated:!1,tooltipPosition:"top","aria-label":null,"aria-labelledby":null}},974:function(e,t,n){"use strict";n.d(t,{zb:function(){return g},Ri:function(){return p}});var r=n(296),o=n(1477),a=n(206),i=n(9867),l=n(9105),c=n(5017),s=n(4483),u=n(2972),f=n(3906),d=function(e){var t=e.progressBarAriaProps,n=e.className,r=void 0===n?"":n,l=e.children,c=void 0===l?null:l,s=e.value,u=(0,f.Tt)(e,["progressBarAriaProps","className","children","value"]);return o.createElement("div",Object.assign({},u,{className:(0,i.A)(a.A.progressBar,r)},t),o.createElement("div",{className:(0,i.A)(a.A.progressIndicator),style:{width:"".concat(s,"%")}},o.createElement("span",{className:(0,i.A)(a.A.progressMeasure)},c)))};d.displayName="ProgressBar";var p,m,v=function(e){var t=e.children,n=(0,f.Tt)(e,["children"]);return o.createElement("div",Object.assign({className:a.A.progressHelperText},n),t)};v.displayName="ProgressHelperText",function(e){e.outside="outside",e.inside="inside",e.top="top",e.none="none"}(p||(p={})),function(e){e.danger="danger",e.success="success",e.warning="warning"}(m||(m={}));var h={danger:s.Ay,success:c.Ay,warning:u.Ay},g=function(e){var t=e.progressBarAriaProps,n=e.value,c=e.title,s=void 0===c?"":c,u=e.parentId,f=e.label,m=void 0===f?null:f,g=e.variant,y=void 0===g?null:g,b=e.measureLocation,x=void 0===b?p.top:b,w=e.isTitleTruncated,O=void 0!==w&&w,S=e.tooltipPosition,C=e.helperText,A=h.hasOwnProperty(y)&&h[y],k=o.useState(""),_=(0,r.A)(k,2),E=_[0],P=_[1],j=o.createElement("div",{className:(0,i.A)(a.A.progressDescription,O&&"string"===typeof s&&a.A.modifiers.truncate),id:"".concat(u,"-description"),"aria-hidden":"true",onMouseEnter:O&&"string"===typeof s?function(e){e.target.offsetWidth0&&!v&&console.error("AdvancedSearchMenu: An advancedSearchDelimiter prop is required when advanced search attributes are provided using the attributes prop")}),a.useEffect(function(){C&&k&&k.current?(k.current.focus(),T(!0)):!C&&N&&o&&o.current&&o.current.focus()},[C]),a.useEffect(function(){return document.addEventListener("mousedown",M),document.addEventListener("touchstart",M),document.addEventListener("keydown",F),function(){document.removeEventListener("mousedown",M),document.removeEventListener("touchstart",M),document.removeEventListener("keydown",F)}});var M=function(e){var t=n&&n.current.contains(e.target);C&&!t&&A(e)},F=function(e){C&&e.key===D.RU.Escape&&n&&n.current.contains(e.target)&&(A(e),o&&o.current.focus())},z=function(e,t,n){var o=h();o[e]=t;var a="";Object.entries(o).forEach(function(e){var t=(0,r.A)(e,2),n=t[0],o=t[1];if(""!==o.trim()){var i=o.includes(" ")?"'".concat(o.replace(/(^'|'$)/g,""),"'"):o;a="haswords"!==n?"".concat(a," ").concat(n).concat(v).concat(i):"".concat(a," ").concat(i)}}),g&&g(n,a.replace(/^\s+/g,""))},B=function(e){var t=h();return t.hasOwnProperty(e)?t[e]:""};return C?a.createElement(U,{variant:"raised",className:(0,i.A)(t)},a.createElement(V,null,a.createElement(G,null,a.createElement(I,null,function(){var e=[];return f.forEach(function(t,n){var r="string"===typeof t?t:t.display,o="string"===typeof t?t:t.attr;0===n?e.push(a.createElement(j,{label:r,fieldId:"".concat(o,"_").concat(n),key:"".concat(t,"_").concat(n)},a.createElement(R.ks,{ref:k,type:"text",id:"".concat(o,"_").concat(n),value:B(o),onChange:function(e,t){return z(o,t,e)}}))):e.push(a.createElement(j,{label:r,fieldId:"".concat(o,"_").concat(n),key:"".concat(t,"_").concat(n)},a.createElement(R.ks,{type:"text",id:"".concat(o,"_").concat(n),value:B(o),onChange:function(e,t){return z(o,t,e)}})))}),e.push(a.createElement(P.N,{key:"hasWords"},function(e){return a.createElement(j,{label:m,fieldId:e},a.createElement(R.ks,{type:"text",id:e,value:B("haswords"),onChange:function(e,t){return z("haswords",t,e)}}))})),e}(),d||null,a.createElement(L,null,a.createElement(l.$n,{variant:"primary",type:"submit",onClick:function(e){e.preventDefault(),y&&y(e,s,h()),C&&A(e)},isDisabled:!s},S),!!b&&a.createElement(l.$n,{variant:"link",type:"reset",onClick:b},w)))))):null};q.displayName="SearchInput";var K={disabled:"pf-m-disabled",plain:"pf-m-plain",icon:"pf-m-icon",hint:"pf-m-hint"},$="pf-v5-c-text-input-group",Y="pf-v5-c-text-input-group__group",Q="pf-v5-c-text-input-group__icon",J="pf-v5-c-text-input-group__main",Z="pf-v5-c-text-input-group__text",ee="pf-v5-c-text-input-group__text-input",te="pf-v5-c-text-input-group__utilities",ne=a.createContext({isDisabled:!1}),re=function(e){var t=e.children,n=e.className,r=e.isDisabled,l=e.isPlain,c=e.innerRef,s=(0,o.Tt)(e,["children","className","isDisabled","isPlain","innerRef"]),u=a.useRef(null),f=c||u;return a.createElement(ne.Provider,{value:{isDisabled:r}},a.createElement("div",Object.assign({ref:f,className:(0,i.A)($,r&&K.disabled,l&&K.plain,n)},s),t))};re.displayName="TextInputGroup";var oe=function(e){var t=e.children,n=e.className,r=e.icon,l=e.type,c=void 0===l?"text":l,s=e.hint,u=e.onChange,f=void 0===u?function(){}:u,d=e.onFocus,p=e.onBlur,m=e["aria-label"],v=void 0===m?"Type to filter":m,h=e.value,g=e.placeholder,y=e.innerRef,b=e.name,x=e["aria-activedescendant"],w=e.role,O=e.isExpanded,S=e["aria-controls"],C=e.inputId,A=(0,o.Tt)(e,["children","className","icon","type","hint","onChange","onFocus","onBlur","aria-label","value","placeholder","innerRef","name","aria-activedescendant","role","isExpanded","aria-controls","inputId"]),k=a.useContext(ne).isDisabled,_=a.useRef(null),E=y||_;return a.createElement("div",Object.assign({className:(0,i.A)(J,r&&K.icon,n)},A),t,a.createElement("span",{className:(0,i.A)(Z)},s&&a.createElement("input",{className:(0,i.A)(ee,K.hint),type:"text",disabled:!0,"aria-hidden":"true",value:s,id:C}),r&&a.createElement("span",{className:(0,i.A)(Q)},r),a.createElement("input",Object.assign({ref:E,type:c,className:(0,i.A)(ee),"aria-label":v,disabled:k,onChange:function(e){f(e,e.currentTarget.value)},onFocus:d,onBlur:p,value:h||"",placeholder:g,name:b,"aria-activedescendant":x,id:C},w&&{role:w},void 0!==O&&{"aria-expanded":O},S&&{"aria-controls":S}))))},ae=a.forwardRef(function(e,t){return a.createElement(oe,Object.assign({innerRef:t},e))});ae.displayName="TextInputGroupMain";var ie=function(e){var t=e.children,n=e.className,r=(0,o.Tt)(e,["children","className"]);return a.createElement("div",Object.assign({className:(0,i.A)(te,n)},r),t)};ie.displayName="TextInputGroupUtilities";var le="pf-v5-c-input-group",ce="pf-v5-c-input-group__item",se={box:"pf-m-box",plain:"pf-m-plain",disabled:"pf-m-disabled",fill:"pf-m-fill"},ue=function(e){var t=e.className,n=e.children,r=e.innerRef,l=(0,o.Tt)(e,["className","children","innerRef"]),c=a.useRef(null),s=r||c;return a.createElement("div",Object.assign({ref:s,className:(0,i.A)(le,t)},l),n)};ue.displayName="InputGroupBase";var fe=a.forwardRef(function(e,t){return a.createElement(ue,Object.assign({innerRef:t},e))});fe.displayName="InputGroup";var de=function(e){var t=e.className,n=e.children,r=e.isFill,l=void 0!==r&&r,c=e.isBox,s=void 0!==c&&c,u=e.isPlain,f=e.isDisabled,d=(0,o.Tt)(e,["className","children","isFill","isBox","isPlain","isDisabled"]);return a.createElement("div",Object.assign({className:(0,i.A)(ce,l&&se.fill,s&&se.box,u&&se.plain,f&&se.disabled,t)},d),n)};de.displayName="InputGroupItem";var pe=n(7643),me=function(e){var t=e.className,n=e.searchInputId,f=e.value,g=void 0===f?"":f,y=e.attributes,b=void 0===y?[]:y,x=e.formAdditionalItems,w=e.hasWordsAttrLabel,O=void 0===w?"Has words":w,S=e.advancedSearchDelimiter,C=e.placeholder,A=e.hint,k=e.onChange,_=e.onSearch,E=e.onClear,P=e.onToggleAdvancedSearch,j=e.isAdvancedSearchOpen,N=e.resultsCount,T=e.onNextClick,M=e.onPreviousClick,I=e.innerRef,L=e.expandableInput,R=e["aria-label"],D=void 0===R?"Search input":R,F=e.resetButtonLabel,z=void 0===F?"Reset":F,B=e.openMenuButtonAriaLabel,H=void 0===B?"Open advanced search":B,W=e.previousNavigationButtonAriaLabel,U=void 0===W?"Previous":W,X=e.isPreviousNavigationButtonDisabled,V=void 0!==X&&X,G=e.isNextNavigationButtonDisabled,K=void 0!==G&&G,$=e.nextNavigationButtonAriaLabel,Q=void 0===$?"Next":$,J=e.submitSearchButtonLabel,Z=void 0===J?"Search":J,ee=e.isDisabled,te=void 0!==ee&&ee,ne=e.appendTo,oe=e.zIndex,le=void 0===oe?9999:oe,ce=e.name,se=e.areUtilitiesDisplayed,ue=(0,o.Tt)(e,["className","searchInputId","value","attributes","formAdditionalItems","hasWordsAttrLabel","advancedSearchDelimiter","placeholder","hint","onChange","onSearch","onClear","onToggleAdvancedSearch","isAdvancedSearchOpen","resultsCount","onNextClick","onPreviousClick","innerRef","expandableInput","aria-label","resetButtonLabel","openMenuButtonAriaLabel","previousNavigationButtonAriaLabel","isPreviousNavigationButtonDisabled","isNextNavigationButtonDisabled","nextNavigationButtonAriaLabel","submitSearchButtonLabel","isDisabled","appendTo","zIndex","name","areUtilitiesDisplayed"]),me=a.useState(!1),ve=(0,r.A)(me,2),he=ve[0],ge=ve[1],ye=a.useState(g),be=(0,r.A)(ye,2),xe=be[0],we=be[1],Oe=a.useRef(null),Se=a.useRef(null),Ce=I||Se,Ae=a.useRef(null),ke=a.useRef(null),_e=a.useRef(null),Ee=a.useState(!1),Pe=(0,r.A)(Ee,2),je=Pe[0],Ne=Pe[1],Te=L||{},Me=Te.isExpanded,Ie=Te.onToggleExpand,Le=Te.toggleAriaLabel;a.useEffect(function(){var e,t;je&&(Me?null===(e=null===Ce||void 0===Ce?void 0:Ce.current)||void 0===e||e.focus():null===(t=null===Ae||void 0===Ae?void 0:Ae.current)||void 0===t||t.focus(),Ne(!1))},[je,Me,Ce,Ae]),a.useEffect(function(){we(g)},[g]),a.useEffect(function(){b.length>0&&!S&&console.error("An advancedSearchDelimiter prop is required when advanced search attributes are provided using the attributes prop")}),a.useEffect(function(){ge(j)},[j]);var Re=function(e,t){k&&k(e,t),we(t)},De=function(e){var t=!he;ge(t),P&&P(e,t)},Fe=function(e){e.preventDefault(),_&&_(e,g,ze()),ge(!1)},ze=function(){var e={};return function(e){var t;return e.match(/\\?.|^$/g).reduce(function(e,n){return"'"===n||'"'===n?(t||(t=n),n===t&&(e.quote=!e.quote)):e.quote||" "!==n?e.a[e.a.length-1]+=n.replace(/\\(.)/,"$1"):e.a.push(""),e},{a:[""]}).a}(xe).map(function(t){var n=t.split(S);2===n.length?e[n[0]]=n[1].replace(/(^'|'$)/g,""):1===n.length&&(e.haswords=e.hasOwnProperty("haswords")?"".concat(e.haswords," ").concat(n[0]):n[0])}),e},Be=function(e){"Enter"===e.key&&Fe(e)},He=function(e){E&&E(e),Ce&&Ce.current&&Ce.current.focus()},We=g&&(N||!!T&&!!M||!!E&&!L),Ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.Tt)(e,[]);return a.createElement(re,Object.assign({isDisabled:te},t),a.createElement(ae,{hint:A,icon:a.createElement(m.Ay,null),innerRef:Ce,value:xe,placeholder:C,"aria-label":D,onKeyDown:Be,onChange:Re,name:ce,inputId:n}),(We||se)&&a.createElement(ie,null,N&&a.createElement(c.E,{isRead:!0},N),!!T&&!!M&&a.createElement("div",{className:Y},a.createElement(l.$n,{variant:l.Ak.plain,"aria-label":U,isDisabled:te||V,onClick:M},a.createElement(d,null)),a.createElement(l.$n,{variant:l.Ak.plain,"aria-label":Q,isDisabled:te||K,onClick:T},a.createElement(u.Ay,null))),!!E&&!L&&a.createElement(l.$n,{variant:l.Ak.plain,isDisabled:te,"aria-label":z,onClick:He},a.createElement(p.Ay,null))))},Xe=a.createElement(l.$n,{variant:l.Ak.plain,"aria-label":Le,"aria-expanded":Me,icon:Me?a.createElement(p.Ay,null):a.createElement(m.Ay,null),onClick:function(e){we(""),Ie(e,Me),Ne(!0)},ref:Ae}),Ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.Tt)(e,[]);return a.createElement(fe,Object.assign({ref:ke},t),a.createElement(de,{isFill:!0},Ue()),(b.length>0||P)&&a.createElement(de,{isPlain:!0},a.createElement(l.$n,{className:he&&"pf-m-expanded",variant:l.Ak.control,"aria-label":H,onClick:De,isDisabled:te,"aria-expanded":he},a.createElement(v.Ay,null))),!!_&&a.createElement(de,null,a.createElement(l.$n,{type:"submit",variant:l.Ak.control,"aria-label":Z,onClick:Fe,isDisabled:te},a.createElement(s.I,{shouldMirrorRTL:!0},a.createElement(h,null)))),L&&a.createElement(de,null,Xe))},Ge=Object.assign(Object.assign({},ue),{className:t&&(0,i.A)(t),innerRef:Oe});if(L&&!Me)return a.createElement(fe,Object.assign({},Ge),a.createElement(de,null,Xe));if(_||b.length>0||P){if(b.length>0){var qe=a.createElement("div",{ref:_e},a.createElement(q,{value:g,parentRef:Oe,parentInputRef:Ce,onSearch:_,onClear:E,onChange:k,onToggleAdvancedMenu:De,resetButtonLabel:z,submitSearchButtonLabel:Z,attributes:b,formAdditionalItems:x,hasWordsAttrLabel:O,advancedSearchDelimiter:S,getAttrValueMap:ze,isSearchMenuOpen:he})),Ke=a.createElement("div",Object.assign({className:(0,i.A)(t),ref:Oe},ue),a.createElement(pe.N,{trigger:Ve(),triggerRef:ke,popper:qe,popperRef:_e,isVisible:he,enableFlip:!0,appendTo:function(){return ne||Oe.current},zIndex:le})),$e=a.createElement("div",Object.assign({className:(0,i.A)(t),ref:Oe},ue),Ve(),qe);return"inline"!==ne?Ke:$e}return Ve(Object.assign({},Ge))}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.Tt)(e,[]);return L?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.Tt)(e,[]);return a.createElement(fe,Object.assign({},t),a.createElement(de,{isFill:!0},Ue()," "),a.createElement(de,{isPlain:!0},Xe))}(Object.assign({},t)):Ue(Object.assign({},t))}(Ge)};me.displayName="SearchInputBase";var ve=a.forwardRef(function(e,t){return a.createElement(me,Object.assign({},e,{innerRef:t}))});ve.displayName="SearchInput"},9694:function(e,t,n){"use strict";n.d(t,{y:function(){return u},J:function(){return r}});var r,o=n(4467),a=n(3906),i=n(1477),l={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v5-c-spinner",spinnerPath:"pf-v5-c-spinner__path"},c=n(9867),s={name:"--pf-v5-c-spinner--diameter",value:"3.375rem",var:"var(--pf-v5-c-spinner--diameter)"};!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(r||(r={}));var u=function(e){var t=e.className,n=void 0===t?"":t,r=e.size,u=void 0===r?"xl":r,f=e["aria-valuetext"],d=void 0===f?"Loading...":f,p=e.diameter,m=e.isInline,v=void 0!==m&&m,h=e["aria-label"],g=e["aria-labelledBy"],y=(0,a.Tt)(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return i.createElement("svg",Object.assign({className:(0,c.A)(l.spinner,v?l.modifiers.inline:l.modifiers[u],n),role:"progressbar","aria-valuetext":d,viewBox:"0 0 100 100"},p&&{style:(0,o.A)({},s.name,p)},h&&{"aria-label":h},g&&{"aria-labelledBy":g},!h&&!g&&{"aria-label":"Contents"},y),i.createElement("circle",{className:l.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};u.displayName="Spinner"},6334:function(e,t,n){"use strict";n.d(t,{o:function(){return g}});var r=n(4467),o=n(3906),a=n(1477),i=n(5985),l=n(635),c=function(e){var t=e.children,n=(e.tabContentRef,e.ouiaId),r=e.parentInnerRef,i=e.ouiaSafe,s=(0,o.Tt)(e,["children","tabContentRef","ouiaId","parentInnerRef","ouiaSafe"]),u=s.href?"a":"button";return a.createElement(u,Object.assign({},!s.href&&{type:"button"},{ref:r},(0,l.Bs)(c.displayName,n,i),s),t)};c.displayName="TabButton";var s=n(4901),u=n(9867),f=n(9105),d=n(7152),p=n(628),m=function(e){var t=e.children,n=e.className,r=e.onClick,c=e.isDisabled,s=e["aria-label"],f=void 0===s?"Tab action":s,d=e.innerRef,m=e.ouiaId,h=e.ouiaSafe,g=(0,o.Tt)(e,["children","className","onClick","isDisabled","aria-label","innerRef","ouiaId","ouiaSafe"]);return a.createElement("span",{className:(0,u.A)(i.A.tabsItemAction,n)},a.createElement(p.$n,Object.assign({ref:d,type:"button",variant:"plain","aria-label":f,onClick:r,isDisabled:c},(0,l.Bs)(v.displayName,m,h),g),a.createElement("span",{className:(0,u.A)(i.A.tabsItemActionIcon)},t)))},v=a.forwardRef(function(e,t){return a.createElement(m,Object.assign({},e,{innerRef:t}))});v.displayName="TabAction";var h=function(e){var t=e.title,n=e.eventKey,l=e.tabContentRef,p=e.id,m=e.tabContentId,h=e.className,g=void 0===h?"":h,y=e.ouiaId,b=e.isDisabled,x=e.isAriaDisabled,w=e.inoperableEvents,O=void 0===w?["onClick","onKeyPress"]:w,S=e.href,C=e.innerRef,A=e.tooltip,k=e.closeButtonAriaLabel,_=e.isCloseDisabled,E=void 0!==_&&_,P=e.actions,j=(0,o.Tt)(e,["title","eventKey","tabContentRef","id","tabContentId","className","ouiaId","isDisabled","isAriaDisabled","inoperableEvents","href","innerRef","tooltip","closeButtonAriaLabel","isCloseDisabled","actions"]),N=O.reduce(function(e,t){return Object.assign(Object.assign({},e),(0,r.A)({},t,function(e){e.preventDefault()}))},{}),T=a.useContext(s.wP),M=T.mountOnEnter,I=T.localActiveKey,L=T.unmountOnExit,R=T.uniqueId,D=T.handleTabClick,F=T.handleTabClose,z=m?"".concat(m):"pf-tab-section-".concat(n,"-").concat(p||R);(M||L)&&n!==I&&(z=void 0);var B=Boolean(!S),H=a.createElement(c,Object.assign({parentInnerRef:C,className:(0,u.A)(i.A.tabsLink,b&&S&&i.A.modifiers.disabled,x&&i.A.modifiers.ariaDisabled),disabled:B?b:null,"aria-disabled":b||x,tabIndex:b?B?null:-1:x?null:void 0,onClick:function(e){return D(e,n,l)}},x?N:null,{id:"pf-tab-".concat(n,"-").concat(p||R),"aria-controls":z,tabContentRef:l,ouiaId:y,href:S,role:"tab","aria-selected":n===I},j),t);return a.createElement("li",{className:(0,u.A)(i.A.tabsItem,n===I&&i.A.modifiers.current,(F||P)&&i.A.modifiers.action,(b||x)&&i.A.modifiers.disabled,g),role:"presentation"},A?a.createElement(f.m,Object.assign({},A.props),H):H,P&&P,void 0!==F&&a.createElement(v,{"aria-label":k||"Close tab",onClick:function(e){return F(e,n,l)},isDisabled:E},a.createElement(d.Ay,null)))},g=a.forwardRef(function(e,t){return a.createElement(h,Object.assign({innerRef:t},e))});g.displayName="Tab"},4248:function(e,t,n){"use strict";n.d(t,{V:function(){return l}});var r=n(3906),o=n(1477),a=n(9867),i=n(5985),l=function(e){var t=e.children,n=e.className,l=void 0===n?"":n,c=(0,r.Tt)(e,["children","className"]);return o.createElement("span",Object.assign({className:(0,a.A)(i.A.tabsItemText,l)},c),t)};l.displayName="TabTitleText"},4471:function(e,t,n){"use strict";n.d(t,{t:function(){return L}});var r=n(3029),o=n(2901),a=n(6919),i=n(5501),l=n(3906),c=n(1477),s=n(5985),u=n(6915),f=n(9867),d=n(9085),p=n(4542),m=(0,n(5618).w)({name:"PlusIcon",height:512,width:448,svgPath:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",yOffset:0,xOffset:0}),v=n(1016),h={light_300:"pf-m-light-300",padding:"pf-m-padding"},g="pf-v5-c-tab-content",y=n(635),b=n(4901),x={default:"",light300:h.light_300},w=function(e){var t,n=e.id,r=e.activeKey,o=e["aria-label"],a=e.child,i=e.children,s=e.className,u=(e.eventKey,e.innerRef),d=e.ouiaId,p=e.ouiaSafe,m=(0,l.Tt)(e,["id","activeKey","aria-label","child","children","className","eventKey","innerRef","ouiaId","ouiaSafe"]);return i||a?(t=o?null:i?"".concat(n):"pf-tab-".concat(a.props.eventKey,"-").concat(n),c.createElement(b.kT,null,function(e){var l=e.variant;return c.createElement("section",Object.assign({ref:u,hidden:i?null:a.props.eventKey!==r,className:i?(0,f.A)(g,s,x[l]):(0,f.A)(g,a.props.className,x[l]),id:i?n:"pf-tab-section-".concat(a.props.eventKey,"-").concat(n),"aria-label":o,"aria-labelledby":t,role:"tabpanel",tabIndex:0},(0,y.Bs)("TabContent",d,p),m),i||a.props.children)})):null},O=c.forwardRef(function(e,t){return c.createElement(w,Object.assign({},e,{innerRef:t}))}),S=n(296),C=n(7643),A=n(5201),k=n(1684),_=n(7989),E=n(5494),P=n(4248),j=function(e){var t=e.className,n=e.overflowingTabs,r=void 0===n?[]:n,o=e.showTabCount,a=e.defaultTitleText,i=void 0===a?"More":a,u=e.toggleAriaLabel,d=e.zIndex,m=void 0===d?9999:d,v=e.shouldPreventScrollOnItemFocus,h=void 0===v||v,g=e.focusTimeoutDelay,y=void 0===g?0:g,x=(0,l.Tt)(e,["className","overflowingTabs","showTabCount","defaultTitleText","toggleAriaLabel","zIndex","shouldPreventScrollOnItemFocus","focusTimeoutDelay"]),w=c.useRef(),O=c.useRef(),j=c.useRef(),N=c.useState(!1),T=(0,S.A)(N,2),M=T[0],I=T[1],L=c.useContext(b.wP),R=L.localActiveKey,D=L.handleTabClick,F=function(){I(!1),O.current.focus()},z=function(e){var t,n=null===(t=null===w||void 0===w?void 0:w.current)||void 0===t?void 0:t.contains(e.target);M&&n&&"Escape"===e.key&&F()},B=function(e){var t,n,r=!(null===(t=null===w||void 0===w?void 0:w.current)||void 0===t?void 0:t.contains(e.target)),o=!(null===(n=null===O||void 0===O?void 0:O.current)||void 0===n?void 0:n.contains(e.target));M&&r&&o&&F()};c.useEffect(function(){return window.addEventListener("click",B),window.addEventListener("keydown",z),function(){window.removeEventListener("click",B),window.removeEventListener("keydown",z)}},[M,w,O]);var H=r.find(function(e){return e.eventKey===R}),W=(null===H||void 0===H?void 0:H.title)?H.title:i,U=c.createElement("li",Object.assign({className:(0,f.A)(s.A.tabsItem,s.A.modifiers.overflow,H&&s.A.modifiers.current,t),role:"presentation",ref:j},x),c.createElement("button",{type:"button",className:(0,f.A)(s.A.tabsLink,M&&s.A.modifiers.expanded),onClick:function(){return I(function(e){return!e}),void setTimeout(function(){if(null===w||void 0===w?void 0:w.current){var e=w.current.querySelector("li > button,input:not(:disabled)");e&&e.focus({preventScroll:h})}},y)},"aria-label":u,"aria-haspopup":"menu","aria-expanded":M,role:"tab",ref:O},c.createElement(P.V,null,W,o&&W===i&&" (".concat(r.length,")")),c.createElement("span",{className:s.A.tabsLinkToggleIcon},c.createElement(p.Ay,null)))),X=r.map(function(e){return c.createElement(A.D,{key:e.eventKey,itemId:e.eventKey,isSelected:R===e.eventKey},e.title)}),V=c.createElement(k.W,{ref:w,onSelect:function(e,t){return function(e,t){F();var n=r.find(function(e){return e.eventKey===t}).tabContentRef;D(e,t,n)}(e,t)}},c.createElement(_.r,null,c.createElement(E.c,null,X)));return c.createElement(c.Fragment,null,U,c.createElement(C.N,{triggerRef:O,popper:V,popperRef:w,isVisible:M,minWidth:"revert",appendTo:j.current,zIndex:m}))};j.displayName="OverflowTab";var N,T=n(628),M=n(3083);!function(e){e.div="div",e.nav="nav"}(N||(N={}));var I={default:"",light300:s.A.modifiers.colorSchemeLight_300},L=function(e){function t(e){var n;return(0,r.A)(this,t),(n=(0,a.A)(this,t,[e])).tabList=c.createRef(),n.leftScrollButtonRef=c.createRef(),n.direction="ltr",n.scrollTimeout=null,n.countOverflowingElements=function(e){return Array.from(e.children).filter(function(t){return!(0,v.Xv)(e,t,!1)}).length},n.handleScrollButtons=function(){var e=n.props.isOverflowHorizontal;clearTimeout(n.scrollTimeout),n.scrollTimeout=setTimeout(function(){var t=n.tabList.current,r=!0,o=!0,a=!1,i=0;if(t&&!n.props.isVertical&&!e){var l=!(0,v.Xv)(t,t.firstChild,!1),c=!(0,v.Xv)(t,t.lastChild,!1);a=l||c,r=!l,o=!c}e&&(i=n.countOverflowingElements(t)),n.setState({enableScrollButtons:a,disableBackScrollButton:r,disableForwardScrollButton:o,overflowingTabCount:i})},100)},n.scrollBack=function(){if(n.tabList.current){var e,t,r,o=n.tabList.current,a=Array.from(o.children);for(r=0;r=0&&!e;a--)(0,v.Xv)(r,o[a],!1)&&(e=o[a],t=o[a+1]);t&&("ltr"===n.direction?r.scrollLeft+=t.scrollWidth:r.scrollLeft-=t.scrollWidth)}},n.hideScrollButtons=function(){var e=n.state,t=e.enableScrollButtons,r=e.renderScrollButtons,o=e.showScrollButtons;t||o||!r||n.setState({renderScrollButtons:!1})},n.state={enableScrollButtons:!1,showScrollButtons:!1,renderScrollButtons:!1,disableBackScrollButton:!0,disableForwardScrollButton:!0,shownKeys:void 0!==n.props.defaultActiveKey?[n.props.defaultActiveKey]:[n.props.activeKey],uncontrolledActiveKey:n.props.defaultActiveKey,uncontrolledIsExpandedLocal:n.props.defaultIsExpanded,ouiaStateId:(0,y.X)(t.displayName),overflowingTabCount:0},n.props.isVertical&&void 0!==n.props.expandable&&(n.props.toggleAriaLabel||n.props.toggleText||console.error("Tabs:","toggleAriaLabel or the toggleText prop is required to make the toggle button accessible")),n}return(0,i.A)(t,e),(0,o.A)(t,[{key:"handleTabClick",value:function(e,t,n){var r=this.state.shownKeys,o=this.props,a=o.onSelect;void 0!==o.defaultActiveKey?this.setState({uncontrolledActiveKey:t}):a(e,t),n&&(c.Children.toArray(this.props.children).filter(function(e){return c.isValidElement(e)}).filter(function(e){var t=e.props;return t.tabContentRef&&t.tabContentRef.current}).forEach(function(e){return e.props.tabContentRef.current.hidden=!0}),n.current&&(n.current.hidden=!1)),this.props.mountOnEnter&&this.setState({shownKeys:r.concat(t)})}},{key:"componentDidMount",value:function(){this.props.isVertical||(v.Sw&&window.addEventListener("resize",this.handleScrollButtons,!1),this.direction=(0,v.iJ)(this.tabList.current),this.handleScrollButtons())}},{key:"componentWillUnmount",value:function(){var e;this.props.isVertical||v.Sw&&window.removeEventListener("resize",this.handleScrollButtons,!1),clearTimeout(this.scrollTimeout),null===(e=this.leftScrollButtonRef.current)||void 0===e||e.removeEventListener("transitionend",this.hideScrollButtons)}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.activeKey,a=r.mountOnEnter,i=r.isOverflowHorizontal,l=r.children,s=this.state,u=s.shownKeys,f=s.overflowingTabCount,d=s.enableScrollButtons;e.activeKey!==o&&a&&u.indexOf(o)<0&&this.setState({shownKeys:u.concat(o)}),e.children&&l&&c.Children.toArray(e.children).length!==c.Children.toArray(l).length&&this.handleScrollButtons();var p=this.countOverflowingElements(this.tabList.current);i&&p&&this.setState({overflowingTabCount:p+f}),!t.enableScrollButtons&&d?(this.setState({renderScrollButtons:!0}),setTimeout(function(){var e;null===(e=n.leftScrollButtonRef.current)||void 0===e||e.addEventListener("transitionend",n.hideScrollButtons),n.setState({showScrollButtons:!0})},100)):t.enableScrollButtons&&!d&&this.setState({showScrollButtons:!1}),this.direction=(0,v.iJ)(this.tabList.current)}},{key:"render",value:function(){var e=this,n=this.props,r=n.className,o=n.children,a=n.activeKey,i=n.defaultActiveKey,h=n.id,g=n.isFilled,x=n.isSecondary,w=n.isVertical,S=n.isBox,C=n.hasNoBorderBottom,A=n.leftScrollAriaLabel,k=n.rightScrollAriaLabel,_=n.backScrollAriaLabel,E=n.forwardScrollAriaLabel,P=n["aria-label"],L=n.component,R=n.ouiaId,D=n.ouiaSafe,F=n.mountOnEnter,z=n.unmountOnExit,B=n.usePageInsets,H=n.inset,W=n.variant,U=n.expandable,X=n.isExpanded,V=n.defaultIsExpanded,G=n.toggleText,q=n.toggleAriaLabel,K=n.addButtonAriaLabel,$=n.onToggle,Y=n.onClose,Q=n.onAdd,J=n.isOverflowHorizontal,Z=(0,l.Tt)(n,["className","children","activeKey","defaultActiveKey","id","isFilled","isSecondary","isVertical","isBox","hasNoBorderBottom","leftScrollAriaLabel","rightScrollAriaLabel","backScrollAriaLabel","forwardScrollAriaLabel","aria-label","component","ouiaId","ouiaSafe","mountOnEnter","unmountOnExit","usePageInsets","inset","variant","expandable","isExpanded","defaultIsExpanded","toggleText","toggleAriaLabel","addButtonAriaLabel","onToggle","onClose","onAdd","isOverflowHorizontal"]),ee=this.state,te=ee.showScrollButtons,ne=ee.renderScrollButtons,re=ee.disableBackScrollButton,oe=ee.disableForwardScrollButton,ae=ee.shownKeys,ie=ee.uncontrolledActiveKey,le=ee.uncontrolledIsExpandedLocal,ce=ee.overflowingTabCount,se=c.Children.toArray(o).filter(function(e){return c.isValidElement(e)}).filter(function(e){return!e.props.isHidden}),ue=se.slice(0,se.length-ce),fe=se.slice(se.length-ce).map(function(e){return e.props}),de=h||(0,v.LP)(),pe=L===N.nav?"nav":"div",me=void 0!==i?ie:a,ve=void 0!==V?le:X,he=J&&ce>0,ge="object"===typeof J?Object.assign({},J):{};return c.createElement(b.hY,{value:{variant:W,mountOnEnter:F,unmountOnExit:z,localActiveKey:me,uniqueId:de,handleTabClick:function(){return e.handleTabClick.apply(e,arguments)},handleTabClose:Y}},c.createElement(pe,Object.assign({"aria-label":P,className:(0,f.A)(s.A.tabs,g&&s.A.modifiers.fill,x&&s.A.modifiers.secondary,w&&s.A.modifiers.vertical,w&&U&&(0,v.ay)(U,s.A),w&&U&&ve&&s.A.modifiers.expanded,S&&s.A.modifiers.box,te&&s.A.modifiers.scrollable,B&&s.A.modifiers.pageInsets,C&&s.A.modifiers.noBorderBottom,(0,v.ay)(H,s.A),I[W],he&&s.A.modifiers.overflow,r)},(0,y.Bs)(t.displayName,void 0!==R?R:this.state.ouiaStateId,D),{id:h&&h},Z),U&&w&&c.createElement(M.N,null,function(t){return c.createElement("div",{className:(0,f.A)(s.A.tabsToggle)},c.createElement("div",{className:(0,f.A)(s.A.tabsToggleButton)},c.createElement(T.$n,{onClick:function(t){return function(t,n){void 0===X?e.setState({uncontrolledIsExpandedLocal:n}):$(t,n)}(t,!ve)},variant:"plain","aria-label":q,"aria-expanded":ve,id:"".concat(t,"-button"),"aria-labelledby":"".concat(t,"-text ").concat(t,"-button")},c.createElement("span",{className:(0,f.A)(s.A.tabsToggleIcon)},c.createElement(p.Ay,{"arian-hidden":"true"})),G&&c.createElement("span",{className:(0,f.A)(s.A.tabsToggleText),id:"".concat(t,"-text")},G))))}),ne&&c.createElement("button",{type:"button",className:(0,f.A)(s.A.tabsScrollButton,x&&u.A.modifiers.secondary),"aria-label":_||A,onClick:this.scrollBack,disabled:re,"aria-hidden":re,ref:this.leftScrollButtonRef},c.createElement(d.Ay,null)),c.createElement("ul",{className:(0,f.A)(s.A.tabsList),ref:this.tabList,onScroll:this.handleScrollButtons,role:"tablist"},J?ue:se,he&&c.createElement(j,Object.assign({overflowingTabs:fe},ge))),ne&&c.createElement("button",{type:"button",className:(0,f.A)(s.A.tabsScrollButton,x&&u.A.modifiers.secondary),"aria-label":E||k,onClick:this.scrollForward,disabled:oe,"aria-hidden":oe},c.createElement(p.Ay,null)),void 0!==Q&&c.createElement("span",{className:(0,f.A)(s.A.tabsAdd)},c.createElement(T.$n,{variant:"plain","aria-label":K||"Add tab",onClick:Q},c.createElement(m,null)))),se.filter(function(e){return e.props.children&&!(z&&e.props.eventKey!==me)&&!(F&&-1===ae.indexOf(e.props.eventKey))}).map(function(e){return c.createElement(O,{key:e.props.eventKey,activeKey:me,child:e,id:e.props.id||de,ouiaId:e.props.ouiaId})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0===t.uncontrolledActiveKey||c.Children.toArray(e.children).filter(function(e){return c.isValidElement(e)}).some(function(e){return e.props.eventKey===t.uncontrolledActiveKey})?null:{uncontrolledActiveKey:e.defaultActiveKey,shownKeys:void 0!==e.defaultActiveKey?[e.defaultActiveKey]:[e.activeKey]}}}])}(c.Component);L.displayName="Tabs",L.defaultProps={activeKey:0,onSelect:function(){},isFilled:!1,isSecondary:!1,isVertical:!1,isBox:!1,hasNoBorderBottom:!1,leftScrollAriaLabel:"Scroll left",backScrollAriaLabel:"Scroll back",rightScrollAriaLabel:"Scroll right",forwardScrollAriaLabel:"Scroll forward",component:N.div,mountOnEnter:!1,unmountOnExit:!1,ouiaSafe:!0,variant:"default",onToggle:function(e,t){}}},4901:function(e,t,n){"use strict";n.d(t,{hY:function(){return o},kT:function(){return a},wP:function(){return r}});var r=n(1477).createContext({variant:"default",mountOnEnter:!1,unmountOnExit:!1,localActiveKey:"",uniqueId:"",handleTabClick:function(){return null},handleTabClose:void 0}),o=r.Provider,a=r.Consumer},9348:function(e,t,n){"use strict";n.d(t,{ks:function(){return S}});var r,o,a=n(3029),i=n(2901),l=n(6919),c=n(5501),s=n(3906),u=n(1477),f={formControl:"pf-v5-c-form-control",formControlIcon:"pf-v5-c-form-control__icon",formControlToggleIcon:"pf-v5-c-form-control__toggle-icon",formControlUtilities:"pf-v5-c-form-control__utilities",modifiers:{readonly:"pf-m-readonly",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both",status:"pf-m-status"},themeDark:"pf-v5-theme-dark"},d=n(9867),p=n(3759),m=n(1016),v=n(635),h=n(4930),g=n(5017),y=n(6464),b=n(2972),x={success:g.Ay,error:y.Ay,warning:b.Ay},w=function(e){var t=e.status,n=e.customIcon,r=e.className,o=(0,s.Tt)(e,["status","customIcon","className"]),a=t&&x[t];return u.createElement("span",Object.assign({className:(0,d.A)(f.formControlIcon,t&&f.modifiers.status,r)},o),n||u.createElement(a,null))};!function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"}(r||(r={})),function(e){e.default="default",e.plain="plain"}(o||(o={}));var O=function(e){function t(e){var n;return(0,a.A)(this,t),(n=(0,l.A)(this,t,[e])).inputRef=u.createRef(),n.observer=function(){},n.handleChange=function(e){n.props.onChange&&n.props.onChange(e,e.currentTarget.value)},n.handleResize=function(){var e=n.props.innerRef||n.inputRef;e&&e.current&&(0,m.Mr)(e.current,String(n.props.value))},n.restoreText=function(){var e=n.props.innerRef||n.inputRef;e.current.value=String(n.props.value),e.current.scrollLeft=e.current.scrollWidth},n.onFocus=function(e){var t=n.props,r=t.isLeftTruncated,o=t.isStartTruncated,a=t.onFocus;(r||o)&&n.restoreText(),a&&a(e)},n.onBlur=function(e){var t=n.props,r=t.isLeftTruncated,o=t.isStartTruncated,a=t.onBlur;(r||o)&&n.handleResize(),a&&a(e)},n.sanitizeInputValue=function(e){return"string"===typeof e?e.replace(/\n/g," "):e},e.id||e["aria-label"]||e["aria-labelledby"]||console.error("Text input:","Text input requires either an id or aria-label to be specified"),n.state={ouiaStateId:(0,v.X)(t.displayName)},n}return(0,c.A)(t,e),(0,i.A)(t,[{key:"componentDidMount",value:function(){if(this.props.isLeftTruncated||this.props.isStartTruncated){var e=this.props.innerRef||this.inputRef;this.observer=(0,h.N)(e.current,this.handleResize,!0),this.handleResize()}}},{key:"componentWillUnmount",value:function(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}},{key:"render",value:function(){var e=this.props,t=e.innerRef,n=e.className,r=e.type,o=e.value,a=e.placeholder,i=e.validated,l=(e.onChange,e.onFocus,e.onBlur,e.isLeftTruncated,e.isStartTruncated,e.isExpanded),c=e.expandedProps,m=e.readOnly,h=e.readOnlyVariant,g=e.isRequired,y=e.isDisabled,b=e.customIcon,x=e.ouiaId,O=e.ouiaSafe,C=(0,s.Tt)(e,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),A=["success","error","warning"].includes(i),k=c?{"aria-expanded":null===c||void 0===c?void 0:c.isExpanded,"aria-controls":null===c||void 0===c?void 0:c.ariaControls,role:"combobox"}:{};return u.createElement("span",{className:(0,d.A)(f.formControl,h&&f.modifiers.readonly,"plain"===h&&f.modifiers.plain,y&&f.modifiers.disabled,(l||(null===c||void 0===c?void 0:c.isExpanded))&&f.modifiers.expanded,b&&f.modifiers.icon,A&&f.modifiers[i],n)},u.createElement("input",Object.assign({},C,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:r,value:this.sanitizeInputValue(o),"aria-invalid":C["aria-invalid"]?C["aria-invalid"]:i===p.nh.error},k,{required:g,disabled:y,readOnly:!!h||m,ref:t||this.inputRef,placeholder:a},(0,v.Bs)(S.displayName,void 0!==x?x:this.state.ouiaStateId,O))),(b||A)&&u.createElement("span",{className:(0,d.A)(f.formControlUtilities)},b&&u.createElement(w,{customIcon:b}),A&&u.createElement(w,{status:i})))}}])}(u.Component);O.displayName="TextInputBase",O.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:r.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:function(){},ouiaSafe:!0};var S=u.forwardRef(function(e,t){return u.createElement(O,Object.assign({},e,{innerRef:t}))});S.displayName="TextInput"},9292:function(e,t,n){"use strict";n.d(t,{h:function(){return u},J:function(){return r}});var r,o,a=n(3906),i=n(1477),l=n(9867),c={modifiers:{"4xl":"pf-m-4xl","3xl":"pf-m-3xl","2xl":"pf-m-2xl",xl:"pf-m-xl",lg:"pf-m-lg",md:"pf-m-md"},title:"pf-v5-c-title"},s=n(635);!function(e){e.md="md",e.lg="lg",e.xl="xl",e["2xl"]="2xl",e["3xl"]="3xl",e["4xl"]="4xl"}(r||(r={})),function(e){e.h1="2xl",e.h2="xl",e.h3="lg",e.h4="md",e.h5="md",e.h6="md"}(o||(o={}));var u=function(e){var t=e.className,n=void 0===t?"":t,r=e.children,f=void 0===r?"":r,d=e.headingLevel,p=e.size,m=void 0===p?o[d]:p,v=e.ouiaId,h=e.ouiaSafe,g=void 0===h||h,y=(0,a.Tt)(e,["className","children","headingLevel","size","ouiaId","ouiaSafe"]),b=(0,s.iK)(u.displayName,v,g);return i.createElement(d,Object.assign({},b,y,{className:(0,l.A)(c.title,m&&c.modifiers[m],n)}),f)};u.displayName="Title"},8380:function(e,t,n){"use strict";n.d(t,{M:function(){return x}});var r=n(3029),o=n(2901),a=n(6919),i=n(5501),l=n(3906),c=n(1477),s=n(6080),u=n(3083),f=n(9867),d=n(6285),p=n(1016),m=n(2227),v=n(628),h=n(599),g=function(e){function t(){return(0,r.A)(this,t),(0,a.A)(this,t,arguments)}return(0,i.A)(t,e),(0,o.A)(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.isExpanded,r=e.chipGroupContentRef,o=e.clearAllFilters,a=e.showClearFiltersButton,i=e.clearFiltersButtonText,u=e.collapseListedFiltersBreakpoint,g=e.numberOfFilters,y=e.numberOfFiltersText,b=e.customChipGroupContent,x=(0,l.Tt)(e,["className","isExpanded","chipGroupContentRef","clearAllFilters","showClearFiltersButton","clearFiltersButtonText","collapseListedFiltersBreakpoint","numberOfFilters","numberOfFiltersText","customChipGroupContent"]),w=!1;"all"===u?w=!0:p.Sw&&(w=(p.Sw?window.innerWidth:1200)0&&!n&&c.createElement(h.$,null,c.createElement(m.T,null,y(g))),a&&!n&&!b&&c.createElement(m.T,null,c.createElement(v.$n,{variant:"link",onClick:function(){o()},isInline:!0},i)),b&&b)}}])}(c.Component);g.displayName="ToolbarChipGroupContent",g.defaultProps={clearFiltersButtonText:"Clear all filters",collapseListedFiltersBreakpoint:"lg",numberOfFiltersText:function(e){return"".concat(e," filters applied")}};var y=n(635),b=n(583),x=function(e){function t(){var e;return(0,r.A)(this,t),(e=(0,a.A)(this,t,arguments)).chipGroupContentRef=c.createRef(),e.staticFilterInfo={},e.state={isManagedToggleExpanded:!1,filterInfo:{},windowWidth:p.Sw?window.innerWidth:1200,ouiaStateId:(0,y.X)(t.displayName)},e.isToggleManaged=function(){return!(e.props.isExpanded||e.props.toggleIsExpanded)},e.toggleIsExpanded=function(){e.setState(function(e){return{isManagedToggleExpanded:!e.isManagedToggleExpanded}})},e.closeExpandableContent=function(t){t.target.innerWidth!==e.state.windowWidth&&e.setState(function(){return{isManagedToggleExpanded:!1,windowWidth:t.target.innerWidth}})},e.updateNumberFilters=function(t,n){var r=Object.assign({},e.staticFilterInfo);r.hasOwnProperty(t)&&r[t]===n||(r[t]=n,e.staticFilterInfo=r,e.setState({filterInfo:r}))},e.getNumberOfFilters=function(){return Object.values(e.state.filterInfo).reduce(function(e,t){return e+t},0)},e.renderToolbar=function(n){var r=e.props,o=r.clearAllFilters,a=r.clearFiltersButtonText,i=r.collapseListedFiltersBreakpoint,u=r.isExpanded,m=r.toggleIsExpanded,v=r.className,h=r.children,x=r.isFullHeight,w=r.isStatic,O=r.inset,S=r.usePageInsets,C=r.isSticky,A=r.ouiaId,k=r.numberOfFiltersText,_=r.customChipGroupContent,E=(0,l.Tt)(r,["clearAllFilters","clearFiltersButtonText","collapseListedFiltersBreakpoint","isExpanded","toggleIsExpanded","className","children","isFullHeight","isStatic","inset","usePageInsets","isSticky","ouiaId","numberOfFiltersText","customChipGroupContent"]),P=e.state.isManagedToggleExpanded,j=e.isToggleManaged(),N=j?P:u,T=e.getNumberOfFilters(),M=T>0;return c.createElement(b.NQ.Consumer,null,function(r){var l=r.width,u=r.getBreakpoint;return c.createElement("div",Object.assign({className:(0,f.A)(s.A.toolbar,x&&s.A.modifiers.fullHeight,w&&s.A.modifiers.static,S&&s.A.modifiers.pageInsets,C&&s.A.modifiers.sticky,(0,p.ay)(O,s.A,"",u(l)),v),id:n},(0,y.Bs)(t.displayName,void 0!==A?A:e.state.ouiaStateId),E),c.createElement(d.PK.Provider,{value:{isExpanded:N,toggleIsExpanded:j?e.toggleIsExpanded:m,chipGroupContentRef:e.chipGroupContentRef,updateNumberFilters:e.updateNumberFilters,numberOfFilters:T,clearAllFilters:o,clearFiltersButtonText:a,showClearFiltersButton:M,toolbarId:n,customChipGroupContent:_}},h,c.createElement(g,{isExpanded:N,chipGroupContentRef:e.chipGroupContentRef,clearAllFilters:o,showClearFiltersButton:M,clearFiltersButtonText:a,numberOfFilters:T,numberOfFiltersText:k,collapseListedFiltersBreakpoint:i,customChipGroupContent:_})))})},e}return(0,i.A)(t,e),(0,o.A)(t,[{key:"componentDidMount",value:function(){this.isToggleManaged()&&p.Sw&&window.addEventListener("resize",this.closeExpandableContent)}},{key:"componentWillUnmount",value:function(){this.isToggleManaged()&&p.Sw&&window.removeEventListener("resize",this.closeExpandableContent)}},{key:"render",value:function(){var e=this;return this.props.id?this.renderToolbar(this.props.id):c.createElement(u.N,null,function(t){return e.renderToolbar(t)})}}])}(c.Component);x.displayName="Toolbar"},1417:function(e,t,n){"use strict";n.d(t,{P:function(){return m}});var r=n(3029),o=n(2901),a=n(6919),i=n(5501),l=n(3906),c=n(1477),s=n(6080),u=n(9867),f=n(6285),d=n(1016),p=n(583),m=function(e){function t(){var e;return(0,r.A)(this,t),(e=(0,a.A)(this,t,arguments)).expandableContentRef=c.createRef(),e.chipContainerRef=c.createRef(),e}return(0,i.A)(t,e),(0,o.A)(t,[{key:"render",value:function(){var e=this,n=this.props,r=n.className,o=n.children,a=n.isExpanded,i=n.toolbarId,m=n.visibility,v=n.alignItems,h=n.clearAllFilters,g=n.showClearFiltersButton,y=n.clearFiltersButtonText,b=n.alignSelf,x=(0,l.Tt)(n,["className","children","isExpanded","toolbarId","visibility","alignItems","clearAllFilters","showClearFiltersButton","clearFiltersButtonText","alignSelf"]);return c.createElement(p.NQ.Consumer,null,function(n){var l=n.width,p=n.getBreakpoint;return c.createElement("div",Object.assign({className:(0,u.A)(s.A.toolbarContent,(0,d.ay)(m,s.A,"",p(l)),r),ref:e.expandableContentRef},x),c.createElement(f.PK.Consumer,null,function(n){var r=n.clearAllFilters,l=n.clearFiltersButtonText,d=n.showClearFiltersButton,p=n.isExpanded,m=n.toolbarId,x="".concat(i||m,"-expandable-content-").concat(t.currentId++);return c.createElement(f.m.Provider,{value:{expandableContentRef:e.expandableContentRef,expandableContentId:x,chipContainerRef:e.chipContainerRef,isExpanded:a||p,clearAllFilters:h||r,clearFiltersButtonText:y||l,showClearFiltersButton:g||d}},c.createElement("div",{className:(0,u.A)(s.A.toolbarContentSection,"center"===v&&s.A.modifiers.alignItemsCenter,"start"===v&&s.A.modifiers.alignItemsStart,"baseline"===v&&s.A.modifiers.alignItemsBaseline,"center"===b&&s.A.modifiers.alignSelfCenter,"start"===b&&s.A.modifiers.alignSelfStart,"baseline"===b&&s.A.modifiers.alignSelfBaseline)},o))}))})}}])}(c.Component);m.displayName="ToolbarContent",m.currentId=0,m.defaultProps={isExpanded:!1,showClearFiltersButton:!1}},599:function(e,t,n){"use strict";n.d(t,{$:function(){return v}});var r,o=n(3029),a=n(2901),i=n(6919),l=n(5501),c=n(3906),s=n(1477),u=n(6080),f=n(9867),d=n(1016),p=n(583);!function(e){e["filter-group"]="filter-group",e["icon-button-group"]="icon-button-group",e["button-group"]="button-group"}(r||(r={}));var m=function(e){function t(){return(0,o.A)(this,t),(0,i.A)(this,t,arguments)}return(0,l.A)(t,e),(0,a.A)(t,[{key:"render",value:function(){var e=this.props,t=e.visibility,n=e.align,r=e.alignItems,o=e.alignSelf,a=e.spacer,i=e.spaceItems,l=e.className,m=e.variant,v=e.children,h=e.isOverflowContainer,g=e.innerRef,y=(0,c.Tt)(e,["visibility","align","alignItems","alignSelf","spacer","spaceItems","className","variant","children","isOverflowContainer","innerRef"]);return s.createElement(p.NQ.Consumer,null,function(e){var c=e.width,p=e.getBreakpoint;return s.createElement("div",Object.assign({className:(0,f.A)(u.A.toolbarGroup,m&&u.A.modifiers[(0,d.wu)(m)],(0,d.ay)(t,u.A,"",p(c)),(0,d.ay)(n,u.A,"",p(c)),(0,d.ay)(a,u.A,"",p(c)),(0,d.ay)(i,u.A,"",p(c)),"start"===r&&u.A.modifiers.alignItemsStart,"center"===r&&u.A.modifiers.alignItemsCenter,"baseline"===r&&u.A.modifiers.alignItemsBaseline,"start"===o&&u.A.modifiers.alignSelfStart,"center"===o&&u.A.modifiers.alignSelfCenter,"baseline"===o&&u.A.modifiers.alignSelfBaseline,h&&u.A.modifiers.overflowContainer,l)},y,{ref:g}),v)})}}])}(s.Component),v=s.forwardRef(function(e,t){return s.createElement(m,Object.assign({},e,{innerRef:t}))})},2227:function(e,t,n){"use strict";n.d(t,{T:function(){return p},U:function(){return r}});var r,o=n(296),a=n(3906),i=n(1477),l=n(6080),c=n(9867),s={name:"--pf-v5-c-toolbar__item--Width",value:"auto",var:"var(--pf-v5-c-toolbar__item--Width)"},u=n(1016),f=n(9341),d=n(583);!function(e){e.separator="separator",e["bulk-select"]="bulk-select",e["overflow-menu"]="overflow-menu",e.pagination="pagination",e["search-filter"]="search-filter",e.label="label",e["chip-group"]="chip-group",e["expand-all"]="expand-all"}(r||(r={}));var p=function(e){var t=e.className,n=e.variant,p=e.visibility,m=e.spacer,v=e.widths,h=e.align,g=e.alignSelf,y=e.alignItems,b=e.id,x=e.children,w=e.isAllExpanded,O=e.isOverflowContainer,S=(0,a.Tt)(e,["className","variant","visibility","spacer","widths","align","alignSelf","alignItems","id","children","isAllExpanded","isOverflowContainer"]);if(n===r.separator)return i.createElement(f.c,Object.assign({className:(0,c.A)(l.A.modifiers.vertical,t)},S));var C={};return v&&Object.entries(v||{}).map(function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];return C["".concat(s.name).concat("default"!==n?"-on-".concat(n):"")]=r}),i.createElement(d.NQ.Consumer,null,function(e){var r=e.width,o=e.getBreakpoint;return i.createElement("div",Object.assign({className:(0,c.A)(l.A.toolbarItem,n&&l.A.modifiers[(0,u.wu)(n)],w&&l.A.modifiers.expanded,O&&l.A.modifiers.overflowContainer,(0,u.ay)(p,l.A,"",o(r)),(0,u.ay)(h,l.A,"",o(r)),(0,u.ay)(m,l.A,"",o(r)),"start"===y&&l.A.modifiers.alignItemsStart,"center"===y&&l.A.modifiers.alignItemsCenter,"baseline"===y&&l.A.modifiers.alignItemsBaseline,"start"===g&&l.A.modifiers.alignSelfStart,"center"===g&&l.A.modifiers.alignSelfCenter,"baseline"===g&&l.A.modifiers.alignSelfBaseline,t)},"label"===n&&{"aria-hidden":!0},{id:b},S,v&&{style:Object.assign(Object.assign({},C),S.style)}),x)})};p.displayName="ToolbarItem"},7066:function(e,t,n){"use strict";n.d(t,{h:function(){return x}});var r=n(3029),o=n(2901),a=n(6919),i=n(5501),l=n(3906),c=n(1477),s=n(9252),u=n(6080),f=n(9867),d=n(6285),p=n(628),m=n(3498),v=n(1016),h=n(583),g=n(599),y=n(2227),b=function(e){function t(){return(0,r.A)(this,t),(0,a.A)(this,t,arguments)}return(0,i.A)(t,e),(0,o.A)(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.expandableContentRef,o=e.chipContainerRef,a=e.isExpanded,i=e.clearAllFilters,s=e.clearFiltersButtonText,d=e.showClearFiltersButton,m=(0,l.Tt)(e,["children","className","expandableContentRef","chipContainerRef","isExpanded","clearAllFilters","clearFiltersButtonText","showClearFiltersButton"]),v=this.context,h=v.numberOfFilters,b=v.customChipGroupContent;return c.createElement("div",Object.assign({className:(0,f.A)(u.A.toolbarExpandableContent,a&&u.A.modifiers.expanded,n),ref:r},m),c.createElement(g.$,null,t),h>0&&c.createElement(g.$,{className:u.A.modifiers.chipContainer},c.createElement(g.$,{ref:o}),d&&!b&&c.createElement(y.T,null,c.createElement(p.$n,{variant:"link",onClick:function(){i()},isInline:!0},s)),b&&b))}}])}(c.Component);b.displayName="ToolbarExpandableContent",b.contextType=d.PK,b.defaultProps={isExpanded:!1,clearFiltersButtonText:"Clear all filters"};var x=function(e){function t(){var e;return(0,r.A)(this,t),(e=(0,a.A)(this,t,arguments)).toggleRef=c.createRef(),e.expandableContentRef=c.createRef(),e.isContentPopup=function(){return(v.Sw?window.innerWidth:1200)2&&void 0!==arguments[2]?arguments[2]:function(e){return document.activeElement.contains(e)},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return e},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:["A","BUTTON","INPUT"],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=!(arguments.length>7&&void 0!==arguments[7])||arguments[7],c=!(arguments.length>8&&void 0!==arguments[8])||arguments[8],s=document.activeElement,u=e.key,f=null;if(!a&&["ArrowUp","ArrowDown"].includes(u)){e.preventDefault(),e.stopImmediatePropagation();var d=-1;t.forEach(function(e,o){if(n(e))for(var a=0;!f&&a=t.length&&(d=0),d<0&&(d=t.length-1),f=r(t[d])})}if(!i&&["ArrowLeft","ArrowRight"].includes(u)){e.preventDefault(),e.stopImmediatePropagation();var p=-1;t.forEach(function(r,a){if(n(r)){var i=t[a].querySelectorAll(o.join(","));if(!i.length||c){for(var l=s;l;)if((l="ArrowLeft"===u?l.previousElementSibling:l.nextElementSibling)&&o.includes(l.tagName)){f=l;break}}else i.forEach(function(t,n){e.target===t&&((p=n+("ArrowLeft"===u?-1:1))>=i.length&&(p=0),p<0&&(p=i.length-1),f=i[p])})}})}f&&(l&&(s.tabIndex=-1,f.tabIndex=0),f.focus())},u=function(e){e&&e.length>0&&(e.forEach(function(e){e.tabIndex=-1}),e[0].tabIndex=0)},f=function(e,t){var n;if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault();var r,o=Array.from(null===(n=t.current)||void 0===n?void 0:n.querySelectorAll("li")).map(function(e){return e.querySelector('button:not(:disabled),input:not(:disabled),a:not([aria-disabled="true"])')}).filter(function(e){return null!==e});(r="ArrowDown"===e.key?o[0]:o[o.length-1])&&r.focus()}},d=function(e){function t(){var e;return(0,r.A)(this,t),(e=(0,a.A)(this,t,arguments)).keyHandler=function(t){var n=e.props.isEventFromContainer;if(n?n(t):e._isEventFromContainer(t)){var r=e.props,o=r.isActiveElement,a=r.getFocusableElement,i=r.noVerticalArrowHandling,l=r.noHorizontalArrowHandling,c=r.noEnterHandling,u=r.noSpaceHandling,f=r.updateTabIndex,d=r.validSiblingTags,p=r.additionalKeyHandler,m=r.createNavigableElements,v=r.onlyTraverseSiblings;p&&p(t);var h=m();if(h){var g=t.key;c||"Enter"===g&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),u||" "===g&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),s(t,h,o,a,d,i,l,f,v)}else console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.")}},e._isEventFromContainer=function(t){var n=e.props.containerRef;return n.current&&n.current.contains(t.target)},e}return(0,i.A)(t,e),(0,o.A)(t,[{key:"componentDidMount",value:function(){c.Sw&&window.addEventListener("keydown",this.keyHandler)}},{key:"componentWillUnmount",value:function(){c.Sw&&window.removeEventListener("keydown",this.keyHandler)}},{key:"render",value:function(){return null}}])}(l.Component);d.displayName="KeyboardHandler",d.defaultProps={containerRef:null,createNavigableElements:function(){return null},isActiveElement:function(e){return document.activeElement===e},getFocusableElement:function(e){return e},validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1}},635:function(e,t,n){"use strict";n.d(t,{Bs:function(){return l},X:function(){return u},iK:function(){return c}});var r=n(1477),o=0,a="OUIA-Generated-",i={};function l(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{"data-ouia-component-type":"PF5/".concat(e),"data-ouia-safe":n,"data-ouia-component-id":t}}var c=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;return{"data-ouia-component-type":"PF5/".concat(e),"data-ouia-safe":n,"data-ouia-component-id":s(e,t,r)}},s=function(e,t,n){var o=(0,r.useMemo)(function(){return u(e,n)},[e,n]);return null!==t&&void 0!==t?t:o};function u(e,t){try{var n;return n="undefined"!==typeof window?"".concat(window.location.href,"-").concat(e,"-").concat(t||""):"".concat(e,"-").concat(t||""),i[n]||(i[n]=0),"".concat(a).concat(e,"-").concat(t?"".concat(t,"-"):"").concat(++i[n])}catch(r){return"".concat(a).concat(e,"-").concat(t?"".concat(t,"-"):"").concat(++o)}}},7643:function(e,t,n){"use strict";n.d(t,{N:function(){return ke}});var r=n(296),o=n(1477),a=n(9252),i=n(5458);function l(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function c(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function s(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function u(e){return e instanceof c(e).Element||e instanceof Element}function f(e){return e instanceof c(e).HTMLElement||e instanceof HTMLElement}function d(e){return e?(e.nodeName||"").toLowerCase():null}function p(e){return(u(e)?e.ownerDocument:e.document).documentElement}function m(e){return l(p(e)).left+s(e).scrollLeft}function v(e){return c(e).getComputedStyle(e)}function h(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(t),o=l(e),a=f(t),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==d(t)||h(r))&&(i=function(e){return e!==c(e)&&f(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:s(e);var t}(t)),f(t)?((u=l(t)).x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=m(r))),{x:o.left+i.scrollLeft-u.x,y:o.top+i.scrollTop-u.y,width:o.width,height:o.height}}function y(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function b(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||e.host||p(e)}function x(e){return["html","body","#document"].indexOf(d(e))>=0?e.ownerDocument.body:f(e)&&h(e)?e:x(b(e))}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=x(e),r="body"===d(n),o=c(n),a=r?[o].concat(o.visualViewport||[],h(n)?n:[]):n,i=t.concat(a);return r?i:i.concat(w(b(a)))}function O(e){return["table","td","th"].indexOf(d(e))>=0}function S(e){if(!f(e)||"fixed"===v(e).position)return null;var t=e.offsetParent;if(t){var n=p(t);if("body"===d(t)&&"static"===v(t).position&&"static"!==v(n).position)return n}return t}function C(e){for(var t=c(e),n=S(e);n&&O(n)&&"static"===v(n).position;)n=S(n);return n&&"body"===d(n)&&"static"===v(n).position?t:n||function(e){for(var t=b(e);f(t)&&["html","body"].indexOf(d(t))<0;){var n=v(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}var A="top",k="bottom",_="right",E="left",P="auto",j=[A,k,_,E],N="start",T="end",M="viewport",I="popper",L=j.reduce(function(e,t){return e.concat(["".concat(t,"-").concat(N),"".concat(t,"-").concat(T)])},[]),R=[].concat(j,[P]).reduce(function(e,t){return e.concat([t,"".concat(t,"-").concat(N),"".concat(t,"-").concat(T)])},[]),D=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function F(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat((0,i.A)(e.requires||[]),(0,i.A)(e.requiresIfExists||[])).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function z(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var B={placement:"bottom",modifiers:[],strategy:"absolute"};function H(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultModifiers,n=void 0===t?[]:t,r=e.defaultOptions,o=void 0===r?B:r;return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,a={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},B),o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,s={state:a,setOptions:function(r){f(),a.options=Object.assign(Object.assign(Object.assign({},o),a.options),r),a.scrollParents={reference:u(e)?w(e):e.contextElement?w(e.contextElement):[],popper:w(t)};var c=function(e){var t=F(e);return D.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat((0,i.A)(n),(0,i.A)(a.options.modifiers))));return a.orderedModifiers=c.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var i=o({state:a,name:t,instance:s,options:r}),c=function(){};l.push(i||c)}}),s.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(H(t,n)){a.rects={reference:g(t,C(n),"fixed"===a.options.strategy),popper:y(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r=0?"x":"y"}function K(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?V(o):null,i=o?G(o):null,l=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(a){case A:t={x:l,y:n.y-r.height};break;case k:t={x:l,y:n.y+n.height};break;case _:t={x:n.x+n.width,y:c};break;case E:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var s=a?q(a):null;if(null!=s){var u="y"===s?"height":"width";switch(i){case N:t[s]=Math.floor(t[s])-Math.floor(n[u]/2-r[u]/2);break;case T:t[s]=Math.floor(t[s])+Math.ceil(n[u]/2-r[u]/2)}}return t}var $={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Y=n(4467),Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t=e.popper,n=e.popperRect,r=e.placement,o=e.offsets,a=e.position,i=e.gpuAcceleration,l=e.adaptive,s=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(o),u=s.x,f=s.y,d=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),v=E,h=A,g=window;if(l){var y=C(t);y===c(t)&&(y=p(t)),r===A&&(h=k,f-=y.clientHeight-n.height,f*=i?1:-1),r===E&&(v=_,u-=y.clientWidth-n.width,u*=i?1:-1)}var b=Object.assign({position:a},l&&Q);return i?Object.assign(Object.assign({},b),(0,Y.A)((0,Y.A)((0,Y.A)({},h,m?"0":""),v,d?"0":""),"transform",(g.devicePixelRatio||1)<2?"translate(".concat(u,"px, ").concat(f,"px)"):"translate3d(".concat(u,"px, ").concat(f,"px, 0)"))):Object.assign(Object.assign({},b),(0,Y.A)((0,Y.A)((0,Y.A)({},h,m?"".concat(f,"px"):""),v,d?"".concat(u,"px"):""),"transform",""))}var Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,a=n.offset,i=void 0===a?[0,0]:a,l=R.reduce(function(e,n){return e[n]=function(e,t,n){var o=V(e),a=[E,A].indexOf(o)>=0?-1:1,i="function"===typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n,l=(0,r.A)(i,2),c=l[0],s=l[1];return c=c||0,s=(s||0)*a,[E,_].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}(n,t.rects,i),e},{}),c=l[t.placement],s=c.x,u=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=l}},ee={left:"right",right:"left",bottom:"top",top:"bottom"};function te(e){return e.replace(/left|right|bottom|top/g,function(e){return ee[e]})}var ne={start:"end",end:"start"};function re(e){return e.replace(/start|end/g,function(e){return ne[e]})}function oe(e,t){var n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ae(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ie(e,t){return t===M?ae(function(e){var t=c(e),n=p(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,l=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,l=r.offsetTop)),{width:o,height:a,x:i+m(e),y:l}}(e)):f(t)?function(e){var t=l(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ae(function(e){var t=p(e),n=s(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-n.scrollLeft+m(e),l=-n.scrollTop;return"rtl"===v(r||t).direction&&(i+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:i,y:l}}(p(e)))}function le(e,t,n){var r="clippingParents"===t?function(e){var t=w(b(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&f(e)?C(e):e;return u(n)?t.filter(function(e){return u(e)&&oe(e,n)&&"body"!==d(e)}):[]}(e):[].concat(t),o=[].concat((0,i.A)(r),[n]),a=o[0],l=o.reduce(function(t,n){var r=ie(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t},ie(e,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ce(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function se(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.placement,r=void 0===n?e.placement:n,o=t.boundary,a=void 0===o?"clippingParents":o,i=t.rootBoundary,c=void 0===i?M:i,s=t.elementContext,f=void 0===s?I:s,d=t.altBoundary,m=void 0!==d&&d,v=t.padding,h=void 0===v?0:v,g=ce("number"!==typeof h?h:se(h,j)),y=f===I?"reference":I,b=e.elements.reference,x=e.rects.popper,w=e.elements[m?y:f],O=le(u(w)?w:w.contextElement||p(e.elements.popper),a,c),S=l(b),C=K({reference:S,element:x,strategy:"absolute",placement:r}),E=ae(Object.assign(Object.assign({},x),C)),P=f===I?E:S,N={top:O.top-P.top+g.top,bottom:P.bottom-O.bottom+g.bottom,left:O.left-P.left+g.left,right:P.right-O.right+g.right},T=e.modifiersData.offset;if(f===I&&T){var L=T[r];Object.keys(N).forEach(function(e){var t=[_,k].indexOf(e)>=0?1:-1,n=[A,k].indexOf(e)>=0?"y":"x";N[e]+=L[n]*t})}return N}var fe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,l=n.altAxis,c=void 0===l||l,s=n.fallbackPlacements,u=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=void 0===m||m,h=n.allowedAutoPlacements,g=t.options.placement,y=V(g),b=s||(y===g||!v?[te(g)]:function(e){if(V(e)===P)return[];var t=te(e);return[re(e),t,re(t)]}(g)),x=[g].concat((0,i.A)(b)).reduce(function(e,n){return e.concat(V(n)===P?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.placement,r=t.boundary,o=t.rootBoundary,a=t.padding,i=t.flipVariations,l=t.allowedAutoPlacements,c=void 0===l?R:l,s=G(n),u=s?i?L:L.filter(function(e){return G(e)===s}):j,f=u.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=u);var d=f.reduce(function(t,n){return t[n]=ue(e,{placement:n,boundary:r,rootBoundary:o,padding:a})[V(n)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}(t,{placement:n,boundary:f,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:h}):n)},[]),w=t.rects.reference,O=t.rects.popper,S=new Map,C=!0,T=x[0],M=0;M=0,B=z?"width":"height",H=ue(t,{placement:I,boundary:f,rootBoundary:d,altBoundary:p,padding:u}),W=z?F?_:E:F?k:A;w[B]>O[B]&&(W=te(W));var U=te(W),X=[];if(a&&X.push(H[D]<=0),c&&X.push(H[W]<=0,H[U]<=0),X.every(function(e){return e})){T=I,C=!1;break}S.set(I,X)}if(C)for(var q=function(e){var t=x.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return T=t,1},K=v?3:1;K>0&&!q(K);K--);t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function de(e,t,n){return Math.max(e,Math.min(t,n))}var pe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,c=n.boundary,s=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,m=n.tetherOffset,v=void 0===m?0:m,h=ue(t,{boundary:c,rootBoundary:s,padding:f,altBoundary:u}),g=V(t.placement),b=G(t.placement),x=!b,w=q(g),O="x"===w?"y":"x",S=t.modifiersData.popperOffsets,P=t.rects.reference,j=t.rects.popper,T="function"===typeof v?v(Object.assign(Object.assign({},t.rects),{placement:t.placement})):v,M={x:0,y:0};if(S){if(a){var I="y"===w?A:E,L="y"===w?k:_,R="y"===w?"height":"width",D=S[w],F=S[w]+h[I],z=S[w]-h[L],B=p?-j[R]/2:0,H=b===N?P[R]:j[R],W=b===N?-j[R]:-P[R],U=t.elements.arrow,X=p&&U?y(U):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=K[I],Y=K[L],Q=de(0,P[R],X[R]),J=x?P[R]/2-B-Q-$-T:H-Q-$-T,Z=x?-P[R]/2+B+Q+Y+T:W+Q+Y+T,ee=t.elements.arrow&&C(t.elements.arrow),te=ee?"y"===w?ee.clientTop||0:ee.clientLeft||0:0,ne=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,re=S[w]+J-ne-te,oe=S[w]+Z-ne,ae=de(p?Math.min(F,re):F,D,p?Math.max(z,oe):z);S[w]=ae,M[w]=ae-D}if(l){var ie="x"===w?A:E,le="x"===w?k:_,ce=S[O],se=de(ce+h[ie],ce,ce-h[le]);S[O]=se,M[O]=se-ce}t.modifiersData[r]=M}},requiresIfExists:["offset"]};var me={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.name,r=t.elements.arrow,o=t.modifiersData.popperOffsets,a=V(t.placement),i=q(a),l=[E,_].indexOf(a)>=0?"height":"width";if(r&&o){var c=t.modifiersData["".concat(n,"#persistent")].padding,s=y(r),u="y"===i?A:E,f="y"===i?k:_,d=t.rects.reference[l]+t.rects.reference[i]-o[i]-t.rects.popper[l],p=o[i]-t.rects.reference[i],m=C(r),v=m?"y"===i?m.clientHeight||0:m.clientWidth||0:0,h=d/2-p/2,g=c[u],b=v-s[l]-c[f],x=v/2-s[l]/2+h,w=de(g,x,b),O=i;t.modifiersData[n]=(0,Y.A)((0,Y.A)({},O,w),"centerOffset",w-x)}},effect:function(e){var t=e.state,n=e.options,r=e.name,o=n.element,a=void 0===o?"[data-popper-arrow]":o,i=n.padding,l=void 0===i?0:i;null!=a&&("string"!==typeof a||(a=t.elements.popper.querySelector(a)))&&oe(t.elements.popper,a)&&(t.elements.arrow=a,t.modifiersData["".concat(r,"#persistent")]={padding:ce("number"!==typeof l?l:se(l,j))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{x:0,y:0};return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function he(e){return[A,_,k,E].some(function(t){return e[t]>=0})}var ge=W({defaultModifiers:[X,$,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l={placement:V(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),J(Object.assign(Object.assign({},l),{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),J(Object.assign(Object.assign({},l),{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];f(o)&&d(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});f(r)&&d(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},Z,fe,pe,me,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=ue(t,{elementContext:"reference"}),l=ue(t,{altBoundary:!0}),c=ve(i,r),s=ve(l,o,a),u=he(c),f=he(s);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:s,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),ye=n(550),be=function(e){return e.reduce(function(e,t){var n=(0,r.A)(t,2),o=n[0],a=n[1];return e[o]=a,e},{})},xe=[],we=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.useRef(null),l={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||xe},c=o.useState({styles:{popper:{position:l.strategy,left:"0",top:"0"}},attributes:{}}),s=(0,r.A)(c,2),u=s[0],f=s[1],d=o.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);f({styles:be(n.map(function(e){return[e,t.styles[e]||{}]})),attributes:be(n.map(function(e){return[e,t.attributes[e]]}))})},requires:["computeStyles"]}},[]),p=o.useMemo(function(){var e,t,n={onFirstUpdate:l.onFirstUpdate,placement:l.placement,strategy:l.strategy,modifiers:[].concat((0,i.A)(l.modifiers),[d,{name:"applyStyles",enabled:!1}])};return e=a.current,t=n,JSON.stringify(e)===JSON.stringify(t)?a.current||n:(a.current=n,n)},[l.onFirstUpdate,l.placement,l.strategy,l.modifiers,d]),m=o.useRef();return(0,ye.E)(function(){m&&m.current&&m.current.setOptions(p)},[p]),(0,ye.E)(function(){if(null!=e&&null!=t){var r=(n.createPopper||ge)(e,t,p);return m.current=r,function(){r.destroy(),m.current=null}}},[e,t,n.createPopper]),{state:m.current?m.current.state:null,styles:u.styles,attributes:u.attributes,update:m.current?m.current.update:null,forceUpdate:m.current?m.current.forceUpdate:null}},Oe=n(1016),Se=n(9867),Ce={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},Ae=function(e){return"opacity ".concat(e,"ms cubic-bezier(.54, 1.5, .38, 1.11)")},ke=function(e){var t,n=e.trigger,i=e.popper,l=e.direction,c=void 0===l?"down":l,s=e.position,u=void 0===s?"start":s,f=e.placement,d=e.width,p=e.minWidth,m=void 0===p?"trigger":p,v=e.maxWidth,h=e.appendTo,g=void 0===h?"inline":h,y=e.zIndex,b=void 0===y?9999:y,x=e.isVisible,w=void 0===x||x,O=e.positionModifiers,S=e.distance,C=void 0===S?0:S,A=e.onMouseEnter,k=e.onMouseLeave,_=e.onFocus,E=e.onBlur,P=e.onDocumentClick,j=e.onTriggerClick,N=e.onTriggerEnter,T=e.onPopperClick,M=e.onPopperMouseEnter,I=e.onPopperMouseLeave,L=e.onDocumentKeyDown,R=e.enableFlip,D=void 0===R||R,F=e.flipBehavior,z=void 0===F?"flip":F,B=e.triggerRef,H=e.popperRef,W=e.animationDuration,U=void 0===W?0:W,X=e.entryDelay,V=void 0===X?0:X,G=e.exitDelay,q=void 0===G?0:G,K=e.onHidden,$=void 0===K?function(){}:K,Y=e.onHide,Q=void 0===Y?function(){}:Y,J=e.onMount,Z=void 0===J?function(){}:J,ee=e.onShow,te=void 0===ee?function(){}:ee,ne=e.onShown,re=void 0===ne?function(){}:ne,oe=e.preventOverflow,ae=void 0!==oe&&oe,ie=o.useState(null),le=(0,r.A)(ie,2),ce=le[0],se=le[1],ue=o.useState(null),fe=(0,r.A)(ue,2),de=fe[0],pe=fe[1],me=o.useState(null),ve=(0,r.A)(me,2),he=ve[0],ge=ve[1],ye=o.useState(null),be=(0,r.A)(ye,2),xe=be[0],ke=be[1],_e=o.useState(!1),Ee=(0,r.A)(_e,2),Pe=Ee[0],je=Ee[1],Ne=o.useState(0),Te=(0,r.A)(Ne,2),Me=Te[0],Ie=Te[1],Le=o.useState(w),Re=(0,r.A)(Le,2),De=Re[0],Fe=Re[1],ze=o.useRef(null),Be=o.useRef(null),He=o.useRef(null),We=o.useRef(),Ue=de||ce,Xe=w||De,Ve=null===(t=(null===B||void 0===B?void 0:B.current)||ce)||void 0===t?void 0:t.parentElement,Ge=(0,Oe.iJ)(Ve),qe=o.useMemo(function(){var e={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},e),rtl:Object.assign({start:"right",end:"left"},e)}[Ge][u]},[u,Ge]),Ke=o.useCallback(function(e){return P(e,Ue,he)},[Xe,ce,de,he,P]);o.useEffect(function(){je(!0),Z()},[]),o.useEffect(function(){return function(){(0,Oe.qb)([ze,He,Be])}},[]),o.useEffect(function(){B&&(B.current?pe(B.current):"function"===typeof B&&pe(B()))},[B,n]),o.useEffect(function(){H&&(H.current?ge(H.current):"function"===typeof H&&ge(H()))},[Xe,H]),o.useEffect(function(){var e=new MutationObserver(function(){ot&&ot()});return he&&e.observe(he,{attributes:!0,childList:!0,subtree:!0}),function(){e.disconnect()}},[he]);var $e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&t&&t.addEventListener(n,e,{capture:r})},Ye=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&t&&t.removeEventListener(n,e,{capture:r})};o.useEffect(function(){return $e(A,Ue,"mouseenter"),$e(k,Ue,"mouseleave"),$e(_,Ue,"focus"),$e(E,Ue,"blur"),$e(j,Ue,"click"),$e(N,Ue,"keydown"),$e(T,he,"click"),$e(M,he,"mouseenter"),$e(I,he,"mouseleave"),P&&$e(Ke,document,"click",!0),$e(L,document,"keydown",!0),function(){Ye(A,Ue,"mouseenter"),Ye(k,Ue,"mouseleave"),Ye(_,Ue,"focus"),Ye(E,Ue,"blur"),Ye(j,Ue,"click"),Ye(N,Ue,"keydown"),Ye(T,he,"click"),Ye(M,he,"mouseenter"),Ye(I,he,"mouseleave"),P&&Ye(Ke,document,"click",!0),Ye(L,document,"keydown",!0)}},[ce,he,A,k,_,E,j,N,T,M,I,P,L,de]);var Qe=function(){if(f)return f;var e="up"===c?"top":"bottom";return"center"!==qe&&(e="".concat(e,"-").concat("right"===qe?"end":"start")),e},Je=o.useMemo(Qe,[c,qe,f]),Ze=o.useMemo(function(){return function(e){return e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,function(e){return Ce[e]})}(Qe())},[c,qe,f]),et=o.useMemo(function(){return{name:"widthMods",enabled:void 0!==d||void 0!==m||void 0!==v,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state,n=t.rects.reference.width;d&&(t.styles.popper.width="trigger"===d?"".concat(n,"px"):d),m&&(t.styles.popper.minWidth="trigger"===m?"".concat(n,"px"):m),v&&(t.styles.popper.maxWidth="trigger"===v?"".concat(n,"px"):v)},effect:function(e){var t=e.state,n=t.elements.reference.offsetWidth;return d&&(t.elements.popper.style.width="trigger"===d?"".concat(n,"px"):d),m&&(t.elements.popper.style.minWidth="trigger"===m?"".concat(n,"px"):m),v&&(t.elements.popper.style.maxWidth="trigger"===v?"".concat(n,"px"):v),function(){}}}},[d,m,v]),tt=we(Ue,he,{placement:Je,modifiers:[{name:"offset",options:{offset:[0,C]}},{name:"preventOverflow",enabled:ae},{name:"hide",enabled:!0},{name:"flip",enabled:Je.startsWith("auto")||D,options:{fallbackPlacements:"flip"===z?[Ze]:z}},et]}),nt=tt.styles,rt=tt.attributes,ot=tt.update,at=tt.forceUpdate;o.useEffect(function(){var e,t,n,r,o,a,l,c=(null===(r=null===(n=null===(t=null===(e=null===i||void 0===i?void 0:i.props)||void 0===e?void 0:e.children)||void 0===t?void 0:t[1])||void 0===n?void 0:n.props)||void 0===r?void 0:r.children)||(null===(l=null===(a=null===(o=null===i||void 0===i?void 0:i.props)||void 0===o?void 0:o.children)||void 0===a?void 0:a.props)||void 0===l?void 0:l.children);ke(c),c&&xe&&c!==xe&&at&&at()},[i]),o.useEffect(function(){We.current0&&t()}):Array.isArray(e)&&e.length>0&&t()});i.observe(e),o=function(){return i.unobserve(e)}}else window.addEventListener("resize",t),o=function(){return window.removeEventListener("resize",t)}}return function(){o&&o()}}},550:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(1477),o=n(1016).Sw?r.useLayoutEffect:r.useEffect},1016:function(e,t,n){"use strict";n.d(t,{DR:function(){return d},LP:function(){return l},Mr:function(){return x},Sw:function(){return y},Xv:function(){return s},Yo:function(){return m},ZH:function(){return i},_y:function(){return v},ay:function(){return p},iJ:function(){return O},ou:function(){return u},qb:function(){return w},sg:function(){return c},td:function(){return f},wu:function(){return g}});var r=n(4467),o=n(296),a=(n(9252),n(3759));function i(e){return e[0].toUpperCase()+e.substring(1)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pf",t=(new Date).getTime()+Math.random().toString(36).slice(2);return"".concat(e,"-").concat(t)}function c(e,t){var n,r=this;return function(){for(var o=arguments.length,a=new Array(o),i=0;i3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)return!1;var o=e.getBoundingClientRect(),a=t.getBoundingClientRect(),i=Math.ceil(o.left),l=Math.floor(o.right),c=Math.ceil(a.left),s=Math.floor(a.right),u=c>=i&&s<=l,f=(n||!r&&o.widthi||s>l&&c2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;if(!e)return"";if(r&&!a){if(r in e)return t.modifiers[g("".concat(n).concat(e[r]))];for(var i=["2xl","xl","lg","md","sm","default"],l=i.indexOf(r);l=a.d7["2xl"]?"2xl":e>=a.d7.xl?"xl":e>=a.d7.lg?"lg":e>=a.d7.md?"md":e>=a.d7.sm?"sm":"default"},v=function(e){return null===e?null:e>=a.GT["2xl"]?"2xl":e>=a.GT.xl?"xl":e>=a.GT.lg?"lg":e>=a.GT.md?"md":e>=a.GT.sm?"sm":"default"},h=function(e){return e.toUpperCase().replace("-","").replace("_","")},g=function(e){return e.replace(/([-_][a-z])/gi,h)},y=!("undefined"===typeof window||!window.document||!window.document.createElement),b=function(e,t){var n=getComputedStyle(t),r=document.createElement("canvas").getContext("2d");return r.font=n.font||function(){var e,t={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};return e=n.fontStretch in t?t[n.fontStretch]:"normal",n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+e+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily}(),r.measureText(e).width},x=function(e,t){var n=function(e){var t=getComputedStyle(e),n=e.clientWidth,r=e.clientHeight;return{height:r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),width:n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)}}(e).width,r=t;if(b(t,e)>n){for(;b("...".concat(r),e)>n;)r=r.substring(1);e.value?e.value="...".concat(r):e.innerText="...".concat(r)}else e.value?e.value=t:e.innerText=t},w=function(e){e.forEach(function(e){e.current&&clearTimeout(e.current)})},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr";if(!e)return t;var n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t}},8056:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var r=n(3906),o=n(1477),a=n(9867),i="pf-v5-l-bullseye",l=function(e){var t=e.children,n=void 0===t?null:t,l=e.className,c=void 0===l?"":l,s=e.component,u=void 0===s?"div":s,f=(0,r.Tt)(e,["children","className","component"]),d=u;return o.createElement(d,Object.assign({className:(0,a.A)(i,c)},f),n)};l.displayName="Bullseye"},5435:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var r=n(3906),o=n(1477),a=n(9867),i=n(7403),l=n(1912),c=n(1016),s=function(e){var t=e.children,n=void 0===t?null:t,s=e.className,u=void 0===s?"":s,f=e.component,d=void 0===f?"div":f,p=e.spacer,m=e.spaceItems,v=e.gap,h=e.rowGap,g=e.columnGap,y=e.grow,b=e.shrink,x=e.flex,w=e.direction,O=e.alignItems,S=e.alignContent,C=e.alignSelf,A=e.align,k=e.justifyContent,_=e.display,E=e.fullWidth,P=e.flexWrap,j=e.order,N=e.style,T=(0,r.Tt)(e,["children","className","component","spacer","spaceItems","gap","rowGap","columnGap","grow","shrink","flex","direction","alignItems","alignContent","alignSelf","align","justifyContent","display","fullWidth","flexWrap","order","style"]),M=d;return o.createElement(M,Object.assign({className:(0,a.A)(i.A.flex,(0,c.ay)(p,i.A),(0,c.ay)(m,i.A),(0,c.ay)(y,i.A),(0,c.ay)(b,i.A),(0,c.ay)(x,i.A),(0,c.ay)(w,i.A),(0,c.ay)(O,i.A),(0,c.ay)(S,i.A),(0,c.ay)(C,i.A),(0,c.ay)(A,i.A),(0,c.ay)(k,i.A),(0,c.ay)(_,i.A),(0,c.ay)(E,i.A),(0,c.ay)(P,i.A),(0,c.ay)(v,i.A),(0,c.ay)(h,i.A),(0,c.ay)(g,i.A),u),style:N||j?Object.assign(Object.assign({},N),(0,c.DR)(j,l.k.name)):void 0},T),n)};s.displayName="Flex"},1640:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(3906),o=n(1477),a=n(9867),i=n(7403),l=n(1912),c=n(1016),s=function(e){var t=e.children,n=void 0===t?null:t,s=e.className,u=void 0===s?"":s,f=e.component,d=void 0===f?"div":f,p=e.spacer,m=e.grow,v=e.shrink,h=e.flex,g=e.alignSelf,y=e.align,b=e.fullWidth,x=e.order,w=e.style,O=(0,r.Tt)(e,["children","className","component","spacer","grow","shrink","flex","alignSelf","align","fullWidth","order","style"]),S=d;return o.createElement(S,Object.assign({},O,{className:(0,a.A)((0,c.ay)(p,i.A),(0,c.ay)(m,i.A),(0,c.ay)(v,i.A),(0,c.ay)(h,i.A),(0,c.ay)(g,i.A),(0,c.ay)(y,i.A),(0,c.ay)(b,i.A),u),style:w||x?Object.assign(Object.assign({},w),(0,c.DR)(x,l.k.name)):void 0}),n)};s.displayName="FlexItem"},3457:function(e,t,n){"use strict";n.d(t,{x:function(){return f}});var r=n(296),o=n(3906),a=n(1477),i=n(9766),l=n(9867),c=n(6265),s=n(4689),u=n(1016),f=function(e){var t=e.children,n=void 0===t?null:t,f=e.className,d=void 0===f?"":f,p=e.component,m=void 0===p?"div":p,v=e.hasGutter,h=e.span,g=void 0===h?null:h,y=e.order,b=e.style,x=(0,o.Tt)(e,["children","className","component","hasGutter","span","order","style"]),w=[i.A.grid,g&&i.A.modifiers["all_".concat(g,"Col")]],O=m;return Object.entries(c.h).forEach(function(e){var t=(0,r.A)(e,2),n=t[0],o=t[1],a=n,l=x[a];l&&w.push(i.A.modifiers["all_".concat(l,"ColOn").concat(o)]),delete x[a]}),a.createElement(O,Object.assign({className:l.A.apply(void 0,w.concat([v&&i.A.modifiers.gutter,d])),style:b||y?Object.assign(Object.assign({},b),(0,u.DR)(y,s.t.name)):void 0},x),n)};f.displayName="Grid"},3710:function(e,t,n){"use strict";n.d(t,{E:function(){return f}});var r=n(296),o=n(3906),a=n(1477),i=n(9766),l=n(9867),c=n(6265),s=n(4689),u=n(1016),f=function(e){var t=e.children,n=void 0===t?null:t,f=e.className,d=void 0===f?"":f,p=e.component,m=void 0===p?"div":p,v=e.span,h=void 0===v?null:v,g=e.rowSpan,y=void 0===g?null:g,b=e.offset,x=void 0===b?null:b,w=e.order,O=e.style,S=(0,o.Tt)(e,["children","className","component","span","rowSpan","offset","order","style"]),C=[i.A.gridItem,h&&i.A.modifiers["".concat(h,"Col")],y&&i.A.modifiers["".concat(y,"Row")],x&&i.A.modifiers["offset_".concat(x,"Col")]],A=m;return Object.entries(c.h).forEach(function(e){var t=(0,r.A)(e,2),n=t[0],o=t[1],a=n,l="".concat(a,"RowSpan"),c="".concat(a,"Offset"),s=S[a],u=S[l],f=S[c];s&&C.push(i.A.modifiers["".concat(s,"ColOn").concat(o)]),u&&C.push(i.A.modifiers["".concat(u,"RowOn").concat(o)]),f&&C.push(i.A.modifiers["offset_".concat(f,"ColOn").concat(o)]),delete S[a],delete S[l],delete S[c]}),a.createElement(A,Object.assign({className:l.A.apply(void 0,C.concat([d])),style:O||w?Object.assign(Object.assign({},O),(0,u.DR)(w,s.t.name)):void 0},S),n)};f.displayName="GridItem"},8559:function(e,t,n){"use strict";n.d(t,{B:function(){return l}});var r=n(3906),o=n(1477),a=n(3246),i=n(9867),l=function(e){var t=e.hasGutter,n=void 0!==t&&t,l=e.isWrappable,c=void 0!==l&&l,s=e.className,u=void 0===s?"":s,f=e.children,d=void 0===f?null:f,p=e.component,m=void 0===p?"div":p,v=(0,r.Tt)(e,["hasGutter","isWrappable","className","children","component"]),h=m;return o.createElement(h,Object.assign({},v,{className:(0,i.A)(a.A.split,n&&a.A.modifiers.gutter,c&&a.A.modifiers.wrap,u)}),d)};l.displayName="Split"},7540:function(e,t,n){"use strict";n.d(t,{o:function(){return l}});var r=n(3906),o=n(1477),a=n(3246),i=n(9867),l=function(e){var t=e.isFilled,n=void 0!==t&&t,l=e.className,c=void 0===l?"":l,s=e.children,u=void 0===s?null:s,f=(0,r.Tt)(e,["isFilled","className","children"]);return o.createElement("div",Object.assign({},f,{className:(0,i.A)(a.A.splitItem,n&&a.A.modifiers.fill,c)}),u)};l.displayName="SplitItem"},6265:function(e,t,n){"use strict";var r,o;n.d(t,{h:function(){return o}}),function(e){e.xs="xs",e.sm="sm",e.md="md",e.lg="lg",e.xl="xl",e["2xl"]="2xl",e["3xl"]="3xl",e["4xl"]="4xl"}(r||(r={})),function(e){e.sm="Sm",e.md="Md",e.lg="Lg",e.xl="Xl",e.xl2="_2xl"}(o||(o={}))},5618:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var r=n(3029),o=n(2901),a=n(6919),i=n(5501),l=n(3906),c=n(1477),s=0;function u(e){var t,n=e.name,u=e.xOffset,f=void 0===u?0:u,d=e.yOffset,p=void 0===d?0:d,m=e.width,v=e.height,h=e.svgPath;return t=function(e){function t(){var e;return(0,r.A)(this,t),(e=(0,a.A)(this,t,arguments)).id="icon-title-".concat(s++),e}return(0,i.A)(t,e),(0,o.A)(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.className,r=(0,l.Tt)(e,["title","className"]),o=n?"pf-v5-svg ".concat(n):"pf-v5-svg",a=Boolean(t),i=[f,p,m,v].join(" ");return c.createElement("svg",Object.assign({className:o,viewBox:i,fill:"currentColor","aria-labelledby":a?this.id:null,"aria-hidden":!a||null,role:"img",width:"1em",height:"1em"},r),a&&c.createElement("title",{id:this.id},t),c.createElement("path",{d:h}))}}])}(c.Component),t.displayName=n,t}},6974:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"AngleDownIcon",height:512,width:320,svgPath:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z",yOffset:0,xOffset:0});t.Ay=r},9085:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"AngleLeftIcon",height:512,width:256,svgPath:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z",yOffset:0,xOffset:0});t.Ay=r},4542:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"AngleRightIcon",height:512,width:256,svgPath:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z",yOffset:0,xOffset:0});t.Ay=r},4670:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0});t.Ay=r},5017:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0});t.Ay=r},6911:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"CubesIcon",height:512,width:512,svgPath:"M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z",yOffset:0,xOffset:0});t.Ay=r},6464:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0});t.Ay=r},2972:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0});t.Ay=r},4593:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"FilterIcon",height:512,width:512,svgPath:"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z",yOffset:0,xOffset:0});t.Ay=r},8480:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"SearchIcon",height:512,width:512,svgPath:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z",yOffset:0,xOffset:0});t.Ay=r},4102:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"SecurityIcon",height:1024,width:896,svgPath:"M861.5,0 L34.5,0 C15.4,0 0,14.3 0,32 L0,452.1 C0,768 387.7,1024 448.5,1024 C509.3,1024 896,768 896,452.2 L896,32 C896,14.3 880.6,0 861.5,0 Z M490.7,768 L405.3,768 C393.5,767.8 384.2,757.5 384,744.7 L384,663.3 C384.2,650.5 393.6,640.3 405.3,640 L490.7,640 C502.5,640.2 511.8,650.5 512,663.3 L512,744.7 L512.1,744.7 C511.8,757.5 502.4,767.8 490.7,768 Z M543.9,162.7 L517.2,514.4 C515.8,530.9 502,544 485.3,544 L410.6,544 C394,544 380.1,531.2 378.7,514.7 L352.1,163 C350.5,144.3 365.3,128.3 384,128.3 L512,128 C530.7,128 545.4,144 543.9,162.7 Z",yOffset:0,xOffset:0});t.Ay=r},412:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0});t.Ay=r},4483:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"TimesCircleIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z",yOffset:0,xOffset:0});t.Ay=r},7152:function(e,t,n){"use strict";var r=(0,n(5618).w)({name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0});t.Ay=r},9867:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(5458);function o(){for(var e=[],t={}.hasOwnProperty,n=arguments.length,a=new Array(n),i=0;i0&&l.createElement("span",{className:(0,c.A)(f.A.tableToggle),key:"table-toggle"},l.createElement(m.$n,{variant:"plain",onClick:function(t){return e&&e(t,a,S,i)},className:(0,c.A)(d&&s.A.modifiers.expanded),"aria-expanded":d,"aria-label":g||"".concat(d?"Collapse":"Expand"," row ").concat(a)},l.createElement("div",{className:(0,c.A)(f.A.tableToggleIcon)},l.createElement(U.Ay,{"aria-hidden":"true"})))),!!t&&l.createElement("span",{className:(0,c.A)(f.A.tableCheck),key:"table-check"},l.createElement("label",{htmlFor:w||"checkbox_".concat(a)},l.createElement(W.S,{id:w||"checkbox_".concat(a),"aria-label":y||"Row ".concat(a," checkbox"),isChecked:x,onChange:function(e,n){return function(e,n){t(n,e,a,S,i)}(n,e)}}))),C,!!n&&l.createElement("span",{className:(0,c.A)(f.A.tableTreeViewDetailsToggle),key:"view-details-toggle"},l.createElement(m.$n,{variant:"plain","aria-expanded":p,"aria-label":b||"Show row details",onClick:function(e){return n&&n(e,a,S,i)}},l.createElement("span",{className:"".concat(s.A.table,"__details-toggle-icon")},l.createElement(X,{"aria-hidden":!0}))))):C}}},G=n(4548),q=n(1054),K=n(2043),$=n(2402),Y=function(e){var t=e.children,n=e.className,p=e.isActionCell,m=void 0!==p&&p,h=e.component,g=void 0===h?"td":h,y=e.dataLabel,b=e.textCenter,x=void 0!==b&&b,w=e.modifier,O=e.select,S=void 0===O?null:O,C=e.actions,A=void 0===C?null:C,k=e.expand,_=void 0===k?null:k,E=e.treeRow,P=void 0===E?null:E,j=e.compoundExpand,N=void 0===j?null:j,M=e.noPadding,B=e.width,W=e.visibility,U=e.innerRef,X=e.favorites,Y=void 0===X?null:X,Q=e.draggableRow,J=void 0===Q?null:Q,Z=e.tooltip,ee=void 0===Z?"":Z,te=e.onMouseEnter,ne=void 0===te?function(){}:te,re=e.isStickyColumn,oe=void 0!==re&&re,ae=e.hasRightBorder,ie=void 0!==ae&&ae,le=e.hasLeftBorder,ce=void 0!==le&&le,se=e.stickyMinWidth,ue=void 0===se?"120px":se,fe=e.stickyLeftOffset,de=e.stickyRightOffset,pe=(0,i.Tt)(e,["children","className","isActionCell","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow","tooltip","onMouseEnter","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset"]),me=l.useState(!1),ve=(0,a.A)(me,2),he=ve[0],ge=ve[1],ye=l.useState(!1),be=(0,a.A)(ye,2),xe=be[0],we=be[1],Oe=U||l.createRef(),Se=function(e){e.target.offsetWidth0?{children:l.createElement(I,{items:h,isDisabled:g,rowData:a,extraData:v,actionsToggle:p,popperProps:m},r)}:{};return Object.assign({className:(0,c.A)(s.A.tableAction),style:{paddingRight:0},isVisible:!0},y)}}(A.items,null,null):null,Ee=_e?_e(null,{rowIndex:null===A||void 0===A?void 0:A.rowIndex,rowData:{disableActions:null===A||void 0===A?void 0:A.isDisabled},column:{extraParams:{dropdownPosition:null===A||void 0===A?void 0:A.dropdownPosition,dropdownDirection:null===A||void 0===A?void 0:A.dropdownDirection,menuAppendTo:null===A||void 0===A?void 0:A.menuAppendTo,actionsToggle:null===A||void 0===A?void 0:A.actionsToggle}}}):null,Pe=null!==_?(0,R.r0)(null,{rowIndex:_.rowIndex,columnIndex:null===_||void 0===_?void 0:_.columnIndex,rowData:{isOpen:_.isExpanded},column:{extraParams:{onCollapse:null===_||void 0===_?void 0:_.onToggle,expandId:null===_||void 0===_?void 0:_.expandId}}}):null,je=null!==N?function(e,t){var n=t.rowIndex,r=t.columnIndex,o=t.rowData,a=t.column,i=t.property;if(!e)return null;var u=e.title,f=e.props,d=a.extraParams,p=d.onExpand,m=d.expandId,v=void 0===m?"expand-toggle":m,h={rowIndex:n,columnIndex:r,column:a,property:i};return{className:(0,c.A)(s.A.tableCompoundExpansionToggle,f.isOpen&&s.A.modifiers.expanded),children:void 0!==f.isOpen&&l.createElement("button",{type:"button",className:(0,c.A)(s.A.tableButton),onClick:function(e){p&&p(e,n,r,f.isOpen,o,h)},"aria-expanded":f.isOpen,"aria-controls":f.ariaControls,id:"".concat(v,"-").concat(n,"-").concat(r)},l.createElement(D.mA,null,u))}}({title:t,props:{isOpen:N.isExpanded}},{rowIndex:null===N||void 0===N?void 0:N.rowIndex,columnIndex:null===N||void 0===N?void 0:N.columnIndex,column:{extraParams:{onExpand:null===N||void 0===N?void 0:N.onToggle,expandId:null===N||void 0===N?void 0:N.expandId}}}):null,Ne=B?(0,F.B)(B)():null,Te=W?z.x.apply(void 0,(0,o.A)(W.map(function(e){return z.b[e]})))():null,Me=null!==P?V(P.onCollapse,P.onCheckChange,P.onToggleRowDetails)({title:t},{rowIndex:P.rowIndex,rowData:{props:P.props}}):null,Ie=(0,G.v)(Ce,Ee,Pe,je,Ne,Te,Ae,Me,ke),Le=(Ie.isVisible,Ie.children),Re=void 0===Le?null:Le,De=Ie.className,Fe=void 0===De?"":De,ze=Ie.component,Be=void 0===ze?g:ze,He=(0,i.Tt)(Ie,["isVisible","children","className","component"]),We=n&&n.includes(f.A.tableTreeViewTitleCell)||Fe&&Fe.includes(f.A.tableTreeViewTitleCell);l.useEffect(function(){we(Oe.current.offsetWidthsummary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],G=V.join(","),q="undefined"===typeof Element,K=q?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,$=!q&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},Y=function(e,t){var n;void 0===t&&(t=!0);var r=null===e||void 0===e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"===typeof e.closest?e.closest("[inert]"):Y(e.parentNode))},Q=function(e,t,n){if(Y(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(G));return t&&K.call(e,G)&&r.unshift(e),r=r.filter(n)},J=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var a=o.shift();if(!Y(a,!1))if("SLOT"===a.tagName){var i=a.assignedElements(),l=i.length?i:a.children,c=J(l,!0,n);n.flatten?r.push.apply(r,c):r.push({scopeParent:a,candidates:c})}else{K.call(a,G)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var s=a.shadowRoot||"function"===typeof n.getShadowRoot&&n.getShadowRoot(a),u=!Y(s,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(s&&u){var f=J(!0===s?a.children:s.children,!0,n);n.flatten?r.push.apply(r,f):r.push({scopeParent:a,candidates:f})}else o.unshift.apply(o,a.children)}}return r},Z=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ee=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Z(e)?0:e.tabIndex},te=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ne=function(e){return"INPUT"===e.tagName},re=function(e){return function(e){return ne(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||$(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(K.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return oe(e)}else{if("function"===typeof r){for(var a=e;e;){var i=e.parentElement,l=$(e);if(i&&!i.shadowRoot&&!0===r(i))return oe(e);e=e.assignedSlot?e.assignedSlot:i||l===e.ownerDocument?i:l.host}e=a}if(function(e){var t,n,r,o,a=e&&$(e),i=null===(t=a)||void 0===t?void 0:t.host,l=!1;if(a&&a!==e)for(l=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!==e&&void 0!==e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&i;){var c,s,u;l=!(null===(s=i=null===(c=a=$(i))||void 0===c?void 0:c.host)||void 0===s||null===(u=s.ownerDocument)||void 0===u||!u.contains(i))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},ie=function(e,t){return!(t.disabled||function(e){return ne(e)&&"hidden"===e.type}(t)||ae(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},se=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,a=o?e.scopeParent:e,i=function(e,t){var n=ee(e);return n<0&&t&&!Z(e)?0:n}(a,o),l=o?se(e.candidates):a;0===i?o?t.push.apply(t,l):t.push(a):n.push({documentOrder:r,tabIndex:i,item:e,isScope:o,content:l})}),n.sort(te).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},ue=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==K.call(e,G)&&le(t,e)},fe=V.concat("iframe:not([inert]):not([inert] *)").join(","),de=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==K.call(e,fe)&&ie(t,e)};function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},be=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},xe=function(e){return"Tab"===(null===e||void 0===e?void 0:e.key)||9===(null===e||void 0===e?void 0:e.keyCode)},we=function(e){return xe(e)&&!e.shiftKey},Oe=function(e){return xe(e)&&e.shiftKey},Se=function(e){return setTimeout(e,0)},Ce=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,o=void 0!==n&&n,i=t.params,l=void 0===i?[]:i,c=a[e];if("function"===typeof c&&(c=c.apply(void 0,ge(l))),!0===c&&(c=void 0),!c){if(void 0===c||!1===c)return c;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=c;if("string"===typeof c){try{s=r.querySelector(c)}catch(u){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(u.message,'"'))}if(!s&&!o)throw new Error("`".concat(e,"` as selector refers to no known node"))}return s},u=function(){var e=s("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!de(e,a.tabbableOptions))if(c(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}else null===e&&(e=s("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},f=function(){if(i.containerGroups=i.containers.map(function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?J([e],t.includeContainer,{filter:le.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ce}):Q(e,t.includeContainer,le.bind(null,t)),se(n)}(e,a.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?J([e],t.includeContainer,{filter:ie.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Q(e,t.includeContainer,ie.bind(null,t))}(e,a.tabbableOptions),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,i=n.find(function(e){return ue(e)}),l=n.slice().reverse().find(function(e){return ue(e)}),c=!!t.find(function(e){return ee(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:i,lastDomTabbableNode:l,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?r?n.slice(n.indexOf(e)+1).find(function(e){return ue(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return ue(e)}):t[o+(r?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(e){return e.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},d=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?d(t.shadowRoot):t},p=function(e){!1!==e&&e!==d(document)&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),i.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(e)&&e.select()):p(u()))},m=function(e){var t=s("setReturnFocus",{params:[e]});return t||!1!==t&&e},v=function(e){var t=e.target,n=e.event,r=e.isBackward,o=void 0!==r&&r;t=t||Ae(n),f();var l=null;if(i.tabbableGroups.length>0){var u=c(t,n),d=u>=0?i.containerGroups[u]:void 0;if(u<0)l=o?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(o){var p=i.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(d.container===t||de(t,a.tabbableOptions)&&!ue(t,a.tabbableOptions)&&!d.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=0===p?i.tabbableGroups.length-1:p-1,v=i.tabbableGroups[m];l=ee(t)>=0?v.lastTabbableNode:v.lastDomTabbableNode}else xe(n)||(l=d.nextTabbableNode(t,!1))}else{var h=i.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(h<0&&(d.container===t||de(t,a.tabbableOptions)&&!ue(t,a.tabbableOptions)&&!d.nextTabbableNode(t))&&(h=u),h>=0){var g=h===i.tabbableGroups.length-1?0:h+1,y=i.tabbableGroups[g];l=ee(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else xe(n)||(l=d.nextTabbableNode(t))}}else l=s("fallbackFocus");return l},h=function(e){var t=Ae(e);c(t,e)>=0||(Ce(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):Ce(a.allowOutsideClick,e)||e.preventDefault())},g=function(e){var t=Ae(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(i.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var o=!0;if(i.mostRecentlyFocusedNode)if(ee(i.mostRecentlyFocusedNode)>0){var l=c(i.mostRecentlyFocusedNode),s=i.containerGroups[l].tabbableNodes;if(s.length>0){var f=s.findIndex(function(e){return e===i.mostRecentlyFocusedNode});f>=0&&(a.isKeyForward(i.recentNavEvent)?f+1=0&&(r=s[f-1],o=!1))}}else i.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return ee(e)>0})})||(o=!1);else o=!1;o&&(r=v({target:i.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(i.recentNavEvent)})),p(r||(i.mostRecentlyFocusedNode||u()))}i.recentNavEvent=void 0},y=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i.recentNavEvent=e;var n=v({event:e,isBackward:t});n&&(xe(e)&&e.preventDefault(),p(n))}(e,a.isKeyBackward(e))},b=function(e){var t;"Escape"!==(null===(t=e)||void 0===t?void 0:t.key)&&"Esc"!==(null===t||void 0===t?void 0:t.key)&&27!==(null===t||void 0===t?void 0:t.keyCode)||!1===Ce(a.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},x=function(e){var t=Ae(e);c(t,e)>=0||Ce(a.clickOutsideDeactivates,e)||Ce(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(i.active)return ye(o,n),i.delayInitialFocusTimer=a.delayInitialFocus?Se(function(){p(u())}):p(u()),r.addEventListener("focusin",g,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",x,{capture:!0,passive:!1}),r.addEventListener("keydown",y,{capture:!0,passive:!1}),r.addEventListener("keydown",b),n},O=function(){if(i.active)return r.removeEventListener("focusin",g,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",x,!0),r.removeEventListener("keydown",y,!0),r.removeEventListener("keydown",b),n},S="undefined"!==typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===i.mostRecentlyFocusedNode})})&&p(u())}):void 0,C=function(){S&&(S.disconnect(),i.active&&!i.paused&&i.containers.map(function(e){S.observe(e,{subtree:!0,childList:!0})}))};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=l(e,"onActivate"),n=l(e,"onPostActivate"),o=l(e,"checkCanFocusTrap");o||f(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var a=function(){o&&f(),w(),C(),null===n||void 0===n||n()};return o?(o(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!i.active)return this;var t=he({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,O(),i.active=!1,i.paused=!1,C(),be(o,n);var r=l(t,"onDeactivate"),c=l(t,"onPostDeactivate"),s=l(t,"checkCanReturnFocus"),u=l(t,"returnFocus","returnFocusOnDeactivate");null===r||void 0===r||r();var f=function(){Se(function(){u&&p(m(i.nodeFocusedBeforeActivation)),null===c||void 0===c||c()})};return u&&s?(s(m(i.nodeFocusedBeforeActivation)).then(f,f),this):(f(),this)},pause:function(e){if(i.paused||!i.active)return this;var t=l(e,"onPause"),n=l(e,"onPostPause");return i.paused=!0,null===t||void 0===t||t(),O(),C(),null===n||void 0===n||n(),this},unpause:function(e){if(!i.paused||!i.active)return this;var t=l(e,"onUnpause"),n=l(e,"onPostUnpause");return i.paused=!1,null===t||void 0===t||t(),f(),w(),C(),null===n||void 0===n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map(function(e){return"string"===typeof e?r.querySelector(e):e}),i.active&&f(),C(),this}}).updateContainerElements(e),n};var Ee=(0,l.forwardRef)(function(e,t){var n=e.active,r=void 0===n||n,o=e.paused,a=void 0!==o&&o,c=e.focusTrapOptions,s=void 0===c?{}:c,u=e.preventScrollOnDeactivate,f=void 0!==u&&u,d=(0,i.Tt)(e,["active","paused","focusTrapOptions","preventScrollOnDeactivate"]),p=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,function(){return p.current});var m=(0,l.useRef)(null);(0,l.useEffect)(function(){var e=_e(p.current,Object.assign(Object.assign({},s),{returnFocusOnDeactivate:!1}));return m.current=e,function(){e.deactivate()}},[]),(0,l.useEffect)(function(){var e=m.current;r?null===e||void 0===e||e.activate():null===e||void 0===e||e.deactivate()},[r]),(0,l.useEffect)(function(){var e=m.current;a?null===e||void 0===e||e.pause():null===e||void 0===e||e.unpause()},[a]);var v=(0,l.useRef)("undefined"!==typeof document?document.activeElement:null);return function(e){var t=(0,l.useRef)(e);t.current=e,(0,l.useEffect)(function(){return function(){t.current()}},[])}(function(){!1!==s.returnFocusOnDeactivate&&v.current instanceof HTMLElement&&v.current.focus({preventScroll:f})}),l.createElement("div",Object.assign({ref:p},d))});Ee.displayName="FocusTrap";var Pe,je=n(7643),Ne=n(1016);!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"}(Pe||(Pe={}));var Te={custom:w.custom,info:w.info,success:w.success,warning:w.warning,danger:w.danger},Me=function(e){var t=e.children,n=e.position,r=void 0===n?"top":n,o=e.enableFlip,s=void 0===o||o,u=e.className,f=void 0===u?"":u,d=e.isVisible,p=void 0===d?null:d,m=e.shouldClose,v=void 0===m?function(){return null}:m,h=e.shouldOpen,g=void 0===h?function(){return null}:h,y=e["aria-label"],b=void 0===y?"":y,S=e.bodyContent,C=e.headerContent,A=void 0===C?null:C,k=e.headerComponent,_=void 0===k?"h6":k,E=e.headerIcon,P=void 0===E?null:E,j=e.alertSeverityVariant,N=e.alertSeverityScreenReaderText,L=e.footerContent,R=void 0===L?null:L,z=e.appendTo,B=void 0===z?function(){return document.body}:z,V=e.hideOnOutsideClick,G=void 0===V||V,q=e.onHide,K=void 0===q?function(){return null}:q,$=e.onHidden,Y=void 0===$?function(){return null}:$,Q=e.onShow,J=void 0===Q?function(){return null}:Q,Z=e.onShown,ee=void 0===Z?function(){return null}:Z,te=e.onMount,ne=void 0===te?function(){return null}:te,re=e.zIndex,oe=void 0===re?9999:re,ae=e.triggerAction,ie=void 0===ae?"click":ae,le=e.minWidth,ce=void 0===le?X&&X.value:le,se=e.maxWidth,ue=void 0===se?U&&U.value:se,fe=e.closeBtnAriaLabel,de=void 0===fe?"Close":fe,pe=e.showClose,me=void 0===pe||pe,ve=e.distance,he=void 0===ve?25:ve,ge=e.flipBehavior,ye=void 0===ge?["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"]:ge,be=e.animationDuration,xe=void 0===be?300:be,we=e.id,Oe=e.withFocusTrap,Se=e.triggerRef,Ce=e.hasNoPadding,Ae=void 0!==Ce&&Ce,ke=e.hasAutoWidth,_e=void 0!==ke&&ke,Pe=e.elementToFocus,Me=(0,i.Tt)(e,["children","position","enableFlip","className","isVisible","shouldClose","shouldOpen","aria-label","bodyContent","headerContent","headerComponent","headerIcon","alertSeverityVariant","alertSeverityScreenReaderText","footerContent","appendTo","hideOnOutsideClick","onHide","onHidden","onShow","onShown","onMount","zIndex","triggerAction","minWidth","maxWidth","closeBtnAriaLabel","showClose","distance","flipBehavior","animationDuration","id","withFocusTrap","triggerRef","hasNoPadding","hasAutoWidth","elementToFocus"]),Ie=we||(0,Ne.LP)(),Le=null!==p,Re=l.useState(!1),De=(0,a.A)(Re,2),Fe=De[0],ze=De[1],Be=l.useState(Boolean(Oe)),He=(0,a.A)(Be,2),We=He[0],Ue=He[1],Xe=l.useRef(null);l.useEffect(function(){ne()},[]),l.useEffect(function(){Le&&(p?Ve(void 0,!0):Ge())},[p,Le]);var Ve=function(e,t){e&&J(e),ze(!0),!1!==Oe&&t&&Ue(!0)},Ge=function(e){e&&K(e),ze(!1)},qe={top:w.top,bottom:w.bottom,left:w.left,right:w.right,"top-start":w.topLeft,"top-end":w.topRight,"bottom-start":w.bottomLeft,"bottom-end":w.bottomRight,"left-start":w.leftTop,"left-end":w.leftBottom,"right-start":w.rightTop,"right-end":w.rightBottom},Ke=ce!==X.value,$e=ue!==U.value,Ye=function(e){Le?g(e,Ve):Ve(e,!1)},Qe=function(e){Le?v(e,Ge):Ge(e)},Je=l.createElement(Ee,Object.assign({ref:Xe,active:We,focusTrapOptions:{returnFocusOnDeactivate:!1!==Oe,clickOutsideDeactivates:!0,initialFocus:Pe||void 0,checkCanFocusTrap:function(e){return new Promise(function(t){var n=setInterval(function(){e.every(function(e){return"hidden"!==getComputedStyle(e).visibility})&&(t(),clearInterval(n))},10)})},tabbableOptions:{displayCheck:"none"},fallbackFocus:function(){var e=null;return document&&document.activeElement&&(e=document.activeElement),e}},preventScrollOnDeactivate:!0,className:(0,c.A)(O,j&&Te[j],Ae&&w.noPadding,_e&&w.widthAuto,f),role:"dialog","aria-modal":"true","aria-label":A?void 0:b,"aria-labelledby":A?"popover-".concat(Ie,"-header"):void 0,"aria-describedby":"popover-".concat(Ie,"-body"),onMouseDown:function(){We&&Ue(!1)},style:{minWidth:Ke?ce:null,maxWidth:$e?ue:null}},Me),l.createElement(W,null),l.createElement(M,null,me&&"click"===ie&&l.createElement(H,{onClose:function(e){e.stopPropagation(),Le?v(e,Ge):Ge(e)},"aria-label":de}),A&&l.createElement(D,{id:"popover-".concat(Ie,"-header"),icon:P,alertSeverityVariant:j,alertSeverityScreenReaderText:N||"".concat(j," alert:"),titleHeadingLevel:_},"function"===typeof A?A(Ge):A),l.createElement(I,{id:"popover-".concat(Ie,"-body")},"function"===typeof S?S(Ge):S),R&&l.createElement(F,{id:"popover-".concat(Ie,"-footer")},"function"===typeof R?R(Ge):R)));return l.createElement(T.Provider,{value:{headerComponent:_}},l.createElement(je.N,{trigger:t,triggerRef:Se,popper:Je,popperRef:Xe,minWidth:ce,appendTo:B,isVisible:Fe,onMouseEnter:"hover"===ie&&Ye,onMouseLeave:"hover"===ie&&Qe,onPopperMouseEnter:"hover"===ie&&Ye,onPopperMouseLeave:"hover"===ie&&Qe,onFocus:"hover"===ie&&function(e){Le?g(e,Ve):Ve(e,!1)},onBlur:"hover"===ie&&function(e){Le?v(e,Ge):Ge(e)},positionModifiers:qe,distance:he,placement:r,onTriggerClick:"click"===ie&&function(e){Le?Fe?v(e,Ge):g(e,Ve):Fe?Ge(e):Ve(e,!0)},onDocumentClick:function(e,t,n){if(G&&Fe){var r=n&&n.contains(e.target),o=t&&t.contains(e.target);if(r||o)return;Le?v(e,Ge):Ge(e)}},onDocumentKeyDown:function(e){e.key===x.RU.Escape&&Fe&&(Le?v(e,Ge):Ge(e))},enableFlip:s,zIndex:oe,flipBehavior:ye,animationDuration:xe,onHidden:Y,onShown:ee,onHide:function(){return Ue(!1)}}))};Me.displayName="Popover";var Ie=n(3006),Le=function(e){var t=e.children,n=e.info,r=e.className,o=e.variant,a=void 0===o?"tooltip":o,i=e.popoverProps,u=e.tooltipProps,f=e.ariaLabel;return l.createElement("div",{className:(0,c.A)(s.A.tableColumnHelp,r)},"string"===typeof t?l.createElement(Ie.mA,null,t):t,l.createElement("span",{className:(0,c.A)(s.A.tableColumnHelpAction)},"tooltip"===a?l.createElement(b.m,Object.assign({content:n},u),l.createElement(z.$n,{variant:"plain","aria-label":f||"string"===typeof n&&n||"More info"},l.createElement(y,null))):l.createElement(Me,Object.assign({bodyContent:n},i),l.createElement(z.$n,{variant:"plain","aria-label":f||"string"===typeof n&&n||"More info"},l.createElement(y,null)))))};Le.displayName="HeaderCellInfoWrapper";var Re=n(4548),De=n(1054),Fe=n(2043),ze=n(2402),Be=function(e){var t=e.children,n=e.className,f=e.component,y=void 0===f?"th":f,x=e.dataLabel,w=e.scope,O=void 0===w?"col":w,S=e.textCenter,C=void 0!==S&&S,A=e.sort,k=void 0===A?null:A,_=e.modifier,E=e.select,P=void 0===E?null:E,j=e.expand,N=void 0===j?null:j,T=e.tooltip,M=void 0===T?"":T,I=e.tooltipProps,L=e.onMouseEnter,R=void 0===L?function(){}:L,D=e.width,F=e.visibility,z=e.innerRef,B=e.info,H=e.isStickyColumn,W=void 0!==H&&H,U=e.hasRightBorder,X=void 0!==U&&U,V=e.hasLeftBorder,G=void 0!==V&&V,q=e.stickyMinWidth,K=void 0===q?"120px":q,$=e.stickyLeftOffset,Y=e.stickyRightOffset,Q=e.isSubheader,J=void 0!==Q&&Q,Z=e.screenReaderText,ee=e["aria-label"],te=(0,i.Tt)(e,["children","className","component","dataLabel","scope","textCenter","sort","modifier","select","expand","tooltip","tooltipProps","onMouseEnter","width","visibility","innerRef","info","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset","isSubheader","screenReaderText","aria-label"]);t||Z||ee||console.warn("Th: Table headers must have an accessible name. If the Th is intended to be visually empty, pass in screenReaderText. If the Th contains only non-text, interactive content such as a checkbox or expand toggle, pass in an aria-label.");var ne=l.useState(!1),re=(0,a.A)(ne,2),oe=re[0],ae=re[1],ie=l.useState(!1),le=(0,a.A)(ie,2),ce=le[0],se=le[1],ue=z||l.createRef(),fe=function(e){e.target.offsetWidth1){var e=this._logs.reduce(function(e,t){var n,r,o,i=(0,a.Cl)((0,a.Cl)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete i.time;var l=null!==(o=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==o?o:"";return e[l]&&(l="".concat(l,"-").concat(Math.random())),(0,a.Cl)((0,a.Cl)({},e),((n={})[l]=i,n))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!==r&&void 0!==r?r:""):console[t](n,null!==r&&void 0!==r?r:"")});this._logs=[]},e}(),l=n(4577),c=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},s=function(){function e(e,t,n,o){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new l.r),void 0===o&&(o=new i),this.attempts=0,this.event=e,this._id=t,this.logger=o,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new c({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return(0,o.J)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},6907:function(e,t,n){"use strict";n.d(t,{g:function(){return a},M:function(){return i}});var r=n(3906),o=n(442);var a="onRemoveFromFuture",i=function(e){function t(t,n,r){var o=e.call(this)||this;return o.future=[],o.maxAttempts=t,o.queue=n,o.seen=null!==r&&void 0!==r?r:{},o}return(0,r.C6)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;ne.maxAttempts||e.includes(t))&&(e.queue.push(t),!0)});return this.queue=this.queue.sort(function(t,n){return e.getAttempts(t)-e.getAttempts(n)}),r},t.prototype.pushWithBackoff=function(e,t){var n=this;if(void 0===t&&(t=0),0==t&&0===this.getAttempts(e))return this.push(e)[0];var r=this.updateAttempts(e);if(r>this.maxAttempts||this.includes(e))return!1;var o=function(e){var t=Math.random()+1,n=e.minTimeout,r=void 0===n?500:n,o=e.factor,a=void 0===o?2:o,i=e.attempt,l=e.maxTimeout,c=void 0===l?1/0:l;return Math.min(t*r*Math.pow(a,i),c)}({attempt:r-1});return t>0&&othis.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var o=[],a=0;a-1?e:e+t}(t,r):function(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}(o);return{path:l,referrer:a,search:r,title:i,url:c}},O=function(){var e=document.querySelector("link[rel='canonical']");return y(location.href,e&&e.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},S=function(e,t){void 0===t&&(t=w(O()));var n,o,a,i=e.context;"page"===e.type&&(n=e.properties&&(o=e.properties,a=Object.keys(t),Object.assign.apply(Object,(0,r.fX)([{}],a.map(function(e){var t;if(o&&Object.prototype.hasOwnProperty.call(o,e))return(t={})[e]=o[e],t}),!1))),e.properties=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t),e.properties),e.name?{name:e.name}:{})),i.page=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t),n),i.page)},C=n(9153),A=function(e){function t(t,n){var r=e.call(this,"".concat(t," ").concat(n))||this;return r.field=t,r}return(0,r.C6)(t,e),t}(Error),k="is not a string",_="is not an object",E="is nil";function P(e){!function(e){if(!(0,i.t2)(e))throw new A("Event",E);if("object"!==typeof e)throw new A("Event",_)}(e),function(e){if(!(0,i.Kg)(e.type))throw new A(".type",k)}(e),function(e){if(!(0,i.Kg)(e.messageId))throw new A(".messageId",k)}(e),"track"===e.type&&(function(e){if(!(0,i.Kg)(e.event))throw new A(".event",k)}(e),function(e){if(!(0,i.Qd)(e.properties))throw new A(".properties",_)}(e)),["group","identify"].includes(e.type)&&function(e){if(!(0,i.Qd)(e.traits))throw new A(".traits",_)}(e)}var j=function(e){var t,n;this.settings=e,this.createMessageId=e.createMessageId,this.onEventMethodCall=null!==(t=e.onEventMethodCall)&&void 0!==t?t:function(){},this.onFinishedEvent=null!==(n=e.onFinishedEvent)&&void 0!==n?n:function(){}},N=function(){function e(e){this.settings=new j(e)}return e.prototype.track=function(e,t,n,o){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,r.Cl)((0,r.Cl)({},this.baseEvent()),{event:e,type:"track",properties:null!==t&&void 0!==t?t:{},options:(0,r.Cl)({},n),integrations:(0,r.Cl)({},o)}))},e.prototype.page=function(e,t,n,o,a){var i;this.settings.onEventMethodCall({type:"page",options:o});var l={type:"page",properties:(0,r.Cl)({},n),options:(0,r.Cl)({},o),integrations:(0,r.Cl)({},a)};return null!==e&&(l.category=e,l.properties=null!==(i=l.properties)&&void 0!==i?i:{},l.properties.category=e),null!==t&&(l.name=t),this.normalize((0,r.Cl)((0,r.Cl)({},this.baseEvent()),l))},e.prototype.screen=function(e,t,n,o,a){this.settings.onEventMethodCall({type:"screen",options:o});var i={type:"screen",properties:(0,r.Cl)({},n),options:(0,r.Cl)({},o),integrations:(0,r.Cl)({},a)};return null!==e&&(i.category=e),null!==t&&(i.name=t),this.normalize((0,r.Cl)((0,r.Cl)({},this.baseEvent()),i))},e.prototype.identify=function(e,t,n,o){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,r.Cl)((0,r.Cl)({},this.baseEvent()),{type:"identify",userId:e,traits:null!==t&&void 0!==t?t:{},options:(0,r.Cl)({},n),integrations:o}))},e.prototype.group=function(e,t,n,o){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,r.Cl)((0,r.Cl)({},this.baseEvent()),{type:"group",traits:null!==t&&void 0!==t?t:{},options:(0,r.Cl)({},n),integrations:(0,r.Cl)({},o),groupId:e}))},e.prototype.alias=function(e,t,n,o){this.settings.onEventMethodCall({type:"alias",options:n});var a={userId:e,type:"alias",options:(0,r.Cl)({},n),integrations:(0,r.Cl)({},o)};return null!==t&&(a.previousId=t),void 0===e?this.normalize((0,r.Cl)((0,r.Cl)({},a),this.baseEvent())):this.normalize((0,r.Cl)((0,r.Cl)({},this.baseEvent()),a))},e.prototype.baseEvent=function(){return{integrations:{},options:{}}},e.prototype.context=function(e){var t,n=["userId","anonymousId","timestamp","messageId"];delete e.integrations;var r=Object.keys(e),o=null!==(t=e.context)&&void 0!==t?t:{},a={};return r.forEach(function(t){"context"!==t&&(n.includes(t)?(0,C.J)(a,t,e[t]):(0,C.J)(o,t,e[t]))}),[o,a]},e.prototype.normalize=function(e){var t,n,o,a,i=Object.keys(null!==(t=e.integrations)&&void 0!==t?t:{}).reduce(function(t,n){var o,a;return(0,r.Cl)((0,r.Cl)({},t),((o={})[n]=Boolean(null===(a=e.integrations)||void 0===a?void 0:a[n]),o))},{});e.options=(o=e.options||{},a=function(e,t){return void 0!==t},Object.keys(o).filter(function(e){return a(e,o[e])}).reduce(function(e,t){return e[t]=o[t],e},{}));var l=(0,r.Cl)((0,r.Cl)({},i),null===(n=e.options)||void 0===n?void 0:n.integrations),c=e.options?this.context(e.options):[],s=c[0],u=c[1],f=e.options,d=(0,r.Tt)(e,["options"]),p=(0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)({timestamp:new Date},d),{context:s,integrations:l}),u),{messageId:f.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(p),P(p),p},e}(),T=function(e){function t(t){var n=e.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,g.v4)())},onEventMethodCall:function(e){var t=e.options;n.maybeUpdateAnonId(t)},onFinishedEvent:function(e){return n.addIdentity(e),e}})||this;return n.user=t,n}return(0,r.C6)(t,e),t.prototype.maybeUpdateAnonId=function(e){(null===e||void 0===e?void 0:e.anonymousId)&&this.user.anonymousId(e.anonymousId)},t.prototype.addIdentity=function(e){this.user.id()&&(e.userId=this.user.id()),this.user.anonymousId()&&(e.anonymousId=this.user.anonymousId())},t.prototype.track=function(t,n,r,o,a){var i=e.prototype.track.call(this,t,n,r,o);return S(i,a),i},t.prototype.page=function(t,n,r,o,a,i){var l=e.prototype.page.call(this,t,n,r,o,a);return S(l,i),l},t.prototype.screen=function(t,n,r,o,a,i){var l=e.prototype.screen.call(this,t,n,r,o,a);return S(l,i),l},t.prototype.identify=function(t,n,r,o,a){var i=e.prototype.identify.call(this,t,n,r,o);return S(i,a),i},t.prototype.group=function(t,n,r,o,a){var i=e.prototype.group.call(this,t,n,r,o);return S(i,a),i},t.prototype.alias=function(t,n,r,o,a){var i=e.prototype.alias.call(this,t,n,r,o);return S(i,a),i},t}(N),M=function(e){return"addMiddleware"in e&&"destination"===e.type},I=n(7312);var L=n(6907),R=n(4324),D=n(3353),F=function(e){function t(t){var n=e.call(this)||this;return n.criticalTasks=function(){var e,t,n=0;return{done:function(){return e},run:function(r){var o,a=r();return"object"===typeof(o=a)&&null!==o&&"then"in o&&"function"===typeof o.then&&(1===++n&&(e=new Promise(function(e){return t=e})),a.finally(function(){return 0===--n&&t()})),a}}}(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=t,n.queue.on(L.g,function(){n.scheduleFlush(0)}),n}return(0,r.C6)(t,e),t.prototype.register=function(e,t,n){return(0,r.sH)(this,void 0,void 0,function(){var o,a,i=this;return(0,r.YH)(this,function(r){switch(r.label){case 0:return this.plugins.push(t),o=function(n){i.failedInitializations.push(t.name),i.emit("initialization_failure",t),console.warn(t.name,n),e.log("warn","Failed to load destination",{plugin:t.name,error:n}),i.plugins=i.plugins.filter(function(e){return e!==t})},"destination"!==t.type||"Segment.io"===t.name?[3,1]:(t.load(e,n).catch(o),[3,4]);case 1:return r.trys.push([1,3,,4]),[4,t.load(e,n)];case 2:return r.sent(),[3,4];case 3:return a=r.sent(),o(a),[3,4];case 4:return[2]}})})},t.prototype.deregister=function(e,t,n){return(0,r.sH)(this,void 0,void 0,function(){var o;return(0,r.YH)(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),t.unload?[4,Promise.resolve(t.unload(e,n))]:[3,2];case 1:r.sent(),r.label=2;case 2:return this.plugins=this.plugins.filter(function(e){return e.name!==t.name}),[3,4];case 3:return o=r.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:o}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(e){return(0,r.sH)(this,void 0,void 0,function(){var t;return(0,r.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]})})},t.prototype.subscribeToDelivery=function(e){return(0,r.sH)(this,void 0,void 0,function(){var t=this;return(0,r.YH)(this,function(n){return[2,new Promise(function(n){var r=function(o,a){o.isSame(e)&&(t.off("flush",r),n(o))};t.on("flush",r)})]})})},t.prototype.dispatchSingle=function(e){return(0,r.sH)(this,void 0,void 0,function(){var t=this;return(0,r.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch(function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)})]})})},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout(function(){t.flush().then(function(){setTimeout(function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)},0)})},e))},t.prototype.deliver=function(e){return(0,r.sH)(this,void 0,void 0,function(){var t,n,o,a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return[4,this.criticalTasks.done()];case 1:r.sent(),t=Date.now(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=r.sent(),n=Date.now()-t,this.emit("delivery_success",e),e.stats.gauge("delivered",n),e.log("debug","Delivered",e.event),[2,e];case 4:throw o=r.sent(),a=o,e.log("error","Failed to deliver",a),this.emit("delivery_failure",e,a),e.stats.increment("delivery_failed"),o;case 5:return[2]}})})},t.prototype.enqueuRetry=function(e,t){return!(e instanceof R.d&&!e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,function(){var e,t;return(0,r.YH)(this,function(n){switch(n.label){case 0:if(0===this.queue.length)return[2,[]];if(!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=n.sent(),this.emit("flush",e,!0),[3,4];case 3:return t=n.sent(),this.enqueuRetry(t,e)||(e.setFailedDelivery({reason:t}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t=this.plugins.filter(function(t){var n,r,o;if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var a=void 0;return null===(n=t.alternativeNames)||void 0===n||n.forEach(function(t){void 0!==e[t]&&(a=e[t])}),null!==(o=null!==(r=e[t.name])&&void 0!==r?r:a)&&void 0!==o?o:!1!==("Segment.io"===t.name||e.All)}),n=function(e,t){var n={};return e.forEach(function(e){var o,a=void 0;if("string"===typeof t){var i=e[t];a="string"!==typeof i?JSON.stringify(i):i}else t instanceof Function&&(a=t(e));void 0!==a&&(n[a]=(0,r.fX)((0,r.fX)([],null!==(o=n[a])&&void 0!==o?o:[],!0),[e],!1))}),n}(t,"type"),o=n.before,a=void 0===o?[]:o,i=n.enrichment,l=void 0===i?[]:i,c=n.destination,s=void 0===c?[]:c,u=n.after;return{before:a,enrichment:l,destinations:s,after:void 0===u?[]:u}},t.prototype.flushOne=function(e){var t,n;return(0,r.sH)(this,void 0,void 0,function(){var o,a,i,l,c,s,u,f,d,p,m,v,h,g;return(0,r.YH)(this,function(r){switch(r.label){case 0:if(!this.isReady())throw new Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),o=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{}),a=o.before,i=o.enrichment,l=0,c=a,r.label=1;case 1:return l0)return r;if(t.length<=1)return r;for(var o=t.length-2;o>=0;--o)r.push(t.slice(o).join("."));return r}(t),r=0;r=500)throw new Error("Bad response from server: ".concat(e.status));if(429===e.status){var n=null===(t=e.headers)||void 0===t?void 0:t.get("x-ratelimit-reset"),r="string"==typeof n?1e3*parseInt(n):s;throw new we("Rate limit exceeded: ".concat(e.status),r)}})}}function p(e){var n;return void 0===e&&(e=1),(0,r.sH)(this,void 0,void 0,function(){var o;return(0,r.YH)(this,function(a){return i.length?(o=i,i=[],[2,null===(n=f(o))||void 0===n?void 0:n.catch(function(n){var a;d.o.system().log("error","Error sending batch",n),e<=(null!==(a=null===t||void 0===t?void 0:t.maxRetries)&&void 0!==a?a:10)&&("RateLimitError"===n.name&&(u=n.retryTimeout),i.push.apply(i,o),i.map(function(t){if("_metadata"in t){var n=t;n._metadata=(0,r.Cl)((0,r.Cl)({},n._metadata),{retryCount:e})}}),m(e+1))})]):[2]})})}function m(e){void 0===e&&(e=1),a||(a=setTimeout(function(){a=void 0,p(e).catch(console.error)},u||s),u=0)}return function(e){var t=!1;window.addEventListener("pagehide",function(){t||e(t=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(t)return;t=!0}else t=!1;e(t)})}(function(e){if((l=e)&&i.length){var t=function(e){var t=[],n=0;return e.forEach(function(e){Se(t[n])>=64&&n++,t[n]?t[n].push(e):t[n]=[e]}),t}(i).map(f);Promise.all(t).catch(console.error)}}),{dispatch:function(e,n){return(0,r.sH)(this,void 0,void 0,function(){var e;return(0,r.YH)(this,function(r){return i.push(n),e=i.length>=c||function(e){return Se(e)>=450}(i)||(null===t||void 0===t?void 0:t.keepalive)&&function(e){return Se(e)>=54}(i),[2,e||l?p():m()]})})}}}function Ae(e,t,n,o,a){var i,l=e.user();delete t.options,t.writeKey=null===n||void 0===n?void 0:n.apiKey,t.userId=t.userId||l.id(),t.anonymousId=t.anonymousId||l.anonymousId(),t.sentAt=new Date;var c=e.queue.failedInitializations||[];c.length>0&&(t._metadata={failedInitializations:c}),null!=a&&(a.attempts>1&&(t._metadata=(0,r.Cl)((0,r.Cl)({},t._metadata),{retryCount:a.attempts})),a.attempts++);var s=[],u=[];for(var f in o){var d=o[f];"Segment.io"===f&&s.push(f),"bundled"===d.bundlingStatus&&s.push(f),"unbundled"===d.bundlingStatus&&u.push(f)}for(var p=0,m=(null===n||void 0===n?void 0:n.unbundledIntegrations)||[];p0&&!(0,f.a)()},function(){return(0,r.sH)(o,void 0,void 0,function(){var o,a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return(o=t.pop())?[4,(0,D.C)(o,e)]:[2];case 1:return a=r.sent(),a instanceof d.o||n.push(o),[2]}})})})];case 1:return a.sent(),n.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}function Ee(e,t,n,o){var a=this;e||setTimeout(function(){return(0,r.sH)(a,void 0,void 0,function(){var e,a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return e=!0,[4,_e(n,t)];case 1:return a=r.sent(),e=!1,t.todo>0&&o(e,a,n,o),[2]}})})},5e3*Math.random())}var Pe=n(4968);var je=function(e){return"Segment.io"===e.name};function Ne(e,t,n){var o,a,i;window.addEventListener("pagehide",function(){s.push.apply(s,Array.from(u)),u.clear()});var l,c=null!==(o=null===t||void 0===t?void 0:t.apiKey)&&void 0!==o?o:"",s=e.options.disableClientPersistence?new L.M(e.queue.queue.maxAttempts,[]):new I.x(e.queue.queue.maxAttempts,"".concat(c,":dest-Segment.io")),u=new Set,d=!1,p=null!==(a=null===t||void 0===t?void 0:t.apiHost)&&void 0!==a?a:Pe.a,m=null!==(i=null===t||void 0===t?void 0:t.protocol)&&void 0!==i?i:"https",v="".concat(m,"://").concat(p),h=null===t||void 0===t?void 0:t.deliveryStrategy,g=h&&"strategy"in h&&"batching"===h.strategy?Ce(p,h.config):(l=null===h||void 0===h?void 0:h.config,{dispatch:function(e,t){return(0,xe.h)(e,{credentials:null===l||void 0===l?void 0:l.credentials,keepalive:null===l||void 0===l?void 0:l.keepalive,headers:Oe(null===l||void 0===l?void 0:l.headers),method:"post",body:JSON.stringify(t),priority:null===l||void 0===l?void 0:l.priority}).then(function(e){var t;if(e.status>=500)throw new Error("Bad response from server: ".concat(e.status));if(429===e.status){var n=null===(t=e.headers)||void 0===t?void 0:t.get("x-ratelimit-reset"),r=n?1e3*parseInt(n):5e3;throw new we("Rate limit exceeded: ".concat(e.status),r)}})}});function y(o){return(0,r.sH)(this,void 0,void 0,function(){var a,i;return(0,r.YH)(this,function(r){return(0,f.a)()?(s.push(o),Ee(d,s,b,Ee),[2,o]):(u.add(o),a=o.event.type.charAt(0),i=(0,be.W)(o.event).json(),"track"===o.event.type&&delete i.traits,"alias"===o.event.type&&(i=function(e,t){var n,r,o,a,i=e.user();return t.previousId=null!==(o=null!==(r=null!==(n=t.previousId)&&void 0!==n?n:t.from)&&void 0!==r?r:i.id())&&void 0!==o?o:i.anonymousId(),t.userId=null!==(a=t.userId)&&void 0!==a?a:t.to,delete t.from,delete t.to,t}(e,i)),s.getAttempts(o)>=s.maxAttempts?(u.delete(o),[2,o]):[2,g.dispatch("".concat(v,"/").concat(a),Ae(e,i,t,n,o)).then(function(){return o}).catch(function(e){if(o.log("error","Error sending event",e),"RateLimitError"===e.name){var t=e.retryTimeout;s.pushWithBackoff(o,t)}else s.pushWithBackoff(o);return Ee(d,s,b,Ee),o}).finally(function(){u.delete(o)})])})})}var b={metadata:{writeKey:c,apiHost:p,protocol:m},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:y,identify:y,page:y,alias:y,group:y,screen:y};return s.todo&&Ee(d,s,b,Ee),b}var Te="This is being deprecated and will be not be available in future releases of Analytics JS",Me=(0,ae.m)(),Ie=null===Me||void 0===Me?void 0:Me.analytics;var Le=function(){function e(e,t){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var e;return null===(e=t.plugins.find(je))||void 0===e?void 0:e.metadata},this.writeKey=e.writeKey;this.cdnSettings=null!==(n=e.cdnSettings)&&void 0!==n?n:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=e.cdnURL}return Object.defineProperty(e.prototype,"apiHost",{get:function(){var e,t;return null===(t=null===(e=this._getSegmentPluginMetadata)||void 0===e?void 0:e.call(this))||void 0===t?void 0:t.apiHost},enumerable:!1,configurable:!0}),e}();function Re(){console.warn(Te)}var De,Fe=function(e){function t(t,n,o,a,i){var l,c,s=this;(s=e.call(this)||this)._debug=!1,s.initialized=!1,s.user=function(){return s._user},s.init=s.initialize.bind(s),s.log=Re,s.addIntegrationMiddleware=Re,s.listeners=Re,s.addEventListener=Re,s.removeAllListeners=Re,s.removeListener=Re,s.removeEventListener=Re,s.hasListeners=Re,s.add=Re,s.addIntegration=Re;var u=null===n||void 0===n?void 0:n.cookie,f=null!==(l=null===n||void 0===n?void 0:n.disableClientPersistence)&&void 0!==l&&l;s.queue=null!==o&&void 0!==o?o:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=t?10:1,o=n?new L.M(r,[]):new I.x(r,e);return new z(o)}("".concat(t.writeKey,":event-queue"),null===n||void 0===n?void 0:n.retryQueue,f),s.settings=new Le(t,s.queue);var d=null===n||void 0===n?void 0:n.storage;return s._universalStorage=s.createStore(f,d,u),s._user=null!==a&&void 0!==a?a:new te((0,r.Cl)({persist:!f,storage:null===n||void 0===n?void 0:n.storage},null===n||void 0===n?void 0:n.user),u).load(),s._group=null!==i&&void 0!==i?i:new re((0,r.Cl)({persist:!f,storage:null===n||void 0===n?void 0:n.storage},null===n||void 0===n?void 0:n.group),u).load(),s.eventFactory=new T(s._user),s.integrations=null!==(c=null===n||void 0===n?void 0:n.integrations)&&void 0!==c?c:{},s.options=null!==n&&void 0!==n?n:{},B(s),s}return(0,r.C6)(t,e),t.prototype.createStore=function(e,t,n){return e?new U([new X]):t&&V(t)?new U(J(Z(t.stores,n))):new U(J([H.LocalStorage,{name:H.Cookie,settings:n},H.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var e=[],t=0;t4){var i=r.slice(4);"campaign"===i&&(i="name"),e[i]=(0,We.p)(a)}return e},{})}(l));var s=function(){var e=K.get("_ga");if(e&&e.startsWith("amp"))return e}();s&&(a.amp={id:s}),function(e,t,n){var o,a=new U(n?[]:[new Y(Xe())]),i=a.get("s:context.referrer"),l=null!==(o=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=0,r=(e=e.replace(/\?/g,"&")).split("&");n0}(t)?[4,n.e(121).then(n.bind(n,3135)).then(function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)})]:[3,2];case 1:return h=E.sent(),[3,3];case 2:h=void 0,E.label=3;case 3:return v=h,P=t,"test"!==o().NODE_ENV&&Object.keys(P.integrations).length>1||c.length>0?[4,n.e(121).then(n.bind(n,537)).then(function(n){return n.ajsDestinations(e,t,a.integrations,i,v,c)})]:[3,5];case 4:return y=E.sent(),[3,6];case 5:y=[],E.label=6;case 6:return g=y,t.legacyVideoPluginsEnabled?[4,n.e(121).then(n.bind(n,1610)).then(function(e){return e.loadLegacyVideoPlugins(a)})]:[3,8];case 7:E.sent(),E.label=8;case 8:return(null===(u=i.plan)||void 0===u?void 0:u.track)?[4,n.e(121).then(n.bind(n,5025)).then(function(e){var n;return e.schemaFilter(null===(n=i.plan)||void 0===n?void 0:n.track,t)})]:[3,10];case 9:return x=E.sent(),[3,11];case 10:x=void 0,E.label=11;case 11:return b=x,w=(0,Be.J)(t,i),[4,et(t,a.integrations,w,i,v,m).catch(function(){return[]})];case 12:return O=E.sent(),S=(0,r.fX)((0,r.fX)([Ke],g,!0),O,!0),b&&S.push(b),!1===(null===(f=i.integrations)||void 0===f?void 0:f.All)&&!i.integrations["Segment.io"]||i.integrations&&!1===i.integrations["Segment.io"]?[3,14]:(A=(C=S).push,[4,Ne(a,w["Segment.io"],t.integrations)]);case 13:A.apply(C,[E.sent()]),E.label=14;case 14:return[4,a.register.apply(a,(0,r.fX)((0,r.fX)([],S,!1),p,!1))];case 15:return k=E.sent(),[4,ue(a,s)];case 16:return E.sent(),Object.entries(null!==(d=t.enabledMiddleware)&&void 0!==d?d:{}).some(function(e){return e[1]})?[4,n.e(121).then(n.bind(n,8635)).then(function(e){var n=e.remoteMiddlewares;return(0,r.sH)(_,void 0,void 0,function(){var e,o;return(0,r.YH)(this,function(r){switch(r.label){case 0:return[4,n(k,t,i.obfuscate)];case 1:return e=r.sent(),o=e.map(function(e){return a.addSourceMiddleware(e)}),[2,Promise.all(o)]}})})})]:[3,18];case 17:E.sent(),E.label=18;case 18:return[4,se(a,s)];case 19:return E.sent(),[2,k]}var P})})}function it(e,t,n){var o,i,l,c,s,u,f,p,m;return void 0===t&&(t={}),(0,r.sH)(this,void 0,void 0,function(){var v,h,g,y,b,x,w,O,S,C;return(0,r.YH)(this,function(A){switch(A.label){case 0:return!0===t.disable?[2,[new ze,d.o.system()]]:(t.globalAnalyticsKey&&(0,ie.rY)(t.globalAnalyticsKey),e.cdnURL&&(0,a.qQ)(e.cdnURL),t.initialPageview&&n.add(new ve("page",[])),v=function(){var e,t,n=null!==(e=window.location.hash)&&void 0!==e?e:"",r=null!==(t=window.location.search)&&void 0!==t?t:"";return r.length?r:n.replace(/(?=#).*(?=\?)/,"")}(),h=null!==(o=e.cdnURL)&&void 0!==o?o:(0,a.I2)(),null===(i=e.cdnSettings)||void 0===i?[3,1]:(y=i,[3,3]));case 1:return[4,(k=e.writeKey,_=h,(0,xe.h)("".concat(_,"/v1/projects/").concat(k,"/settings")).then(function(e){return e.ok?e.json():e.text().then(function(e){throw new Error(e)})}).catch(function(e){throw console.error(e.message),e}))];case 2:y=A.sent(),A.label=3;case 3:return g=y,t.updateCDNSettings&&(g=t.updateCDNSettings(g)),"function"!==typeof t.disable?[3,5]:[4,t.disable(g)];case 4:if(A.sent())return[2,[new ze,d.o.system()]];A.label=5;case 5:return b=null===(c=null===(l=g.integrations["Segment.io"])||void 0===l?void 0:l.retryQueue)||void 0===c||c,t=(0,r.Cl)({retryQueue:b},t),function(e){var t;null===(t=tt.attach)||void 0===t||t.call(tt,e)}(x=new Fe((0,r.Cl)((0,r.Cl)({},e),{cdnSettings:g,cdnURL:h}),t)),w=null!==(s=e.plugins)&&void 0!==s?s:[],O=null!==(u=e.classicIntegrations)&&void 0!==u?u:[],S=null===(f=t.integrations)||void 0===f?void 0:f["Segment.io"],nt.U.initRemoteMetrics((0,r.Cl)((0,r.Cl)({},g.metrics),{host:null!==(p=null===S||void 0===S?void 0:S.apiHost)&&void 0!==p?p:null===(m=g.metrics)||void 0===m?void 0:m.host,protocol:null===S||void 0===S?void 0:S.protocol})),[4,at(e.writeKey,g,x,t,w,O,n)];case 6:return C=A.sent(),x.initialized=!0,x.emit("initialize",e,t),[4,rt(x,v,n)];case 7:return A.sent(),[2,[x,C]]}var k,_})})}var lt=function(e){function t(){var t=this,n=(0,He.u)(),r=n.promise,o=n.resolve;return t=e.call(this,function(e){return r.then(function(t){return it(t[0],t[1],e)})})||this,t._resolveLoadStart=function(e,t){return o([e,t])},t}return(0,r.C6)(t,e),t.prototype.load=function(e,t){return void 0===t&&(t={}),this._resolveLoadStart(e,t),this},t.load=function(e,n){return void 0===n&&(n={}),(new t).load(e,n)},t.standalone=function(e,n){return t.load({writeKey:e},n).then(function(e){return e[0]})},t}(ye)},7919:function(e,t,n){"use strict";n.r(t),n.d(t,{form:function(){return a},link:function(){return o}});var r=n(853);function o(e,t,n,o){var a=this;return e?((e instanceof Element?[e]:"toArray"in e?e.toArray():e).forEach(function(e){e.addEventListener("click",function(i){var l,c,s=t instanceof Function?t(e):t,u=n instanceof Function?n(e):n,f=e.getAttribute("href")||e.getAttributeNS("http://www.w3.org/1999/xlink","href")||e.getAttribute("xlink:href")||(null===(l=e.getElementsByTagName("a")[0])||void 0===l?void 0:l.getAttribute("href")),d=(0,r.s2)(a.track(s,u,null!==o&&void 0!==o?o:{}),null!==(c=a.settings.timeout)&&void 0!==c?c:500);(function(e,t){return!("_blank"!==e.target||!t)})(e,f)||function(e){var t=e;return!!(t.ctrlKey||t.shiftKey||t.metaKey||t.button&&1==t.button)}(i)||f&&(i.preventDefault?i.preventDefault():i.returnValue=!1,d.catch(console.error).then(function(){window.location.href=f}).catch(console.error))},!1)}),this):this}function a(e,t,n,o){var a=this;return e?(e instanceof HTMLFormElement&&(e=[e]),e.forEach(function(e){if(!(e instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var i=function(i){var l;i.preventDefault?i.preventDefault():i.returnValue=!1;var c=t instanceof Function?t(e):t,s=n instanceof Function?n(e):n;(0,r.s2)(a.track(c,s,null!==o&&void 0!==o?o:{}),null!==(l=a.settings.timeout)&&void 0!==l?l:500).catch(console.error).then(function(){e.submit()}).catch(console.error)},l=window.jQuery||window.Zepto;l?l(e).submit(i):e.addEventListener("submit",i,!1)}),this):this}},1769:function(e,t,n){"use strict";n.d(t,{a:function(){return a},s:function(){return o}});var r=n(198);function o(){return!(0,r.B)()||window.navigator.onLine}function a(){return!o()}},4968:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});var r="api.segment.io/v1"},9948:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(3906),o=n(4324),a=n(8247),i=function(e){function t(t,n){return e.call(this,t,n,new a.U)||this}return(0,r.C6)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(o.j)},198:function(e,t,n){"use strict";function r(){return"undefined"!==typeof window}function o(){return!r()}n.d(t,{B:function(){return r},S:function(){return o}})},1091:function(e,t,n){"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{p:function(){return r}})},3312:function(e,t,n){"use strict";function r(e,t){return Object.keys(t).reduce(function(n,r){r.startsWith(e)&&(n[r.substr(e.length)]=t[r]);return n},{})}n.r(t),n.d(t,{queryString:function(){return i}});var o=n(1091),a=n(8004);function i(e,t){var n=document.createElement("a");n.href=t;var i=n.search.slice(1).split("&").reduce(function(e,t){var n=t.split("="),r=n[0],a=n[1];return e[r]=(0,o.p)(a),e},{}),l=[],c=i.ajs_uid,s=i.ajs_event,u=i.ajs_aid,f=(0,a.Qd)(e.options.useQueryString)?e.options.useQueryString:{},d=f.aid,p=void 0===d?/.+/:d,m=f.uid,v=void 0===m?/.+/:m;if(u){var h=Array.isArray(i.ajs_aid)?i.ajs_aid[0]:i.ajs_aid;p.test(h)&&e.setAnonymousId(h)}if(c){var g=Array.isArray(i.ajs_uid)?i.ajs_uid[0]:i.ajs_uid;if(v.test(g)){var y=r("ajs_trait_",i);l.push(e.identify(g,y))}}if(s){var b=Array.isArray(i.ajs_event)?i.ajs_event[0]:i.ajs_event,x=r("ajs_prop_",i);l.push(e.track(b,x))}return Promise.all(l)}},8247:function(e,t,n){"use strict";n.d(t,{U:function(){return d}});var r=n(3906),o=n(4577),a=n(102),i=n(1484),l=n(9147),c=n(4968);function s(e){console.error("Error sending segment performance metrics",e)}var u,f=function(){function e(e){var t,n,r,o,a,i=this;if(this.host=null!==(t=null===e||void 0===e?void 0:e.host)&&void 0!==t?t:c.a,this.sampleRate=null!==(n=null===e||void 0===e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null===e||void 0===e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(o=null===e||void 0===e?void 0:e.maxQueueSize)&&void 0!==o?o:20,this.protocol=null!==(a=null===e||void 0===e?void 0:e.protocol)&&void 0!==a?a:"https",this.queue=[],this.sampleRate>0){var l=!1,u=function(){l||(l=!0,i.flush().catch(s),l=!1,setTimeout(u,i.flushTimer))};u()}}return e.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&0!==t.length&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=function(e,t,n){var o=t.reduce(function(e,t){var n=t.split(":"),r=n[0],o=n[1];return e[r]=o,e},{});return{type:"Counter",metric:e,value:1,tags:(0,r.Cl)((0,r.Cl)({},o),{library:"analytics.js",library_version:"web"===n?"next-".concat(i.r):"npm:next-".concat(i.r)})}}(e,t,(0,l.X)());this.queue.push(n),e.includes("error")&&this.flush().catch(s)}},e.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,function(){var e=this;return(0,r.YH)(this,function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(t){s(t),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},e.prototype.send=function(){return(0,r.sH)(this,void 0,void 0,function(){var e,t,n;return(0,r.YH)(this,function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,a.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},e}(),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.initRemoteMetrics=function(e){u=new f(e)},t.prototype.increment=function(t,n,r){e.prototype.increment.call(this,t,n,r),null===u||void 0===u||u.increment(t,null!==r&&void 0!==r?r:[])},t}(o.p)},626:function(e,t,n){"use strict";function r(e,t){var n=t.methodName,r=t.integrationName,o=t.type,a=t.didError,i=void 0!==a&&a;e.stats.increment("analytics_js.integration.invoke".concat(i?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(o)])}n.d(t,{y:function(){return r}})},1484:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});var r="1.81.1"},102:function(e,t,n){"use strict";function r(e,t){return t=t||{},new Promise(function(n,r){var o=new XMLHttpRequest,a=[],i=[],l={},c=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:c,headers:{keys:function(){return a},entries:function(){return i},get:function(e){return l[e.toLowerCase()]},has:function(e){return e.toLowerCase()in l}}}};for(var s in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){a.push(t=t.toLowerCase()),i.push([t,n]),l[t]=l[t]?l[t]+","+n:n}),n(c())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(s,t.headers[s]);o.send(t.body||null)})}n.d(t,{h:function(){return a}});var o=n(120),a=function(){for(var e=[],t=0;te}(a);if(i)return l.setItem(r,JSON.stringify((new Date).getTime()+50)),t(),void l.removeItem(r);!i&&n<3?setTimeout(function(){f(e,t,n+1)},50):console.error("Unable to retrieve lock")}var d=function(e){function t(t,n){var o=e.call(this,t,[])||this,a="persisted-queue:v1:".concat(n,":items"),i="persisted-queue:v1:".concat(n,":seen"),d=[],m={};return f(n,function(){try{d=c(a),m=s(i),u(a),u(i),o.queue=(0,r.fX)((0,r.fX)([],d,!0),o.queue,!0),o.seen=(0,r.Cl)((0,r.Cl)({},m),o.seen)}catch(p){console.error(p)}}),window.addEventListener("pagehide",function(){if(o.todo>0){var e=(0,r.fX)((0,r.fX)([],o.queue,!0),o.future,!0);try{f(n,function(){!function(e,t){var n=c(e),o=(0,r.fX)((0,r.fX)([],t,!0),n,!0).reduce(function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[t.id]=t,n))},{});l.setItem(e,JSON.stringify(Object.values(o)))}(a,e),function(e,t){var n=s(e);l.setItem(e,JSON.stringify((0,r.Cl)((0,r.Cl)({},n),t)))}(i,o.seen)})}catch(p){console.error(p)}}}),o}return(0,r.C6)(t,e),t}(o.M)},6440:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(3675);function o(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},9147:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var r="npm";function o(){return r}},537:function(e,t,n){"use strict";n.d(t,{ajsDestinations:function(){return E}});var r=n(3906),o=n(3675),a=n(1769),i=n(9948),l=n(4324),c=n(198),s=n(3353),u=n(5431),f=n(9451),d=n(7310),p=n(6907),m=n(7312),v=n(1622),h=n(9019),g=n(8398);function y(e){return e.toLowerCase().replace(".","").replace(/\s+/g,"-")}function b(e,t){return void 0===t&&(t=!1),t?btoa(e).replace(/=/g,""):void 0}function x(e,t,n,o){return(0,r.sH)(this,void 0,void 0,function(){var a,i,l,c,s,u;return(0,r.YH)(this,function(f){switch(f.label){case 0:a=y(t),i=b(a,o),l=(0,h.YM)(),c="".concat(l,"/integrations/").concat(null!==i&&void 0!==i?i:a,"/").concat(n,"/").concat(null!==i&&void 0!==i?i:a,".dynamic.js.gz"),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,(0,g.k)(c)];case 2:return f.sent(),function(e,t,n){var o,a;try{var i=(null!==(a=null===(o=null===window||void 0===window?void 0:window.performance)||void 0===o?void 0:o.getEntriesByName(e,"resource"))&&void 0!==a?a:[])[0];i&&t.stats.gauge("legacy_destination_time",Math.round(i.duration),(0,r.fX)([n],i.duration<100?["cached"]:[],!0))}catch(l){}}(c,e,t),[3,4];case 3:throw s=f.sent(),e.stats.gauge("legacy_destination_time",-1,["plugin:".concat(t),"failed"]),s;case 4:return u=window["".concat(a,"Deps")],[4,Promise.all(u.map(function(e){return(0,g.k)(l+e+".gz")}))];case 5:return f.sent(),window["".concat(a,"Loader")](),[2,window["".concat(a,"Integration")]]}})})}var w=n(8004),O=function(e,t){var n,r=t.type,o=t.bundlingStatus,a=t.versionSettings,i="unbundled"!==o&&("browser"===r||(null===(n=null===a||void 0===a?void 0:a.componentTypes)||void 0===n?void 0:n.includes("browser")));return!e.startsWith("Segment")&&"Iterable"!==e&&i},S=function(e,t){var n=!1===t.All&&void 0===t[e];return!1===t[e]||n},C=n(626),A=n(5486);function k(e,t){return(0,r.sH)(this,void 0,void 0,function(){var n,o=this;return(0,r.YH)(this,function(l){switch(l.label){case 0:return n=[],(0,a.a)()?[2,t]:[4,(0,d._)(function(){return t.length>0&&(0,a.s)()},function(){return(0,r.sH)(o,void 0,void 0,function(){var o,a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return(o=t.pop())?[4,(0,s.C)(o,e)]:[2];case 1:return a=r.sent(),a instanceof i.o||n.push(o),[2]}})})})];case 1:return l.sent(),n.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}var _=function(){function e(e,t,n,o,a,i){void 0===o&&(o={});var l=this;this.options={},this.type="destination",this.middleware=[],this.initializePromise=(0,A.u)(),this.flushing=!1,this.name=e,this.version=t,this.settings=(0,r.Cl)({},o),this.disableAutoISOConversion=a.disableAutoISOConversion||!1,this.integrationSource=i,this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.initializePromise.promise.then(function(e){return l._initialized=e},function(){}),this.options=a,this.buffer=a.disableClientPersistence?new p.M(4,[]):new m.x(4,"".concat(n,":dest-").concat(e)),this.scheduleFlush()}return e.prototype.isLoaded=function(){return!!this._ready},e.prototype.ready=function(){var e=this;return this.initializePromise.promise.then(function(){var t;return null!==(t=e.onReady)&&void 0!==t?t:Promise.resolve()})},e.prototype.load=function(e,t){var n;return(0,r.sH)(this,void 0,void 0,function(){var o,a,i=this;return(0,r.YH)(this,function(r){switch(r.label){case 0:return this._ready||void 0!==this.onReady?[2]:null===(n=this.integrationSource)||void 0===n?[3,1]:(a=n,[3,3]);case 1:return[4,x(e,this.name,this.version,this.options.obfuscate)];case 2:a=r.sent(),r.label=3;case 3:o=a,this.integration=function(e,t,n){var r;"Integration"in e?(e({user:function(){return n.user()},addIntegration:function(){}}),r=e.Integration):r=e;var o=new r(t);return o.analytics=n,o}(o,this.settings,t),this.onReady=new Promise(function(e){i.integration.once("ready",function(){i._ready=!0,e(!0)})}),this.integration.on("initialize",function(){i.initializePromise.resolve(!0)});try{(0,C.y)(e,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(l){throw(0,C.y)(e,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),this.initializePromise.resolve(!1),l}return[2]}})})},e.prototype.unload=function(e,t){return function(e,t,n){return(0,r.sH)(this,void 0,void 0,function(){var o,a,i,l;return(0,r.YH)(this,function(r){return o=(0,h.YM)(),a=y(e),i=b(e,n),l="".concat(o,"/integrations/").concat(null!==i&&void 0!==i?i:a,"/").concat(t,"/").concat(null!==i&&void 0!==i?i:a,".dynamic.js.gz"),[2,(0,g.d)(l)]})})}(this.name,this.version,this.options.obfuscate)},e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n0&&this.scheduleFlush(),[2]}})})},5e3*Math.random())},e}();function E(e,t,n,o,a,i){var l,s;if(void 0===n&&(n={}),void 0===o&&(o={}),(0,c.S)())return[];t.plan&&((o=null!==o&&void 0!==o?o:{}).plan=t.plan);var u=null!==(s=null===(l=t.middlewareSettings)||void 0===l?void 0:l.routingRules)&&void 0!==s?s:[],d=t.integrations,p=o.integrations,m=(0,f.J)(t,null!==o&&void 0!==o?o:{}),v=null===i||void 0===i?void 0:i.reduce(function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[function(e){return("Integration"in e?e.Integration:e).prototype.name}(t)]=t,n))},{}),h=new Set((0,r.fX)((0,r.fX)([],Object.keys(d).filter(function(e){return O(e,d[e])}),!0),Object.keys(v||{}).filter(function(e){return(0,w.Qd)(d[e])||(0,w.Qd)(null===p||void 0===p?void 0:p[e])}),!0));return Array.from(h).filter(function(e){return!S(e,n)}).map(function(t){var n=function(e){var t,n,r,o;return null!==(o=null!==(n=null===(t=null===e||void 0===e?void 0:e.versionSettings)||void 0===t?void 0:t.override)&&void 0!==n?n:null===(r=null===e||void 0===e?void 0:e.versionSettings)||void 0===r?void 0:r.version)&&void 0!==o?o:"latest"}(d[t]),r=new _(t,n,e,m[t],o,null===v||void 0===v?void 0:v[t]);return u.filter(function(e){return e.destinationName===t}).length>0&&a&&r.addMiddleware(a),r})}},1610:function(e,t,n){"use strict";n.d(t,{loadLegacyVideoPlugins:function(){return o}});var r=n(3906);function o(e){return(0,r.sH)(this,void 0,void 0,function(){var t;return(0,r.YH)(this,function(r){switch(r.label){case 0:return[4,n.e(121).then(n.t.bind(n,8491,23))];case 1:return t=r.sent(),e._plugins=t,[2]}})})}},1622:function(e,t,n){"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:function(){return i},sourceMiddlewarePlugin:function(){return l}});var r=n(3906),o=n(4324),a=n(6440);function i(e,t,n){return(0,r.sH)(this,void 0,void 0,function(){function o(t,n){return(0,r.sH)(this,void 0,void 0,function(){var o,i,l;return(0,r.YH)(this,function(c){switch(c.label){case 0:return o=!1,i=null,[4,n({payload:(0,a.W)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){o=!0,null===e&&(i=null),e&&(i=e.obj)}})];case 1:return c.sent(),o||null===i||(i.integrations=(0,r.Cl)((0,r.Cl)({},t.integrations),((l={})[e]=!1,l))),[2,i]}})})}var i,l,c,s,u;return(0,r.YH)(this,function(e){switch(e.label){case 0:i=(0,a.W)(t,{clone:!0,traverse:!1}).rawEvent(),l=0,c=n,e.label=1;case 1:return l":case">=":return function(e,t,n,r){if(l(e)&&(e=a(e,r)),l(t)&&(t=a(t,r)),"number"!=typeof e||"number"!=typeof t)return!1;switch(n){case"<=":return e<=t;case">=":return e>=t;case"<":return e":return e>t;default:throw new Error("Invalid operator in compareNumbers: ".concat(n))}}(i(e[1],t),i(e[2],t),f,t);case"in":return function(e,t,n){return void 0!==t.find(function(t){return i(t,n)===e})}(i(e[1],t),i(e[2],t),t);case"contains":return o=i(e[1],t),u=i(e[2],t),"string"==typeof o&&"string"==typeof u&&-1!==o.indexOf(u);case"match":return n=i(e[1],t),r=i(e[2],t),"string"==typeof n&&"string"==typeof r&&function(e,t){var n,r;e:for(;e.length>0;){var o,a;if(o=(n=c(e)).star,a=n.chunk,e=n.pattern,o&&""===a)return!0;var i=s(a,t),l=i.t,u=i.ok,f=i.err;if(f)return!1;if(!u||!(0===l.length||e.length>0)){if(o)for(var d=0;d0)continue;t=l;continue e}if(f)return!1}return!1}t=l}return 0===t.length}(r,n);case"lowercase":var p=i(e[1],t);return"string"!=typeof p?null:p.toLowerCase();case"typeof":return typeof i(e[1],t);case"length":return function(e){return null===e?0:Array.isArray(e)||"string"==typeof e?e.length:NaN}(i(e[1],t));default:throw new Error("FQL IR could not evaluate for token: ".concat(f))}}function i(e,t){return Array.isArray(e)?e:"object"==typeof e?e.value:(0,o.default)(t,e)}function l(e){return!!Array.isArray(e)&&(("lowercase"===e[0]||"length"===e[0]||"typeof"===e[0])&&2===e.length||("contains"===e[0]||"match"===e[0])&&3===e.length)}function c(e){for(var t={star:!1,chunk:"",pattern:""};e.length>0&&"*"===e[0];)e=e.slice(1),t.star=!0;var n,r=!1;e:for(n=0;n0;){if(0===t.length)return o;switch(e[0]){case"[":var a=t[0];t=t.slice(1);var i=!0;(e=e.slice(1)).length>0&&"^"===e[0]&&(i=!1,e=e.slice(1));for(var l=!1,c=0;;){if(e.length>0&&"]"===e[0]&&c>0){e=e.slice(1);break}var s,f="";if(s=(n=u(e)).char,e=n.newChunk,n.err)return o;if(f=s,"-"===e[0]&&(f=(r=u(e.slice(1))).char,e=r.newChunk,r.err))return o;s<=a&&a<=f&&(l=!0),c++}if(l!==i)return o;break;case"?":t=t.slice(1),e=e.slice(1);break;case"\\":if(0===(e=e.slice(1)).length)return o.err=!0,o;default:if(e[0]!==t[0])return o;t=t.slice(1),e=e.slice(1)}}return o.t=t,o.ok=!0,o.err=!1,o}function u(e){var t={char:"",newChunk:"",err:!1};return 0===e.length||"-"===e[0]||"]"===e[0]||"\\"===e[0]&&0===(e=e.slice(1)).length?(t.err=!0,t):(t.char=e[0],t.newChunk=e.slice(1),0===t.newChunk.length&&(t.err=!0),t)}t.default=function(e,t){if(!t)throw new Error("No matcher supplied!");switch(t.type){case"all":return!0;case"fql":return function(e,t){if(!e)return!1;try{e=JSON.parse(e)}catch(t){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(e,'": ').concat(t))}var n=a(e,t);return"boolean"==typeof n&&n}(t.ir,e);default:throw new Error("Matcher of type ".concat(t.type," unsupported."))}}},1444:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.rules=[],this.rules=e||[]}return e.prototype.getRulesByDestinationName=function(e){for(var t=[],n=0,r=this.rules;n1?(i.pop(),s=(0,a.default)(n,i.join("."))):s=e,"object"==typeof s){if(o.copy){var u=(0,a.default)(n,o.copy);void 0!==u&&(0,l.dset)(e,r,u)}else if(o.move){var f=(0,a.default)(n,o.move);void 0!==f&&(0,l.dset)(e,r,f),(0,c.unset)(e,o.move)}else o.hasOwnProperty("set")&&(0,l.dset)(e,r,o.set);if(o.to_string){var d=(0,a.default)(e,r);if("string"==typeof d||"object"==typeof d&&null!==d)continue;void 0!==d?(0,l.dset)(e,r,JSON.stringify(d)):(0,l.dset)(e,r,"undefined")}}}}function p(e,t){return!(t.sample.percent<=0)&&(t.sample.percent>=1||(t.sample.path?function(e,t){var n=(0,a.default)(e,t.sample.path),r=(0,o.default)(JSON.stringify(n)),l=-64,c=[];m(r.slice(0,8),c);for(var s=0,u=0;u<64&&1!==c[u];u++)s++;if(0!==s){var f=[];m(r.slice(9,16),f),l-=s,c.splice(0,s),f.splice(64-s),c=c.concat(f)}return c[63]=0===c[63]?1:0,(0,i.default)(parseInt(c.join(""),2),l)=1;o/=2)r-o>=0?(r-=o,t.push(1)):t.push(0)}t.default=function(e,t){for(var n=e,r=0,o=t;ri?e<0?o:r:(t<=l?(t+=52,y=2220446049250313e-31):y=1,m(g,e),n=g[0],n&=2148532223,y*v(n|=t+a<<20,g[1])))}},4772:function(e,t,n){var r=n(7548);e.exports=r},7548:function(e){e.exports=Number},8478:function(e,t,n){var r=n(4500);e.exports=r},4500:function(e,t,n){var r=n(1921),o=n(3105),a=n(6315);e.exports=function(e){var t=r(e);return(t=(t&o)>>>20)-a|0}},2490:function(e,t,n){var r=n(9639);e.exports=r},4445:function(e,t,n){var r,o,a;!0===n(5902)?(o=1,a=0):(o=0,a=1),r={HIGH:o,LOW:a},e.exports=r},9639:function(e,t,n){var r=n(4773),o=n(7382),a=n(4445),i=new o(1),l=new r(i.buffer),c=a.HIGH,s=a.LOW;e.exports=function(e,t){return l[c]=e,l[s]=t,i[0]}},5646:function(e,t,n){var r;r=!0===n(5902)?1:0,e.exports=r},1921:function(e,t,n){var r=n(6285);e.exports=r},6285:function(e,t,n){var r=n(4773),o=n(7382),a=n(5646),i=new o(1),l=new r(i.buffer);e.exports=function(e){return i[0]=e,l[a]}},9024:function(e,t,n){var r=n(6488),o=n(7011),a=n(1883),i=n(513);e.exports=function(e,t,n,l){return a(e)||o(e)?(t[l]=e,t[l+n]=0,t):0!==e&&i(e)>2]|=c.charCodeAt(s)<<8*s--;for(o=c=0;o>4]+r[c]+~~l[o|15&[c,5*c+1,3*c+5,7*c][s]])<<(s=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*s+c++%4])|a>>>-s),t,n])t=0|s[1],n=s[2];for(c=4;c;)i[--c]+=s[c]}for(e="";c<32;)e+=(i[c>>3]>>4*(1^c++)&15).toString(16);return e}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}return n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(2870)}()},8491:function(e){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";n.r(t);var r="function"==typeof fetch?fetch.bind():function(e,t){return t=t||{},new Promise(function(n,r){var o=new XMLHttpRequest;for(var a in o.open(t.method||"get",e,!0),t.headers)o.setRequestHeader(a,t.headers[a]);function i(){var e,t=[],n=[],r={};return o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(o,a,i){t.push(a=a.toLowerCase()),n.push([a,i]),e=r[a],r[a]=e?e+","+i:i}),{ok:2==(o.status/100|0),status:o.status,statusText:o.statusText,url:o.responseURL,clone:i,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},headers:{keys:function(){return t},entries:function(){return n},get:function(e){return r[e.toLowerCase()]},has:function(e){return e.toLowerCase()in r}}}}o.withCredentials="include"==t.credentials,o.onload=function(){n(i())},o.onerror=r,o.send(t.body)})};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=10&&(this.track("Video Content Playing",this.metadata.content),this.mostRecentHeartbeat=Math.floor(t))}},{key:"trackPause",value:function(){this.isPaused=!0,this.track("Video Playback Paused",this.metadata.playback)}},{key:"retrieveMetadata",value:function(e){var t=this;return new Promise(function(n,r){var a=e.id;(0,o.default)("https://api.vimeo.com/videos/"+a,{headers:{Authorization:"Bearer "+t.authToken}}).then(function(e){return e.ok?e.json():r(e)}).then(function(e){t.metadata.content.title=e.name,t.metadata.content.description=e.description,t.metadata.content.publisher=e.user.name,t.metadata.playback.position=0,t.metadata.playback.totalLength=e.duration}).catch(function(e){return console.error("Request to Vimeo API Failed with: ",e),r(e)})})}},{key:"updateMetadata",value:function(e){var t=this;return new Promise(function(n,r){t.player.getVolume().then(function(r){r&&(t.metadata.playback.sound=100*r),t.metadata.playback.position=e.seconds,n()}).catch(r)})}}]),t}(a(n(1)).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n2e3}}]),t}(a(n(1)).default);function l(e){var t=e.match(/PT(\d+H)?(\d+M)?(\d+S)?/);return t=t.slice(1).map(function(e){if(null!=e)return e.replace(/\D/,"")}),3600*(parseInt(t[0])||0)+60*(parseInt(t[1])||0)+(parseInt(t[2])||0)}t.default=i}])},1863:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2894));function a(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return o.default(n,"address."+e)||o.default(n,e)||(t?o.default(n,"address."+t):null)||(t?o.default(n,t):null)||o.default(r,"address."+e)||o.default(r,e)||(t?o.default(r,"address."+t):null)||(t?o.default(r,t):null)}}t.default=function(e){e.zip=a("postalCode","zip"),e.country=a("country"),e.street=a("street"),e.state=a("state"),e.city=a("city"),e.region=a("region")}},4619:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;var o=r(n(2931)),a=n(3261);function i(e,t){a.Facade.call(this,e,t)}t.Alias=i,o.default(i,a.Facade),i.prototype.action=function(){return"alias"},i.prototype.type=i.prototype.action,i.prototype.previousId=function(){return this.field("previousId")||this.field("from")},i.prototype.from=i.prototype.previousId,i.prototype.userId=function(){return this.field("userId")||this.field("to")},i.prototype.to=i.prototype.userId},4782:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("object"!==typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t}},9304:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var o=r(n(2931)),a=n(3261);function i(e,t){a.Facade.call(this,e,t)}t.Delete=i,o.default(i,a.Facade),i.prototype.type=function(){return"delete"}},3261:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var o=r(n(1863)),a=n(4782),i=r(n(9091)),l=r(n(8995)),c=r(n(2894)),s=r(n(786));function u(e,t){t=t||{},this.raw=a.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=a.clone(e)),"traverse"in t||(t.traverse=!0),e.timestamp="timestamp"in e?l.default(e.timestamp):new Date,t.traverse&&s.default(e),this.opts=t,this.obj=e}t.Facade=u;var f=u.prototype;function d(e){return a.clone(e)}f.proxy=function(e){var t=e.split("."),n=this[e=t.shift()]||this.obj[e];return n?("function"===typeof n&&(n=n.call(this)||{}),0===t.length||(n=c.default(n,t.join("."))),this.opts.clone?d(n):n):n},f.field=function(e){var t=this.obj[e];return this.opts.clone?d(t):t},u.proxy=function(e){return function(){return this.proxy(e)}},u.field=function(e){return function(){return this.field(e)}},u.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?a.clone(n):n]),n||[]}},u.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");return Array.isArray(n)?n[0]:void 0}},f.json=function(){var e=this.opts.clone?a.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},f.rawEvent=function(){return this.raw},f.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?a.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),o=r[e]||c.default(r,e);return"object"!==typeof o&&(o=c.default(this.options(),e)),"object"===typeof o?o:{}}},f.context=f.options,f.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!==typeof t&&(t=this.proxy("options.all")),"boolean"!==typeof t&&(t=this.proxy("integrations.all")),"boolean"!==typeof t&&(t=!0);var n=t&&i.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var o=r[e];n="boolean"!==typeof o||o}return!!n},f.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},f.active=function(){var e=this.proxy("options.active");return null!==e&&void 0!==e||(e=!0),e},f.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},f.sessionId=f.anonymousId,f.groupId=u.proxy("options.groupId"),f.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==o)continue;t[e[r]]=o,delete t[r]}return t},f.library=function(){var e=this.proxy("options.library");return e?"string"===typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},f.device=function(){var e=this.proxy("context.device");"object"===typeof e&&null!==e||(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},f.userAgent=u.proxy("context.userAgent"),f.timezone=u.proxy("context.timezone"),f.timestamp=u.field("timestamp"),f.channel=u.field("channel"),f.ip=u.proxy("context.ip"),f.userId=u.field("userId"),o.default(f)},3136:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var o=r(n(2931)),a=r(n(7110)),i=r(n(8995)),l=n(3261);function c(e,t){l.Facade.call(this,e,t)}t.Group=c,o.default(c,l.Facade);var s=c.prototype;s.action=function(){return"group"},s.type=s.action,s.groupId=l.Facade.field("groupId"),s.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return i.default(e)},s.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return a.default(t)?t:void 0},s.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=null==this[r]?this.proxy("traits."+r):this[r]();if(null==o)continue;t[e[r]]=o,delete t[r]}return t},s.name=l.Facade.proxy("traits.name"),s.industry=l.Facade.proxy("traits.industry"),s.employees=l.Facade.proxy("traits.employees"),s.properties=function(){return this.field("traits")||this.field("properties")||{}}},2619:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var o=n(3261),a=r(n(2894)),i=r(n(2931)),l=r(n(7110)),c=r(n(8995)),s=function(e){return e.trim()};function u(e,t){o.Facade.call(this,e,t)}t.Identify=u,i.default(u,o.Facade);var f=u.prototype;f.action=function(){return"identify"},f.type=f.action,f.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var o=null==this[r]?this.proxy("traits."+r):this[r]();null!=o&&(t[e[r]]=o,r!==e[r]&&delete t[r])}return t},f.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return l.default(t)?t:void 0},f.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return c.default(e)},f.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return c.default(e)},f.companyName=function(){return this.proxy("traits.company.name")},f.name=function(){var e=this.proxy("traits.name");if("string"===typeof e)return s(e);var t=this.firstName(),n=this.lastName();return t&&n?s(t+" "+n):void 0},f.firstName=function(){var e=this.proxy("traits.firstName");if("string"===typeof e)return s(e);var t=this.proxy("traits.name");return"string"===typeof t?s(t).split(" ")[0]:void 0},f.lastName=function(){var e=this.proxy("traits.lastName");if("string"===typeof e)return s(e);var t=this.proxy("traits.name");if("string"===typeof t){var n=s(t).indexOf(" ");if(-1!==n)return s(t.substr(n+1))}},f.uid=function(){return this.userId()||this.username()||this.email()},f.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},f.age=function(){var e=this.birthday(),t=a.default(this.traits(),"age");return null!=t?t:e instanceof Date?(new Date).getFullYear()-e.getFullYear():void 0},f.avatar=function(){var e=this.traits();return a.default(e,"avatar")||a.default(e,"photoUrl")||a.default(e,"avatarUrl")},f.position=function(){var e=this.traits();return a.default(e,"position")||a.default(e,"jobTitle")},f.username=o.Facade.proxy("traits.username"),f.website=o.Facade.one("traits.website"),f.websites=o.Facade.multi("traits.website"),f.phone=o.Facade.one("traits.phone"),f.phones=o.Facade.multi("traits.phone"),f.address=o.Facade.proxy("traits.address"),f.gender=o.Facade.proxy("traits.gender"),f.birthday=o.Facade.proxy("traits.birthday")},3675:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1}},8912:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r0&&a(u)?n>1?e(u,n-1,a,i,l):r(l,u):i||(l[l.length]=u)}return l}},8288:function(e,t,n){var r=n(4184)();e.exports=r},4110:function(e,t,n){var r=n(8288),o=n(6511);e.exports=function(e,t){return e&&r(e,t,o)}},8839:function(e,t,n){var r=n(7426),o=n(8036);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n=200){var v=t?null:l(e);if(v)return c(v);d=!1,u=i,m=new r}else m=t?[]:p;e:for(;++st||i&&l&&s&&!c&&!u||o&&l&&s||!n&&s||!a)return 1;if(!o&&!i&&!u&&e=c?s:s*("desc"==n[o]?-1:1)}return e.index-t.index}},9182:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[a-1]:void 0,l=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,l&&o(n[0],n[1],l)&&(i=a<3?void 0:i,a=1),t=Object(t);++ru))return!1;var d=c.get(e),p=c.get(t);if(d&&p)return d==t&&p==e;var m=-1,v=!0,h=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++m-1&&e%1==0&&e-1}},7296:function(e,t,n){var r=n(7350);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},7709:function(e,t,n){var r=n(9942),o=n(8534),a=n(2182);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},7629:function(e,t,n){var r=n(3e3);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},2420:function(e,t,n){var r=n(3e3);e.exports=function(e){return r(this,e).get(e)}},9104:function(e,t,n){var r=n(3e3);e.exports=function(e){return r(this,e).has(e)}},5072:function(e,t,n){var r=n(3e3);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},5786:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},8252:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},2785:function(e,t,n){var r=n(1023);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},9237:function(e,t,n){var r=n(3735)(Object,"create");e.exports=r},4570:function(e,t,n){var r=n(1562)(Object.keys,Object);e.exports=r},3582:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4342:function(e,t,n){e=n.nmd(e);var r=n(9931),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=l},569:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},1562:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},2838:function(e,t,n){var r=n(9276),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,l=o(a.length-t,0),c=Array(l);++i0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},3755:function(e,t,n){var r=n(8534);e.exports=function(){this.__data__=new r,this.size=0}},8844:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},5630:function(e){e.exports=function(e){return this.__data__.get(e)}},3386:function(e){e.exports=function(e){return this.__data__.has(e)}},3154:function(e,t,n){var r=n(8534),o=n(2182),a=n(6854);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},3478:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r2?t[2]:void 0;for(s&&a(t[0],t[1],s)&&(r=1);++n-1&&e%1==0&&e<=9007199254740991}},3069:function(e,t,n){var r=n(8925),o=n(1168),a=n(4342),i=a&&a.isMap,l=i?o(i):r;e.exports=l},5136:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},9863:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},5956:function(e,t,n){var r=n(9215),o=n(540),a=n(9863),i=Function.prototype,l=Object.prototype,c=i.toString,s=l.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},1819:function(e,t,n){var r=n(8155),o=n(1168),a=n(4342),i=a&&a.isSet,l=i?o(i):r;e.exports=l},3703:function(e,t,n){var r=n(9215),o=n(9863);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},6430:function(e,t,n){var r=n(7582),o=n(1168),a=n(4342),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},2903:function(e){e.exports=function(e){return void 0===e}},6511:function(e,t,n){var r=n(1573),o=n(703),a=n(4885);e.exports=function(e){return a(e)?r(e):o(e)}},2484:function(e,t,n){var r=n(1573),o=n(3364),a=n(4885);e.exports=function(e){return a(e)?r(e,!0):o(e)}},1023:function(e,t,n){var r=n(6854);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},2727:function(e,t,n){var r=n(3079),o=n(4164)(function(e,t,n){r(e,t,n)});e.exports=o},143:function(e,t,n){var r=n(3079),o=n(4164)(function(e,t,n,o){r(e,t,n,o)});e.exports=o},6689:function(e){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},3187:function(e){e.exports=function(){}},2695:function(e,t,n){var r=n(9682),o=n(6689),a=n(459);e.exports=function(e,t){return a(e,o(r(t)))}},1002:function(e,t,n){var r=n(8042),o=n(1242);e.exports=function(e,t,n,a){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(n=a?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},3030:function(e,t,n){var r=n(4950),o=n(2115)(function(e,t){return null==e?{}:r(e,t)});e.exports=o},459:function(e,t,n){var r=n(7483),o=n(9682),a=n(5451),i=n(6934);e.exports=function(e,t){if(null==e)return{};var n=r(i(e),function(e){return[e]});return t=o(t),a(e,n,function(e,n){return t(e,n[0])})}},6966:function(e,t,n){var r=n(1990),o=n(1687),a=n(2559),i=n(8036);e.exports=function(e){return a(e)?r(i(e)):o(e)}},5770:function(e,t,n){var r=n(4697)();e.exports=r},4366:function(e){e.exports=function(){return[]}},240:function(e){e.exports=function(){return!1}},2561:function(e,t,n){var r=n(812),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},812:function(e,t,n){var r=n(1783),o=n(5136),a=n(3703),i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):i.test(e)?NaN:+e}},8379:function(e,t,n){var r=n(1732),o=n(2484);e.exports=function(e){return r(e,o(e))}},2079:function(e,t,n){var r=n(4335);e.exports=function(e){return null==e?"":r(e)}},434:function(e,t,n){var r=n(4194);e.exports=function(e){return e&&e.length?r(e):[]}},5838:function(e,t,n){var r=n(2079),o=0;e.exports=function(e){var t=++o;return r(e)+t}},8995:function(e,t,n){"use strict";var r=n(1953),o=n(6121),a=n(8582),i=Object.prototype.toString;e.exports=function(e){return t=e,"[object Date]"===i.call(t)?e:function(e){return"[object Number]"===i.call(e)}(e)?new Date((n=e)<315576e5?1e3*n:n):r.is(e)?r.parse(e):o.is(e)?o.parse(e):a.is(e)?a.parse(e):new Date(e);var t,n}},6121:function(e,t){"use strict";var n=/\d{13}/;t.is=function(e){return n.test(e)},t.parse=function(e){return e=parseInt(e,10),new Date(e)}},8582:function(e,t){"use strict";var n=/\d{10}/;t.is=function(e){return n.test(e)},t.parse=function(e){var t=1e3*parseInt(e,10);return new Date(t)}},2894:function(e){function t(e){return function(t,n,r,a){var i,l=a&&function(e){return"function"===typeof e}(a.normalizer)?a.normalizer:o;n=l(n);for(var c=!1;!c;)s();function s(){for(i in t){var e=l(i);if(0===n.indexOf(e)){var r=n.substr(e.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var o=t[i];return null==o?void(c=!0):n.length?void(t=o):void(c=!0)}}}i=void 0,c=!0}if(i)return null==t?t:e(t,i,r)}}function n(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function r(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function o(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t(function(e,t){if(e.hasOwnProperty(t))return e[t]}),e.exports.find=e.exports,e.exports.replace=function(e,n,o,a){return t(r).call(this,e,n,o,a),e},e.exports.del=function(e,r,o){return t(n).call(this,e,r,null,o),e}},8044:function(e,t,n){"use strict";var r=n(1477),o=n(2051);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n