{"version":3,"file":"singlePageApplication.vuxopkyr.js","sources":["../Client/business/CommonSets/ElementGroupName/index.ts","../Client/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError.js","../Client/node_modules/libphonenumber-js/min/exports/parsePhoneNumberWithError.js","../Client/webkit/validation/rules/afterWithString/index.tsx","../Client/webkit/validation/rules/decimal/index.ts","../Client/webkit/validation/rules/minSelected/index.ts","../Client/node_modules/@react-aria/i18n/dist/useFilter.mjs","../Client/node_modules/@react-aria/combobox/dist/ar-AE.mjs","../Client/node_modules/@react-aria/combobox/dist/bg-BG.mjs","../Client/node_modules/@react-aria/combobox/dist/cs-CZ.mjs","../Client/node_modules/@react-aria/combobox/dist/da-DK.mjs","../Client/node_modules/@react-aria/combobox/dist/de-DE.mjs","../Client/node_modules/@react-aria/combobox/dist/el-GR.mjs","../Client/node_modules/@react-aria/combobox/dist/en-US.mjs","../Client/node_modules/@react-aria/combobox/dist/es-ES.mjs","../Client/node_modules/@react-aria/combobox/dist/et-EE.mjs","../Client/node_modules/@react-aria/combobox/dist/fi-FI.mjs","../Client/node_modules/@react-aria/combobox/dist/fr-FR.mjs","../Client/node_modules/@react-aria/combobox/dist/he-IL.mjs","../Client/node_modules/@react-aria/combobox/dist/hr-HR.mjs","../Client/node_modules/@react-aria/combobox/dist/hu-HU.mjs","../Client/node_modules/@react-aria/combobox/dist/it-IT.mjs","../Client/node_modules/@react-aria/combobox/dist/ja-JP.mjs","../Client/node_modules/@react-aria/combobox/dist/ko-KR.mjs","../Client/node_modules/@react-aria/combobox/dist/lt-LT.mjs","../Client/node_modules/@react-aria/combobox/dist/lv-LV.mjs","../Client/node_modules/@react-aria/combobox/dist/nb-NO.mjs","../Client/node_modules/@react-aria/combobox/dist/nl-NL.mjs","../Client/node_modules/@react-aria/combobox/dist/pl-PL.mjs","../Client/node_modules/@react-aria/combobox/dist/pt-BR.mjs","../Client/node_modules/@react-aria/combobox/dist/pt-PT.mjs","../Client/node_modules/@react-aria/combobox/dist/ro-RO.mjs","../Client/node_modules/@react-aria/combobox/dist/ru-RU.mjs","../Client/node_modules/@react-aria/combobox/dist/sk-SK.mjs","../Client/node_modules/@react-aria/combobox/dist/sl-SI.mjs","../Client/node_modules/@react-aria/combobox/dist/sr-SP.mjs","../Client/node_modules/@react-aria/combobox/dist/sv-SE.mjs","../Client/node_modules/@react-aria/combobox/dist/tr-TR.mjs","../Client/node_modules/@react-aria/combobox/dist/uk-UA.mjs","../Client/node_modules/@react-aria/combobox/dist/zh-CN.mjs","../Client/node_modules/@react-aria/combobox/dist/zh-TW.mjs","../Client/node_modules/@react-aria/combobox/dist/intlStrings.mjs","../Client/node_modules/@react-aria/menu/dist/ar-AE.mjs","../Client/node_modules/@react-aria/menu/dist/bg-BG.mjs","../Client/node_modules/@react-aria/menu/dist/cs-CZ.mjs","../Client/node_modules/@react-aria/menu/dist/da-DK.mjs","../Client/node_modules/@react-aria/menu/dist/de-DE.mjs","../Client/node_modules/@react-aria/menu/dist/el-GR.mjs","../Client/node_modules/@react-aria/menu/dist/en-US.mjs","../Client/node_modules/@react-aria/menu/dist/es-ES.mjs","../Client/node_modules/@react-aria/menu/dist/et-EE.mjs","../Client/node_modules/@react-aria/menu/dist/fi-FI.mjs","../Client/node_modules/@react-aria/menu/dist/fr-FR.mjs","../Client/node_modules/@react-aria/menu/dist/he-IL.mjs","../Client/node_modules/@react-aria/menu/dist/hr-HR.mjs","../Client/node_modules/@react-aria/menu/dist/hu-HU.mjs","../Client/node_modules/@react-aria/menu/dist/it-IT.mjs","../Client/node_modules/@react-aria/menu/dist/ja-JP.mjs","../Client/node_modules/@react-aria/menu/dist/ko-KR.mjs","../Client/node_modules/@react-aria/menu/dist/lt-LT.mjs","../Client/node_modules/@react-aria/menu/dist/lv-LV.mjs","../Client/node_modules/@react-aria/menu/dist/nb-NO.mjs","../Client/node_modules/@react-aria/menu/dist/nl-NL.mjs","../Client/node_modules/@react-aria/menu/dist/pl-PL.mjs","../Client/node_modules/@react-aria/menu/dist/pt-BR.mjs","../Client/node_modules/@react-aria/menu/dist/pt-PT.mjs","../Client/node_modules/@react-aria/menu/dist/ro-RO.mjs","../Client/node_modules/@react-aria/menu/dist/ru-RU.mjs","../Client/node_modules/@react-aria/menu/dist/sk-SK.mjs","../Client/node_modules/@react-aria/menu/dist/sl-SI.mjs","../Client/node_modules/@react-aria/menu/dist/sr-SP.mjs","../Client/node_modules/@react-aria/menu/dist/sv-SE.mjs","../Client/node_modules/@react-aria/menu/dist/tr-TR.mjs","../Client/node_modules/@react-aria/menu/dist/uk-UA.mjs","../Client/node_modules/@react-aria/menu/dist/zh-CN.mjs","../Client/node_modules/@react-aria/menu/dist/zh-TW.mjs","../Client/node_modules/@react-aria/menu/dist/intlStrings.mjs","../Client/node_modules/@react-aria/menu/dist/useMenuTrigger.mjs","../Client/node_modules/@react-aria/combobox/dist/useComboBox.mjs","../Client/node_modules/@react-aria/radio/dist/utils.mjs","../Client/node_modules/@react-aria/radio/dist/useRadio.mjs","../Client/node_modules/@react-aria/radio/dist/useRadioGroup.mjs","../Client/node_modules/@react-stately/list/dist/useSingleSelectListState.mjs","../Client/node_modules/@react-stately/combobox/dist/useComboBoxState.mjs","../Client/node_modules/@react-stately/data/dist/useListData.mjs","../Client/node_modules/@react-stately/data/dist/useAsyncList.mjs","../Client/node_modules/@react-stately/data/dist/useTreeData.mjs","../Client/node_modules/@react-stately/radio/dist/useRadioGroupState.mjs","../Client/node_modules/@react-stately/tree/dist/TreeCollection.mjs","../Client/node_modules/@react-stately/tree/dist/useTreeState.mjs","../Client/node_modules/react-aria-components/dist/ComboBox.mjs","../Client/node_modules/react-aria-components/dist/RadioGroup.mjs","../Client/node_modules/@mui/icons-material/Assignment.js","../Client/node_modules/@mui/icons-material/BrowserUpdatedOutlined.js","../Client/node_modules/@mui/icons-material/ContentCopyOutlined.js","../Client/node_modules/@mui/icons-material/EditOutlined.js","../Client/node_modules/@mui/icons-material/Folder.js","../Client/node_modules/@mui/icons-material/HelpOutlineRounded.js","../Client/node_modules/@mui/icons-material/KeyboardArrowDownOutlined.js","../Client/node_modules/@mui/icons-material/KeyboardArrowRightOutlined.js","../Client/node_modules/@mui/icons-material/Person.js","../Client/node_modules/@mui/icons-material/SaveOutlined.js","../Client/node_modules/@mui/icons-material/SearchOutlined.js","../Client/node_modules/@mui/icons-material/Store.js","../Client/webkit/components/autoComplete/hook.ts","../Client/webkit/components/autoComplete/internal.tsx","../Client/webkit/components/autoComplete/index.tsx","../Client/webkit/components/categorySelect/buttonText.tsx","../Client/webkit/components/categorySelect/categoryItem.tsx","../Client/webkit/components/categorySelect/hook.ts","../Client/webkit/components/categorySelect/selectItem.tsx","../Client/webkit/components/categorySelect/index.tsx","../Client/webkit/components/confirm/index.tsx","../Client/webkit/components/drawer/index.tsx","../Client/webkit/components/radioGroup/index.tsx","../Client/webkit/design/viewProgressTracker/context.ts","../Client/webkit/design/viewProgressTracker/index.tsx","../Client/webkit/design/viewProgressTracker/hook.ts","../Client/webkit/design/viewProgressTracker/item.tsx","../Client/node_modules/react-transition-group/esm/SwitchTransition.js","../Client/app/State/Application.ts","../Client/shared/Hooks/Redirect/index.ts","../Client/shared/Hooks/CreateOrGetQuotes/index.ts","../Client/shared/Hooks/ImmutableState.ts","../Client/shared/Hooks/PersistentFormReducer.tsx","../Client/shared/Hooks/QueryString/index.ts","../Client/business/Validation/buildYear/index.ts","../Client/shared/Hooks/AuthorizeRedirect/index.ts","../Client/app/App/auth.tsx","../Client/app/App/Route/index.tsx","../Client/node_modules/gsap/gsap-core.js","../Client/node_modules/gsap/CSSPlugin.js","../Client/node_modules/gsap/index.js","../Client/app/Constants.ts","../Client/app/App/transition.tsx","../Client/app/Components/AppUpdatePrompt/hook.ts","../Client/app/Components/AppUpdatePrompt/index.tsx","../Client/app/Components/Buttons/index.tsx","../Client/app/Components/LayoutWrapper/index.tsx","../Client/app/Components/StepTile/index.tsx","../Client/app/Components/Step/index.tsx","../Client/app/Components/StepHeader/index.tsx","../Client/app/Views/AddressManagement/index.tsx","../Client/app/Components/Table/index.tsx","../Client/app/Views/AdjusterQueueManagement/api.ts","../Client/app/Views/AdjusterQueueManagement/models.ts","../Client/app/Views/AdjusterQueueManagement/AdjusterQueueForm/hook.ts","../Client/app/Views/AdjusterQueueManagement/AdjusterQueueForm/index.tsx","../Client/app/Views/AdjusterQueueManagement/index.tsx","../Client/app/Views/AgencyDashboard/ActivateLocation/index.tsx","../Client/app/Views/AgencyDashboard/context.ts","../Client/app/Views/AgencyDashboard/inlineHeader/index.tsx","../Client/app/Views/AgencyDashboard/boxedList/index.tsx","../Client/app/Views/AgencyDashboard/producerContact/index.tsx","../Client/app/Views/AgencyDashboard/producerLocation/index.tsx","../Client/app/Views/AgencyDashboard/producer/index.tsx","../Client/app/Views/AgencyDashboard/api.ts","../Client/app/Views/AgencyDashboard/producerSearch.ts","../Client/app/Views/AgencyDashboard/searchInfo/index.tsx","../Client/app/Views/AgencyDashboard/searchBar/index.tsx","../Client/app/Views/AgencyDashboard/index.tsx","../Client/app/Views/BindingRequirements/hook.ts","../Client/app/Views/BindingRequirements/skeleton.tsx","../Client/app/Views/BindingRequirements/component.tsx","../Client/app/Views/BindingRequirements/index.tsx","../Client/app/Views/CatCodes/Models.ts","../Client/app/Views/CatCodes/Modal/index.tsx","../Client/app/Views/CatCodes/Search/index.tsx","../Client/app/Views/CatCodes/Table/index.tsx","../Client/app/Views/CatCodes/App/index.tsx","../Client/app/Components/Sidebar/index.tsx","../Client/app/Views/ClaimsDashboard/models.ts","../Client/app/Views/ClaimsDashboard/api.ts","../Client/app/Views/ClaimsDashboard/TaskForm/index.tsx","../Client/app/Views/ClaimsDashboard/SavedSearchForm/index.tsx","../Client/app/Views/ClaimsDashboard/TaskSearchForm/index.tsx","../Client/app/Views/ClaimsDashboard/ClaimTasks/index.tsx","../Client/app/Views/ClaimsDashboard/reducer.ts","../Client/app/Views/ClaimsDashboard/index.tsx","../Client/app/Components/Landing/HeroText/index.tsx","../Client/app/Components/Landing/LandingContent/index.tsx","../Client/app/Components/Landing/LandingLayout/index.tsx","../Client/app/Components/Landing/LandingViewWrapper/index.tsx","../Client/app/Components/Landing/Logo/index.tsx","../Client/app/Components/ProductHeader/index.tsx","../Client/app/Components/Landing/LandingFooter/index.tsx","../Client/app/Views/CommercialLanding/Components/BuildingAddressInput/hook.ts","../Client/app/Views/CommercialLanding/Components/BuildingAddressInput/item.tsx","../Client/app/Views/CommercialLanding/Components/BuildingAddressInput/index.tsx","../Client/app/Views/CommercialLanding/Components/ConstructionType/hook.ts","../Client/app/Views/CommercialLanding/Components/ConstructionType/index.tsx","../Client/app/Views/CommercialLanding/Components/GeneralLiability/models.ts","../Client/app/Views/CommercialLanding/Components/GeneralLiability/hook.ts","../Client/app/Views/CommercialLanding/Components/GeneralLiability/index.tsx","../Client/app/Views/CommercialLanding/Components/LessorsRisk/hook.ts","../Client/app/Views/CommercialLanding/Components/LessorsRisk/index.tsx","../Client/app/Views/CommercialLanding/Components/OccupancyType/hook.ts","../Client/app/Views/CommercialLanding/Components/OccupancyType/index.tsx","../Client/app/Views/CommercialLanding/Components/SwimmingPoolCount/models.ts","../Client/app/Views/CommercialLanding/Components/SwimmingPoolCount/hook.ts","../Client/app/Views/CommercialLanding/Components/SwimmingPoolCount/index.tsx","../Client/app/Views/CommercialLanding/Components/Form/index.tsx","../Client/app/Views/CommercialLanding/Components/Loading.tsx","../Client/app/Views/CommercialLanding/hook.ts","../Client/app/Views/CommercialLanding/index.tsx","../Client/app/Api/Property.ts","../Client/app/Validation/index.ts","../Client/app/Views/CreateAddress/api.ts","../Client/app/Views/CreateAddress/index.tsx","../Client/app/Views/CreateAddress/routeConfig.tsx","../Client/app/Views/Hover/Authorization/index.tsx","../Client/app/Views/Hover/Api.ts","../Client/app/Views/Hover/Jobs/index.tsx","../Client/app/Views/Hover/Webhooks/index.tsx","../Client/app/Views/Hover/App/index.tsx","../Client/app/Components/RouteLoadingSpinner/index.tsx","../Client/app/Views/IsoForms/api.ts","../Client/app/Views/IsoForms/hook.ts","../Client/app/Views/IsoForms/index.tsx","../Client/app/Views/MakeAPayment/PaymentAction/index.tsx","../Client/app/Views/MakeAPayment/PaymentForm/index.tsx","../Client/app/Views/MakeAPayment/PaymentSummary/index.tsx","../Client/app/Views/MakeAPayment/index.tsx","../Client/app/Views/RenewalEAndSOffer/hook.ts","../Client/app/Views/RenewalEAndSOffer/index.tsx","../Client/app/Views/RequestEAndSQuote/hook.ts","../Client/app/Views/RequestEAndSQuote/index.tsx","../Client/app/Components/Header/index.tsx","../Client/app/Components/StepTile/TwoColumnLayout/index.tsx","../Client/app/Components/SelectedQuoteHeader/hook.ts","../Client/app/Components/SelectedQuoteHeader/index.tsx","../Client/app/Components/QuoteStepTile/hook.ts","../Client/app/Components/QuoteStepTile/index.tsx","../Client/app/Api/ComparisonQuotes.ts","../Client/app/Views/UnderwritingGuidelines/hook.ts","../Client/app/Views/UnderwritingGuidelines/index.tsx","../Client/app/Components/OverviewSection/FinancialRating/index.tsx","../Client/app/Components/OverviewSection/CarrierOverview/index.tsx","../Client/app/Components/OverviewSection/hook.ts","../Client/app/Components/OverviewSection/index.tsx","../Client/api/MinimumEarnedPremiumApi/index.ts","../Client/app/PrintQuote/Components/Group.tsx","../Client/app/PrintQuote/Components/GroupRow.tsx","../Client/app/PrintQuote/Helpers/index.ts","../Client/app/PrintQuote/Components/MapElementGroupToPrintedQuote.tsx","../Client/app/PrintQuote/Components/LogoBlock.tsx","../Client/app/PrintQuote/Components/Premium.tsx","../Client/app/PrintQuote/Components/PageHeader.tsx","../Client/app/PrintQuote/Pages/CommercialSecondPage.tsx","../Client/app/PrintQuote/Components/CoverPageGroups.tsx","../Client/app/PrintQuote/Components/PageContent.tsx","../Client/app/PrintQuote/Components/Disclaimers/index.tsx","../Client/app/PrintQuote/Components/SidebarLockup.tsx","../Client/app/PrintQuote/Components/PageSidebar.tsx","../Client/app/PrintQuote/Components/PageLayout.tsx","../Client/app/PrintQuote/Components/TaxesAndFeesGroup/index.tsx","../Client/app/PrintQuote/Pages/CoverPage.tsx","../Client/app/PrintQuote/Components/RiskCharacteristicsGroup.tsx","../Client/app/PrintQuote/Pages/ResidentialSecondPage.tsx","../Client/app/PrintQuote/component.tsx","../Client/app/PrintQuote/index.tsx","../Client/app/Components/PrintQuoteButton/index.tsx","../Client/app/Hooks/BindQuoteRedirect/index.ts","../Client/app/Components/TileHeader/BindButton/hook.ts","../Client/app/Components/TileHeader/BindButton/index.tsx","../Client/app/EmailQuote/Email.tsx","../Client/app/EmailQuote/Form.tsx","../Client/app/Components/TileHeader/EmailButton/hook.ts","../Client/app/Components/TileHeader/EmailButton/index.tsx","../Client/app/ProductComparison/QuoteHistoryModal/event.tsx","../Client/app/ProductComparison/QuoteHistoryModal/api.ts","../Client/app/ProductComparison/QuoteHistoryModal/hook.ts","../Client/app/ProductComparison/QuoteHistoryModal/index.tsx","../Client/app/Components/TileHeader/HistoryButton/index.tsx","../Client/app/Components/TileHeader/QRGButton/index.tsx","../Client/app/Components/TileHeader/ViewButton/index.tsx","../Client/app/Components/TileHeader/index.tsx","../Client/app/Views/Revalidation/index.ts","../Client/app/Views/CompareCustomize/hook.ts","../Client/app/Views/CompareCustomize/index.tsx","../Client/app/Views/ConfirmQuote/ConfirmationElement/index.tsx","../Client/app/Views/ConfirmQuote/ImportantNotices/index.tsx","../Client/app/Views/ConfirmQuote/hook.ts","../Client/app/Views/ConfirmQuote/index.tsx","../Client/app/Views/ConfirmSingleFamilyResidence/hook.ts","../Client/app/Views/ConfirmSingleFamilyResidence/index.tsx","../Client/app/Views/Customize/hook.ts","../Client/app/Views/Customize/index.tsx","../Client/app/Views/DeepLinkQuote/hook.ts","../Client/app/Views/DeepLinkQuote/index.tsx","../Client/app/Components/Landing/Address/index.tsx","../Client/app/Components/Landing/Name/index.tsx","../Client/app/Views/Landing/hook.ts","../Client/app/Views/Landing/TermsCheckbox/index.tsx","../Client/app/Views/Landing/index.tsx","../Client/app/Views/LoginAs/api.ts","../Client/app/Views/LoginAs/index.tsx","../Client/app/Views/MissingPropertyData/hook.ts","../Client/app/Views/MissingPropertyData/index.tsx","../Client/app/Views/PreciseLocation/api.ts","../Client/app/Views/PreciseLocation/hook.ts","../Client/node_modules/@react-google-maps/api/dist/esm.js","../Client/app/Views/PreciseLocation/map.tsx","../Client/app/Views/PreciseLocation/index.tsx","../Client/app/Views/QuoteList/hook.ts","../Client/app/Views/QuoteList/Tile/BindButton/hook.ts","../Client/app/Views/QuoteList/Tile/BindButton/index.tsx","../Client/app/Views/QuoteList/Tile/CarrierLogo/index.tsx","../Client/app/Views/QuoteList/Tile/CoveragePreview/hook.ts","../Client/app/Views/QuoteList/Tile/CoveragePreview/index.tsx","../Client/app/Views/QuoteList/Tile/hook.ts","../Client/app/Views/QuoteList/Tile/PremiumErrorInfo/index.tsx","../Client/app/Views/QuoteList/Tile/PremiumInfo/hook.ts","../Client/app/Views/QuoteList/Tile/PremiumInfo/index.tsx","../Client/app/Views/QuoteList/Tile/QuoteActionLinks/index.tsx","../Client/app/Views/QuoteList/Tile/ReviewButton/hook.ts","../Client/app/Views/QuoteList/Tile/ReviewButton/index.tsx","../Client/app/Views/QuoteList/Tile/TileWrapper/index.tsx","../Client/app/Views/QuoteList/Tile/index.tsx","../Client/app/Views/QuoteList/index.tsx","../Client/app/Views/Redirect/index.tsx","../Client/app/Views/SignUp/api.ts","../Client/app/Views/SignUp/models.ts","../Client/app/Views/SignUp/hook.ts","../Client/app/Views/SignUp/AgencyInformation/hook.ts","../Client/app/Views/SignUp/AgencyInformation/index.tsx","../Client/app/Views/SignUp/AgentInformation/hook.ts","../Client/app/Views/SignUp/AgentInformation/index.tsx","../Client/app/Views/SignUp/Tracker/hook.ts","../Client/app/Views/SignUp/Tracker/index.tsx","../Client/app/Views/SignUp/Base/index.tsx","../Client/app/Views/SignUp/Entry/hook.ts","../Client/app/Views/SignUp/Entry/index.tsx","../Client/node_modules/xregexp/src/xregexp.js","../Client/node_modules/parse-address/address.js","../Client/app/Views/UnsupportedProperty/hook.ts","../Client/app/Views/UnsupportedProperty/index.tsx","../Client/app/Views/UpcomingRenewalQuote/UrqOverview/index.tsx","../Client/app/Views/UpcomingRenewalQuote/UrqTileHeader/index.tsx","../Client/app/Views/UpcomingRenewalQuote/hook.ts","../Client/app/Views/UpcomingRenewalQuote/index.tsx","../Client/app/Views/ZipCodeSuggestions/hook.ts","../Client/app/Views/ZipCodeSuggestions/index.tsx","../Client/app/Views/routes.tsx","../Client/app/App/index.tsx","../Client/app/Page.tsx"],"sourcesContent":["export class ElementGroupName {\r\n    readonly name: string;\r\n    readonly displayName: string;\r\n\r\n    private constructor(name: string, displayName: string) {\r\n        this.name = name;\r\n        this.displayName = displayName;\r\n    }\r\n\r\n    static readonly Features = new ElementGroupName('Features', 'Features');\r\n    static readonly PropertyCoverages = new ElementGroupName('PropertyCoverages', 'Property Coverages');\r\n    static readonly Deductibles = new ElementGroupName('Deductibles', 'Deductibles');\r\n    static readonly AdditionalCoverages = new ElementGroupName('AdditionalCoverages', 'Additional Coverages');\r\n    static readonly ConstructionRiskCharacteristics = new ElementGroupName(\r\n        'ConstructionRiskCharacteristics',\r\n        'Construction and Risk Characteristics',\r\n    );\r\n    static readonly Agents = new ElementGroupName('Agents', 'Agents');\r\n    static readonly Admin = new ElementGroupName('Admin', 'Admin');\r\n\r\n    public switch<T>({\r\n        onFeatures,\r\n        onPropertyCoverages,\r\n        onDeductibles,\r\n        onAdditionalCoverages,\r\n        onConstructionRiskCharacteristics,\r\n        onAgents,\r\n        onAdmin,\r\n        onDefault,\r\n    }: {\r\n        onFeatures?: () => T;\r\n        onPropertyCoverages?: () => T;\r\n        onDeductibles?: () => T;\r\n        onAdditionalCoverages?: () => T;\r\n        onConstructionRiskCharacteristics?: () => T;\r\n        onAgents?: () => T;\r\n        onAdmin?: () => T;\r\n        onDefault: () => T;\r\n    }): T {\r\n        switch (this) {\r\n            case ElementGroupName.Features:\r\n                return onFeatures ? onFeatures() : onDefault();\r\n            case ElementGroupName.PropertyCoverages:\r\n                return onPropertyCoverages ? onPropertyCoverages() : onDefault();\r\n            case ElementGroupName.Deductibles:\r\n                return onDeductibles ? onDeductibles() : onDefault();\r\n            case ElementGroupName.AdditionalCoverages:\r\n                return onAdditionalCoverages ? onAdditionalCoverages() : onDefault();\r\n            case ElementGroupName.ConstructionRiskCharacteristics:\r\n                return onConstructionRiskCharacteristics ? onConstructionRiskCharacteristics() : onDefault();\r\n            case ElementGroupName.Agents:\r\n                return onAgents ? onAgents() : onDefault();\r\n            case ElementGroupName.Admin:\r\n                return onAdmin ? onAdmin() : onDefault();\r\n            default:\r\n                return onDefault();\r\n        }\r\n    }\r\n}\r\n\r\nexport namespace ElementGroupName {\r\n    export function all(): ElementGroupName[] {\r\n        return [\r\n            ElementGroupName.Features,\r\n            ElementGroupName.PropertyCoverages,\r\n            ElementGroupName.Deductibles,\r\n            ElementGroupName.AdditionalCoverages,\r\n            ElementGroupName.ConstructionRiskCharacteristics,\r\n            ElementGroupName.Agents,\r\n            ElementGroupName.Admin,\r\n        ];\r\n    }\r\n\r\n    export function parseOrDefault(value: string | null | undefined): ElementGroupName | null {\r\n        if (typeof value === 'string') {\r\n            const normalized = value.trim().toLowerCase();\r\n            return (\r\n                all().find(e => e.name.toLowerCase() === normalized || e.displayName.toLowerCase() === normalized) ??\r\n                null\r\n            );\r\n        }\r\n\r\n        return null;\r\n    }\r\n\r\n    export function parse(value: string): ElementGroupName {\r\n        const result = parseOrDefault(value);\r\n        if (result === null) {\r\n            throw new Error(`Invalid ElementGroupName: ${value}`);\r\n        }\r\n\r\n        return result;\r\n    }\r\n}\r\n","import parsePhoneNumberWithError_ from './parsePhoneNumberWithError_.js';\nimport normalizeArguments from './normalizeArguments.js';\nexport default function parsePhoneNumberWithError() {\n  var _normalizeArguments = normalizeArguments(arguments),\n      text = _normalizeArguments.text,\n      options = _normalizeArguments.options,\n      metadata = _normalizeArguments.metadata;\n\n  return parsePhoneNumberWithError_(text, options, metadata);\n}\n//# sourceMappingURL=parsePhoneNumberWithError.js.map","import withMetadataArgument from './withMetadataArgument.js'\r\nimport { parsePhoneNumberWithError as _parsePhoneNumberWithError } from '../../core/index.js'\r\n\r\nexport function parsePhoneNumberWithError() {\r\n\treturn withMetadataArgument(_parsePhoneNumberWithError, arguments)\r\n}\r\n","import dayjs from 'dayjs';\r\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\r\nimport isSameOrAfter from 'dayjs/plugin/isSameOrAfter';\r\n\r\nimport { Rule } from '@webkit/validation/value.ts';\r\n\r\ndayjs.extend(customParseFormat);\r\ndayjs.extend(isSameOrAfter);\r\n\r\nexport const afterWithString = (date: dayjs.Dayjs, inclusive: boolean = false, error?: string) =>\r\n    ({\r\n        id: 'afterWithString',\r\n        validator: (value: string) => {\r\n            if (!value) {\r\n                return false;\r\n            }\r\n\r\n            const valueAsDate = dayjs(value, ['MM/YYYY', 'M/YYYY'], undefined, true);\r\n\r\n            if (!valueAsDate.isValid()) {\r\n                return false;\r\n            }\r\n\r\n            if (inclusive) {\r\n                return valueAsDate.isSameOrAfter(date);\r\n            } else {\r\n                return valueAsDate.isAfter(date);\r\n            }\r\n        },\r\n        error: (name: string) =>\r\n            error || `Please enter a date ${inclusive ? 'on or' : ''}after ${date.format('M/D/YYYY')} for ${name}.`,\r\n    } as Rule<string>);\r\n","import { Rule } from '@webkit/validation/value';\r\n\r\nexport const decimal = (error?: string) =>\r\n    ({\r\n        id: 'decimal',\r\n        validator: value => !value || /^-?(0|[1-9]\\d*)(\\.\\d+)?$/.test(value.toString()),\r\n        error: (name: string) => error || `Please enter a number for ${name}.`,\r\n    } as Rule<string | number>);\r\n","import { Rule, Value } from '@webkit/validation/value';\r\n\r\nexport const minSelected = (minCount: number, error?: string) =>\r\n    ({\r\n        id: 'min-selected',\r\n        validator: value => !value || minCount <= Object.keys(value).filter(item => value[item].content).length,\r\n        error: (name: string) => error || `The number of selected items for ${name} should be at least ${minCount}.`,\r\n    } as Rule<Record<string, Value<boolean>>>);\r\n","import {useCollator as $325a3faab7a68acd$export$a16aca283550c30d} from \"./useCollator.mjs\";\nimport {useCallback as $21ck9$useCallback, useMemo as $21ck9$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $bb77f239b46e8c72$export$3274cf84b703fff(options) {\n    let collator = (0, $325a3faab7a68acd$export$a16aca283550c30d)({\n        usage: 'search',\n        ...options\n    });\n    // TODO(later): these methods don't currently support the ignorePunctuation option.\n    let startsWith = (0, $21ck9$useCallback)((string, substring)=>{\n        if (substring.length === 0) return true;\n        // Normalize both strings so we can slice safely\n        // TODO: take into account the ignorePunctuation option as well...\n        string = string.normalize('NFC');\n        substring = substring.normalize('NFC');\n        return collator.compare(string.slice(0, substring.length), substring) === 0;\n    }, [\n        collator\n    ]);\n    let endsWith = (0, $21ck9$useCallback)((string, substring)=>{\n        if (substring.length === 0) return true;\n        string = string.normalize('NFC');\n        substring = substring.normalize('NFC');\n        return collator.compare(string.slice(-substring.length), substring) === 0;\n    }, [\n        collator\n    ]);\n    let contains = (0, $21ck9$useCallback)((string, substring)=>{\n        if (substring.length === 0) return true;\n        string = string.normalize('NFC');\n        substring = substring.normalize('NFC');\n        let scan = 0;\n        let sliceLen = substring.length;\n        for(; scan + sliceLen <= string.length; scan++){\n            let slice = string.slice(scan, scan + sliceLen);\n            if (collator.compare(substring, slice) === 0) return true;\n        }\n        return false;\n    }, [\n        collator\n    ]);\n    return (0, $21ck9$useMemo)(()=>({\n            startsWith: startsWith,\n            endsWith: endsWith,\n            contains: contains\n        }), [\n        startsWith,\n        endsWith,\n        contains\n    ]);\n}\n\n\nexport {$bb77f239b46e8c72$export$3274cf84b703fff as useFilter};\n//# sourceMappingURL=useFilter.module.js.map\n","var $02cb4c75c506befe$exports = {};\n$02cb4c75c506befe$exports = {\n    \"buttonLabel\": `\\u{639}\\u{631}\\u{636} \\u{627}\\u{644}\\u{645}\\u{642}\\u{62A}\\u{631}\\u{62D}\\u{627}\\u{62A}`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} \\u{62E}\\u{64A}\\u{627}\\u{631}`,\n            other: ()=>`${formatter.number(args.optionCount)} \\u{62E}\\u{64A}\\u{627}\\u{631}\\u{627}\\u{62A}`\n        })} \\u{645}\\u{62A}\\u{627}\\u{62D}\\u{629}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`\\u{627}\\u{644}\\u{645}\\u{62C}\\u{645}\\u{648}\\u{639}\\u{629} \\u{627}\\u{644}\\u{645}\\u{62F}\\u{62E}\\u{644}\\u{629} ${args.groupTitle}, \\u{645}\\u{639} ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} \\u{62E}\\u{64A}\\u{627}\\u{631}`,\n                    other: ()=>`${formatter.number(args.groupCount)} \\u{62E}\\u{64A}\\u{627}\\u{631}\\u{627}\\u{62A}`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, \\u{645}\\u{62D}\\u{62F}\\u{62F}`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `\\u{645}\\u{642}\\u{62A}\\u{631}\\u{62D}\\u{627}\\u{62A}`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}\\u{60C} \\u{645}\\u{62D}\\u{62F}\\u{62F}`\n};\n\n\nexport {$02cb4c75c506befe$exports as default};\n//# sourceMappingURL=ar-AE.module.js.map\n","var $568b8163f1e56faf$exports = {};\n$568b8163f1e56faf$exports = {\n    \"buttonLabel\": `\\u{41F}\\u{43E}\\u{43A}\\u{430}\\u{436}\\u{438} \\u{43F}\\u{440}\\u{435}\\u{434}\\u{43B}\\u{43E}\\u{436}\\u{435}\\u{43D}\\u{438}\\u{44F}`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} \\u{43E}\\u{43F}\\u{446}\\u{438}\\u{44F}`,\n            other: ()=>`${formatter.number(args.optionCount)} \\u{43E}\\u{43F}\\u{446}\\u{438}\\u{438}`\n        })} \\u{43D}\\u{430} \\u{440}\\u{430}\\u{437}\\u{43F}\\u{43E}\\u{43B}\\u{43E}\\u{436}\\u{435}\\u{43D}\\u{438}\\u{435}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`\\u{412}\\u{44A}\\u{432}\\u{435}\\u{434}\\u{435}\\u{43D}\\u{430} \\u{433}\\u{440}\\u{443}\\u{43F}\\u{430} ${args.groupTitle}, \\u{441} ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} \\u{43E}\\u{43F}\\u{446}\\u{438}\\u{44F}`,\n                    other: ()=>`${formatter.number(args.groupCount)} \\u{43E}\\u{43F}\\u{446}\\u{438}\\u{438}`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, \\u{438}\\u{437}\\u{431}\\u{440}\\u{430}\\u{43D}\\u{438}`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `\\u{41F}\\u{440}\\u{435}\\u{434}\\u{43B}\\u{43E}\\u{436}\\u{435}\\u{43D}\\u{438}\\u{44F}`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{438}\\u{437}\\u{431}\\u{440}\\u{430}\\u{43D}\\u{438}`\n};\n\n\nexport {$568b8163f1e56faf$exports as default};\n//# sourceMappingURL=bg-BG.module.js.map\n","var $87581c0202d106b8$exports = {};\n$87581c0202d106b8$exports = {\n    \"buttonLabel\": `Zobrazit doporu\\u{10D}en\\xed`,\n    \"countAnnouncement\": (args, formatter)=>`K dispozici ${formatter.plural(args.optionCount, {\n            one: ()=>`je ${formatter.number(args.optionCount)} mo\\u{17E}nost`,\n            other: ()=>`jsou/je ${formatter.number(args.optionCount)} mo\\u{17E}nosti/-\\xed`\n        })}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Zadan\\xe1 skupina \\u{201E}${args.groupTitle}\\u{201C} ${formatter.plural(args.groupCount, {\n                    one: ()=>`s ${formatter.number(args.groupCount)} mo\\u{17E}nost\\xed`,\n                    other: ()=>`se ${formatter.number(args.groupCount)} mo\\u{17E}nostmi`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: ` (vybr\\xe1no)`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `N\\xe1vrhy`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, vybr\\xe1no`\n};\n\n\nexport {$87581c0202d106b8$exports as default};\n//# sourceMappingURL=cs-CZ.module.js.map\n","var $a10a0369f5433ed1$exports = {};\n$a10a0369f5433ed1$exports = {\n    \"buttonLabel\": `Vis forslag`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} mulighed tilg\\xe6ngelig`,\n            other: ()=>`${formatter.number(args.optionCount)} muligheder tilg\\xe6ngelige`\n        })}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Angivet gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} mulighed`,\n                    other: ()=>`${formatter.number(args.groupCount)} muligheder`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, valgt`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Forslag`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, valgt`\n};\n\n\nexport {$a10a0369f5433ed1$exports as default};\n//# sourceMappingURL=da-DK.module.js.map\n","var $bfd288727d5cb166$exports = {};\n$bfd288727d5cb166$exports = {\n    \"buttonLabel\": `Empfehlungen anzeigen`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} Option`,\n            other: ()=>`${formatter.number(args.optionCount)} Optionen`\n        })} verf\\xfcgbar.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Eingetretene Gruppe ${args.groupTitle}, mit ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} Option`,\n                    other: ()=>`${formatter.number(args.groupCount)} Optionen`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, ausgew\\xe4hlt`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Empfehlungen`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, ausgew\\xe4hlt`\n};\n\n\nexport {$bfd288727d5cb166$exports as default};\n//# sourceMappingURL=de-DE.module.js.map\n","var $ca177778f9a74e3c$exports = {};\n$ca177778f9a74e3c$exports = {\n    \"buttonLabel\": `\\u{3A0}\\u{3C1}\\u{3BF}\\u{3B2}\\u{3BF}\\u{3BB}\\u{3AE} \\u{3C0}\\u{3C1}\\u{3BF}\\u{3C4}\\u{3AC}\\u{3C3}\\u{3B5}\\u{3C9}\\u{3BD}`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} \\u{3B5}\\u{3C0}\\u{3B9}\\u{3BB}\\u{3BF}\\u{3B3}\\u{3AE}`,\n            other: ()=>`${formatter.number(args.optionCount)} \\u{3B5}\\u{3C0}\\u{3B9}\\u{3BB}\\u{3BF}\\u{3B3}\\u{3AD}\\u{3C2} `\n        })} \\u{3B4}\\u{3B9}\\u{3B1}\\u{3B8}\\u{3AD}\\u{3C3}\\u{3B9}\\u{3BC}\\u{3B5}\\u{3C2}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`\\u{395}\\u{3B9}\\u{3C3}\\u{3B1}\\u{3B3}\\u{3BC}\\u{3AD}\\u{3BD}\\u{3B7} \\u{3BF}\\u{3BC}\\u{3AC}\\u{3B4}\\u{3B1} ${args.groupTitle}, \\u{3BC}\\u{3B5} ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} \\u{3B5}\\u{3C0}\\u{3B9}\\u{3BB}\\u{3BF}\\u{3B3}\\u{3AE}`,\n                    other: ()=>`${formatter.number(args.groupCount)} \\u{3B5}\\u{3C0}\\u{3B9}\\u{3BB}\\u{3BF}\\u{3B3}\\u{3AD}\\u{3C2}`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, \\u{3B5}\\u{3C0}\\u{3B9}\\u{3BB}\\u{3B5}\\u{3B3}\\u{3BC}\\u{3AD}\\u{3BD}\\u{3BF}`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `\\u{3A0}\\u{3C1}\\u{3BF}\\u{3C4}\\u{3AC}\\u{3C3}\\u{3B5}\\u{3B9}\\u{3C2}`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{3B5}\\u{3C0}\\u{3B9}\\u{3BB}\\u{3AD}\\u{3C7}\\u{3B8}\\u{3B7}\\u{3BA}\\u{3B5}`\n};\n\n\nexport {$ca177778f9a74e3c$exports as default};\n//# sourceMappingURL=el-GR.module.js.map\n","var $9b5aa79ef84beb6c$exports = {};\n$9b5aa79ef84beb6c$exports = {\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Entered group ${args.groupTitle}, with ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} option`,\n                    other: ()=>`${formatter.number(args.groupCount)} options`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, selected`,\n            other: ``\n        }, args.isSelected)}`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} option`,\n            other: ()=>`${formatter.number(args.optionCount)} options`\n        })} available.`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, selected`,\n    \"buttonLabel\": `Show suggestions`,\n    \"listboxLabel\": `Suggestions`\n};\n\n\nexport {$9b5aa79ef84beb6c$exports as default};\n//# sourceMappingURL=en-US.module.js.map\n","var $57968e8209de2557$exports = {};\n$57968e8209de2557$exports = {\n    \"buttonLabel\": `Mostrar sugerencias`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} opci\\xf3n`,\n            other: ()=>`${formatter.number(args.optionCount)} opciones`\n        })} disponible(s).`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Se ha unido al grupo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} opci\\xf3n`,\n                    other: ()=>`${formatter.number(args.groupCount)} opciones`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, seleccionado`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Sugerencias`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, seleccionado`\n};\n\n\nexport {$57968e8209de2557$exports as default};\n//# sourceMappingURL=es-ES.module.js.map\n","var $60690790bf4c1c6a$exports = {};\n$60690790bf4c1c6a$exports = {\n    \"buttonLabel\": `Kuva soovitused`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} valik`,\n            other: ()=>`${formatter.number(args.optionCount)} valikud`\n        })} saadaval.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Sisestatud r\\xfchm ${args.groupTitle}, valikuga ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} valik`,\n                    other: ()=>`${formatter.number(args.groupCount)} valikud`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, valitud`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Soovitused`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, valitud`\n};\n\n\nexport {$60690790bf4c1c6a$exports as default};\n//# sourceMappingURL=et-EE.module.js.map\n","var $1101246e8c7d9357$exports = {};\n$1101246e8c7d9357$exports = {\n    \"buttonLabel\": `N\\xe4yt\\xe4 ehdotukset`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} vaihtoehto`,\n            other: ()=>`${formatter.number(args.optionCount)} vaihtoehdot`\n        })} saatavilla.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Mentiin ryhm\\xe4\\xe4n ${args.groupTitle}, ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} vaihtoehdon`,\n                    other: ()=>`${formatter.number(args.groupCount)} vaihtoehdon`\n                })} kanssa.`,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, valittu`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Ehdotukset`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, valittu`\n};\n\n\nexport {$1101246e8c7d9357$exports as default};\n//# sourceMappingURL=fi-FI.module.js.map\n","var $6404b5cb5b241730$exports = {};\n$6404b5cb5b241730$exports = {\n    \"buttonLabel\": `Afficher les suggestions`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} option`,\n            other: ()=>`${formatter.number(args.optionCount)} options`\n        })} disponible(s).`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Groupe ${args.groupTitle} rejoint, avec ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} option`,\n                    other: ()=>`${formatter.number(args.groupCount)} options`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, s\\xe9lectionn\\xe9(s)`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Suggestions`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, s\\xe9lectionn\\xe9`\n};\n\n\nexport {$6404b5cb5b241730$exports as default};\n//# sourceMappingURL=fr-FR.module.js.map\n","var $dfeafa702e92e31f$exports = {};\n$dfeafa702e92e31f$exports = {\n    \"buttonLabel\": `\\u{5D4}\\u{5E6}\\u{5D2} \\u{5D4}\\u{5E6}\\u{5E2}\\u{5D5}\\u{5EA}`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`\\u{5D0}\\u{5E4}\\u{5E9}\\u{5E8}\\u{5D5}\\u{5EA} ${formatter.number(args.optionCount)}`,\n            other: ()=>`${formatter.number(args.optionCount)} \\u{5D0}\\u{5E4}\\u{5E9}\\u{5E8}\\u{5D5}\\u{5D9}\\u{5D5}\\u{5EA}`\n        })} \\u{5D1}\\u{5DE}\\u{5E6}\\u{5D1} \\u{5D6}\\u{5DE}\\u{5D9}\\u{5DF}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`\\u{5E0}\\u{5DB}\\u{5E0}\\u{5E1} \\u{5DC}\\u{5E7}\\u{5D1}\\u{5D5}\\u{5E6}\\u{5D4} ${args.groupTitle}, \\u{5E2}\\u{5DD} ${formatter.plural(args.groupCount, {\n                    one: ()=>`\\u{5D0}\\u{5E4}\\u{5E9}\\u{5E8}\\u{5D5}\\u{5EA} ${formatter.number(args.groupCount)}`,\n                    other: ()=>`${formatter.number(args.groupCount)} \\u{5D0}\\u{5E4}\\u{5E9}\\u{5E8}\\u{5D5}\\u{5D9}\\u{5D5}\\u{5EA}`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, \\u{5E0}\\u{5D1}\\u{5D7}\\u{5E8}`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `\\u{5D4}\\u{5E6}\\u{5E2}\\u{5D5}\\u{5EA}`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{5E0}\\u{5D1}\\u{5D7}\\u{5E8}`\n};\n\n\nexport {$dfeafa702e92e31f$exports as default};\n//# sourceMappingURL=he-IL.module.js.map\n","var $2d125e0b34676352$exports = {};\n$2d125e0b34676352$exports = {\n    \"buttonLabel\": `Prika\\u{17E}i prijedloge`,\n    \"countAnnouncement\": (args, formatter)=>`Dostupno jo\\u{161}: ${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} opcija`,\n            other: ()=>`${formatter.number(args.optionCount)} opcije/a`\n        })}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Unesena skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} opcijom`,\n                    other: ()=>`${formatter.number(args.groupCount)} opcije/a`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, odabranih`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Prijedlozi`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, odabrano`\n};\n\n\nexport {$2d125e0b34676352$exports as default};\n//# sourceMappingURL=hr-HR.module.js.map\n","var $ea029611d7634059$exports = {};\n$ea029611d7634059$exports = {\n    \"buttonLabel\": `Javaslatok megjelen\\xedt\\xe9se`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} lehet\\u{151}s\\xe9g`,\n            other: ()=>`${formatter.number(args.optionCount)} lehet\\u{151}s\\xe9g`\n        })} \\xe1ll rendelkez\\xe9sre.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Bel\\xe9pett a(z) ${args.groupTitle} csoportba, amely ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} lehet\\u{151}s\\xe9get`,\n                    other: ()=>`${formatter.number(args.groupCount)} lehet\\u{151}s\\xe9get`\n                })} tartalmaz. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, kijel\\xf6lve`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Javaslatok`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, kijel\\xf6lve`\n};\n\n\nexport {$ea029611d7634059$exports as default};\n//# sourceMappingURL=hu-HU.module.js.map\n","var $77f075bb86ad7091$exports = {};\n$77f075bb86ad7091$exports = {\n    \"buttonLabel\": `Mostra suggerimenti`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} opzione disponibile`,\n            other: ()=>`${formatter.number(args.optionCount)} opzioni disponibili`\n        })}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Ingresso nel gruppo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} opzione`,\n                    other: ()=>`${formatter.number(args.groupCount)} opzioni`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, selezionato`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Suggerimenti`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, selezionato`\n};\n\n\nexport {$77f075bb86ad7091$exports as default};\n//# sourceMappingURL=it-IT.module.js.map\n","var $6e87462e84907983$exports = {};\n$6e87462e84907983$exports = {\n    \"buttonLabel\": `\\u{5019}\\u{88DC}\\u{3092}\\u{8868}\\u{793A}`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} \\u{500B}\\u{306E}\\u{30AA}\\u{30D7}\\u{30B7}\\u{30E7}\\u{30F3}`,\n            other: ()=>`${formatter.number(args.optionCount)} \\u{500B}\\u{306E}\\u{30AA}\\u{30D7}\\u{30B7}\\u{30E7}\\u{30F3}`\n        })}\\u{3092}\\u{5229}\\u{7528}\\u{3067}\\u{304D}\\u{307E}\\u{3059}\\u{3002}`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`\\u{5165}\\u{529B}\\u{3055}\\u{308C}\\u{305F}\\u{30B0}\\u{30EB}\\u{30FC}\\u{30D7} ${args.groupTitle}\\u{3001}${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} \\u{500B}\\u{306E}\\u{30AA}\\u{30D7}\\u{30B7}\\u{30E7}\\u{30F3}`,\n                    other: ()=>`${formatter.number(args.groupCount)} \\u{500B}\\u{306E}\\u{30AA}\\u{30D7}\\u{30B7}\\u{30E7}\\u{30F3}`\n                })}\\u{3092}\\u{542B}\\u{3080}\\u{3002}`,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `\\u{3001}\\u{9078}\\u{629E}\\u{6E08}\\u{307F}`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `\\u{5019}\\u{88DC}`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}\\u{3001}\\u{9078}\\u{629E}\\u{6E08}\\u{307F}`\n};\n\n\nexport {$6e87462e84907983$exports as default};\n//# sourceMappingURL=ja-JP.module.js.map\n","var $9246f2c6edc6b232$exports = {};\n$9246f2c6edc6b232$exports = {\n    \"buttonLabel\": `\\u{C81C}\\u{C548} \\u{C0AC}\\u{D56D} \\u{D45C}\\u{C2DC}`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)}\\u{AC1C} \\u{C635}\\u{C158}`,\n            other: ()=>`${formatter.number(args.optionCount)}\\u{AC1C} \\u{C635}\\u{C158}`\n        })}\\u{C744} \\u{C0AC}\\u{C6A9}\\u{D560} \\u{C218} \\u{C788}\\u{C2B5}\\u{B2C8}\\u{B2E4}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`\\u{C785}\\u{B825}\\u{D55C} \\u{ADF8}\\u{B8F9} ${args.groupTitle}, ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)}\\u{AC1C} \\u{C635}\\u{C158}`,\n                    other: ()=>`${formatter.number(args.groupCount)}\\u{AC1C} \\u{C635}\\u{C158}`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, \\u{C120}\\u{D0DD}\\u{B428}`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `\\u{C81C}\\u{C548}`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{C120}\\u{D0DD}\\u{B428}`\n};\n\n\nexport {$9246f2c6edc6b232$exports as default};\n//# sourceMappingURL=ko-KR.module.js.map\n","var $e587accc6c0a434c$exports = {};\n$e587accc6c0a434c$exports = {\n    \"buttonLabel\": `Rodyti pasi\\u{16B}lymus`,\n    \"countAnnouncement\": (args, formatter)=>`Yra ${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} parinktis`,\n            other: ()=>`${formatter.number(args.optionCount)} parinktys (-i\\u{173})`\n        })}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`\\u{12E}vesta grup\\u{117} ${args.groupTitle}, su ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} parinktimi`,\n                    other: ()=>`${formatter.number(args.groupCount)} parinktimis (-i\\u{173})`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, pasirinkta`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Pasi\\u{16B}lymai`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, pasirinkta`\n};\n\n\nexport {$e587accc6c0a434c$exports as default};\n//# sourceMappingURL=lt-LT.module.js.map\n","var $03a1900e7400b5ab$exports = {};\n$03a1900e7400b5ab$exports = {\n    \"buttonLabel\": `R\\u{101}d\\u{12B}t ieteikumus`,\n    \"countAnnouncement\": (args, formatter)=>`Pieejamo opciju skaits: ${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} opcija`,\n            other: ()=>`${formatter.number(args.optionCount)} opcijas`\n        })}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Ievad\\u{12B}ta grupa ${args.groupTitle}, ar ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} opciju`,\n                    other: ()=>`${formatter.number(args.groupCount)} opcij\\u{101}m`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, atlas\\u{12B}ta`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Ieteikumi`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, atlas\\u{12B}ta`\n};\n\n\nexport {$03a1900e7400b5ab$exports as default};\n//# sourceMappingURL=lv-LV.module.js.map\n","var $1387676441be6cf6$exports = {};\n$1387676441be6cf6$exports = {\n    \"buttonLabel\": `Vis forslag`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} alternativ`,\n            other: ()=>`${formatter.number(args.optionCount)} alternativer`\n        })} finnes.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Angitt gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} alternativ`,\n                    other: ()=>`${formatter.number(args.groupCount)} alternativer`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, valgt`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Forslag`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, valgt`\n};\n\n\nexport {$1387676441be6cf6$exports as default};\n//# sourceMappingURL=nb-NO.module.js.map\n","var $17e82ebf0f8ab91f$exports = {};\n$17e82ebf0f8ab91f$exports = {\n    \"buttonLabel\": `Suggesties weergeven`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} optie`,\n            other: ()=>`${formatter.number(args.optionCount)} opties`\n        })} beschikbaar.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Groep ${args.groupTitle} ingevoerd met ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} optie`,\n                    other: ()=>`${formatter.number(args.groupCount)} opties`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, geselecteerd`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Suggesties`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, geselecteerd`\n};\n\n\nexport {$17e82ebf0f8ab91f$exports as default};\n//# sourceMappingURL=nl-NL.module.js.map\n","var $2f5377d3471630e5$exports = {};\n$2f5377d3471630e5$exports = {\n    \"buttonLabel\": `Wy\\u{15B}wietlaj sugestie`,\n    \"countAnnouncement\": (args, formatter)=>`dost\\u{119}pna/dost\\u{119}pne(-nych) ${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} opcja`,\n            other: ()=>`${formatter.number(args.optionCount)} opcje(-i)`\n        })}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Do\\u{142}\\u{105}czono do grupy ${args.groupTitle}, z ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} opcj\\u{105}`,\n                    other: ()=>`${formatter.number(args.groupCount)} opcjami`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, wybrano`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Sugestie`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, wybrano`\n};\n\n\nexport {$2f5377d3471630e5$exports as default};\n//# sourceMappingURL=pl-PL.module.js.map\n","var $dee9868b6fa95ffe$exports = {};\n$dee9868b6fa95ffe$exports = {\n    \"buttonLabel\": `Mostrar sugest\\xf5es`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} op\\xe7\\xe3o`,\n            other: ()=>`${formatter.number(args.optionCount)} op\\xe7\\xf5es`\n        })} dispon\\xedvel.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Grupo inserido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} op\\xe7\\xe3o`,\n                    other: ()=>`${formatter.number(args.groupCount)} op\\xe7\\xf5es`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, selecionado`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Sugest\\xf5es`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, selecionado`\n};\n\n\nexport {$dee9868b6fa95ffe$exports as default};\n//# sourceMappingURL=pt-BR.module.js.map\n","var $f8b2e63637cbb5a6$exports = {};\n$f8b2e63637cbb5a6$exports = {\n    \"buttonLabel\": `Apresentar sugest\\xf5es`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} op\\xe7\\xe3o`,\n            other: ()=>`${formatter.number(args.optionCount)} op\\xe7\\xf5es`\n        })} dispon\\xedvel.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Grupo introduzido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} op\\xe7\\xe3o`,\n                    other: ()=>`${formatter.number(args.groupCount)} op\\xe7\\xf5es`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, selecionado`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Sugest\\xf5es`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, selecionado`\n};\n\n\nexport {$f8b2e63637cbb5a6$exports as default};\n//# sourceMappingURL=pt-PT.module.js.map\n","var $46a885db3b44ea95$exports = {};\n$46a885db3b44ea95$exports = {\n    \"buttonLabel\": `Afi\\u{219}are sugestii`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} op\\u{21B}iune`,\n            other: ()=>`${formatter.number(args.optionCount)} op\\u{21B}iuni`\n        })} disponibile.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Grup ${args.groupTitle} introdus, cu ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} op\\u{21B}iune`,\n                    other: ()=>`${formatter.number(args.groupCount)} op\\u{21B}iuni`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, selectat`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Sugestii`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, selectat`\n};\n\n\nexport {$46a885db3b44ea95$exports as default};\n//# sourceMappingURL=ro-RO.module.js.map\n","var $50d8a8f0afa9dee5$exports = {};\n$50d8a8f0afa9dee5$exports = {\n    \"buttonLabel\": `\\u{41F}\\u{43E}\\u{43A}\\u{430}\\u{437}\\u{430}\\u{442}\\u{44C} \\u{43F}\\u{440}\\u{435}\\u{434}\\u{43B}\\u{43E}\\u{436}\\u{435}\\u{43D}\\u{438}\\u{44F}`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}`,\n            other: ()=>`${formatter.number(args.optionCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}\\u{43E}\\u{432}`\n        })} \\u{434}\\u{43E}\\u{441}\\u{442}\\u{443}\\u{43F}\\u{43D}\\u{43E}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`\\u{412}\\u{432}\\u{435}\\u{434}\\u{435}\\u{43D}\\u{43D}\\u{430}\\u{44F} \\u{433}\\u{440}\\u{443}\\u{43F}\\u{43F}\\u{430} ${args.groupTitle}, \\u{441} ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}\\u{43E}\\u{43C}`,\n                    other: ()=>`${formatter.number(args.groupCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}\\u{430}\\u{43C}\\u{438}`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, \\u{432}\\u{44B}\\u{431}\\u{440}\\u{430}\\u{43D}\\u{43D}\\u{44B}\\u{43C}\\u{438}`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `\\u{41F}\\u{440}\\u{435}\\u{434}\\u{43B}\\u{43E}\\u{436}\\u{435}\\u{43D}\\u{438}\\u{44F}`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{432}\\u{44B}\\u{431}\\u{440}\\u{430}\\u{43D}\\u{43E}`\n};\n\n\nexport {$50d8a8f0afa9dee5$exports as default};\n//# sourceMappingURL=ru-RU.module.js.map\n","var $2867ee6173245507$exports = {};\n$2867ee6173245507$exports = {\n    \"buttonLabel\": `Zobrazi\\u{165} n\\xe1vrhy`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} mo\\u{17E}nos\\u{165}`,\n            other: ()=>`${formatter.number(args.optionCount)} mo\\u{17E}nosti/-\\xed`\n        })} k dispoz\\xedcii.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Zadan\\xe1 skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} mo\\u{17E}nos\\u{165}ou`,\n                    other: ()=>`${formatter.number(args.groupCount)} mo\\u{17E}nos\\u{165}ami`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, vybrat\\xe9`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `N\\xe1vrhy`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, vybrat\\xe9`\n};\n\n\nexport {$2867ee6173245507$exports as default};\n//# sourceMappingURL=sk-SK.module.js.map\n","var $0631b65beeb09b50$exports = {};\n$0631b65beeb09b50$exports = {\n    \"buttonLabel\": `Prika\\u{17E}i predloge`,\n    \"countAnnouncement\": (args, formatter)=>`Na voljo je ${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} opcija`,\n            other: ()=>`${formatter.number(args.optionCount)} opcije`\n        })}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Vnesena skupina ${args.groupTitle}, z ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} opcija`,\n                    other: ()=>`${formatter.number(args.groupCount)} opcije`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, izbrano`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Predlogi`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, izbrano`\n};\n\n\nexport {$0631b65beeb09b50$exports as default};\n//# sourceMappingURL=sl-SI.module.js.map\n","var $65fc749265dcd686$exports = {};\n$65fc749265dcd686$exports = {\n    \"buttonLabel\": `Prika\\u{17E}i predloge`,\n    \"countAnnouncement\": (args, formatter)=>`Dostupno jo\\u{161}: ${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} opcija`,\n            other: ()=>`${formatter.number(args.optionCount)} opcije/a`\n        })}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Unesena grupa ${args.groupTitle}, s ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} opcijom`,\n                    other: ()=>`${formatter.number(args.groupCount)} optione/a`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, izabranih`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `Predlozi`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, izabrano`\n};\n\n\nexport {$65fc749265dcd686$exports as default};\n//# sourceMappingURL=sr-SP.module.js.map\n","var $69ba655c7853c08e$exports = {};\n$69ba655c7853c08e$exports = {\n    \"buttonLabel\": `Visa f\\xf6rslag`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} alternativ`,\n            other: ()=>`${formatter.number(args.optionCount)} alternativ`\n        })} tillg\\xe4ngliga.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Ingick i gruppen ${args.groupTitle} med ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} alternativ`,\n                    other: ()=>`${formatter.number(args.groupCount)} alternativ`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, valda`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `F\\xf6rslag`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, valda`\n};\n\n\nexport {$69ba655c7853c08e$exports as default};\n//# sourceMappingURL=sv-SE.module.js.map\n","var $a79794784d61577c$exports = {};\n$a79794784d61577c$exports = {\n    \"buttonLabel\": `\\xd6nerileri g\\xf6ster`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} se\\xe7enek`,\n            other: ()=>`${formatter.number(args.optionCount)} se\\xe7enekler`\n        })} kullan\\u{131}labilir.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`Girilen grup ${args.groupTitle}, ile ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} se\\xe7enek`,\n                    other: ()=>`${formatter.number(args.groupCount)} se\\xe7enekler`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, se\\xe7ildi`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `\\xd6neriler`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, se\\xe7ildi`\n};\n\n\nexport {$a79794784d61577c$exports as default};\n//# sourceMappingURL=tr-TR.module.js.map\n","var $c2845791417ebaf4$exports = {};\n$c2845791417ebaf4$exports = {\n    \"buttonLabel\": `\\u{41F}\\u{43E}\\u{43A}\\u{430}\\u{437}\\u{430}\\u{442}\\u{438} \\u{43F}\\u{440}\\u{43E}\\u{43F}\\u{43E}\\u{437}\\u{438}\\u{446}\\u{456}\\u{457}`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}`,\n            other: ()=>`${formatter.number(args.optionCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}\\u{438}(-\\u{456}\\u{432})`\n        })} \\u{434}\\u{43E}\\u{441}\\u{442}\\u{443}\\u{43F}\\u{43D}\\u{43E}.`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`\\u{412}\\u{432}\\u{435}\\u{434}\\u{435}\\u{43D}\\u{430} \\u{433}\\u{440}\\u{443}\\u{43F}\\u{430} ${args.groupTitle}, \\u{437} ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}`,\n                    other: ()=>`${formatter.number(args.groupCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}\\u{438}(-\\u{456}\\u{432})`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, \\u{432}\\u{438}\\u{431}\\u{440}\\u{430}\\u{43D}\\u{43E}`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `\\u{41F}\\u{440}\\u{43E}\\u{43F}\\u{43E}\\u{437}\\u{438}\\u{446}\\u{456}\\u{457}`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{432}\\u{438}\\u{431}\\u{440}\\u{430}\\u{43D}\\u{43E}`\n};\n\n\nexport {$c2845791417ebaf4$exports as default};\n//# sourceMappingURL=uk-UA.module.js.map\n","var $29b642d0025cc7a4$exports = {};\n$29b642d0025cc7a4$exports = {\n    \"buttonLabel\": `\\u{663E}\\u{793A}\\u{5EFA}\\u{8BAE}`,\n    \"countAnnouncement\": (args, formatter)=>`\\u{6709} ${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} \\u{4E2A}\\u{9009}\\u{9879}`,\n            other: ()=>`${formatter.number(args.optionCount)} \\u{4E2A}\\u{9009}\\u{9879}`\n        })}\\u{53EF}\\u{7528}\\u{3002}`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`\\u{8FDB}\\u{5165}\\u{4E86} ${args.groupTitle} \\u{7EC4}\\u{FF0C}\\u{5176}\\u{4E2D}\\u{6709} ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} \\u{4E2A}\\u{9009}\\u{9879}`,\n                    other: ()=>`${formatter.number(args.groupCount)} \\u{4E2A}\\u{9009}\\u{9879}`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, \\u{5DF2}\\u{9009}\\u{62E9}`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `\\u{5EFA}\\u{8BAE}`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{5DF2}\\u{9009}\\u{62E9}`\n};\n\n\nexport {$29b642d0025cc7a4$exports as default};\n//# sourceMappingURL=zh-CN.module.js.map\n","var $cd36dd33f9d46936$exports = {};\n$cd36dd33f9d46936$exports = {\n    \"buttonLabel\": `\\u{986F}\\u{793A}\\u{5EFA}\\u{8B70}`,\n    \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n            one: ()=>`${formatter.number(args.optionCount)} \\u{9078}\\u{9805}`,\n            other: ()=>`${formatter.number(args.optionCount)} \\u{9078}\\u{9805}`\n        })} \\u{53EF}\\u{7528}\\u{3002}`,\n    \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n            true: ()=>`\\u{8F38}\\u{5165}\\u{7684}\\u{7FA4}\\u{7D44} ${args.groupTitle}, \\u{6709} ${formatter.plural(args.groupCount, {\n                    one: ()=>`${formatter.number(args.groupCount)} \\u{9078}\\u{9805}`,\n                    other: ()=>`${formatter.number(args.groupCount)} \\u{9078}\\u{9805}`\n                })}. `,\n            other: ``\n        }, args.isGroupChange)}${args.optionText}${formatter.select({\n            true: `, \\u{5DF2}\\u{9078}\\u{53D6}`,\n            other: ``\n        }, args.isSelected)}`,\n    \"listboxLabel\": `\\u{5EFA}\\u{8B70}`,\n    \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{5DF2}\\u{9078}\\u{53D6}`\n};\n\n\nexport {$cd36dd33f9d46936$exports as default};\n//# sourceMappingURL=zh-TW.module.js.map\n","import $hlgbr$arAEmodulejs from \"./ar-AE.mjs\";\nimport $hlgbr$bgBGmodulejs from \"./bg-BG.mjs\";\nimport $hlgbr$csCZmodulejs from \"./cs-CZ.mjs\";\nimport $hlgbr$daDKmodulejs from \"./da-DK.mjs\";\nimport $hlgbr$deDEmodulejs from \"./de-DE.mjs\";\nimport $hlgbr$elGRmodulejs from \"./el-GR.mjs\";\nimport $hlgbr$enUSmodulejs from \"./en-US.mjs\";\nimport $hlgbr$esESmodulejs from \"./es-ES.mjs\";\nimport $hlgbr$etEEmodulejs from \"./et-EE.mjs\";\nimport $hlgbr$fiFImodulejs from \"./fi-FI.mjs\";\nimport $hlgbr$frFRmodulejs from \"./fr-FR.mjs\";\nimport $hlgbr$heILmodulejs from \"./he-IL.mjs\";\nimport $hlgbr$hrHRmodulejs from \"./hr-HR.mjs\";\nimport $hlgbr$huHUmodulejs from \"./hu-HU.mjs\";\nimport $hlgbr$itITmodulejs from \"./it-IT.mjs\";\nimport $hlgbr$jaJPmodulejs from \"./ja-JP.mjs\";\nimport $hlgbr$koKRmodulejs from \"./ko-KR.mjs\";\nimport $hlgbr$ltLTmodulejs from \"./lt-LT.mjs\";\nimport $hlgbr$lvLVmodulejs from \"./lv-LV.mjs\";\nimport $hlgbr$nbNOmodulejs from \"./nb-NO.mjs\";\nimport $hlgbr$nlNLmodulejs from \"./nl-NL.mjs\";\nimport $hlgbr$plPLmodulejs from \"./pl-PL.mjs\";\nimport $hlgbr$ptBRmodulejs from \"./pt-BR.mjs\";\nimport $hlgbr$ptPTmodulejs from \"./pt-PT.mjs\";\nimport $hlgbr$roROmodulejs from \"./ro-RO.mjs\";\nimport $hlgbr$ruRUmodulejs from \"./ru-RU.mjs\";\nimport $hlgbr$skSKmodulejs from \"./sk-SK.mjs\";\nimport $hlgbr$slSImodulejs from \"./sl-SI.mjs\";\nimport $hlgbr$srSPmodulejs from \"./sr-SP.mjs\";\nimport $hlgbr$svSEmodulejs from \"./sv-SE.mjs\";\nimport $hlgbr$trTRmodulejs from \"./tr-TR.mjs\";\nimport $hlgbr$ukUAmodulejs from \"./uk-UA.mjs\";\nimport $hlgbr$zhCNmodulejs from \"./zh-CN.mjs\";\nimport $hlgbr$zhTWmodulejs from \"./zh-TW.mjs\";\n\nvar $de5926a92e8ebc5b$exports = {};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n$de5926a92e8ebc5b$exports = {\n    \"ar-AE\": $hlgbr$arAEmodulejs,\n    \"bg-BG\": $hlgbr$bgBGmodulejs,\n    \"cs-CZ\": $hlgbr$csCZmodulejs,\n    \"da-DK\": $hlgbr$daDKmodulejs,\n    \"de-DE\": $hlgbr$deDEmodulejs,\n    \"el-GR\": $hlgbr$elGRmodulejs,\n    \"en-US\": $hlgbr$enUSmodulejs,\n    \"es-ES\": $hlgbr$esESmodulejs,\n    \"et-EE\": $hlgbr$etEEmodulejs,\n    \"fi-FI\": $hlgbr$fiFImodulejs,\n    \"fr-FR\": $hlgbr$frFRmodulejs,\n    \"he-IL\": $hlgbr$heILmodulejs,\n    \"hr-HR\": $hlgbr$hrHRmodulejs,\n    \"hu-HU\": $hlgbr$huHUmodulejs,\n    \"it-IT\": $hlgbr$itITmodulejs,\n    \"ja-JP\": $hlgbr$jaJPmodulejs,\n    \"ko-KR\": $hlgbr$koKRmodulejs,\n    \"lt-LT\": $hlgbr$ltLTmodulejs,\n    \"lv-LV\": $hlgbr$lvLVmodulejs,\n    \"nb-NO\": $hlgbr$nbNOmodulejs,\n    \"nl-NL\": $hlgbr$nlNLmodulejs,\n    \"pl-PL\": $hlgbr$plPLmodulejs,\n    \"pt-BR\": $hlgbr$ptBRmodulejs,\n    \"pt-PT\": $hlgbr$ptPTmodulejs,\n    \"ro-RO\": $hlgbr$roROmodulejs,\n    \"ru-RU\": $hlgbr$ruRUmodulejs,\n    \"sk-SK\": $hlgbr$skSKmodulejs,\n    \"sl-SI\": $hlgbr$slSImodulejs,\n    \"sr-SP\": $hlgbr$srSPmodulejs,\n    \"sv-SE\": $hlgbr$svSEmodulejs,\n    \"tr-TR\": $hlgbr$trTRmodulejs,\n    \"uk-UA\": $hlgbr$ukUAmodulejs,\n    \"zh-CN\": $hlgbr$zhCNmodulejs,\n    \"zh-TW\": $hlgbr$zhTWmodulejs\n};\n\n\nexport {$de5926a92e8ebc5b$exports as default};\n//# sourceMappingURL=intlStrings.module.js.map\n","var $c0398ad35c3639b7$exports = {};\n$c0398ad35c3639b7$exports = {\n    \"longPressMessage\": `\\u{627}\\u{636}\\u{63A}\\u{637} \\u{645}\\u{637}\\u{648}\\u{644}\\u{627}\\u{64B} \\u{623}\\u{648} \\u{627}\\u{636}\\u{63A}\\u{637} \\u{639}\\u{644}\\u{649} Alt + \\u{627}\\u{644}\\u{633}\\u{647}\\u{645} \\u{644}\\u{623}\\u{633}\\u{641}\\u{644} \\u{644}\\u{641}\\u{62A}\\u{62D} \\u{627}\\u{644}\\u{642}\\u{627}\\u{626}\\u{645}\\u{629}`\n};\n\n\nexport {$c0398ad35c3639b7$exports as default};\n//# sourceMappingURL=ar-AE.module.js.map\n","var $7af657c4165927c3$exports = {};\n$7af657c4165927c3$exports = {\n    \"longPressMessage\": `\\u{41D}\\u{430}\\u{442}\\u{438}\\u{441}\\u{43D}\\u{435}\\u{442}\\u{435} \\u{43F}\\u{440}\\u{43E}\\u{434}\\u{44A}\\u{43B}\\u{436}\\u{438}\\u{442}\\u{435}\\u{43B}\\u{43D}\\u{43E} \\u{438}\\u{43B}\\u{438} \\u{43D}\\u{430}\\u{442}\\u{438}\\u{441}\\u{43D}\\u{435}\\u{442}\\u{435} Alt+ \\u{441}\\u{442}\\u{440}\\u{435}\\u{43B}\\u{43A}\\u{430} \\u{43D}\\u{430}\\u{434}\\u{43E}\\u{43B}\\u{443}, \\u{437}\\u{430} \\u{434}\\u{430} \\u{43E}\\u{442}\\u{432}\\u{43E}\\u{440}\\u{438}\\u{442}\\u{435} \\u{43C}\\u{435}\\u{43D}\\u{44E}\\u{442}\\u{43E}`\n};\n\n\nexport {$7af657c4165927c3$exports as default};\n//# sourceMappingURL=bg-BG.module.js.map\n","var $d95d4da6d531ab81$exports = {};\n$d95d4da6d531ab81$exports = {\n    \"longPressMessage\": `Dlouh\\xfdm stiskem nebo stisknut\\xedm kl\\xe1ves Alt + \\u{161}ipka dol\\u{16F} otev\\u{159}ete nab\\xeddku`\n};\n\n\nexport {$d95d4da6d531ab81$exports as default};\n//# sourceMappingURL=cs-CZ.module.js.map\n","var $24ebda9c775dca17$exports = {};\n$24ebda9c775dca17$exports = {\n    \"longPressMessage\": `Langt tryk eller tryk p\\xe5 Alt + pil ned for at \\xe5bne menuen`\n};\n\n\nexport {$24ebda9c775dca17$exports as default};\n//# sourceMappingURL=da-DK.module.js.map\n","var $743e0dfca6cab1e9$exports = {};\n$743e0dfca6cab1e9$exports = {\n    \"longPressMessage\": `Dr\\xfccken Sie lange oder dr\\xfccken Sie Alt + Nach-unten, um das Men\\xfc zu \\xf6ffnen`\n};\n\n\nexport {$743e0dfca6cab1e9$exports as default};\n//# sourceMappingURL=de-DE.module.js.map\n","var $a2f41026e05f1c84$exports = {};\n$a2f41026e05f1c84$exports = {\n    \"longPressMessage\": `\\u{3A0}\\u{3B9}\\u{3AD}\\u{3C3}\\u{3C4}\\u{3B5} \\u{3C0}\\u{3B1}\\u{3C1}\\u{3B1}\\u{3C4}\\u{3B5}\\u{3C4}\\u{3B1}\\u{3BC}\\u{3AD}\\u{3BD}\\u{3B1} \\u{3AE} \\u{3C0}\\u{3B1}\\u{3C4}\\u{3AE}\\u{3C3}\\u{3C4}\\u{3B5} Alt + \\u{3BA}\\u{3AC}\\u{3C4}\\u{3C9} \\u{3B2}\\u{3AD}\\u{3BB}\\u{3BF}\\u{3C2} \\u{3B3}\\u{3B9}\\u{3B1} \\u{3BD}\\u{3B1} \\u{3B1}\\u{3BD}\\u{3BF}\\u{3AF}\\u{3BE}\\u{3B5}\\u{3C4}\\u{3B5} \\u{3C4}\\u{3BF} \\u{3BC}\\u{3B5}\\u{3BD}\\u{3BF}\\u{3CD}`\n};\n\n\nexport {$a2f41026e05f1c84$exports as default};\n//# sourceMappingURL=el-GR.module.js.map\n","var $43b800e97c901737$exports = {};\n$43b800e97c901737$exports = {\n    \"longPressMessage\": `Long press or press Alt + ArrowDown to open menu`\n};\n\n\nexport {$43b800e97c901737$exports as default};\n//# sourceMappingURL=en-US.module.js.map\n","var $442f5f6ac211e29f$exports = {};\n$442f5f6ac211e29f$exports = {\n    \"longPressMessage\": `Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\\xfa`\n};\n\n\nexport {$442f5f6ac211e29f$exports as default};\n//# sourceMappingURL=es-ES.module.js.map\n","var $dff280acfeb2d8ac$exports = {};\n$dff280acfeb2d8ac$exports = {\n    \"longPressMessage\": `Men\\xfc\\xfc avamiseks vajutage pikalt v\\xf5i vajutage klahve Alt + allanool`\n};\n\n\nexport {$dff280acfeb2d8ac$exports as default};\n//# sourceMappingURL=et-EE.module.js.map\n","var $51608325613944d7$exports = {};\n$51608325613944d7$exports = {\n    \"longPressMessage\": `Avaa valikko painamalla pohjassa tai n\\xe4pp\\xe4inyhdistelm\\xe4ll\\xe4 Alt + Alanuoli`\n};\n\n\nexport {$51608325613944d7$exports as default};\n//# sourceMappingURL=fi-FI.module.js.map\n","var $c4a1b1eabeaa87be$exports = {};\n$c4a1b1eabeaa87be$exports = {\n    \"longPressMessage\": `Appuyez de mani\\xe8re prolong\\xe9e ou appuyez sur Alt\\xa0+\\xa0Fl\\xe8che vers le bas pour ouvrir le menu.`\n};\n\n\nexport {$c4a1b1eabeaa87be$exports as default};\n//# sourceMappingURL=fr-FR.module.js.map\n","var $8c74815cdee18d1b$exports = {};\n$8c74815cdee18d1b$exports = {\n    \"longPressMessage\": `\\u{5DC}\\u{5D7}\\u{5E5} \\u{5DC}\\u{5D7}\\u{5D9}\\u{5E6}\\u{5D4} \\u{5D0}\\u{5E8}\\u{5D5}\\u{5DB}\\u{5D4} \\u{5D0}\\u{5D5} \\u{5D4}\\u{5E7}\\u{5E9} Alt + ArrowDown \\u{5DB}\\u{5D3}\\u{5D9} \\u{5DC}\\u{5E4}\\u{5EA}\\u{5D5}\\u{5D7} \\u{5D0}\\u{5EA} \\u{5D4}\\u{5EA}\\u{5E4}\\u{5E8}\\u{5D9}\\u{5D8}`\n};\n\n\nexport {$8c74815cdee18d1b$exports as default};\n//# sourceMappingURL=he-IL.module.js.map\n","var $fd0e9ef6a7fe0ec9$exports = {};\n$fd0e9ef6a7fe0ec9$exports = {\n    \"longPressMessage\": `Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`\n};\n\n\nexport {$fd0e9ef6a7fe0ec9$exports as default};\n//# sourceMappingURL=hr-HR.module.js.map\n","var $a89a74a39eba465a$exports = {};\n$a89a74a39eba465a$exports = {\n    \"longPressMessage\": `Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\\xedl gombot a men\\xfc megnyit\\xe1s\\xe1hoz`\n};\n\n\nexport {$a89a74a39eba465a$exports as default};\n//# sourceMappingURL=hu-HU.module.js.map\n","var $edc7c66594a0ae8a$exports = {};\n$edc7c66594a0ae8a$exports = {\n    \"longPressMessage\": `Premere a lungo o premere Alt + Freccia gi\\xf9 per aprire il menu`\n};\n\n\nexport {$edc7c66594a0ae8a$exports as default};\n//# sourceMappingURL=it-IT.module.js.map\n","var $f1ab51510712db52$exports = {};\n$f1ab51510712db52$exports = {\n    \"longPressMessage\": `\\u{9577}\\u{62BC}\\u{3057}\\u{307E}\\u{305F}\\u{306F} Alt+\\u{4E0B}\\u{77E2}\\u{5370}\\u{30AD}\\u{30FC}\\u{3067}\\u{30E1}\\u{30CB}\\u{30E5}\\u{30FC}\\u{3092}\\u{958B}\\u{304F}`\n};\n\n\nexport {$f1ab51510712db52$exports as default};\n//# sourceMappingURL=ja-JP.module.js.map\n","var $f9b672d9b82fa3d6$exports = {};\n$f9b672d9b82fa3d6$exports = {\n    \"longPressMessage\": `\\u{AE38}\\u{AC8C} \\u{B204}\\u{B974}\\u{AC70}\\u{B098} Alt + \\u{C544}\\u{B798}\\u{CABD} \\u{D654}\\u{C0B4}\\u{D45C}\\u{B97C} \\u{B20C}\\u{B7EC} \\u{BA54}\\u{B274} \\u{C5F4}\\u{AE30}`\n};\n\n\nexport {$f9b672d9b82fa3d6$exports as default};\n//# sourceMappingURL=ko-KR.module.js.map\n","var $a385f3910feda499$exports = {};\n$a385f3910feda499$exports = {\n    \"longPressMessage\": `Nor\\u{117}dami atidaryti meniu, nuspaud\\u{119} palaikykite arba paspauskite \\u{201E}Alt + ArrowDown\\u{201C}.`\n};\n\n\nexport {$a385f3910feda499$exports as default};\n//# sourceMappingURL=lt-LT.module.js.map\n","var $4f1bde932c441789$exports = {};\n$4f1bde932c441789$exports = {\n    \"longPressMessage\": `Lai atv\\u{113}rtu izv\\u{113}lni, turiet nospiestu vai nospiediet tausti\\u{146}u kombin\\u{101}ciju Alt + lejupv\\u{113}rst\\u{101} bulti\\u{146}a`\n};\n\n\nexport {$4f1bde932c441789$exports as default};\n//# sourceMappingURL=lv-LV.module.js.map\n","var $914a51a8a594d5be$exports = {};\n$914a51a8a594d5be$exports = {\n    \"longPressMessage\": `Langt trykk eller trykk Alt + PilNed for \\xe5 \\xe5pne menyen`\n};\n\n\nexport {$914a51a8a594d5be$exports as default};\n//# sourceMappingURL=nb-NO.module.js.map\n","var $89aaf803103bb500$exports = {};\n$89aaf803103bb500$exports = {\n    \"longPressMessage\": `Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`\n};\n\n\nexport {$89aaf803103bb500$exports as default};\n//# sourceMappingURL=nl-NL.module.js.map\n","var $c685891476dbaaca$exports = {};\n$c685891476dbaaca$exports = {\n    \"longPressMessage\": `Naci\\u{15B}nij i przytrzymaj lub naci\\u{15B}nij klawisze Alt + Strza\\u{142}ka w d\\xf3\\u{142}, aby otworzy\\u{107} menu`\n};\n\n\nexport {$c685891476dbaaca$exports as default};\n//# sourceMappingURL=pl-PL.module.js.map\n","var $885879b9b10c2959$exports = {};\n$885879b9b10c2959$exports = {\n    \"longPressMessage\": `Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`\n};\n\n\nexport {$885879b9b10c2959$exports as default};\n//# sourceMappingURL=pt-BR.module.js.map\n","var $6b39616688a51692$exports = {};\n$6b39616688a51692$exports = {\n    \"longPressMessage\": `Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`\n};\n\n\nexport {$6b39616688a51692$exports as default};\n//# sourceMappingURL=pt-PT.module.js.map\n","var $f26362aed63f47e2$exports = {};\n$f26362aed63f47e2$exports = {\n    \"longPressMessage\": `Ap\\u{103}sa\\u{21B}i lung sau ap\\u{103}sa\\u{21B}i pe Alt + s\\u{103}geat\\u{103} \\xeen jos pentru a deschide meniul`\n};\n\n\nexport {$f26362aed63f47e2$exports as default};\n//# sourceMappingURL=ro-RO.module.js.map\n","var $06cbade644558bf0$exports = {};\n$06cbade644558bf0$exports = {\n    \"longPressMessage\": `\\u{41D}\\u{430}\\u{436}\\u{43C}\\u{438}\\u{442}\\u{435} \\u{438} \\u{443}\\u{434}\\u{435}\\u{440}\\u{436}\\u{438}\\u{432}\\u{430}\\u{439}\\u{442}\\u{435} \\u{438}\\u{43B}\\u{438} \\u{43D}\\u{430}\\u{436}\\u{43C}\\u{438}\\u{442}\\u{435} Alt + \\u{421}\\u{442}\\u{440}\\u{435}\\u{43B}\\u{43A}\\u{430} \\u{432}\\u{43D}\\u{438}\\u{437}, \\u{447}\\u{442}\\u{43E}\\u{431}\\u{44B} \\u{43E}\\u{442}\\u{43A}\\u{440}\\u{44B}\\u{442}\\u{44C} \\u{43C}\\u{435}\\u{43D}\\u{44E}`\n};\n\n\nexport {$06cbade644558bf0$exports as default};\n//# sourceMappingURL=ru-RU.module.js.map\n","var $0a391ff68f9d59b1$exports = {};\n$0a391ff68f9d59b1$exports = {\n    \"longPressMessage\": `Ponuku otvor\\xedte dlh\\xfdm stla\\u{10D}en\\xedm alebo stla\\u{10D}en\\xedm kl\\xe1vesu Alt + kl\\xe1vesu so \\u{161}\\xedpkou nadol`\n};\n\n\nexport {$0a391ff68f9d59b1$exports as default};\n//# sourceMappingURL=sk-SK.module.js.map\n","var $8193cf0e649c7928$exports = {};\n$8193cf0e649c7928$exports = {\n    \"longPressMessage\": `Za odprtje menija pritisnite in dr\\u{17E}ite gumb ali pritisnite Alt+pu\\u{161}\\u{10D}ica navzdol`\n};\n\n\nexport {$8193cf0e649c7928$exports as default};\n//# sourceMappingURL=sl-SI.module.js.map\n","var $f398debcce5a5c55$exports = {};\n$f398debcce5a5c55$exports = {\n    \"longPressMessage\": `Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`\n};\n\n\nexport {$f398debcce5a5c55$exports as default};\n//# sourceMappingURL=sr-SP.module.js.map\n","var $9e9fef000aa4c013$exports = {};\n$9e9fef000aa4c013$exports = {\n    \"longPressMessage\": `H\\xe5ll nedtryckt eller tryck p\\xe5 Alt + pil ned\\xe5t f\\xf6r att \\xf6ppna menyn`\n};\n\n\nexport {$9e9fef000aa4c013$exports as default};\n//# sourceMappingURL=sv-SE.module.js.map\n","var $c016c8183bbe3d68$exports = {};\n$c016c8183bbe3d68$exports = {\n    \"longPressMessage\": `Men\\xfcy\\xfc a\\xe7mak i\\xe7in uzun bas\\u{131}n veya Alt + A\\u{15F}a\\u{11F}\\u{131} Ok tu\\u{15F}una bas\\u{131}n`\n};\n\n\nexport {$c016c8183bbe3d68$exports as default};\n//# sourceMappingURL=tr-TR.module.js.map\n","var $ca4f6c8462244e62$exports = {};\n$ca4f6c8462244e62$exports = {\n    \"longPressMessage\": `\\u{414}\\u{43E}\\u{432}\\u{433}\\u{43E} \\u{430}\\u{431}\\u{43E} \\u{437}\\u{432}\\u{438}\\u{447}\\u{430}\\u{439}\\u{43D}\\u{43E} \\u{43D}\\u{430}\\u{442}\\u{438}\\u{441}\\u{43D}\\u{456}\\u{442}\\u{44C} \\u{43A}\\u{43E}\\u{43C}\\u{431}\\u{456}\\u{43D}\\u{430}\\u{446}\\u{456}\\u{44E} \\u{43A}\\u{43B}\\u{430}\\u{432}\\u{456}\\u{448} Alt \\u{456} \\u{441}\\u{442}\\u{440}\\u{456}\\u{43B}\\u{43A}\\u{430} \\u{432}\\u{43D}\\u{438}\\u{437}, \\u{449}\\u{43E}\\u{431} \\u{432}\\u{456}\\u{434}\\u{43A}\\u{440}\\u{438}\\u{442}\\u{438} \\u{43C}\\u{435}\\u{43D}\\u{44E}`\n};\n\n\nexport {$ca4f6c8462244e62$exports as default};\n//# sourceMappingURL=uk-UA.module.js.map\n","var $2d9960c02ccac927$exports = {};\n$2d9960c02ccac927$exports = {\n    \"longPressMessage\": `\\u{957F}\\u{6309}\\u{6216}\\u{6309} Alt + \\u{5411}\\u{4E0B}\\u{65B9}\\u{5411}\\u{952E}\\u{4EE5}\\u{6253}\\u{5F00}\\u{83DC}\\u{5355}`\n};\n\n\nexport {$2d9960c02ccac927$exports as default};\n//# sourceMappingURL=zh-CN.module.js.map\n","var $f1b682a4c8c5631c$exports = {};\n$f1b682a4c8c5631c$exports = {\n    \"longPressMessage\": `\\u{9577}\\u{6309}\\u{6216}\\u{6309} Alt+\\u{5411}\\u{4E0B}\\u{9375}\\u{4EE5}\\u{958B}\\u{555F}\\u{529F}\\u{80FD}\\u{8868}`\n};\n\n\nexport {$f1b682a4c8c5631c$exports as default};\n//# sourceMappingURL=zh-TW.module.js.map\n","import $5FSX7$arAEmodulejs from \"./ar-AE.mjs\";\nimport $5FSX7$bgBGmodulejs from \"./bg-BG.mjs\";\nimport $5FSX7$csCZmodulejs from \"./cs-CZ.mjs\";\nimport $5FSX7$daDKmodulejs from \"./da-DK.mjs\";\nimport $5FSX7$deDEmodulejs from \"./de-DE.mjs\";\nimport $5FSX7$elGRmodulejs from \"./el-GR.mjs\";\nimport $5FSX7$enUSmodulejs from \"./en-US.mjs\";\nimport $5FSX7$esESmodulejs from \"./es-ES.mjs\";\nimport $5FSX7$etEEmodulejs from \"./et-EE.mjs\";\nimport $5FSX7$fiFImodulejs from \"./fi-FI.mjs\";\nimport $5FSX7$frFRmodulejs from \"./fr-FR.mjs\";\nimport $5FSX7$heILmodulejs from \"./he-IL.mjs\";\nimport $5FSX7$hrHRmodulejs from \"./hr-HR.mjs\";\nimport $5FSX7$huHUmodulejs from \"./hu-HU.mjs\";\nimport $5FSX7$itITmodulejs from \"./it-IT.mjs\";\nimport $5FSX7$jaJPmodulejs from \"./ja-JP.mjs\";\nimport $5FSX7$koKRmodulejs from \"./ko-KR.mjs\";\nimport $5FSX7$ltLTmodulejs from \"./lt-LT.mjs\";\nimport $5FSX7$lvLVmodulejs from \"./lv-LV.mjs\";\nimport $5FSX7$nbNOmodulejs from \"./nb-NO.mjs\";\nimport $5FSX7$nlNLmodulejs from \"./nl-NL.mjs\";\nimport $5FSX7$plPLmodulejs from \"./pl-PL.mjs\";\nimport $5FSX7$ptBRmodulejs from \"./pt-BR.mjs\";\nimport $5FSX7$ptPTmodulejs from \"./pt-PT.mjs\";\nimport $5FSX7$roROmodulejs from \"./ro-RO.mjs\";\nimport $5FSX7$ruRUmodulejs from \"./ru-RU.mjs\";\nimport $5FSX7$skSKmodulejs from \"./sk-SK.mjs\";\nimport $5FSX7$slSImodulejs from \"./sl-SI.mjs\";\nimport $5FSX7$srSPmodulejs from \"./sr-SP.mjs\";\nimport $5FSX7$svSEmodulejs from \"./sv-SE.mjs\";\nimport $5FSX7$trTRmodulejs from \"./tr-TR.mjs\";\nimport $5FSX7$ukUAmodulejs from \"./uk-UA.mjs\";\nimport $5FSX7$zhCNmodulejs from \"./zh-CN.mjs\";\nimport $5FSX7$zhTWmodulejs from \"./zh-TW.mjs\";\n\nvar $2cbb7ca666678a14$exports = {};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n$2cbb7ca666678a14$exports = {\n    \"ar-AE\": $5FSX7$arAEmodulejs,\n    \"bg-BG\": $5FSX7$bgBGmodulejs,\n    \"cs-CZ\": $5FSX7$csCZmodulejs,\n    \"da-DK\": $5FSX7$daDKmodulejs,\n    \"de-DE\": $5FSX7$deDEmodulejs,\n    \"el-GR\": $5FSX7$elGRmodulejs,\n    \"en-US\": $5FSX7$enUSmodulejs,\n    \"es-ES\": $5FSX7$esESmodulejs,\n    \"et-EE\": $5FSX7$etEEmodulejs,\n    \"fi-FI\": $5FSX7$fiFImodulejs,\n    \"fr-FR\": $5FSX7$frFRmodulejs,\n    \"he-IL\": $5FSX7$heILmodulejs,\n    \"hr-HR\": $5FSX7$hrHRmodulejs,\n    \"hu-HU\": $5FSX7$huHUmodulejs,\n    \"it-IT\": $5FSX7$itITmodulejs,\n    \"ja-JP\": $5FSX7$jaJPmodulejs,\n    \"ko-KR\": $5FSX7$koKRmodulejs,\n    \"lt-LT\": $5FSX7$ltLTmodulejs,\n    \"lv-LV\": $5FSX7$lvLVmodulejs,\n    \"nb-NO\": $5FSX7$nbNOmodulejs,\n    \"nl-NL\": $5FSX7$nlNLmodulejs,\n    \"pl-PL\": $5FSX7$plPLmodulejs,\n    \"pt-BR\": $5FSX7$ptBRmodulejs,\n    \"pt-PT\": $5FSX7$ptPTmodulejs,\n    \"ro-RO\": $5FSX7$roROmodulejs,\n    \"ru-RU\": $5FSX7$ruRUmodulejs,\n    \"sk-SK\": $5FSX7$skSKmodulejs,\n    \"sl-SI\": $5FSX7$slSImodulejs,\n    \"sr-SP\": $5FSX7$srSPmodulejs,\n    \"sv-SE\": $5FSX7$svSEmodulejs,\n    \"tr-TR\": $5FSX7$trTRmodulejs,\n    \"uk-UA\": $5FSX7$ukUAmodulejs,\n    \"zh-CN\": $5FSX7$zhCNmodulejs,\n    \"zh-TW\": $5FSX7$zhTWmodulejs\n};\n\n\nexport {$2cbb7ca666678a14$exports as default};\n//# sourceMappingURL=intlStrings.module.js.map\n","import $czs6v$intlStringsmodulejs from \"./intlStrings.mjs\";\nimport {useId as $czs6v$useId} from \"@react-aria/utils\";\nimport {useLocalizedStringFormatter as $czs6v$useLocalizedStringFormatter} from \"@react-aria/i18n\";\nimport {useLongPress as $czs6v$useLongPress} from \"@react-aria/interactions\";\nimport {useOverlayTrigger as $czs6v$useOverlayTrigger} from \"@react-aria/overlays\";\n\n\nfunction $parcel$interopDefault(a) {\n  return a && a.__esModule ? a.default : a;\n}\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $168583247155ddda$export$dc9c12ed27dd1b49(props, state, ref) {\n    let { type: type = 'menu', isDisabled: isDisabled, trigger: trigger = 'press' } = props;\n    let menuTriggerId = (0, $czs6v$useId)();\n    let { triggerProps: triggerProps, overlayProps: overlayProps } = (0, $czs6v$useOverlayTrigger)({\n        type: type\n    }, state, ref);\n    let onKeyDown = (e)=>{\n        if (isDisabled) return;\n        if (trigger === 'longPress' && !e.altKey) return;\n        if (ref && ref.current) switch(e.key){\n            case 'Enter':\n            case ' ':\n                if (trigger === 'longPress') return;\n            // fallthrough\n            case 'ArrowDown':\n                // Stop propagation, unless it would already be handled by useKeyboard.\n                if (!('continuePropagation' in e)) e.stopPropagation();\n                e.preventDefault();\n                state.toggle('first');\n                break;\n            case 'ArrowUp':\n                if (!('continuePropagation' in e)) e.stopPropagation();\n                e.preventDefault();\n                state.toggle('last');\n                break;\n            default:\n                // Allow other keys.\n                if ('continuePropagation' in e) e.continuePropagation();\n        }\n    };\n    let stringFormatter = (0, $czs6v$useLocalizedStringFormatter)((0, ($parcel$interopDefault($czs6v$intlStringsmodulejs))), '@react-aria/menu');\n    let { longPressProps: longPressProps } = (0, $czs6v$useLongPress)({\n        isDisabled: isDisabled || trigger !== 'longPress',\n        accessibilityDescription: stringFormatter.format('longPressMessage'),\n        onLongPressStart () {\n            state.close();\n        },\n        onLongPress () {\n            state.open('first');\n        }\n    });\n    let pressProps = {\n        onPressStart (e) {\n            // For consistency with native, open the menu on mouse/key down, but touch up.\n            if (e.pointerType !== 'touch' && e.pointerType !== 'keyboard' && !isDisabled) // If opened with a screen reader, auto focus the first item.\n            // Otherwise, the menu itself will be focused.\n            state.open(e.pointerType === 'virtual' ? 'first' : null);\n        },\n        onPress (e) {\n            if (e.pointerType === 'touch' && !isDisabled) state.toggle();\n        }\n    };\n    // omit onPress from triggerProps since we override it above.\n    delete triggerProps.onPress;\n    return {\n        menuTriggerProps: {\n            ...triggerProps,\n            ...trigger === 'press' ? pressProps : longPressProps,\n            id: menuTriggerId,\n            onKeyDown: onKeyDown\n        },\n        menuProps: {\n            ...overlayProps,\n            'aria-labelledby': menuTriggerId,\n            autoFocus: state.focusStrategy || true,\n            onClose: state.close\n        }\n    };\n}\n\n\nexport {$168583247155ddda$export$dc9c12ed27dd1b49 as useMenuTrigger};\n//# sourceMappingURL=useMenuTrigger.module.js.map\n","import $dShfP$intlStringsmodulejs from \"./intlStrings.mjs\";\nimport {announce as $dShfP$announce} from \"@react-aria/live-announcer\";\nimport {ariaHideOutside as $dShfP$ariaHideOutside} from \"@react-aria/overlays\";\nimport {listData as $dShfP$listData, getItemId as $dShfP$getItemId} from \"@react-aria/listbox\";\nimport {useRouter as $dShfP$useRouter, chain as $dShfP$chain, useLabels as $dShfP$useLabels, isAppleDevice as $dShfP$isAppleDevice, mergeProps as $dShfP$mergeProps} from \"@react-aria/utils\";\nimport {useMemo as $dShfP$useMemo, useRef as $dShfP$useRef, useEffect as $dShfP$useEffect} from \"react\";\nimport {getChildNodes as $dShfP$getChildNodes, getItemCount as $dShfP$getItemCount} from \"@react-stately/collections\";\nimport {ListKeyboardDelegate as $dShfP$ListKeyboardDelegate, useSelectableCollection as $dShfP$useSelectableCollection} from \"@react-aria/selection\";\nimport {privateValidationStateProp as $dShfP$privateValidationStateProp} from \"@react-stately/form\";\nimport {useLocalizedStringFormatter as $dShfP$useLocalizedStringFormatter} from \"@react-aria/i18n\";\nimport {useMenuTrigger as $dShfP$useMenuTrigger} from \"@react-aria/menu\";\nimport {useTextField as $dShfP$useTextField} from \"@react-aria/textfield\";\n\n\nfunction $parcel$interopDefault(a) {\n  return a && a.__esModule ? a.default : a;\n}\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\n\nfunction $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {\n    let { buttonRef: buttonRef, popoverRef: popoverRef, inputRef: inputRef, listBoxRef: listBoxRef, keyboardDelegate: keyboardDelegate, layoutDelegate: layoutDelegate, shouldFocusWrap: // completionMode = 'suggest',\n    shouldFocusWrap, isReadOnly: isReadOnly, isDisabled: isDisabled } = props;\n    let stringFormatter = (0, $dShfP$useLocalizedStringFormatter)((0, ($parcel$interopDefault($dShfP$intlStringsmodulejs))), '@react-aria/combobox');\n    let { menuTriggerProps: menuTriggerProps, menuProps: menuProps } = (0, $dShfP$useMenuTrigger)({\n        type: 'listbox',\n        isDisabled: isDisabled || isReadOnly\n    }, state, buttonRef);\n    // Set listbox id so it can be used when calling getItemId later\n    (0, $dShfP$listData).set(state, {\n        id: menuProps.id\n    });\n    // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).\n    // When virtualized, the layout object will be passed in as a prop and override this.\n    let { collection: collection } = state;\n    let { disabledKeys: disabledKeys } = state.selectionManager;\n    let delegate = (0, $dShfP$useMemo)(()=>keyboardDelegate || new (0, $dShfP$ListKeyboardDelegate)({\n            collection: collection,\n            disabledKeys: disabledKeys,\n            ref: listBoxRef,\n            layoutDelegate: layoutDelegate\n        }), [\n        keyboardDelegate,\n        layoutDelegate,\n        collection,\n        disabledKeys,\n        listBoxRef\n    ]);\n    // Use useSelectableCollection to get the keyboard handlers to apply to the textfield\n    let { collectionProps: collectionProps } = (0, $dShfP$useSelectableCollection)({\n        selectionManager: state.selectionManager,\n        keyboardDelegate: delegate,\n        disallowTypeAhead: true,\n        disallowEmptySelection: true,\n        shouldFocusWrap: shouldFocusWrap,\n        ref: inputRef,\n        // Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component\n        isVirtualized: true\n    });\n    let router = (0, $dShfP$useRouter)();\n    // For textfield specific keydown operations\n    let onKeyDown = (e)=>{\n        if (e.nativeEvent.isComposing) return;\n        switch(e.key){\n            case 'Enter':\n            case 'Tab':\n                // Prevent form submission if menu is open since we may be selecting a option\n                if (state.isOpen && e.key === 'Enter') e.preventDefault();\n                // If the focused item is a link, trigger opening it. Items that are links are not selectable.\n                if (state.isOpen && state.selectionManager.focusedKey != null && state.selectionManager.isLink(state.selectionManager.focusedKey)) {\n                    if (e.key === 'Enter') {\n                        let item = listBoxRef.current.querySelector(`[data-key=\"${CSS.escape(state.selectionManager.focusedKey.toString())}\"]`);\n                        if (item instanceof HTMLAnchorElement) {\n                            let collectionItem = state.collection.getItem(state.selectionManager.focusedKey);\n                            router.open(item, e, collectionItem.props.href, collectionItem.props.routerOptions);\n                        }\n                    }\n                    state.close();\n                } else state.commit();\n                break;\n            case 'Escape':\n                if (state.selectedKey !== null || state.inputValue === '' || props.allowsCustomValue) e.continuePropagation();\n                state.revert();\n                break;\n            case 'ArrowDown':\n                state.open('first', 'manual');\n                break;\n            case 'ArrowUp':\n                state.open('last', 'manual');\n                break;\n            case 'ArrowLeft':\n            case 'ArrowRight':\n                state.selectionManager.setFocusedKey(null);\n                break;\n        }\n    };\n    let onBlur = (e)=>{\n        var _popoverRef_current;\n        let blurFromButton = (buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) && buttonRef.current === e.relatedTarget;\n        let blurIntoPopover = (_popoverRef_current = popoverRef.current) === null || _popoverRef_current === void 0 ? void 0 : _popoverRef_current.contains(e.relatedTarget);\n        // Ignore blur if focused moved to the button(if exists) or into the popover.\n        if (blurFromButton || blurIntoPopover) return;\n        if (props.onBlur) props.onBlur(e);\n        state.setFocused(false);\n    };\n    let onFocus = (e)=>{\n        if (state.isFocused) return;\n        if (props.onFocus) props.onFocus(e);\n        state.setFocused(true);\n    };\n    let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;\n    let { labelProps: labelProps, inputProps: inputProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $dShfP$useTextField)({\n        ...props,\n        onChange: state.setInputValue,\n        onKeyDown: !isReadOnly ? (0, $dShfP$chain)(state.isOpen && collectionProps.onKeyDown, onKeyDown, props.onKeyDown) : props.onKeyDown,\n        onBlur: onBlur,\n        value: state.inputValue,\n        onFocus: onFocus,\n        autoComplete: 'off',\n        validate: undefined,\n        [(0, $dShfP$privateValidationStateProp)]: state\n    }, inputRef);\n    // Press handlers for the ComboBox button\n    let onPress = (e)=>{\n        if (e.pointerType === 'touch') {\n            // Focus the input field in case it isn't focused yet\n            inputRef.current.focus();\n            state.toggle(null, 'manual');\n        }\n    };\n    let onPressStart = (e)=>{\n        if (e.pointerType !== 'touch') {\n            inputRef.current.focus();\n            state.toggle(e.pointerType === 'keyboard' || e.pointerType === 'virtual' ? 'first' : null, 'manual');\n        }\n    };\n    let triggerLabelProps = (0, $dShfP$useLabels)({\n        id: menuTriggerProps.id,\n        'aria-label': stringFormatter.format('buttonLabel'),\n        'aria-labelledby': props['aria-labelledby'] || labelProps.id\n    });\n    let listBoxProps = (0, $dShfP$useLabels)({\n        id: menuProps.id,\n        'aria-label': stringFormatter.format('listboxLabel'),\n        'aria-labelledby': props['aria-labelledby'] || labelProps.id\n    });\n    // If a touch happens on direct center of ComboBox input, might be virtual click from iPad so open ComboBox menu\n    let lastEventTime = (0, $dShfP$useRef)(0);\n    let onTouchEnd = (e)=>{\n        if (isDisabled || isReadOnly) return;\n        // Sometimes VoiceOver on iOS fires two touchend events in quick succession. Ignore the second one.\n        if (e.timeStamp - lastEventTime.current < 500) {\n            e.preventDefault();\n            inputRef.current.focus();\n            return;\n        }\n        let rect = e.target.getBoundingClientRect();\n        let touch = e.changedTouches[0];\n        let centerX = Math.ceil(rect.left + .5 * rect.width);\n        let centerY = Math.ceil(rect.top + .5 * rect.height);\n        if (touch.clientX === centerX && touch.clientY === centerY) {\n            e.preventDefault();\n            inputRef.current.focus();\n            state.toggle(null, 'manual');\n            lastEventTime.current = e.timeStamp;\n        }\n    };\n    // VoiceOver has issues with announcing aria-activedescendant properly on change\n    // (especially on iOS). We use a live region announcer to announce focus changes\n    // manually. In addition, section titles are announced when navigating into a new section.\n    let focusedItem = state.selectionManager.focusedKey != null && state.isOpen ? state.collection.getItem(state.selectionManager.focusedKey) : undefined;\n    var _focusedItem_parentKey;\n    let sectionKey = (_focusedItem_parentKey = focusedItem === null || focusedItem === void 0 ? void 0 : focusedItem.parentKey) !== null && _focusedItem_parentKey !== void 0 ? _focusedItem_parentKey : null;\n    var _state_selectionManager_focusedKey;\n    let itemKey = (_state_selectionManager_focusedKey = state.selectionManager.focusedKey) !== null && _state_selectionManager_focusedKey !== void 0 ? _state_selectionManager_focusedKey : null;\n    let lastSection = (0, $dShfP$useRef)(sectionKey);\n    let lastItem = (0, $dShfP$useRef)(itemKey);\n    (0, $dShfP$useEffect)(()=>{\n        if ((0, $dShfP$isAppleDevice)() && focusedItem != null && itemKey !== lastItem.current) {\n            let isSelected = state.selectionManager.isSelected(itemKey);\n            let section = sectionKey != null ? state.collection.getItem(sectionKey) : null;\n            let sectionTitle = (section === null || section === void 0 ? void 0 : section['aria-label']) || (typeof (section === null || section === void 0 ? void 0 : section.rendered) === 'string' ? section.rendered : '') || '';\n            let announcement = stringFormatter.format('focusAnnouncement', {\n                isGroupChange: section && sectionKey !== lastSection.current,\n                groupTitle: sectionTitle,\n                groupCount: section ? [\n                    ...(0, $dShfP$getChildNodes)(section, state.collection)\n                ].length : 0,\n                optionText: focusedItem['aria-label'] || focusedItem.textValue || '',\n                isSelected: isSelected\n            });\n            (0, $dShfP$announce)(announcement);\n        }\n        lastSection.current = sectionKey;\n        lastItem.current = itemKey;\n    });\n    // Announce the number of available suggestions when it changes\n    let optionCount = (0, $dShfP$getItemCount)(state.collection);\n    let lastSize = (0, $dShfP$useRef)(optionCount);\n    let lastOpen = (0, $dShfP$useRef)(state.isOpen);\n    (0, $dShfP$useEffect)(()=>{\n        // Only announce the number of options available when the menu opens if there is no\n        // focused item, otherwise screen readers will typically read e.g. \"1 of 6\".\n        // The exception is VoiceOver since this isn't included in the message above.\n        let didOpenWithoutFocusedItem = state.isOpen !== lastOpen.current && (state.selectionManager.focusedKey == null || (0, $dShfP$isAppleDevice)());\n        if (state.isOpen && (didOpenWithoutFocusedItem || optionCount !== lastSize.current)) {\n            let announcement = stringFormatter.format('countAnnouncement', {\n                optionCount: optionCount\n            });\n            (0, $dShfP$announce)(announcement);\n        }\n        lastSize.current = optionCount;\n        lastOpen.current = state.isOpen;\n    });\n    // Announce when a selection occurs for VoiceOver. Other screen readers typically do this automatically.\n    let lastSelectedKey = (0, $dShfP$useRef)(state.selectedKey);\n    (0, $dShfP$useEffect)(()=>{\n        if ((0, $dShfP$isAppleDevice)() && state.isFocused && state.selectedItem && state.selectedKey !== lastSelectedKey.current) {\n            let optionText = state.selectedItem['aria-label'] || state.selectedItem.textValue || '';\n            let announcement = stringFormatter.format('selectedAnnouncement', {\n                optionText: optionText\n            });\n            (0, $dShfP$announce)(announcement);\n        }\n        lastSelectedKey.current = state.selectedKey;\n    });\n    (0, $dShfP$useEffect)(()=>{\n        if (state.isOpen) return (0, $dShfP$ariaHideOutside)([\n            inputRef.current,\n            popoverRef.current\n        ]);\n    }, [\n        state.isOpen,\n        inputRef,\n        popoverRef\n    ]);\n    return {\n        labelProps: labelProps,\n        buttonProps: {\n            ...menuTriggerProps,\n            ...triggerLabelProps,\n            excludeFromTabOrder: true,\n            onPress: onPress,\n            onPressStart: onPressStart,\n            isDisabled: isDisabled || isReadOnly\n        },\n        inputProps: (0, $dShfP$mergeProps)(inputProps, {\n            role: 'combobox',\n            'aria-expanded': menuTriggerProps['aria-expanded'],\n            'aria-controls': state.isOpen ? menuProps.id : undefined,\n            // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)\n            'aria-autocomplete': 'list',\n            'aria-activedescendant': focusedItem ? (0, $dShfP$getItemId)(state, focusedItem.key) : undefined,\n            onTouchEnd: onTouchEnd,\n            // This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.\n            autoCorrect: 'off',\n            // This disable's the macOS Safari spell check auto corrections.\n            spellCheck: 'false'\n        }),\n        listBoxProps: (0, $dShfP$mergeProps)(menuProps, listBoxProps, {\n            autoFocus: state.focusStrategy,\n            shouldUseVirtualFocus: true,\n            shouldSelectOnPressUp: true,\n            shouldFocusOnHover: true,\n            linkBehavior: 'selection'\n        }),\n        descriptionProps: descriptionProps,\n        errorMessageProps: errorMessageProps,\n        isInvalid: isInvalid,\n        validationErrors: validationErrors,\n        validationDetails: validationDetails\n    };\n}\n\n\nexport {$c350ade66beef0af$export$8c18d1b4f7232bbf as useComboBox};\n//# sourceMappingURL=useComboBox.module.js.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $884aeceb3d67f00f$export$37b65e5b5444d35c = new WeakMap();\n\n\nexport {$884aeceb3d67f00f$export$37b65e5b5444d35c as radioGroupData};\n//# sourceMappingURL=utils.module.js.map\n","import {radioGroupData as $884aeceb3d67f00f$export$37b65e5b5444d35c} from \"./utils.mjs\";\nimport {mergeProps as $5jJ3f$mergeProps, filterDOMProps as $5jJ3f$filterDOMProps, useFormReset as $5jJ3f$useFormReset} from \"@react-aria/utils\";\nimport {useFocusable as $5jJ3f$useFocusable} from \"@react-aria/focus\";\nimport {useFormValidation as $5jJ3f$useFormValidation} from \"@react-aria/form\";\nimport {usePress as $5jJ3f$usePress} from \"@react-aria/interactions\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $0d5c49892c1215da$export$37b0961d2f4751e2(props, state, ref) {\n    let { value: value, children: children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby } = props;\n    const isDisabled = props.isDisabled || state.isDisabled;\n    let hasChildren = children != null;\n    let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;\n    if (!hasChildren && !hasAriaLabel) console.warn('If you do not provide children, you must specify an aria-label for accessibility');\n    let checked = state.selectedValue === value;\n    let onChange = (e)=>{\n        e.stopPropagation();\n        state.setSelectedValue(value);\n    };\n    let { pressProps: pressProps, isPressed: isPressed } = (0, $5jJ3f$usePress)({\n        isDisabled: isDisabled\n    });\n    // iOS does not toggle radios if you drag off and back onto the label, so handle it ourselves.\n    let { pressProps: labelProps, isPressed: isLabelPressed } = (0, $5jJ3f$usePress)({\n        isDisabled: isDisabled,\n        onPress () {\n            state.setSelectedValue(value);\n        }\n    });\n    let { focusableProps: focusableProps } = (0, $5jJ3f$useFocusable)((0, $5jJ3f$mergeProps)(props, {\n        onFocus: ()=>state.setLastFocusedValue(value)\n    }), ref);\n    let interactions = (0, $5jJ3f$mergeProps)(pressProps, focusableProps);\n    let domProps = (0, $5jJ3f$filterDOMProps)(props, {\n        labelable: true\n    });\n    let tabIndex = -1;\n    if (state.selectedValue != null) {\n        if (state.selectedValue === value) tabIndex = 0;\n    } else if (state.lastFocusedValue === value || state.lastFocusedValue == null) tabIndex = 0;\n    if (isDisabled) tabIndex = undefined;\n    let { name: name, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = (0, $884aeceb3d67f00f$export$37b65e5b5444d35c).get(state);\n    (0, $5jJ3f$useFormReset)(ref, state.selectedValue, state.setSelectedValue);\n    (0, $5jJ3f$useFormValidation)({\n        validationBehavior: validationBehavior\n    }, state, ref);\n    return {\n        labelProps: (0, $5jJ3f$mergeProps)(labelProps, {\n            onClick: (e)=>e.preventDefault()\n        }),\n        inputProps: (0, $5jJ3f$mergeProps)(domProps, {\n            ...interactions,\n            type: 'radio',\n            name: name,\n            tabIndex: tabIndex,\n            disabled: isDisabled,\n            required: state.isRequired && validationBehavior === 'native',\n            checked: checked,\n            value: value,\n            onChange: onChange,\n            'aria-describedby': [\n                props['aria-describedby'],\n                state.isInvalid ? errorMessageId : null,\n                descriptionId\n            ].filter(Boolean).join(' ') || undefined\n        }),\n        isDisabled: isDisabled,\n        isSelected: checked,\n        isPressed: isPressed || isLabelPressed\n    };\n}\n\n\nexport {$0d5c49892c1215da$export$37b0961d2f4751e2 as useRadio};\n//# sourceMappingURL=useRadio.module.js.map\n","import {radioGroupData as $884aeceb3d67f00f$export$37b65e5b5444d35c} from \"./utils.mjs\";\nimport {filterDOMProps as $czmJy$filterDOMProps, useId as $czmJy$useId, mergeProps as $czmJy$mergeProps} from \"@react-aria/utils\";\nimport {getFocusableTreeWalker as $czmJy$getFocusableTreeWalker} from \"@react-aria/focus\";\nimport {useField as $czmJy$useField} from \"@react-aria/label\";\nimport {useFocusWithin as $czmJy$useFocusWithin} from \"@react-aria/interactions\";\nimport {useLocale as $czmJy$useLocale} from \"@react-aria/i18n\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {\n    let { name: name, isReadOnly: isReadOnly, isRequired: isRequired, isDisabled: isDisabled, orientation: orientation = 'vertical', validationBehavior: validationBehavior = 'aria' } = props;\n    let { direction: direction } = (0, $czmJy$useLocale)();\n    let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;\n    let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $czmJy$useField)({\n        ...props,\n        // Radio group is not an HTML input element so it\n        // shouldn't be labeled by a <label> element.\n        labelElementType: 'span',\n        isInvalid: state.isInvalid,\n        errorMessage: props.errorMessage || validationErrors\n    });\n    let domProps = (0, $czmJy$filterDOMProps)(props, {\n        labelable: true\n    });\n    // When the radio group loses focus, reset the focusable radio to null if\n    // there is no selection. This allows tabbing into the group from either\n    // direction to go to the first or last radio.\n    let { focusWithinProps: focusWithinProps } = (0, $czmJy$useFocusWithin)({\n        onBlurWithin (e) {\n            var _props_onBlur;\n            (_props_onBlur = props.onBlur) === null || _props_onBlur === void 0 ? void 0 : _props_onBlur.call(props, e);\n            if (!state.selectedValue) state.setLastFocusedValue(null);\n        },\n        onFocusWithin: props.onFocus,\n        onFocusWithinChange: props.onFocusChange\n    });\n    let onKeyDown = (e)=>{\n        let nextDir;\n        switch(e.key){\n            case 'ArrowRight':\n                if (direction === 'rtl' && orientation !== 'vertical') nextDir = 'prev';\n                else nextDir = 'next';\n                break;\n            case 'ArrowLeft':\n                if (direction === 'rtl' && orientation !== 'vertical') nextDir = 'next';\n                else nextDir = 'prev';\n                break;\n            case 'ArrowDown':\n                nextDir = 'next';\n                break;\n            case 'ArrowUp':\n                nextDir = 'prev';\n                break;\n            default:\n                return;\n        }\n        e.preventDefault();\n        let walker = (0, $czmJy$getFocusableTreeWalker)(e.currentTarget, {\n            from: e.target\n        });\n        let nextElem;\n        if (nextDir === 'next') {\n            nextElem = walker.nextNode();\n            if (!nextElem) {\n                walker.currentNode = e.currentTarget;\n                nextElem = walker.firstChild();\n            }\n        } else {\n            nextElem = walker.previousNode();\n            if (!nextElem) {\n                walker.currentNode = e.currentTarget;\n                nextElem = walker.lastChild();\n            }\n        }\n        if (nextElem) {\n            // Call focus on nextElem so that keyboard navigation scrolls the radio into view\n            nextElem.focus();\n            state.setSelectedValue(nextElem.value);\n        }\n    };\n    let groupName = (0, $czmJy$useId)(name);\n    (0, $884aeceb3d67f00f$export$37b65e5b5444d35c).set(state, {\n        name: groupName,\n        descriptionId: descriptionProps.id,\n        errorMessageId: errorMessageProps.id,\n        validationBehavior: validationBehavior\n    });\n    return {\n        radioGroupProps: (0, $czmJy$mergeProps)(domProps, {\n            // https://www.w3.org/TR/wai-aria-1.2/#radiogroup\n            role: 'radiogroup',\n            onKeyDown: onKeyDown,\n            'aria-invalid': state.isInvalid || undefined,\n            'aria-errormessage': props['aria-errormessage'],\n            'aria-readonly': isReadOnly || undefined,\n            'aria-required': isRequired || undefined,\n            'aria-disabled': isDisabled || undefined,\n            'aria-orientation': orientation,\n            ...fieldProps,\n            ...focusWithinProps\n        }),\n        labelProps: labelProps,\n        descriptionProps: descriptionProps,\n        errorMessageProps: errorMessageProps,\n        isInvalid: isInvalid,\n        validationErrors: validationErrors,\n        validationDetails: validationDetails\n    };\n}\n\n\nexport {$430f30ed08ec25fa$export$62b9571f283ff5c2 as useRadioGroup};\n//# sourceMappingURL=useRadioGroup.module.js.map\n","import {useListState as $e72dd72e1c76a225$export$2f645645f7bca764} from \"./useListState.mjs\";\nimport {useControlledState as $eBozH$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $eBozH$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {\n    var _props_defaultSelectedKey;\n    let [selectedKey, setSelectedKey] = (0, $eBozH$useControlledState)(props.selectedKey, (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : null, props.onSelectionChange);\n    let selectedKeys = (0, $eBozH$useMemo)(()=>selectedKey != null ? [\n            selectedKey\n        ] : [], [\n        selectedKey\n    ]);\n    let { collection: collection, disabledKeys: disabledKeys, selectionManager: selectionManager } = (0, $e72dd72e1c76a225$export$2f645645f7bca764)({\n        ...props,\n        selectionMode: 'single',\n        disallowEmptySelection: true,\n        allowDuplicateSelectionEvents: true,\n        selectedKeys: selectedKeys,\n        onSelectionChange: (keys)=>{\n            var _keys_values_next_value;\n            let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;\n            // Always fire onSelectionChange, even if the key is the same\n            // as the current key (useControlledState does not).\n            if (key === selectedKey && props.onSelectionChange) props.onSelectionChange(key);\n            setSelectedKey(key);\n        }\n    });\n    let selectedItem = selectedKey != null ? collection.getItem(selectedKey) : null;\n    return {\n        collection: collection,\n        disabledKeys: disabledKeys,\n        selectionManager: selectionManager,\n        selectedKey: selectedKey,\n        setSelectedKey: setSelectedKey,\n        selectedItem: selectedItem\n    };\n}\n\n\nexport {$a0d645289fe9b86b$export$e7f05e985daf4b5f as useSingleSelectListState};\n//# sourceMappingURL=useSingleSelectListState.module.js.map\n","import {useFormValidationState as $49BJP$useFormValidationState} from \"@react-stately/form\";\nimport {getChildNodes as $49BJP$getChildNodes} from \"@react-stately/collections\";\nimport {useSingleSelectListState as $49BJP$useSingleSelectListState, ListCollection as $49BJP$ListCollection} from \"@react-stately/list\";\nimport {useState as $49BJP$useState, useMemo as $49BJP$useMemo, useRef as $49BJP$useRef, useCallback as $49BJP$useCallback, useEffect as $49BJP$useEffect} from \"react\";\nimport {useControlledState as $49BJP$useControlledState} from \"@react-stately/utils\";\nimport {useOverlayTriggerState as $49BJP$useOverlayTriggerState} from \"@react-stately/overlays\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {\n    var _collection_getItem, _collection_getItem1;\n    let { defaultFilter: defaultFilter, menuTrigger: menuTrigger = 'input', allowsEmptyCollection: allowsEmptyCollection = false, allowsCustomValue: allowsCustomValue, shouldCloseOnBlur: shouldCloseOnBlur = true } = props;\n    let [showAllItems, setShowAllItems] = (0, $49BJP$useState)(false);\n    let [isFocused, setFocusedState] = (0, $49BJP$useState)(false);\n    let [focusStrategy, setFocusStrategy] = (0, $49BJP$useState)(null);\n    let onSelectionChange = (key)=>{\n        if (props.onSelectionChange) props.onSelectionChange(key);\n        // If key is the same, reset the inputValue and close the menu\n        // (scenario: user clicks on already selected option)\n        if (key === selectedKey) {\n            resetInputValue();\n            closeMenu();\n        }\n    };\n    var _props_items;\n    let { collection: collection, selectionManager: selectionManager, selectedKey: selectedKey, setSelectedKey: setSelectedKey, selectedItem: selectedItem, disabledKeys: disabledKeys } = (0, $49BJP$useSingleSelectListState)({\n        ...props,\n        onSelectionChange: onSelectionChange,\n        items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems\n    });\n    var _props_defaultInputValue, _ref;\n    let [inputValue, setInputValue] = (0, $49BJP$useControlledState)(props.inputValue, (_ref = (_props_defaultInputValue = props.defaultInputValue) !== null && _props_defaultInputValue !== void 0 ? _props_defaultInputValue : (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _ref !== void 0 ? _ref : '', props.onInputChange);\n    // Preserve original collection so we can show all items on demand\n    let originalCollection = collection;\n    let filteredCollection = (0, $49BJP$useMemo)(()=>// No default filter if items are controlled.\n        props.items != null || !defaultFilter ? collection : $a9e7382a7d111cb5$var$filterCollection(collection, inputValue, defaultFilter), [\n        collection,\n        inputValue,\n        defaultFilter,\n        props.items\n    ]);\n    let [lastCollection, setLastCollection] = (0, $49BJP$useState)(filteredCollection);\n    // Track what action is attempting to open the menu\n    let menuOpenTrigger = (0, $49BJP$useRef)('focus');\n    let onOpenChange = (open)=>{\n        if (props.onOpenChange) props.onOpenChange(open, open ? menuOpenTrigger.current : undefined);\n        selectionManager.setFocused(open);\n        if (!open) selectionManager.setFocusedKey(null);\n    };\n    let triggerState = (0, $49BJP$useOverlayTriggerState)({\n        ...props,\n        onOpenChange: onOpenChange,\n        isOpen: undefined,\n        defaultOpen: undefined\n    });\n    let open = (focusStrategy = null, trigger)=>{\n        let displayAllItems = trigger === 'manual' || trigger === 'focus' && menuTrigger === 'focus';\n        // Prevent open operations from triggering if there is nothing to display\n        // Also prevent open operations from triggering if items are uncontrolled but defaultItems is empty, even if displayAllItems is true.\n        // This is to prevent comboboxes with empty defaultItems from opening but allow controlled items comboboxes to open even if the inital list is empty (assumption is user will provide swap the empty list with a base list via onOpenChange returning `menuTrigger` manual)\n        if (allowsEmptyCollection || filteredCollection.size > 0 || displayAllItems && originalCollection.size > 0 || props.items) {\n            if (displayAllItems && !triggerState.isOpen && props.items === undefined) // Show all items if menu is manually opened. Only care about this if items are undefined\n            setShowAllItems(true);\n            menuOpenTrigger.current = trigger;\n            setFocusStrategy(focusStrategy);\n            triggerState.open();\n        }\n    };\n    let toggle = (focusStrategy = null, trigger)=>{\n        let displayAllItems = trigger === 'manual' || trigger === 'focus' && menuTrigger === 'focus';\n        // If the menu is closed and there is nothing to display, early return so toggle isn't called to prevent extraneous onOpenChange\n        if (!(allowsEmptyCollection || filteredCollection.size > 0 || displayAllItems && originalCollection.size > 0 || props.items) && !triggerState.isOpen) return;\n        if (displayAllItems && !triggerState.isOpen && props.items === undefined) // Show all items if menu is toggled open. Only care about this if items are undefined\n        setShowAllItems(true);\n        // Only update the menuOpenTrigger if menu is currently closed\n        if (!triggerState.isOpen) menuOpenTrigger.current = trigger;\n        toggleMenu(focusStrategy);\n    };\n    let updateLastCollection = (0, $49BJP$useCallback)(()=>{\n        setLastCollection(showAllItems ? originalCollection : filteredCollection);\n    }, [\n        showAllItems,\n        originalCollection,\n        filteredCollection\n    ]);\n    // If menu is going to close, save the current collection so we can freeze the displayed collection when the\n    // user clicks outside the popover to close the menu. Prevents the menu contents from updating as the menu closes.\n    let toggleMenu = (0, $49BJP$useCallback)((focusStrategy = null)=>{\n        if (triggerState.isOpen) updateLastCollection();\n        setFocusStrategy(focusStrategy);\n        triggerState.toggle();\n    }, [\n        triggerState,\n        updateLastCollection\n    ]);\n    let closeMenu = (0, $49BJP$useCallback)(()=>{\n        if (triggerState.isOpen) {\n            updateLastCollection();\n            triggerState.close();\n        }\n    }, [\n        triggerState,\n        updateLastCollection\n    ]);\n    let [lastValue, setLastValue] = (0, $49BJP$useState)(inputValue);\n    let resetInputValue = ()=>{\n        var _collection_getItem;\n        var _collection_getItem_textValue;\n        let itemText = (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : '';\n        setLastValue(itemText);\n        setInputValue(itemText);\n    };\n    var _props_selectedKey, _ref1;\n    let lastSelectedKey = (0, $49BJP$useRef)((_ref1 = (_props_selectedKey = props.selectedKey) !== null && _props_selectedKey !== void 0 ? _props_selectedKey : props.defaultSelectedKey) !== null && _ref1 !== void 0 ? _ref1 : null);\n    var _collection_getItem_textValue;\n    let lastSelectedKeyText = (0, $49BJP$useRef)((_collection_getItem_textValue = (_collection_getItem1 = collection.getItem(selectedKey)) === null || _collection_getItem1 === void 0 ? void 0 : _collection_getItem1.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : '');\n    // intentional omit dependency array, want this to happen on every render\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    (0, $49BJP$useEffect)(()=>{\n        var _collection_getItem;\n        // Open and close menu automatically when the input value changes if the input is focused,\n        // and there are items in the collection or allowEmptyCollection is true.\n        if (isFocused && (filteredCollection.size > 0 || allowsEmptyCollection) && !triggerState.isOpen && inputValue !== lastValue && menuTrigger !== 'manual') open(null, 'input');\n        // Close the menu if the collection is empty. Don't close menu if filtered collection size is 0\n        // but we are currently showing all items via button press\n        if (!showAllItems && !allowsEmptyCollection && triggerState.isOpen && filteredCollection.size === 0) closeMenu();\n        // Close when an item is selected.\n        if (selectedKey != null && selectedKey !== lastSelectedKey.current) closeMenu();\n        // Clear focused key when input value changes and display filtered collection again.\n        if (inputValue !== lastValue) {\n            selectionManager.setFocusedKey(null);\n            setShowAllItems(false);\n            // Set selectedKey to null when the user clears the input.\n            // If controlled, this is the application developer's responsibility.\n            if (inputValue === '' && (props.inputValue === undefined || props.selectedKey === undefined)) setSelectedKey(null);\n        }\n        // If the selectedKey changed, update the input value.\n        // Do nothing if both inputValue and selectedKey are controlled.\n        // In this case, it's the user's responsibility to update inputValue in onSelectionChange.\n        if (selectedKey !== lastSelectedKey.current && (props.inputValue === undefined || props.selectedKey === undefined)) resetInputValue();\n        else if (lastValue !== inputValue) setLastValue(inputValue);\n        var _collection_getItem_textValue;\n        // Update the inputValue if the selected item's text changes from its last tracked value.\n        // This is to handle cases where a selectedKey is specified but the items aren't available (async loading) or the selected item's text value updates.\n        // Only reset if the user isn't currently within the field so we don't erroneously modify user input.\n        // If inputValue is controlled, it is the user's responsibility to update the inputValue when items change.\n        let selectedItemText = (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : '';\n        if (!isFocused && selectedKey != null && props.inputValue === undefined && selectedKey === lastSelectedKey.current) {\n            if (lastSelectedKeyText.current !== selectedItemText) {\n                setLastValue(selectedItemText);\n                setInputValue(selectedItemText);\n            }\n        }\n        lastSelectedKey.current = selectedKey;\n        lastSelectedKeyText.current = selectedItemText;\n    });\n    let validation = (0, $49BJP$useFormValidationState)({\n        ...props,\n        value: (0, $49BJP$useMemo)(()=>({\n                inputValue: inputValue,\n                selectedKey: selectedKey\n            }), [\n            inputValue,\n            selectedKey\n        ])\n    });\n    // Revert input value and close menu\n    let revert = ()=>{\n        if (allowsCustomValue && selectedKey == null) commitCustomValue();\n        else commitSelection();\n    };\n    let commitCustomValue = ()=>{\n        lastSelectedKey.current = null;\n        setSelectedKey(null);\n        closeMenu();\n    };\n    let commitSelection = ()=>{\n        // If multiple things are controlled, call onSelectionChange\n        if (props.selectedKey !== undefined && props.inputValue !== undefined) {\n            var _collection_getItem;\n            props.onSelectionChange(selectedKey);\n            var _collection_getItem_textValue;\n            // Stop menu from reopening from useEffect\n            let itemText = (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : '';\n            setLastValue(itemText);\n            closeMenu();\n        } else {\n            // If only a single aspect of combobox is controlled, reset input value and close menu for the user\n            resetInputValue();\n            closeMenu();\n        }\n    };\n    const commitValue = ()=>{\n        if (allowsCustomValue) {\n            var _collection_getItem;\n            var _collection_getItem_textValue;\n            const itemText = (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : '';\n            inputValue === itemText ? commitSelection() : commitCustomValue();\n        } else // Reset inputValue and close menu\n        commitSelection();\n    };\n    let commit = ()=>{\n        if (triggerState.isOpen && selectionManager.focusedKey != null) {\n            // Reset inputValue and close menu here if the selected key is already the focused key. Otherwise\n            // fire onSelectionChange to allow the application to control the closing.\n            if (selectedKey === selectionManager.focusedKey) commitSelection();\n            else setSelectedKey(selectionManager.focusedKey);\n        } else commitValue();\n    };\n    let valueOnFocus = (0, $49BJP$useRef)(inputValue);\n    let setFocused = (isFocused)=>{\n        if (isFocused) {\n            valueOnFocus.current = inputValue;\n            if (menuTrigger === 'focus' && !props.isReadOnly) open(null, 'focus');\n        } else {\n            if (shouldCloseOnBlur) commitValue();\n            if (inputValue !== valueOnFocus.current) validation.commitValidation();\n        }\n        setFocusedState(isFocused);\n    };\n    let displayedCollection = (0, $49BJP$useMemo)(()=>{\n        if (triggerState.isOpen) {\n            if (showAllItems) return originalCollection;\n            else return filteredCollection;\n        } else return lastCollection;\n    }, [\n        triggerState.isOpen,\n        originalCollection,\n        filteredCollection,\n        showAllItems,\n        lastCollection\n    ]);\n    return {\n        ...validation,\n        ...triggerState,\n        focusStrategy: focusStrategy,\n        toggle: toggle,\n        open: open,\n        close: commitValue,\n        selectionManager: selectionManager,\n        selectedKey: selectedKey,\n        setSelectedKey: setSelectedKey,\n        disabledKeys: disabledKeys,\n        isFocused: isFocused,\n        setFocused: setFocused,\n        selectedItem: selectedItem,\n        collection: displayedCollection,\n        inputValue: inputValue,\n        setInputValue: setInputValue,\n        commit: commit,\n        revert: revert\n    };\n}\nfunction $a9e7382a7d111cb5$var$filterCollection(collection, inputValue, filter) {\n    return new (0, $49BJP$ListCollection)($a9e7382a7d111cb5$var$filterNodes(collection, collection, inputValue, filter));\n}\nfunction $a9e7382a7d111cb5$var$filterNodes(collection, nodes, inputValue, filter) {\n    let filteredNode = [];\n    for (let node of nodes){\n        if (node.type === 'section' && node.hasChildNodes) {\n            let filtered = $a9e7382a7d111cb5$var$filterNodes(collection, (0, $49BJP$getChildNodes)(node, collection), inputValue, filter);\n            if ([\n                ...filtered\n            ].some((node)=>node.type === 'item')) filteredNode.push({\n                ...node,\n                childNodes: filtered\n            });\n        } else if (node.type === 'item' && filter(node.textValue, inputValue)) filteredNode.push({\n            ...node\n        });\n        else if (node.type !== 'item') filteredNode.push({\n            ...node\n        });\n    }\n    return filteredNode;\n}\n\n\nexport {$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e as useComboBoxState};\n//# sourceMappingURL=useComboBoxState.module.js.map\n","import {useState as $bc4N1$useState, useMemo as $bc4N1$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $0d86e9c8f07f9a7b$export$762f73dccccd255d(options) {\n    let { initialItems: initialItems = [], initialSelectedKeys: initialSelectedKeys, getKey: getKey = (item)=>{\n        var _item_id;\n        return (_item_id = item.id) !== null && _item_id !== void 0 ? _item_id : item.key;\n    }, filter: filter, initialFilterText: initialFilterText = '' } = options;\n    // Store both items and filteredItems in state so we can go back to the unfiltered list\n    let [state, setState] = (0, $bc4N1$useState)({\n        items: initialItems,\n        selectedKeys: initialSelectedKeys === 'all' ? 'all' : new Set(initialSelectedKeys || []),\n        filterText: initialFilterText\n    });\n    let filteredItems = (0, $bc4N1$useMemo)(()=>filter ? state.items.filter((item)=>filter(item, state.filterText)) : state.items, [\n        state.items,\n        state.filterText,\n        filter\n    ]);\n    return {\n        ...state,\n        items: filteredItems,\n        ...$0d86e9c8f07f9a7b$export$79c0c687a5963b0a({\n            getKey: getKey\n        }, setState),\n        getItem (key) {\n            return state.items.find((item)=>getKey(item) === key);\n        }\n    };\n}\nfunction $0d86e9c8f07f9a7b$export$79c0c687a5963b0a(opts, dispatch) {\n    let { cursor: cursor, getKey: getKey } = opts;\n    return {\n        setSelectedKeys (selectedKeys) {\n            dispatch((state)=>({\n                    ...state,\n                    selectedKeys: selectedKeys\n                }));\n        },\n        setFilterText (filterText) {\n            dispatch((state)=>({\n                    ...state,\n                    filterText: filterText\n                }));\n        },\n        insert (index, ...values) {\n            dispatch((state)=>$0d86e9c8f07f9a7b$var$insert(state, index, ...values));\n        },\n        insertBefore (key, ...values) {\n            dispatch((state)=>{\n                let index = state.items.findIndex((item)=>getKey(item) === key);\n                if (index === -1) {\n                    if (state.items.length === 0) index = 0;\n                    else return state;\n                }\n                return $0d86e9c8f07f9a7b$var$insert(state, index, ...values);\n            });\n        },\n        insertAfter (key, ...values) {\n            dispatch((state)=>{\n                let index = state.items.findIndex((item)=>getKey(item) === key);\n                if (index === -1) {\n                    if (state.items.length === 0) index = 0;\n                    else return state;\n                }\n                return $0d86e9c8f07f9a7b$var$insert(state, index + 1, ...values);\n            });\n        },\n        prepend (...values) {\n            dispatch((state)=>$0d86e9c8f07f9a7b$var$insert(state, 0, ...values));\n        },\n        append (...values) {\n            dispatch((state)=>$0d86e9c8f07f9a7b$var$insert(state, state.items.length, ...values));\n        },\n        remove (...keys) {\n            dispatch((state)=>{\n                let keySet = new Set(keys);\n                let items = state.items.filter((item)=>!keySet.has(getKey(item)));\n                let selection = 'all';\n                if (state.selectedKeys !== 'all') {\n                    selection = new Set(state.selectedKeys);\n                    for (let key of keys)selection.delete(key);\n                }\n                if (cursor == null && items.length === 0) selection = new Set();\n                return {\n                    ...state,\n                    items: items,\n                    selectedKeys: selection\n                };\n            });\n        },\n        removeSelectedItems () {\n            dispatch((state)=>{\n                if (state.selectedKeys === 'all') return {\n                    ...state,\n                    items: [],\n                    selectedKeys: new Set()\n                };\n                let selectedKeys = state.selectedKeys;\n                let items = state.items.filter((item)=>!selectedKeys.has(getKey(item)));\n                return {\n                    ...state,\n                    items: items,\n                    selectedKeys: new Set()\n                };\n            });\n        },\n        move (key, toIndex) {\n            dispatch((state)=>{\n                let index = state.items.findIndex((item)=>getKey(item) === key);\n                if (index === -1) return state;\n                let copy = state.items.slice();\n                let [item] = copy.splice(index, 1);\n                copy.splice(toIndex, 0, item);\n                return {\n                    ...state,\n                    items: copy\n                };\n            });\n        },\n        moveBefore (key, keys) {\n            dispatch((state)=>{\n                let toIndex = state.items.findIndex((item)=>getKey(item) === key);\n                if (toIndex === -1) return state;\n                // Find indices of keys to move. Sort them so that the order in the list is retained.\n                let keyArray = Array.isArray(keys) ? keys : [\n                    ...keys\n                ];\n                let indices = keyArray.map((key)=>state.items.findIndex((item)=>getKey(item) === key)).sort((a, b)=>a - b);\n                return $0d86e9c8f07f9a7b$var$move(state, indices, toIndex);\n            });\n        },\n        moveAfter (key, keys) {\n            dispatch((state)=>{\n                let toIndex = state.items.findIndex((item)=>getKey(item) === key);\n                if (toIndex === -1) return state;\n                let keyArray = Array.isArray(keys) ? keys : [\n                    ...keys\n                ];\n                let indices = keyArray.map((key)=>state.items.findIndex((item)=>getKey(item) === key)).sort((a, b)=>a - b);\n                return $0d86e9c8f07f9a7b$var$move(state, indices, toIndex + 1);\n            });\n        },\n        update (key, newValue) {\n            dispatch((state)=>{\n                let index = state.items.findIndex((item)=>getKey(item) === key);\n                if (index === -1) return state;\n                return {\n                    ...state,\n                    items: [\n                        ...state.items.slice(0, index),\n                        newValue,\n                        ...state.items.slice(index + 1)\n                    ]\n                };\n            });\n        }\n    };\n}\nfunction $0d86e9c8f07f9a7b$var$insert(state, index, ...values) {\n    return {\n        ...state,\n        items: [\n            ...state.items.slice(0, index),\n            ...values,\n            ...state.items.slice(index)\n        ]\n    };\n}\nfunction $0d86e9c8f07f9a7b$var$move(state, indices, toIndex) {\n    // Shift the target down by the number of items being moved from before the target\n    toIndex -= indices.filter((index)=>index < toIndex).length;\n    let moves = indices.map((from)=>({\n            from: from,\n            to: toIndex++\n        }));\n    // Shift later from indices down if they have a larger index\n    for(let i = 0; i < moves.length; i++){\n        let a = moves[i].from;\n        for(let j = i; j < moves.length; j++){\n            let b = moves[j].from;\n            if (b > a) moves[j].from--;\n        }\n    }\n    // Interleave the moves so they can be applied one by one rather than all at once\n    for(let i = 0; i < moves.length; i++){\n        let a = moves[i];\n        for(let j = moves.length - 1; j > i; j--){\n            let b = moves[j];\n            if (b.from < a.to) a.to++;\n            else b.from++;\n        }\n    }\n    let copy = state.items.slice();\n    for (let move of moves){\n        let [item] = copy.splice(move.from, 1);\n        copy.splice(move.to, 0, item);\n    }\n    return {\n        ...state,\n        items: copy\n    };\n}\n\n\nexport {$0d86e9c8f07f9a7b$export$762f73dccccd255d as useListData, $0d86e9c8f07f9a7b$export$79c0c687a5963b0a as createListActions};\n//# sourceMappingURL=useListData.module.js.map\n","import {createListActions as $0d86e9c8f07f9a7b$export$79c0c687a5963b0a} from \"./useListData.mjs\";\nimport {useReducer as $fh1mr$useReducer, useRef as $fh1mr$useRef, useEffect as $fh1mr$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $f86e6c1ec7da6ebb$var$reducer(data, action) {\n    let selectedKeys;\n    switch(data.state){\n        case 'idle':\n        case 'error':\n            switch(action.type){\n                case 'loading':\n                case 'loadingMore':\n                case 'sorting':\n                case 'filtering':\n                    var _action_filterText, _action_sortDescriptor;\n                    return {\n                        ...data,\n                        filterText: (_action_filterText = action.filterText) !== null && _action_filterText !== void 0 ? _action_filterText : data.filterText,\n                        state: action.type,\n                        // Reset items to an empty list if loading, but not when sorting.\n                        items: action.type === 'loading' ? [] : data.items,\n                        sortDescriptor: (_action_sortDescriptor = action.sortDescriptor) !== null && _action_sortDescriptor !== void 0 ? _action_sortDescriptor : data.sortDescriptor,\n                        abortController: action.abortController\n                    };\n                case 'update':\n                    return {\n                        ...data,\n                        ...action.updater(data)\n                    };\n                case 'success':\n                case 'error':\n                    return data;\n                default:\n                    throw new Error(`Invalid action \"${action.type}\" in state \"${data.state}\"`);\n            }\n        case 'loading':\n        case 'sorting':\n        case 'filtering':\n            switch(action.type){\n                case 'success':\n                    // Ignore if there is a newer abortcontroller in state.\n                    // This means that multiple requests were going at once.\n                    // We want to take only the latest result.\n                    if (action.abortController !== data.abortController) return data;\n                    var _action_selectedKeys;\n                    selectedKeys = (_action_selectedKeys = action.selectedKeys) !== null && _action_selectedKeys !== void 0 ? _action_selectedKeys : data.selectedKeys;\n                    var _action_filterText1, _action_sortDescriptor1;\n                    return {\n                        ...data,\n                        filterText: (_action_filterText1 = action.filterText) !== null && _action_filterText1 !== void 0 ? _action_filterText1 : data.filterText,\n                        state: 'idle',\n                        items: [\n                            ...action.items\n                        ],\n                        selectedKeys: selectedKeys === 'all' ? 'all' : new Set(selectedKeys),\n                        sortDescriptor: (_action_sortDescriptor1 = action.sortDescriptor) !== null && _action_sortDescriptor1 !== void 0 ? _action_sortDescriptor1 : data.sortDescriptor,\n                        abortController: null,\n                        cursor: action.cursor\n                    };\n                case 'error':\n                    if (action.abortController !== data.abortController) return data;\n                    return {\n                        ...data,\n                        state: 'error',\n                        error: action.error,\n                        abortController: null\n                    };\n                case 'loading':\n                case 'loadingMore':\n                case 'sorting':\n                case 'filtering':\n                    // We're already loading, and another load was triggered at the same time.\n                    // We need to abort the previous load and start a new one.\n                    data.abortController.abort();\n                    var _action_filterText2;\n                    return {\n                        ...data,\n                        filterText: (_action_filterText2 = action.filterText) !== null && _action_filterText2 !== void 0 ? _action_filterText2 : data.filterText,\n                        state: action.type,\n                        // Reset items to an empty list if loading, but not when sorting.\n                        items: action.type === 'loading' ? [] : data.items,\n                        abortController: action.abortController\n                    };\n                case 'update':\n                    // We're already loading, and an update happened at the same time (e.g. selectedKey changed).\n                    // Update data but don't abort previous load.\n                    return {\n                        ...data,\n                        ...action.updater(data)\n                    };\n                default:\n                    throw new Error(`Invalid action \"${action.type}\" in state \"${data.state}\"`);\n            }\n        case 'loadingMore':\n            switch(action.type){\n                case 'success':\n                    var _action_selectedKeys1;\n                    selectedKeys = data.selectedKeys === 'all' || action.selectedKeys === 'all' ? 'all' : new Set([\n                        ...data.selectedKeys,\n                        ...(_action_selectedKeys1 = action.selectedKeys) !== null && _action_selectedKeys1 !== void 0 ? _action_selectedKeys1 : []\n                    ]);\n                    var _action_sortDescriptor2;\n                    // Append the new items\n                    return {\n                        ...data,\n                        state: 'idle',\n                        items: [\n                            ...data.items,\n                            ...action.items\n                        ],\n                        selectedKeys: selectedKeys,\n                        sortDescriptor: (_action_sortDescriptor2 = action.sortDescriptor) !== null && _action_sortDescriptor2 !== void 0 ? _action_sortDescriptor2 : data.sortDescriptor,\n                        abortController: null,\n                        cursor: action.cursor\n                    };\n                case 'error':\n                    if (action.abortController !== data.abortController) return data;\n                    return {\n                        ...data,\n                        state: 'error',\n                        error: action.error\n                    };\n                case 'loading':\n                case 'sorting':\n                case 'filtering':\n                    // We're already loading more, and another load was triggered at the same time.\n                    // We need to abort the previous load more and start a new one.\n                    data.abortController.abort();\n                    var _action_filterText3;\n                    return {\n                        ...data,\n                        filterText: (_action_filterText3 = action.filterText) !== null && _action_filterText3 !== void 0 ? _action_filterText3 : data.filterText,\n                        state: action.type,\n                        // Reset items to an empty list if loading, but not when sorting.\n                        items: action.type === 'loading' ? [] : data.items,\n                        abortController: action.abortController\n                    };\n                case 'loadingMore':\n                    // If already loading more and another loading more is triggered, abort the new load more since\n                    // it is a duplicate request since the cursor hasn't been updated.\n                    // Do not overwrite the data.abortController\n                    action.abortController.abort();\n                    return data;\n                case 'update':\n                    // We're already loading, and an update happened at the same time (e.g. selectedKey changed).\n                    // Update data but don't abort previous load.\n                    return {\n                        ...data,\n                        ...action.updater(data)\n                    };\n                default:\n                    throw new Error(`Invalid action \"${action.type}\" in state \"${data.state}\"`);\n            }\n        default:\n            throw new Error(`Invalid state \"${data.state}\"`);\n    }\n}\nfunction $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {\n    const { load: load, sort: sort, initialSelectedKeys: initialSelectedKeys, initialSortDescriptor: initialSortDescriptor, getKey: getKey = (item)=>item.id || item.key, initialFilterText: initialFilterText = '' } = options;\n    let [data, dispatch] = (0, $fh1mr$useReducer)($f86e6c1ec7da6ebb$var$reducer, {\n        state: 'idle',\n        error: null,\n        items: [],\n        selectedKeys: initialSelectedKeys === 'all' ? 'all' : new Set(initialSelectedKeys),\n        sortDescriptor: initialSortDescriptor,\n        filterText: initialFilterText\n    });\n    const dispatchFetch = async (action, fn)=>{\n        let abortController = new AbortController();\n        try {\n            dispatch({\n                ...action,\n                abortController: abortController\n            });\n            var _action_filterText;\n            let previousFilterText = (_action_filterText = action.filterText) !== null && _action_filterText !== void 0 ? _action_filterText : data.filterText;\n            var _action_sortDescriptor;\n            let response = await fn({\n                items: data.items.slice(),\n                selectedKeys: data.selectedKeys,\n                sortDescriptor: (_action_sortDescriptor = action.sortDescriptor) !== null && _action_sortDescriptor !== void 0 ? _action_sortDescriptor : data.sortDescriptor,\n                signal: abortController.signal,\n                cursor: action.type === 'loadingMore' ? data.cursor : null,\n                filterText: previousFilterText\n            });\n            var _response_filterText;\n            let filterText = (_response_filterText = response.filterText) !== null && _response_filterText !== void 0 ? _response_filterText : previousFilterText;\n            dispatch({\n                type: 'success',\n                ...response,\n                abortController: abortController\n            });\n            // Fetch a new filtered list if filterText is updated via `load` response func rather than list.setFilterText\n            // Only do this if not aborted (e.g. user triggers another filter action before load completes)\n            if (filterText && filterText !== previousFilterText && !abortController.signal.aborted) dispatchFetch({\n                type: 'filtering',\n                filterText: filterText\n            }, load);\n        } catch (e) {\n            dispatch({\n                type: 'error',\n                error: e,\n                abortController: abortController\n            });\n        }\n    };\n    let didDispatchInitialFetch = (0, $fh1mr$useRef)(false);\n    (0, $fh1mr$useEffect)(()=>{\n        if (!didDispatchInitialFetch.current) {\n            dispatchFetch({\n                type: 'loading'\n            }, load);\n            didDispatchInitialFetch.current = true;\n        }\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    }, []);\n    return {\n        items: data.items,\n        selectedKeys: data.selectedKeys,\n        sortDescriptor: data.sortDescriptor,\n        isLoading: data.state === 'loading' || data.state === 'loadingMore' || data.state === 'sorting' || data.state === 'filtering',\n        loadingState: data.state,\n        error: data.error,\n        filterText: data.filterText,\n        getItem (key) {\n            return data.items.find((item)=>getKey(item) === key);\n        },\n        reload () {\n            dispatchFetch({\n                type: 'loading'\n            }, load);\n        },\n        loadMore () {\n            // Ignore if already loading more or if performing server side filtering.\n            if (data.state === 'loadingMore' || data.state === 'filtering' || data.cursor == null) return;\n            dispatchFetch({\n                type: 'loadingMore'\n            }, load);\n        },\n        sort (sortDescriptor) {\n            dispatchFetch({\n                type: 'sorting',\n                sortDescriptor: sortDescriptor\n            }, sort || load);\n        },\n        ...(0, $0d86e9c8f07f9a7b$export$79c0c687a5963b0a)({\n            ...options,\n            getKey: getKey,\n            cursor: data.cursor\n        }, (fn)=>{\n            dispatch({\n                type: 'update',\n                updater: fn\n            });\n        }),\n        setFilterText (filterText) {\n            dispatchFetch({\n                type: 'filtering',\n                filterText: filterText\n            }, load);\n        }\n    };\n}\n\n\nexport {$f86e6c1ec7da6ebb$export$bc3384a35de93d66 as useAsyncList};\n//# sourceMappingURL=useAsyncList.module.js.map\n","import {useState as $3pPTd$useState} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $be2ea0343af54212$export$d14e1352e21f4a16(options) {\n    let { initialItems: initialItems = [], initialSelectedKeys: initialSelectedKeys, getKey: getKey = (item)=>item.id || item.key, getChildren: getChildren = (item)=>item.children } = options;\n    // We only want to compute this on initial render.\n    let [tree, setItems] = (0, $3pPTd$useState)(()=>buildTree(initialItems, new Map()));\n    let { items: items, nodeMap: nodeMap } = tree;\n    let [selectedKeys, setSelectedKeys] = (0, $3pPTd$useState)(new Set(initialSelectedKeys || []));\n    function buildTree(initialItems = [], map, parentKey) {\n        return {\n            items: initialItems.map((item)=>{\n                let node = {\n                    key: getKey(item),\n                    parentKey: parentKey,\n                    value: item,\n                    children: null\n                };\n                node.children = buildTree(getChildren(item), map, node.key).items;\n                map.set(node.key, node);\n                return node;\n            }),\n            nodeMap: map\n        };\n    }\n    function updateTree(items, key, update, originalMap) {\n        let node = originalMap.get(key);\n        if (!node) return {\n            items: items,\n            nodeMap: originalMap\n        };\n        let map = new Map(originalMap);\n        // Create a new node. If null, then delete the node, otherwise replace.\n        let newNode = update(node);\n        if (newNode == null) deleteNode(node, map);\n        else addNode(newNode, map);\n        // Walk up the tree and update each parent to refer to the new children.\n        while(node.parentKey){\n            let nextParent = map.get(node.parentKey);\n            let copy = {\n                key: nextParent.key,\n                parentKey: nextParent.parentKey,\n                value: nextParent.value,\n                children: null\n            };\n            let children = nextParent.children;\n            if (newNode == null) children = children.filter((c)=>c !== node);\n            copy.children = children.map((child)=>{\n                if (child === node) return newNode;\n                return child;\n            });\n            map.set(copy.key, copy);\n            newNode = copy;\n            node = nextParent;\n        }\n        if (newNode == null) items = items.filter((c)=>c !== node);\n        return {\n            items: items.map((item)=>{\n                if (item === node) return newNode;\n                return item;\n            }),\n            nodeMap: map\n        };\n    }\n    function addNode(node, map) {\n        map.set(node.key, node);\n        for (let child of node.children)addNode(child, map);\n    }\n    function deleteNode(node, map) {\n        map.delete(node.key);\n        for (let child of node.children)deleteNode(child, map);\n    }\n    return {\n        items: items,\n        selectedKeys: selectedKeys,\n        setSelectedKeys: setSelectedKeys,\n        getItem (key) {\n            return nodeMap.get(key);\n        },\n        insert (parentKey, index, ...values) {\n            setItems(({ items: items, nodeMap: originalMap })=>{\n                let { items: newNodes, nodeMap: newMap } = buildTree(values, originalMap, parentKey);\n                // If parentKey is null, insert into the root.\n                if (parentKey == null) return {\n                    items: [\n                        ...items.slice(0, index),\n                        ...newNodes,\n                        ...items.slice(index)\n                    ],\n                    nodeMap: newMap\n                };\n                // Otherwise, update the parent node and its ancestors.\n                return updateTree(items, parentKey, (parentNode)=>({\n                        key: parentNode.key,\n                        parentKey: parentNode.parentKey,\n                        value: parentNode.value,\n                        children: [\n                            ...parentNode.children.slice(0, index),\n                            ...newNodes,\n                            ...parentNode.children.slice(index)\n                        ]\n                    }), newMap);\n            });\n        },\n        insertBefore (key, ...values) {\n            let node = nodeMap.get(key);\n            if (!node) return;\n            let parentNode = nodeMap.get(node.parentKey);\n            let nodes = parentNode ? parentNode.children : items;\n            let index = nodes.indexOf(node);\n            this.insert(parentNode === null || parentNode === void 0 ? void 0 : parentNode.key, index, ...values);\n        },\n        insertAfter (key, ...values) {\n            let node = nodeMap.get(key);\n            if (!node) return;\n            let parentNode = nodeMap.get(node.parentKey);\n            let nodes = parentNode ? parentNode.children : items;\n            let index = nodes.indexOf(node);\n            this.insert(parentNode === null || parentNode === void 0 ? void 0 : parentNode.key, index + 1, ...values);\n        },\n        prepend (parentKey, ...values) {\n            this.insert(parentKey, 0, ...values);\n        },\n        append (parentKey, ...values) {\n            if (parentKey == null) this.insert(null, items.length, ...values);\n            else {\n                let parentNode = nodeMap.get(parentKey);\n                if (!parentNode) return;\n                this.insert(parentKey, parentNode.children.length, ...values);\n            }\n        },\n        remove (...keys) {\n            if (keys.length === 0) return;\n            let newItems = items;\n            let prevMap = nodeMap;\n            let newTree;\n            for (let key of keys){\n                newTree = updateTree(newItems, key, ()=>null, prevMap);\n                prevMap = newTree.nodeMap;\n                newItems = newTree.items;\n            }\n            setItems(newTree);\n            let selection = new Set(selectedKeys);\n            for (let key of selectedKeys)if (!newTree.nodeMap.has(key)) selection.delete(key);\n            setSelectedKeys(selection);\n        },\n        removeSelectedItems () {\n            this.remove(...selectedKeys);\n        },\n        move (key, toParentKey, index) {\n            setItems(({ items: items, nodeMap: originalMap })=>{\n                let node = originalMap.get(key);\n                if (!node) return {\n                    items: items,\n                    nodeMap: originalMap\n                };\n                let { items: newItems, nodeMap: newMap } = updateTree(items, key, ()=>null, originalMap);\n                const movedNode = {\n                    ...node,\n                    parentKey: toParentKey\n                };\n                // If parentKey is null, insert into the root.\n                if (toParentKey == null) {\n                    newMap.set(movedNode.key, movedNode);\n                    return {\n                        items: [\n                            ...newItems.slice(0, index),\n                            movedNode,\n                            ...newItems.slice(index)\n                        ],\n                        nodeMap: newMap\n                    };\n                }\n                // Otherwise, update the parent node and its ancestors.\n                return updateTree(newItems, toParentKey, (parentNode)=>({\n                        key: parentNode.key,\n                        parentKey: parentNode.parentKey,\n                        value: parentNode.value,\n                        children: [\n                            ...parentNode.children.slice(0, index),\n                            movedNode,\n                            ...parentNode.children.slice(index)\n                        ]\n                    }), newMap);\n            });\n        },\n        update (oldKey, newValue) {\n            setItems(({ items: items, nodeMap: originalMap })=>updateTree(items, oldKey, (oldNode)=>{\n                    let node = {\n                        key: oldNode.key,\n                        parentKey: oldNode.parentKey,\n                        value: newValue,\n                        children: null\n                    };\n                    let tree = buildTree(getChildren(newValue), originalMap, node.key);\n                    node.children = tree.items;\n                    return node;\n                }, originalMap));\n        }\n    };\n}\n\n\nexport {$be2ea0343af54212$export$d14e1352e21f4a16 as useTreeData};\n//# sourceMappingURL=useTreeData.module.js.map\n","import {useFormValidationState as $l55kx$useFormValidationState} from \"@react-stately/form\";\nimport {useControlledState as $l55kx$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $l55kx$useMemo, useState as $l55kx$useState} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nlet $a54cdc5c1942b639$var$instance = Math.round(Math.random() * 10000000000);\nlet $a54cdc5c1942b639$var$i = 0;\nfunction $a54cdc5c1942b639$export$bca9d026f8e704eb(props) {\n    // Preserved here for backward compatibility. React Aria now generates the name instead of stately.\n    let name = (0, $l55kx$useMemo)(()=>props.name || `radio-group-${$a54cdc5c1942b639$var$instance}-${++$a54cdc5c1942b639$var$i}`, [\n        props.name\n    ]);\n    var _props_defaultValue;\n    let [selectedValue, setSelected] = (0, $l55kx$useControlledState)(props.value, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : null, props.onChange);\n    let [lastFocusedValue, setLastFocusedValue] = (0, $l55kx$useState)(null);\n    let validation = (0, $l55kx$useFormValidationState)({\n        ...props,\n        value: selectedValue\n    });\n    let setSelectedValue = (value)=>{\n        if (!props.isReadOnly && !props.isDisabled) {\n            setSelected(value);\n            validation.commitValidation();\n        }\n    };\n    let isInvalid = validation.displayValidation.isInvalid;\n    return {\n        ...validation,\n        name: name,\n        selectedValue: selectedValue,\n        setSelectedValue: setSelectedValue,\n        lastFocusedValue: lastFocusedValue,\n        setLastFocusedValue: setLastFocusedValue,\n        isDisabled: props.isDisabled || false,\n        isReadOnly: props.isReadOnly || false,\n        isRequired: props.isRequired || false,\n        validationState: props.validationState || (isInvalid ? 'invalid' : null),\n        isInvalid: isInvalid\n    };\n}\n\n\nexport {$a54cdc5c1942b639$export$bca9d026f8e704eb as useRadioGroupState};\n//# sourceMappingURL=useRadioGroupState.module.js.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ class $05ca4cd7c4a5a999$export$863faf230ee2118a {\n    *[Symbol.iterator]() {\n        yield* this.iterable;\n    }\n    get size() {\n        return this.keyMap.size;\n    }\n    getKeys() {\n        return this.keyMap.keys();\n    }\n    getKeyBefore(key) {\n        let node = this.keyMap.get(key);\n        return node ? node.prevKey : null;\n    }\n    getKeyAfter(key) {\n        let node = this.keyMap.get(key);\n        return node ? node.nextKey : null;\n    }\n    getFirstKey() {\n        return this.firstKey;\n    }\n    getLastKey() {\n        return this.lastKey;\n    }\n    getItem(key) {\n        return this.keyMap.get(key);\n    }\n    at(idx) {\n        const keys = [\n            ...this.getKeys()\n        ];\n        return this.getItem(keys[idx]);\n    }\n    constructor(nodes, { expandedKeys: expandedKeys } = {}){\n        this.keyMap = new Map();\n        this.iterable = nodes;\n        expandedKeys = expandedKeys || new Set();\n        let visit = (node)=>{\n            this.keyMap.set(node.key, node);\n            if (node.childNodes && (node.type === 'section' || expandedKeys.has(node.key))) for (let child of node.childNodes)visit(child);\n        };\n        for (let node of nodes)visit(node);\n        let last;\n        let index = 0;\n        for (let [key, node] of this.keyMap){\n            if (last) {\n                last.nextKey = key;\n                node.prevKey = last.key;\n            } else {\n                this.firstKey = key;\n                node.prevKey = undefined;\n            }\n            if (node.type === 'item') node.index = index++;\n            last = node;\n            // Set nextKey as undefined since this might be the last node\n            // If it isn't the last node, last.nextKey will properly set at start of new loop\n            last.nextKey = undefined;\n        }\n        this.lastKey = last === null || last === void 0 ? void 0 : last.key;\n    }\n}\n\n\nexport {$05ca4cd7c4a5a999$export$863faf230ee2118a as TreeCollection};\n//# sourceMappingURL=TreeCollection.module.js.map\n","import {TreeCollection as $05ca4cd7c4a5a999$export$863faf230ee2118a} from \"./TreeCollection.mjs\";\nimport {useMultipleSelectionState as $75HV2$useMultipleSelectionState, SelectionManager as $75HV2$SelectionManager} from \"@react-stately/selection\";\nimport {useMemo as $75HV2$useMemo, useCallback as $75HV2$useCallback, useEffect as $75HV2$useEffect} from \"react\";\nimport {useCollection as $75HV2$useCollection} from \"@react-stately/collections\";\nimport {useControlledState as $75HV2$useControlledState} from \"@react-stately/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $875d6693e12af071$export$728d6ba534403756(props) {\n    let { onExpandedChange: onExpandedChange } = props;\n    let [expandedKeys, setExpandedKeys] = (0, $75HV2$useControlledState)(props.expandedKeys ? new Set(props.expandedKeys) : undefined, props.defaultExpandedKeys ? new Set(props.defaultExpandedKeys) : new Set(), onExpandedChange);\n    let selectionState = (0, $75HV2$useMultipleSelectionState)(props);\n    let disabledKeys = (0, $75HV2$useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [\n        props.disabledKeys\n    ]);\n    let tree = (0, $75HV2$useCollection)(props, (0, $75HV2$useCallback)((nodes)=>new (0, $05ca4cd7c4a5a999$export$863faf230ee2118a)(nodes, {\n            expandedKeys: expandedKeys\n        }), [\n        expandedKeys\n    ]), null);\n    // Reset focused key if that item is deleted from the collection.\n    (0, $75HV2$useEffect)(()=>{\n        if (selectionState.focusedKey != null && !tree.getItem(selectionState.focusedKey)) selectionState.setFocusedKey(null);\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    }, [\n        tree,\n        selectionState.focusedKey\n    ]);\n    let onToggle = (key)=>{\n        setExpandedKeys($875d6693e12af071$var$toggleKey(expandedKeys, key));\n    };\n    return {\n        collection: tree,\n        expandedKeys: expandedKeys,\n        disabledKeys: disabledKeys,\n        toggleKey: onToggle,\n        setExpandedKeys: setExpandedKeys,\n        selectionManager: new (0, $75HV2$SelectionManager)(tree, selectionState)\n    };\n}\nfunction $875d6693e12af071$var$toggleKey(set, key) {\n    let res = new Set(set);\n    if (res.has(key)) res.delete(key);\n    else res.add(key);\n    return res;\n}\n\n\nexport {$875d6693e12af071$export$728d6ba534403756 as useTreeState};\n//# sourceMappingURL=useTreeState.module.js.map\n","import {ButtonContext as $d2b4bc8c273e7be6$export$24d547caef80ccd1} from \"./Button.mjs\";\nimport {Provider as $64fa3d84918910a7$export$2881499e37b75b9a, removeDataAttributes as $64fa3d84918910a7$export$ef03459518577ad4, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, useSlottedContext as $64fa3d84918910a7$export$fabf2dc03a41866e} from \"./utils.mjs\";\nimport {FieldErrorContext as $ee014567cb39d3f0$export$ff05c3ac10437e03} from \"./FieldError.mjs\";\nimport {FormContext as $d3e0e05bdfcf66bd$export$c24727297075ec6a} from \"./Form.mjs\";\nimport {GroupContext as $a049562f99e7db0e$export$f9c6924e160136d1} from \"./Group.mjs\";\nimport {InputContext as $3985021b0ad6602f$export$37fb8590cf2c088c} from \"./Input.mjs\";\nimport {LabelContext as $01b77f81d0f07f68$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {ListBoxContext as $eed445e0843c11d0$export$7ff8f37d2d81a48d, ListStateContext as $eed445e0843c11d0$export$7c5906fe4f1f2af2} from \"./ListBox.mjs\";\nimport {OverlayTriggerStateContext as $de32f1b87079253c$export$d2f961adcb0afbe} from \"./Dialog.mjs\";\nimport {PopoverContext as $07b14b47974efb58$export$9b9a0cd73afb7ca4} from \"./Popover.mjs\";\nimport {TextContext as $514c0188e459b4c0$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useFilter as $cP7hC$useFilter, useComboBox as $cP7hC$useComboBox} from \"react-aria\";\nimport {useComboBoxState as $cP7hC$useComboBoxState} from \"react-stately\";\nimport {CollectionBuilder as $cP7hC$CollectionBuilder} from \"@react-aria/collections\";\nimport {useResizeObserver as $cP7hC$useResizeObserver, filterDOMProps as $cP7hC$filterDOMProps} from \"@react-aria/utils\";\nimport $cP7hC$react, {createContext as $cP7hC$createContext, useMemo as $cP7hC$useMemo, useRef as $cP7hC$useRef, useState as $cP7hC$useState, useCallback as $cP7hC$useCallback, forwardRef as $cP7hC$forwardRef} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst $d01f2c01039c0eec$export$d414ccceff7063c3 = /*#__PURE__*/ (0, $cP7hC$createContext)(null);\nconst $d01f2c01039c0eec$export$c02625b26074192c = /*#__PURE__*/ (0, $cP7hC$createContext)(null);\nfunction $d01f2c01039c0eec$var$ComboBox(props, ref) {\n    [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $d01f2c01039c0eec$export$d414ccceff7063c3);\n    let { children: children, isDisabled: isDisabled = false, isInvalid: isInvalid = false, isRequired: isRequired = false } = props;\n    let content = (0, $cP7hC$useMemo)(()=>/*#__PURE__*/ {\n        var _props_items;\n        return (0, $cP7hC$react).createElement((0, $eed445e0843c11d0$export$7ff8f37d2d81a48d).Provider, {\n            value: {\n                items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems\n            }\n        }, typeof children === 'function' ? children({\n            isOpen: false,\n            isDisabled: isDisabled,\n            isInvalid: isInvalid,\n            isRequired: isRequired,\n            defaultChildren: null\n        }) : children);\n    }, [\n        children,\n        isDisabled,\n        isInvalid,\n        isRequired,\n        props.items,\n        props.defaultItems\n    ]);\n    return /*#__PURE__*/ (0, $cP7hC$react).createElement((0, $cP7hC$CollectionBuilder), {\n        content: content\n    }, (collection)=>/*#__PURE__*/ (0, $cP7hC$react).createElement($d01f2c01039c0eec$var$ComboBoxInner, {\n            props: props,\n            collection: collection,\n            comboBoxRef: ref\n        }));\n}\nfunction $d01f2c01039c0eec$var$ComboBoxInner({ props: props, collection: collection, comboBoxRef: ref }) {\n    let { name: name, formValue: formValue = 'key', allowsCustomValue: allowsCustomValue } = props;\n    if (allowsCustomValue) formValue = 'text';\n    let { validationBehavior: formValidationBehavior } = (0, $64fa3d84918910a7$export$fabf2dc03a41866e)((0, $d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};\n    var _props_validationBehavior, _ref;\n    let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';\n    let { contains: contains } = (0, $cP7hC$useFilter)({\n        sensitivity: 'base'\n    });\n    let state = (0, $cP7hC$useComboBoxState)({\n        defaultFilter: props.defaultFilter || contains,\n        ...props,\n        // If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)\n        items: props.items,\n        children: undefined,\n        collection: collection,\n        validationBehavior: validationBehavior\n    });\n    let buttonRef = (0, $cP7hC$useRef)(null);\n    let inputRef = (0, $cP7hC$useRef)(null);\n    let listBoxRef = (0, $cP7hC$useRef)(null);\n    let popoverRef = (0, $cP7hC$useRef)(null);\n    let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)();\n    let { buttonProps: buttonProps, inputProps: inputProps, listBoxProps: listBoxProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = (0, $cP7hC$useComboBox)({\n        ...(0, $64fa3d84918910a7$export$ef03459518577ad4)(props),\n        label: label,\n        inputRef: inputRef,\n        buttonRef: buttonRef,\n        listBoxRef: listBoxRef,\n        popoverRef: popoverRef,\n        name: formValue === 'text' ? name : undefined,\n        validationBehavior: validationBehavior\n    }, state);\n    // Make menu width match input + button\n    let [menuWidth, setMenuWidth] = (0, $cP7hC$useState)(null);\n    let onResize = (0, $cP7hC$useCallback)(()=>{\n        if (inputRef.current) {\n            var _buttonRef_current;\n            let buttonRect = (_buttonRef_current = buttonRef.current) === null || _buttonRef_current === void 0 ? void 0 : _buttonRef_current.getBoundingClientRect();\n            let inputRect = inputRef.current.getBoundingClientRect();\n            let minX = buttonRect ? Math.min(buttonRect.left, inputRect.left) : inputRect.left;\n            let maxX = buttonRect ? Math.max(buttonRect.right, inputRect.right) : inputRect.right;\n            setMenuWidth(maxX - minX + 'px');\n        }\n    }, [\n        buttonRef,\n        inputRef,\n        setMenuWidth\n    ]);\n    (0, $cP7hC$useResizeObserver)({\n        ref: inputRef,\n        onResize: onResize\n    });\n    // Only expose a subset of state to renderProps function to avoid infinite render loop\n    let renderPropsState = (0, $cP7hC$useMemo)(()=>({\n            isOpen: state.isOpen,\n            isDisabled: props.isDisabled || false,\n            isInvalid: validation.isInvalid || false,\n            isRequired: props.isRequired || false\n        }), [\n        state.isOpen,\n        props.isDisabled,\n        validation.isInvalid,\n        props.isRequired\n    ]);\n    let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n        ...props,\n        values: renderPropsState,\n        defaultClassName: 'react-aria-ComboBox'\n    });\n    let DOMProps = (0, $cP7hC$filterDOMProps)(props);\n    delete DOMProps.id;\n    var _state_selectedKey;\n    return /*#__PURE__*/ (0, $cP7hC$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n        values: [\n            [\n                $d01f2c01039c0eec$export$c02625b26074192c,\n                state\n            ],\n            [\n                (0, $01b77f81d0f07f68$export$75b6ee27786ba447),\n                {\n                    ...labelProps,\n                    ref: labelRef\n                }\n            ],\n            [\n                (0, $d2b4bc8c273e7be6$export$24d547caef80ccd1),\n                {\n                    ...buttonProps,\n                    ref: buttonRef,\n                    isPressed: state.isOpen\n                }\n            ],\n            [\n                (0, $3985021b0ad6602f$export$37fb8590cf2c088c),\n                {\n                    ...inputProps,\n                    ref: inputRef\n                }\n            ],\n            [\n                (0, $de32f1b87079253c$export$d2f961adcb0afbe),\n                state\n            ],\n            [\n                (0, $07b14b47974efb58$export$9b9a0cd73afb7ca4),\n                {\n                    ref: popoverRef,\n                    triggerRef: inputRef,\n                    scrollRef: listBoxRef,\n                    placement: 'bottom start',\n                    isNonModal: true,\n                    trigger: 'ComboBox',\n                    style: {\n                        '--trigger-width': menuWidth\n                    }\n                }\n            ],\n            [\n                (0, $eed445e0843c11d0$export$7ff8f37d2d81a48d),\n                {\n                    ...listBoxProps,\n                    ref: listBoxRef\n                }\n            ],\n            [\n                (0, $eed445e0843c11d0$export$7c5906fe4f1f2af2),\n                state\n            ],\n            [\n                (0, $514c0188e459b4c0$export$9afb8bc826b033ea),\n                {\n                    slots: {\n                        description: descriptionProps,\n                        errorMessage: errorMessageProps\n                    }\n                }\n            ],\n            [\n                (0, $a049562f99e7db0e$export$f9c6924e160136d1),\n                {\n                    isInvalid: validation.isInvalid,\n                    isDisabled: props.isDisabled || false\n                }\n            ],\n            [\n                (0, $ee014567cb39d3f0$export$ff05c3ac10437e03),\n                validation\n            ]\n        ]\n    }, /*#__PURE__*/ (0, $cP7hC$react).createElement(\"div\", {\n        ...DOMProps,\n        ...renderProps,\n        ref: ref,\n        slot: props.slot || undefined,\n        \"data-focused\": state.isFocused || undefined,\n        \"data-open\": state.isOpen || undefined,\n        \"data-disabled\": props.isDisabled || undefined,\n        \"data-invalid\": validation.isInvalid || undefined,\n        \"data-required\": props.isRequired || undefined\n    }), name && formValue === 'key' && /*#__PURE__*/ (0, $cP7hC$react).createElement(\"input\", {\n        type: \"hidden\",\n        name: name,\n        value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : ''\n    }));\n}\n/**\n * A combo box combines a text input with a listbox, allowing users to filter a list of options to items matching a query.\n */ const $d01f2c01039c0eec$export$72b9695b8216309a = /*#__PURE__*/ (0, $cP7hC$forwardRef)($d01f2c01039c0eec$var$ComboBox);\n\n\nexport {$d01f2c01039c0eec$export$d414ccceff7063c3 as ComboBoxContext, $d01f2c01039c0eec$export$c02625b26074192c as ComboBoxStateContext, $d01f2c01039c0eec$export$72b9695b8216309a as ComboBox};\n//# sourceMappingURL=ComboBox.module.js.map\n","import {Provider as $64fa3d84918910a7$export$2881499e37b75b9a, removeDataAttributes as $64fa3d84918910a7$export$ef03459518577ad4, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, useSlottedContext as $64fa3d84918910a7$export$fabf2dc03a41866e} from \"./utils.mjs\";\nimport {FieldErrorContext as $ee014567cb39d3f0$export$ff05c3ac10437e03} from \"./FieldError.mjs\";\nimport {FormContext as $d3e0e05bdfcf66bd$export$c24727297075ec6a} from \"./Form.mjs\";\nimport {LabelContext as $01b77f81d0f07f68$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {TextContext as $514c0188e459b4c0$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useRadioGroup as $3sixo$useRadioGroup, useRadio as $3sixo$useRadio, useFocusRing as $3sixo$useFocusRing, useHover as $3sixo$useHover, VisuallyHidden as $3sixo$VisuallyHidden} from \"react-aria\";\nimport {useObjectRef as $3sixo$useObjectRef, mergeRefs as $3sixo$mergeRefs, filterDOMProps as $3sixo$filterDOMProps, mergeProps as $3sixo$mergeProps} from \"@react-aria/utils\";\nimport {useRadioGroupState as $3sixo$useRadioGroupState} from \"react-stately\";\nimport $3sixo$react, {createContext as $3sixo$createContext, forwardRef as $3sixo$forwardRef} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\nconst $b6c3ddc6086f204d$export$a79eda4ff50e30b6 = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$b118023277d4a5c3 = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$29d84393af70866c = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nfunction $b6c3ddc6086f204d$var$RadioGroup(props, ref) {\n    [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $b6c3ddc6086f204d$export$a79eda4ff50e30b6);\n    let { validationBehavior: formValidationBehavior } = (0, $64fa3d84918910a7$export$fabf2dc03a41866e)((0, $d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};\n    var _props_validationBehavior, _ref;\n    let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';\n    let state = (0, $3sixo$useRadioGroupState)({\n        ...props,\n        validationBehavior: validationBehavior\n    });\n    let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)();\n    let { radioGroupProps: radioGroupProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = (0, $3sixo$useRadioGroup)({\n        ...props,\n        label: label,\n        validationBehavior: validationBehavior\n    }, state);\n    let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n        ...props,\n        values: {\n            orientation: props.orientation || 'vertical',\n            isDisabled: state.isDisabled,\n            isReadOnly: state.isReadOnly,\n            isRequired: state.isRequired,\n            isInvalid: state.isInvalid,\n            state: state\n        },\n        defaultClassName: 'react-aria-RadioGroup'\n    });\n    return /*#__PURE__*/ (0, $3sixo$react).createElement(\"div\", {\n        ...radioGroupProps,\n        ...renderProps,\n        ref: ref,\n        slot: props.slot || undefined,\n        \"data-orientation\": props.orientation || 'vertical',\n        \"data-invalid\": state.isInvalid || undefined,\n        \"data-disabled\": state.isDisabled || undefined,\n        \"data-readonly\": state.isReadOnly || undefined,\n        \"data-required\": state.isRequired || undefined\n    }, /*#__PURE__*/ (0, $3sixo$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n        values: [\n            [\n                $b6c3ddc6086f204d$export$29d84393af70866c,\n                state\n            ],\n            [\n                (0, $01b77f81d0f07f68$export$75b6ee27786ba447),\n                {\n                    ...labelProps,\n                    ref: labelRef,\n                    elementType: 'span'\n                }\n            ],\n            [\n                (0, $514c0188e459b4c0$export$9afb8bc826b033ea),\n                {\n                    slots: {\n                        description: descriptionProps,\n                        errorMessage: errorMessageProps\n                    }\n                }\n            ],\n            [\n                (0, $ee014567cb39d3f0$export$ff05c3ac10437e03),\n                validation\n            ]\n        ]\n    }, renderProps.children));\n}\nfunction $b6c3ddc6086f204d$var$Radio(props, ref) {\n    let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n    [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(otherProps, ref, $b6c3ddc6086f204d$export$b118023277d4a5c3);\n    let state = (0, $3sixo$react).useContext($b6c3ddc6086f204d$export$29d84393af70866c);\n    let inputRef = (0, $3sixo$useObjectRef)((0, $3sixo$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null));\n    let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isPressed: isPressed } = (0, $3sixo$useRadio)({\n        ...(0, $64fa3d84918910a7$export$ef03459518577ad4)(props),\n        // ReactNode type doesn't allow function children.\n        children: typeof props.children === 'function' ? true : props.children\n    }, state, inputRef);\n    let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $3sixo$useFocusRing)();\n    let interactionDisabled = isDisabled || state.isReadOnly;\n    let { hoverProps: hoverProps, isHovered: isHovered } = (0, $3sixo$useHover)({\n        ...props,\n        isDisabled: interactionDisabled\n    });\n    let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n        ...props,\n        defaultClassName: 'react-aria-Radio',\n        values: {\n            isSelected: isSelected,\n            isPressed: isPressed,\n            isHovered: isHovered,\n            isFocused: isFocused,\n            isFocusVisible: isFocusVisible,\n            isDisabled: isDisabled,\n            isReadOnly: state.isReadOnly,\n            isInvalid: state.isInvalid,\n            isRequired: state.isRequired\n        }\n    });\n    let DOMProps = (0, $3sixo$filterDOMProps)(props);\n    delete DOMProps.id;\n    return /*#__PURE__*/ (0, $3sixo$react).createElement(\"label\", {\n        ...(0, $3sixo$mergeProps)(DOMProps, labelProps, hoverProps, renderProps),\n        ref: ref,\n        \"data-selected\": isSelected || undefined,\n        \"data-pressed\": isPressed || undefined,\n        \"data-hovered\": isHovered || undefined,\n        \"data-focused\": isFocused || undefined,\n        \"data-focus-visible\": isFocusVisible || undefined,\n        \"data-disabled\": isDisabled || undefined,\n        \"data-readonly\": state.isReadOnly || undefined,\n        \"data-invalid\": state.isInvalid || undefined,\n        \"data-required\": state.isRequired || undefined\n    }, /*#__PURE__*/ (0, $3sixo$react).createElement((0, $3sixo$VisuallyHidden), {\n        elementType: \"span\"\n    }, /*#__PURE__*/ (0, $3sixo$react).createElement(\"input\", {\n        ...(0, $3sixo$mergeProps)(inputProps, focusProps),\n        ref: inputRef\n    })), renderProps.children);\n}\n/**\n * A radio group allows a user to select a single item from a list of mutually exclusive options.\n */ const $b6c3ddc6086f204d$export$a98f0dcb43a68a25 = /*#__PURE__*/ (0, $3sixo$forwardRef)($b6c3ddc6086f204d$var$RadioGroup);\n/**\n * A radio represents an individual option within a radio group.\n */ const $b6c3ddc6086f204d$export$d7b12c4107be0d61 = /*#__PURE__*/ (0, $3sixo$forwardRef)($b6c3ddc6086f204d$var$Radio);\n\n\nexport {$b6c3ddc6086f204d$export$a79eda4ff50e30b6 as RadioGroupContext, $b6c3ddc6086f204d$export$b118023277d4a5c3 as RadioContext, $b6c3ddc6086f204d$export$29d84393af70866c as RadioGroupStateContext, $b6c3ddc6086f204d$export$a98f0dcb43a68a25 as RadioGroup, $b6c3ddc6086f204d$export$d7b12c4107be0d61 as Radio};\n//# sourceMappingURL=RadioGroup.module.js.map\n","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z\"\n}), 'Assignment');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M22 13v3c0 1.1-.9 2-2 2h-3l1 1v2H6v-2l1-1H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8v2H4v11h16v-3zm-7 2-5-5 1.41-1.41L14 11.17V3h2v8.17l2.59-2.58L20 10z\"\n}), 'BrowserUpdatedOutlined');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z\"\n}), 'ContentCopyOutlined');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z\"\n}), 'EditOutlined');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z\"\n}), 'Folder');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m-1-4h2v2h-2zm1.61-9.96c-2.06-.3-3.88.97-4.43 2.79-.18.58.26 1.17.87 1.17h.2c.41 0 .74-.29.88-.67.32-.89 1.27-1.5 2.3-1.28.95.2 1.65 1.13 1.57 2.1-.1 1.34-1.62 1.63-2.45 2.88 0 .01-.01.01-.01.02-.01.02-.02.03-.03.05-.09.15-.18.32-.25.5-.01.03-.03.05-.04.08-.01.02-.01.04-.02.07-.12.34-.2.75-.2 1.25h2c0-.42.11-.77.28-1.07.02-.03.03-.06.05-.09.08-.14.18-.27.28-.39.01-.01.02-.03.03-.04.1-.12.21-.23.33-.34.96-.91 2.26-1.65 1.99-3.56-.24-1.74-1.61-3.21-3.35-3.47\"\n}), 'HelpOutlineRounded');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z\"\n}), 'KeyboardArrowDownOutlined');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z\"\n}), 'KeyboardArrowRightOutlined');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4\"\n}), 'Person');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm2 16H5V5h11.17L19 7.83zm-7-7c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3M6 6h9v4H6z\"\n}), 'SaveOutlined');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14\"\n}), 'SearchOutlined');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M20 4H4v2h16zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6zm-9 4H6v-4h6z\"\n}), 'Store');","import { useEffect, useRef } from 'react';\r\nimport { Key, useAsyncList } from 'react-stately';\r\nimport { AutoCompleteInternalProps } from './models';\r\n\r\nexport function useAutoCompleteInternal<TContent extends string | object>(props: AutoCompleteInternalProps<TContent>) {\r\n    const { value, getItemId, suggestions, getItemText, onSelect, onTextChange, isComboBox, isAutoComplete } = props,\r\n        selectedRef = useRef<TContent | null>(null),\r\n        triggerRef = useRef<HTMLInputElement>(null);\r\n\r\n    const list = useAsyncList<TContent>({\r\n        async load({ signal, filterText }) {\r\n            // For the autocomplete if there is no filter text, return an empty list and do not make a request.\r\n            if (isAutoComplete && !filterText?.length) return { items: [] };\r\n\r\n            // For the autocomplete if the selected item matches the filter text, return an empty list and do not make another request.\r\n            if (isAutoComplete && selectionMatchesFilterText()) return { items: [] };\r\n\r\n            // For the combobox if the selected item matches the filter text, return the full list so the user can change the selection again.\r\n            if (isComboBox && selectionMatchesFilterText()) return { items: await suggestions(undefined) };\r\n\r\n            return { items: await suggestions(filterText, signal) };\r\n\r\n            function selectionMatchesFilterText() {\r\n                return (\r\n                    selectedRef.current && getItemText(selectedRef.current).toLowerCase() === filterText?.toLowerCase()\r\n                );\r\n            }\r\n        },\r\n\r\n        getKey: getItemId,\r\n        initialFilterText: value.content ? value.content : undefined,\r\n    });\r\n\r\n    // Update the filter text when the value changes.\r\n    useEffect(() => list.setFilterText(value.content ? value.content : ''), [value.content]);\r\n\r\n    // Update the text value in the parent component when the filter text changes.\r\n    useEffect(() => onTextChange(list.filterText), [list.filterText]);\r\n\r\n    // Add keyboard event listener to blur the input when the escape key is pressed.\r\n    useEffect(() => {\r\n        document.addEventListener('keyup', blurInputOnEscapeKeyUp);\r\n        return () => document.removeEventListener('keyup', blurInputOnEscapeKeyUp);\r\n    }, []);\r\n\r\n    return { list, onSelectionChange, triggerRef, clearComboBoxText };\r\n\r\n    /** Sets the selected item if found in the list. */\r\n    function onSelectionChange(key: Key | null) {\r\n        if (key) {\r\n            const item = list.getItem(key);\r\n            onSelect(item);\r\n            selectedRef.current = item;\r\n            return;\r\n        }\r\n\r\n        selectedRef.current = null;\r\n    }\r\n\r\n    /** Clears out the combobox text if it does not match an item in the list. */\r\n    function clearComboBoxText() {\r\n        if (\r\n            isComboBox &&\r\n            list.items.every(item => getItemText(item).toLowerCase() !== list.filterText.trim().toLowerCase())\r\n        )\r\n            onTextChange('');\r\n    }\r\n\r\n    /** Blurs the input when the escape key is pressed to prevent the focus returning from the popover to the input opening the menu. */\r\n    function blurInputOnEscapeKeyUp(event: KeyboardEvent) {\r\n        if (event.key === 'Escape') {\r\n            triggerRef.current?.blur();\r\n            event.preventDefault();\r\n        }\r\n    }\r\n}\r\n","import { FormLabel } from '@webkit/components/formLabel';\r\nimport { KeyboardArrowDownIcon } from '@webkit/design/icons';\r\nimport { ListBoxItem, ListBoxItemWithComponent } from '@webkit/internal/listBoxItem';\r\nimport { Popover } from '@webkit/internal/popover';\r\nimport { TextInput } from '@webkit/internal/wrapper';\r\nimport { ComboBox, ListBox } from 'react-aria-components';\r\nimport { useAutoCompleteInternal } from './hook';\r\nimport { AutoCompleteInternalProps } from './models';\r\n\r\n/** Underlying component for autocomplete search input and combobox filterable dropdowns. */\r\nexport function AutoCompleteInternal<TContent extends object>(props: AutoCompleteInternalProps<TContent>) {\r\n    const {\r\n            id,\r\n            value,\r\n            getItemId,\r\n            getItemText,\r\n            getItemComponent,\r\n            placeholder,\r\n            isDisabled,\r\n            label,\r\n            autoComplete,\r\n            name,\r\n            autoFocus,\r\n            isComboBox,\r\n            isAutoComplete,\r\n        } = props,\r\n        { list, onSelectionChange, triggerRef, clearComboBoxText } = useAutoCompleteInternal(props);\r\n\r\n    return (\r\n        <ComboBox\r\n            aria-label={label || placeholder}\r\n            id={id}\r\n            className='w-full'\r\n            items={list.items}\r\n            inputValue={list.filterText}\r\n            menuTrigger='focus'\r\n            allowsEmptyCollection\r\n            allowsCustomValue\r\n            onInputChange={list.setFilterText}\r\n            onSelectionChange={onSelectionChange}\r\n        >\r\n            {label && <FormLabel>{label}</FormLabel>}\r\n\r\n            <TextInput\r\n                ref={triggerRef}\r\n                aria-label={label || placeholder}\r\n                placeholder={placeholder}\r\n                error={value.error}\r\n                autoComplete={autoComplete}\r\n                name={name}\r\n                isLoading={isAutoComplete && list.loadingState !== 'idle'}\r\n                isValid={value.valid}\r\n                isDisabled={isDisabled}\r\n                autoFocus={autoFocus}\r\n                icon={isComboBox ? <KeyboardArrowDownIcon color='inherit' fontSize='inherit' /> : undefined}\r\n                iconAsTrigger={isComboBox}\r\n                onBlur={clearComboBoxText}\r\n            />\r\n\r\n            <Popover>\r\n                <ListBox className='box-border list-none m-0 p-0 outline-none text-xs'>\r\n                    {(item: TContent) =>\r\n                        getItemComponent ? (\r\n                            <ListBoxItemWithComponent\r\n                                id={getItemId(item)}\r\n                                key={getItemId(item)}\r\n                                textValue={getItemText(item)}\r\n                                component={getItemComponent(item)}\r\n                            />\r\n                        ) : (\r\n                            <ListBoxItem id={getItemId(item)} key={getItemId(item)} textValue={getItemText(item)} />\r\n                        )\r\n                    }\r\n                </ListBox>\r\n            </Popover>\r\n        </ComboBox>\r\n    );\r\n}\r\n","import { AutoCompleteInternal } from './internal';\r\nimport { AutoCompleteProps, ComboBoxProps } from './models';\r\n\r\n/** An input that will filter a list of options displayed in a popup based on the input text search term. Includes a loading state indicator. */\r\nexport function AutoComplete<TContent extends object>(props: AutoCompleteProps<TContent>) {\r\n    return <AutoCompleteInternal {...props} isAutoComplete />;\r\n}\r\n\r\n/** A combination dropdown and text input control that allows filtering a list with the text input and selecting items from the list. Includes a dropdown arrow icon. */\r\nexport function ComboBox<TContent extends object>(props: ComboBoxProps<TContent>) {\r\n    return <AutoCompleteInternal {...props} isComboBox />;\r\n}\r\n","import { Design } from '@webkit/design/context';\r\nimport { Value } from '@webkit/validation/value';\r\nimport { tv } from 'tailwind-variants';\r\n\r\ntype Props = {\r\n    value: Value<string>;\r\n    design: Design;\r\n    placeholder?: string;\r\n};\r\n\r\nconst styles = tv({\r\n    base: 'text-brand-gray-450 pr-3 truncate',\r\n    variants: {\r\n        design: {\r\n            standard: '',\r\n            landing: 'italic',\r\n            'single-quote-element': '',\r\n            'multi-quote-element': '',\r\n        },\r\n    },\r\n});\r\n\r\n/**\r\n * The ButtonText component is responsible for displaying the text within the select button input.\r\n * It shows the current selected value if available, otherwise it displays a placeholder if provided.\r\n */\r\nexport function ButtonText(props: Props) {\r\n    return (\r\n        <div className='text-sm text-left w-full h-full flex items-center'>\r\n            {props.value.content.length ? (\r\n                <span className='flex-1 pr-[20px] truncate'>{props.value.content}</span>\r\n            ) : (\r\n                <span className={styles({ design: props.design })}>{props.placeholder}</span>\r\n            )}\r\n        </div>\r\n    );\r\n}\r\n","import { CloseIcon, KeyboardArrowDownIcon } from '@webkit/design/icons';\r\nimport { ListBoxItem } from 'react-aria-components';\r\nimport { Key } from 'react-stately';\r\nimport { tv } from 'tailwind-variants';\r\n\r\ntype Props = {\r\n    nodeKey: Key;\r\n    name: string;\r\n    onAction: () => void;\r\n    isExpanded: boolean;\r\n};\r\n\r\nconst styles = {\r\n    item: tv({\r\n        base:\r\n            'flex justify-between items-center flex-row flex-1 ' +\r\n            'font-sans text-sm text-brand-gray-350 tracking-[0.5px] font-semibold ' +\r\n            'bg-black p-3 cursor-pointer ' +\r\n            'border-0 border-b border-solid border-brand-gray-700 ' +\r\n            'transition-all duration-300 ease-out',\r\n        variants: {\r\n            isFocused: { true: 'text-white' },\r\n            isHovered: { true: 'text-white' },\r\n            isExpanded: { true: 'text-white' },\r\n        },\r\n    }),\r\n    icon: tv({\r\n        base: 'text-brand-gray-450',\r\n        variants: {\r\n            isFocused: { true: 'text-white' },\r\n            isHovered: { true: 'text-white' },\r\n            isExpanded: { true: 'text-white' },\r\n        },\r\n    }),\r\n};\r\n\r\n/**\r\n * The CategoryItem component represents a category item that can expand to reveal child items.\r\n * It displays the item's name and an icon indicating whether the item is expanded or collapsed.\r\n * The component supports focus and hover states for better user interaction.\r\n */\r\nexport function CategoryItem(props: Props) {\r\n    return (\r\n        <ListBoxItem className='outline-none' onAction={props.onAction} textValue={props.name}>\r\n            {item => (\r\n                <div\r\n                    className={styles.item({\r\n                        isFocused: item.isFocused,\r\n                        isHovered: item.isHovered,\r\n                        isExpanded: props.isExpanded,\r\n                    })}\r\n                >\r\n                    {props.nodeKey}\r\n\r\n                    {props.isExpanded ? (\r\n                        <CloseIcon\r\n                            className={\r\n                                styles.icon({\r\n                                    isFocused: item.isFocused,\r\n                                    isHovered: item.isHovered,\r\n                                    isExpanded: props.isExpanded,\r\n                                }) + ' max-h-5'\r\n                            }\r\n                            fontSize='medium'\r\n                        />\r\n                    ) : (\r\n                        <KeyboardArrowDownIcon\r\n                            className={styles.icon({\r\n                                isFocused: item.isFocused,\r\n                                isHovered: item.isHovered,\r\n                                isExpanded: props.isExpanded,\r\n                            })}\r\n                            fontSize='medium'\r\n                        />\r\n                    )}\r\n                </div>\r\n            )}\r\n        </ListBoxItem>\r\n    );\r\n}\r\n","import { DesignContext } from '@webkit/design/context';\r\nimport { useContext, useEffect, useRef, useState } from 'react';\r\nimport { Key, useAsyncList, useTreeData, useTreeState } from 'react-stately';\r\nimport { CategoryData, CategorySelectProps } from './models';\r\n\r\n/** The useCategorySelect hook manages the data, state, logic, and interactions of the CategorySelect component. */\r\nexport function useCategorySelect(props: CategorySelectProps) {\r\n    const design = useContext(DesignContext),\r\n        /** Using react-stately useAsyncList to handle loading the items dynamically from the server. */\r\n        listData = useAsyncList<CategoryData>({\r\n            async load({ signal }) {\r\n                return { items: await props.getCategoryData(signal) };\r\n            },\r\n        }),\r\n        /** Using react-stately useTreeData hook to achieve hierarchical list and selection functionality. */\r\n        treeData = useTreeData({\r\n            initialItems: listData.items,\r\n            getKey: item => item.name,\r\n            getChildren: item => item.items,\r\n        }),\r\n        /** Using react-stately useTreeState hook to manage expanding categories. */\r\n        treeState = useTreeState({\r\n            ...treeData,\r\n        }),\r\n        triggerRef = useRef<HTMLButtonElement>(null),\r\n        ariaLabel = props.label || props.placeholder || props.value.name;\r\n\r\n    const [isOpen, setIsOpen] = useState(false),\r\n        [triggerWidth, setTriggerWidth] = useState(0);\r\n\r\n    // Set the width of the popup to the width of the trigger button\r\n    useEffect(() => setTriggerWidth(triggerRef.current?.offsetWidth || 0), [triggerRef.current]);\r\n\r\n    return {\r\n        design,\r\n        listData,\r\n        triggerRef,\r\n        ariaLabel,\r\n        isOpen,\r\n        setIsOpen,\r\n        triggerWidth,\r\n        isCategoryExpanded,\r\n        toggleCategoryExpanded,\r\n        isItemSelected,\r\n        onSelectionChange,\r\n    };\r\n\r\n    /** Returns true if the category item key is included in the tree state expanded keys. */\r\n    function isCategoryExpanded(categoryKey: Key) {\r\n        return treeState.expandedKeys.has(categoryKey);\r\n    }\r\n\r\n    /** Adds or removes the category item key from the tree state expanded keys. */\r\n    function toggleCategoryExpanded(categoryKey: Key) {\r\n        if (isCategoryExpanded(categoryKey)) {\r\n            treeState.setExpandedKeys(new Set([]));\r\n        } else {\r\n            treeState.setExpandedKeys(new Set([categoryKey]));\r\n        }\r\n    }\r\n\r\n    /** Returns true if the select item key is included in the tree data selected keys. */\r\n    function isItemSelected(itemKey: Key) {\r\n        return treeData.selectedKeys.has(itemKey);\r\n    }\r\n\r\n    /** Sets the selected item key in the tree data, runs the parent component callback, then closes the popup. */\r\n    async function onSelectionChange(itemKey: Key) {\r\n        treeData.setSelectedKeys(new Set([itemKey]));\r\n        await props.onSelectionChange(itemKey as string);\r\n        setIsOpen(false);\r\n    }\r\n}\r\n","import { CheckCircleIcon } from '@webkit/design/icons';\r\nimport { Key, ListBoxItem } from 'react-aria-components';\r\nimport { tv } from 'tailwind-variants';\r\n\r\ntype Props = {\r\n    childKey: Key;\r\n    name: string;\r\n    onAction: () => void;\r\n    isSelected: boolean;\r\n};\r\n\r\nconst styles = {\r\n    item: tv({\r\n        base:\r\n            'flex justify-between items-center flex-row flex-1 ' +\r\n            'font-sans text-sm tracking-[0.5px] text-white ' +\r\n            'cursor-pointer pl-6 pr-3 py-3 bg-brand-gray-750 ' +\r\n            'border-0 border-b border-solid border-brand-gray-700 ' +\r\n            'transition-all duration-300 ease-out',\r\n        variants: {\r\n            isFocused: { true: 'bg-brand-gray-650' },\r\n            isHovered: { true: 'bg-brand-gray-650' },\r\n        },\r\n    }),\r\n    icon: 'text-brand-green-250 max-h-5',\r\n};\r\n\r\n/**\r\n * The SelectItem component represents an individual item within a category that can be selected by the user.\r\n * This component handles the rendering and interaction logic for each selectable item.\r\n */\r\nexport function SelectItem(props: Props) {\r\n    return (\r\n        <ListBoxItem key={props.childKey} className='outline-none' onAction={props.onAction} textValue={props.name}>\r\n            {item => (\r\n                <div\r\n                    className={styles.item({\r\n                        isFocused: item.isFocused,\r\n                        isHovered: item.isHovered,\r\n                    })}\r\n                >\r\n                    {props.childKey}\r\n\r\n                    {props.isSelected && <CheckCircleIcon className={styles.icon} fontSize='medium' color='inherit' />}\r\n                </div>\r\n            )}\r\n        </ListBoxItem>\r\n    );\r\n}\r\n","import { FormLabel } from '@webkit/components/formLabel';\r\nimport { KeyboardArrowDownIcon } from '@webkit/design/icons';\r\nimport { Popover } from '@webkit/internal/popover';\r\nimport { ButtonInput } from '@webkit/internal/wrapper';\r\nimport { DialogTrigger, ListBox, Section } from 'react-aria-components';\r\nimport { ButtonText } from './buttonText';\r\nimport { CategoryItem } from './categoryItem';\r\nimport { useCategorySelect } from './hook';\r\nimport { CategorySelectProps } from './models';\r\nimport { SelectItem } from './selectItem';\r\n\r\n/**\r\n * CategorySelect component allows users to toggle categories and select items from a hierarchical list.\r\n * It provides a dropdown interface with expandable categories and selectable items.\r\n */\r\nexport function CategorySelect(props: CategorySelectProps) {\r\n    const {\r\n        design,\r\n        listData,\r\n        triggerRef,\r\n        ariaLabel,\r\n        isOpen,\r\n        setIsOpen,\r\n        triggerWidth,\r\n        isCategoryExpanded,\r\n        toggleCategoryExpanded,\r\n        isItemSelected,\r\n        onSelectionChange,\r\n    } = useCategorySelect(props);\r\n\r\n    return (\r\n        <DialogTrigger isOpen={isOpen} onOpenChange={setIsOpen}>\r\n            {props.label && <FormLabel>{props.label}</FormLabel>}\r\n\r\n            <ButtonInput\r\n                id={props.id}\r\n                ref={triggerRef}\r\n                aria-label={ariaLabel}\r\n                error={props.value.error}\r\n                name={props.name}\r\n                isValid={props.value.valid}\r\n                isDisabled={props.isDisabled}\r\n                autoFocus={props.autoFocus}\r\n                icon={<KeyboardArrowDownIcon color='inherit' fontSize='inherit' />}\r\n            >\r\n                <ButtonText value={props.value} design={design} placeholder={props.placeholder} />\r\n            </ButtonInput>\r\n\r\n            <Popover style={{ '--trigger-width': `${triggerWidth}px` } as React.CSSProperties}>\r\n                <ListBox aria-label={ariaLabel} autoFocus>\r\n                    {listData.items.map(node => (\r\n                        <Section key={node.name}>\r\n                            <CategoryItem\r\n                                nodeKey={node.name}\r\n                                name={node.name}\r\n                                onAction={() => toggleCategoryExpanded(node.name)}\r\n                                isExpanded={isCategoryExpanded(node.name)}\r\n                            />\r\n\r\n                            {isCategoryExpanded(node.name) &&\r\n                                node.items.map(child => (\r\n                                    <SelectItem\r\n                                        key={child.name}\r\n                                        childKey={child.name}\r\n                                        name={child.name}\r\n                                        onAction={async () => await onSelectionChange(child.name)}\r\n                                        isSelected={isItemSelected(child.name)}\r\n                                    />\r\n                                ))}\r\n                        </Section>\r\n                    ))}\r\n                </ListBox>\r\n            </Popover>\r\n        </DialogTrigger>\r\n    );\r\n}\r\n","import { Button } from '@webkit/components/button';\r\nimport { Modal } from '@webkit/components/modal';\r\nimport { Paragraph } from '@webkit/components/paragraph';\r\n\r\nexport type ConfirmProps = {\r\n    /** A flag that determines if the confirmation modal is open and visible. */\r\n    isOpen: boolean;\r\n\r\n    /** The title shown at the top of the confirmation modal. */\r\n    title: string;\r\n\r\n    /** The confirmation text displayed below the title. */\r\n    text: string;\r\n\r\n    /** Optional. A flag indicating that whatever process needs to be confirmed is ongoing. */\r\n    isLoading?: boolean;\r\n\r\n    /** A callback function triggered when the open status of the confirmation modal changes. */\r\n    onOpenChange?: (isOpen: boolean) => void;\r\n\r\n    /** A callback function triggered when the user confirms the event in question. */\r\n    onConfirm: () => Promise<void> | void;\r\n\r\n    /** A callback function triggered when the user cancels the event in question. */\r\n    onCancel: () => Promise<void> | void;\r\n\r\n    /** Optional. The ID of the rendered cancel button. */\r\n    cancelButtonId?: string;\r\n\r\n    /** Optional. The ID of the rendered confirm button. */\r\n    confirmButtonId?: string;\r\n};\r\n\r\nexport function Confirm(props: ConfirmProps) {\r\n    return (\r\n        <Modal\r\n            {...props}\r\n            onOpenChange={props.onOpenChange || (() => {})}\r\n            title={props.title}\r\n            size='sm'\r\n            showCloseButton={false}\r\n        >\r\n            <Paragraph>{props.text}</Paragraph>\r\n\r\n            <div className='mt-6 flex gap-2'>\r\n                <div className='flex-1'>\r\n                    <Button onClick={props.onCancel} isSecondary id={props.cancelButtonId}>\r\n                        Cancel\r\n                    </Button>\r\n                </div>\r\n                <div className='flex-[2]'>\r\n                    <Button onClick={props.onConfirm} isLoading={props.isLoading} id={props.confirmButtonId}>\r\n                        Confirm\r\n                    </Button>\r\n                </div>\r\n            </div>\r\n        </Modal>\r\n    );\r\n}\r\n","import { Overlay } from '@webkit/internal/overlay';\r\nimport { ReactNode } from 'react';\r\nimport { Dialog, Modal } from 'react-aria-components';\r\nimport { tv } from 'tailwind-variants';\r\n\r\nexport type Anchor = 'left' | 'right' | 'top' | 'bottom';\r\n\r\ntype Props = {\r\n    /** Flag that determines if the drawer is open. */\r\n    isOpen: boolean;\r\n\r\n    /** Function called when the drawer is closed. */\r\n    onClose: () => void;\r\n\r\n    /** Content to render inside the drawer. */\r\n    children: ReactNode;\r\n\r\n    /** Flag that determines if the drawer can be closed by clicking outside of it. */\r\n    isDismissable?: boolean;\r\n\r\n    /** Indicates whether the ability to close the modal via pressing escape is enabled. Defaults to false. */\r\n    isKeyboardDismissable?: boolean;\r\n\r\n    /** Part of the screen that the drawer will open from, allowed values are 'right', 'left', 'top', and 'bottom'. */\r\n    anchor?: Anchor;\r\n};\r\n\r\nexport function Drawer({\r\n    isOpen,\r\n    onClose,\r\n    children,\r\n    isDismissable = true,\r\n    isKeyboardDismissable = false,\r\n    anchor = 'right',\r\n}: Props) {\r\n    let modalBaseClasses = '';\r\n    let modalEnteringDirectionClass = '';\r\n    let modalExitingDirectionClass = '';\r\n\r\n    switch (anchor) {\r\n        case 'left':\r\n            modalBaseClasses = 'top-0 bottom-0 shadow-[8px_0_20px_rgba(0,0,0,0.2)]';\r\n            modalEnteringDirectionClass = 'slide-in-from-left';\r\n            modalExitingDirectionClass = 'slide-out-to-left';\r\n\r\n            break;\r\n        case 'right':\r\n            modalBaseClasses = 'top-0 bottom-0 right-0 shadow-[-8px_0_20px_rgba(0,0,0,0.2)]';\r\n            modalEnteringDirectionClass = 'slide-in-from-right';\r\n            modalExitingDirectionClass = 'slide-out-to-right';\r\n\r\n            break;\r\n        case 'top':\r\n            modalBaseClasses = 'w-full shadow-[0_8px_20px_rgba(0,0,0,0.2)]';\r\n            modalEnteringDirectionClass = 'slide-in-from-top';\r\n            modalExitingDirectionClass = 'slide-out-to-top';\r\n\r\n            break;\r\n        case 'bottom':\r\n            modalBaseClasses = 'bottom-0 w-full shadow-[0_-8px_20px_rgba(0,0,0,0.2)]';\r\n            modalEnteringDirectionClass = 'slide-in-from-bottom';\r\n            modalExitingDirectionClass = 'slide-out-to-bottom';\r\n\r\n            break;\r\n    }\r\n\r\n    const modalClasses = tv({\r\n        base: `fixed bg-white outline-none ${modalBaseClasses}`,\r\n        variants: {\r\n            isEntering: {\r\n                true: `animate-in duration-300 ${modalEnteringDirectionClass}`,\r\n            },\r\n            isExiting: {\r\n                true: `animate-out duration-300 reverse ease-in ${modalExitingDirectionClass}`,\r\n            },\r\n        },\r\n    });\r\n\r\n    const handleOnClose = (isOpen: boolean) => {\r\n        if (!isOpen) {\r\n            onClose();\r\n        }\r\n    };\r\n\r\n    return (\r\n        <Overlay\r\n            isOpen={isOpen}\r\n            isDismissable={isDismissable}\r\n            isKeyboardDismissable={isKeyboardDismissable}\r\n            onOpenChange={handleOnClose}\r\n        >\r\n            <Modal className={modalClasses}>\r\n                <Dialog className='focus-visible: outline-none' aria-label='drawer'>\r\n                    {children}\r\n                </Dialog>\r\n            </Modal>\r\n        </Overlay>\r\n    );\r\n}\r\n","import { Orientation } from '@react-types/shared';\r\nimport { FormLabel } from '@webkit/components/formLabel';\r\nimport { Tooltip } from '@webkit/components/tooltip';\r\nimport { PriorityHighIcon } from '@webkit/design/icons';\r\nimport { Value } from '@webkit/validation/value';\r\nimport { RadioGroup as AriaRadioGroup, Radio } from 'react-aria-components';\r\nimport { tv } from 'tailwind-variants';\r\n\r\nexport type RadioGroupOptions = {\r\n    label: string;\r\n    value: string;\r\n};\r\n\r\ntype Props = {\r\n    /** The value for the radio group. */\r\n    value: Value<string | null>;\r\n\r\n    /** The list of radio buttons to be rendered. */\r\n    options: RadioGroupOptions[];\r\n\r\n    /** Function called when the selected value changes. */\r\n    onChange: (value: string) => void;\r\n\r\n    // The ID assigned to the radio group container.\r\n    id?: string;\r\n\r\n    /** Label to show above the input. */\r\n    label?: string | JSX.Element;\r\n\r\n    /** The orientation of the radio buttons (default is 'vertical'). */\r\n    orientation?: Orientation;\r\n\r\n    /** Flag that determines if the radio group is disabled. */\r\n    isDisabled?: boolean;\r\n};\r\n\r\nconst styles = {\r\n    container: 'group flex flex-col gap-1 font-sans',\r\n    optionsContainer:\r\n        'webkit-radio-group flex group-orientation-vertical:flex-col gap-2 group-orientation-horizontal:gap-4',\r\n    radioButtonContainer:\r\n        'webkit-form-label flex gap-2.5 items-center group disabled:text-brand-gray-350 text-sm cursor-pointer !text-inherit',\r\n    radioButton: tv({\r\n        base: 'border border-solid outline-offset-1 w-4 h-4 rounded-full bg-white transition-all',\r\n        variants: {\r\n            isSelected: {\r\n                false: `border-[--color] [--color:theme(colors.brand-gray.500)] group-pressed:brand-gray-500`,\r\n                true: `flex items-center justify-center border-[--color] [--color:theme(colors.brand-green.250)] group-pressed:brand-green-250`,\r\n            },\r\n            isInvalid: {\r\n                true: 'bg-brand-red-100 border-[--color] [--color:theme(colors.red.700)] group-pressed:brand-red-700',\r\n            },\r\n            isDisabled: {\r\n                true: '[--color:theme(colors.brand-gray.350)]',\r\n            },\r\n        },\r\n    }),\r\n    selectedRadioButton:\r\n        'hidden group-selected:!block group-selected:!visible bg-brand-green-250 w-2.5 h-2.5 rounded-full',\r\n    errorIcon: tv({\r\n        base: 'ml-2 transition-opacity',\r\n        variants: {\r\n            isVisible: {\r\n                true: 'pointer-events-auto opacity-100',\r\n                false: 'pointer-events-none opacity-0',\r\n            },\r\n        },\r\n    }),\r\n};\r\n\r\nexport function RadioGroup({ id, value, options, onChange, label, orientation, isDisabled = false }: Props) {\r\n    return (\r\n        <AriaRadioGroup\r\n            id={id}\r\n            value={value.content}\r\n            onChange={onChange}\r\n            orientation={orientation}\r\n            isDisabled={isDisabled}\r\n            isInvalid={!value.valid}\r\n            className={styles.container}\r\n        >\r\n            {label && (\r\n                <div className='flex items-center'>\r\n                    <FormLabel>{label}</FormLabel>\r\n\r\n                    <div className={styles.errorIcon({ isVisible: !value.valid })}>\r\n                        <Tooltip message={value.error}>\r\n                            <div className='[&_svg]:h-[14px] [&_svg]:w-[14px]' aria-label={value.error || ''}>\r\n                                <PriorityHighIcon className='bg-brand-red-150 text-white rounded-full' />\r\n                            </div>\r\n                        </Tooltip>\r\n                    </div>\r\n                </div>\r\n            )}\r\n\r\n            <div className={styles.optionsContainer}>\r\n                {options.map((item: RadioGroupOptions) => (\r\n                    <Radio key={item.value} value={item.value} className={styles.radioButtonContainer}>\r\n                        {renderProps => (\r\n                            <>\r\n                                <div className={styles.radioButton(renderProps)}>\r\n                                    <div className={styles.selectedRadioButton} />\r\n                                </div>\r\n\r\n                                {item.label}\r\n                            </>\r\n                        )}\r\n                    </Radio>\r\n                ))}\r\n            </div>\r\n        </AriaRadioGroup>\r\n    );\r\n}\r\n","import { createContext } from 'react';\r\nimport { Location } from 'react-router-dom-v5-compat';\r\n\r\nexport const ViewProgressTrackerContext = createContext<{ location: Location | null; paths: string[]; delay: number }>({\r\n    location: null,\r\n    paths: [],\r\n    delay: 0,\r\n});\r\n","import { ReactElement, useMemo } from 'react';\r\nimport { Location } from 'react-router-dom-v5-compat';\r\nimport { ViewProgressTrackerContext } from './context';\r\nimport { ViewProgressItemProps } from './item';\r\n\r\ntype Props = {\r\n    /** Required. The list of route items to render. */\r\n    children: ReactElement<ViewProgressItemProps>[] | ReactElement<ViewProgressItemProps>;\r\n\r\n    /** Required. The location as reported from the wrapping router. */\r\n    location: Location;\r\n\r\n    /** Optional. A delay in milliseconds for updating the selected route. Useful for when transitions between routes are on a timer. */\r\n    delay?: number;\r\n}\r\n\r\nexport function ViewProgressTracker({ children, location, delay }: Props) {\r\n    const paths = useMemo(() => Array.isArray(children) ? children.map(child => child.props.path) : [children.props.path], [children]);\r\n    return <ViewProgressTrackerContext.Provider value={{ location, paths: paths, delay: delay || 0 }}>\r\n        {children}\r\n    </ViewProgressTrackerContext.Provider>;\r\n}","import { useContext, useEffect, useMemo, useState } from 'react';\r\nimport { ViewProgressTrackerContext } from './context';\r\nimport { Position } from './item';\r\n\r\nexport function useViewProgressTracker(path: string) {\r\n    const { location, paths, delay } = useContext(ViewProgressTrackerContext),\r\n        pathIndex = useMemo(() => paths.findIndex(p => p === path), [paths, path]),\r\n        locationIndex = useMemo(() => paths.findIndex(p => p === location?.pathname), [paths, location?.pathname]),\r\n        [delayedPosition, setDelayedPosition] = useState<Position>(getPosition());\r\n\r\n    useEffect(() => {\r\n        setTimeout(() => {\r\n            setDelayedPosition(getPosition());\r\n        }, delay);\r\n    }, [location]);\r\n\r\n    return {\r\n        position: delayedPosition,\r\n        isLast: pathIndex === paths.length - 1,\r\n    };\r\n\r\n    function getPosition() {\r\n        return (\r\n            pathIndex < locationIndex ? 'past'\r\n            : pathIndex === locationIndex ? 'current'\r\n            : ('future' as Position)\r\n        );\r\n    }\r\n}\r\n","import { CheckIcon } from '@webkit/design/icons';\r\nimport { tv } from 'tailwind-variants';\r\nimport { useViewProgressTracker } from './hook';\r\n\r\nexport type Position = 'past' | 'current' | 'future';\r\n\r\nexport type ViewProgressItemProps = {\r\n    /** Required. The text displayed to the user for the route. */\r\n    children: string;\r\n\r\n    /** Required. When the path matches the current location as reported from the router, this progress item will be selected. */\r\n    path: string;\r\n\r\n    /** Required. An icon describing the route. */\r\n    icon: JSX.Element;\r\n};\r\n\r\nconst styles = {\r\n    label: tv({\r\n        base: 'flex-1 inline-block mt-[2px] font-sans text-sm tracking-[0.3px]',\r\n        variants: {\r\n            position: {\r\n                past: 'font-light',\r\n                current: 'font-bold',\r\n                future: 'font-light',\r\n            },\r\n        },\r\n    }),\r\n\r\n    progress: tv({\r\n        base: 'justify-end rounded-full w-4 h-4 mt-1 flex items-center',\r\n        variants: {\r\n            position: {\r\n                past: 'bg-brand-green-500 border-brand-green-500',\r\n                current: 'bg-transparent border-brand-green-300',\r\n                future: 'bg-transparent border-brand-green-300 border-2 border-solid border-brand-green-300',\r\n            },\r\n        },\r\n    }),\r\n\r\n    bar: tv({\r\n        base: 'absolute top-[25px] right-[7px] w-[2px] h-[37px] bg-white',\r\n        variants: {\r\n            position: {\r\n                past: 'bg-brand-green-500',\r\n                current: 'bg-brand-green-300',\r\n                future: 'bg-brand-green-300',\r\n            },\r\n        },\r\n    }),\r\n};\r\n\r\nexport function ViewProgressItem({ path, icon, children }: ViewProgressItemProps) {\r\n    const { position, isLast } = useViewProgressTracker(path);\r\n    return (\r\n        <div className='flex h-16 relative'>\r\n            <div className='flex-1 flex gap-2'>\r\n                <div className='mt-[-2px] opacity-50'>{icon}</div>\r\n                <span className={styles.label({ position })}>{children}</span>\r\n            </div>\r\n\r\n            <div className={styles.progress({ position })}>\r\n                {position === 'past' && <CheckIcon className='!w-4 !h-4' />}\r\n                {position === 'current' && (\r\n                    <div className='selected rounded-full bg-brand-green-300 w-full h-full border-solid border-2 border-transparent'></div>\r\n                )}\r\n            </div>\r\n\r\n            {!isLast && <div className={styles.bar({ position })}></div>}\r\n        </div>\r\n    );\r\n}\r\n","import _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\n\nvar _leaveRenders, _enterRenders;\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { ENTERED, ENTERING, EXITING } from './Transition';\nimport TransitionGroupContext from './TransitionGroupContext';\n\nfunction areChildrenDifferent(oldChildren, newChildren) {\n  if (oldChildren === newChildren) return false;\n\n  if (React.isValidElement(oldChildren) && React.isValidElement(newChildren) && oldChildren.key != null && oldChildren.key === newChildren.key) {\n    return false;\n  }\n\n  return true;\n}\n/**\n * Enum of modes for SwitchTransition component\n * @enum { string }\n */\n\n\nexport var modes = {\n  out: 'out-in',\n  in: 'in-out'\n};\n\nvar callHook = function callHook(element, name, cb) {\n  return function () {\n    var _element$props;\n\n    element.props[name] && (_element$props = element.props)[name].apply(_element$props, arguments);\n    cb();\n  };\n};\n\nvar leaveRenders = (_leaveRenders = {}, _leaveRenders[modes.out] = function (_ref) {\n  var current = _ref.current,\n      changeState = _ref.changeState;\n  return React.cloneElement(current, {\n    in: false,\n    onExited: callHook(current, 'onExited', function () {\n      changeState(ENTERING, null);\n    })\n  });\n}, _leaveRenders[modes.in] = function (_ref2) {\n  var current = _ref2.current,\n      changeState = _ref2.changeState,\n      children = _ref2.children;\n  return [current, React.cloneElement(children, {\n    in: true,\n    onEntered: callHook(children, 'onEntered', function () {\n      changeState(ENTERING);\n    })\n  })];\n}, _leaveRenders);\nvar enterRenders = (_enterRenders = {}, _enterRenders[modes.out] = function (_ref3) {\n  var children = _ref3.children,\n      changeState = _ref3.changeState;\n  return React.cloneElement(children, {\n    in: true,\n    onEntered: callHook(children, 'onEntered', function () {\n      changeState(ENTERED, React.cloneElement(children, {\n        in: true\n      }));\n    })\n  });\n}, _enterRenders[modes.in] = function (_ref4) {\n  var current = _ref4.current,\n      children = _ref4.children,\n      changeState = _ref4.changeState;\n  return [React.cloneElement(current, {\n    in: false,\n    onExited: callHook(current, 'onExited', function () {\n      changeState(ENTERED, React.cloneElement(children, {\n        in: true\n      }));\n    })\n  }), React.cloneElement(children, {\n    in: true\n  })];\n}, _enterRenders);\n/**\n * A transition component inspired by the [vue transition modes](https://vuejs.org/v2/guide/transitions.html#Transition-Modes).\n * You can use it when you want to control the render between state transitions.\n * Based on the selected mode and the child's key which is the `Transition` or `CSSTransition` component, the `SwitchTransition` makes a consistent transition between them.\n *\n * If the `out-in` mode is selected, the `SwitchTransition` waits until the old child leaves and then inserts a new child.\n * If the `in-out` mode is selected, the `SwitchTransition` inserts a new child first, waits for the new child to enter and then removes the old child.\n *\n * **Note**: If you want the animation to happen simultaneously\n * (that is, to have the old child removed and a new child inserted **at the same time**),\n * you should use\n * [`TransitionGroup`](https://reactcommunity.org/react-transition-group/transition-group)\n * instead.\n *\n * ```jsx\n * function App() {\n *  const [state, setState] = useState(false);\n *  return (\n *    <SwitchTransition>\n *      <CSSTransition\n *        key={state ? \"Goodbye, world!\" : \"Hello, world!\"}\n *        addEndListener={(node, done) => node.addEventListener(\"transitionend\", done, false)}\n *        classNames='fade'\n *      >\n *        <button onClick={() => setState(state => !state)}>\n *          {state ? \"Goodbye, world!\" : \"Hello, world!\"}\n *        </button>\n *      </CSSTransition>\n *    </SwitchTransition>\n *  );\n * }\n * ```\n *\n * ```css\n * .fade-enter{\n *    opacity: 0;\n * }\n * .fade-exit{\n *    opacity: 1;\n * }\n * .fade-enter-active{\n *    opacity: 1;\n * }\n * .fade-exit-active{\n *    opacity: 0;\n * }\n * .fade-enter-active,\n * .fade-exit-active{\n *    transition: opacity 500ms;\n * }\n * ```\n */\n\nvar SwitchTransition = /*#__PURE__*/function (_React$Component) {\n  _inheritsLoose(SwitchTransition, _React$Component);\n\n  function SwitchTransition() {\n    var _this;\n\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n    _this.state = {\n      status: ENTERED,\n      current: null\n    };\n    _this.appeared = false;\n\n    _this.changeState = function (status, current) {\n      if (current === void 0) {\n        current = _this.state.current;\n      }\n\n      _this.setState({\n        status: status,\n        current: current\n      });\n    };\n\n    return _this;\n  }\n\n  var _proto = SwitchTransition.prototype;\n\n  _proto.componentDidMount = function componentDidMount() {\n    this.appeared = true;\n  };\n\n  SwitchTransition.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {\n    if (props.children == null) {\n      return {\n        current: null\n      };\n    }\n\n    if (state.status === ENTERING && props.mode === modes.in) {\n      return {\n        status: ENTERING\n      };\n    }\n\n    if (state.current && areChildrenDifferent(state.current, props.children)) {\n      return {\n        status: EXITING\n      };\n    }\n\n    return {\n      current: React.cloneElement(props.children, {\n        in: true\n      })\n    };\n  };\n\n  _proto.render = function render() {\n    var _this$props = this.props,\n        children = _this$props.children,\n        mode = _this$props.mode,\n        _this$state = this.state,\n        status = _this$state.status,\n        current = _this$state.current;\n    var data = {\n      children: children,\n      current: current,\n      changeState: this.changeState,\n      status: status\n    };\n    var component;\n\n    switch (status) {\n      case ENTERING:\n        component = enterRenders[mode](data);\n        break;\n\n      case EXITING:\n        component = leaveRenders[mode](data);\n        break;\n\n      case ENTERED:\n        component = current;\n    }\n\n    return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n      value: {\n        isMounting: !this.appeared\n      }\n    }, component);\n  };\n\n  return SwitchTransition;\n}(React.Component);\n\nSwitchTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /**\n   * Transition modes.\n   * `out-in`: Current element transitions out first, then when complete, the new element transitions in.\n   * `in-out`: New element transitions in first, then when complete, the current element transitions out.\n   *\n   * @type {'out-in'|'in-out'}\n   */\n  mode: PropTypes.oneOf([modes.in, modes.out]),\n\n  /**\n   * Any `Transition` or `CSSTransition` component.\n   */\n  children: PropTypes.oneOfType([PropTypes.element.isRequired])\n} : {};\nSwitchTransition.defaultProps = {\n  mode: modes.out\n};\nexport default SwitchTransition;","import { ApplicationState, InitialState, MutableState, State } from '@app/State/Models';\r\nimport { Mutable } from '@shared/Models';\r\nimport { produce } from 'immer';\r\nimport { useCallback, useEffect, useRef, useState } from 'react';\r\n\r\nexport const useApplicationState = (): ApplicationState => {\r\n    const initial = InitialState;\r\n    let [state, setState] = useStateCallback<State>(initial),\r\n        [prev, setPrev] = useStateCallback<State>(initial);\r\n\r\n    return {\r\n        state,\r\n        update: async (updater: (state: MutableState) => void) =>\r\n            new Promise<void>(resolve => {\r\n                const newState = produce(state, draft => {\r\n                    updater(draft as Mutable<State>);\r\n                });\r\n                setPrev({ ...newState });\r\n                setState({ ...newState }, s => {\r\n                    state = s;\r\n                    resolve();\r\n                });\r\n            }),\r\n        revert: async () =>\r\n            new Promise<void>(resolve => {\r\n                setState({ ...initial }, () => resolve());\r\n            }),\r\n        undo: async () =>\r\n            new Promise<void>(resolve => {\r\n                setState({ ...prev }, () => resolve());\r\n            }),\r\n    };\r\n};\r\n\r\n// https://stackoverflow.com/a/61842546/188537\r\nfunction useStateCallback<T>(initialState: T): [T, (state: T, cb?: (state: T) => void) => void] {\r\n    const [state, setState] = useState(initialState);\r\n    const ref = useRef<((state: T) => void) | undefined>(undefined);\r\n\r\n    const setStateCallback = useCallback((state: T, callback?: (state: T) => void) => {\r\n        ref.current = callback;\r\n        setState(state);\r\n    }, []);\r\n\r\n    useEffect(() => {\r\n        if (ref.current) {\r\n            ref.current(state);\r\n            ref.current = undefined;\r\n        }\r\n    }, [state]);\r\n\r\n    return [state, setStateCallback];\r\n}\r\n","import { getPath, Path } from '@app/Views';\r\nimport * as Common from '@shared/Common';\r\nimport { useNavigateWithParams } from '../Navigation';\r\n\r\nexport function useRedirect() {\r\n    const navigate = useNavigateWithParams();\r\n    return (path: Path | string, params?: Record<string, string>, reloadDocument: boolean = false) => {\r\n        if (reloadDocument) Common.navigate(getPath(path, params));\r\n        else navigate(path, params);\r\n    };\r\n}\r\n","import { createOrGetQuotesByProduct } from '@api/ComparisonQuoteApi';\r\nimport { StateContext } from '@app/State';\r\nimport { getQuotePath, Path } from '@app/Views';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { isAtLeastAgent, toKebabCase } from '@shared/Common';\r\nimport { ErrorCodes } from '@shared/Constants';\r\nimport { QuoteCreateRequestModel } from '@shared/Models';\r\nimport { useContext } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { useRedirect } from '../Redirect';\r\n\r\n/**\r\n * A hook returning a function that encapsulates creating or getting a quote, generally from the landing page,\r\n * and redirects the user to various screens based on any errors returned. If no error is present in the response,\r\n * the user is directed to the appropriate quote page (customize, compare or list) depending on the number of\r\n * returned quotes.\r\n *\r\n * Error codes handled:\r\n *  - PropertyInvalid (412): No property with the given address exists, so send the user to the CreateAddress page.\r\n *  - PropertyMissingPreciseLocation (413): The property is missing a precise location, so send the user to the PreciseLocation page.\r\n *  - ConfirmCreationData (414): The property is missing some data, so send the user to the MissingPropertyData page.\r\n *  - QuoteForNonSingleFamilyResidence (415): The property is not a single family residence, so send the user to the ConfirmSingleFamilyResidence page.\r\n *  - Any other error: Send the user to the UnsupportedProperty page.\r\n *\r\n * @returns An object containing `createOrGetQuotes`, a function used to initiate the creation of retrieval of a quote.\r\n */\r\nexport function useCreateOrGetQuotes() {\r\n    const { update } = useContext(StateContext),\r\n        params = useParams(),\r\n        redirect = useRedirect();\r\n\r\n    return { createOrGetQuotes };\r\n\r\n    async function createOrGetQuotes(quoteRequest: QuoteCreateRequestModel, reloadDocument?: boolean) {\r\n        const newQuoteRequest = { ...quoteRequest },\r\n            productLine = ProductLine.parseOrDefault(params.product) || ProductLine.Homeowner;\r\n\r\n        const product = productLine.lowercaseName,\r\n            { quoteId, quoteCount, error } = await createOrGetQuotesByProduct(productLine, newQuoteRequest),\r\n            address = encodeURIComponent(toKebabCase(quoteRequest?.Address || '', true));\r\n\r\n        if (error) {\r\n            const code = error.ErrorCode;\r\n\r\n            update(state => {\r\n                state.quoteError = error;\r\n                state.quoteRequest = quoteRequest;\r\n            });\r\n\r\n            if (!isAtLeastAgent()) {\r\n                // If an error is thrown and the user isn't signed in as at least an agent, they should be redirected to the\r\n                // unsupported property view.\r\n                redirect(Path.UnsupportedProperty, { product, address });\r\n                return;\r\n            }\r\n\r\n            if (code === ErrorCodes.PropertyInvalid) {\r\n                // If we get back a PropertyInvalid error, we assume the address doesn't exist and the user should be sent to the\r\n                // create address view.\r\n                redirect(Path.CreateAddress, { product, address });\r\n            } else if (code === ErrorCodes.PropertyMissingPreciseLocation) {\r\n                // A property that is determined to be missing a latitude or longitude sends the user to the precise location view,\r\n                // from where they can update that information.\r\n                redirect(Path.PreciseLocation, { product, address });\r\n            } else if (code === ErrorCodes.ConfirmCreationData) {\r\n                // Various property data can be missing. In that case, the user is directed to the missing property data view to\r\n                // provide that data before continuing.\r\n                const missingPropertyData = error.ErrorMessage.split(';');\r\n                missingPropertyData.forEach((key: string) => (quoteRequest = { ...quoteRequest, [key]: null }));\r\n                update(\r\n                    state =>\r\n                        (state.missingPropertyData = {\r\n                            livingSpace: missingPropertyData.includes('LivingSpace'),\r\n                            roofAge: missingPropertyData.includes('RoofAge'),\r\n                            yearBuilt: missingPropertyData.includes('YearBuilt'),\r\n                            singleFamilyResidence: missingPropertyData.includes('NonSingleFamilyResidenceConfirmed'),\r\n                        })\r\n                );\r\n                redirect(Path.MissingPropertyData, { product, address });\r\n            } else if (code === ErrorCodes.QuoteForNonSingleFamilyResidence) {\r\n                // If there's a question whether the property is a single family residence, the user is redirected to a view\r\n                // to confirm that it is in fact a single family residence before moving forward. Note that this is silly for\r\n                // commercial properties, but this error code won't be returned from the API for a commercial quote.\r\n                redirect(Path.ConfirmSingleFamilyResidence, { product, address });\r\n            } else {\r\n                // Any other error is considered an unsupported property, and the user is redirected to the unsupported property view.\r\n                redirect(Path.UnsupportedProperty, { product, address });\r\n            }\r\n\r\n            return;\r\n        }\r\n\r\n        // If a quote is successfully created, the application state is updated with the new quote's ID and the user is redirected\r\n        // to either:\r\n        //\r\n        //   - The customize view in the event of a single quote.\r\n        //   - The comparison quote view if there are two quotes.\r\n        //   - The quote list view if there are more than two quotes.\r\n        update(state => (state.quoteId = quoteId));\r\n        redirect(getQuotePath(quoteCount), { product, quoteId: quoteId as string }, reloadDocument);\r\n    }\r\n}\r\n","import { useState } from 'react';\r\nimport { Draft, produce } from 'immer';\r\n\r\ntype Immutable<T> = {\r\n    readonly [K in keyof T]: Immutable<T[K]>;\r\n};\r\n\r\n/**\r\n * This hook will take an initial state object and return an immutable equivalent so that it can only be updated via the returned\r\n * updater method. This handily circumvents the issue of having to update every property in a complex state object due to the call\r\n * to Immer's produce which does it for us and also provides the benefit of immutability (at compile time) for the returned state\r\n * object.\r\n */\r\nexport const useImmutableState = <State>(\r\n    initial: State,\r\n): [Immutable<State>, (updater: (state: Draft<State>) => void) => void] => {\r\n    const [state, setState] = useState(initial);\r\n\r\n    return [\r\n        state,\r\n        (updater: (newState: Draft<State>) => void) => {\r\n            setState(currentState =>\r\n                produce(currentState, draft => {\r\n                    updater(draft);\r\n                }),\r\n            );\r\n        },\r\n    ];\r\n};\r\n","import { Reducer, ReducerType, useFormReducer } from '@shared/Hooks/FormReducer';\r\nimport { useEffect } from 'react';\r\n\r\nexport type PersistentReducer<TForm extends Reducer> = {\r\n    clear: () => void;\r\n} & ReducerType<TForm>;\r\n\r\nexport const clearForm = () => sessionStorage.removeItem('forms');\r\n\r\nexport const usePersistentFormReducer = <TForm extends Reducer>(\r\n    formKey: string,\r\n    initial: TForm\r\n): PersistentReducer<TForm> => {\r\n    const formReducer = useFormReducer(initial);\r\n\r\n    useEffect(() => {\r\n        const form = JSON.parse(sessionStorage.getItem('forms') || '{}');\r\n        if (form && form[formKey])\r\n            Object.keys(form[formKey]).forEach(key => {\r\n                if (!formReducer.form[key].content && form[formKey][key]) formReducer.set(key, form[formKey][key]);\r\n            });\r\n\r\n        window.addEventListener('beforeunload', save);\r\n        return () => {\r\n            save();\r\n            window.removeEventListener('beforeunload', save);\r\n        };\r\n    }, []);\r\n\r\n    return {\r\n        ...formReducer,\r\n        clear: () => window.sessionStorage.removeItem(formKey),\r\n    };\r\n\r\n    function save() {\r\n        const data = {};\r\n        Object.keys(formReducer.form).forEach(key => (data[key] = formReducer.form[key].content));\r\n\r\n        const stored = JSON.parse(sessionStorage.getItem('forms') || '{}');\r\n        if (!stored[formKey]) stored[formKey] = {};\r\n\r\n        stored[formKey] = data;\r\n        sessionStorage.setItem('forms', JSON.stringify(stored));\r\n    }\r\n};\r\n","import { useMemo } from 'react';\r\n\r\n/**\r\n * Returns two functions:\r\n *\r\n * - `all`: Returns an object containing all query string keys and their values.\r\n * - `get`: Returns the value of a specific query string key.\r\n */\r\nexport function useQueryString<TQueryType = {}>(search: string | null = null) {\r\n    search = search || window.location.search;\r\n\r\n    const query = useMemo(all, [search]) as TQueryType;\r\n\r\n    return {\r\n        all: () => query,\r\n        get: (key: keyof TQueryType) => query[key],\r\n    };\r\n\r\n    function all() {\r\n        if (!search) return {};\r\n\r\n        return search\r\n            .substring(1)\r\n            .split('&')\r\n            .reduce(\r\n                (acc, pair) => {\r\n                    const [key, value] = pair.split('=');\r\n                    acc[key] = value ? decodeURIComponent(value) : '';\r\n                    return acc;\r\n                },\r\n                {} as Record<keyof TQueryType, string | undefined>,\r\n            );\r\n    }\r\n}\r\n","import { validateBuildYear } from '@shared/Common';\r\nimport { commercialValidationParameters } from '@shared/Constants';\r\nimport { Rule } from '@webkit/index';\r\nimport dayjs from 'dayjs';\r\n\r\nexport const buildYear = () =>\r\n    ({\r\n        id: 'build-year',\r\n        validator: value => !value || validateBuildYear(parseInt(value)),\r\n        error: () =>\r\n            `The year built must be between ${commercialValidationParameters.YearBuiltMin} and ${dayjs().year()}`,\r\n    } as Rule<string>);\r\n","import { isAdmin, isAtLeastAgent, isLimitedAgentUser, navigate } from '@shared/Common';\r\nimport { AccessRole, pages } from '@shared/Constants';\r\nimport { useEffect } from 'react';\r\nimport { Params, useParams } from 'react-router-dom-v5-compat';\r\n\r\nexport type AuthorizeRedirectType = AccessRole | ((params?: Params<string>) => boolean) | undefined;\r\n\r\nexport const useAuthorizeRedirect = (type: AuthorizeRedirectType): boolean => {\r\n    const params = useParams();\r\n\r\n    useEffect(() => {\r\n        handleAuthorizeRedirect(type, params);\r\n    }, [type, params]);\r\n\r\n    return isAuthorized(type, params);\r\n};\r\n\r\nexport function handleAuthorizeRedirect(type: AuthorizeRedirectType, params?: Params<string>) {\r\n    if (!isAuthorized(type, params)) navigate(pages.LoginWithReturnUrl);\r\n}\r\n\r\nfunction isAuthorized(type: AuthorizeRedirectType, params?: Params<string>) {\r\n    if (type === undefined) return true;\r\n    if (type === AccessRole.Admin) return isAdmin();\r\n    if (\r\n        type === AccessRole.Agent ||\r\n        type === AccessRole.IndependentAgent ||\r\n        type === AccessRole.CaptiveAgent ||\r\n        type === AccessRole.AgencyAdmin ||\r\n        type === AccessRole.AgencyLocationAdmin\r\n    )\r\n        return isAtLeastAgent();\r\n    if (type === AccessRole.LimitedAgent) return isLimitedAgentUser();\r\n    if (type === AccessRole.AnonymousUser) return true;\r\n    if (typeof type === 'function') return type(params);\r\n\r\n    throw new Error(`Unsupported authorize redirection type: ${type}.`);\r\n}\r\n","import { navigate } from '@shared/Common';\r\nimport { pages } from '@shared/Constants';\r\nimport { AuthorizeRedirectType, useAuthorizeRedirect } from '@shared/Hooks/AuthorizeRedirect';\r\nimport * as React from 'react';\r\n\r\ntype Props = {\r\n    check: AuthorizeRedirectType;\r\n};\r\n\r\nexport const Auth = ({ check, children }: React.PropsWithChildren<Props>) => {\r\n    const auth = useAuthorizeRedirect(check);\r\n\r\n    if (!auth) {\r\n        navigate(pages.LoginWithReturnUrl);\r\n        return <></>;\r\n    }\r\n\r\n    return <>{children}</>;\r\n};\r\n","import { Auth } from '@app/App/auth';\r\nimport { AppSettingsContext } from '@app/State/Context';\r\nimport { Footer, Navbar } from '@legacy/Components/Menus';\r\nimport { AuthorizeRedirectType } from '@shared/Hooks/AuthorizeRedirect';\r\nimport { PropsWithChildren, useContext } from 'react';\r\n\r\ninterface BaseViewProps {\r\n    /* Optional AccessRole to match or boolean condition to trigger redirect to login page. */\r\n    authorizeRedirect?: AuthorizeRedirectType;\r\n    hideNavbar?: boolean;\r\n    hideFooter?: boolean;\r\n}\r\n\r\n/* A route with options to redirect based on auth, hide navbar, or hide footer. */\r\nexport function Route({ authorizeRedirect, hideNavbar, hideFooter, children }: PropsWithChildren<BaseViewProps>) {\r\n    const appSettings = useContext(AppSettingsContext);\r\n    return (\r\n        <Auth check={authorizeRedirect}>\r\n            {!hideNavbar && <Navbar />}\r\n\r\n            {children}\r\n\r\n            {!hideFooter && <Footer customerSupportPhoneNumber={appSettings?.customerSupportPhoneNumber} />}\r\n        </Auth>\r\n    );\r\n}\r\n","function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\n/*!\n * GSAP 3.12.5\n * https://gsap.com\n *\n * @license Copyright 2008-2024, GreenSock. All rights reserved.\n * Subject to the terms at https://gsap.com/standard-license or for\n * Club GSAP members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n\n/* eslint-disable */\nvar _config = {\n  autoSleep: 120,\n  force3D: \"auto\",\n  nullTargetWarn: 1,\n  units: {\n    lineHeight: \"\"\n  }\n},\n    _defaults = {\n  duration: .5,\n  overwrite: false,\n  delay: 0\n},\n    _suppressOverwrites,\n    _reverting,\n    _context,\n    _bigNum = 1e8,\n    _tinyNum = 1 / _bigNum,\n    _2PI = Math.PI * 2,\n    _HALF_PI = _2PI / 4,\n    _gsID = 0,\n    _sqrt = Math.sqrt,\n    _cos = Math.cos,\n    _sin = Math.sin,\n    _isString = function _isString(value) {\n  return typeof value === \"string\";\n},\n    _isFunction = function _isFunction(value) {\n  return typeof value === \"function\";\n},\n    _isNumber = function _isNumber(value) {\n  return typeof value === \"number\";\n},\n    _isUndefined = function _isUndefined(value) {\n  return typeof value === \"undefined\";\n},\n    _isObject = function _isObject(value) {\n  return typeof value === \"object\";\n},\n    _isNotFalse = function _isNotFalse(value) {\n  return value !== false;\n},\n    _windowExists = function _windowExists() {\n  return typeof window !== \"undefined\";\n},\n    _isFuncOrString = function _isFuncOrString(value) {\n  return _isFunction(value) || _isString(value);\n},\n    _isTypedArray = typeof ArrayBuffer === \"function\" && ArrayBuffer.isView || function () {},\n    // note: IE10 has ArrayBuffer, but NOT ArrayBuffer.isView().\n_isArray = Array.isArray,\n    _strictNumExp = /(?:-?\\.?\\d|\\.)+/gi,\n    //only numbers (including negatives and decimals) but NOT relative values.\n_numExp = /[-+=.]*\\d+[.e\\-+]*\\d*[e\\-+]*\\d*/g,\n    //finds any numbers, including ones that start with += or -=, negative numbers, and ones in scientific notation like 1e-8.\n_numWithUnitExp = /[-+=.]*\\d+[.e-]*\\d*[a-z%]*/g,\n    _complexStringNumExp = /[-+=.]*\\d+\\.?\\d*(?:e-|e\\+)?\\d*/gi,\n    //duplicate so that while we're looping through matches from exec(), it doesn't contaminate the lastIndex of _numExp which we use to search for colors too.\n_relExp = /[+-]=-?[.\\d]+/,\n    _delimitedValueExp = /[^,'\"\\[\\]\\s]+/gi,\n    // previously /[#\\-+.]*\\b[a-z\\d\\-=+%.]+/gi but didn't catch special characters.\n_unitExp = /^[+\\-=e\\s\\d]*\\d+[.\\d]*([a-z]*|%)\\s*$/i,\n    _globalTimeline,\n    _win,\n    _coreInitted,\n    _doc,\n    _globals = {},\n    _installScope = {},\n    _coreReady,\n    _install = function _install(scope) {\n  return (_installScope = _merge(scope, _globals)) && gsap;\n},\n    _missingPlugin = function _missingPlugin(property, value) {\n  return console.warn(\"Invalid property\", property, \"set to\", value, \"Missing plugin? gsap.registerPlugin()\");\n},\n    _warn = function _warn(message, suppress) {\n  return !suppress && console.warn(message);\n},\n    _addGlobal = function _addGlobal(name, obj) {\n  return name && (_globals[name] = obj) && _installScope && (_installScope[name] = obj) || _globals;\n},\n    _emptyFunc = function _emptyFunc() {\n  return 0;\n},\n    _startAtRevertConfig = {\n  suppressEvents: true,\n  isStart: true,\n  kill: false\n},\n    _revertConfigNoKill = {\n  suppressEvents: true,\n  kill: false\n},\n    _revertConfig = {\n  suppressEvents: true\n},\n    _reservedProps = {},\n    _lazyTweens = [],\n    _lazyLookup = {},\n    _lastRenderedFrame,\n    _plugins = {},\n    _effects = {},\n    _nextGCFrame = 30,\n    _harnessPlugins = [],\n    _callbackNames = \"\",\n    _harness = function _harness(targets) {\n  var target = targets[0],\n      harnessPlugin,\n      i;\n  _isObject(target) || _isFunction(target) || (targets = [targets]);\n\n  if (!(harnessPlugin = (target._gsap || {}).harness)) {\n    // find the first target with a harness. We assume targets passed into an animation will be of similar type, meaning the same kind of harness can be used for them all (performance optimization)\n    i = _harnessPlugins.length;\n\n    while (i-- && !_harnessPlugins[i].targetTest(target)) {}\n\n    harnessPlugin = _harnessPlugins[i];\n  }\n\n  i = targets.length;\n\n  while (i--) {\n    targets[i] && (targets[i]._gsap || (targets[i]._gsap = new GSCache(targets[i], harnessPlugin))) || targets.splice(i, 1);\n  }\n\n  return targets;\n},\n    _getCache = function _getCache(target) {\n  return target._gsap || _harness(toArray(target))[0]._gsap;\n},\n    _getProperty = function _getProperty(target, property, v) {\n  return (v = target[property]) && _isFunction(v) ? target[property]() : _isUndefined(v) && target.getAttribute && target.getAttribute(property) || v;\n},\n    _forEachName = function _forEachName(names, func) {\n  return (names = names.split(\",\")).forEach(func) || names;\n},\n    //split a comma-delimited list of names into an array, then run a forEach() function and return the split array (this is just a way to consolidate/shorten some code).\n_round = function _round(value) {\n  return Math.round(value * 100000) / 100000 || 0;\n},\n    _roundPrecise = function _roundPrecise(value) {\n  return Math.round(value * 10000000) / 10000000 || 0;\n},\n    // increased precision mostly for timing values.\n_parseRelative = function _parseRelative(start, value) {\n  var operator = value.charAt(0),\n      end = parseFloat(value.substr(2));\n  start = parseFloat(start);\n  return operator === \"+\" ? start + end : operator === \"-\" ? start - end : operator === \"*\" ? start * end : start / end;\n},\n    _arrayContainsAny = function _arrayContainsAny(toSearch, toFind) {\n  //searches one array to find matches for any of the items in the toFind array. As soon as one is found, it returns true. It does NOT return all the matches; it's simply a boolean search.\n  var l = toFind.length,\n      i = 0;\n\n  for (; toSearch.indexOf(toFind[i]) < 0 && ++i < l;) {}\n\n  return i < l;\n},\n    _lazyRender = function _lazyRender() {\n  var l = _lazyTweens.length,\n      a = _lazyTweens.slice(0),\n      i,\n      tween;\n\n  _lazyLookup = {};\n  _lazyTweens.length = 0;\n\n  for (i = 0; i < l; i++) {\n    tween = a[i];\n    tween && tween._lazy && (tween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0);\n  }\n},\n    _lazySafeRender = function _lazySafeRender(animation, time, suppressEvents, force) {\n  _lazyTweens.length && !_reverting && _lazyRender();\n  animation.render(time, suppressEvents, force || _reverting && time < 0 && (animation._initted || animation._startAt));\n  _lazyTweens.length && !_reverting && _lazyRender(); //in case rendering caused any tweens to lazy-init, we should render them because typically when someone calls seek() or time() or progress(), they expect an immediate render.\n},\n    _numericIfPossible = function _numericIfPossible(value) {\n  var n = parseFloat(value);\n  return (n || n === 0) && (value + \"\").match(_delimitedValueExp).length < 2 ? n : _isString(value) ? value.trim() : value;\n},\n    _passThrough = function _passThrough(p) {\n  return p;\n},\n    _setDefaults = function _setDefaults(obj, defaults) {\n  for (var p in defaults) {\n    p in obj || (obj[p] = defaults[p]);\n  }\n\n  return obj;\n},\n    _setKeyframeDefaults = function _setKeyframeDefaults(excludeDuration) {\n  return function (obj, defaults) {\n    for (var p in defaults) {\n      p in obj || p === \"duration\" && excludeDuration || p === \"ease\" || (obj[p] = defaults[p]);\n    }\n  };\n},\n    _merge = function _merge(base, toMerge) {\n  for (var p in toMerge) {\n    base[p] = toMerge[p];\n  }\n\n  return base;\n},\n    _mergeDeep = function _mergeDeep(base, toMerge) {\n  for (var p in toMerge) {\n    p !== \"__proto__\" && p !== \"constructor\" && p !== \"prototype\" && (base[p] = _isObject(toMerge[p]) ? _mergeDeep(base[p] || (base[p] = {}), toMerge[p]) : toMerge[p]);\n  }\n\n  return base;\n},\n    _copyExcluding = function _copyExcluding(obj, excluding) {\n  var copy = {},\n      p;\n\n  for (p in obj) {\n    p in excluding || (copy[p] = obj[p]);\n  }\n\n  return copy;\n},\n    _inheritDefaults = function _inheritDefaults(vars) {\n  var parent = vars.parent || _globalTimeline,\n      func = vars.keyframes ? _setKeyframeDefaults(_isArray(vars.keyframes)) : _setDefaults;\n\n  if (_isNotFalse(vars.inherit)) {\n    while (parent) {\n      func(vars, parent.vars.defaults);\n      parent = parent.parent || parent._dp;\n    }\n  }\n\n  return vars;\n},\n    _arraysMatch = function _arraysMatch(a1, a2) {\n  var i = a1.length,\n      match = i === a2.length;\n\n  while (match && i-- && a1[i] === a2[i]) {}\n\n  return i < 0;\n},\n    _addLinkedListItem = function _addLinkedListItem(parent, child, firstProp, lastProp, sortBy) {\n  if (firstProp === void 0) {\n    firstProp = \"_first\";\n  }\n\n  if (lastProp === void 0) {\n    lastProp = \"_last\";\n  }\n\n  var prev = parent[lastProp],\n      t;\n\n  if (sortBy) {\n    t = child[sortBy];\n\n    while (prev && prev[sortBy] > t) {\n      prev = prev._prev;\n    }\n  }\n\n  if (prev) {\n    child._next = prev._next;\n    prev._next = child;\n  } else {\n    child._next = parent[firstProp];\n    parent[firstProp] = child;\n  }\n\n  if (child._next) {\n    child._next._prev = child;\n  } else {\n    parent[lastProp] = child;\n  }\n\n  child._prev = prev;\n  child.parent = child._dp = parent;\n  return child;\n},\n    _removeLinkedListItem = function _removeLinkedListItem(parent, child, firstProp, lastProp) {\n  if (firstProp === void 0) {\n    firstProp = \"_first\";\n  }\n\n  if (lastProp === void 0) {\n    lastProp = \"_last\";\n  }\n\n  var prev = child._prev,\n      next = child._next;\n\n  if (prev) {\n    prev._next = next;\n  } else if (parent[firstProp] === child) {\n    parent[firstProp] = next;\n  }\n\n  if (next) {\n    next._prev = prev;\n  } else if (parent[lastProp] === child) {\n    parent[lastProp] = prev;\n  }\n\n  child._next = child._prev = child.parent = null; // don't delete the _dp just so we can revert if necessary. But parent should be null to indicate the item isn't in a linked list.\n},\n    _removeFromParent = function _removeFromParent(child, onlyIfParentHasAutoRemove) {\n  child.parent && (!onlyIfParentHasAutoRemove || child.parent.autoRemoveChildren) && child.parent.remove && child.parent.remove(child);\n  child._act = 0;\n},\n    _uncache = function _uncache(animation, child) {\n  if (animation && (!child || child._end > animation._dur || child._start < 0)) {\n    // performance optimization: if a child animation is passed in we should only uncache if that child EXTENDS the animation (its end time is beyond the end)\n    var a = animation;\n\n    while (a) {\n      a._dirty = 1;\n      a = a.parent;\n    }\n  }\n\n  return animation;\n},\n    _recacheAncestors = function _recacheAncestors(animation) {\n  var parent = animation.parent;\n\n  while (parent && parent.parent) {\n    //sometimes we must force a re-sort of all children and update the duration/totalDuration of all ancestor timelines immediately in case, for example, in the middle of a render loop, one tween alters another tween's timeScale which shoves its startTime before 0, forcing the parent timeline to shift around and shiftChildren() which could affect that next tween's render (startTime). Doesn't matter for the root timeline though.\n    parent._dirty = 1;\n    parent.totalDuration();\n    parent = parent.parent;\n  }\n\n  return animation;\n},\n    _rewindStartAt = function _rewindStartAt(tween, totalTime, suppressEvents, force) {\n  return tween._startAt && (_reverting ? tween._startAt.revert(_revertConfigNoKill) : tween.vars.immediateRender && !tween.vars.autoRevert || tween._startAt.render(totalTime, true, force));\n},\n    _hasNoPausedAncestors = function _hasNoPausedAncestors(animation) {\n  return !animation || animation._ts && _hasNoPausedAncestors(animation.parent);\n},\n    _elapsedCycleDuration = function _elapsedCycleDuration(animation) {\n  return animation._repeat ? _animationCycle(animation._tTime, animation = animation.duration() + animation._rDelay) * animation : 0;\n},\n    // feed in the totalTime and cycleDuration and it'll return the cycle (iteration minus 1) and if the playhead is exactly at the very END, it will NOT bump up to the next cycle.\n_animationCycle = function _animationCycle(tTime, cycleDuration) {\n  var whole = Math.floor(tTime /= cycleDuration);\n  return tTime && whole === tTime ? whole - 1 : whole;\n},\n    _parentToChildTotalTime = function _parentToChildTotalTime(parentTime, child) {\n  return (parentTime - child._start) * child._ts + (child._ts >= 0 ? 0 : child._dirty ? child.totalDuration() : child._tDur);\n},\n    _setEnd = function _setEnd(animation) {\n  return animation._end = _roundPrecise(animation._start + (animation._tDur / Math.abs(animation._ts || animation._rts || _tinyNum) || 0));\n},\n    _alignPlayhead = function _alignPlayhead(animation, totalTime) {\n  // adjusts the animation's _start and _end according to the provided totalTime (only if the parent's smoothChildTiming is true and the animation isn't paused). It doesn't do any rendering or forcing things back into parent timelines, etc. - that's what totalTime() is for.\n  var parent = animation._dp;\n\n  if (parent && parent.smoothChildTiming && animation._ts) {\n    animation._start = _roundPrecise(parent._time - (animation._ts > 0 ? totalTime / animation._ts : ((animation._dirty ? animation.totalDuration() : animation._tDur) - totalTime) / -animation._ts));\n\n    _setEnd(animation);\n\n    parent._dirty || _uncache(parent, animation); //for performance improvement. If the parent's cache is already dirty, it already took care of marking the ancestors as dirty too, so skip the function call here.\n  }\n\n  return animation;\n},\n\n/*\n_totalTimeToTime = (clampedTotalTime, duration, repeat, repeatDelay, yoyo) => {\n\tlet cycleDuration = duration + repeatDelay,\n\t\ttime = _round(clampedTotalTime % cycleDuration);\n\tif (time > duration) {\n\t\ttime = duration;\n\t}\n\treturn (yoyo && (~~(clampedTotalTime / cycleDuration) & 1)) ? duration - time : time;\n},\n*/\n_postAddChecks = function _postAddChecks(timeline, child) {\n  var t;\n\n  if (child._time || !child._dur && child._initted || child._start < timeline._time && (child._dur || !child.add)) {\n    // in case, for example, the _start is moved on a tween that has already rendered, or if it's being inserted into a timeline BEFORE where the playhead is currently. Imagine it's at its end state, then the startTime is moved WAY later (after the end of this timeline), it should render at its beginning. Special case: if it's a timeline (has .add() method) and no duration, we can skip rendering because the user may be populating it AFTER adding it to a parent timeline (unconventional, but possible, and we wouldn't want it to get removed if the parent's autoRemoveChildren is true).\n    t = _parentToChildTotalTime(timeline.rawTime(), child);\n\n    if (!child._dur || _clamp(0, child.totalDuration(), t) - child._tTime > _tinyNum) {\n      child.render(t, true);\n    }\n  } //if the timeline has already ended but the inserted tween/timeline extends the duration, we should enable this timeline again so that it renders properly. We should also align the playhead with the parent timeline's when appropriate.\n\n\n  if (_uncache(timeline, child)._dp && timeline._initted && timeline._time >= timeline._dur && timeline._ts) {\n    //in case any of the ancestors had completed but should now be enabled...\n    if (timeline._dur < timeline.duration()) {\n      t = timeline;\n\n      while (t._dp) {\n        t.rawTime() >= 0 && t.totalTime(t._tTime); //moves the timeline (shifts its startTime) if necessary, and also enables it. If it's currently zero, though, it may not be scheduled to render until later so there's no need to force it to align with the current playhead position. Only move to catch up with the playhead.\n\n        t = t._dp;\n      }\n    }\n\n    timeline._zTime = -_tinyNum; // helps ensure that the next render() will be forced (crossingStart = true in render()), even if the duration hasn't changed (we're adding a child which would need to get rendered). Definitely an edge case. Note: we MUST do this AFTER the loop above where the totalTime() might trigger a render() because this _addToTimeline() method gets called from the Animation constructor, BEFORE tweens even record their targets, etc. so we wouldn't want things to get triggered in the wrong order.\n  }\n},\n    _addToTimeline = function _addToTimeline(timeline, child, position, skipChecks) {\n  child.parent && _removeFromParent(child);\n  child._start = _roundPrecise((_isNumber(position) ? position : position || timeline !== _globalTimeline ? _parsePosition(timeline, position, child) : timeline._time) + child._delay);\n  child._end = _roundPrecise(child._start + (child.totalDuration() / Math.abs(child.timeScale()) || 0));\n\n  _addLinkedListItem(timeline, child, \"_first\", \"_last\", timeline._sort ? \"_start\" : 0);\n\n  _isFromOrFromStart(child) || (timeline._recent = child);\n  skipChecks || _postAddChecks(timeline, child);\n  timeline._ts < 0 && _alignPlayhead(timeline, timeline._tTime); // if the timeline is reversed and the new child makes it longer, we may need to adjust the parent's _start (push it back)\n\n  return timeline;\n},\n    _scrollTrigger = function _scrollTrigger(animation, trigger) {\n  return (_globals.ScrollTrigger || _missingPlugin(\"scrollTrigger\", trigger)) && _globals.ScrollTrigger.create(trigger, animation);\n},\n    _attemptInitTween = function _attemptInitTween(tween, time, force, suppressEvents, tTime) {\n  _initTween(tween, time, tTime);\n\n  if (!tween._initted) {\n    return 1;\n  }\n\n  if (!force && tween._pt && !_reverting && (tween._dur && tween.vars.lazy !== false || !tween._dur && tween.vars.lazy) && _lastRenderedFrame !== _ticker.frame) {\n    _lazyTweens.push(tween);\n\n    tween._lazy = [tTime, suppressEvents];\n    return 1;\n  }\n},\n    _parentPlayheadIsBeforeStart = function _parentPlayheadIsBeforeStart(_ref) {\n  var parent = _ref.parent;\n  return parent && parent._ts && parent._initted && !parent._lock && (parent.rawTime() < 0 || _parentPlayheadIsBeforeStart(parent));\n},\n    // check parent's _lock because when a timeline repeats/yoyos and does its artificial wrapping, we shouldn't force the ratio back to 0\n_isFromOrFromStart = function _isFromOrFromStart(_ref2) {\n  var data = _ref2.data;\n  return data === \"isFromStart\" || data === \"isStart\";\n},\n    _renderZeroDurationTween = function _renderZeroDurationTween(tween, totalTime, suppressEvents, force) {\n  var prevRatio = tween.ratio,\n      ratio = totalTime < 0 || !totalTime && (!tween._start && _parentPlayheadIsBeforeStart(tween) && !(!tween._initted && _isFromOrFromStart(tween)) || (tween._ts < 0 || tween._dp._ts < 0) && !_isFromOrFromStart(tween)) ? 0 : 1,\n      // if the tween or its parent is reversed and the totalTime is 0, we should go to a ratio of 0. Edge case: if a from() or fromTo() stagger tween is placed later in a timeline, the \"startAt\" zero-duration tween could initially render at a time when the parent timeline's playhead is technically BEFORE where this tween is, so make sure that any \"from\" and \"fromTo\" startAt tweens are rendered the first time at a ratio of 1.\n  repeatDelay = tween._rDelay,\n      tTime = 0,\n      pt,\n      iteration,\n      prevIteration;\n\n  if (repeatDelay && tween._repeat) {\n    // in case there's a zero-duration tween that has a repeat with a repeatDelay\n    tTime = _clamp(0, tween._tDur, totalTime);\n    iteration = _animationCycle(tTime, repeatDelay);\n    tween._yoyo && iteration & 1 && (ratio = 1 - ratio);\n\n    if (iteration !== _animationCycle(tween._tTime, repeatDelay)) {\n      // if iteration changed\n      prevRatio = 1 - ratio;\n      tween.vars.repeatRefresh && tween._initted && tween.invalidate();\n    }\n  }\n\n  if (ratio !== prevRatio || _reverting || force || tween._zTime === _tinyNum || !totalTime && tween._zTime) {\n    if (!tween._initted && _attemptInitTween(tween, totalTime, force, suppressEvents, tTime)) {\n      // if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.\n      return;\n    }\n\n    prevIteration = tween._zTime;\n    tween._zTime = totalTime || (suppressEvents ? _tinyNum : 0); // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n\n    suppressEvents || (suppressEvents = totalTime && !prevIteration); // if it was rendered previously at exactly 0 (_zTime) and now the playhead is moving away, DON'T fire callbacks otherwise they'll seem like duplicates.\n\n    tween.ratio = ratio;\n    tween._from && (ratio = 1 - ratio);\n    tween._time = 0;\n    tween._tTime = tTime;\n    pt = tween._pt;\n\n    while (pt) {\n      pt.r(ratio, pt.d);\n      pt = pt._next;\n    }\n\n    totalTime < 0 && _rewindStartAt(tween, totalTime, suppressEvents, true);\n    tween._onUpdate && !suppressEvents && _callback(tween, \"onUpdate\");\n    tTime && tween._repeat && !suppressEvents && tween.parent && _callback(tween, \"onRepeat\");\n\n    if ((totalTime >= tween._tDur || totalTime < 0) && tween.ratio === ratio) {\n      ratio && _removeFromParent(tween, 1);\n\n      if (!suppressEvents && !_reverting) {\n        _callback(tween, ratio ? \"onComplete\" : \"onReverseComplete\", true);\n\n        tween._prom && tween._prom();\n      }\n    }\n  } else if (!tween._zTime) {\n    tween._zTime = totalTime;\n  }\n},\n    _findNextPauseTween = function _findNextPauseTween(animation, prevTime, time) {\n  var child;\n\n  if (time > prevTime) {\n    child = animation._first;\n\n    while (child && child._start <= time) {\n      if (child.data === \"isPause\" && child._start > prevTime) {\n        return child;\n      }\n\n      child = child._next;\n    }\n  } else {\n    child = animation._last;\n\n    while (child && child._start >= time) {\n      if (child.data === \"isPause\" && child._start < prevTime) {\n        return child;\n      }\n\n      child = child._prev;\n    }\n  }\n},\n    _setDuration = function _setDuration(animation, duration, skipUncache, leavePlayhead) {\n  var repeat = animation._repeat,\n      dur = _roundPrecise(duration) || 0,\n      totalProgress = animation._tTime / animation._tDur;\n  totalProgress && !leavePlayhead && (animation._time *= dur / animation._dur);\n  animation._dur = dur;\n  animation._tDur = !repeat ? dur : repeat < 0 ? 1e10 : _roundPrecise(dur * (repeat + 1) + animation._rDelay * repeat);\n  totalProgress > 0 && !leavePlayhead && _alignPlayhead(animation, animation._tTime = animation._tDur * totalProgress);\n  animation.parent && _setEnd(animation);\n  skipUncache || _uncache(animation.parent, animation);\n  return animation;\n},\n    _onUpdateTotalDuration = function _onUpdateTotalDuration(animation) {\n  return animation instanceof Timeline ? _uncache(animation) : _setDuration(animation, animation._dur);\n},\n    _zeroPosition = {\n  _start: 0,\n  endTime: _emptyFunc,\n  totalDuration: _emptyFunc\n},\n    _parsePosition = function _parsePosition(animation, position, percentAnimation) {\n  var labels = animation.labels,\n      recent = animation._recent || _zeroPosition,\n      clippedDuration = animation.duration() >= _bigNum ? recent.endTime(false) : animation._dur,\n      //in case there's a child that infinitely repeats, users almost never intend for the insertion point of a new child to be based on a SUPER long value like that so we clip it and assume the most recently-added child's endTime should be used instead.\n  i,\n      offset,\n      isPercent;\n\n  if (_isString(position) && (isNaN(position) || position in labels)) {\n    //if the string is a number like \"1\", check to see if there's a label with that name, otherwise interpret it as a number (absolute value).\n    offset = position.charAt(0);\n    isPercent = position.substr(-1) === \"%\";\n    i = position.indexOf(\"=\");\n\n    if (offset === \"<\" || offset === \">\") {\n      i >= 0 && (position = position.replace(/=/, \"\"));\n      return (offset === \"<\" ? recent._start : recent.endTime(recent._repeat >= 0)) + (parseFloat(position.substr(1)) || 0) * (isPercent ? (i < 0 ? recent : percentAnimation).totalDuration() / 100 : 1);\n    }\n\n    if (i < 0) {\n      position in labels || (labels[position] = clippedDuration);\n      return labels[position];\n    }\n\n    offset = parseFloat(position.charAt(i - 1) + position.substr(i + 1));\n\n    if (isPercent && percentAnimation) {\n      offset = offset / 100 * (_isArray(percentAnimation) ? percentAnimation[0] : percentAnimation).totalDuration();\n    }\n\n    return i > 1 ? _parsePosition(animation, position.substr(0, i - 1), percentAnimation) + offset : clippedDuration + offset;\n  }\n\n  return position == null ? clippedDuration : +position;\n},\n    _createTweenType = function _createTweenType(type, params, timeline) {\n  var isLegacy = _isNumber(params[1]),\n      varsIndex = (isLegacy ? 2 : 1) + (type < 2 ? 0 : 1),\n      vars = params[varsIndex],\n      irVars,\n      parent;\n\n  isLegacy && (vars.duration = params[1]);\n  vars.parent = timeline;\n\n  if (type) {\n    irVars = vars;\n    parent = timeline;\n\n    while (parent && !(\"immediateRender\" in irVars)) {\n      // inheritance hasn't happened yet, but someone may have set a default in an ancestor timeline. We could do vars.immediateRender = _isNotFalse(_inheritDefaults(vars).immediateRender) but that'd exact a slight performance penalty because _inheritDefaults() also runs in the Tween constructor. We're paying a small kb price here to gain speed.\n      irVars = parent.vars.defaults || {};\n      parent = _isNotFalse(parent.vars.inherit) && parent.parent;\n    }\n\n    vars.immediateRender = _isNotFalse(irVars.immediateRender);\n    type < 2 ? vars.runBackwards = 1 : vars.startAt = params[varsIndex - 1]; // \"from\" vars\n  }\n\n  return new Tween(params[0], vars, params[varsIndex + 1]);\n},\n    _conditionalReturn = function _conditionalReturn(value, func) {\n  return value || value === 0 ? func(value) : func;\n},\n    _clamp = function _clamp(min, max, value) {\n  return value < min ? min : value > max ? max : value;\n},\n    getUnit = function getUnit(value, v) {\n  return !_isString(value) || !(v = _unitExp.exec(value)) ? \"\" : v[1];\n},\n    // note: protect against padded numbers as strings, like \"100.100\". That shouldn't return \"00\" as the unit. If it's numeric, return no unit.\nclamp = function clamp(min, max, value) {\n  return _conditionalReturn(value, function (v) {\n    return _clamp(min, max, v);\n  });\n},\n    _slice = [].slice,\n    _isArrayLike = function _isArrayLike(value, nonEmpty) {\n  return value && _isObject(value) && \"length\" in value && (!nonEmpty && !value.length || value.length - 1 in value && _isObject(value[0])) && !value.nodeType && value !== _win;\n},\n    _flatten = function _flatten(ar, leaveStrings, accumulator) {\n  if (accumulator === void 0) {\n    accumulator = [];\n  }\n\n  return ar.forEach(function (value) {\n    var _accumulator;\n\n    return _isString(value) && !leaveStrings || _isArrayLike(value, 1) ? (_accumulator = accumulator).push.apply(_accumulator, toArray(value)) : accumulator.push(value);\n  }) || accumulator;\n},\n    //takes any value and returns an array. If it's a string (and leaveStrings isn't true), it'll use document.querySelectorAll() and convert that to an array. It'll also accept iterables like jQuery objects.\ntoArray = function toArray(value, scope, leaveStrings) {\n  return _context && !scope && _context.selector ? _context.selector(value) : _isString(value) && !leaveStrings && (_coreInitted || !_wake()) ? _slice.call((scope || _doc).querySelectorAll(value), 0) : _isArray(value) ? _flatten(value, leaveStrings) : _isArrayLike(value) ? _slice.call(value, 0) : value ? [value] : [];\n},\n    selector = function selector(value) {\n  value = toArray(value)[0] || _warn(\"Invalid scope\") || {};\n  return function (v) {\n    var el = value.current || value.nativeElement || value;\n    return toArray(v, el.querySelectorAll ? el : el === value ? _warn(\"Invalid scope\") || _doc.createElement(\"div\") : value);\n  };\n},\n    shuffle = function shuffle(a) {\n  return a.sort(function () {\n    return .5 - Math.random();\n  });\n},\n    // alternative that's a bit faster and more reliably diverse but bigger:   for (let j, v, i = a.length; i; j = Math.floor(Math.random() * i), v = a[--i], a[i] = a[j], a[j] = v); return a;\n//for distributing values across an array. Can accept a number, a function or (most commonly) a function which can contain the following properties: {base, amount, from, ease, grid, axis, length, each}. Returns a function that expects the following parameters: index, target, array. Recognizes the following\ndistribute = function distribute(v) {\n  if (_isFunction(v)) {\n    return v;\n  }\n\n  var vars = _isObject(v) ? v : {\n    each: v\n  },\n      //n:1 is just to indicate v was a number; we leverage that later to set v according to the length we get. If a number is passed in, we treat it like the old stagger value where 0.1, for example, would mean that things would be distributed with 0.1 between each element in the array rather than a total \"amount\" that's chunked out among them all.\n  ease = _parseEase(vars.ease),\n      from = vars.from || 0,\n      base = parseFloat(vars.base) || 0,\n      cache = {},\n      isDecimal = from > 0 && from < 1,\n      ratios = isNaN(from) || isDecimal,\n      axis = vars.axis,\n      ratioX = from,\n      ratioY = from;\n\n  if (_isString(from)) {\n    ratioX = ratioY = {\n      center: .5,\n      edges: .5,\n      end: 1\n    }[from] || 0;\n  } else if (!isDecimal && ratios) {\n    ratioX = from[0];\n    ratioY = from[1];\n  }\n\n  return function (i, target, a) {\n    var l = (a || vars).length,\n        distances = cache[l],\n        originX,\n        originY,\n        x,\n        y,\n        d,\n        j,\n        max,\n        min,\n        wrapAt;\n\n    if (!distances) {\n      wrapAt = vars.grid === \"auto\" ? 0 : (vars.grid || [1, _bigNum])[1];\n\n      if (!wrapAt) {\n        max = -_bigNum;\n\n        while (max < (max = a[wrapAt++].getBoundingClientRect().left) && wrapAt < l) {}\n\n        wrapAt < l && wrapAt--;\n      }\n\n      distances = cache[l] = [];\n      originX = ratios ? Math.min(wrapAt, l) * ratioX - .5 : from % wrapAt;\n      originY = wrapAt === _bigNum ? 0 : ratios ? l * ratioY / wrapAt - .5 : from / wrapAt | 0;\n      max = 0;\n      min = _bigNum;\n\n      for (j = 0; j < l; j++) {\n        x = j % wrapAt - originX;\n        y = originY - (j / wrapAt | 0);\n        distances[j] = d = !axis ? _sqrt(x * x + y * y) : Math.abs(axis === \"y\" ? y : x);\n        d > max && (max = d);\n        d < min && (min = d);\n      }\n\n      from === \"random\" && shuffle(distances);\n      distances.max = max - min;\n      distances.min = min;\n      distances.v = l = (parseFloat(vars.amount) || parseFloat(vars.each) * (wrapAt > l ? l - 1 : !axis ? Math.max(wrapAt, l / wrapAt) : axis === \"y\" ? l / wrapAt : wrapAt) || 0) * (from === \"edges\" ? -1 : 1);\n      distances.b = l < 0 ? base - l : base;\n      distances.u = getUnit(vars.amount || vars.each) || 0; //unit\n\n      ease = ease && l < 0 ? _invertEase(ease) : ease;\n    }\n\n    l = (distances[i] - distances.min) / distances.max || 0;\n    return _roundPrecise(distances.b + (ease ? ease(l) : l) * distances.v) + distances.u; //round in order to work around floating point errors\n  };\n},\n    _roundModifier = function _roundModifier(v) {\n  //pass in 0.1 get a function that'll round to the nearest tenth, or 5 to round to the closest 5, or 0.001 to the closest 1000th, etc.\n  var p = Math.pow(10, ((v + \"\").split(\".\")[1] || \"\").length); //to avoid floating point math errors (like 24 * 0.1 == 2.4000000000000004), we chop off at a specific number of decimal places (much faster than toFixed())\n\n  return function (raw) {\n    var n = _roundPrecise(Math.round(parseFloat(raw) / v) * v * p);\n\n    return (n - n % 1) / p + (_isNumber(raw) ? 0 : getUnit(raw)); // n - n % 1 replaces Math.floor() in order to handle negative values properly. For example, Math.floor(-150.00000000000003) is 151!\n  };\n},\n    snap = function snap(snapTo, value) {\n  var isArray = _isArray(snapTo),\n      radius,\n      is2D;\n\n  if (!isArray && _isObject(snapTo)) {\n    radius = isArray = snapTo.radius || _bigNum;\n\n    if (snapTo.values) {\n      snapTo = toArray(snapTo.values);\n\n      if (is2D = !_isNumber(snapTo[0])) {\n        radius *= radius; //performance optimization so we don't have to Math.sqrt() in the loop.\n      }\n    } else {\n      snapTo = _roundModifier(snapTo.increment);\n    }\n  }\n\n  return _conditionalReturn(value, !isArray ? _roundModifier(snapTo) : _isFunction(snapTo) ? function (raw) {\n    is2D = snapTo(raw);\n    return Math.abs(is2D - raw) <= radius ? is2D : raw;\n  } : function (raw) {\n    var x = parseFloat(is2D ? raw.x : raw),\n        y = parseFloat(is2D ? raw.y : 0),\n        min = _bigNum,\n        closest = 0,\n        i = snapTo.length,\n        dx,\n        dy;\n\n    while (i--) {\n      if (is2D) {\n        dx = snapTo[i].x - x;\n        dy = snapTo[i].y - y;\n        dx = dx * dx + dy * dy;\n      } else {\n        dx = Math.abs(snapTo[i] - x);\n      }\n\n      if (dx < min) {\n        min = dx;\n        closest = i;\n      }\n    }\n\n    closest = !radius || min <= radius ? snapTo[closest] : raw;\n    return is2D || closest === raw || _isNumber(raw) ? closest : closest + getUnit(raw);\n  });\n},\n    random = function random(min, max, roundingIncrement, returnFunction) {\n  return _conditionalReturn(_isArray(min) ? !max : roundingIncrement === true ? !!(roundingIncrement = 0) : !returnFunction, function () {\n    return _isArray(min) ? min[~~(Math.random() * min.length)] : (roundingIncrement = roundingIncrement || 1e-5) && (returnFunction = roundingIncrement < 1 ? Math.pow(10, (roundingIncrement + \"\").length - 2) : 1) && Math.floor(Math.round((min - roundingIncrement / 2 + Math.random() * (max - min + roundingIncrement * .99)) / roundingIncrement) * roundingIncrement * returnFunction) / returnFunction;\n  });\n},\n    pipe = function pipe() {\n  for (var _len = arguments.length, functions = new Array(_len), _key = 0; _key < _len; _key++) {\n    functions[_key] = arguments[_key];\n  }\n\n  return function (value) {\n    return functions.reduce(function (v, f) {\n      return f(v);\n    }, value);\n  };\n},\n    unitize = function unitize(func, unit) {\n  return function (value) {\n    return func(parseFloat(value)) + (unit || getUnit(value));\n  };\n},\n    normalize = function normalize(min, max, value) {\n  return mapRange(min, max, 0, 1, value);\n},\n    _wrapArray = function _wrapArray(a, wrapper, value) {\n  return _conditionalReturn(value, function (index) {\n    return a[~~wrapper(index)];\n  });\n},\n    wrap = function wrap(min, max, value) {\n  // NOTE: wrap() CANNOT be an arrow function! A very odd compiling bug causes problems (unrelated to GSAP).\n  var range = max - min;\n  return _isArray(min) ? _wrapArray(min, wrap(0, min.length), max) : _conditionalReturn(value, function (value) {\n    return (range + (value - min) % range) % range + min;\n  });\n},\n    wrapYoyo = function wrapYoyo(min, max, value) {\n  var range = max - min,\n      total = range * 2;\n  return _isArray(min) ? _wrapArray(min, wrapYoyo(0, min.length - 1), max) : _conditionalReturn(value, function (value) {\n    value = (total + (value - min) % total) % total || 0;\n    return min + (value > range ? total - value : value);\n  });\n},\n    _replaceRandom = function _replaceRandom(value) {\n  //replaces all occurrences of random(...) in a string with the calculated random value. can be a range like random(-100, 100, 5) or an array like random([0, 100, 500])\n  var prev = 0,\n      s = \"\",\n      i,\n      nums,\n      end,\n      isArray;\n\n  while (~(i = value.indexOf(\"random(\", prev))) {\n    end = value.indexOf(\")\", i);\n    isArray = value.charAt(i + 7) === \"[\";\n    nums = value.substr(i + 7, end - i - 7).match(isArray ? _delimitedValueExp : _strictNumExp);\n    s += value.substr(prev, i - prev) + random(isArray ? nums : +nums[0], isArray ? 0 : +nums[1], +nums[2] || 1e-5);\n    prev = end + 1;\n  }\n\n  return s + value.substr(prev, value.length - prev);\n},\n    mapRange = function mapRange(inMin, inMax, outMin, outMax, value) {\n  var inRange = inMax - inMin,\n      outRange = outMax - outMin;\n  return _conditionalReturn(value, function (value) {\n    return outMin + ((value - inMin) / inRange * outRange || 0);\n  });\n},\n    interpolate = function interpolate(start, end, progress, mutate) {\n  var func = isNaN(start + end) ? 0 : function (p) {\n    return (1 - p) * start + p * end;\n  };\n\n  if (!func) {\n    var isString = _isString(start),\n        master = {},\n        p,\n        i,\n        interpolators,\n        l,\n        il;\n\n    progress === true && (mutate = 1) && (progress = null);\n\n    if (isString) {\n      start = {\n        p: start\n      };\n      end = {\n        p: end\n      };\n    } else if (_isArray(start) && !_isArray(end)) {\n      interpolators = [];\n      l = start.length;\n      il = l - 2;\n\n      for (i = 1; i < l; i++) {\n        interpolators.push(interpolate(start[i - 1], start[i])); //build the interpolators up front as a performance optimization so that when the function is called many times, it can just reuse them.\n      }\n\n      l--;\n\n      func = function func(p) {\n        p *= l;\n        var i = Math.min(il, ~~p);\n        return interpolators[i](p - i);\n      };\n\n      progress = end;\n    } else if (!mutate) {\n      start = _merge(_isArray(start) ? [] : {}, start);\n    }\n\n    if (!interpolators) {\n      for (p in end) {\n        _addPropTween.call(master, start, p, \"get\", end[p]);\n      }\n\n      func = function func(p) {\n        return _renderPropTweens(p, master) || (isString ? start.p : start);\n      };\n    }\n  }\n\n  return _conditionalReturn(progress, func);\n},\n    _getLabelInDirection = function _getLabelInDirection(timeline, fromTime, backward) {\n  //used for nextLabel() and previousLabel()\n  var labels = timeline.labels,\n      min = _bigNum,\n      p,\n      distance,\n      label;\n\n  for (p in labels) {\n    distance = labels[p] - fromTime;\n\n    if (distance < 0 === !!backward && distance && min > (distance = Math.abs(distance))) {\n      label = p;\n      min = distance;\n    }\n  }\n\n  return label;\n},\n    _callback = function _callback(animation, type, executeLazyFirst) {\n  var v = animation.vars,\n      callback = v[type],\n      prevContext = _context,\n      context = animation._ctx,\n      params,\n      scope,\n      result;\n\n  if (!callback) {\n    return;\n  }\n\n  params = v[type + \"Params\"];\n  scope = v.callbackScope || animation;\n  executeLazyFirst && _lazyTweens.length && _lazyRender(); //in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values.\n\n  context && (_context = context);\n  result = params ? callback.apply(scope, params) : callback.call(scope);\n  _context = prevContext;\n  return result;\n},\n    _interrupt = function _interrupt(animation) {\n  _removeFromParent(animation);\n\n  animation.scrollTrigger && animation.scrollTrigger.kill(!!_reverting);\n  animation.progress() < 1 && _callback(animation, \"onInterrupt\");\n  return animation;\n},\n    _quickTween,\n    _registerPluginQueue = [],\n    _createPlugin = function _createPlugin(config) {\n  if (!config) return;\n  config = !config.name && config[\"default\"] || config; // UMD packaging wraps things oddly, so for example MotionPathHelper becomes {MotionPathHelper:MotionPathHelper, default:MotionPathHelper}.\n\n  if (_windowExists() || config.headless) {\n    // edge case: some build tools may pass in a null/undefined value\n    var name = config.name,\n        isFunc = _isFunction(config),\n        Plugin = name && !isFunc && config.init ? function () {\n      this._props = [];\n    } : config,\n        //in case someone passes in an object that's not a plugin, like CustomEase\n    instanceDefaults = {\n      init: _emptyFunc,\n      render: _renderPropTweens,\n      add: _addPropTween,\n      kill: _killPropTweensOf,\n      modifier: _addPluginModifier,\n      rawVars: 0\n    },\n        statics = {\n      targetTest: 0,\n      get: 0,\n      getSetter: _getSetter,\n      aliases: {},\n      register: 0\n    };\n\n    _wake();\n\n    if (config !== Plugin) {\n      if (_plugins[name]) {\n        return;\n      }\n\n      _setDefaults(Plugin, _setDefaults(_copyExcluding(config, instanceDefaults), statics)); //static methods\n\n\n      _merge(Plugin.prototype, _merge(instanceDefaults, _copyExcluding(config, statics))); //instance methods\n\n\n      _plugins[Plugin.prop = name] = Plugin;\n\n      if (config.targetTest) {\n        _harnessPlugins.push(Plugin);\n\n        _reservedProps[name] = 1;\n      }\n\n      name = (name === \"css\" ? \"CSS\" : name.charAt(0).toUpperCase() + name.substr(1)) + \"Plugin\"; //for the global name. \"motionPath\" should become MotionPathPlugin\n    }\n\n    _addGlobal(name, Plugin);\n\n    config.register && config.register(gsap, Plugin, PropTween);\n  } else {\n    _registerPluginQueue.push(config);\n  }\n},\n\n/*\n * --------------------------------------------------------------------------------------\n * COLORS\n * --------------------------------------------------------------------------------------\n */\n_255 = 255,\n    _colorLookup = {\n  aqua: [0, _255, _255],\n  lime: [0, _255, 0],\n  silver: [192, 192, 192],\n  black: [0, 0, 0],\n  maroon: [128, 0, 0],\n  teal: [0, 128, 128],\n  blue: [0, 0, _255],\n  navy: [0, 0, 128],\n  white: [_255, _255, _255],\n  olive: [128, 128, 0],\n  yellow: [_255, _255, 0],\n  orange: [_255, 165, 0],\n  gray: [128, 128, 128],\n  purple: [128, 0, 128],\n  green: [0, 128, 0],\n  red: [_255, 0, 0],\n  pink: [_255, 192, 203],\n  cyan: [0, _255, _255],\n  transparent: [_255, _255, _255, 0]\n},\n    // possible future idea to replace the hard-coded color name values - put this in the ticker.wake() where we set the _doc:\n// let ctx = _doc.createElement(\"canvas\").getContext(\"2d\");\n// _forEachName(\"aqua,lime,silver,black,maroon,teal,blue,navy,white,olive,yellow,orange,gray,purple,green,red,pink,cyan\", color => {ctx.fillStyle = color; _colorLookup[color] = splitColor(ctx.fillStyle)});\n_hue = function _hue(h, m1, m2) {\n  h += h < 0 ? 1 : h > 1 ? -1 : 0;\n  return (h * 6 < 1 ? m1 + (m2 - m1) * h * 6 : h < .5 ? m2 : h * 3 < 2 ? m1 + (m2 - m1) * (2 / 3 - h) * 6 : m1) * _255 + .5 | 0;\n},\n    splitColor = function splitColor(v, toHSL, forceAlpha) {\n  var a = !v ? _colorLookup.black : _isNumber(v) ? [v >> 16, v >> 8 & _255, v & _255] : 0,\n      r,\n      g,\n      b,\n      h,\n      s,\n      l,\n      max,\n      min,\n      d,\n      wasHSL;\n\n  if (!a) {\n    if (v.substr(-1) === \",\") {\n      //sometimes a trailing comma is included and we should chop it off (typically from a comma-delimited list of values like a textShadow:\"2px 2px 2px blue, 5px 5px 5px rgb(255,0,0)\" - in this example \"blue,\" has a trailing comma. We could strip it out inside parseComplex() but we'd need to do it to the beginning and ending values plus it wouldn't provide protection from other potential scenarios like if the user passes in a similar value.\n      v = v.substr(0, v.length - 1);\n    }\n\n    if (_colorLookup[v]) {\n      a = _colorLookup[v];\n    } else if (v.charAt(0) === \"#\") {\n      if (v.length < 6) {\n        //for shorthand like #9F0 or #9F0F (could have alpha)\n        r = v.charAt(1);\n        g = v.charAt(2);\n        b = v.charAt(3);\n        v = \"#\" + r + r + g + g + b + b + (v.length === 5 ? v.charAt(4) + v.charAt(4) : \"\");\n      }\n\n      if (v.length === 9) {\n        // hex with alpha, like #fd5e53ff\n        a = parseInt(v.substr(1, 6), 16);\n        return [a >> 16, a >> 8 & _255, a & _255, parseInt(v.substr(7), 16) / 255];\n      }\n\n      v = parseInt(v.substr(1), 16);\n      a = [v >> 16, v >> 8 & _255, v & _255];\n    } else if (v.substr(0, 3) === \"hsl\") {\n      a = wasHSL = v.match(_strictNumExp);\n\n      if (!toHSL) {\n        h = +a[0] % 360 / 360;\n        s = +a[1] / 100;\n        l = +a[2] / 100;\n        g = l <= .5 ? l * (s + 1) : l + s - l * s;\n        r = l * 2 - g;\n        a.length > 3 && (a[3] *= 1); //cast as number\n\n        a[0] = _hue(h + 1 / 3, r, g);\n        a[1] = _hue(h, r, g);\n        a[2] = _hue(h - 1 / 3, r, g);\n      } else if (~v.indexOf(\"=\")) {\n        //if relative values are found, just return the raw strings with the relative prefixes in place.\n        a = v.match(_numExp);\n        forceAlpha && a.length < 4 && (a[3] = 1);\n        return a;\n      }\n    } else {\n      a = v.match(_strictNumExp) || _colorLookup.transparent;\n    }\n\n    a = a.map(Number);\n  }\n\n  if (toHSL && !wasHSL) {\n    r = a[0] / _255;\n    g = a[1] / _255;\n    b = a[2] / _255;\n    max = Math.max(r, g, b);\n    min = Math.min(r, g, b);\n    l = (max + min) / 2;\n\n    if (max === min) {\n      h = s = 0;\n    } else {\n      d = max - min;\n      s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n      h = max === r ? (g - b) / d + (g < b ? 6 : 0) : max === g ? (b - r) / d + 2 : (r - g) / d + 4;\n      h *= 60;\n    }\n\n    a[0] = ~~(h + .5);\n    a[1] = ~~(s * 100 + .5);\n    a[2] = ~~(l * 100 + .5);\n  }\n\n  forceAlpha && a.length < 4 && (a[3] = 1);\n  return a;\n},\n    _colorOrderData = function _colorOrderData(v) {\n  // strips out the colors from the string, finds all the numeric slots (with units) and returns an array of those. The Array also has a \"c\" property which is an Array of the index values where the colors belong. This is to help work around issues where there's a mis-matched order of color/numeric data like drop-shadow(#f00 0px 1px 2px) and drop-shadow(0x 1px 2px #f00). This is basically a helper function used in _formatColors()\n  var values = [],\n      c = [],\n      i = -1;\n  v.split(_colorExp).forEach(function (v) {\n    var a = v.match(_numWithUnitExp) || [];\n    values.push.apply(values, a);\n    c.push(i += a.length + 1);\n  });\n  values.c = c;\n  return values;\n},\n    _formatColors = function _formatColors(s, toHSL, orderMatchData) {\n  var result = \"\",\n      colors = (s + result).match(_colorExp),\n      type = toHSL ? \"hsla(\" : \"rgba(\",\n      i = 0,\n      c,\n      shell,\n      d,\n      l;\n\n  if (!colors) {\n    return s;\n  }\n\n  colors = colors.map(function (color) {\n    return (color = splitColor(color, toHSL, 1)) && type + (toHSL ? color[0] + \",\" + color[1] + \"%,\" + color[2] + \"%,\" + color[3] : color.join(\",\")) + \")\";\n  });\n\n  if (orderMatchData) {\n    d = _colorOrderData(s);\n    c = orderMatchData.c;\n\n    if (c.join(result) !== d.c.join(result)) {\n      shell = s.replace(_colorExp, \"1\").split(_numWithUnitExp);\n      l = shell.length - 1;\n\n      for (; i < l; i++) {\n        result += shell[i] + (~c.indexOf(i) ? colors.shift() || type + \"0,0,0,0)\" : (d.length ? d : colors.length ? colors : orderMatchData).shift());\n      }\n    }\n  }\n\n  if (!shell) {\n    shell = s.split(_colorExp);\n    l = shell.length - 1;\n\n    for (; i < l; i++) {\n      result += shell[i] + colors[i];\n    }\n  }\n\n  return result + shell[l];\n},\n    _colorExp = function () {\n  var s = \"(?:\\\\b(?:(?:rgb|rgba|hsl|hsla)\\\\(.+?\\\\))|\\\\B#(?:[0-9a-f]{3,4}){1,2}\\\\b\",\n      //we'll dynamically build this Regular Expression to conserve file size. After building it, it will be able to find rgb(), rgba(), # (hexadecimal), and named color values like red, blue, purple, etc.,\n  p;\n\n  for (p in _colorLookup) {\n    s += \"|\" + p + \"\\\\b\";\n  }\n\n  return new RegExp(s + \")\", \"gi\");\n}(),\n    _hslExp = /hsl[a]?\\(/,\n    _colorStringFilter = function _colorStringFilter(a) {\n  var combined = a.join(\" \"),\n      toHSL;\n  _colorExp.lastIndex = 0;\n\n  if (_colorExp.test(combined)) {\n    toHSL = _hslExp.test(combined);\n    a[1] = _formatColors(a[1], toHSL);\n    a[0] = _formatColors(a[0], toHSL, _colorOrderData(a[1])); // make sure the order of numbers/colors match with the END value.\n\n    return true;\n  }\n},\n\n/*\n * --------------------------------------------------------------------------------------\n * TICKER\n * --------------------------------------------------------------------------------------\n */\n_tickerActive,\n    _ticker = function () {\n  var _getTime = Date.now,\n      _lagThreshold = 500,\n      _adjustedLag = 33,\n      _startTime = _getTime(),\n      _lastUpdate = _startTime,\n      _gap = 1000 / 240,\n      _nextTime = _gap,\n      _listeners = [],\n      _id,\n      _req,\n      _raf,\n      _self,\n      _delta,\n      _i,\n      _tick = function _tick(v) {\n    var elapsed = _getTime() - _lastUpdate,\n        manual = v === true,\n        overlap,\n        dispatch,\n        time,\n        frame;\n\n    (elapsed > _lagThreshold || elapsed < 0) && (_startTime += elapsed - _adjustedLag);\n    _lastUpdate += elapsed;\n    time = _lastUpdate - _startTime;\n    overlap = time - _nextTime;\n\n    if (overlap > 0 || manual) {\n      frame = ++_self.frame;\n      _delta = time - _self.time * 1000;\n      _self.time = time = time / 1000;\n      _nextTime += overlap + (overlap >= _gap ? 4 : _gap - overlap);\n      dispatch = 1;\n    }\n\n    manual || (_id = _req(_tick)); //make sure the request is made before we dispatch the \"tick\" event so that timing is maintained. Otherwise, if processing the \"tick\" requires a bunch of time (like 15ms) and we're using a setTimeout() that's based on 16.7ms, it'd technically take 31.7ms between frames otherwise.\n\n    if (dispatch) {\n      for (_i = 0; _i < _listeners.length; _i++) {\n        // use _i and check _listeners.length instead of a variable because a listener could get removed during the loop, and if that happens to an element less than the current index, it'd throw things off in the loop.\n        _listeners[_i](time, _delta, frame, v);\n      }\n    }\n  };\n\n  _self = {\n    time: 0,\n    frame: 0,\n    tick: function tick() {\n      _tick(true);\n    },\n    deltaRatio: function deltaRatio(fps) {\n      return _delta / (1000 / (fps || 60));\n    },\n    wake: function wake() {\n      if (_coreReady) {\n        if (!_coreInitted && _windowExists()) {\n          _win = _coreInitted = window;\n          _doc = _win.document || {};\n          _globals.gsap = gsap;\n          (_win.gsapVersions || (_win.gsapVersions = [])).push(gsap.version);\n\n          _install(_installScope || _win.GreenSockGlobals || !_win.gsap && _win || {});\n\n          _registerPluginQueue.forEach(_createPlugin);\n        }\n\n        _raf = typeof requestAnimationFrame !== \"undefined\" && requestAnimationFrame;\n        _id && _self.sleep();\n\n        _req = _raf || function (f) {\n          return setTimeout(f, _nextTime - _self.time * 1000 + 1 | 0);\n        };\n\n        _tickerActive = 1;\n\n        _tick(2);\n      }\n    },\n    sleep: function sleep() {\n      (_raf ? cancelAnimationFrame : clearTimeout)(_id);\n      _tickerActive = 0;\n      _req = _emptyFunc;\n    },\n    lagSmoothing: function lagSmoothing(threshold, adjustedLag) {\n      _lagThreshold = threshold || Infinity; // zero should be interpreted as basically unlimited\n\n      _adjustedLag = Math.min(adjustedLag || 33, _lagThreshold);\n    },\n    fps: function fps(_fps) {\n      _gap = 1000 / (_fps || 240);\n      _nextTime = _self.time * 1000 + _gap;\n    },\n    add: function add(callback, once, prioritize) {\n      var func = once ? function (t, d, f, v) {\n        callback(t, d, f, v);\n\n        _self.remove(func);\n      } : callback;\n\n      _self.remove(callback);\n\n      _listeners[prioritize ? \"unshift\" : \"push\"](func);\n\n      _wake();\n\n      return func;\n    },\n    remove: function remove(callback, i) {\n      ~(i = _listeners.indexOf(callback)) && _listeners.splice(i, 1) && _i >= i && _i--;\n    },\n    _listeners: _listeners\n  };\n  return _self;\n}(),\n    _wake = function _wake() {\n  return !_tickerActive && _ticker.wake();\n},\n    //also ensures the core classes are initialized.\n\n/*\n* -------------------------------------------------\n* EASING\n* -------------------------------------------------\n*/\n_easeMap = {},\n    _customEaseExp = /^[\\d.\\-M][\\d.\\-,\\s]/,\n    _quotesExp = /[\"']/g,\n    _parseObjectInString = function _parseObjectInString(value) {\n  //takes a string like \"{wiggles:10, type:anticipate})\" and turns it into a real object. Notice it ends in \")\" and includes the {} wrappers. This is because we only use this function for parsing ease configs and prioritized optimization rather than reusability.\n  var obj = {},\n      split = value.substr(1, value.length - 3).split(\":\"),\n      key = split[0],\n      i = 1,\n      l = split.length,\n      index,\n      val,\n      parsedVal;\n\n  for (; i < l; i++) {\n    val = split[i];\n    index = i !== l - 1 ? val.lastIndexOf(\",\") : val.length;\n    parsedVal = val.substr(0, index);\n    obj[key] = isNaN(parsedVal) ? parsedVal.replace(_quotesExp, \"\").trim() : +parsedVal;\n    key = val.substr(index + 1).trim();\n  }\n\n  return obj;\n},\n    _valueInParentheses = function _valueInParentheses(value) {\n  var open = value.indexOf(\"(\") + 1,\n      close = value.indexOf(\")\"),\n      nested = value.indexOf(\"(\", open);\n  return value.substring(open, ~nested && nested < close ? value.indexOf(\")\", close + 1) : close);\n},\n    _configEaseFromString = function _configEaseFromString(name) {\n  //name can be a string like \"elastic.out(1,0.5)\", and pass in _easeMap as obj and it'll parse it out and call the actual function like _easeMap.Elastic.easeOut.config(1,0.5). It will also parse custom ease strings as long as CustomEase is loaded and registered (internally as _easeMap._CE).\n  var split = (name + \"\").split(\"(\"),\n      ease = _easeMap[split[0]];\n  return ease && split.length > 1 && ease.config ? ease.config.apply(null, ~name.indexOf(\"{\") ? [_parseObjectInString(split[1])] : _valueInParentheses(name).split(\",\").map(_numericIfPossible)) : _easeMap._CE && _customEaseExp.test(name) ? _easeMap._CE(\"\", name) : ease;\n},\n    _invertEase = function _invertEase(ease) {\n  return function (p) {\n    return 1 - ease(1 - p);\n  };\n},\n    // allow yoyoEase to be set in children and have those affected when the parent/ancestor timeline yoyos.\n_propagateYoyoEase = function _propagateYoyoEase(timeline, isYoyo) {\n  var child = timeline._first,\n      ease;\n\n  while (child) {\n    if (child instanceof Timeline) {\n      _propagateYoyoEase(child, isYoyo);\n    } else if (child.vars.yoyoEase && (!child._yoyo || !child._repeat) && child._yoyo !== isYoyo) {\n      if (child.timeline) {\n        _propagateYoyoEase(child.timeline, isYoyo);\n      } else {\n        ease = child._ease;\n        child._ease = child._yEase;\n        child._yEase = ease;\n        child._yoyo = isYoyo;\n      }\n    }\n\n    child = child._next;\n  }\n},\n    _parseEase = function _parseEase(ease, defaultEase) {\n  return !ease ? defaultEase : (_isFunction(ease) ? ease : _easeMap[ease] || _configEaseFromString(ease)) || defaultEase;\n},\n    _insertEase = function _insertEase(names, easeIn, easeOut, easeInOut) {\n  if (easeOut === void 0) {\n    easeOut = function easeOut(p) {\n      return 1 - easeIn(1 - p);\n    };\n  }\n\n  if (easeInOut === void 0) {\n    easeInOut = function easeInOut(p) {\n      return p < .5 ? easeIn(p * 2) / 2 : 1 - easeIn((1 - p) * 2) / 2;\n    };\n  }\n\n  var ease = {\n    easeIn: easeIn,\n    easeOut: easeOut,\n    easeInOut: easeInOut\n  },\n      lowercaseName;\n\n  _forEachName(names, function (name) {\n    _easeMap[name] = _globals[name] = ease;\n    _easeMap[lowercaseName = name.toLowerCase()] = easeOut;\n\n    for (var p in ease) {\n      _easeMap[lowercaseName + (p === \"easeIn\" ? \".in\" : p === \"easeOut\" ? \".out\" : \".inOut\")] = _easeMap[name + \".\" + p] = ease[p];\n    }\n  });\n\n  return ease;\n},\n    _easeInOutFromOut = function _easeInOutFromOut(easeOut) {\n  return function (p) {\n    return p < .5 ? (1 - easeOut(1 - p * 2)) / 2 : .5 + easeOut((p - .5) * 2) / 2;\n  };\n},\n    _configElastic = function _configElastic(type, amplitude, period) {\n  var p1 = amplitude >= 1 ? amplitude : 1,\n      //note: if amplitude is < 1, we simply adjust the period for a more natural feel. Otherwise the math doesn't work right and the curve starts at 1.\n  p2 = (period || (type ? .3 : .45)) / (amplitude < 1 ? amplitude : 1),\n      p3 = p2 / _2PI * (Math.asin(1 / p1) || 0),\n      easeOut = function easeOut(p) {\n    return p === 1 ? 1 : p1 * Math.pow(2, -10 * p) * _sin((p - p3) * p2) + 1;\n  },\n      ease = type === \"out\" ? easeOut : type === \"in\" ? function (p) {\n    return 1 - easeOut(1 - p);\n  } : _easeInOutFromOut(easeOut);\n\n  p2 = _2PI / p2; //precalculate to optimize\n\n  ease.config = function (amplitude, period) {\n    return _configElastic(type, amplitude, period);\n  };\n\n  return ease;\n},\n    _configBack = function _configBack(type, overshoot) {\n  if (overshoot === void 0) {\n    overshoot = 1.70158;\n  }\n\n  var easeOut = function easeOut(p) {\n    return p ? --p * p * ((overshoot + 1) * p + overshoot) + 1 : 0;\n  },\n      ease = type === \"out\" ? easeOut : type === \"in\" ? function (p) {\n    return 1 - easeOut(1 - p);\n  } : _easeInOutFromOut(easeOut);\n\n  ease.config = function (overshoot) {\n    return _configBack(type, overshoot);\n  };\n\n  return ease;\n}; // a cheaper (kb and cpu) but more mild way to get a parameterized weighted ease by feeding in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n// _weightedEase = ratio => {\n// \tlet y = 0.5 + ratio / 2;\n// \treturn p => (2 * (1 - p) * p * y + p * p);\n// },\n// a stronger (but more expensive kb/cpu) parameterized weighted ease that lets you feed in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n// _weightedEaseStrong = ratio => {\n// \tratio = .5 + ratio / 2;\n// \tlet o = 1 / 3 * (ratio < .5 ? ratio : 1 - ratio),\n// \t\tb = ratio - o,\n// \t\tc = ratio + o;\n// \treturn p => p === 1 ? p : 3 * b * (1 - p) * (1 - p) * p + 3 * c * (1 - p) * p * p + p * p * p;\n// };\n\n\n_forEachName(\"Linear,Quad,Cubic,Quart,Quint,Strong\", function (name, i) {\n  var power = i < 5 ? i + 1 : i;\n\n  _insertEase(name + \",Power\" + (power - 1), i ? function (p) {\n    return Math.pow(p, power);\n  } : function (p) {\n    return p;\n  }, function (p) {\n    return 1 - Math.pow(1 - p, power);\n  }, function (p) {\n    return p < .5 ? Math.pow(p * 2, power) / 2 : 1 - Math.pow((1 - p) * 2, power) / 2;\n  });\n});\n\n_easeMap.Linear.easeNone = _easeMap.none = _easeMap.Linear.easeIn;\n\n_insertEase(\"Elastic\", _configElastic(\"in\"), _configElastic(\"out\"), _configElastic());\n\n(function (n, c) {\n  var n1 = 1 / c,\n      n2 = 2 * n1,\n      n3 = 2.5 * n1,\n      easeOut = function easeOut(p) {\n    return p < n1 ? n * p * p : p < n2 ? n * Math.pow(p - 1.5 / c, 2) + .75 : p < n3 ? n * (p -= 2.25 / c) * p + .9375 : n * Math.pow(p - 2.625 / c, 2) + .984375;\n  };\n\n  _insertEase(\"Bounce\", function (p) {\n    return 1 - easeOut(1 - p);\n  }, easeOut);\n})(7.5625, 2.75);\n\n_insertEase(\"Expo\", function (p) {\n  return p ? Math.pow(2, 10 * (p - 1)) : 0;\n});\n\n_insertEase(\"Circ\", function (p) {\n  return -(_sqrt(1 - p * p) - 1);\n});\n\n_insertEase(\"Sine\", function (p) {\n  return p === 1 ? 1 : -_cos(p * _HALF_PI) + 1;\n});\n\n_insertEase(\"Back\", _configBack(\"in\"), _configBack(\"out\"), _configBack());\n\n_easeMap.SteppedEase = _easeMap.steps = _globals.SteppedEase = {\n  config: function config(steps, immediateStart) {\n    if (steps === void 0) {\n      steps = 1;\n    }\n\n    var p1 = 1 / steps,\n        p2 = steps + (immediateStart ? 0 : 1),\n        p3 = immediateStart ? 1 : 0,\n        max = 1 - _tinyNum;\n    return function (p) {\n      return ((p2 * _clamp(0, max, p) | 0) + p3) * p1;\n    };\n  }\n};\n_defaults.ease = _easeMap[\"quad.out\"];\n\n_forEachName(\"onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt\", function (name) {\n  return _callbackNames += name + \",\" + name + \"Params,\";\n});\n/*\n * --------------------------------------------------------------------------------------\n * CACHE\n * --------------------------------------------------------------------------------------\n */\n\n\nexport var GSCache = function GSCache(target, harness) {\n  this.id = _gsID++;\n  target._gsap = this;\n  this.target = target;\n  this.harness = harness;\n  this.get = harness ? harness.get : _getProperty;\n  this.set = harness ? harness.getSetter : _getSetter;\n};\n/*\n * --------------------------------------------------------------------------------------\n * ANIMATION\n * --------------------------------------------------------------------------------------\n */\n\nexport var Animation = /*#__PURE__*/function () {\n  function Animation(vars) {\n    this.vars = vars;\n    this._delay = +vars.delay || 0;\n\n    if (this._repeat = vars.repeat === Infinity ? -2 : vars.repeat || 0) {\n      // TODO: repeat: Infinity on a timeline's children must flag that timeline internally and affect its totalDuration, otherwise it'll stop in the negative direction when reaching the start.\n      this._rDelay = vars.repeatDelay || 0;\n      this._yoyo = !!vars.yoyo || !!vars.yoyoEase;\n    }\n\n    this._ts = 1;\n\n    _setDuration(this, +vars.duration, 1, 1);\n\n    this.data = vars.data;\n\n    if (_context) {\n      this._ctx = _context;\n\n      _context.data.push(this);\n    }\n\n    _tickerActive || _ticker.wake();\n  }\n\n  var _proto = Animation.prototype;\n\n  _proto.delay = function delay(value) {\n    if (value || value === 0) {\n      this.parent && this.parent.smoothChildTiming && this.startTime(this._start + value - this._delay);\n      this._delay = value;\n      return this;\n    }\n\n    return this._delay;\n  };\n\n  _proto.duration = function duration(value) {\n    return arguments.length ? this.totalDuration(this._repeat > 0 ? value + (value + this._rDelay) * this._repeat : value) : this.totalDuration() && this._dur;\n  };\n\n  _proto.totalDuration = function totalDuration(value) {\n    if (!arguments.length) {\n      return this._tDur;\n    }\n\n    this._dirty = 0;\n    return _setDuration(this, this._repeat < 0 ? value : (value - this._repeat * this._rDelay) / (this._repeat + 1));\n  };\n\n  _proto.totalTime = function totalTime(_totalTime, suppressEvents) {\n    _wake();\n\n    if (!arguments.length) {\n      return this._tTime;\n    }\n\n    var parent = this._dp;\n\n    if (parent && parent.smoothChildTiming && this._ts) {\n      _alignPlayhead(this, _totalTime);\n\n      !parent._dp || parent.parent || _postAddChecks(parent, this); // edge case: if this is a child of a timeline that already completed, for example, we must re-activate the parent.\n      //in case any of the ancestor timelines had completed but should now be enabled, we should reset their totalTime() which will also ensure that they're lined up properly and enabled. Skip for animations that are on the root (wasteful). Example: a TimelineLite.exportRoot() is performed when there's a paused tween on the root, the export will not complete until that tween is unpaused, but imagine a child gets restarted later, after all [unpaused] tweens have completed. The start of that child would get pushed out, but one of the ancestors may have completed.\n\n      while (parent && parent.parent) {\n        if (parent.parent._time !== parent._start + (parent._ts >= 0 ? parent._tTime / parent._ts : (parent.totalDuration() - parent._tTime) / -parent._ts)) {\n          parent.totalTime(parent._tTime, true);\n        }\n\n        parent = parent.parent;\n      }\n\n      if (!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && _totalTime < this._tDur || this._ts < 0 && _totalTime > 0 || !this._tDur && !_totalTime)) {\n        //if the animation doesn't have a parent, put it back into its last parent (recorded as _dp for exactly cases like this). Limit to parents with autoRemoveChildren (like globalTimeline) so that if the user manually removes an animation from a timeline and then alters its playhead, it doesn't get added back in.\n        _addToTimeline(this._dp, this, this._start - this._delay);\n      }\n    }\n\n    if (this._tTime !== _totalTime || !this._dur && !suppressEvents || this._initted && Math.abs(this._zTime) === _tinyNum || !_totalTime && !this._initted && (this.add || this._ptLookup)) {\n      // check for _ptLookup on a Tween instance to ensure it has actually finished being instantiated, otherwise if this.reverse() gets called in the Animation constructor, it could trigger a render() here even though the _targets weren't populated, thus when _init() is called there won't be any PropTweens (it'll act like the tween is non-functional)\n      this._ts || (this._pTime = _totalTime); // otherwise, if an animation is paused, then the playhead is moved back to zero, then resumed, it'd revert back to the original time at the pause\n      //if (!this._lock) { // avoid endless recursion (not sure we need this yet or if it's worth the performance hit)\n      //   this._lock = 1;\n\n      _lazySafeRender(this, _totalTime, suppressEvents); //   this._lock = 0;\n      //}\n\n    }\n\n    return this;\n  };\n\n  _proto.time = function time(value, suppressEvents) {\n    return arguments.length ? this.totalTime(Math.min(this.totalDuration(), value + _elapsedCycleDuration(this)) % (this._dur + this._rDelay) || (value ? this._dur : 0), suppressEvents) : this._time; // note: if the modulus results in 0, the playhead could be exactly at the end or the beginning, and we always defer to the END with a non-zero value, otherwise if you set the time() to the very end (duration()), it would render at the START!\n  };\n\n  _proto.totalProgress = function totalProgress(value, suppressEvents) {\n    return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() > 0 ? 1 : 0;\n  };\n\n  _proto.progress = function progress(value, suppressEvents) {\n    return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + _elapsedCycleDuration(this), suppressEvents) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;\n  };\n\n  _proto.iteration = function iteration(value, suppressEvents) {\n    var cycleDuration = this.duration() + this._rDelay;\n\n    return arguments.length ? this.totalTime(this._time + (value - 1) * cycleDuration, suppressEvents) : this._repeat ? _animationCycle(this._tTime, cycleDuration) + 1 : 1;\n  } // potential future addition:\n  // isPlayingBackwards() {\n  // \tlet animation = this,\n  // \t\torientation = 1; // 1 = forward, -1 = backward\n  // \twhile (animation) {\n  // \t\torientation *= animation.reversed() || (animation.repeat() && !(animation.iteration() & 1)) ? -1 : 1;\n  // \t\tanimation = animation.parent;\n  // \t}\n  // \treturn orientation < 0;\n  // }\n  ;\n\n  _proto.timeScale = function timeScale(value, suppressEvents) {\n    if (!arguments.length) {\n      return this._rts === -_tinyNum ? 0 : this._rts; // recorded timeScale. Special case: if someone calls reverse() on an animation with timeScale of 0, we assign it -_tinyNum to remember it's reversed.\n    }\n\n    if (this._rts === value) {\n      return this;\n    }\n\n    var tTime = this.parent && this._ts ? _parentToChildTotalTime(this.parent._time, this) : this._tTime; // make sure to do the parentToChildTotalTime() BEFORE setting the new _ts because the old one must be used in that calculation.\n    // future addition? Up side: fast and minimal file size. Down side: only works on this animation; if a timeline is reversed, for example, its childrens' onReverse wouldn't get called.\n    //(+value < 0 && this._rts >= 0) && _callback(this, \"onReverse\", true);\n    // prioritize rendering where the parent's playhead lines up instead of this._tTime because there could be a tween that's animating another tween's timeScale in the same rendering loop (same parent), thus if the timeScale tween renders first, it would alter _start BEFORE _tTime was set on that tick (in the rendering loop), effectively freezing it until the timeScale tween finishes.\n\n    this._rts = +value || 0;\n    this._ts = this._ps || value === -_tinyNum ? 0 : this._rts; // _ts is the functional timeScale which would be 0 if the animation is paused.\n\n    this.totalTime(_clamp(-Math.abs(this._delay), this._tDur, tTime), suppressEvents !== false);\n\n    _setEnd(this); // if parent.smoothChildTiming was false, the end time didn't get updated in the _alignPlayhead() method, so do it here.\n\n\n    return _recacheAncestors(this);\n  };\n\n  _proto.paused = function paused(value) {\n    if (!arguments.length) {\n      return this._ps;\n    }\n\n    if (this._ps !== value) {\n      this._ps = value;\n\n      if (value) {\n        this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()); // if the pause occurs during the delay phase, make sure that's factored in when resuming.\n\n        this._ts = this._act = 0; // _ts is the functional timeScale, so a paused tween would effectively have a timeScale of 0. We record the \"real\" timeScale as _rts (recorded time scale)\n      } else {\n        _wake();\n\n        this._ts = this._rts; //only defer to _pTime (pauseTime) if tTime is zero. Remember, someone could pause() an animation, then scrub the playhead and resume(). If the parent doesn't have smoothChildTiming, we render at the rawTime() because the startTime won't get updated.\n\n        this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== _tinyNum && (this._tTime -= _tinyNum)); // edge case: animation.progress(1).pause().play() wouldn't render again because the playhead is already at the end, but the call to totalTime() below will add it back to its parent...and not remove it again (since removing only happens upon rendering at a new time). Offsetting the _tTime slightly is done simply to cause the final render in totalTime() that'll pop it off its timeline (if autoRemoveChildren is true, of course). Check to make sure _zTime isn't -_tinyNum to avoid an edge case where the playhead is pushed to the end but INSIDE a tween/callback, the timeline itself is paused thus halting rendering and leaving a few unrendered. When resuming, it wouldn't render those otherwise.\n      }\n    }\n\n    return this;\n  };\n\n  _proto.startTime = function startTime(value) {\n    if (arguments.length) {\n      this._start = value;\n      var parent = this.parent || this._dp;\n      parent && (parent._sort || !this.parent) && _addToTimeline(parent, this, value - this._delay);\n      return this;\n    }\n\n    return this._start;\n  };\n\n  _proto.endTime = function endTime(includeRepeats) {\n    return this._start + (_isNotFalse(includeRepeats) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);\n  };\n\n  _proto.rawTime = function rawTime(wrapRepeats) {\n    var parent = this.parent || this._dp; // _dp = detached parent\n\n    return !parent ? this._tTime : wrapRepeats && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : !this._ts ? this._tTime : _parentToChildTotalTime(parent.rawTime(wrapRepeats), this);\n  };\n\n  _proto.revert = function revert(config) {\n    if (config === void 0) {\n      config = _revertConfig;\n    }\n\n    var prevIsReverting = _reverting;\n    _reverting = config;\n\n    if (this._initted || this._startAt) {\n      this.timeline && this.timeline.revert(config);\n      this.totalTime(-0.01, config.suppressEvents);\n    }\n\n    this.data !== \"nested\" && config.kill !== false && this.kill();\n    _reverting = prevIsReverting;\n    return this;\n  };\n\n  _proto.globalTime = function globalTime(rawTime) {\n    var animation = this,\n        time = arguments.length ? rawTime : animation.rawTime();\n\n    while (animation) {\n      time = animation._start + time / (Math.abs(animation._ts) || 1);\n      animation = animation._dp;\n    }\n\n    return !this.parent && this._sat ? this._sat.globalTime(rawTime) : time; // the _startAt tweens for .fromTo() and .from() that have immediateRender should always be FIRST in the timeline (important for context.revert()). \"_sat\" stands for _startAtTween, referring to the parent tween that created the _startAt. We must discern if that tween had immediateRender so that we can know whether or not to prioritize it in revert().\n  };\n\n  _proto.repeat = function repeat(value) {\n    if (arguments.length) {\n      this._repeat = value === Infinity ? -2 : value;\n      return _onUpdateTotalDuration(this);\n    }\n\n    return this._repeat === -2 ? Infinity : this._repeat;\n  };\n\n  _proto.repeatDelay = function repeatDelay(value) {\n    if (arguments.length) {\n      var time = this._time;\n      this._rDelay = value;\n\n      _onUpdateTotalDuration(this);\n\n      return time ? this.time(time) : this;\n    }\n\n    return this._rDelay;\n  };\n\n  _proto.yoyo = function yoyo(value) {\n    if (arguments.length) {\n      this._yoyo = value;\n      return this;\n    }\n\n    return this._yoyo;\n  };\n\n  _proto.seek = function seek(position, suppressEvents) {\n    return this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));\n  };\n\n  _proto.restart = function restart(includeDelay, suppressEvents) {\n    return this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));\n  };\n\n  _proto.play = function play(from, suppressEvents) {\n    from != null && this.seek(from, suppressEvents);\n    return this.reversed(false).paused(false);\n  };\n\n  _proto.reverse = function reverse(from, suppressEvents) {\n    from != null && this.seek(from || this.totalDuration(), suppressEvents);\n    return this.reversed(true).paused(false);\n  };\n\n  _proto.pause = function pause(atTime, suppressEvents) {\n    atTime != null && this.seek(atTime, suppressEvents);\n    return this.paused(true);\n  };\n\n  _proto.resume = function resume() {\n    return this.paused(false);\n  };\n\n  _proto.reversed = function reversed(value) {\n    if (arguments.length) {\n      !!value !== this.reversed() && this.timeScale(-this._rts || (value ? -_tinyNum : 0)); // in case timeScale is zero, reversing would have no effect so we use _tinyNum.\n\n      return this;\n    }\n\n    return this._rts < 0;\n  };\n\n  _proto.invalidate = function invalidate() {\n    this._initted = this._act = 0;\n    this._zTime = -_tinyNum;\n    return this;\n  };\n\n  _proto.isActive = function isActive() {\n    var parent = this.parent || this._dp,\n        start = this._start,\n        rawTime;\n    return !!(!parent || this._ts && this._initted && parent.isActive() && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - _tinyNum);\n  };\n\n  _proto.eventCallback = function eventCallback(type, callback, params) {\n    var vars = this.vars;\n\n    if (arguments.length > 1) {\n      if (!callback) {\n        delete vars[type];\n      } else {\n        vars[type] = callback;\n        params && (vars[type + \"Params\"] = params);\n        type === \"onUpdate\" && (this._onUpdate = callback);\n      }\n\n      return this;\n    }\n\n    return vars[type];\n  };\n\n  _proto.then = function then(onFulfilled) {\n    var self = this;\n    return new Promise(function (resolve) {\n      var f = _isFunction(onFulfilled) ? onFulfilled : _passThrough,\n          _resolve = function _resolve() {\n        var _then = self.then;\n        self.then = null; // temporarily null the then() method to avoid an infinite loop (see https://github.com/greensock/GSAP/issues/322)\n\n        _isFunction(f) && (f = f(self)) && (f.then || f === self) && (self.then = _then);\n        resolve(f);\n        self.then = _then;\n      };\n\n      if (self._initted && self.totalProgress() === 1 && self._ts >= 0 || !self._tTime && self._ts < 0) {\n        _resolve();\n      } else {\n        self._prom = _resolve;\n      }\n    });\n  };\n\n  _proto.kill = function kill() {\n    _interrupt(this);\n  };\n\n  return Animation;\n}();\n\n_setDefaults(Animation.prototype, {\n  _time: 0,\n  _start: 0,\n  _end: 0,\n  _tTime: 0,\n  _tDur: 0,\n  _dirty: 0,\n  _repeat: 0,\n  _yoyo: false,\n  parent: null,\n  _initted: false,\n  _rDelay: 0,\n  _ts: 1,\n  _dp: 0,\n  ratio: 0,\n  _zTime: -_tinyNum,\n  _prom: 0,\n  _ps: false,\n  _rts: 1\n});\n/*\n * -------------------------------------------------\n * TIMELINE\n * -------------------------------------------------\n */\n\n\nexport var Timeline = /*#__PURE__*/function (_Animation) {\n  _inheritsLoose(Timeline, _Animation);\n\n  function Timeline(vars, position) {\n    var _this;\n\n    if (vars === void 0) {\n      vars = {};\n    }\n\n    _this = _Animation.call(this, vars) || this;\n    _this.labels = {};\n    _this.smoothChildTiming = !!vars.smoothChildTiming;\n    _this.autoRemoveChildren = !!vars.autoRemoveChildren;\n    _this._sort = _isNotFalse(vars.sortChildren);\n    _globalTimeline && _addToTimeline(vars.parent || _globalTimeline, _assertThisInitialized(_this), position);\n    vars.reversed && _this.reverse();\n    vars.paused && _this.paused(true);\n    vars.scrollTrigger && _scrollTrigger(_assertThisInitialized(_this), vars.scrollTrigger);\n    return _this;\n  }\n\n  var _proto2 = Timeline.prototype;\n\n  _proto2.to = function to(targets, vars, position) {\n    _createTweenType(0, arguments, this);\n\n    return this;\n  };\n\n  _proto2.from = function from(targets, vars, position) {\n    _createTweenType(1, arguments, this);\n\n    return this;\n  };\n\n  _proto2.fromTo = function fromTo(targets, fromVars, toVars, position) {\n    _createTweenType(2, arguments, this);\n\n    return this;\n  };\n\n  _proto2.set = function set(targets, vars, position) {\n    vars.duration = 0;\n    vars.parent = this;\n    _inheritDefaults(vars).repeatDelay || (vars.repeat = 0);\n    vars.immediateRender = !!vars.immediateRender;\n    new Tween(targets, vars, _parsePosition(this, position), 1);\n    return this;\n  };\n\n  _proto2.call = function call(callback, params, position) {\n    return _addToTimeline(this, Tween.delayedCall(0, callback, params), position);\n  } //ONLY for backward compatibility! Maybe delete?\n  ;\n\n  _proto2.staggerTo = function staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n    vars.duration = duration;\n    vars.stagger = vars.stagger || stagger;\n    vars.onComplete = onCompleteAll;\n    vars.onCompleteParams = onCompleteAllParams;\n    vars.parent = this;\n    new Tween(targets, vars, _parsePosition(this, position));\n    return this;\n  };\n\n  _proto2.staggerFrom = function staggerFrom(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n    vars.runBackwards = 1;\n    _inheritDefaults(vars).immediateRender = _isNotFalse(vars.immediateRender);\n    return this.staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams);\n  };\n\n  _proto2.staggerFromTo = function staggerFromTo(targets, duration, fromVars, toVars, stagger, position, onCompleteAll, onCompleteAllParams) {\n    toVars.startAt = fromVars;\n    _inheritDefaults(toVars).immediateRender = _isNotFalse(toVars.immediateRender);\n    return this.staggerTo(targets, duration, toVars, stagger, position, onCompleteAll, onCompleteAllParams);\n  };\n\n  _proto2.render = function render(totalTime, suppressEvents, force) {\n    var prevTime = this._time,\n        tDur = this._dirty ? this.totalDuration() : this._tDur,\n        dur = this._dur,\n        tTime = totalTime <= 0 ? 0 : _roundPrecise(totalTime),\n        // if a paused timeline is resumed (or its _start is updated for another reason...which rounds it), that could result in the playhead shifting a **tiny** amount and a zero-duration child at that spot may get rendered at a different ratio, like its totalTime in render() may be 1e-17 instead of 0, for example.\n    crossingStart = this._zTime < 0 !== totalTime < 0 && (this._initted || !dur),\n        time,\n        child,\n        next,\n        iteration,\n        cycleDuration,\n        prevPaused,\n        pauseTween,\n        timeScale,\n        prevStart,\n        prevIteration,\n        yoyo,\n        isYoyo;\n    this !== _globalTimeline && tTime > tDur && totalTime >= 0 && (tTime = tDur);\n\n    if (tTime !== this._tTime || force || crossingStart) {\n      if (prevTime !== this._time && dur) {\n        //if totalDuration() finds a child with a negative startTime and smoothChildTiming is true, things get shifted around internally so we need to adjust the time accordingly. For example, if a tween starts at -30 we must shift EVERYTHING forward 30 seconds and move this timeline's startTime backward by 30 seconds so that things align with the playhead (no jump).\n        tTime += this._time - prevTime;\n        totalTime += this._time - prevTime;\n      }\n\n      time = tTime;\n      prevStart = this._start;\n      timeScale = this._ts;\n      prevPaused = !timeScale;\n\n      if (crossingStart) {\n        dur || (prevTime = this._zTime); //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n\n        (totalTime || !suppressEvents) && (this._zTime = totalTime);\n      }\n\n      if (this._repeat) {\n        //adjust the time for repeats and yoyos\n        yoyo = this._yoyo;\n        cycleDuration = dur + this._rDelay;\n\n        if (this._repeat < -1 && totalTime < 0) {\n          return this.totalTime(cycleDuration * 100 + totalTime, suppressEvents, force);\n        }\n\n        time = _roundPrecise(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n\n        if (tTime === tDur) {\n          // the tDur === tTime is for edge cases where there's a lengthy decimal on the duration and it may reach the very end but the time is rendered as not-quite-there (remember, tDur is rounded to 4 decimals whereas dur isn't)\n          iteration = this._repeat;\n          time = dur;\n        } else {\n          iteration = ~~(tTime / cycleDuration);\n\n          if (iteration && iteration === tTime / cycleDuration) {\n            time = dur;\n            iteration--;\n          }\n\n          time > dur && (time = dur);\n        }\n\n        prevIteration = _animationCycle(this._tTime, cycleDuration);\n        !prevTime && this._tTime && prevIteration !== iteration && this._tTime - prevIteration * cycleDuration - this._dur <= 0 && (prevIteration = iteration); // edge case - if someone does addPause() at the very beginning of a repeating timeline, that pause is technically at the same spot as the end which causes this._time to get set to 0 when the totalTime would normally place the playhead at the end. See https://gsap.com/forums/topic/23823-closing-nav-animation-not-working-on-ie-and-iphone-6-maybe-other-older-browser/?tab=comments#comment-113005 also, this._tTime - prevIteration * cycleDuration - this._dur <= 0 just checks to make sure it wasn't previously in the \"repeatDelay\" portion\n\n        if (yoyo && iteration & 1) {\n          time = dur - time;\n          isYoyo = 1;\n        }\n        /*\n        make sure children at the end/beginning of the timeline are rendered properly. If, for example,\n        a 3-second long timeline rendered at 2.9 seconds previously, and now renders at 3.2 seconds (which\n        would get translated to 2.8 seconds if the timeline yoyos or 0.2 seconds if it just repeats), there\n        could be a callback or a short tween that's at 2.95 or 3 seconds in which wouldn't render. So\n        we need to push the timeline to the end (and/or beginning depending on its yoyo value). Also we must\n        ensure that zero-duration tweens at the very beginning or end of the Timeline work.\n        */\n\n\n        if (iteration !== prevIteration && !this._lock) {\n          var rewinding = yoyo && prevIteration & 1,\n              doesWrap = rewinding === (yoyo && iteration & 1);\n          iteration < prevIteration && (rewinding = !rewinding);\n          prevTime = rewinding ? 0 : tTime % dur ? dur : tTime; // if the playhead is landing exactly at the end of an iteration, use that totalTime rather than only the duration, otherwise it'll skip the 2nd render since it's effectively at the same time.\n\n          this._lock = 1;\n          this.render(prevTime || (isYoyo ? 0 : _roundPrecise(iteration * cycleDuration)), suppressEvents, !dur)._lock = 0;\n          this._tTime = tTime; // if a user gets the iteration() inside the onRepeat, for example, it should be accurate.\n\n          !suppressEvents && this.parent && _callback(this, \"onRepeat\");\n          this.vars.repeatRefresh && !isYoyo && (this.invalidate()._lock = 1);\n\n          if (prevTime && prevTime !== this._time || prevPaused !== !this._ts || this.vars.onRepeat && !this.parent && !this._act) {\n            // if prevTime is 0 and we render at the very end, _time will be the end, thus won't match. So in this edge case, prevTime won't match _time but that's okay. If it gets killed in the onRepeat, eject as well.\n            return this;\n          }\n\n          dur = this._dur; // in case the duration changed in the onRepeat\n\n          tDur = this._tDur;\n\n          if (doesWrap) {\n            this._lock = 2;\n            prevTime = rewinding ? dur : -0.0001;\n            this.render(prevTime, true);\n            this.vars.repeatRefresh && !isYoyo && this.invalidate();\n          }\n\n          this._lock = 0;\n\n          if (!this._ts && !prevPaused) {\n            return this;\n          } //in order for yoyoEase to work properly when there's a stagger, we must swap out the ease in each sub-tween.\n\n\n          _propagateYoyoEase(this, isYoyo);\n        }\n      }\n\n      if (this._hasPause && !this._forcing && this._lock < 2) {\n        pauseTween = _findNextPauseTween(this, _roundPrecise(prevTime), _roundPrecise(time));\n\n        if (pauseTween) {\n          tTime -= time - (time = pauseTween._start);\n        }\n      }\n\n      this._tTime = tTime;\n      this._time = time;\n      this._act = !timeScale; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n\n      if (!this._initted) {\n        this._onUpdate = this.vars.onUpdate;\n        this._initted = 1;\n        this._zTime = totalTime;\n        prevTime = 0; // upon init, the playhead should always go forward; someone could invalidate() a completed timeline and then if they restart(), that would make child tweens render in reverse order which could lock in the wrong starting values if they build on each other, like tl.to(obj, {x: 100}).to(obj, {x: 0}).\n      }\n\n      if (!prevTime && time && !suppressEvents && !iteration) {\n        _callback(this, \"onStart\");\n\n        if (this._tTime !== tTime) {\n          // in case the onStart triggered a render at a different spot, eject. Like if someone did animation.pause(0.5) or something inside the onStart.\n          return this;\n        }\n      }\n\n      if (time >= prevTime && totalTime >= 0) {\n        child = this._first;\n\n        while (child) {\n          next = child._next;\n\n          if ((child._act || time >= child._start) && child._ts && pauseTween !== child) {\n            if (child.parent !== this) {\n              // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n              return this.render(totalTime, suppressEvents, force);\n            }\n\n            child.render(child._ts > 0 ? (time - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (time - child._start) * child._ts, suppressEvents, force);\n\n            if (time !== this._time || !this._ts && !prevPaused) {\n              //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n              pauseTween = 0;\n              next && (tTime += this._zTime = -_tinyNum); // it didn't finish rendering, so flag zTime as negative so that so that the next time render() is called it'll be forced (to render any remaining children)\n\n              break;\n            }\n          }\n\n          child = next;\n        }\n      } else {\n        child = this._last;\n        var adjustedTime = totalTime < 0 ? totalTime : time; //when the playhead goes backward beyond the start of this timeline, we must pass that information down to the child animations so that zero-duration tweens know whether to render their starting or ending values.\n\n        while (child) {\n          next = child._prev;\n\n          if ((child._act || adjustedTime <= child._end) && child._ts && pauseTween !== child) {\n            if (child.parent !== this) {\n              // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n              return this.render(totalTime, suppressEvents, force);\n            }\n\n            child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || _reverting && (child._initted || child._startAt)); // if reverting, we should always force renders of initted tweens (but remember that .fromTo() or .from() may have a _startAt but not _initted yet). If, for example, a .fromTo() tween with a stagger (which creates an internal timeline) gets reverted BEFORE some of its child tweens render for the first time, it may not properly trigger them to revert.\n\n            if (time !== this._time || !this._ts && !prevPaused) {\n              //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n              pauseTween = 0;\n              next && (tTime += this._zTime = adjustedTime ? -_tinyNum : _tinyNum); // it didn't finish rendering, so adjust zTime so that so that the next time render() is called it'll be forced (to render any remaining children)\n\n              break;\n            }\n          }\n\n          child = next;\n        }\n      }\n\n      if (pauseTween && !suppressEvents) {\n        this.pause();\n        pauseTween.render(time >= prevTime ? 0 : -_tinyNum)._zTime = time >= prevTime ? 1 : -1;\n\n        if (this._ts) {\n          //the callback resumed playback! So since we may have held back the playhead due to where the pause is positioned, go ahead and jump to where it's SUPPOSED to be (if no pause happened).\n          this._start = prevStart; //if the pause was at an earlier time and the user resumed in the callback, it could reposition the timeline (changing its startTime), throwing things off slightly, so we make sure the _start doesn't shift.\n\n          _setEnd(this);\n\n          return this.render(totalTime, suppressEvents, force);\n        }\n      }\n\n      this._onUpdate && !suppressEvents && _callback(this, \"onUpdate\", true);\n      if (tTime === tDur && this._tTime >= this.totalDuration() || !tTime && prevTime) if (prevStart === this._start || Math.abs(timeScale) !== Math.abs(this._ts)) if (!this._lock) {\n        // remember, a child's callback may alter this timeline's playhead or timeScale which is why we need to add some of these checks.\n        (totalTime || !dur) && (tTime === tDur && this._ts > 0 || !tTime && this._ts < 0) && _removeFromParent(this, 1); // don't remove if the timeline is reversed and the playhead isn't at 0, otherwise tl.progress(1).reverse() won't work. Only remove if the playhead is at the end and timeScale is positive, or if the playhead is at 0 and the timeScale is negative.\n\n        if (!suppressEvents && !(totalTime < 0 && !prevTime) && (tTime || prevTime || !tDur)) {\n          _callback(this, tTime === tDur && totalTime >= 0 ? \"onComplete\" : \"onReverseComplete\", true);\n\n          this._prom && !(tTime < tDur && this.timeScale() > 0) && this._prom();\n        }\n      }\n    }\n\n    return this;\n  };\n\n  _proto2.add = function add(child, position) {\n    var _this2 = this;\n\n    _isNumber(position) || (position = _parsePosition(this, position, child));\n\n    if (!(child instanceof Animation)) {\n      if (_isArray(child)) {\n        child.forEach(function (obj) {\n          return _this2.add(obj, position);\n        });\n        return this;\n      }\n\n      if (_isString(child)) {\n        return this.addLabel(child, position);\n      }\n\n      if (_isFunction(child)) {\n        child = Tween.delayedCall(0, child);\n      } else {\n        return this;\n      }\n    }\n\n    return this !== child ? _addToTimeline(this, child, position) : this; //don't allow a timeline to be added to itself as a child!\n  };\n\n  _proto2.getChildren = function getChildren(nested, tweens, timelines, ignoreBeforeTime) {\n    if (nested === void 0) {\n      nested = true;\n    }\n\n    if (tweens === void 0) {\n      tweens = true;\n    }\n\n    if (timelines === void 0) {\n      timelines = true;\n    }\n\n    if (ignoreBeforeTime === void 0) {\n      ignoreBeforeTime = -_bigNum;\n    }\n\n    var a = [],\n        child = this._first;\n\n    while (child) {\n      if (child._start >= ignoreBeforeTime) {\n        if (child instanceof Tween) {\n          tweens && a.push(child);\n        } else {\n          timelines && a.push(child);\n          nested && a.push.apply(a, child.getChildren(true, tweens, timelines));\n        }\n      }\n\n      child = child._next;\n    }\n\n    return a;\n  };\n\n  _proto2.getById = function getById(id) {\n    var animations = this.getChildren(1, 1, 1),\n        i = animations.length;\n\n    while (i--) {\n      if (animations[i].vars.id === id) {\n        return animations[i];\n      }\n    }\n  };\n\n  _proto2.remove = function remove(child) {\n    if (_isString(child)) {\n      return this.removeLabel(child);\n    }\n\n    if (_isFunction(child)) {\n      return this.killTweensOf(child);\n    }\n\n    _removeLinkedListItem(this, child);\n\n    if (child === this._recent) {\n      this._recent = this._last;\n    }\n\n    return _uncache(this);\n  };\n\n  _proto2.totalTime = function totalTime(_totalTime2, suppressEvents) {\n    if (!arguments.length) {\n      return this._tTime;\n    }\n\n    this._forcing = 1;\n\n    if (!this._dp && this._ts) {\n      //special case for the global timeline (or any other that has no parent or detached parent).\n      this._start = _roundPrecise(_ticker.time - (this._ts > 0 ? _totalTime2 / this._ts : (this.totalDuration() - _totalTime2) / -this._ts));\n    }\n\n    _Animation.prototype.totalTime.call(this, _totalTime2, suppressEvents);\n\n    this._forcing = 0;\n    return this;\n  };\n\n  _proto2.addLabel = function addLabel(label, position) {\n    this.labels[label] = _parsePosition(this, position);\n    return this;\n  };\n\n  _proto2.removeLabel = function removeLabel(label) {\n    delete this.labels[label];\n    return this;\n  };\n\n  _proto2.addPause = function addPause(position, callback, params) {\n    var t = Tween.delayedCall(0, callback || _emptyFunc, params);\n    t.data = \"isPause\";\n    this._hasPause = 1;\n    return _addToTimeline(this, t, _parsePosition(this, position));\n  };\n\n  _proto2.removePause = function removePause(position) {\n    var child = this._first;\n    position = _parsePosition(this, position);\n\n    while (child) {\n      if (child._start === position && child.data === \"isPause\") {\n        _removeFromParent(child);\n      }\n\n      child = child._next;\n    }\n  };\n\n  _proto2.killTweensOf = function killTweensOf(targets, props, onlyActive) {\n    var tweens = this.getTweensOf(targets, onlyActive),\n        i = tweens.length;\n\n    while (i--) {\n      _overwritingTween !== tweens[i] && tweens[i].kill(targets, props);\n    }\n\n    return this;\n  };\n\n  _proto2.getTweensOf = function getTweensOf(targets, onlyActive) {\n    var a = [],\n        parsedTargets = toArray(targets),\n        child = this._first,\n        isGlobalTime = _isNumber(onlyActive),\n        // a number is interpreted as a global time. If the animation spans\n    children;\n\n    while (child) {\n      if (child instanceof Tween) {\n        if (_arrayContainsAny(child._targets, parsedTargets) && (isGlobalTime ? (!_overwritingTween || child._initted && child._ts) && child.globalTime(0) <= onlyActive && child.globalTime(child.totalDuration()) > onlyActive : !onlyActive || child.isActive())) {\n          // note: if this is for overwriting, it should only be for tweens that aren't paused and are initted.\n          a.push(child);\n        }\n      } else if ((children = child.getTweensOf(parsedTargets, onlyActive)).length) {\n        a.push.apply(a, children);\n      }\n\n      child = child._next;\n    }\n\n    return a;\n  } // potential future feature - targets() on timelines\n  // targets() {\n  // \tlet result = [];\n  // \tthis.getChildren(true, true, false).forEach(t => result.push(...t.targets()));\n  // \treturn result.filter((v, i) => result.indexOf(v) === i);\n  // }\n  ;\n\n  _proto2.tweenTo = function tweenTo(position, vars) {\n    vars = vars || {};\n\n    var tl = this,\n        endTime = _parsePosition(tl, position),\n        _vars = vars,\n        startAt = _vars.startAt,\n        _onStart = _vars.onStart,\n        onStartParams = _vars.onStartParams,\n        immediateRender = _vars.immediateRender,\n        initted,\n        tween = Tween.to(tl, _setDefaults({\n      ease: vars.ease || \"none\",\n      lazy: false,\n      immediateRender: false,\n      time: endTime,\n      overwrite: \"auto\",\n      duration: vars.duration || Math.abs((endTime - (startAt && \"time\" in startAt ? startAt.time : tl._time)) / tl.timeScale()) || _tinyNum,\n      onStart: function onStart() {\n        tl.pause();\n\n        if (!initted) {\n          var duration = vars.duration || Math.abs((endTime - (startAt && \"time\" in startAt ? startAt.time : tl._time)) / tl.timeScale());\n          tween._dur !== duration && _setDuration(tween, duration, 0, 1).render(tween._time, true, true);\n          initted = 1;\n        }\n\n        _onStart && _onStart.apply(tween, onStartParams || []); //in case the user had an onStart in the vars - we don't want to overwrite it.\n      }\n    }, vars));\n\n    return immediateRender ? tween.render(0) : tween;\n  };\n\n  _proto2.tweenFromTo = function tweenFromTo(fromPosition, toPosition, vars) {\n    return this.tweenTo(toPosition, _setDefaults({\n      startAt: {\n        time: _parsePosition(this, fromPosition)\n      }\n    }, vars));\n  };\n\n  _proto2.recent = function recent() {\n    return this._recent;\n  };\n\n  _proto2.nextLabel = function nextLabel(afterTime) {\n    if (afterTime === void 0) {\n      afterTime = this._time;\n    }\n\n    return _getLabelInDirection(this, _parsePosition(this, afterTime));\n  };\n\n  _proto2.previousLabel = function previousLabel(beforeTime) {\n    if (beforeTime === void 0) {\n      beforeTime = this._time;\n    }\n\n    return _getLabelInDirection(this, _parsePosition(this, beforeTime), 1);\n  };\n\n  _proto2.currentLabel = function currentLabel(value) {\n    return arguments.length ? this.seek(value, true) : this.previousLabel(this._time + _tinyNum);\n  };\n\n  _proto2.shiftChildren = function shiftChildren(amount, adjustLabels, ignoreBeforeTime) {\n    if (ignoreBeforeTime === void 0) {\n      ignoreBeforeTime = 0;\n    }\n\n    var child = this._first,\n        labels = this.labels,\n        p;\n\n    while (child) {\n      if (child._start >= ignoreBeforeTime) {\n        child._start += amount;\n        child._end += amount;\n      }\n\n      child = child._next;\n    }\n\n    if (adjustLabels) {\n      for (p in labels) {\n        if (labels[p] >= ignoreBeforeTime) {\n          labels[p] += amount;\n        }\n      }\n    }\n\n    return _uncache(this);\n  };\n\n  _proto2.invalidate = function invalidate(soft) {\n    var child = this._first;\n    this._lock = 0;\n\n    while (child) {\n      child.invalidate(soft);\n      child = child._next;\n    }\n\n    return _Animation.prototype.invalidate.call(this, soft);\n  };\n\n  _proto2.clear = function clear(includeLabels) {\n    if (includeLabels === void 0) {\n      includeLabels = true;\n    }\n\n    var child = this._first,\n        next;\n\n    while (child) {\n      next = child._next;\n      this.remove(child);\n      child = next;\n    }\n\n    this._dp && (this._time = this._tTime = this._pTime = 0);\n    includeLabels && (this.labels = {});\n    return _uncache(this);\n  };\n\n  _proto2.totalDuration = function totalDuration(value) {\n    var max = 0,\n        self = this,\n        child = self._last,\n        prevStart = _bigNum,\n        prev,\n        start,\n        parent;\n\n    if (arguments.length) {\n      return self.timeScale((self._repeat < 0 ? self.duration() : self.totalDuration()) / (self.reversed() ? -value : value));\n    }\n\n    if (self._dirty) {\n      parent = self.parent;\n\n      while (child) {\n        prev = child._prev; //record it here in case the tween changes position in the sequence...\n\n        child._dirty && child.totalDuration(); //could change the tween._startTime, so make sure the animation's cache is clean before analyzing it.\n\n        start = child._start;\n\n        if (start > prevStart && self._sort && child._ts && !self._lock) {\n          //in case one of the tweens shifted out of order, it needs to be re-inserted into the correct position in the sequence\n          self._lock = 1; //prevent endless recursive calls - there are methods that get triggered that check duration/totalDuration when we add().\n\n          _addToTimeline(self, child, start - child._delay, 1)._lock = 0;\n        } else {\n          prevStart = start;\n        }\n\n        if (start < 0 && child._ts) {\n          //children aren't allowed to have negative startTimes unless smoothChildTiming is true, so adjust here if one is found.\n          max -= start;\n\n          if (!parent && !self._dp || parent && parent.smoothChildTiming) {\n            self._start += start / self._ts;\n            self._time -= start;\n            self._tTime -= start;\n          }\n\n          self.shiftChildren(-start, false, -1e999);\n          prevStart = 0;\n        }\n\n        child._end > max && child._ts && (max = child._end);\n        child = prev;\n      }\n\n      _setDuration(self, self === _globalTimeline && self._time > max ? self._time : max, 1, 1);\n\n      self._dirty = 0;\n    }\n\n    return self._tDur;\n  };\n\n  Timeline.updateRoot = function updateRoot(time) {\n    if (_globalTimeline._ts) {\n      _lazySafeRender(_globalTimeline, _parentToChildTotalTime(time, _globalTimeline));\n\n      _lastRenderedFrame = _ticker.frame;\n    }\n\n    if (_ticker.frame >= _nextGCFrame) {\n      _nextGCFrame += _config.autoSleep || 120;\n      var child = _globalTimeline._first;\n      if (!child || !child._ts) if (_config.autoSleep && _ticker._listeners.length < 2) {\n        while (child && !child._ts) {\n          child = child._next;\n        }\n\n        child || _ticker.sleep();\n      }\n    }\n  };\n\n  return Timeline;\n}(Animation);\n\n_setDefaults(Timeline.prototype, {\n  _lock: 0,\n  _hasPause: 0,\n  _forcing: 0\n});\n\nvar _addComplexStringPropTween = function _addComplexStringPropTween(target, prop, start, end, setter, stringFilter, funcParam) {\n  //note: we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n  var pt = new PropTween(this._pt, target, prop, 0, 1, _renderComplexString, null, setter),\n      index = 0,\n      matchIndex = 0,\n      result,\n      startNums,\n      color,\n      endNum,\n      chunk,\n      startNum,\n      hasRandom,\n      a;\n  pt.b = start;\n  pt.e = end;\n  start += \"\"; //ensure values are strings\n\n  end += \"\";\n\n  if (hasRandom = ~end.indexOf(\"random(\")) {\n    end = _replaceRandom(end);\n  }\n\n  if (stringFilter) {\n    a = [start, end];\n    stringFilter(a, target, prop); //pass an array with the starting and ending values and let the filter do whatever it needs to the values.\n\n    start = a[0];\n    end = a[1];\n  }\n\n  startNums = start.match(_complexStringNumExp) || [];\n\n  while (result = _complexStringNumExp.exec(end)) {\n    endNum = result[0];\n    chunk = end.substring(index, result.index);\n\n    if (color) {\n      color = (color + 1) % 5;\n    } else if (chunk.substr(-5) === \"rgba(\") {\n      color = 1;\n    }\n\n    if (endNum !== startNums[matchIndex++]) {\n      startNum = parseFloat(startNums[matchIndex - 1]) || 0; //these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n\n      pt._pt = {\n        _next: pt._pt,\n        p: chunk || matchIndex === 1 ? chunk : \",\",\n        //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n        s: startNum,\n        c: endNum.charAt(1) === \"=\" ? _parseRelative(startNum, endNum) - startNum : parseFloat(endNum) - startNum,\n        m: color && color < 4 ? Math.round : 0\n      };\n      index = _complexStringNumExp.lastIndex;\n    }\n  }\n\n  pt.c = index < end.length ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n\n  pt.fp = funcParam;\n\n  if (_relExp.test(end) || hasRandom) {\n    pt.e = 0; //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n  }\n\n  this._pt = pt; //start the linked list with this new PropTween. Remember, we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n\n  return pt;\n},\n    _addPropTween = function _addPropTween(target, prop, start, end, index, targets, modifier, stringFilter, funcParam, optional) {\n  _isFunction(end) && (end = end(index || 0, target, targets));\n  var currentValue = target[prop],\n      parsedStart = start !== \"get\" ? start : !_isFunction(currentValue) ? currentValue : funcParam ? target[prop.indexOf(\"set\") || !_isFunction(target[\"get\" + prop.substr(3)]) ? prop : \"get\" + prop.substr(3)](funcParam) : target[prop](),\n      setter = !_isFunction(currentValue) ? _setterPlain : funcParam ? _setterFuncWithParam : _setterFunc,\n      pt;\n\n  if (_isString(end)) {\n    if (~end.indexOf(\"random(\")) {\n      end = _replaceRandom(end);\n    }\n\n    if (end.charAt(1) === \"=\") {\n      pt = _parseRelative(parsedStart, end) + (getUnit(parsedStart) || 0);\n\n      if (pt || pt === 0) {\n        // to avoid isNaN, like if someone passes in a value like \"!= whatever\"\n        end = pt;\n      }\n    }\n  }\n\n  if (!optional || parsedStart !== end || _forceAllPropTweens) {\n    if (!isNaN(parsedStart * end) && end !== \"\") {\n      // fun fact: any number multiplied by \"\" is evaluated as the number 0!\n      pt = new PropTween(this._pt, target, prop, +parsedStart || 0, end - (parsedStart || 0), typeof currentValue === \"boolean\" ? _renderBoolean : _renderPlain, 0, setter);\n      funcParam && (pt.fp = funcParam);\n      modifier && pt.modifier(modifier, this, target);\n      return this._pt = pt;\n    }\n\n    !currentValue && !(prop in target) && _missingPlugin(prop, end);\n    return _addComplexStringPropTween.call(this, target, prop, parsedStart, end, setter, stringFilter || _config.stringFilter, funcParam);\n  }\n},\n    //creates a copy of the vars object and processes any function-based values (putting the resulting values directly into the copy) as well as strings with \"random()\" in them. It does NOT process relative values.\n_processVars = function _processVars(vars, index, target, targets, tween) {\n  _isFunction(vars) && (vars = _parseFuncOrString(vars, tween, index, target, targets));\n\n  if (!_isObject(vars) || vars.style && vars.nodeType || _isArray(vars) || _isTypedArray(vars)) {\n    return _isString(vars) ? _parseFuncOrString(vars, tween, index, target, targets) : vars;\n  }\n\n  var copy = {},\n      p;\n\n  for (p in vars) {\n    copy[p] = _parseFuncOrString(vars[p], tween, index, target, targets);\n  }\n\n  return copy;\n},\n    _checkPlugin = function _checkPlugin(property, vars, tween, index, target, targets) {\n  var plugin, pt, ptLookup, i;\n\n  if (_plugins[property] && (plugin = new _plugins[property]()).init(target, plugin.rawVars ? vars[property] : _processVars(vars[property], index, target, targets, tween), tween, index, targets) !== false) {\n    tween._pt = pt = new PropTween(tween._pt, target, property, 0, 1, plugin.render, plugin, 0, plugin.priority);\n\n    if (tween !== _quickTween) {\n      ptLookup = tween._ptLookup[tween._targets.indexOf(target)]; //note: we can't use tween._ptLookup[index] because for staggered tweens, the index from the fullTargets array won't match what it is in each individual tween that spawns from the stagger.\n\n      i = plugin._props.length;\n\n      while (i--) {\n        ptLookup[plugin._props[i]] = pt;\n      }\n    }\n  }\n\n  return plugin;\n},\n    _overwritingTween,\n    //store a reference temporarily so we can avoid overwriting itself.\n_forceAllPropTweens,\n    _initTween = function _initTween(tween, time, tTime) {\n  var vars = tween.vars,\n      ease = vars.ease,\n      startAt = vars.startAt,\n      immediateRender = vars.immediateRender,\n      lazy = vars.lazy,\n      onUpdate = vars.onUpdate,\n      runBackwards = vars.runBackwards,\n      yoyoEase = vars.yoyoEase,\n      keyframes = vars.keyframes,\n      autoRevert = vars.autoRevert,\n      dur = tween._dur,\n      prevStartAt = tween._startAt,\n      targets = tween._targets,\n      parent = tween.parent,\n      fullTargets = parent && parent.data === \"nested\" ? parent.vars.targets : targets,\n      autoOverwrite = tween._overwrite === \"auto\" && !_suppressOverwrites,\n      tl = tween.timeline,\n      cleanVars,\n      i,\n      p,\n      pt,\n      target,\n      hasPriority,\n      gsData,\n      harness,\n      plugin,\n      ptLookup,\n      index,\n      harnessVars,\n      overwritten;\n  tl && (!keyframes || !ease) && (ease = \"none\");\n  tween._ease = _parseEase(ease, _defaults.ease);\n  tween._yEase = yoyoEase ? _invertEase(_parseEase(yoyoEase === true ? ease : yoyoEase, _defaults.ease)) : 0;\n\n  if (yoyoEase && tween._yoyo && !tween._repeat) {\n    //there must have been a parent timeline with yoyo:true that is currently in its yoyo phase, so flip the eases.\n    yoyoEase = tween._yEase;\n    tween._yEase = tween._ease;\n    tween._ease = yoyoEase;\n  }\n\n  tween._from = !tl && !!vars.runBackwards; //nested timelines should never run backwards - the backwards-ness is in the child tweens.\n\n  if (!tl || keyframes && !vars.stagger) {\n    //if there's an internal timeline, skip all the parsing because we passed that task down the chain.\n    harness = targets[0] ? _getCache(targets[0]).harness : 0;\n    harnessVars = harness && vars[harness.prop]; //someone may need to specify CSS-specific values AND non-CSS values, like if the element has an \"x\" property plus it's a standard DOM element. We allow people to distinguish by wrapping plugin-specific stuff in a css:{} object for example.\n\n    cleanVars = _copyExcluding(vars, _reservedProps);\n\n    if (prevStartAt) {\n      prevStartAt._zTime < 0 && prevStartAt.progress(1); // in case it's a lazy startAt that hasn't rendered yet.\n\n      time < 0 && runBackwards && immediateRender && !autoRevert ? prevStartAt.render(-1, true) : prevStartAt.revert(runBackwards && dur ? _revertConfigNoKill : _startAtRevertConfig); // if it's a \"startAt\" (not \"from()\" or runBackwards: true), we only need to do a shallow revert (keep transforms cached in CSSPlugin)\n      // don't just _removeFromParent(prevStartAt.render(-1, true)) because that'll leave inline styles. We're creating a new _startAt for \"startAt\" tweens that re-capture things to ensure that if the pre-tween values changed since the tween was created, they're recorded.\n\n      prevStartAt._lazy = 0;\n    }\n\n    if (startAt) {\n      _removeFromParent(tween._startAt = Tween.set(targets, _setDefaults({\n        data: \"isStart\",\n        overwrite: false,\n        parent: parent,\n        immediateRender: true,\n        lazy: !prevStartAt && _isNotFalse(lazy),\n        startAt: null,\n        delay: 0,\n        onUpdate: onUpdate && function () {\n          return _callback(tween, \"onUpdate\");\n        },\n        stagger: 0\n      }, startAt))); //copy the properties/values into a new object to avoid collisions, like var to = {x:0}, from = {x:500}; timeline.fromTo(e, from, to).fromTo(e, to, from);\n\n\n      tween._startAt._dp = 0; // don't allow it to get put back into root timeline! Like when revert() is called and totalTime() gets set.\n\n      tween._startAt._sat = tween; // used in globalTime(). _sat stands for _startAtTween\n\n      time < 0 && (_reverting || !immediateRender && !autoRevert) && tween._startAt.revert(_revertConfigNoKill); // rare edge case, like if a render is forced in the negative direction of a non-initted tween.\n\n      if (immediateRender) {\n        if (dur && time <= 0 && tTime <= 0) {\n          // check tTime here because in the case of a yoyo tween whose playhead gets pushed to the end like tween.progress(1), we should allow it through so that the onComplete gets fired properly.\n          time && (tween._zTime = time);\n          return; //we skip initialization here so that overwriting doesn't occur until the tween actually begins. Otherwise, if you create several immediateRender:true tweens of the same target/properties to drop into a Timeline, the last one created would overwrite the first ones because they didn't get placed into the timeline yet before the first render occurs and kicks in overwriting.\n        }\n      }\n    } else if (runBackwards && dur) {\n      //from() tweens must be handled uniquely: their beginning values must be rendered but we don't want overwriting to occur yet (when time is still 0). Wait until the tween actually begins before doing all the routines like overwriting. At that time, we should render at the END of the tween to ensure that things initialize correctly (remember, from() tweens go backwards)\n      if (!prevStartAt) {\n        time && (immediateRender = false); //in rare cases (like if a from() tween runs and then is invalidate()-ed), immediateRender could be true but the initial forced-render gets skipped, so there's no need to force the render in this context when the _time is greater than 0\n\n        p = _setDefaults({\n          overwrite: false,\n          data: \"isFromStart\",\n          //we tag the tween with as \"isFromStart\" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a \"from()\" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:\"height\", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.\n          lazy: immediateRender && !prevStartAt && _isNotFalse(lazy),\n          immediateRender: immediateRender,\n          //zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)\n          stagger: 0,\n          parent: parent //ensures that nested tweens that had a stagger are handled properly, like gsap.from(\".class\", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})\n\n        }, cleanVars);\n        harnessVars && (p[harness.prop] = harnessVars); // in case someone does something like .from(..., {css:{}})\n\n        _removeFromParent(tween._startAt = Tween.set(targets, p));\n\n        tween._startAt._dp = 0; // don't allow it to get put back into root timeline!\n\n        tween._startAt._sat = tween; // used in globalTime()\n\n        time < 0 && (_reverting ? tween._startAt.revert(_revertConfigNoKill) : tween._startAt.render(-1, true));\n        tween._zTime = time;\n\n        if (!immediateRender) {\n          _initTween(tween._startAt, _tinyNum, _tinyNum); //ensures that the initial values are recorded\n\n        } else if (!time) {\n          return;\n        }\n      }\n    }\n\n    tween._pt = tween._ptCache = 0;\n    lazy = dur && _isNotFalse(lazy) || lazy && !dur;\n\n    for (i = 0; i < targets.length; i++) {\n      target = targets[i];\n      gsData = target._gsap || _harness(targets)[i]._gsap;\n      tween._ptLookup[i] = ptLookup = {};\n      _lazyLookup[gsData.id] && _lazyTweens.length && _lazyRender(); //if other tweens of the same target have recently initted but haven't rendered yet, we've got to force the render so that the starting values are correct (imagine populating a timeline with a bunch of sequential tweens and then jumping to the end)\n\n      index = fullTargets === targets ? i : fullTargets.indexOf(target);\n\n      if (harness && (plugin = new harness()).init(target, harnessVars || cleanVars, tween, index, fullTargets) !== false) {\n        tween._pt = pt = new PropTween(tween._pt, target, plugin.name, 0, 1, plugin.render, plugin, 0, plugin.priority);\n\n        plugin._props.forEach(function (name) {\n          ptLookup[name] = pt;\n        });\n\n        plugin.priority && (hasPriority = 1);\n      }\n\n      if (!harness || harnessVars) {\n        for (p in cleanVars) {\n          if (_plugins[p] && (plugin = _checkPlugin(p, cleanVars, tween, index, target, fullTargets))) {\n            plugin.priority && (hasPriority = 1);\n          } else {\n            ptLookup[p] = pt = _addPropTween.call(tween, target, p, \"get\", cleanVars[p], index, fullTargets, 0, vars.stringFilter);\n          }\n        }\n      }\n\n      tween._op && tween._op[i] && tween.kill(target, tween._op[i]);\n\n      if (autoOverwrite && tween._pt) {\n        _overwritingTween = tween;\n\n        _globalTimeline.killTweensOf(target, ptLookup, tween.globalTime(time)); // make sure the overwriting doesn't overwrite THIS tween!!!\n\n\n        overwritten = !tween.parent;\n        _overwritingTween = 0;\n      }\n\n      tween._pt && lazy && (_lazyLookup[gsData.id] = 1);\n    }\n\n    hasPriority && _sortPropTweensByPriority(tween);\n    tween._onInit && tween._onInit(tween); //plugins like RoundProps must wait until ALL of the PropTweens are instantiated. In the plugin's init() function, it sets the _onInit on the tween instance. May not be pretty/intuitive, but it's fast and keeps file size down.\n  }\n\n  tween._onUpdate = onUpdate;\n  tween._initted = (!tween._op || tween._pt) && !overwritten; // if overwrittenProps resulted in the entire tween being killed, do NOT flag it as initted or else it may render for one tick.\n\n  keyframes && time <= 0 && tl.render(_bigNum, true, true); // if there's a 0% keyframe, it'll render in the \"before\" state for any staggered/delayed animations thus when the following tween initializes, it'll use the \"before\" state instead of the \"after\" state as the initial values.\n},\n    _updatePropTweens = function _updatePropTweens(tween, property, value, start, startIsRelative, ratio, time, skipRecursion) {\n  var ptCache = (tween._pt && tween._ptCache || (tween._ptCache = {}))[property],\n      pt,\n      rootPT,\n      lookup,\n      i;\n\n  if (!ptCache) {\n    ptCache = tween._ptCache[property] = [];\n    lookup = tween._ptLookup;\n    i = tween._targets.length;\n\n    while (i--) {\n      pt = lookup[i][property];\n\n      if (pt && pt.d && pt.d._pt) {\n        // it's a plugin, so find the nested PropTween\n        pt = pt.d._pt;\n\n        while (pt && pt.p !== property && pt.fp !== property) {\n          // \"fp\" is functionParam for things like setting CSS variables which require .setProperty(\"--var-name\", value)\n          pt = pt._next;\n        }\n      }\n\n      if (!pt) {\n        // there is no PropTween associated with that property, so we must FORCE one to be created and ditch out of this\n        // if the tween has other properties that already rendered at new positions, we'd normally have to rewind to put them back like tween.render(0, true) before forcing an _initTween(), but that can create another edge case like tweening a timeline's progress would trigger onUpdates to fire which could move other things around. It's better to just inform users that .resetTo() should ONLY be used for tweens that already have that property. For example, you can't gsap.to(...{ y: 0 }) and then tween.restTo(\"x\", 200) for example.\n        _forceAllPropTweens = 1; // otherwise, when we _addPropTween() and it finds no change between the start and end values, it skips creating a PropTween (for efficiency...why tween when there's no difference?) but in this case we NEED that PropTween created so we can edit it.\n\n        tween.vars[property] = \"+=0\";\n\n        _initTween(tween, time);\n\n        _forceAllPropTweens = 0;\n        return skipRecursion ? _warn(property + \" not eligible for reset\") : 1; // if someone tries to do a quickTo() on a special property like borderRadius which must get split into 4 different properties, that's not eligible for .resetTo().\n      }\n\n      ptCache.push(pt);\n    }\n  }\n\n  i = ptCache.length;\n\n  while (i--) {\n    rootPT = ptCache[i];\n    pt = rootPT._pt || rootPT; // complex values may have nested PropTweens. We only accommodate the FIRST value.\n\n    pt.s = (start || start === 0) && !startIsRelative ? start : pt.s + (start || 0) + ratio * pt.c;\n    pt.c = value - pt.s;\n    rootPT.e && (rootPT.e = _round(value) + getUnit(rootPT.e)); // mainly for CSSPlugin (end value)\n\n    rootPT.b && (rootPT.b = pt.s + getUnit(rootPT.b)); // (beginning value)\n  }\n},\n    _addAliasesToVars = function _addAliasesToVars(targets, vars) {\n  var harness = targets[0] ? _getCache(targets[0]).harness : 0,\n      propertyAliases = harness && harness.aliases,\n      copy,\n      p,\n      i,\n      aliases;\n\n  if (!propertyAliases) {\n    return vars;\n  }\n\n  copy = _merge({}, vars);\n\n  for (p in propertyAliases) {\n    if (p in copy) {\n      aliases = propertyAliases[p].split(\",\");\n      i = aliases.length;\n\n      while (i--) {\n        copy[aliases[i]] = copy[p];\n      }\n    }\n  }\n\n  return copy;\n},\n    // parses multiple formats, like {\"0%\": {x: 100}, {\"50%\": {x: -20}} and { x: {\"0%\": 100, \"50%\": -20} }, and an \"ease\" can be set on any object. We populate an \"allProps\" object with an Array for each property, like {x: [{}, {}], y:[{}, {}]} with data for each property tween. The objects have a \"t\" (time), \"v\", (value), and \"e\" (ease) property. This allows us to piece together a timeline later.\n_parseKeyframe = function _parseKeyframe(prop, obj, allProps, easeEach) {\n  var ease = obj.ease || easeEach || \"power1.inOut\",\n      p,\n      a;\n\n  if (_isArray(obj)) {\n    a = allProps[prop] || (allProps[prop] = []); // t = time (out of 100), v = value, e = ease\n\n    obj.forEach(function (value, i) {\n      return a.push({\n        t: i / (obj.length - 1) * 100,\n        v: value,\n        e: ease\n      });\n    });\n  } else {\n    for (p in obj) {\n      a = allProps[p] || (allProps[p] = []);\n      p === \"ease\" || a.push({\n        t: parseFloat(prop),\n        v: obj[p],\n        e: ease\n      });\n    }\n  }\n},\n    _parseFuncOrString = function _parseFuncOrString(value, tween, i, target, targets) {\n  return _isFunction(value) ? value.call(tween, i, target, targets) : _isString(value) && ~value.indexOf(\"random(\") ? _replaceRandom(value) : value;\n},\n    _staggerTweenProps = _callbackNames + \"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert\",\n    _staggerPropsToSkip = {};\n\n_forEachName(_staggerTweenProps + \",id,stagger,delay,duration,paused,scrollTrigger\", function (name) {\n  return _staggerPropsToSkip[name] = 1;\n});\n/*\n * --------------------------------------------------------------------------------------\n * TWEEN\n * --------------------------------------------------------------------------------------\n */\n\n\nexport var Tween = /*#__PURE__*/function (_Animation2) {\n  _inheritsLoose(Tween, _Animation2);\n\n  function Tween(targets, vars, position, skipInherit) {\n    var _this3;\n\n    if (typeof vars === \"number\") {\n      position.duration = vars;\n      vars = position;\n      position = null;\n    }\n\n    _this3 = _Animation2.call(this, skipInherit ? vars : _inheritDefaults(vars)) || this;\n    var _this3$vars = _this3.vars,\n        duration = _this3$vars.duration,\n        delay = _this3$vars.delay,\n        immediateRender = _this3$vars.immediateRender,\n        stagger = _this3$vars.stagger,\n        overwrite = _this3$vars.overwrite,\n        keyframes = _this3$vars.keyframes,\n        defaults = _this3$vars.defaults,\n        scrollTrigger = _this3$vars.scrollTrigger,\n        yoyoEase = _this3$vars.yoyoEase,\n        parent = vars.parent || _globalTimeline,\n        parsedTargets = (_isArray(targets) || _isTypedArray(targets) ? _isNumber(targets[0]) : \"length\" in vars) ? [targets] : toArray(targets),\n        tl,\n        i,\n        copy,\n        l,\n        p,\n        curTarget,\n        staggerFunc,\n        staggerVarsToMerge;\n    _this3._targets = parsedTargets.length ? _harness(parsedTargets) : _warn(\"GSAP target \" + targets + \" not found. https://gsap.com\", !_config.nullTargetWarn) || [];\n    _this3._ptLookup = []; //PropTween lookup. An array containing an object for each target, having keys for each tweening property\n\n    _this3._overwrite = overwrite;\n\n    if (keyframes || stagger || _isFuncOrString(duration) || _isFuncOrString(delay)) {\n      vars = _this3.vars;\n      tl = _this3.timeline = new Timeline({\n        data: \"nested\",\n        defaults: defaults || {},\n        targets: parent && parent.data === \"nested\" ? parent.vars.targets : parsedTargets\n      }); // we need to store the targets because for staggers and keyframes, we end up creating an individual tween for each but function-based values need to know the index and the whole Array of targets.\n\n      tl.kill();\n      tl.parent = tl._dp = _assertThisInitialized(_this3);\n      tl._start = 0;\n\n      if (stagger || _isFuncOrString(duration) || _isFuncOrString(delay)) {\n        l = parsedTargets.length;\n        staggerFunc = stagger && distribute(stagger);\n\n        if (_isObject(stagger)) {\n          //users can pass in callbacks like onStart/onComplete in the stagger object. These should fire with each individual tween.\n          for (p in stagger) {\n            if (~_staggerTweenProps.indexOf(p)) {\n              staggerVarsToMerge || (staggerVarsToMerge = {});\n              staggerVarsToMerge[p] = stagger[p];\n            }\n          }\n        }\n\n        for (i = 0; i < l; i++) {\n          copy = _copyExcluding(vars, _staggerPropsToSkip);\n          copy.stagger = 0;\n          yoyoEase && (copy.yoyoEase = yoyoEase);\n          staggerVarsToMerge && _merge(copy, staggerVarsToMerge);\n          curTarget = parsedTargets[i]; //don't just copy duration or delay because if they're a string or function, we'd end up in an infinite loop because _isFuncOrString() would evaluate as true in the child tweens, entering this loop, etc. So we parse the value straight from vars and default to 0.\n\n          copy.duration = +_parseFuncOrString(duration, _assertThisInitialized(_this3), i, curTarget, parsedTargets);\n          copy.delay = (+_parseFuncOrString(delay, _assertThisInitialized(_this3), i, curTarget, parsedTargets) || 0) - _this3._delay;\n\n          if (!stagger && l === 1 && copy.delay) {\n            // if someone does delay:\"random(1, 5)\", repeat:-1, for example, the delay shouldn't be inside the repeat.\n            _this3._delay = delay = copy.delay;\n            _this3._start += delay;\n            copy.delay = 0;\n          }\n\n          tl.to(curTarget, copy, staggerFunc ? staggerFunc(i, curTarget, parsedTargets) : 0);\n          tl._ease = _easeMap.none;\n        }\n\n        tl.duration() ? duration = delay = 0 : _this3.timeline = 0; // if the timeline's duration is 0, we don't need a timeline internally!\n      } else if (keyframes) {\n        _inheritDefaults(_setDefaults(tl.vars.defaults, {\n          ease: \"none\"\n        }));\n\n        tl._ease = _parseEase(keyframes.ease || vars.ease || \"none\");\n        var time = 0,\n            a,\n            kf,\n            v;\n\n        if (_isArray(keyframes)) {\n          keyframes.forEach(function (frame) {\n            return tl.to(parsedTargets, frame, \">\");\n          });\n          tl.duration(); // to ensure tl._dur is cached because we tap into it for performance purposes in the render() method.\n        } else {\n          copy = {};\n\n          for (p in keyframes) {\n            p === \"ease\" || p === \"easeEach\" || _parseKeyframe(p, keyframes[p], copy, keyframes.easeEach);\n          }\n\n          for (p in copy) {\n            a = copy[p].sort(function (a, b) {\n              return a.t - b.t;\n            });\n            time = 0;\n\n            for (i = 0; i < a.length; i++) {\n              kf = a[i];\n              v = {\n                ease: kf.e,\n                duration: (kf.t - (i ? a[i - 1].t : 0)) / 100 * duration\n              };\n              v[p] = kf.v;\n              tl.to(parsedTargets, v, time);\n              time += v.duration;\n            }\n          }\n\n          tl.duration() < duration && tl.to({}, {\n            duration: duration - tl.duration()\n          }); // in case keyframes didn't go to 100%\n        }\n      }\n\n      duration || _this3.duration(duration = tl.duration());\n    } else {\n      _this3.timeline = 0; //speed optimization, faster lookups (no going up the prototype chain)\n    }\n\n    if (overwrite === true && !_suppressOverwrites) {\n      _overwritingTween = _assertThisInitialized(_this3);\n\n      _globalTimeline.killTweensOf(parsedTargets);\n\n      _overwritingTween = 0;\n    }\n\n    _addToTimeline(parent, _assertThisInitialized(_this3), position);\n\n    vars.reversed && _this3.reverse();\n    vars.paused && _this3.paused(true);\n\n    if (immediateRender || !duration && !keyframes && _this3._start === _roundPrecise(parent._time) && _isNotFalse(immediateRender) && _hasNoPausedAncestors(_assertThisInitialized(_this3)) && parent.data !== \"nested\") {\n      _this3._tTime = -_tinyNum; //forces a render without having to set the render() \"force\" parameter to true because we want to allow lazying by default (using the \"force\" parameter always forces an immediate full render)\n\n      _this3.render(Math.max(0, -delay) || 0); //in case delay is negative\n\n    }\n\n    scrollTrigger && _scrollTrigger(_assertThisInitialized(_this3), scrollTrigger);\n    return _this3;\n  }\n\n  var _proto3 = Tween.prototype;\n\n  _proto3.render = function render(totalTime, suppressEvents, force) {\n    var prevTime = this._time,\n        tDur = this._tDur,\n        dur = this._dur,\n        isNegative = totalTime < 0,\n        tTime = totalTime > tDur - _tinyNum && !isNegative ? tDur : totalTime < _tinyNum ? 0 : totalTime,\n        time,\n        pt,\n        iteration,\n        cycleDuration,\n        prevIteration,\n        isYoyo,\n        ratio,\n        timeline,\n        yoyoEase;\n\n    if (!dur) {\n      _renderZeroDurationTween(this, totalTime, suppressEvents, force);\n    } else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative) {\n      //this senses if we're crossing over the start time, in which case we must record _zTime and force the render, but we do it in this lengthy conditional way for performance reasons (usually we can skip the calculations): this._initted && (this._zTime < 0) !== (totalTime < 0)\n      time = tTime;\n      timeline = this.timeline;\n\n      if (this._repeat) {\n        //adjust the time for repeats and yoyos\n        cycleDuration = dur + this._rDelay;\n\n        if (this._repeat < -1 && isNegative) {\n          return this.totalTime(cycleDuration * 100 + totalTime, suppressEvents, force);\n        }\n\n        time = _roundPrecise(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n\n        if (tTime === tDur) {\n          // the tDur === tTime is for edge cases where there's a lengthy decimal on the duration and it may reach the very end but the time is rendered as not-quite-there (remember, tDur is rounded to 4 decimals whereas dur isn't)\n          iteration = this._repeat;\n          time = dur;\n        } else {\n          iteration = ~~(tTime / cycleDuration);\n\n          if (iteration && iteration === _roundPrecise(tTime / cycleDuration)) {\n            time = dur;\n            iteration--;\n          }\n\n          time > dur && (time = dur);\n        }\n\n        isYoyo = this._yoyo && iteration & 1;\n\n        if (isYoyo) {\n          yoyoEase = this._yEase;\n          time = dur - time;\n        }\n\n        prevIteration = _animationCycle(this._tTime, cycleDuration);\n\n        if (time === prevTime && !force && this._initted && iteration === prevIteration) {\n          //could be during the repeatDelay part. No need to render and fire callbacks.\n          this._tTime = tTime;\n          return this;\n        }\n\n        if (iteration !== prevIteration) {\n          timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo); //repeatRefresh functionality\n\n          if (this.vars.repeatRefresh && !isYoyo && !this._lock && this._time !== cycleDuration && this._initted) {\n            // this._time will === cycleDuration when we render at EXACTLY the end of an iteration. Without this condition, it'd often do the repeatRefresh render TWICE (again on the very next tick).\n            this._lock = force = 1; //force, otherwise if lazy is true, the _attemptInitTween() will return and we'll jump out and get caught bouncing on each tick.\n\n            this.render(_roundPrecise(cycleDuration * iteration), true).invalidate()._lock = 0;\n          }\n        }\n      }\n\n      if (!this._initted) {\n        if (_attemptInitTween(this, isNegative ? totalTime : time, force, suppressEvents, tTime)) {\n          this._tTime = 0; // in constructor if immediateRender is true, we set _tTime to -_tinyNum to have the playhead cross the starting point but we can't leave _tTime as a negative number.\n\n          return this;\n        }\n\n        if (prevTime !== this._time && !(force && this.vars.repeatRefresh && iteration !== prevIteration)) {\n          // rare edge case - during initialization, an onUpdate in the _startAt (.fromTo()) might force this tween to render at a different spot in which case we should ditch this render() call so that it doesn't revert the values. But we also don't want to dump if we're doing a repeatRefresh render!\n          return this;\n        }\n\n        if (dur !== this._dur) {\n          // while initting, a plugin like InertiaPlugin might alter the duration, so rerun from the start to ensure everything renders as it should.\n          return this.render(totalTime, suppressEvents, force);\n        }\n      }\n\n      this._tTime = tTime;\n      this._time = time;\n\n      if (!this._act && this._ts) {\n        this._act = 1; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n\n        this._lazy = 0;\n      }\n\n      this.ratio = ratio = (yoyoEase || this._ease)(time / dur);\n\n      if (this._from) {\n        this.ratio = ratio = 1 - ratio;\n      }\n\n      if (time && !prevTime && !suppressEvents && !iteration) {\n        _callback(this, \"onStart\");\n\n        if (this._tTime !== tTime) {\n          // in case the onStart triggered a render at a different spot, eject. Like if someone did animation.pause(0.5) or something inside the onStart.\n          return this;\n        }\n      }\n\n      pt = this._pt;\n\n      while (pt) {\n        pt.r(ratio, pt.d);\n        pt = pt._next;\n      }\n\n      timeline && timeline.render(totalTime < 0 ? totalTime : timeline._dur * timeline._ease(time / this._dur), suppressEvents, force) || this._startAt && (this._zTime = totalTime);\n\n      if (this._onUpdate && !suppressEvents) {\n        isNegative && _rewindStartAt(this, totalTime, suppressEvents, force); //note: for performance reasons, we tuck this conditional logic inside less traveled areas (most tweens don't have an onUpdate). We'd just have it at the end before the onComplete, but the values should be updated before any onUpdate is called, so we ALSO put it here and then if it's not called, we do so later near the onComplete.\n\n        _callback(this, \"onUpdate\");\n      }\n\n      this._repeat && iteration !== prevIteration && this.vars.onRepeat && !suppressEvents && this.parent && _callback(this, \"onRepeat\");\n\n      if ((tTime === this._tDur || !tTime) && this._tTime === tTime) {\n        isNegative && !this._onUpdate && _rewindStartAt(this, totalTime, true, true);\n        (totalTime || !dur) && (tTime === this._tDur && this._ts > 0 || !tTime && this._ts < 0) && _removeFromParent(this, 1); // don't remove if we're rendering at exactly a time of 0, as there could be autoRevert values that should get set on the next tick (if the playhead goes backward beyond the startTime, negative totalTime). Don't remove if the timeline is reversed and the playhead isn't at 0, otherwise tl.progress(1).reverse() won't work. Only remove if the playhead is at the end and timeScale is positive, or if the playhead is at 0 and the timeScale is negative.\n\n        if (!suppressEvents && !(isNegative && !prevTime) && (tTime || prevTime || isYoyo)) {\n          // if prevTime and tTime are zero, we shouldn't fire the onReverseComplete. This could happen if you gsap.to(... {paused:true}).play();\n          _callback(this, tTime === tDur ? \"onComplete\" : \"onReverseComplete\", true);\n\n          this._prom && !(tTime < tDur && this.timeScale() > 0) && this._prom();\n        }\n      }\n    }\n\n    return this;\n  };\n\n  _proto3.targets = function targets() {\n    return this._targets;\n  };\n\n  _proto3.invalidate = function invalidate(soft) {\n    // \"soft\" gives us a way to clear out everything EXCEPT the recorded pre-\"from\" portion of from() tweens. Otherwise, for example, if you tween.progress(1).render(0, true true).invalidate(), the \"from\" values would persist and then on the next render, the from() tweens would initialize and the current value would match the \"from\" values, thus animate from the same value to the same value (no animation). We tap into this in ScrollTrigger's refresh() where we must push a tween to completion and then back again but honor its init state in case the tween is dependent on another tween further up on the page.\n    (!soft || !this.vars.runBackwards) && (this._startAt = 0);\n    this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0;\n    this._ptLookup = [];\n    this.timeline && this.timeline.invalidate(soft);\n    return _Animation2.prototype.invalidate.call(this, soft);\n  };\n\n  _proto3.resetTo = function resetTo(property, value, start, startIsRelative, skipRecursion) {\n    _tickerActive || _ticker.wake();\n    this._ts || this.play();\n    var time = Math.min(this._dur, (this._dp._time - this._start) * this._ts),\n        ratio;\n    this._initted || _initTween(this, time);\n    ratio = this._ease(time / this._dur); // don't just get tween.ratio because it may not have rendered yet.\n    // possible future addition to allow an object with multiple values to update, like tween.resetTo({x: 100, y: 200}); At this point, it doesn't seem worth the added kb given the fact that most users will likely opt for the convenient gsap.quickTo() way of interacting with this method.\n    // if (_isObject(property)) { // performance optimization\n    // \tfor (p in property) {\n    // \t\tif (_updatePropTweens(this, p, property[p], value ? value[p] : null, start, ratio, time)) {\n    // \t\t\treturn this.resetTo(property, value, start, startIsRelative); // if a PropTween wasn't found for the property, it'll get forced with a re-initialization so we need to jump out and start over again.\n    // \t\t}\n    // \t}\n    // } else {\n\n    if (_updatePropTweens(this, property, value, start, startIsRelative, ratio, time, skipRecursion)) {\n      return this.resetTo(property, value, start, startIsRelative, 1); // if a PropTween wasn't found for the property, it'll get forced with a re-initialization so we need to jump out and start over again.\n    } //}\n\n\n    _alignPlayhead(this, 0);\n\n    this.parent || _addLinkedListItem(this._dp, this, \"_first\", \"_last\", this._dp._sort ? \"_start\" : 0);\n    return this.render(0);\n  };\n\n  _proto3.kill = function kill(targets, vars) {\n    if (vars === void 0) {\n      vars = \"all\";\n    }\n\n    if (!targets && (!vars || vars === \"all\")) {\n      this._lazy = this._pt = 0;\n      return this.parent ? _interrupt(this) : this;\n    }\n\n    if (this.timeline) {\n      var tDur = this.timeline.totalDuration();\n      this.timeline.killTweensOf(targets, vars, _overwritingTween && _overwritingTween.vars.overwrite !== true)._first || _interrupt(this); // if nothing is left tweening, interrupt.\n\n      this.parent && tDur !== this.timeline.totalDuration() && _setDuration(this, this._dur * this.timeline._tDur / tDur, 0, 1); // if a nested tween is killed that changes the duration, it should affect this tween's duration. We must use the ratio, though, because sometimes the internal timeline is stretched like for keyframes where they don't all add up to whatever the parent tween's duration was set to.\n\n      return this;\n    }\n\n    var parsedTargets = this._targets,\n        killingTargets = targets ? toArray(targets) : parsedTargets,\n        propTweenLookup = this._ptLookup,\n        firstPT = this._pt,\n        overwrittenProps,\n        curLookup,\n        curOverwriteProps,\n        props,\n        p,\n        pt,\n        i;\n\n    if ((!vars || vars === \"all\") && _arraysMatch(parsedTargets, killingTargets)) {\n      vars === \"all\" && (this._pt = 0);\n      return _interrupt(this);\n    }\n\n    overwrittenProps = this._op = this._op || [];\n\n    if (vars !== \"all\") {\n      //so people can pass in a comma-delimited list of property names\n      if (_isString(vars)) {\n        p = {};\n\n        _forEachName(vars, function (name) {\n          return p[name] = 1;\n        });\n\n        vars = p;\n      }\n\n      vars = _addAliasesToVars(parsedTargets, vars);\n    }\n\n    i = parsedTargets.length;\n\n    while (i--) {\n      if (~killingTargets.indexOf(parsedTargets[i])) {\n        curLookup = propTweenLookup[i];\n\n        if (vars === \"all\") {\n          overwrittenProps[i] = vars;\n          props = curLookup;\n          curOverwriteProps = {};\n        } else {\n          curOverwriteProps = overwrittenProps[i] = overwrittenProps[i] || {};\n          props = vars;\n        }\n\n        for (p in props) {\n          pt = curLookup && curLookup[p];\n\n          if (pt) {\n            if (!(\"kill\" in pt.d) || pt.d.kill(p) === true) {\n              _removeLinkedListItem(this, pt, \"_pt\");\n            }\n\n            delete curLookup[p];\n          }\n\n          if (curOverwriteProps !== \"all\") {\n            curOverwriteProps[p] = 1;\n          }\n        }\n      }\n    }\n\n    this._initted && !this._pt && firstPT && _interrupt(this); //if all tweening properties are killed, kill the tween. Without this line, if there's a tween with multiple targets and then you killTweensOf() each target individually, the tween would technically still remain active and fire its onComplete even though there aren't any more properties tweening.\n\n    return this;\n  };\n\n  Tween.to = function to(targets, vars) {\n    return new Tween(targets, vars, arguments[2]);\n  };\n\n  Tween.from = function from(targets, vars) {\n    return _createTweenType(1, arguments);\n  };\n\n  Tween.delayedCall = function delayedCall(delay, callback, params, scope) {\n    return new Tween(callback, 0, {\n      immediateRender: false,\n      lazy: false,\n      overwrite: false,\n      delay: delay,\n      onComplete: callback,\n      onReverseComplete: callback,\n      onCompleteParams: params,\n      onReverseCompleteParams: params,\n      callbackScope: scope\n    }); // we must use onReverseComplete too for things like timeline.add(() => {...}) which should be triggered in BOTH directions (forward and reverse)\n  };\n\n  Tween.fromTo = function fromTo(targets, fromVars, toVars) {\n    return _createTweenType(2, arguments);\n  };\n\n  Tween.set = function set(targets, vars) {\n    vars.duration = 0;\n    vars.repeatDelay || (vars.repeat = 0);\n    return new Tween(targets, vars);\n  };\n\n  Tween.killTweensOf = function killTweensOf(targets, props, onlyActive) {\n    return _globalTimeline.killTweensOf(targets, props, onlyActive);\n  };\n\n  return Tween;\n}(Animation);\n\n_setDefaults(Tween.prototype, {\n  _targets: [],\n  _lazy: 0,\n  _startAt: 0,\n  _op: 0,\n  _onInit: 0\n}); //add the pertinent timeline methods to Tween instances so that users can chain conveniently and create a timeline automatically. (removed due to concerns that it'd ultimately add to more confusion especially for beginners)\n// _forEachName(\"to,from,fromTo,set,call,add,addLabel,addPause\", name => {\n// \tTween.prototype[name] = function() {\n// \t\tlet tl = new Timeline();\n// \t\treturn _addToTimeline(tl, this)[name].apply(tl, toArray(arguments));\n// \t}\n// });\n//for backward compatibility. Leverage the timeline calls.\n\n\n_forEachName(\"staggerTo,staggerFrom,staggerFromTo\", function (name) {\n  Tween[name] = function () {\n    var tl = new Timeline(),\n        params = _slice.call(arguments, 0);\n\n    params.splice(name === \"staggerFromTo\" ? 5 : 4, 0, 0);\n    return tl[name].apply(tl, params);\n  };\n});\n/*\n * --------------------------------------------------------------------------------------\n * PROPTWEEN\n * --------------------------------------------------------------------------------------\n */\n\n\nvar _setterPlain = function _setterPlain(target, property, value) {\n  return target[property] = value;\n},\n    _setterFunc = function _setterFunc(target, property, value) {\n  return target[property](value);\n},\n    _setterFuncWithParam = function _setterFuncWithParam(target, property, value, data) {\n  return target[property](data.fp, value);\n},\n    _setterAttribute = function _setterAttribute(target, property, value) {\n  return target.setAttribute(property, value);\n},\n    _getSetter = function _getSetter(target, property) {\n  return _isFunction(target[property]) ? _setterFunc : _isUndefined(target[property]) && target.setAttribute ? _setterAttribute : _setterPlain;\n},\n    _renderPlain = function _renderPlain(ratio, data) {\n  return data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 1000000) / 1000000, data);\n},\n    _renderBoolean = function _renderBoolean(ratio, data) {\n  return data.set(data.t, data.p, !!(data.s + data.c * ratio), data);\n},\n    _renderComplexString = function _renderComplexString(ratio, data) {\n  var pt = data._pt,\n      s = \"\";\n\n  if (!ratio && data.b) {\n    //b = beginning string\n    s = data.b;\n  } else if (ratio === 1 && data.e) {\n    //e = ending string\n    s = data.e;\n  } else {\n    while (pt) {\n      s = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : Math.round((pt.s + pt.c * ratio) * 10000) / 10000) + s; //we use the \"p\" property for the text inbetween (like a suffix). And in the context of a complex string, the modifier (m) is typically just Math.round(), like for RGB colors.\n\n      pt = pt._next;\n    }\n\n    s += data.c; //we use the \"c\" of the PropTween to store the final chunk of non-numeric text.\n  }\n\n  data.set(data.t, data.p, s, data);\n},\n    _renderPropTweens = function _renderPropTweens(ratio, data) {\n  var pt = data._pt;\n\n  while (pt) {\n    pt.r(ratio, pt.d);\n    pt = pt._next;\n  }\n},\n    _addPluginModifier = function _addPluginModifier(modifier, tween, target, property) {\n  var pt = this._pt,\n      next;\n\n  while (pt) {\n    next = pt._next;\n    pt.p === property && pt.modifier(modifier, tween, target);\n    pt = next;\n  }\n},\n    _killPropTweensOf = function _killPropTweensOf(property) {\n  var pt = this._pt,\n      hasNonDependentRemaining,\n      next;\n\n  while (pt) {\n    next = pt._next;\n\n    if (pt.p === property && !pt.op || pt.op === property) {\n      _removeLinkedListItem(this, pt, \"_pt\");\n    } else if (!pt.dep) {\n      hasNonDependentRemaining = 1;\n    }\n\n    pt = next;\n  }\n\n  return !hasNonDependentRemaining;\n},\n    _setterWithModifier = function _setterWithModifier(target, property, value, data) {\n  data.mSet(target, property, data.m.call(data.tween, value, data.mt), data);\n},\n    _sortPropTweensByPriority = function _sortPropTweensByPriority(parent) {\n  var pt = parent._pt,\n      next,\n      pt2,\n      first,\n      last; //sorts the PropTween linked list in order of priority because some plugins need to do their work after ALL of the PropTweens were created (like RoundPropsPlugin and ModifiersPlugin)\n\n  while (pt) {\n    next = pt._next;\n    pt2 = first;\n\n    while (pt2 && pt2.pr > pt.pr) {\n      pt2 = pt2._next;\n    }\n\n    if (pt._prev = pt2 ? pt2._prev : last) {\n      pt._prev._next = pt;\n    } else {\n      first = pt;\n    }\n\n    if (pt._next = pt2) {\n      pt2._prev = pt;\n    } else {\n      last = pt;\n    }\n\n    pt = next;\n  }\n\n  parent._pt = first;\n}; //PropTween key: t = target, p = prop, r = renderer, d = data, s = start, c = change, op = overwriteProperty (ONLY populated when it's different than p), pr = priority, _next/_prev for the linked list siblings, set = setter, m = modifier, mSet = modifierSetter (the original setter, before a modifier was added)\n\n\nexport var PropTween = /*#__PURE__*/function () {\n  function PropTween(next, target, prop, start, change, renderer, data, setter, priority) {\n    this.t = target;\n    this.s = start;\n    this.c = change;\n    this.p = prop;\n    this.r = renderer || _renderPlain;\n    this.d = data || this;\n    this.set = setter || _setterPlain;\n    this.pr = priority || 0;\n    this._next = next;\n\n    if (next) {\n      next._prev = this;\n    }\n  }\n\n  var _proto4 = PropTween.prototype;\n\n  _proto4.modifier = function modifier(func, tween, target) {\n    this.mSet = this.mSet || this.set; //in case it was already set (a PropTween can only have one modifier)\n\n    this.set = _setterWithModifier;\n    this.m = func;\n    this.mt = target; //modifier target\n\n    this.tween = tween;\n  };\n\n  return PropTween;\n}(); //Initialization tasks\n\n_forEachName(_callbackNames + \"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger\", function (name) {\n  return _reservedProps[name] = 1;\n});\n\n_globals.TweenMax = _globals.TweenLite = Tween;\n_globals.TimelineLite = _globals.TimelineMax = Timeline;\n_globalTimeline = new Timeline({\n  sortChildren: false,\n  defaults: _defaults,\n  autoRemoveChildren: true,\n  id: \"root\",\n  smoothChildTiming: true\n});\n_config.stringFilter = _colorStringFilter;\n\nvar _media = [],\n    _listeners = {},\n    _emptyArray = [],\n    _lastMediaTime = 0,\n    _contextID = 0,\n    _dispatch = function _dispatch(type) {\n  return (_listeners[type] || _emptyArray).map(function (f) {\n    return f();\n  });\n},\n    _onMediaChange = function _onMediaChange() {\n  var time = Date.now(),\n      matches = [];\n\n  if (time - _lastMediaTime > 2) {\n    _dispatch(\"matchMediaInit\");\n\n    _media.forEach(function (c) {\n      var queries = c.queries,\n          conditions = c.conditions,\n          match,\n          p,\n          anyMatch,\n          toggled;\n\n      for (p in queries) {\n        match = _win.matchMedia(queries[p]).matches; // Firefox doesn't update the \"matches\" property of the MediaQueryList object correctly - it only does so as it calls its change handler - so we must re-create a media query here to ensure it's accurate.\n\n        match && (anyMatch = 1);\n\n        if (match !== conditions[p]) {\n          conditions[p] = match;\n          toggled = 1;\n        }\n      }\n\n      if (toggled) {\n        c.revert();\n        anyMatch && matches.push(c);\n      }\n    });\n\n    _dispatch(\"matchMediaRevert\");\n\n    matches.forEach(function (c) {\n      return c.onMatch(c, function (func) {\n        return c.add(null, func);\n      });\n    });\n    _lastMediaTime = time;\n\n    _dispatch(\"matchMedia\");\n  }\n};\n\nvar Context = /*#__PURE__*/function () {\n  function Context(func, scope) {\n    this.selector = scope && selector(scope);\n    this.data = [];\n    this._r = []; // returned/cleanup functions\n\n    this.isReverted = false;\n    this.id = _contextID++; // to work around issues that frameworks like Vue cause by making things into Proxies which make it impossible to do something like _media.indexOf(this) because \"this\" would no longer refer to the Context instance itself - it'd refer to a Proxy! We needed a way to identify the context uniquely\n\n    func && this.add(func);\n  }\n\n  var _proto5 = Context.prototype;\n\n  _proto5.add = function add(name, func, scope) {\n    // possible future addition if we need the ability to add() an animation to a context and for whatever reason cannot create that animation inside of a context.add(() => {...}) function.\n    // if (name && _isFunction(name.revert)) {\n    // \tthis.data.push(name);\n    // \treturn (name._ctx = this);\n    // }\n    if (_isFunction(name)) {\n      scope = func;\n      func = name;\n      name = _isFunction;\n    }\n\n    var self = this,\n        f = function f() {\n      var prev = _context,\n          prevSelector = self.selector,\n          result;\n      prev && prev !== self && prev.data.push(self);\n      scope && (self.selector = selector(scope));\n      _context = self;\n      result = func.apply(self, arguments);\n      _isFunction(result) && self._r.push(result);\n      _context = prev;\n      self.selector = prevSelector;\n      self.isReverted = false;\n      return result;\n    };\n\n    self.last = f;\n    return name === _isFunction ? f(self, function (func) {\n      return self.add(null, func);\n    }) : name ? self[name] = f : f;\n  };\n\n  _proto5.ignore = function ignore(func) {\n    var prev = _context;\n    _context = null;\n    func(this);\n    _context = prev;\n  };\n\n  _proto5.getTweens = function getTweens() {\n    var a = [];\n    this.data.forEach(function (e) {\n      return e instanceof Context ? a.push.apply(a, e.getTweens()) : e instanceof Tween && !(e.parent && e.parent.data === \"nested\") && a.push(e);\n    });\n    return a;\n  };\n\n  _proto5.clear = function clear() {\n    this._r.length = this.data.length = 0;\n  };\n\n  _proto5.kill = function kill(revert, matchMedia) {\n    var _this4 = this;\n\n    if (revert) {\n      (function () {\n        var tweens = _this4.getTweens(),\n            i = _this4.data.length,\n            t;\n\n        while (i--) {\n          // Flip plugin tweens are very different in that they should actually be pushed to their end. The plugin replaces the timeline's .revert() method to do exactly that. But we also need to remove any of those nested tweens inside the flip timeline so that they don't get individually reverted.\n          t = _this4.data[i];\n\n          if (t.data === \"isFlip\") {\n            t.revert();\n            t.getChildren(true, true, false).forEach(function (tween) {\n              return tweens.splice(tweens.indexOf(tween), 1);\n            });\n          }\n        } // save as an object so that we can cache the globalTime for each tween to optimize performance during the sort\n\n\n        tweens.map(function (t) {\n          return {\n            g: t._dur || t._delay || t._sat && !t._sat.vars.immediateRender ? t.globalTime(0) : -Infinity,\n            t: t\n          };\n        }).sort(function (a, b) {\n          return b.g - a.g || -Infinity;\n        }).forEach(function (o) {\n          return o.t.revert(revert);\n        }); // note: all of the _startAt tweens should be reverted in reverse order that they were created, and they'll all have the same globalTime (-1) so the \" || -1\" in the sort keeps the order properly.\n\n        i = _this4.data.length;\n\n        while (i--) {\n          // make sure we loop backwards so that, for example, SplitTexts that were created later on the same element get reverted first\n          t = _this4.data[i];\n\n          if (t instanceof Timeline) {\n            if (t.data !== \"nested\") {\n              t.scrollTrigger && t.scrollTrigger.revert();\n              t.kill(); // don't revert() the timeline because that's duplicating efforts since we already reverted all the tweens\n            }\n          } else {\n            !(t instanceof Tween) && t.revert && t.revert(revert);\n          }\n        }\n\n        _this4._r.forEach(function (f) {\n          return f(revert, _this4);\n        });\n\n        _this4.isReverted = true;\n      })();\n    } else {\n      this.data.forEach(function (e) {\n        return e.kill && e.kill();\n      });\n    }\n\n    this.clear();\n\n    if (matchMedia) {\n      var i = _media.length;\n\n      while (i--) {\n        // previously, we checked _media.indexOf(this), but some frameworks like Vue enforce Proxy objects that make it impossible to get the proper result that way, so we must use a unique ID number instead.\n        _media[i].id === this.id && _media.splice(i, 1);\n      }\n    }\n  };\n\n  _proto5.revert = function revert(config) {\n    this.kill(config || {});\n  };\n\n  return Context;\n}();\n\nvar MatchMedia = /*#__PURE__*/function () {\n  function MatchMedia(scope) {\n    this.contexts = [];\n    this.scope = scope;\n    _context && _context.data.push(this);\n  }\n\n  var _proto6 = MatchMedia.prototype;\n\n  _proto6.add = function add(conditions, func, scope) {\n    _isObject(conditions) || (conditions = {\n      matches: conditions\n    });\n    var context = new Context(0, scope || this.scope),\n        cond = context.conditions = {},\n        mq,\n        p,\n        active;\n    _context && !context.selector && (context.selector = _context.selector); // in case a context is created inside a context. Like a gsap.matchMedia() that's inside a scoped gsap.context()\n\n    this.contexts.push(context);\n    func = context.add(\"onMatch\", func);\n    context.queries = conditions;\n\n    for (p in conditions) {\n      if (p === \"all\") {\n        active = 1;\n      } else {\n        mq = _win.matchMedia(conditions[p]);\n\n        if (mq) {\n          _media.indexOf(context) < 0 && _media.push(context);\n          (cond[p] = mq.matches) && (active = 1);\n          mq.addListener ? mq.addListener(_onMediaChange) : mq.addEventListener(\"change\", _onMediaChange);\n        }\n      }\n    }\n\n    active && func(context, function (f) {\n      return context.add(null, f);\n    });\n    return this;\n  } // refresh() {\n  // \tlet time = _lastMediaTime,\n  // \t\tmedia = _media;\n  // \t_lastMediaTime = -1;\n  // \t_media = this.contexts;\n  // \t_onMediaChange();\n  // \t_lastMediaTime = time;\n  // \t_media = media;\n  // }\n  ;\n\n  _proto6.revert = function revert(config) {\n    this.kill(config || {});\n  };\n\n  _proto6.kill = function kill(revert) {\n    this.contexts.forEach(function (c) {\n      return c.kill(revert, true);\n    });\n  };\n\n  return MatchMedia;\n}();\n/*\n * --------------------------------------------------------------------------------------\n * GSAP\n * --------------------------------------------------------------------------------------\n */\n\n\nvar _gsap = {\n  registerPlugin: function registerPlugin() {\n    for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n      args[_key2] = arguments[_key2];\n    }\n\n    args.forEach(function (config) {\n      return _createPlugin(config);\n    });\n  },\n  timeline: function timeline(vars) {\n    return new Timeline(vars);\n  },\n  getTweensOf: function getTweensOf(targets, onlyActive) {\n    return _globalTimeline.getTweensOf(targets, onlyActive);\n  },\n  getProperty: function getProperty(target, property, unit, uncache) {\n    _isString(target) && (target = toArray(target)[0]); //in case selector text or an array is passed in\n\n    var getter = _getCache(target || {}).get,\n        format = unit ? _passThrough : _numericIfPossible;\n\n    unit === \"native\" && (unit = \"\");\n    return !target ? target : !property ? function (property, unit, uncache) {\n      return format((_plugins[property] && _plugins[property].get || getter)(target, property, unit, uncache));\n    } : format((_plugins[property] && _plugins[property].get || getter)(target, property, unit, uncache));\n  },\n  quickSetter: function quickSetter(target, property, unit) {\n    target = toArray(target);\n\n    if (target.length > 1) {\n      var setters = target.map(function (t) {\n        return gsap.quickSetter(t, property, unit);\n      }),\n          l = setters.length;\n      return function (value) {\n        var i = l;\n\n        while (i--) {\n          setters[i](value);\n        }\n      };\n    }\n\n    target = target[0] || {};\n\n    var Plugin = _plugins[property],\n        cache = _getCache(target),\n        p = cache.harness && (cache.harness.aliases || {})[property] || property,\n        // in case it's an alias, like \"rotate\" for \"rotation\".\n    setter = Plugin ? function (value) {\n      var p = new Plugin();\n      _quickTween._pt = 0;\n      p.init(target, unit ? value + unit : value, _quickTween, 0, [target]);\n      p.render(1, p);\n      _quickTween._pt && _renderPropTweens(1, _quickTween);\n    } : cache.set(target, p);\n\n    return Plugin ? setter : function (value) {\n      return setter(target, p, unit ? value + unit : value, cache, 1);\n    };\n  },\n  quickTo: function quickTo(target, property, vars) {\n    var _merge2;\n\n    var tween = gsap.to(target, _merge((_merge2 = {}, _merge2[property] = \"+=0.1\", _merge2.paused = true, _merge2), vars || {})),\n        func = function func(value, start, startIsRelative) {\n      return tween.resetTo(property, value, start, startIsRelative);\n    };\n\n    func.tween = tween;\n    return func;\n  },\n  isTweening: function isTweening(targets) {\n    return _globalTimeline.getTweensOf(targets, true).length > 0;\n  },\n  defaults: function defaults(value) {\n    value && value.ease && (value.ease = _parseEase(value.ease, _defaults.ease));\n    return _mergeDeep(_defaults, value || {});\n  },\n  config: function config(value) {\n    return _mergeDeep(_config, value || {});\n  },\n  registerEffect: function registerEffect(_ref3) {\n    var name = _ref3.name,\n        effect = _ref3.effect,\n        plugins = _ref3.plugins,\n        defaults = _ref3.defaults,\n        extendTimeline = _ref3.extendTimeline;\n    (plugins || \"\").split(\",\").forEach(function (pluginName) {\n      return pluginName && !_plugins[pluginName] && !_globals[pluginName] && _warn(name + \" effect requires \" + pluginName + \" plugin.\");\n    });\n\n    _effects[name] = function (targets, vars, tl) {\n      return effect(toArray(targets), _setDefaults(vars || {}, defaults), tl);\n    };\n\n    if (extendTimeline) {\n      Timeline.prototype[name] = function (targets, vars, position) {\n        return this.add(_effects[name](targets, _isObject(vars) ? vars : (position = vars) && {}, this), position);\n      };\n    }\n  },\n  registerEase: function registerEase(name, ease) {\n    _easeMap[name] = _parseEase(ease);\n  },\n  parseEase: function parseEase(ease, defaultEase) {\n    return arguments.length ? _parseEase(ease, defaultEase) : _easeMap;\n  },\n  getById: function getById(id) {\n    return _globalTimeline.getById(id);\n  },\n  exportRoot: function exportRoot(vars, includeDelayedCalls) {\n    if (vars === void 0) {\n      vars = {};\n    }\n\n    var tl = new Timeline(vars),\n        child,\n        next;\n    tl.smoothChildTiming = _isNotFalse(vars.smoothChildTiming);\n\n    _globalTimeline.remove(tl);\n\n    tl._dp = 0; //otherwise it'll get re-activated when adding children and be re-introduced into _globalTimeline's linked list (then added to itself).\n\n    tl._time = tl._tTime = _globalTimeline._time;\n    child = _globalTimeline._first;\n\n    while (child) {\n      next = child._next;\n\n      if (includeDelayedCalls || !(!child._dur && child instanceof Tween && child.vars.onComplete === child._targets[0])) {\n        _addToTimeline(tl, child, child._start - child._delay);\n      }\n\n      child = next;\n    }\n\n    _addToTimeline(_globalTimeline, tl, 0);\n\n    return tl;\n  },\n  context: function context(func, scope) {\n    return func ? new Context(func, scope) : _context;\n  },\n  matchMedia: function matchMedia(scope) {\n    return new MatchMedia(scope);\n  },\n  matchMediaRefresh: function matchMediaRefresh() {\n    return _media.forEach(function (c) {\n      var cond = c.conditions,\n          found,\n          p;\n\n      for (p in cond) {\n        if (cond[p]) {\n          cond[p] = false;\n          found = 1;\n        }\n      }\n\n      found && c.revert();\n    }) || _onMediaChange();\n  },\n  addEventListener: function addEventListener(type, callback) {\n    var a = _listeners[type] || (_listeners[type] = []);\n    ~a.indexOf(callback) || a.push(callback);\n  },\n  removeEventListener: function removeEventListener(type, callback) {\n    var a = _listeners[type],\n        i = a && a.indexOf(callback);\n    i >= 0 && a.splice(i, 1);\n  },\n  utils: {\n    wrap: wrap,\n    wrapYoyo: wrapYoyo,\n    distribute: distribute,\n    random: random,\n    snap: snap,\n    normalize: normalize,\n    getUnit: getUnit,\n    clamp: clamp,\n    splitColor: splitColor,\n    toArray: toArray,\n    selector: selector,\n    mapRange: mapRange,\n    pipe: pipe,\n    unitize: unitize,\n    interpolate: interpolate,\n    shuffle: shuffle\n  },\n  install: _install,\n  effects: _effects,\n  ticker: _ticker,\n  updateRoot: Timeline.updateRoot,\n  plugins: _plugins,\n  globalTimeline: _globalTimeline,\n  core: {\n    PropTween: PropTween,\n    globals: _addGlobal,\n    Tween: Tween,\n    Timeline: Timeline,\n    Animation: Animation,\n    getCache: _getCache,\n    _removeLinkedListItem: _removeLinkedListItem,\n    reverting: function reverting() {\n      return _reverting;\n    },\n    context: function context(toAdd) {\n      if (toAdd && _context) {\n        _context.data.push(toAdd);\n\n        toAdd._ctx = _context;\n      }\n\n      return _context;\n    },\n    suppressOverwrites: function suppressOverwrites(value) {\n      return _suppressOverwrites = value;\n    }\n  }\n};\n\n_forEachName(\"to,from,fromTo,delayedCall,set,killTweensOf\", function (name) {\n  return _gsap[name] = Tween[name];\n});\n\n_ticker.add(Timeline.updateRoot);\n\n_quickTween = _gsap.to({}, {\n  duration: 0\n}); // ---- EXTRA PLUGINS --------------------------------------------------------\n\nvar _getPluginPropTween = function _getPluginPropTween(plugin, prop) {\n  var pt = plugin._pt;\n\n  while (pt && pt.p !== prop && pt.op !== prop && pt.fp !== prop) {\n    pt = pt._next;\n  }\n\n  return pt;\n},\n    _addModifiers = function _addModifiers(tween, modifiers) {\n  var targets = tween._targets,\n      p,\n      i,\n      pt;\n\n  for (p in modifiers) {\n    i = targets.length;\n\n    while (i--) {\n      pt = tween._ptLookup[i][p];\n\n      if (pt && (pt = pt.d)) {\n        if (pt._pt) {\n          // is a plugin\n          pt = _getPluginPropTween(pt, p);\n        }\n\n        pt && pt.modifier && pt.modifier(modifiers[p], tween, targets[i], p);\n      }\n    }\n  }\n},\n    _buildModifierPlugin = function _buildModifierPlugin(name, modifier) {\n  return {\n    name: name,\n    rawVars: 1,\n    //don't pre-process function-based values or \"random()\" strings.\n    init: function init(target, vars, tween) {\n      tween._onInit = function (tween) {\n        var temp, p;\n\n        if (_isString(vars)) {\n          temp = {};\n\n          _forEachName(vars, function (name) {\n            return temp[name] = 1;\n          }); //if the user passes in a comma-delimited list of property names to roundProps, like \"x,y\", we round to whole numbers.\n\n\n          vars = temp;\n        }\n\n        if (modifier) {\n          temp = {};\n\n          for (p in vars) {\n            temp[p] = modifier(vars[p]);\n          }\n\n          vars = temp;\n        }\n\n        _addModifiers(tween, vars);\n      };\n    }\n  };\n}; //register core plugins\n\n\nexport var gsap = _gsap.registerPlugin({\n  name: \"attr\",\n  init: function init(target, vars, tween, index, targets) {\n    var p, pt, v;\n    this.tween = tween;\n\n    for (p in vars) {\n      v = target.getAttribute(p) || \"\";\n      pt = this.add(target, \"setAttribute\", (v || 0) + \"\", vars[p], index, targets, 0, 0, p);\n      pt.op = p;\n      pt.b = v; // record the beginning value so we can revert()\n\n      this._props.push(p);\n    }\n  },\n  render: function render(ratio, data) {\n    var pt = data._pt;\n\n    while (pt) {\n      _reverting ? pt.set(pt.t, pt.p, pt.b, pt) : pt.r(ratio, pt.d); // if reverting, go back to the original (pt.b)\n\n      pt = pt._next;\n    }\n  }\n}, {\n  name: \"endArray\",\n  init: function init(target, value) {\n    var i = value.length;\n\n    while (i--) {\n      this.add(target, i, target[i] || 0, value[i], 0, 0, 0, 0, 0, 1);\n    }\n  }\n}, _buildModifierPlugin(\"roundProps\", _roundModifier), _buildModifierPlugin(\"modifiers\"), _buildModifierPlugin(\"snap\", snap)) || _gsap; //to prevent the core plugins from being dropped via aggressive tree shaking, we must include them in the variable declaration in this way.\n\nTween.version = Timeline.version = gsap.version = \"3.12.5\";\n_coreReady = 1;\n_windowExists() && _wake();\nvar Power0 = _easeMap.Power0,\n    Power1 = _easeMap.Power1,\n    Power2 = _easeMap.Power2,\n    Power3 = _easeMap.Power3,\n    Power4 = _easeMap.Power4,\n    Linear = _easeMap.Linear,\n    Quad = _easeMap.Quad,\n    Cubic = _easeMap.Cubic,\n    Quart = _easeMap.Quart,\n    Quint = _easeMap.Quint,\n    Strong = _easeMap.Strong,\n    Elastic = _easeMap.Elastic,\n    Back = _easeMap.Back,\n    SteppedEase = _easeMap.SteppedEase,\n    Bounce = _easeMap.Bounce,\n    Sine = _easeMap.Sine,\n    Expo = _easeMap.Expo,\n    Circ = _easeMap.Circ;\nexport { Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ };\nexport { Tween as TweenMax, Tween as TweenLite, Timeline as TimelineMax, Timeline as TimelineLite, gsap as default, wrap, wrapYoyo, distribute, random, snap, normalize, getUnit, clamp, splitColor, toArray, selector, mapRange, pipe, unitize, interpolate, shuffle }; //export some internal methods/orojects for use in CSSPlugin so that we can externalize that file and allow custom builds that exclude it.\n\nexport { _getProperty, _numExp, _numWithUnitExp, _isString, _isUndefined, _renderComplexString, _relExp, _setDefaults, _removeLinkedListItem, _forEachName, _sortPropTweensByPriority, _colorStringFilter, _replaceRandom, _checkPlugin, _plugins, _ticker, _config, _roundModifier, _round, _missingPlugin, _getSetter, _getCache, _colorExp, _parseRelative };","/*!\n * CSSPlugin 3.12.5\n * https://gsap.com\n *\n * Copyright 2008-2024, GreenSock. All rights reserved.\n * Subject to the terms at https://gsap.com/standard-license or for\n * Club GSAP members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n\n/* eslint-disable */\nimport { gsap, _getProperty, _numExp, _numWithUnitExp, getUnit, _isString, _isUndefined, _renderComplexString, _relExp, _forEachName, _sortPropTweensByPriority, _colorStringFilter, _checkPlugin, _replaceRandom, _plugins, GSCache, PropTween, _config, _ticker, _round, _missingPlugin, _getSetter, _getCache, _colorExp, _parseRelative, _setDefaults, _removeLinkedListItem //for the commented-out className feature.\n} from \"./gsap-core.js\";\n\nvar _win,\n    _doc,\n    _docElement,\n    _pluginInitted,\n    _tempDiv,\n    _tempDivStyler,\n    _recentSetterPlugin,\n    _reverting,\n    _windowExists = function _windowExists() {\n  return typeof window !== \"undefined\";\n},\n    _transformProps = {},\n    _RAD2DEG = 180 / Math.PI,\n    _DEG2RAD = Math.PI / 180,\n    _atan2 = Math.atan2,\n    _bigNum = 1e8,\n    _capsExp = /([A-Z])/g,\n    _horizontalExp = /(left|right|width|margin|padding|x)/i,\n    _complexExp = /[\\s,\\(]\\S/,\n    _propertyAliases = {\n  autoAlpha: \"opacity,visibility\",\n  scale: \"scaleX,scaleY\",\n  alpha: \"opacity\"\n},\n    _renderCSSProp = function _renderCSSProp(ratio, data) {\n  return data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);\n},\n    _renderPropWithEnd = function _renderPropWithEnd(ratio, data) {\n  return data.set(data.t, data.p, ratio === 1 ? data.e : Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);\n},\n    _renderCSSPropWithBeginning = function _renderCSSPropWithBeginning(ratio, data) {\n  return data.set(data.t, data.p, ratio ? Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u : data.b, data);\n},\n    //if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)\n_renderRoundedCSSProp = function _renderRoundedCSSProp(ratio, data) {\n  var value = data.s + data.c * ratio;\n  data.set(data.t, data.p, ~~(value + (value < 0 ? -.5 : .5)) + data.u, data);\n},\n    _renderNonTweeningValue = function _renderNonTweeningValue(ratio, data) {\n  return data.set(data.t, data.p, ratio ? data.e : data.b, data);\n},\n    _renderNonTweeningValueOnlyAtEnd = function _renderNonTweeningValueOnlyAtEnd(ratio, data) {\n  return data.set(data.t, data.p, ratio !== 1 ? data.b : data.e, data);\n},\n    _setterCSSStyle = function _setterCSSStyle(target, property, value) {\n  return target.style[property] = value;\n},\n    _setterCSSProp = function _setterCSSProp(target, property, value) {\n  return target.style.setProperty(property, value);\n},\n    _setterTransform = function _setterTransform(target, property, value) {\n  return target._gsap[property] = value;\n},\n    _setterScale = function _setterScale(target, property, value) {\n  return target._gsap.scaleX = target._gsap.scaleY = value;\n},\n    _setterScaleWithRender = function _setterScaleWithRender(target, property, value, data, ratio) {\n  var cache = target._gsap;\n  cache.scaleX = cache.scaleY = value;\n  cache.renderTransform(ratio, cache);\n},\n    _setterTransformWithRender = function _setterTransformWithRender(target, property, value, data, ratio) {\n  var cache = target._gsap;\n  cache[property] = value;\n  cache.renderTransform(ratio, cache);\n},\n    _transformProp = \"transform\",\n    _transformOriginProp = _transformProp + \"Origin\",\n    _saveStyle = function _saveStyle(property, isNotCSS) {\n  var _this = this;\n\n  var target = this.target,\n      style = target.style,\n      cache = target._gsap;\n\n  if (property in _transformProps && style) {\n    this.tfm = this.tfm || {};\n\n    if (property !== \"transform\") {\n      property = _propertyAliases[property] || property;\n      ~property.indexOf(\",\") ? property.split(\",\").forEach(function (a) {\n        return _this.tfm[a] = _get(target, a);\n      }) : this.tfm[property] = cache.x ? cache[property] : _get(target, property); // note: scale would map to \"scaleX,scaleY\", thus we loop and apply them both.\n\n      property === _transformOriginProp && (this.tfm.zOrigin = cache.zOrigin);\n    } else {\n      return _propertyAliases.transform.split(\",\").forEach(function (p) {\n        return _saveStyle.call(_this, p, isNotCSS);\n      });\n    }\n\n    if (this.props.indexOf(_transformProp) >= 0) {\n      return;\n    }\n\n    if (cache.svg) {\n      this.svgo = target.getAttribute(\"data-svg-origin\");\n      this.props.push(_transformOriginProp, isNotCSS, \"\");\n    }\n\n    property = _transformProp;\n  }\n\n  (style || isNotCSS) && this.props.push(property, isNotCSS, style[property]);\n},\n    _removeIndependentTransforms = function _removeIndependentTransforms(style) {\n  if (style.translate) {\n    style.removeProperty(\"translate\");\n    style.removeProperty(\"scale\");\n    style.removeProperty(\"rotate\");\n  }\n},\n    _revertStyle = function _revertStyle() {\n  var props = this.props,\n      target = this.target,\n      style = target.style,\n      cache = target._gsap,\n      i,\n      p;\n\n  for (i = 0; i < props.length; i += 3) {\n    // stored like this: property, isNotCSS, value\n    props[i + 1] ? target[props[i]] = props[i + 2] : props[i + 2] ? style[props[i]] = props[i + 2] : style.removeProperty(props[i].substr(0, 2) === \"--\" ? props[i] : props[i].replace(_capsExp, \"-$1\").toLowerCase());\n  }\n\n  if (this.tfm) {\n    for (p in this.tfm) {\n      cache[p] = this.tfm[p];\n    }\n\n    if (cache.svg) {\n      cache.renderTransform();\n      target.setAttribute(\"data-svg-origin\", this.svgo || \"\");\n    }\n\n    i = _reverting();\n\n    if ((!i || !i.isStart) && !style[_transformProp]) {\n      _removeIndependentTransforms(style);\n\n      if (cache.zOrigin && style[_transformOriginProp]) {\n        style[_transformOriginProp] += \" \" + cache.zOrigin + \"px\"; // since we're uncaching, we must put the zOrigin back into the transformOrigin so that we can pull it out accurately when we parse again. Otherwise, we'd lose the z portion of the origin since we extract it to protect from Safari bugs.\n\n        cache.zOrigin = 0;\n        cache.renderTransform();\n      }\n\n      cache.uncache = 1; // if it's a startAt that's being reverted in the _initTween() of the core, we don't need to uncache transforms. This is purely a performance optimization.\n    }\n  }\n},\n    _getStyleSaver = function _getStyleSaver(target, properties) {\n  var saver = {\n    target: target,\n    props: [],\n    revert: _revertStyle,\n    save: _saveStyle\n  };\n  target._gsap || gsap.core.getCache(target); // just make sure there's a _gsap cache defined because we read from it in _saveStyle() and it's more efficient to just check it here once.\n\n  properties && properties.split(\",\").forEach(function (p) {\n    return saver.save(p);\n  });\n  return saver;\n},\n    _supports3D,\n    _createElement = function _createElement(type, ns) {\n  var e = _doc.createElementNS ? _doc.createElementNS((ns || \"http://www.w3.org/1999/xhtml\").replace(/^https/, \"http\"), type) : _doc.createElement(type); //some servers swap in https for http in the namespace which can break things, making \"style\" inaccessible.\n\n  return e && e.style ? e : _doc.createElement(type); //some environments won't allow access to the element's style when created with a namespace in which case we default to the standard createElement() to work around the issue. Also note that when GSAP is embedded directly inside an SVG file, createElement() won't allow access to the style object in Firefox (see https://gsap.com/forums/topic/20215-problem-using-tweenmax-in-standalone-self-containing-svg-file-err-cannot-set-property-csstext-of-undefined/).\n},\n    _getComputedProperty = function _getComputedProperty(target, property, skipPrefixFallback) {\n  var cs = getComputedStyle(target);\n  return cs[property] || cs.getPropertyValue(property.replace(_capsExp, \"-$1\").toLowerCase()) || cs.getPropertyValue(property) || !skipPrefixFallback && _getComputedProperty(target, _checkPropPrefix(property) || property, 1) || \"\"; //css variables may not need caps swapped out for dashes and lowercase.\n},\n    _prefixes = \"O,Moz,ms,Ms,Webkit\".split(\",\"),\n    _checkPropPrefix = function _checkPropPrefix(property, element, preferPrefix) {\n  var e = element || _tempDiv,\n      s = e.style,\n      i = 5;\n\n  if (property in s && !preferPrefix) {\n    return property;\n  }\n\n  property = property.charAt(0).toUpperCase() + property.substr(1);\n\n  while (i-- && !(_prefixes[i] + property in s)) {}\n\n  return i < 0 ? null : (i === 3 ? \"ms\" : i >= 0 ? _prefixes[i] : \"\") + property;\n},\n    _initCore = function _initCore() {\n  if (_windowExists() && window.document) {\n    _win = window;\n    _doc = _win.document;\n    _docElement = _doc.documentElement;\n    _tempDiv = _createElement(\"div\") || {\n      style: {}\n    };\n    _tempDivStyler = _createElement(\"div\");\n    _transformProp = _checkPropPrefix(_transformProp);\n    _transformOriginProp = _transformProp + \"Origin\";\n    _tempDiv.style.cssText = \"border-width:0;line-height:0;position:absolute;padding:0\"; //make sure to override certain properties that may contaminate measurements, in case the user has overreaching style sheets.\n\n    _supports3D = !!_checkPropPrefix(\"perspective\");\n    _reverting = gsap.core.reverting;\n    _pluginInitted = 1;\n  }\n},\n    _getBBoxHack = function _getBBoxHack(swapIfPossible) {\n  //works around issues in some browsers (like Firefox) that don't correctly report getBBox() on SVG elements inside a <defs> element and/or <mask>. We try creating an SVG, adding it to the documentElement and toss the element in there so that it's definitely part of the rendering tree, then grab the bbox and if it works, we actually swap out the original getBBox() method for our own that does these extra steps whenever getBBox is needed. This helps ensure that performance is optimal (only do all these extra steps when absolutely necessary...most elements don't need it).\n  var svg = _createElement(\"svg\", this.ownerSVGElement && this.ownerSVGElement.getAttribute(\"xmlns\") || \"http://www.w3.org/2000/svg\"),\n      oldParent = this.parentNode,\n      oldSibling = this.nextSibling,\n      oldCSS = this.style.cssText,\n      bbox;\n\n  _docElement.appendChild(svg);\n\n  svg.appendChild(this);\n  this.style.display = \"block\";\n\n  if (swapIfPossible) {\n    try {\n      bbox = this.getBBox();\n      this._gsapBBox = this.getBBox; //store the original\n\n      this.getBBox = _getBBoxHack;\n    } catch (e) {}\n  } else if (this._gsapBBox) {\n    bbox = this._gsapBBox();\n  }\n\n  if (oldParent) {\n    if (oldSibling) {\n      oldParent.insertBefore(this, oldSibling);\n    } else {\n      oldParent.appendChild(this);\n    }\n  }\n\n  _docElement.removeChild(svg);\n\n  this.style.cssText = oldCSS;\n  return bbox;\n},\n    _getAttributeFallbacks = function _getAttributeFallbacks(target, attributesArray) {\n  var i = attributesArray.length;\n\n  while (i--) {\n    if (target.hasAttribute(attributesArray[i])) {\n      return target.getAttribute(attributesArray[i]);\n    }\n  }\n},\n    _getBBox = function _getBBox(target) {\n  var bounds;\n\n  try {\n    bounds = target.getBBox(); //Firefox throws errors if you try calling getBBox() on an SVG element that's not rendered (like in a <symbol> or <defs>). https://bugzilla.mozilla.org/show_bug.cgi?id=612118\n  } catch (error) {\n    bounds = _getBBoxHack.call(target, true);\n  }\n\n  bounds && (bounds.width || bounds.height) || target.getBBox === _getBBoxHack || (bounds = _getBBoxHack.call(target, true)); //some browsers (like Firefox) misreport the bounds if the element has zero width and height (it just assumes it's at x:0, y:0), thus we need to manually grab the position in that case.\n\n  return bounds && !bounds.width && !bounds.x && !bounds.y ? {\n    x: +_getAttributeFallbacks(target, [\"x\", \"cx\", \"x1\"]) || 0,\n    y: +_getAttributeFallbacks(target, [\"y\", \"cy\", \"y1\"]) || 0,\n    width: 0,\n    height: 0\n  } : bounds;\n},\n    _isSVG = function _isSVG(e) {\n  return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && _getBBox(e));\n},\n    //reports if the element is an SVG on which getBBox() actually works\n_removeProperty = function _removeProperty(target, property) {\n  if (property) {\n    var style = target.style,\n        first2Chars;\n\n    if (property in _transformProps && property !== _transformOriginProp) {\n      property = _transformProp;\n    }\n\n    if (style.removeProperty) {\n      first2Chars = property.substr(0, 2);\n\n      if (first2Chars === \"ms\" || property.substr(0, 6) === \"webkit\") {\n        //Microsoft and some Webkit browsers don't conform to the standard of capitalizing the first prefix character, so we adjust so that when we prefix the caps with a dash, it's correct (otherwise it'd be \"ms-transform\" instead of \"-ms-transform\" for IE9, for example)\n        property = \"-\" + property;\n      }\n\n      style.removeProperty(first2Chars === \"--\" ? property : property.replace(_capsExp, \"-$1\").toLowerCase());\n    } else {\n      //note: old versions of IE use \"removeAttribute()\" instead of \"removeProperty()\"\n      style.removeAttribute(property);\n    }\n  }\n},\n    _addNonTweeningPT = function _addNonTweeningPT(plugin, target, property, beginning, end, onlySetAtEnd) {\n  var pt = new PropTween(plugin._pt, target, property, 0, 1, onlySetAtEnd ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue);\n  plugin._pt = pt;\n  pt.b = beginning;\n  pt.e = end;\n\n  plugin._props.push(property);\n\n  return pt;\n},\n    _nonConvertibleUnits = {\n  deg: 1,\n  rad: 1,\n  turn: 1\n},\n    _nonStandardLayouts = {\n  grid: 1,\n  flex: 1\n},\n    //takes a single value like 20px and converts it to the unit specified, like \"%\", returning only the numeric amount.\n_convertToUnit = function _convertToUnit(target, property, value, unit) {\n  var curValue = parseFloat(value) || 0,\n      curUnit = (value + \"\").trim().substr((curValue + \"\").length) || \"px\",\n      // some browsers leave extra whitespace at the beginning of CSS variables, hence the need to trim()\n  style = _tempDiv.style,\n      horizontal = _horizontalExp.test(property),\n      isRootSVG = target.tagName.toLowerCase() === \"svg\",\n      measureProperty = (isRootSVG ? \"client\" : \"offset\") + (horizontal ? \"Width\" : \"Height\"),\n      amount = 100,\n      toPixels = unit === \"px\",\n      toPercent = unit === \"%\",\n      px,\n      parent,\n      cache,\n      isSVG;\n\n  if (unit === curUnit || !curValue || _nonConvertibleUnits[unit] || _nonConvertibleUnits[curUnit]) {\n    return curValue;\n  }\n\n  curUnit !== \"px\" && !toPixels && (curValue = _convertToUnit(target, property, value, \"px\"));\n  isSVG = target.getCTM && _isSVG(target);\n\n  if ((toPercent || curUnit === \"%\") && (_transformProps[property] || ~property.indexOf(\"adius\"))) {\n    px = isSVG ? target.getBBox()[horizontal ? \"width\" : \"height\"] : target[measureProperty];\n    return _round(toPercent ? curValue / px * amount : curValue / 100 * px);\n  }\n\n  style[horizontal ? \"width\" : \"height\"] = amount + (toPixels ? curUnit : unit);\n  parent = ~property.indexOf(\"adius\") || unit === \"em\" && target.appendChild && !isRootSVG ? target : target.parentNode;\n\n  if (isSVG) {\n    parent = (target.ownerSVGElement || {}).parentNode;\n  }\n\n  if (!parent || parent === _doc || !parent.appendChild) {\n    parent = _doc.body;\n  }\n\n  cache = parent._gsap;\n\n  if (cache && toPercent && cache.width && horizontal && cache.time === _ticker.time && !cache.uncache) {\n    return _round(curValue / cache.width * amount);\n  } else {\n    if (toPercent && (property === \"height\" || property === \"width\")) {\n      // if we're dealing with width/height that's inside a container with padding and/or it's a flexbox/grid container, we must apply it to the target itself rather than the _tempDiv in order to ensure complete accuracy, factoring in the parent's padding.\n      var v = target.style[property];\n      target.style[property] = amount + unit;\n      px = target[measureProperty];\n      v ? target.style[property] = v : _removeProperty(target, property);\n    } else {\n      (toPercent || curUnit === \"%\") && !_nonStandardLayouts[_getComputedProperty(parent, \"display\")] && (style.position = _getComputedProperty(target, \"position\"));\n      parent === target && (style.position = \"static\"); // like for borderRadius, if it's a % we must have it relative to the target itself but that may not have position: relative or position: absolute in which case it'd go up the chain until it finds its offsetParent (bad). position: static protects against that.\n\n      parent.appendChild(_tempDiv);\n      px = _tempDiv[measureProperty];\n      parent.removeChild(_tempDiv);\n      style.position = \"absolute\";\n    }\n\n    if (horizontal && toPercent) {\n      cache = _getCache(parent);\n      cache.time = _ticker.time;\n      cache.width = parent[measureProperty];\n    }\n  }\n\n  return _round(toPixels ? px * curValue / amount : px && curValue ? amount / px * curValue : 0);\n},\n    _get = function _get(target, property, unit, uncache) {\n  var value;\n  _pluginInitted || _initCore();\n\n  if (property in _propertyAliases && property !== \"transform\") {\n    property = _propertyAliases[property];\n\n    if (~property.indexOf(\",\")) {\n      property = property.split(\",\")[0];\n    }\n  }\n\n  if (_transformProps[property] && property !== \"transform\") {\n    value = _parseTransform(target, uncache);\n    value = property !== \"transformOrigin\" ? value[property] : value.svg ? value.origin : _firstTwoOnly(_getComputedProperty(target, _transformOriginProp)) + \" \" + value.zOrigin + \"px\";\n  } else {\n    value = target.style[property];\n\n    if (!value || value === \"auto\" || uncache || ~(value + \"\").indexOf(\"calc(\")) {\n      value = _specialProps[property] && _specialProps[property](target, property, unit) || _getComputedProperty(target, property) || _getProperty(target, property) || (property === \"opacity\" ? 1 : 0); // note: some browsers, like Firefox, don't report borderRadius correctly! Instead, it only reports every corner like  borderTopLeftRadius\n    }\n  }\n\n  return unit && !~(value + \"\").trim().indexOf(\" \") ? _convertToUnit(target, property, value, unit) + unit : value;\n},\n    _tweenComplexCSSString = function _tweenComplexCSSString(target, prop, start, end) {\n  // note: we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n  if (!start || start === \"none\") {\n    // some browsers like Safari actually PREFER the prefixed property and mis-report the unprefixed value like clipPath (BUG). In other words, even though clipPath exists in the style (\"clipPath\" in target.style) and it's set in the CSS properly (along with -webkit-clip-path), Safari reports clipPath as \"none\" whereas WebkitClipPath reports accurately like \"ellipse(100% 0% at 50% 0%)\", so in this case we must SWITCH to using the prefixed property instead. See https://gsap.com/forums/topic/18310-clippath-doesnt-work-on-ios/\n    var p = _checkPropPrefix(prop, target, 1),\n        s = p && _getComputedProperty(target, p, 1);\n\n    if (s && s !== start) {\n      prop = p;\n      start = s;\n    } else if (prop === \"borderColor\") {\n      start = _getComputedProperty(target, \"borderTopColor\"); // Firefox bug: always reports \"borderColor\" as \"\", so we must fall back to borderTopColor. See https://gsap.com/forums/topic/24583-how-to-return-colors-that-i-had-after-reverse/\n    }\n  }\n\n  var pt = new PropTween(this._pt, target.style, prop, 0, 1, _renderComplexString),\n      index = 0,\n      matchIndex = 0,\n      a,\n      result,\n      startValues,\n      startNum,\n      color,\n      startValue,\n      endValue,\n      endNum,\n      chunk,\n      endUnit,\n      startUnit,\n      endValues;\n  pt.b = start;\n  pt.e = end;\n  start += \"\"; // ensure values are strings\n\n  end += \"\";\n\n  if (end === \"auto\") {\n    startValue = target.style[prop];\n    target.style[prop] = end;\n    end = _getComputedProperty(target, prop) || end;\n    startValue ? target.style[prop] = startValue : _removeProperty(target, prop);\n  }\n\n  a = [start, end];\n\n  _colorStringFilter(a); // pass an array with the starting and ending values and let the filter do whatever it needs to the values. If colors are found, it returns true and then we must match where the color shows up order-wise because for things like boxShadow, sometimes the browser provides the computed values with the color FIRST, but the user provides it with the color LAST, so flip them if necessary. Same for drop-shadow().\n\n\n  start = a[0];\n  end = a[1];\n  startValues = start.match(_numWithUnitExp) || [];\n  endValues = end.match(_numWithUnitExp) || [];\n\n  if (endValues.length) {\n    while (result = _numWithUnitExp.exec(end)) {\n      endValue = result[0];\n      chunk = end.substring(index, result.index);\n\n      if (color) {\n        color = (color + 1) % 5;\n      } else if (chunk.substr(-5) === \"rgba(\" || chunk.substr(-5) === \"hsla(\") {\n        color = 1;\n      }\n\n      if (endValue !== (startValue = startValues[matchIndex++] || \"\")) {\n        startNum = parseFloat(startValue) || 0;\n        startUnit = startValue.substr((startNum + \"\").length);\n        endValue.charAt(1) === \"=\" && (endValue = _parseRelative(startNum, endValue) + startUnit);\n        endNum = parseFloat(endValue);\n        endUnit = endValue.substr((endNum + \"\").length);\n        index = _numWithUnitExp.lastIndex - endUnit.length;\n\n        if (!endUnit) {\n          //if something like \"perspective:300\" is passed in and we must add a unit to the end\n          endUnit = endUnit || _config.units[prop] || startUnit;\n\n          if (index === end.length) {\n            end += endUnit;\n            pt.e += endUnit;\n          }\n        }\n\n        if (startUnit !== endUnit) {\n          startNum = _convertToUnit(target, prop, startValue, endUnit) || 0;\n        } // these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n\n\n        pt._pt = {\n          _next: pt._pt,\n          p: chunk || matchIndex === 1 ? chunk : \",\",\n          //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n          s: startNum,\n          c: endNum - startNum,\n          m: color && color < 4 || prop === \"zIndex\" ? Math.round : 0\n        };\n      }\n    }\n\n    pt.c = index < end.length ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n  } else {\n    pt.r = prop === \"display\" && end === \"none\" ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue;\n  }\n\n  _relExp.test(end) && (pt.e = 0); //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n\n  this._pt = pt; //start the linked list with this new PropTween. Remember, we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within another plugin too, thus \"this\" would refer to the plugin.\n\n  return pt;\n},\n    _keywordToPercent = {\n  top: \"0%\",\n  bottom: \"100%\",\n  left: \"0%\",\n  right: \"100%\",\n  center: \"50%\"\n},\n    _convertKeywordsToPercentages = function _convertKeywordsToPercentages(value) {\n  var split = value.split(\" \"),\n      x = split[0],\n      y = split[1] || \"50%\";\n\n  if (x === \"top\" || x === \"bottom\" || y === \"left\" || y === \"right\") {\n    //the user provided them in the wrong order, so flip them\n    value = x;\n    x = y;\n    y = value;\n  }\n\n  split[0] = _keywordToPercent[x] || x;\n  split[1] = _keywordToPercent[y] || y;\n  return split.join(\" \");\n},\n    _renderClearProps = function _renderClearProps(ratio, data) {\n  if (data.tween && data.tween._time === data.tween._dur) {\n    var target = data.t,\n        style = target.style,\n        props = data.u,\n        cache = target._gsap,\n        prop,\n        clearTransforms,\n        i;\n\n    if (props === \"all\" || props === true) {\n      style.cssText = \"\";\n      clearTransforms = 1;\n    } else {\n      props = props.split(\",\");\n      i = props.length;\n\n      while (--i > -1) {\n        prop = props[i];\n\n        if (_transformProps[prop]) {\n          clearTransforms = 1;\n          prop = prop === \"transformOrigin\" ? _transformOriginProp : _transformProp;\n        }\n\n        _removeProperty(target, prop);\n      }\n    }\n\n    if (clearTransforms) {\n      _removeProperty(target, _transformProp);\n\n      if (cache) {\n        cache.svg && target.removeAttribute(\"transform\");\n\n        _parseTransform(target, 1); // force all the cached values back to \"normal\"/identity, otherwise if there's another tween that's already set to render transforms on this element, it could display the wrong values.\n\n\n        cache.uncache = 1;\n\n        _removeIndependentTransforms(style);\n      }\n    }\n  }\n},\n    // note: specialProps should return 1 if (and only if) they have a non-zero priority. It indicates we need to sort the linked list.\n_specialProps = {\n  clearProps: function clearProps(plugin, target, property, endValue, tween) {\n    if (tween.data !== \"isFromStart\") {\n      var pt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _renderClearProps);\n      pt.u = endValue;\n      pt.pr = -10;\n      pt.tween = tween;\n\n      plugin._props.push(property);\n\n      return 1;\n    }\n  }\n  /* className feature (about 0.4kb gzipped).\n  , className(plugin, target, property, endValue, tween) {\n  \tlet _renderClassName = (ratio, data) => {\n  \t\t\tdata.css.render(ratio, data.css);\n  \t\t\tif (!ratio || ratio === 1) {\n  \t\t\t\tlet inline = data.rmv,\n  \t\t\t\t\ttarget = data.t,\n  \t\t\t\t\tp;\n  \t\t\t\ttarget.setAttribute(\"class\", ratio ? data.e : data.b);\n  \t\t\t\tfor (p in inline) {\n  \t\t\t\t\t_removeProperty(target, p);\n  \t\t\t\t}\n  \t\t\t}\n  \t\t},\n  \t\t_getAllStyles = (target) => {\n  \t\t\tlet styles = {},\n  \t\t\t\tcomputed = getComputedStyle(target),\n  \t\t\t\tp;\n  \t\t\tfor (p in computed) {\n  \t\t\t\tif (isNaN(p) && p !== \"cssText\" && p !== \"length\") {\n  \t\t\t\t\tstyles[p] = computed[p];\n  \t\t\t\t}\n  \t\t\t}\n  \t\t\t_setDefaults(styles, _parseTransform(target, 1));\n  \t\t\treturn styles;\n  \t\t},\n  \t\tstartClassList = target.getAttribute(\"class\"),\n  \t\tstyle = target.style,\n  \t\tcssText = style.cssText,\n  \t\tcache = target._gsap,\n  \t\tclassPT = cache.classPT,\n  \t\tinlineToRemoveAtEnd = {},\n  \t\tdata = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== \"=\") ? endValue : startClassList.replace(new RegExp(\"(?:\\\\s|^)\" + endValue.substr(2) + \"(?![\\\\w-])\"), \"\") + ((endValue.charAt(0) === \"+\") ? \" \" + endValue.substr(2) : \"\")},\n  \t\tchangingVars = {},\n  \t\tstartVars = _getAllStyles(target),\n  \t\ttransformRelated = /(transform|perspective)/i,\n  \t\tendVars, p;\n  \tif (classPT) {\n  \t\tclassPT.r(1, classPT.d);\n  \t\t_removeLinkedListItem(classPT.d.plugin, classPT, \"_pt\");\n  \t}\n  \ttarget.setAttribute(\"class\", data.e);\n  \tendVars = _getAllStyles(target, true);\n  \ttarget.setAttribute(\"class\", startClassList);\n  \tfor (p in endVars) {\n  \t\tif (endVars[p] !== startVars[p] && !transformRelated.test(p)) {\n  \t\t\tchangingVars[p] = endVars[p];\n  \t\t\tif (!style[p] && style[p] !== \"0\") {\n  \t\t\t\tinlineToRemoveAtEnd[p] = 1;\n  \t\t\t}\n  \t\t}\n  \t}\n  \tcache.classPT = plugin._pt = new PropTween(plugin._pt, target, \"className\", 0, 0, _renderClassName, data, 0, -11);\n  \tif (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://gsap.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.\n  \t\tstyle.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).\n  \t}\n  \t_parseTransform(target, true); //to clear the caching of transforms\n  \tdata.css = new gsap.plugins.css();\n  \tdata.css.init(target, changingVars, tween);\n  \tplugin._props.push(...data.css._props);\n  \treturn 1;\n  }\n  */\n\n},\n\n/*\n * --------------------------------------------------------------------------------------\n * TRANSFORMS\n * --------------------------------------------------------------------------------------\n */\n_identity2DMatrix = [1, 0, 0, 1, 0, 0],\n    _rotationalProperties = {},\n    _isNullTransform = function _isNullTransform(value) {\n  return value === \"matrix(1, 0, 0, 1, 0, 0)\" || value === \"none\" || !value;\n},\n    _getComputedTransformMatrixAsArray = function _getComputedTransformMatrixAsArray(target) {\n  var matrixString = _getComputedProperty(target, _transformProp);\n\n  return _isNullTransform(matrixString) ? _identity2DMatrix : matrixString.substr(7).match(_numExp).map(_round);\n},\n    _getMatrix = function _getMatrix(target, force2D) {\n  var cache = target._gsap || _getCache(target),\n      style = target.style,\n      matrix = _getComputedTransformMatrixAsArray(target),\n      parent,\n      nextSibling,\n      temp,\n      addedToDOM;\n\n  if (cache.svg && target.getAttribute(\"transform\")) {\n    temp = target.transform.baseVal.consolidate().matrix; //ensures that even complex values like \"translate(50,60) rotate(135,0,0)\" are parsed because it mashes it into a matrix.\n\n    matrix = [temp.a, temp.b, temp.c, temp.d, temp.e, temp.f];\n    return matrix.join(\",\") === \"1,0,0,1,0,0\" ? _identity2DMatrix : matrix;\n  } else if (matrix === _identity2DMatrix && !target.offsetParent && target !== _docElement && !cache.svg) {\n    //note: if offsetParent is null, that means the element isn't in the normal document flow, like if it has display:none or one of its ancestors has display:none). Firefox returns null for getComputedStyle() if the element is in an iframe that has display:none. https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n    //browsers don't report transforms accurately unless the element is in the DOM and has a display value that's not \"none\". Firefox and Microsoft browsers have a partial bug where they'll report transforms even if display:none BUT not any percentage-based values like translate(-50%, 8px) will be reported as if it's translate(0, 8px).\n    temp = style.display;\n    style.display = \"block\";\n    parent = target.parentNode;\n\n    if (!parent || !target.offsetParent) {\n      // note: in 3.3.0 we switched target.offsetParent to _doc.body.contains(target) to avoid [sometimes unnecessary] MutationObserver calls but that wasn't adequate because there are edge cases where nested position: fixed elements need to get reparented to accurately sense transforms. See https://github.com/greensock/GSAP/issues/388 and https://github.com/greensock/GSAP/issues/375\n      addedToDOM = 1; //flag\n\n      nextSibling = target.nextElementSibling;\n\n      _docElement.appendChild(target); //we must add it to the DOM in order to get values properly\n\n    }\n\n    matrix = _getComputedTransformMatrixAsArray(target);\n    temp ? style.display = temp : _removeProperty(target, \"display\");\n\n    if (addedToDOM) {\n      nextSibling ? parent.insertBefore(target, nextSibling) : parent ? parent.appendChild(target) : _docElement.removeChild(target);\n    }\n  }\n\n  return force2D && matrix.length > 6 ? [matrix[0], matrix[1], matrix[4], matrix[5], matrix[12], matrix[13]] : matrix;\n},\n    _applySVGOrigin = function _applySVGOrigin(target, origin, originIsAbsolute, smooth, matrixArray, pluginToAddPropTweensTo) {\n  var cache = target._gsap,\n      matrix = matrixArray || _getMatrix(target, true),\n      xOriginOld = cache.xOrigin || 0,\n      yOriginOld = cache.yOrigin || 0,\n      xOffsetOld = cache.xOffset || 0,\n      yOffsetOld = cache.yOffset || 0,\n      a = matrix[0],\n      b = matrix[1],\n      c = matrix[2],\n      d = matrix[3],\n      tx = matrix[4],\n      ty = matrix[5],\n      originSplit = origin.split(\" \"),\n      xOrigin = parseFloat(originSplit[0]) || 0,\n      yOrigin = parseFloat(originSplit[1]) || 0,\n      bounds,\n      determinant,\n      x,\n      y;\n\n  if (!originIsAbsolute) {\n    bounds = _getBBox(target);\n    xOrigin = bounds.x + (~originSplit[0].indexOf(\"%\") ? xOrigin / 100 * bounds.width : xOrigin);\n    yOrigin = bounds.y + (~(originSplit[1] || originSplit[0]).indexOf(\"%\") ? yOrigin / 100 * bounds.height : yOrigin); // if (!(\"xOrigin\" in cache) && (xOrigin || yOrigin)) { // added in 3.12.3, reverted in 3.12.4; requires more exploration\n    // \txOrigin -= bounds.x;\n    // \tyOrigin -= bounds.y;\n    // }\n  } else if (matrix !== _identity2DMatrix && (determinant = a * d - b * c)) {\n    //if it's zero (like if scaleX and scaleY are zero), skip it to avoid errors with dividing by zero.\n    x = xOrigin * (d / determinant) + yOrigin * (-c / determinant) + (c * ty - d * tx) / determinant;\n    y = xOrigin * (-b / determinant) + yOrigin * (a / determinant) - (a * ty - b * tx) / determinant;\n    xOrigin = x;\n    yOrigin = y; // theory: we only had to do this for smoothing and it assumes that the previous one was not originIsAbsolute.\n  }\n\n  if (smooth || smooth !== false && cache.smooth) {\n    tx = xOrigin - xOriginOld;\n    ty = yOrigin - yOriginOld;\n    cache.xOffset = xOffsetOld + (tx * a + ty * c) - tx;\n    cache.yOffset = yOffsetOld + (tx * b + ty * d) - ty;\n  } else {\n    cache.xOffset = cache.yOffset = 0;\n  }\n\n  cache.xOrigin = xOrigin;\n  cache.yOrigin = yOrigin;\n  cache.smooth = !!smooth;\n  cache.origin = origin;\n  cache.originIsAbsolute = !!originIsAbsolute;\n  target.style[_transformOriginProp] = \"0px 0px\"; //otherwise, if someone sets  an origin via CSS, it will likely interfere with the SVG transform attribute ones (because remember, we're baking the origin into the matrix() value).\n\n  if (pluginToAddPropTweensTo) {\n    _addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOrigin\", xOriginOld, xOrigin);\n\n    _addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOrigin\", yOriginOld, yOrigin);\n\n    _addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOffset\", xOffsetOld, cache.xOffset);\n\n    _addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOffset\", yOffsetOld, cache.yOffset);\n  }\n\n  target.setAttribute(\"data-svg-origin\", xOrigin + \" \" + yOrigin);\n},\n    _parseTransform = function _parseTransform(target, uncache) {\n  var cache = target._gsap || new GSCache(target);\n\n  if (\"x\" in cache && !uncache && !cache.uncache) {\n    return cache;\n  }\n\n  var style = target.style,\n      invertedScaleX = cache.scaleX < 0,\n      px = \"px\",\n      deg = \"deg\",\n      cs = getComputedStyle(target),\n      origin = _getComputedProperty(target, _transformOriginProp) || \"0\",\n      x,\n      y,\n      z,\n      scaleX,\n      scaleY,\n      rotation,\n      rotationX,\n      rotationY,\n      skewX,\n      skewY,\n      perspective,\n      xOrigin,\n      yOrigin,\n      matrix,\n      angle,\n      cos,\n      sin,\n      a,\n      b,\n      c,\n      d,\n      a12,\n      a22,\n      t1,\n      t2,\n      t3,\n      a13,\n      a23,\n      a33,\n      a42,\n      a43,\n      a32;\n  x = y = z = rotation = rotationX = rotationY = skewX = skewY = perspective = 0;\n  scaleX = scaleY = 1;\n  cache.svg = !!(target.getCTM && _isSVG(target));\n\n  if (cs.translate) {\n    // accommodate independent transforms by combining them into normal ones.\n    if (cs.translate !== \"none\" || cs.scale !== \"none\" || cs.rotate !== \"none\") {\n      style[_transformProp] = (cs.translate !== \"none\" ? \"translate3d(\" + (cs.translate + \" 0 0\").split(\" \").slice(0, 3).join(\", \") + \") \" : \"\") + (cs.rotate !== \"none\" ? \"rotate(\" + cs.rotate + \") \" : \"\") + (cs.scale !== \"none\" ? \"scale(\" + cs.scale.split(\" \").join(\",\") + \") \" : \"\") + (cs[_transformProp] !== \"none\" ? cs[_transformProp] : \"\");\n    }\n\n    style.scale = style.rotate = style.translate = \"none\";\n  }\n\n  matrix = _getMatrix(target, cache.svg);\n\n  if (cache.svg) {\n    if (cache.uncache) {\n      // if cache.uncache is true (and maybe if origin is 0,0), we need to set element.style.transformOrigin = (cache.xOrigin - bbox.x) + \"px \" + (cache.yOrigin - bbox.y) + \"px\". Previously we let the data-svg-origin stay instead, but when introducing revert(), it complicated things.\n      t2 = target.getBBox();\n      origin = cache.xOrigin - t2.x + \"px \" + (cache.yOrigin - t2.y) + \"px\";\n      t1 = \"\";\n    } else {\n      t1 = !uncache && target.getAttribute(\"data-svg-origin\"); //  Remember, to work around browser inconsistencies we always force SVG elements' transformOrigin to 0,0 and offset the translation accordingly.\n    }\n\n    _applySVGOrigin(target, t1 || origin, !!t1 || cache.originIsAbsolute, cache.smooth !== false, matrix);\n  }\n\n  xOrigin = cache.xOrigin || 0;\n  yOrigin = cache.yOrigin || 0;\n\n  if (matrix !== _identity2DMatrix) {\n    a = matrix[0]; //a11\n\n    b = matrix[1]; //a21\n\n    c = matrix[2]; //a31\n\n    d = matrix[3]; //a41\n\n    x = a12 = matrix[4];\n    y = a22 = matrix[5]; //2D matrix\n\n    if (matrix.length === 6) {\n      scaleX = Math.sqrt(a * a + b * b);\n      scaleY = Math.sqrt(d * d + c * c);\n      rotation = a || b ? _atan2(b, a) * _RAD2DEG : 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).\n\n      skewX = c || d ? _atan2(c, d) * _RAD2DEG + rotation : 0;\n      skewX && (scaleY *= Math.abs(Math.cos(skewX * _DEG2RAD)));\n\n      if (cache.svg) {\n        x -= xOrigin - (xOrigin * a + yOrigin * c);\n        y -= yOrigin - (xOrigin * b + yOrigin * d);\n      } //3D matrix\n\n    } else {\n      a32 = matrix[6];\n      a42 = matrix[7];\n      a13 = matrix[8];\n      a23 = matrix[9];\n      a33 = matrix[10];\n      a43 = matrix[11];\n      x = matrix[12];\n      y = matrix[13];\n      z = matrix[14];\n      angle = _atan2(a32, a33);\n      rotationX = angle * _RAD2DEG; //rotationX\n\n      if (angle) {\n        cos = Math.cos(-angle);\n        sin = Math.sin(-angle);\n        t1 = a12 * cos + a13 * sin;\n        t2 = a22 * cos + a23 * sin;\n        t3 = a32 * cos + a33 * sin;\n        a13 = a12 * -sin + a13 * cos;\n        a23 = a22 * -sin + a23 * cos;\n        a33 = a32 * -sin + a33 * cos;\n        a43 = a42 * -sin + a43 * cos;\n        a12 = t1;\n        a22 = t2;\n        a32 = t3;\n      } //rotationY\n\n\n      angle = _atan2(-c, a33);\n      rotationY = angle * _RAD2DEG;\n\n      if (angle) {\n        cos = Math.cos(-angle);\n        sin = Math.sin(-angle);\n        t1 = a * cos - a13 * sin;\n        t2 = b * cos - a23 * sin;\n        t3 = c * cos - a33 * sin;\n        a43 = d * sin + a43 * cos;\n        a = t1;\n        b = t2;\n        c = t3;\n      } //rotationZ\n\n\n      angle = _atan2(b, a);\n      rotation = angle * _RAD2DEG;\n\n      if (angle) {\n        cos = Math.cos(angle);\n        sin = Math.sin(angle);\n        t1 = a * cos + b * sin;\n        t2 = a12 * cos + a22 * sin;\n        b = b * cos - a * sin;\n        a22 = a22 * cos - a12 * sin;\n        a = t1;\n        a12 = t2;\n      }\n\n      if (rotationX && Math.abs(rotationX) + Math.abs(rotation) > 359.9) {\n        //when rotationY is set, it will often be parsed as 180 degrees different than it should be, and rotationX and rotation both being 180 (it looks the same), so we adjust for that here.\n        rotationX = rotation = 0;\n        rotationY = 180 - rotationY;\n      }\n\n      scaleX = _round(Math.sqrt(a * a + b * b + c * c));\n      scaleY = _round(Math.sqrt(a22 * a22 + a32 * a32));\n      angle = _atan2(a12, a22);\n      skewX = Math.abs(angle) > 0.0002 ? angle * _RAD2DEG : 0;\n      perspective = a43 ? 1 / (a43 < 0 ? -a43 : a43) : 0;\n    }\n\n    if (cache.svg) {\n      //sense if there are CSS transforms applied on an SVG element in which case we must overwrite them when rendering. The transform attribute is more reliable cross-browser, but we can't just remove the CSS ones because they may be applied in a CSS rule somewhere (not just inline).\n      t1 = target.getAttribute(\"transform\");\n      cache.forceCSS = target.setAttribute(\"transform\", \"\") || !_isNullTransform(_getComputedProperty(target, _transformProp));\n      t1 && target.setAttribute(\"transform\", t1);\n    }\n  }\n\n  if (Math.abs(skewX) > 90 && Math.abs(skewX) < 270) {\n    if (invertedScaleX) {\n      scaleX *= -1;\n      skewX += rotation <= 0 ? 180 : -180;\n      rotation += rotation <= 0 ? 180 : -180;\n    } else {\n      scaleY *= -1;\n      skewX += skewX <= 0 ? 180 : -180;\n    }\n  }\n\n  uncache = uncache || cache.uncache;\n  cache.x = x - ((cache.xPercent = x && (!uncache && cache.xPercent || (Math.round(target.offsetWidth / 2) === Math.round(-x) ? -50 : 0))) ? target.offsetWidth * cache.xPercent / 100 : 0) + px;\n  cache.y = y - ((cache.yPercent = y && (!uncache && cache.yPercent || (Math.round(target.offsetHeight / 2) === Math.round(-y) ? -50 : 0))) ? target.offsetHeight * cache.yPercent / 100 : 0) + px;\n  cache.z = z + px;\n  cache.scaleX = _round(scaleX);\n  cache.scaleY = _round(scaleY);\n  cache.rotation = _round(rotation) + deg;\n  cache.rotationX = _round(rotationX) + deg;\n  cache.rotationY = _round(rotationY) + deg;\n  cache.skewX = skewX + deg;\n  cache.skewY = skewY + deg;\n  cache.transformPerspective = perspective + px;\n\n  if (cache.zOrigin = parseFloat(origin.split(\" \")[2]) || !uncache && cache.zOrigin || 0) {\n    style[_transformOriginProp] = _firstTwoOnly(origin);\n  }\n\n  cache.xOffset = cache.yOffset = 0;\n  cache.force3D = _config.force3D;\n  cache.renderTransform = cache.svg ? _renderSVGTransforms : _supports3D ? _renderCSSTransforms : _renderNon3DTransforms;\n  cache.uncache = 0;\n  return cache;\n},\n    _firstTwoOnly = function _firstTwoOnly(value) {\n  return (value = value.split(\" \"))[0] + \" \" + value[1];\n},\n    //for handling transformOrigin values, stripping out the 3rd dimension\n_addPxTranslate = function _addPxTranslate(target, start, value) {\n  var unit = getUnit(start);\n  return _round(parseFloat(start) + parseFloat(_convertToUnit(target, \"x\", value + \"px\", unit))) + unit;\n},\n    _renderNon3DTransforms = function _renderNon3DTransforms(ratio, cache) {\n  cache.z = \"0px\";\n  cache.rotationY = cache.rotationX = \"0deg\";\n  cache.force3D = 0;\n\n  _renderCSSTransforms(ratio, cache);\n},\n    _zeroDeg = \"0deg\",\n    _zeroPx = \"0px\",\n    _endParenthesis = \") \",\n    _renderCSSTransforms = function _renderCSSTransforms(ratio, cache) {\n  var _ref = cache || this,\n      xPercent = _ref.xPercent,\n      yPercent = _ref.yPercent,\n      x = _ref.x,\n      y = _ref.y,\n      z = _ref.z,\n      rotation = _ref.rotation,\n      rotationY = _ref.rotationY,\n      rotationX = _ref.rotationX,\n      skewX = _ref.skewX,\n      skewY = _ref.skewY,\n      scaleX = _ref.scaleX,\n      scaleY = _ref.scaleY,\n      transformPerspective = _ref.transformPerspective,\n      force3D = _ref.force3D,\n      target = _ref.target,\n      zOrigin = _ref.zOrigin,\n      transforms = \"\",\n      use3D = force3D === \"auto\" && ratio && ratio !== 1 || force3D === true; // Safari has a bug that causes it not to render 3D transform-origin values properly, so we force the z origin to 0, record it in the cache, and then do the math here to offset the translate values accordingly (basically do the 3D transform-origin part manually)\n\n\n  if (zOrigin && (rotationX !== _zeroDeg || rotationY !== _zeroDeg)) {\n    var angle = parseFloat(rotationY) * _DEG2RAD,\n        a13 = Math.sin(angle),\n        a33 = Math.cos(angle),\n        cos;\n\n    angle = parseFloat(rotationX) * _DEG2RAD;\n    cos = Math.cos(angle);\n    x = _addPxTranslate(target, x, a13 * cos * -zOrigin);\n    y = _addPxTranslate(target, y, -Math.sin(angle) * -zOrigin);\n    z = _addPxTranslate(target, z, a33 * cos * -zOrigin + zOrigin);\n  }\n\n  if (transformPerspective !== _zeroPx) {\n    transforms += \"perspective(\" + transformPerspective + _endParenthesis;\n  }\n\n  if (xPercent || yPercent) {\n    transforms += \"translate(\" + xPercent + \"%, \" + yPercent + \"%) \";\n  }\n\n  if (use3D || x !== _zeroPx || y !== _zeroPx || z !== _zeroPx) {\n    transforms += z !== _zeroPx || use3D ? \"translate3d(\" + x + \", \" + y + \", \" + z + \") \" : \"translate(\" + x + \", \" + y + _endParenthesis;\n  }\n\n  if (rotation !== _zeroDeg) {\n    transforms += \"rotate(\" + rotation + _endParenthesis;\n  }\n\n  if (rotationY !== _zeroDeg) {\n    transforms += \"rotateY(\" + rotationY + _endParenthesis;\n  }\n\n  if (rotationX !== _zeroDeg) {\n    transforms += \"rotateX(\" + rotationX + _endParenthesis;\n  }\n\n  if (skewX !== _zeroDeg || skewY !== _zeroDeg) {\n    transforms += \"skew(\" + skewX + \", \" + skewY + _endParenthesis;\n  }\n\n  if (scaleX !== 1 || scaleY !== 1) {\n    transforms += \"scale(\" + scaleX + \", \" + scaleY + _endParenthesis;\n  }\n\n  target.style[_transformProp] = transforms || \"translate(0, 0)\";\n},\n    _renderSVGTransforms = function _renderSVGTransforms(ratio, cache) {\n  var _ref2 = cache || this,\n      xPercent = _ref2.xPercent,\n      yPercent = _ref2.yPercent,\n      x = _ref2.x,\n      y = _ref2.y,\n      rotation = _ref2.rotation,\n      skewX = _ref2.skewX,\n      skewY = _ref2.skewY,\n      scaleX = _ref2.scaleX,\n      scaleY = _ref2.scaleY,\n      target = _ref2.target,\n      xOrigin = _ref2.xOrigin,\n      yOrigin = _ref2.yOrigin,\n      xOffset = _ref2.xOffset,\n      yOffset = _ref2.yOffset,\n      forceCSS = _ref2.forceCSS,\n      tx = parseFloat(x),\n      ty = parseFloat(y),\n      a11,\n      a21,\n      a12,\n      a22,\n      temp;\n\n  rotation = parseFloat(rotation);\n  skewX = parseFloat(skewX);\n  skewY = parseFloat(skewY);\n\n  if (skewY) {\n    //for performance reasons, we combine all skewing into the skewX and rotation values. Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of 10 degrees.\n    skewY = parseFloat(skewY);\n    skewX += skewY;\n    rotation += skewY;\n  }\n\n  if (rotation || skewX) {\n    rotation *= _DEG2RAD;\n    skewX *= _DEG2RAD;\n    a11 = Math.cos(rotation) * scaleX;\n    a21 = Math.sin(rotation) * scaleX;\n    a12 = Math.sin(rotation - skewX) * -scaleY;\n    a22 = Math.cos(rotation - skewX) * scaleY;\n\n    if (skewX) {\n      skewY *= _DEG2RAD;\n      temp = Math.tan(skewX - skewY);\n      temp = Math.sqrt(1 + temp * temp);\n      a12 *= temp;\n      a22 *= temp;\n\n      if (skewY) {\n        temp = Math.tan(skewY);\n        temp = Math.sqrt(1 + temp * temp);\n        a11 *= temp;\n        a21 *= temp;\n      }\n    }\n\n    a11 = _round(a11);\n    a21 = _round(a21);\n    a12 = _round(a12);\n    a22 = _round(a22);\n  } else {\n    a11 = scaleX;\n    a22 = scaleY;\n    a21 = a12 = 0;\n  }\n\n  if (tx && !~(x + \"\").indexOf(\"px\") || ty && !~(y + \"\").indexOf(\"px\")) {\n    tx = _convertToUnit(target, \"x\", x, \"px\");\n    ty = _convertToUnit(target, \"y\", y, \"px\");\n  }\n\n  if (xOrigin || yOrigin || xOffset || yOffset) {\n    tx = _round(tx + xOrigin - (xOrigin * a11 + yOrigin * a12) + xOffset);\n    ty = _round(ty + yOrigin - (xOrigin * a21 + yOrigin * a22) + yOffset);\n  }\n\n  if (xPercent || yPercent) {\n    //The SVG spec doesn't support percentage-based translation in the \"transform\" attribute, so we merge it into the translation to simulate it.\n    temp = target.getBBox();\n    tx = _round(tx + xPercent / 100 * temp.width);\n    ty = _round(ty + yPercent / 100 * temp.height);\n  }\n\n  temp = \"matrix(\" + a11 + \",\" + a21 + \",\" + a12 + \",\" + a22 + \",\" + tx + \",\" + ty + \")\";\n  target.setAttribute(\"transform\", temp);\n  forceCSS && (target.style[_transformProp] = temp); //some browsers prioritize CSS transforms over the transform attribute. When we sense that the user has CSS transforms applied, we must overwrite them this way (otherwise some browser simply won't render the transform attribute changes!)\n},\n    _addRotationalPropTween = function _addRotationalPropTween(plugin, target, property, startNum, endValue) {\n  var cap = 360,\n      isString = _isString(endValue),\n      endNum = parseFloat(endValue) * (isString && ~endValue.indexOf(\"rad\") ? _RAD2DEG : 1),\n      change = endNum - startNum,\n      finalValue = startNum + change + \"deg\",\n      direction,\n      pt;\n\n  if (isString) {\n    direction = endValue.split(\"_\")[1];\n\n    if (direction === \"short\") {\n      change %= cap;\n\n      if (change !== change % (cap / 2)) {\n        change += change < 0 ? cap : -cap;\n      }\n    }\n\n    if (direction === \"cw\" && change < 0) {\n      change = (change + cap * _bigNum) % cap - ~~(change / cap) * cap;\n    } else if (direction === \"ccw\" && change > 0) {\n      change = (change - cap * _bigNum) % cap - ~~(change / cap) * cap;\n    }\n  }\n\n  plugin._pt = pt = new PropTween(plugin._pt, target, property, startNum, change, _renderPropWithEnd);\n  pt.e = finalValue;\n  pt.u = \"deg\";\n\n  plugin._props.push(property);\n\n  return pt;\n},\n    _assign = function _assign(target, source) {\n  // Internet Explorer doesn't have Object.assign(), so we recreate it here.\n  for (var p in source) {\n    target[p] = source[p];\n  }\n\n  return target;\n},\n    _addRawTransformPTs = function _addRawTransformPTs(plugin, transforms, target) {\n  //for handling cases where someone passes in a whole transform string, like transform: \"scale(2, 3) rotate(20deg) translateY(30em)\"\n  var startCache = _assign({}, target._gsap),\n      exclude = \"perspective,force3D,transformOrigin,svgOrigin\",\n      style = target.style,\n      endCache,\n      p,\n      startValue,\n      endValue,\n      startNum,\n      endNum,\n      startUnit,\n      endUnit;\n\n  if (startCache.svg) {\n    startValue = target.getAttribute(\"transform\");\n    target.setAttribute(\"transform\", \"\");\n    style[_transformProp] = transforms;\n    endCache = _parseTransform(target, 1);\n\n    _removeProperty(target, _transformProp);\n\n    target.setAttribute(\"transform\", startValue);\n  } else {\n    startValue = getComputedStyle(target)[_transformProp];\n    style[_transformProp] = transforms;\n    endCache = _parseTransform(target, 1);\n    style[_transformProp] = startValue;\n  }\n\n  for (p in _transformProps) {\n    startValue = startCache[p];\n    endValue = endCache[p];\n\n    if (startValue !== endValue && exclude.indexOf(p) < 0) {\n      //tweening to no perspective gives very unintuitive results - just keep the same perspective in that case.\n      startUnit = getUnit(startValue);\n      endUnit = getUnit(endValue);\n      startNum = startUnit !== endUnit ? _convertToUnit(target, p, startValue, endUnit) : parseFloat(startValue);\n      endNum = parseFloat(endValue);\n      plugin._pt = new PropTween(plugin._pt, endCache, p, startNum, endNum - startNum, _renderCSSProp);\n      plugin._pt.u = endUnit || 0;\n\n      plugin._props.push(p);\n    }\n  }\n\n  _assign(endCache, startCache);\n}; // handle splitting apart padding, margin, borderWidth, and borderRadius into their 4 components. Firefox, for example, won't report borderRadius correctly - it will only do borderTopLeftRadius and the other corners. We also want to handle paddingTop, marginLeft, borderRightWidth, etc.\n\n\n_forEachName(\"padding,margin,Width,Radius\", function (name, index) {\n  var t = \"Top\",\n      r = \"Right\",\n      b = \"Bottom\",\n      l = \"Left\",\n      props = (index < 3 ? [t, r, b, l] : [t + l, t + r, b + r, b + l]).map(function (side) {\n    return index < 2 ? name + side : \"border\" + side + name;\n  });\n\n  _specialProps[index > 1 ? \"border\" + name : name] = function (plugin, target, property, endValue, tween) {\n    var a, vars;\n\n    if (arguments.length < 4) {\n      // getter, passed target, property, and unit (from _get())\n      a = props.map(function (prop) {\n        return _get(plugin, prop, property);\n      });\n      vars = a.join(\" \");\n      return vars.split(a[0]).length === 5 ? a[0] : vars;\n    }\n\n    a = (endValue + \"\").split(\" \");\n    vars = {};\n    props.forEach(function (prop, i) {\n      return vars[prop] = a[i] = a[i] || a[(i - 1) / 2 | 0];\n    });\n    plugin.init(target, vars, tween);\n  };\n});\n\nexport var CSSPlugin = {\n  name: \"css\",\n  register: _initCore,\n  targetTest: function targetTest(target) {\n    return target.style && target.nodeType;\n  },\n  init: function init(target, vars, tween, index, targets) {\n    var props = this._props,\n        style = target.style,\n        startAt = tween.vars.startAt,\n        startValue,\n        endValue,\n        endNum,\n        startNum,\n        type,\n        specialProp,\n        p,\n        startUnit,\n        endUnit,\n        relative,\n        isTransformRelated,\n        transformPropTween,\n        cache,\n        smooth,\n        hasPriority,\n        inlineProps;\n    _pluginInitted || _initCore(); // we may call init() multiple times on the same plugin instance, like when adding special properties, so make sure we don't overwrite the revert data or inlineProps\n\n    this.styles = this.styles || _getStyleSaver(target);\n    inlineProps = this.styles.props;\n    this.tween = tween;\n\n    for (p in vars) {\n      if (p === \"autoRound\") {\n        continue;\n      }\n\n      endValue = vars[p];\n\n      if (_plugins[p] && _checkPlugin(p, vars, tween, index, target, targets)) {\n        // plugins\n        continue;\n      }\n\n      type = typeof endValue;\n      specialProp = _specialProps[p];\n\n      if (type === \"function\") {\n        endValue = endValue.call(tween, index, target, targets);\n        type = typeof endValue;\n      }\n\n      if (type === \"string\" && ~endValue.indexOf(\"random(\")) {\n        endValue = _replaceRandom(endValue);\n      }\n\n      if (specialProp) {\n        specialProp(this, target, p, endValue, tween) && (hasPriority = 1);\n      } else if (p.substr(0, 2) === \"--\") {\n        //CSS variable\n        startValue = (getComputedStyle(target).getPropertyValue(p) + \"\").trim();\n        endValue += \"\";\n        _colorExp.lastIndex = 0;\n\n        if (!_colorExp.test(startValue)) {\n          // colors don't have units\n          startUnit = getUnit(startValue);\n          endUnit = getUnit(endValue);\n        }\n\n        endUnit ? startUnit !== endUnit && (startValue = _convertToUnit(target, p, startValue, endUnit) + endUnit) : startUnit && (endValue += startUnit);\n        this.add(style, \"setProperty\", startValue, endValue, index, targets, 0, 0, p);\n        props.push(p);\n        inlineProps.push(p, 0, style[p]);\n      } else if (type !== \"undefined\") {\n        if (startAt && p in startAt) {\n          // in case someone hard-codes a complex value as the start, like top: \"calc(2vh / 2)\". Without this, it'd use the computed value (always in px)\n          startValue = typeof startAt[p] === \"function\" ? startAt[p].call(tween, index, target, targets) : startAt[p];\n          _isString(startValue) && ~startValue.indexOf(\"random(\") && (startValue = _replaceRandom(startValue));\n          getUnit(startValue + \"\") || startValue === \"auto\" || (startValue += _config.units[p] || getUnit(_get(target, p)) || \"\"); // for cases when someone passes in a unitless value like {x: 100}; if we try setting translate(100, 0px) it won't work.\n\n          (startValue + \"\").charAt(1) === \"=\" && (startValue = _get(target, p)); // can't work with relative values\n        } else {\n          startValue = _get(target, p);\n        }\n\n        startNum = parseFloat(startValue);\n        relative = type === \"string\" && endValue.charAt(1) === \"=\" && endValue.substr(0, 2);\n        relative && (endValue = endValue.substr(2));\n        endNum = parseFloat(endValue);\n\n        if (p in _propertyAliases) {\n          if (p === \"autoAlpha\") {\n            //special case where we control the visibility along with opacity. We still allow the opacity value to pass through and get tweened.\n            if (startNum === 1 && _get(target, \"visibility\") === \"hidden\" && endNum) {\n              //if visibility is initially set to \"hidden\", we should interpret that as intent to make opacity 0 (a convenience)\n              startNum = 0;\n            }\n\n            inlineProps.push(\"visibility\", 0, style.visibility);\n\n            _addNonTweeningPT(this, style, \"visibility\", startNum ? \"inherit\" : \"hidden\", endNum ? \"inherit\" : \"hidden\", !endNum);\n          }\n\n          if (p !== \"scale\" && p !== \"transform\") {\n            p = _propertyAliases[p];\n            ~p.indexOf(\",\") && (p = p.split(\",\")[0]);\n          }\n        }\n\n        isTransformRelated = p in _transformProps; //--- TRANSFORM-RELATED ---\n\n        if (isTransformRelated) {\n          this.styles.save(p);\n\n          if (!transformPropTween) {\n            cache = target._gsap;\n            cache.renderTransform && !vars.parseTransform || _parseTransform(target, vars.parseTransform); // if, for example, gsap.set(... {transform:\"translateX(50vw)\"}), the _get() call doesn't parse the transform, thus cache.renderTransform won't be set yet so force the parsing of the transform here.\n\n            smooth = vars.smoothOrigin !== false && cache.smooth;\n            transformPropTween = this._pt = new PropTween(this._pt, style, _transformProp, 0, 1, cache.renderTransform, cache, 0, -1); //the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)\n\n            transformPropTween.dep = 1; //flag it as dependent so that if things get killed/overwritten and this is the only PropTween left, we can safely kill the whole tween.\n          }\n\n          if (p === \"scale\") {\n            this._pt = new PropTween(this._pt, cache, \"scaleY\", cache.scaleY, (relative ? _parseRelative(cache.scaleY, relative + endNum) : endNum) - cache.scaleY || 0, _renderCSSProp);\n            this._pt.u = 0;\n            props.push(\"scaleY\", p);\n            p += \"X\";\n          } else if (p === \"transformOrigin\") {\n            inlineProps.push(_transformOriginProp, 0, style[_transformOriginProp]);\n            endValue = _convertKeywordsToPercentages(endValue); //in case something like \"left top\" or \"bottom right\" is passed in. Convert to percentages.\n\n            if (cache.svg) {\n              _applySVGOrigin(target, endValue, 0, smooth, 0, this);\n            } else {\n              endUnit = parseFloat(endValue.split(\" \")[2]) || 0; //handle the zOrigin separately!\n\n              endUnit !== cache.zOrigin && _addNonTweeningPT(this, cache, \"zOrigin\", cache.zOrigin, endUnit);\n\n              _addNonTweeningPT(this, style, p, _firstTwoOnly(startValue), _firstTwoOnly(endValue));\n            }\n\n            continue;\n          } else if (p === \"svgOrigin\") {\n            _applySVGOrigin(target, endValue, 1, smooth, 0, this);\n\n            continue;\n          } else if (p in _rotationalProperties) {\n            _addRotationalPropTween(this, cache, p, startNum, relative ? _parseRelative(startNum, relative + endValue) : endValue);\n\n            continue;\n          } else if (p === \"smoothOrigin\") {\n            _addNonTweeningPT(this, cache, \"smooth\", cache.smooth, endValue);\n\n            continue;\n          } else if (p === \"force3D\") {\n            cache[p] = endValue;\n            continue;\n          } else if (p === \"transform\") {\n            _addRawTransformPTs(this, endValue, target);\n\n            continue;\n          }\n        } else if (!(p in style)) {\n          p = _checkPropPrefix(p) || p;\n        }\n\n        if (isTransformRelated || (endNum || endNum === 0) && (startNum || startNum === 0) && !_complexExp.test(endValue) && p in style) {\n          startUnit = (startValue + \"\").substr((startNum + \"\").length);\n          endNum || (endNum = 0); // protect against NaN\n\n          endUnit = getUnit(endValue) || (p in _config.units ? _config.units[p] : startUnit);\n          startUnit !== endUnit && (startNum = _convertToUnit(target, p, startValue, endUnit));\n          this._pt = new PropTween(this._pt, isTransformRelated ? cache : style, p, startNum, (relative ? _parseRelative(startNum, relative + endNum) : endNum) - startNum, !isTransformRelated && (endUnit === \"px\" || p === \"zIndex\") && vars.autoRound !== false ? _renderRoundedCSSProp : _renderCSSProp);\n          this._pt.u = endUnit || 0;\n\n          if (startUnit !== endUnit && endUnit !== \"%\") {\n            //when the tween goes all the way back to the beginning, we need to revert it to the OLD/ORIGINAL value (with those units). We record that as a \"b\" (beginning) property and point to a render method that handles that. (performance optimization)\n            this._pt.b = startValue;\n            this._pt.r = _renderCSSPropWithBeginning;\n          }\n        } else if (!(p in style)) {\n          if (p in target) {\n            //maybe it's not a style - it could be a property added directly to an element in which case we'll try to animate that.\n            this.add(target, p, startValue || target[p], relative ? relative + endValue : endValue, index, targets);\n          } else if (p !== \"parseTransform\") {\n            _missingPlugin(p, endValue);\n\n            continue;\n          }\n        } else {\n          _tweenComplexCSSString.call(this, target, p, startValue, relative ? relative + endValue : endValue);\n        }\n\n        isTransformRelated || (p in style ? inlineProps.push(p, 0, style[p]) : inlineProps.push(p, 1, startValue || target[p]));\n        props.push(p);\n      }\n    }\n\n    hasPriority && _sortPropTweensByPriority(this);\n  },\n  render: function render(ratio, data) {\n    if (data.tween._time || !_reverting()) {\n      var pt = data._pt;\n\n      while (pt) {\n        pt.r(ratio, pt.d);\n        pt = pt._next;\n      }\n    } else {\n      data.styles.revert();\n    }\n  },\n  get: _get,\n  aliases: _propertyAliases,\n  getSetter: function getSetter(target, property, plugin) {\n    //returns a setter function that accepts target, property, value and applies it accordingly. Remember, properties like \"x\" aren't as simple as target.style.property = value because they've got to be applied to a proxy object and then merged into a transform string in a renderer.\n    var p = _propertyAliases[property];\n    p && p.indexOf(\",\") < 0 && (property = p);\n    return property in _transformProps && property !== _transformOriginProp && (target._gsap.x || _get(target, \"x\")) ? plugin && _recentSetterPlugin === plugin ? property === \"scale\" ? _setterScale : _setterTransform : (_recentSetterPlugin = plugin || {}) && (property === \"scale\" ? _setterScaleWithRender : _setterTransformWithRender) : target.style && !_isUndefined(target.style[property]) ? _setterCSSStyle : ~property.indexOf(\"-\") ? _setterCSSProp : _getSetter(target, property);\n  },\n  core: {\n    _removeProperty: _removeProperty,\n    _getMatrix: _getMatrix\n  }\n};\ngsap.utils.checkPrefix = _checkPropPrefix;\ngsap.core.getStyleSaver = _getStyleSaver;\n\n(function (positionAndScale, rotation, others, aliases) {\n  var all = _forEachName(positionAndScale + \",\" + rotation + \",\" + others, function (name) {\n    _transformProps[name] = 1;\n  });\n\n  _forEachName(rotation, function (name) {\n    _config.units[name] = \"deg\";\n    _rotationalProperties[name] = 1;\n  });\n\n  _propertyAliases[all[13]] = positionAndScale + \",\" + rotation;\n\n  _forEachName(aliases, function (name) {\n    var split = name.split(\":\");\n    _propertyAliases[split[1]] = all[split[0]];\n  });\n})(\"x,y,z,scale,scaleX,scaleY,xPercent,yPercent\", \"rotation,rotationX,rotationY,skewX,skewY\", \"transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective\", \"0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY\");\n\n_forEachName(\"x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective\", function (name) {\n  _config.units[name] = \"px\";\n});\n\ngsap.registerPlugin(CSSPlugin);\nexport { CSSPlugin as default, _getBBox, _createElement, _checkPropPrefix as checkPrefix };","import { gsap, Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ, TweenLite, TimelineLite, TimelineMax } from \"./gsap-core.js\";\nimport { CSSPlugin } from \"./CSSPlugin.js\";\nvar gsapWithCSS = gsap.registerPlugin(CSSPlugin) || gsap,\n    // to protect from tree shaking\nTweenMaxWithCSS = gsapWithCSS.core.Tween;\nexport { gsapWithCSS as gsap, gsapWithCSS as default, CSSPlugin, TweenMaxWithCSS as TweenMax, TweenLite, TimelineMax, TimelineLite, Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ };","/** The duration of the transition for entering and exiting a route. */\r\nexport const transitionDuration = 200;\r\n","import gsap from 'gsap';\r\nimport { useEffect } from 'react';\r\nimport { useLocation } from 'react-router-dom-v5-compat';\r\nimport { Transition as InnerTransition, SwitchTransition } from 'react-transition-group';\r\nimport { transitionDuration } from '../Constants';\r\n\r\nexport const Transition = ({ children }) => {\r\n    const location = useLocation(),\r\n        duration = transitionDuration / 1000,\r\n        className = 'transitioning';\r\n\r\n    useEffect(() => {\r\n        window.scrollTo(0, 0);\r\n    }, [location.pathname]);\r\n\r\n    return (\r\n        <SwitchTransition>\r\n            <InnerTransition\r\n                key={location.pathname}\r\n                timeout={600}\r\n                onEntering={(node: HTMLDivElement) => {\r\n                    node.classList.toggle(className);\r\n                    gsap.set(node, { autoAlpha: 0, y: 10 });\r\n                    gsap.timeline({ paused: true })\r\n                        .to(node, { autoAlpha: 1, y: 0, duration })\r\n                        .play()\r\n                        .then(() => onComplete(node));\r\n                }}\r\n                onExiting={(node: HTMLDivElement) => {\r\n                    node.classList.toggle(className);\r\n                    gsap.timeline({ paused: true })\r\n                        .to(node, { autoAlpha: 0, y: 10, duration })\r\n                        .play()\r\n                        .then(() => onComplete(node));\r\n                }}\r\n            >\r\n                {children}\r\n            </InnerTransition>\r\n        </SwitchTransition>\r\n    );\r\n\r\n    function onComplete(node: HTMLDivElement) {\r\n        gsap.set(node, { clearProps: 'transform' });\r\n        node.classList.toggle(className);\r\n    }\r\n};\r\n","import { HubChannel } from '@business/CommonSets/HubChannel';\r\nimport { isEmpty, refresh } from '@shared/Common';\r\nimport { APP_VERSION_STORAGE_KEY } from '@shared/Constants';\r\nimport { useAsyncEffect } from '@shared/Hooks';\r\nimport Hub from '@shared/Hubs/Hub';\r\nimport { getLocalData, saveLocalData } from '@shared/Storage';\r\nimport { useState } from 'react';\r\nimport { useBeforeUnload } from 'react-router-dom-v5-compat';\r\n\r\nexport function useAppUpdatePrompt() {\r\n    const [visible, setVisible] = useState<boolean>(false);\r\n\r\n    // Connect to the app version hub channel, which polls the app version from the server.\r\n    useAsyncEffect(connectToAppVersion, []);\r\n\r\n    // Clear the stored app version when exiting or reloading the page.\r\n    useBeforeUnload(clearStoredAppVersion);\r\n\r\n    return {\r\n        visible,\r\n        onClick,\r\n    };\r\n\r\n    async function connectToAppVersion() {\r\n        try {\r\n            await Hub.on<string>(HubChannel.AppVersion, checkAppVersionAndPromptIfNeeded);\r\n        } catch (e) {\r\n            console.error('Failed to connect to web socket.', e);\r\n        }\r\n    }\r\n\r\n    function checkAppVersionAndPromptIfNeeded(appVersion: string) {\r\n        const localStoredVersion = getLocalData(APP_VERSION_STORAGE_KEY);\r\n\r\n        // If there is no stored version, this is a fresh load, so save the app version\r\n        if (isEmpty(localStoredVersion)) {\r\n            saveLocalData(APP_VERSION_STORAGE_KEY, appVersion);\r\n            return;\r\n        }\r\n\r\n        // Tf there is a stored app version, and it differs from the server app version, show the prompt\r\n        if (appVersion !== localStoredVersion) setVisible(true);\r\n    }\r\n\r\n    function onClick() {\r\n        // Clear the stored app version and refresh the page\r\n        clearStoredAppVersion();\r\n        refresh();\r\n    }\r\n\r\n    function clearStoredAppVersion() {\r\n        saveLocalData(APP_VERSION_STORAGE_KEY, null);\r\n    }\r\n}\r\n","import { BrowserUpdatedIcon, Button, Paragraph } from '@webkit/index';\r\nimport { tv } from 'tailwind-variants';\r\nimport { useAppUpdatePrompt } from './hook';\r\n\r\nconst updatePromptStyle = tv({\r\n    base:\r\n        'grid grid-cols-1 gap-4 min-w-[300px] max-w-[440px] m-5 ' +\r\n        'bg-white border-solid border-0 border-t-4 border-brand-green-250 shadow-lg ' +\r\n        'transform transition-opacity duration-300 ' +\r\n        'fixed bottom-0 right-0 px-6 py-4 z-[20] ',\r\n    variants: {\r\n        visible: {\r\n            true: 'opacity-100 pointer-events-auto',\r\n            false: 'opacity-0 pointer-events-none',\r\n        },\r\n    },\r\n});\r\n\r\nexport function AppUpdatePrompt() {\r\n    const { visible, onClick } = useAppUpdatePrompt();\r\n\r\n    return (\r\n        <div id='app-update-prompt' className={updatePromptStyle({ visible })}>\r\n            <div className='inline-flex items-center gap-2'>\r\n                <BrowserUpdatedIcon fontSize='large' className='text-brand-green-300' />\r\n                <h5 className='text-lg text-black font-black m-0'>Site Update Available</h5>\r\n            </div>\r\n\r\n            <Paragraph bold>A new version of the web site is available.</Paragraph>\r\n\r\n            <div className='mx-auto'>\r\n                <Button isSecondary onClick={onClick}>\r\n                    Update Now\r\n                </Button>\r\n            </div>\r\n\r\n            <div className='mx-auto'>\r\n                <Paragraph size='sm'>(The page will be reloaded)</Paragraph>\r\n            </div>\r\n        </div>\r\n    );\r\n}\r\n","import { PrimaryButton, SecondaryButton } from '@legacy/Components/Form';\r\nimport { IButtonProps } from '@legacy/Components/FormGroups/Buttons';\r\nimport { Svg } from '@legacy/Components/Svg';\r\nimport { iconPaths } from '@shared/Constants';\r\nimport { FunctionComponent, ReactNode } from 'react';\r\nimport { useNavigate } from 'react-router-dom-v5-compat';\r\nimport './style.scss';\r\n\r\ninterface Props {\r\n    positive: ReactNode;\r\n    negative: ReactNode;\r\n    className?: string;\r\n}\r\n\r\nexport const StepButtons: FunctionComponent<Props> = ({ positive, negative, className }) => (\r\n    <div className={'step-buttons' + (className ? ' ' + className : '')}>\r\n        <div className='negative'>\r\n            <div>{negative}</div>\r\n        </div>\r\n        <div className='positive'>\r\n            <div>{positive}</div>\r\n        </div>\r\n    </div>\r\n);\r\n\r\nexport const PrimaryRouteButton: FunctionComponent<IButtonProps & { route?: string }> = props => {\r\n    const navigate = useNavigate();\r\n    return (\r\n        <PrimaryButton\r\n            {...props}\r\n            label={\r\n                <div className='button-icon-container'>\r\n                    <Svg path={iconPaths.chevronDown} alt='Next' className='button-chevron next' />\r\n\r\n                    {props.label}\r\n                </div>\r\n            }\r\n            className={`mini-button-cp ${props.className || ''} ${props.disabled ? 'disabled' : ''}`}\r\n            onClick={props.onClick || (() => props.route && navigate(props.route))}\r\n        />\r\n    );\r\n};\r\n\r\nexport const SecondaryBackButton: FunctionComponent<IButtonProps> = props => {\r\n    const navigate = useNavigate();\r\n    return (\r\n        <SecondaryButton\r\n            {...props}\r\n            label={\r\n                <div className='button-icon-container'>\r\n                    <Svg path={iconPaths.chevronDown} alt='Back' className='button-chevron back' />\r\n\r\n                    {props.label}\r\n                </div>\r\n            }\r\n            className={`mini-button-cp ${props.className || ''}`}\r\n            onClick={() => (props.onClick ? props.onClick() : navigate(-1))}\r\n        />\r\n    );\r\n};\r\n","import { useClassName } from '@shared/Hooks';\r\nimport { forwardRef, PropsWithChildren } from 'react';\r\nimport './style.scss';\r\n\r\ntype Props = {\r\n    withCover?: boolean;\r\n    fullWidth?: boolean;\r\n};\r\n\r\nexport const LayoutWrapper = forwardRef<HTMLDivElement | null, PropsWithChildren<Props>>(\r\n    ({ withCover, fullWidth, children }, ref) => {\r\n        const className = useClassName('layout-wrapper', [\r\n            withCover ? 'with-cover' : '',\r\n            fullWidth ? 'full-width' : '',\r\n        ]);\r\n\r\n        return (\r\n            <div ref={ref} className={className}>\r\n                <div className='step-cover' />\r\n\r\n                {children}\r\n            </div>\r\n        );\r\n    }\r\n);\r\n","import * as React from 'react';\r\nimport { PropsWithChildren, forwardRef } from 'react';\r\nimport Skeleton from 'react-loading-skeleton';\r\nimport './style.scss';\r\n\r\ntype Props = {\r\n    id?: string;\r\n    className?: string;\r\n};\r\n\r\nexport const StepTile = forwardRef<HTMLDivElement, PropsWithChildren<Props>>((props, ref) => {\r\n    return (\r\n        <div id={props.id} ref={ref} className={`step-tile ${props.className || ''}`}>\r\n            {props.children}\r\n        </div>\r\n    );\r\n});\r\n\r\nexport const StepTileRow = ({ children, className }: PropsWithChildren<{ className?: string }>) => (\r\n    <div className={'step-tile-row' + (className ? ' ' + className : '')}>{children}</div>\r\n);\r\n\r\nexport const StepTileRowSeparator = () => <div className='step-tile-row-separator' />;\r\n\r\nexport const StepTileText = ({ loading, children }: { loading?: boolean; children: any }) => (\r\n    <div className='step-tile-text'>\r\n        {children}\r\n\r\n        {loading && (\r\n            <div className='step-tile-text-loading'>\r\n                <Skeleton />\r\n            </div>\r\n        )}\r\n    </div>\r\n);\r\n","import * as React from 'react';\r\nimport { LayoutWrapper } from '../LayoutWrapper';\r\nimport { StepTile } from '../StepTile';\r\nimport { ViewWrapper } from '../ViewWrapper';\r\nimport './style.scss';\r\n\r\ntype Props = {\r\n    title: string;\r\n    id?: string;\r\n    className?: string;\r\n    fullWidth?: boolean;\r\n    isLoading?: boolean;\r\n};\r\n\r\nexport const Step = ({ title, id, className, fullWidth, isLoading, children }: React.PropsWithChildren<Props>) => (\r\n    <div className='step'>\r\n        <ViewWrapper title={title} id={id} isLoading={isLoading}>\r\n            <LayoutWrapper fullWidth={fullWidth}>\r\n                <StepTile className={className}>{children}</StepTile>\r\n            </LayoutWrapper>\r\n        </ViewWrapper>\r\n    </div>\r\n);\r\n","import { getRatingTypeColor } from '@app/ProductComparison/ColorScheme';\r\nimport { clsx } from 'clsx';\r\nimport { StepHeaderProps } from './models';\r\nimport './style.scss';\r\n\r\nexport function StepHeader(props: StepHeaderProps) {\r\n    const { title, titleElement, description, icon, ratingType } = props;\r\n    return (\r\n        <div\r\n            id='step-header-wrapper'\r\n            className={clsx('step-header-wrapper', ratingType ? getRatingTypeColor(ratingType) : 'bg-white')}\r\n        >\r\n            {icon ? (\r\n                <div className={'icon-wrapper'}>\r\n                    <div className='icon-container'>{icon}</div>\r\n                    <div className={'title-text-with-icon'}>{getTitleLockup()}</div>\r\n                </div>\r\n            ) : (\r\n                getTitleLockup()\r\n            )}\r\n        </div>\r\n    );\r\n\r\n    function getTitleLockup() {\r\n        return (\r\n            <>\r\n                {title && <h2 className='step-header-title' dangerouslySetInnerHTML={{ __html: title }} />}\r\n                {titleElement && <h2 className='step-header-title'>{titleElement}</h2>}\r\n                {description && <div className='step-header-description'>{description}</div>}\r\n            </>\r\n        );\r\n    }\r\n}\r\n","import { getProperties } from '@api/HOApi';\r\nimport { PrimaryRouteButton } from '@app/Components/Buttons';\r\nimport { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRow } from '@app/Components/StepTile';\r\nimport { StateContext } from '@app/State';\r\nimport { getPath, Path } from '@app/Views';\r\nimport { Svg } from '@legacy/Components/Svg';\r\nimport { InlineError } from '@legacy/FormFields';\r\nimport { debounce, toKebabCase } from '@shared/Common';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport { useDocumentClick, useFormReducer, useImmutableState, useNavigateWithParams, useToast } from '@shared/Hooks';\r\nimport { clearForm } from '@shared/Hooks/PersistentFormReducer';\r\nimport { PropertyData } from '@shared/Models';\r\nimport { Value } from '@webkit/index';\r\nimport { createRef, forwardRef, useContext, useEffect, useImperativeHandle } from 'react';\r\nimport './style.scss';\r\n\r\nexport interface State {\r\n    addresses: PropertyData[];\r\n    index: number;\r\n    loading: boolean;\r\n    visible: boolean;\r\n    focus: boolean;\r\n}\r\n\r\nconst MAX_RESULTS = 8;\r\nconst MINIMUM_REQUIRED_RESULTS = 3;\r\n\r\ntype FormType = {\r\n    searchText: Value<string>;\r\n};\r\n\r\nexport const AddressManagementComponent = forwardRef((_, ref) => {\r\n    const [componentState, componentUpdate] = useImmutableState<State>({\r\n        addresses: [],\r\n        index: 0,\r\n        loading: false,\r\n        visible: false,\r\n        focus: false,\r\n    });\r\n    const { form, set } = useFormReducer<FormType>({ searchText: new Value<string>('address', '') });\r\n    const inputRef = createRef<HTMLInputElement>();\r\n    const navigate = useNavigateWithParams();\r\n    const toast = useToast();\r\n    const { state, update } = useContext(StateContext);\r\n\r\n    useEffect(() => {\r\n        if (state.createAddress.success) {\r\n            toast.success('Address changes have been made successfully.', 4000);\r\n            clearForm();\r\n\r\n            update(state => {\r\n                state.createAddress.context = 'CreateAddress';\r\n                state.createAddress.addressKey = '';\r\n                state.createAddress.latitude = undefined;\r\n                state.createAddress.longitude = undefined;\r\n                state.createAddress.success = false;\r\n            });\r\n        }\r\n    });\r\n\r\n    useImperativeHandle(ref, () => ({\r\n        focus: () => inputRef.current?.focus(),\r\n    }));\r\n\r\n    const { className } = useDocumentClick(\r\n        () => {\r\n            componentUpdate(state => (state.visible = false));\r\n        },\r\n        {\r\n            exceptionClassNames: ['address-input'],\r\n            generateUniqueClassName: true,\r\n        }\r\n    );\r\n\r\n    const handleAddressFocus = () => {\r\n        componentUpdate(state => {\r\n            state.focus = true;\r\n            state.visible = state.addresses.length > 0;\r\n        });\r\n    };\r\n\r\n    const handleChangeAddress = async (partialAddress: string) => {\r\n        set('searchText', partialAddress);\r\n\r\n        if (partialAddress.length < MINIMUM_REQUIRED_RESULTS) {\r\n            componentUpdate(state => {\r\n                state.addresses = [];\r\n                state.visible = false;\r\n            });\r\n\r\n            return;\r\n        }\r\n\r\n        debounce(\r\n            'address-lookup',\r\n            async () => {\r\n                try {\r\n                    componentUpdate(state => (state.loading = true));\r\n                    const addresses = await getProperties(partialAddress, MAX_RESULTS);\r\n\r\n                    componentUpdate(state => {\r\n                        state.addresses = addresses.length > 0 ? addresses.slice(0, MAX_RESULTS) : [];\r\n                        state.visible = addresses.length > 0;\r\n                        state.index = 0;\r\n                        state.loading = false;\r\n                    });\r\n                } catch (e) {\r\n                    console.error(e);\r\n\r\n                    componentUpdate(state => {\r\n                        state.visible = false;\r\n                        state.addresses = [];\r\n                    });\r\n                } finally {\r\n                    componentUpdate(state => (state.loading = false));\r\n                }\r\n            },\r\n            250\r\n        );\r\n    };\r\n\r\n    const handleSelectAddress = async (property: PropertyData) => {\r\n        let url = getPath(Path.EditAddress, { address: encodeURIComponent(toKebabCase(property.FullAddress)) });\r\n        url += `?livingSpace=${property.LivingSpace || ''}`;\r\n\r\n        await update(state => {\r\n            state.createAddress.context = 'EditAddress';\r\n            state.createAddress.addressKey = property.AddressKey;\r\n            state.createAddress.latitude = property.Latitude || undefined;\r\n            state.createAddress.longitude = property.Longitude || undefined;\r\n        });\r\n\r\n        clearForm();\r\n        navigate(url);\r\n    };\r\n\r\n    const handleAddNewAddress = async () => {\r\n        let url = getPath(Path.CreateAddressNoQuote);\r\n\r\n        if (form.searchText.content) {\r\n            try {\r\n                url = getPath(Path.CreateAddressNoQuote, {\r\n                    address: encodeURIComponent(toKebabCase(form.searchText.content)),\r\n                });\r\n            } catch (error) {\r\n                console.error(error);\r\n                toast.error(\r\n                    'An unexpected error has occurred while parsing a new address. Please check your input and try again.'\r\n                );\r\n\r\n                return;\r\n            }\r\n        }\r\n\r\n        await update(state => {\r\n            state.createAddress.context = 'CreateAddressNoQuote';\r\n            state.createAddress.addressKey = '';\r\n            state.createAddress.latitude = undefined;\r\n            state.createAddress.longitude = undefined;\r\n        });\r\n\r\n        clearForm();\r\n        navigate(url);\r\n    };\r\n\r\n    return (\r\n        <Step title='Address Management' className='address-management-container'>\r\n            <StepHeader title='Address Management' description='To update an address, start typing it below.' />\r\n\r\n            <StepTileRow>\r\n                <div>\r\n                    <div className={`input-container ${className.current}`}>\r\n                        <input\r\n                            id='address-search'\r\n                            ref={inputRef}\r\n                            name='address-autocomplete'\r\n                            className='address-input'\r\n                            type='text'\r\n                            value={form.searchText.content}\r\n                            placeholder='Type your address'\r\n                            autoComplete={new Date().getTime().toString()}\r\n                            onChange={e => handleChangeAddress(e.target.value)}\r\n                            onFocus={handleAddressFocus}\r\n                            onBlur={() => componentUpdate(state => (state.focus = false))}\r\n                        />\r\n                        <div className={`loader ${componentState.loading ? 'visible' : ''}`} />\r\n                    </div>\r\n\r\n                    <InlineError error={form.searchText.error} />\r\n\r\n                    <div id='address-search-results' className={`addresses ${componentState.visible ? 'visible' : ''}`}>\r\n                        {componentState.addresses.map((address: PropertyData, index: number) => (\r\n                            <span\r\n                                key={address.AddressKey}\r\n                                id={`${address.AddressKey}_EditAddress`}\r\n                                title='Click to edit address details'\r\n                                onClick={() => handleSelectAddress(address)}\r\n                                onMouseEnter={() => componentUpdate(state => (state.index = index))}\r\n                                className={componentState.index === index ? 'selected' : ''}\r\n                            >\r\n                                <Svg\r\n                                    path='/images/edit.svg'\r\n                                    alt='Edit Address'\r\n                                    className='edit-address-button'\r\n                                    unstyled\r\n                                />\r\n                                {address.FullAddress}\r\n                            </span>\r\n                        ))}\r\n                    </div>\r\n                </div>\r\n\r\n                <div>\r\n                    <PrimaryRouteButton\r\n                        className='create-address-button'\r\n                        type='submit'\r\n                        label='New Address'\r\n                        id='create-address-button'\r\n                        onClick={handleAddNewAddress}\r\n                    />\r\n                </div>\r\n            </StepTileRow>\r\n        </Step>\r\n    );\r\n});\r\n\r\nexport const AddressManagement = {\r\n    path: Path.AddressManagement,\r\n    auth: AccessRole.Agent,\r\n    element: <AddressManagementComponent />,\r\n};\r\n","import Loader from '@legacy/Components/Loader';\r\nimport { Svg } from '@legacy/Components/Svg';\r\nimport { createEmptyModels } from '@shared/Common';\r\nimport { iconPaths } from '@shared/Constants';\r\nimport { ReactElement, useMemo } from 'react';\r\nimport DataTable, { ConditionalStyles, TableColumn, TableStyles } from 'react-data-table-component';\r\nimport { useAsyncValue } from 'react-router-dom-v5-compat';\r\nimport './style.scss';\r\n\r\ninterface ITableProps<TModel> {\r\n    columns: TableColumn<TModel>[];\r\n    data: TModel[];\r\n    noDataElement: ReactElement;\r\n    loading?: boolean;\r\n    hasMore?: boolean;\r\n    loadingMore?: boolean;\r\n    customStyles?: TableStyles;\r\n    conditionalRowStyles?: ConditionalStyles<TModel>[];\r\n    hideResultMessage?: boolean;\r\n    noTableHead?: boolean;\r\n}\r\n\r\nexport function Table<TModel>(props: ITableProps<TModel>) {\r\n    const initialData = props.data ? props.data : (useAsyncValue() as TModel[] | undefined | null);\r\n    const noData = !props.loading && initialData?.length === 0;\r\n\r\n    const emptyLoaderData = useMemo(() => createEmptyModels<TModel>(10), []);\r\n    const lightGray2 = '#f2f4f5';\r\n\r\n    let customStyles: TableStyles = {\r\n        headCells: {\r\n            style: {\r\n                backgroundColor: lightGray2,\r\n                fontSize: '13px',\r\n                fontWeight: 'bold',\r\n            },\r\n        },\r\n        rows: {\r\n            style: {\r\n                backgroundColor: lightGray2,\r\n            },\r\n        },\r\n    };\r\n\r\n    if (props.customStyles) {\r\n        customStyles = {\r\n            ...props.customStyles,\r\n            headCells: { ...customStyles.headCells },\r\n            rows: { ...customStyles.rows, ...props.customStyles.rows },\r\n        };\r\n    }\r\n\r\n    if (noData) {\r\n        return props.noDataElement;\r\n    }\r\n\r\n    return (\r\n        <>\r\n            <DataTable\r\n                columns={props.columns}\r\n                data={props.loading ? emptyLoaderData : props.data}\r\n                responsive={true}\r\n                striped={true}\r\n                customStyles={customStyles}\r\n                conditionalRowStyles={props.conditionalRowStyles ? props.conditionalRowStyles : undefined}\r\n                noTableHead={props.noTableHead}\r\n            />\r\n\r\n            {props.loadingMore && <Loader />}\r\n\r\n            {!props.loading && !props.loadingMore && !props.hideResultMessage && (\r\n                <ResultCountMessage hasMore={props.hasMore || false} />\r\n            )}\r\n        </>\r\n    );\r\n}\r\n\r\nfunction ResultCountMessage({ hasMore }: { hasMore: boolean }) {\r\n    return (\r\n        <div className='result-count-message'>\r\n            {hasMore && <Svg className='result-count-icon' path={iconPaths.arrowDown} alt='scroll down to load more' />}\r\n\r\n            {!hasMore && <Svg className='result-count-icon' path={iconPaths.checkMark} alt='no more to load' />}\r\n\r\n            {hasMore ? 'Scroll down to load more data' : 'All data loaded'}\r\n        </div>\r\n    );\r\n}\r\n","import { fetchAndLog } from '@api/Fetch';\r\nimport { IQueue } from '@app/Views/AdjusterQueueManagement/models';\r\n\r\nexport async function getQueues(): Promise<IQueue[]> {\r\n    return await fetchAndLog<IQueue[]>('/api/claims/queues', 'get adjuster queues', undefined, true);\r\n}\r\n\r\nexport async function saveQueue(queue: IQueue): Promise<IQueue> {\r\n    return await fetchAndLog<IQueue>(\r\n        '/api/claims/queue',\r\n        'save adjuster queue',\r\n        {\r\n            method: 'POST',\r\n            body: JSON.stringify(queue),\r\n        },\r\n        true\r\n    );\r\n}\r\n","export interface IQueue {\r\n    Id: number;\r\n    Name: string;\r\n    Label: string;\r\n    IsLiability: boolean;\r\n    IsProperty: boolean;\r\n    IsHomeowner: boolean;\r\n    IsCommercial: boolean;\r\n    IsCatCode: boolean;\r\n    StateCode: string | null;\r\n    ReporterTypes: string[];\r\n    Adjusters: string[];\r\n}\r\n\r\nexport enum AdjusterQueueType {\r\n    Liability = 'Liability',\r\n    Property = 'Property',\r\n}\r\n\r\nexport const ALL_STATES_KEY = 'allStates';\r\n","import { useContext, useMemo, useRef, useState } from 'react';\r\n\r\nimport * as MembershipApi from '@api/MembershipApi';\r\nimport { saveQueue } from '@app/Views/AdjusterQueueManagement/api';\r\nimport { AdjusterQueueType, ALL_STATES_KEY, IQueue } from '@app/Views/AdjusterQueueManagement/models';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { ContactType } from '@legacy/Claims/Models';\r\nimport * as Common from '@shared/Common';\r\nimport { ToastContext, useFormReducer } from '@shared/Hooks';\r\nimport { User } from '@shared/Models';\r\nimport { Rules, Value } from '@webkit/index';\r\n\r\ntype ReporterTypes = Record<string, Value<boolean>>;\r\n\r\ntype Form = {\r\n    name: Value<string>;\r\n    productLine: Value<string>;\r\n    queueType: Value<string>;\r\n    state: Value<string>;\r\n    catCode: Value<boolean>;\r\n    allReporterTypes: Value<boolean>;\r\n    reporterTypes: Value<ReporterTypes>;\r\n    adjuster: Value<string>;\r\n    adjusters: Value<string[]>;\r\n};\r\n\r\nexport function useAdjusterQueueForm(onClose: (reload?: boolean) => void, queues: IQueue[], queue?: IQueue) {\r\n    const [isLoading, setIsLoading] = useState<boolean>(false);\r\n    const debounce = useRef<any>(null);\r\n    const toast = useContext(ToastContext);\r\n\r\n    const reporterTypes = useMemo(\r\n        () =>\r\n            Object.keys(ContactType)\r\n                .filter((key: string) => isNaN(parseInt(key)))\r\n                .sort((first: string, second: string) => first.localeCompare(second)),\r\n        []\r\n    );\r\n\r\n    const reporterTypeGroups = useMemo(\r\n        () =>\r\n            reporterTypes.reduce((result: string[][], _: string, index: number, array: string[]) => {\r\n                const count = 4;\r\n\r\n                if (index % count === 0) {\r\n                    result.push(array.slice(index, index + count));\r\n                }\r\n                return result;\r\n            }, [] as string[][]),\r\n        []\r\n    );\r\n\r\n    const reporterTypeOptions = useMemo(\r\n        () =>\r\n            reporterTypes.reduce((all: any, typeName: string) => {\r\n                let selected = true;\r\n\r\n                if (queue) {\r\n                    selected = queue.ReporterTypes.some(item => item === typeName);\r\n                }\r\n\r\n                all[typeName] = new Value<boolean>(typeName, selected);\r\n\r\n                return all;\r\n            }, {}) as ReporterTypes,\r\n        []\r\n    );\r\n\r\n    const { form, setWithoutValidation, valid, validate } = useFormReducer<Form>({\r\n        name: new Value<string>('name', queue?.Label || '', [Rules.required(true, 'Please enter a name.')]),\r\n        productLine: new Value<string>(\r\n            'product line',\r\n            queue?.IsHomeowner ? 'Homeowner' : queue?.IsCommercial ? 'Commercial' : '',\r\n            [Rules.required(true, 'Please select a product line.')]\r\n        ),\r\n        queueType: new Value<string>(\r\n            'queue type',\r\n            queue?.IsLiability ? AdjusterQueueType.Liability : queue?.IsProperty ? AdjusterQueueType.Property : '',\r\n            [Rules.required(true, 'Please select a queue type.')]\r\n        ),\r\n        state: new Value<string>('state', queue?.StateCode || ALL_STATES_KEY),\r\n        catCode: new Value<boolean>('cat code', !!queue?.IsCatCode),\r\n        allReporterTypes: new Value<boolean>(\r\n            'all reporter types',\r\n            Object.keys(reporterTypeOptions).filter(item => reporterTypeOptions[item].content).length ===\r\n                reporterTypes.length\r\n        ),\r\n        reporterTypes: new Value<ReporterTypes>('reporter types', reporterTypeOptions, [\r\n            Rules.minSelected(1, 'Please select at least one reporter type.'),\r\n        ]),\r\n        adjuster: new Value<string>('adjuster', ''),\r\n        adjusters: new Value<string[]>('adjusters', queue?.Adjusters || [], [\r\n            Rules.minLength(1, 'Please select at least one adjuster.'),\r\n        ]),\r\n    });\r\n\r\n    const setAllReporterTypes = (value: boolean) => {\r\n        const newReporterTypes = { ...form.reporterTypes.content };\r\n\r\n        for (const key in newReporterTypes) {\r\n            newReporterTypes[key].content = value;\r\n        }\r\n\r\n        setWithoutValidation('reporterTypes', newReporterTypes);\r\n    };\r\n\r\n    const getUsers = (value: string): Promise<User[]> => {\r\n        return new Promise(resolve => {\r\n            if (debounce.current) {\r\n                clearTimeout(debounce.current);\r\n            }\r\n\r\n            debounce.current = setTimeout(async () => {\r\n                const results = await MembershipApi.getUsers(value, 10);\r\n                resolve(results);\r\n            }, 250);\r\n        });\r\n    };\r\n\r\n    const isDuplicateQueue = (first: IQueue, second: IQueue) => {\r\n        return (\r\n            first.IsLiability === second.IsLiability &&\r\n            first.IsProperty === second.IsProperty &&\r\n            first.IsHomeowner === second.IsHomeowner &&\r\n            first.IsCommercial === second.IsCommercial &&\r\n            first.IsCatCode === second.IsCatCode &&\r\n            (first.StateCode === second.StateCode ||\r\n                first.StateCode === ALL_STATES_KEY ||\r\n                second.StateCode === ALL_STATES_KEY) &&\r\n            (first.ReporterTypes.some((type: string) => second.ReporterTypes.includes(type)) ||\r\n                second.ReporterTypes.some((type: string) => first.ReporterTypes.includes(type))) &&\r\n            first.Id !== second.Id\r\n        );\r\n    };\r\n\r\n    const findDuplicateQueues = (newQueue: IQueue): string[] => {\r\n        return queues.filter((q: IQueue) => isDuplicateQueue(newQueue, q)).map((q: IQueue) => q.Label);\r\n    };\r\n\r\n    const getCurrentNewQueue = (): IQueue => {\r\n        const selectedReporterTypes = Object.keys(form.reporterTypes.content).filter(\r\n            item => form.reporterTypes.content[item].content\r\n        );\r\n        let stateCode: string | null = null;\r\n\r\n        if (\r\n            form.queueType.content === AdjusterQueueType.Liability ||\r\n            (form.queueType.content === AdjusterQueueType.Property && !form.catCode.content)\r\n        ) {\r\n            stateCode = form.state.content;\r\n        }\r\n\r\n        return {\r\n            Id: queue ? queue.Id : 0,\r\n            Name: form.name.content\r\n                .replace(/([a-z])([A-Z])/g, '$1-$2')\r\n                .replace(/\\s+/g, '-')\r\n                .toLowerCase(),\r\n            Label: form.name.content,\r\n            IsLiability: form.queueType.content === AdjusterQueueType.Liability,\r\n            IsProperty: form.queueType.content === AdjusterQueueType.Property,\r\n            IsHomeowner: form.productLine.content === ProductLine.Homeowner.value,\r\n            IsCommercial: form.productLine.content === ProductLine.Commercial.value,\r\n            IsCatCode: form.catCode.content,\r\n            StateCode: stateCode,\r\n            ReporterTypes: selectedReporterTypes,\r\n            Adjusters: form.adjusters.content,\r\n        };\r\n    };\r\n\r\n    const setReporterTypeRules = () => {\r\n        const reporterTypeKeys = Object.keys(form.reporterTypes.content);\r\n\r\n        // If no reporter types are selected, add a rule to each one to show them as invalid when the form is submitted. Otherwise clear the rules and\r\n        // re-validate to clear any styling for the invalid state. This logic is needed in order to show the invalid state styling on each checkbox,\r\n        // since it is driven by the 'valid' property of each Value object on each box, not the Value object holding all the selected reporter types.\r\n        if (!reporterTypeKeys.some((key: string) => form.reporterTypes.content[key].content)) {\r\n            reporterTypeKeys.forEach((key: string) => {\r\n                form.reporterTypes.content[key].setRules([Rules.equals(true)]);\r\n            });\r\n        } else {\r\n            reporterTypeKeys.forEach((key: string) => {\r\n                // We validate each checkbox here to clear any invalid styling\r\n                form.reporterTypes.content[key].setRules([]);\r\n                form.reporterTypes.content[key].validate();\r\n            });\r\n        }\r\n    };\r\n\r\n    const handleChangeQueueType = (queueType: string) => {\r\n        setWithoutValidation('queueType', queueType);\r\n\r\n        // The CAT code option is cleared when Liability is selected since it doesn't apply in that case, and will make it easier to check for duplicates.\r\n        if (queueType === AdjusterQueueType.Liability) {\r\n            setWithoutValidation('catCode', false);\r\n        }\r\n    };\r\n\r\n    const handleChangeAllReporterTypes = (isSelected: boolean) => {\r\n        const reporterTypes = Object.keys(form.reporterTypes.content);\r\n        const typesSelected = reporterTypes.filter(item => form.reporterTypes.content[item].content);\r\n\r\n        setWithoutValidation('allReporterTypes', isSelected);\r\n        setAllReporterTypes(typesSelected.length !== reporterTypes.length);\r\n        setReporterTypeRules();\r\n    };\r\n\r\n    const handleChangeReporterType = (value: string, isSelected: boolean) => {\r\n        const newReporterTypes = { ...form.reporterTypes.content };\r\n        newReporterTypes[value].content = isSelected;\r\n\r\n        const typesSelected = reporterTypes.filter(item => form.reporterTypes.content[item].content);\r\n        setWithoutValidation('reporterTypes', newReporterTypes);\r\n        setWithoutValidation('allReporterTypes', typesSelected.length === reporterTypes.length);\r\n        setReporterTypeRules();\r\n    };\r\n\r\n    const handleAddAdjuster = async () => {\r\n        // Don't add the adjuster if the value is empty, already in the list, or not in the format of a valid email address\r\n        if (\r\n            form.adjuster.content === '' ||\r\n            form.adjusters.content.indexOf(form.adjuster.content) > -1 ||\r\n            !Common.validateEmail(form.adjuster.content)\r\n        ) {\r\n            return;\r\n        }\r\n\r\n        const newAdjusters = [...form.adjusters.content, form.adjuster.content];\r\n        setWithoutValidation('adjusters', newAdjusters);\r\n        setWithoutValidation('adjuster', '');\r\n    };\r\n\r\n    const handleSubmit = async () => {\r\n        if (form.catCode.content) {\r\n            form.state.setRules([]);\r\n        } else {\r\n            form.state.setRules([Rules.required(true, 'Please select a state.')]);\r\n        }\r\n\r\n        validate();\r\n\r\n        Object.keys(form.reporterTypes.content).forEach((key: string) => {\r\n            form.reporterTypes.content[key].validate();\r\n        });\r\n\r\n        if (!valid()) {\r\n            return;\r\n        }\r\n\r\n        try {\r\n            setIsLoading(true);\r\n            const newQueue = getCurrentNewQueue();\r\n            await saveQueue(newQueue);\r\n\r\n            onClose(true);\r\n        } catch (error) {\r\n            Common.handleApiError(error, toast);\r\n        } finally {\r\n            setIsLoading(false);\r\n        }\r\n    };\r\n\r\n    const duplicateQueues = findDuplicateQueues(getCurrentNewQueue());\r\n\r\n    return {\r\n        form,\r\n        setWithoutValidation,\r\n        isLoading,\r\n        reporterTypeGroups,\r\n        duplicateQueues,\r\n        getUsers,\r\n        handleChangeQueueType,\r\n        handleChangeAllReporterTypes,\r\n        handleChangeReporterType,\r\n        handleAddAdjuster,\r\n        handleSubmit,\r\n    };\r\n}\r\n","import { FC } from 'react';\r\nimport { TableColumn } from 'react-data-table-component';\r\n\r\nimport { NoData } from '@app/Components/NoData';\r\nimport { Table } from '@app/Components/Table';\r\nimport { useAdjusterQueueForm } from '@app/Views/AdjusterQueueManagement/AdjusterQueueForm/hook';\r\nimport { ALL_STATES_KEY, AdjusterQueueType, IQueue } from '@app/Views/AdjusterQueueManagement/models';\r\nimport { ProductLine, StateCode } from '@business/CommonSets';\r\nimport { User } from '@shared/Models';\r\nimport {\r\n    AutoComplete,\r\n    Button,\r\n    Checkbox,\r\n    DeleteIcon,\r\n    FormLabel,\r\n    PriorityHighIcon,\r\n    RadioGroup,\r\n    Select,\r\n    SelectItem,\r\n    Text,\r\n    Tooltip,\r\n} from '@webkit/index';\r\nimport './style.scss';\r\n\r\ntype Props = {\r\n    queue?: IQueue;\r\n    queues: IQueue[];\r\n    onClose: (reload?: boolean) => void;\r\n};\r\n\r\nexport const AdjusterQueueForm: FC<Props> = (props: Props) => {\r\n    const {\r\n        form,\r\n        setWithoutValidation,\r\n        isLoading,\r\n        reporterTypeGroups,\r\n        duplicateQueues,\r\n        getUsers,\r\n        handleChangeQueueType,\r\n        handleChangeAllReporterTypes,\r\n        handleChangeReporterType,\r\n        handleAddAdjuster,\r\n        handleSubmit,\r\n    } = useAdjusterQueueForm(props.onClose, props.queues, props.queue);\r\n\r\n    const columns: TableColumn<string>[] = [\r\n        {\r\n            cell: row => row,\r\n        },\r\n        {\r\n            cell: row => (\r\n                <Button\r\n                    onClick={() => {\r\n                        const newAdjusters = [...form.adjusters.content];\r\n                        const index = newAdjusters.indexOf(row);\r\n\r\n                        newAdjusters.splice(index, 1);\r\n                        setWithoutValidation('adjusters', newAdjusters);\r\n                    }}\r\n                    aria-label='Remove adjuster'\r\n                    tooltipMessage='Remove adjuster'\r\n                    iconButton={true}\r\n                >\r\n                    <DeleteIcon />\r\n                </Button>\r\n            ),\r\n            width: '66px',\r\n        },\r\n    ];\r\n\r\n    return (\r\n        <div className='adjuster-queue-form-container'>\r\n            <div className='form-section'>\r\n                <div className='content-row'>\r\n                    <Text\r\n                        id='adjuster-queue-form-name'\r\n                        onChange={(value: string) => setWithoutValidation('name', value)}\r\n                        label='Name'\r\n                        value={form.name}\r\n                        autoComplete='swyfft-adjuster-queue-name'\r\n                    />\r\n                </div>\r\n            </div>\r\n\r\n            <div className='form-section'>\r\n                <div className='content-row radio-group'>\r\n                    <RadioGroup\r\n                        id='adjuster-queue-form-product-line'\r\n                        onChange={value => {\r\n                            setWithoutValidation('productLine', value);\r\n                            setWithoutValidation('state', '');\r\n                        }}\r\n                        value={form.productLine}\r\n                        label='Product Line'\r\n                        options={[\r\n                            { label: 'Homeowner', value: ProductLine.Homeowner.value },\r\n                            { label: 'Commercial', value: ProductLine.Commercial.value },\r\n                        ]}\r\n                        orientation='horizontal'\r\n                    />\r\n                </div>\r\n\r\n                <div className='content-row'>\r\n                    <div className='queue-type-container radio-group'>\r\n                        <RadioGroup\r\n                            id='adjuster-queue-form-queue-type'\r\n                            onChange={value => handleChangeQueueType(value)}\r\n                            value={form.queueType}\r\n                            label='Queue Type'\r\n                            options={[\r\n                                { label: 'Liability', value: AdjusterQueueType.Liability },\r\n                                { label: 'Property', value: AdjusterQueueType.Property },\r\n                            ]}\r\n                            orientation='horizontal'\r\n                        />\r\n\r\n                        {form.queueType.content === 'Property' && (\r\n                            <div className='cat-code'>\r\n                                <Checkbox\r\n                                    value={form.catCode}\r\n                                    onChange={(value: boolean) => {\r\n                                        setWithoutValidation('catCode', value);\r\n                                        setWithoutValidation('state', '');\r\n                                    }}\r\n                                >\r\n                                    CAT Code\r\n                                </Checkbox>\r\n                            </div>\r\n                        )}\r\n                    </div>\r\n                </div>\r\n\r\n                <div className='content-row'>\r\n                    <div className='state'>\r\n                        <Select\r\n                            id='adjuster-queue-form-state'\r\n                            isDisabled={form.catCode.content && form.queueType.content !== AdjusterQueueType.Liability}\r\n                            value={form.state}\r\n                            label='State'\r\n                            placeholder='Select a state'\r\n                            onSelectionChange={option => setWithoutValidation('state', option)}\r\n                        >\r\n                            {[\r\n                                <SelectItem key={ALL_STATES_KEY}>All States</SelectItem>,\r\n                                ...StateCode.all().map(state => (\r\n                                    <SelectItem key={state.code.toUpperCase()}>{state.code}</SelectItem>\r\n                                )),\r\n                            ]}\r\n                        </Select>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n\r\n            <div className='form-section' data-testid='reporter-types'>\r\n                <div className='content-row'>\r\n                    <div className='field-label reporter-types-label'>\r\n                        <FormLabel>Reporter Types</FormLabel>\r\n\r\n                        {!form.reporterTypes.valid && (\r\n                            <div className='tooltip-container'>\r\n                                <Tooltip message='Please select at least one reporter type.'>\r\n                                    <div className='invalid-icon' aria-label={form.reporterTypes.error || ''}>\r\n                                        <PriorityHighIcon />\r\n                                    </div>\r\n                                </Tooltip>\r\n                            </div>\r\n                        )}\r\n                    </div>\r\n\r\n                    <div data-testid='all-reporter-types-checkbox'>\r\n                        <Checkbox value={form.allReporterTypes} onChange={handleChangeAllReporterTypes}>\r\n                            All Reporter Types\r\n                        </Checkbox>\r\n                    </div>\r\n                </div>\r\n\r\n                <div className='content-row reporter-types-container'>\r\n                    {reporterTypeGroups.map((reporterTypes: string[], index: number) => {\r\n                        return (\r\n                            <div key={index} className='reporter-type-row'>\r\n                                {reporterTypes.map((item: string) => (\r\n                                    <div key={item} className='reporter-type'>\r\n                                        {/* We set noTooltip to true in order to not show an empty tooltip bubble if none of the boxes are checked,\r\n                                                    since all we want is the invalid styling. The tooltip next to the main label above will serve as the\r\n                                                    notice to users. */}\r\n                                        <Checkbox\r\n                                            value={form.reporterTypes.content[item]}\r\n                                            onChange={isSelected => handleChangeReporterType(item, isSelected)}\r\n                                            noTooltip={true}\r\n                                        >\r\n                                            {item}\r\n                                        </Checkbox>\r\n                                    </div>\r\n                                ))}\r\n                            </div>\r\n                        );\r\n                    })}\r\n                </div>\r\n            </div>\r\n\r\n            {duplicateQueues.length > 0 && !isLoading && (\r\n                <div className='form-section'>\r\n                    <div className='content-row warning-note'>\r\n                        <b>Warning:</b> The following queues match the currently selected configuration. When assigning\r\n                        claims that match this queue, adjusters from all matching queues will be considered.\r\n                        <ul>\r\n                            {duplicateQueues.map((duplicate: string) => (\r\n                                <li key={duplicate}>{duplicate}</li>\r\n                            ))}\r\n                        </ul>\r\n                    </div>\r\n                </div>\r\n            )}\r\n\r\n            <div className='form-section'>\r\n                <div className='content-row adjuster-search'>\r\n                    <div className='adjuster-search-input'>\r\n                        <AutoComplete<User>\r\n                            id='adjuster-queue-form-adjuster-input'\r\n                            name='adjuster'\r\n                            label='User'\r\n                            placeholder='Search by email address'\r\n                            value={form.adjuster}\r\n                            suggestions={getUsers}\r\n                            getItemId={item => item.EmailAddress}\r\n                            getItemText={item => item.EmailAddress}\r\n                            autoComplete={new Date().getTime().toString()}\r\n                            onTextChange={value => setWithoutValidation('adjuster', value)}\r\n                            onSelect={value => setWithoutValidation('adjuster', value.EmailAddress)}\r\n                        />\r\n                    </div>\r\n\r\n                    <div className='add-adjuster-button'>\r\n                        <Button id='adjuster-queue-form-add-button' onClick={handleAddAdjuster}>\r\n                            Add Adjuster\r\n                        </Button>\r\n                    </div>\r\n                </div>\r\n\r\n                <div className='field-label'>\r\n                    <FormLabel>Adjusters</FormLabel>\r\n\r\n                    {!form.adjusters.valid && (\r\n                        <div className='tooltip-container'>\r\n                            <Tooltip message='Please select at least one adjuster.'>\r\n                                <div className='invalid-icon' aria-label={form.adjusters.error || ''}>\r\n                                    <PriorityHighIcon />\r\n                                </div>\r\n                            </Tooltip>\r\n                        </div>\r\n                    )}\r\n                </div>\r\n\r\n                <div className='content-row adjusters-list'>\r\n                    <Table\r\n                        columns={columns}\r\n                        data={form.adjusters.content}\r\n                        noDataElement={<NoData message='No adjusters.' />}\r\n                        loading={false}\r\n                        hasMore={false}\r\n                        loadingMore={false}\r\n                        hideResultMessage={true}\r\n                        noTableHead={true}\r\n                    />\r\n                </div>\r\n            </div>\r\n\r\n            <div className='action-row'>\r\n                <div>\r\n                    <Button id='adjuster-queue-form-cancel' isSecondary={true} onClick={props.onClose}>\r\n                        Cancel\r\n                    </Button>\r\n                </div>\r\n                <div>\r\n                    <Button id='adjuster-queue-form-save' onClick={handleSubmit} isLoading={isLoading}>\r\n                        Save\r\n                    </Button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    );\r\n};\r\n","import { NoData } from '@app/Components/NoData';\r\nimport { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRow } from '@app/Components/StepTile';\r\nimport { Table } from '@app/Components/Table';\r\nimport { Path } from '@app/Views';\r\nimport { getQueues } from '@app/Views/AdjusterQueueManagement/api';\r\nimport { IQueue } from '@app/Views/AdjusterQueueManagement/models';\r\nimport { handleApiError } from '@shared/Common';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport { ToastContext, useAsyncEffect, useFormReducer } from '@shared/Hooks';\r\nimport { Button, EditIcon, Modal, Text, Value } from '@webkit/index';\r\nimport { useContext, useMemo, useState } from 'react';\r\nimport Skeleton from 'react-loading-skeleton';\r\nimport { AdjusterQueueForm } from './AdjusterQueueForm';\r\nimport './style.scss';\r\n\r\ntype Form = {\r\n    searchText: Value<string>;\r\n};\r\n\r\nconst SKELETON_HEIGHT = '25px';\r\n\r\nconst customStyles = {\r\n    table: {\r\n        style: {\r\n            border: '1px solid #d9d9e9',\r\n        },\r\n    },\r\n    headRow: {\r\n        style: {\r\n            fontWeight: 'bold',\r\n        },\r\n    },\r\n};\r\n\r\nconst noDataElement = <NoData message='No adjuster queues were found.' />;\r\n\r\nexport function AdjusterQueueManagementComponent() {\r\n    const [isLoading, setIsLoading] = useState<boolean>(true),\r\n        [queues, setQueues] = useState<IQueue[]>([]),\r\n        [filteredQueues, setFilteredQueues] = useState<IQueue[]>([]),\r\n        [queueToEdit, setQueueToEdit] = useState<IQueue>(),\r\n        [isQueueFormVisible, setIsQueueFormVisible] = useState<boolean>(false),\r\n        [reloadToggle, setReloadToggle] = useState<boolean>(false),\r\n        { form, set } = useFormReducer<Form>({ searchText: new Value<string>('search text', '') }),\r\n        toast = useContext(ToastContext),\r\n        columns = useMemo(buildColumns, []);\r\n\r\n    useAsyncEffect(async () => {\r\n        if (isLoading) {\r\n            await getData();\r\n        }\r\n    }, [reloadToggle]);\r\n\r\n    return (\r\n        <Step title='Adjuster Queue Management' className='adjuster-queue-management-container'>\r\n            <StepHeader title='Adjuster Queue Management' description='' />\r\n\r\n            <StepTileRow>\r\n                <div className='control-panel'>\r\n                    <div className='search-text-input'>\r\n                        <Text\r\n                            id='adjuster-queue-search-text'\r\n                            value={form.searchText}\r\n                            onChange={handleChangeSearchText}\r\n                            aria-label='Search text'\r\n                            placeholder='Search by queue name or adjuster email'\r\n                        />\r\n                    </div>\r\n\r\n                    <div className='add-queue-button'>\r\n                        <Button onClick={handleAddQueue}>Add Queue</Button>\r\n                    </div>\r\n                </div>\r\n            </StepTileRow>\r\n\r\n            <StepTileRow>\r\n                <div>\r\n                    <Table\r\n                        columns={columns}\r\n                        data={filteredQueues}\r\n                        noDataElement={noDataElement}\r\n                        loading={isLoading}\r\n                        hasMore={false}\r\n                        loadingMore={false}\r\n                        customStyles={customStyles}\r\n                    />\r\n                </div>\r\n            </StepTileRow>\r\n\r\n            {/* The onOpenChange handler is empty because we want to control the visibility via the cancel and submit buttons on the form component. Plus\r\n                the Aria ModalOverlay always seems to fire that event and pass False for the isOpen argument when the Escape key is pressed, even if keyboard\r\n                dismissal is disabled. */}\r\n            <Modal\r\n                id='adjuster-queue-modal'\r\n                isOpen={isQueueFormVisible}\r\n                title={queueToEdit ? queueToEdit.Label : 'Add Queue'}\r\n                onOpenChange={() => {}}\r\n                isDismissable={false}\r\n                isKeyboardDismissable={false}\r\n                size='lg'\r\n                showCloseButton={false}\r\n            >\r\n                <div className='adjuster-queue-modal'>\r\n                    <AdjusterQueueForm queue={queueToEdit} queues={queues} onClose={handleCloseQueueForm} />\r\n                </div>\r\n            </Modal>\r\n        </Step>\r\n    );\r\n\r\n    async function getData() {\r\n        try {\r\n            const data = await getQueues();\r\n            setQueues(data);\r\n            setFilteredQueues(data);\r\n        } catch (error) {\r\n            handleApiError(error, toast);\r\n        } finally {\r\n            setIsLoading(false);\r\n        }\r\n    }\r\n\r\n    function handleChangeSearchText(value: string) {\r\n        const newFilteredQueues = queues.filter(\r\n            (queue: IQueue) =>\r\n                !value ||\r\n                queue.Label.toLowerCase().indexOf(value.toLowerCase()) > -1 ||\r\n                queue.Adjusters.some((adjuster: string) => adjuster.toLowerCase().indexOf(value) > -1)\r\n        );\r\n\r\n        set('searchText', value);\r\n        setFilteredQueues(newFilteredQueues);\r\n    }\r\n\r\n    function handleAddQueue() {\r\n        setQueueToEdit(undefined);\r\n        setIsQueueFormVisible(true);\r\n    }\r\n\r\n    function handleEditQueue(id: number) {\r\n        const selectedQueue = filteredQueues.find((item: IQueue) => item.Id === id);\r\n\r\n        setQueueToEdit(selectedQueue);\r\n        setIsQueueFormVisible(true);\r\n    }\r\n\r\n    function handleCloseQueueForm(reload?: boolean) {\r\n        setIsQueueFormVisible(false);\r\n\r\n        if (reload) {\r\n            setIsLoading(true);\r\n            setReloadToggle(!reloadToggle);\r\n        }\r\n    }\r\n\r\n    function buildColumns() {\r\n        return [\r\n            {\r\n                name: 'Name',\r\n                cell: row =>\r\n                    row.Name ? (\r\n                        row.Label\r\n                    ) : (\r\n                        <Skeleton height={SKELETON_HEIGHT} containerClassName='skeleton-container' />\r\n                    ),\r\n                width: '300px',\r\n            },\r\n            {\r\n                name: 'Adjusters',\r\n                cell: row =>\r\n                    row.Adjusters ? (\r\n                        row.Adjusters\r\n                    ) : (\r\n                        <Skeleton height={SKELETON_HEIGHT} containerClassName='skeleton-container' />\r\n                    ),\r\n            },\r\n            {\r\n                name: '',\r\n                cell: row =>\r\n                    row.Id ? (\r\n                        <Button\r\n                            onClick={() => handleEditQueue(row.Id)}\r\n                            aria-label='Edit queue'\r\n                            tooltipMessage='Edit queue'\r\n                            iconButton={true}\r\n                        >\r\n                            <EditIcon />\r\n                        </Button>\r\n                    ) : (\r\n                        <Skeleton height={SKELETON_HEIGHT} width='24px' containerClassName='skeleton-container' />\r\n                    ),\r\n                width: '66px',\r\n            },\r\n        ];\r\n    }\r\n}\r\n\r\nexport const AdjusterQueueManagement = {\r\n    path: Path.AdjusterQueueManagement,\r\n    auth: AccessRole.Admin,\r\n    element: <AdjusterQueueManagementComponent />,\r\n};\r\n","import { activateProducerLocation } from '@api/AgenciesApi';\r\nimport { PrimaryRouteButton } from '@app/Components/Buttons';\r\nimport { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRow } from '@app/Components/StepTile';\r\nimport { TextFormGroup } from '@legacy/Components/FormGroups/Text';\r\nimport { ToastContext, useFormReducer } from '@shared/Hooks';\r\nimport { Rules, Value } from '@webkit/index';\r\nimport { useContext, useState } from 'react';\r\nimport './style.scss';\r\n\r\ntype FormType = {\r\n    locationId: Value<string>;\r\n};\r\n\r\nexport function ActivateLocationComponent() {\r\n    const toast = useContext(ToastContext);\r\n    const [loading, setLoading] = useState<boolean>(false);\r\n    const { form, set } = useFormReducer<FormType>({\r\n        locationId: new Value<string>('Location Id', '', [Rules.required(), Rules.integer()]),\r\n    });\r\n\r\n    const handleActivateLocation = async () => {\r\n        try {\r\n            setLoading(true);\r\n            await activateProducerLocation(form.locationId.content);\r\n            await toast.success('Location activated successfully.');\r\n        } catch (error) {\r\n            const e = await error.json();\r\n            const message = e.ErrorMessage;\r\n            console.error(message);\r\n            await toast.error(message);\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    };\r\n\r\n    return (\r\n        <Step title='Activate Location' className='activate-location-container'>\r\n            <StepHeader title='Activate Location' description='To activate a location, enter the location id below.' />\r\n            <StepTileRow>\r\n                <TextFormGroup\r\n                    className='activate-location'\r\n                    id='locationId'\r\n                    placeholder='Location Id'\r\n                    value={form.locationId}\r\n                    onTextChange={locationId => set('locationId', locationId)}\r\n                />\r\n                <PrimaryRouteButton\r\n                    className='activate-location-button'\r\n                    type='submit'\r\n                    label='Activate Location'\r\n                    id='activate-location-button'\r\n                    onClick={handleActivateLocation}\r\n                    loading={loading}\r\n                />\r\n            </StepTileRow>\r\n        </Step>\r\n    );\r\n}\r\n","import { ProducerSearchOutput } from '@app/Views/AgencyDashboard/models';\r\nimport { createContext } from 'react';\r\n\r\ninterface AgencyDashboardContext {\r\n    searchOutput: ProducerSearchOutput;\r\n}\r\n\r\nexport const AgencyDashboardContext = createContext({} as AgencyDashboardContext);\r\n","import './style.scss';\r\nimport * as React from 'react';\r\nimport { PropsWithChildren } from 'react';\r\n\r\nexport function InlineHeader({ children }: PropsWithChildren) {\r\n    return <div className='inline-header'>{children}</div>;\r\n}\r\n","import './style.scss';\r\nimport * as React from 'react';\r\n\r\nexport function BoxedList({ children }: { children: React.ReactNode }) {\r\n    return <ul className='boxed-list'>{children}</ul>;\r\n}\r\n","import { ProducerContactDtoV2 } from '@app/Views/AgencyDashboard/models';\r\nimport { toPhoneNumber } from '@shared/Common';\r\nimport { InlineHeader } from '../inlineHeader';\r\n\r\nexport function ProducerContact({ contact, index }: { contact: ProducerContactDtoV2; index: number }) {\r\n    return (\r\n        <li id={`producer-contact-${contact.ProducerContactGuid}`} className='producer-contact'>\r\n            <InlineHeader>\r\n                <a\r\n                    id={`producer-contact-name-${contact.ProducerContactGuid}`}\r\n                    href={contact.EditUrl}\r\n                    target='_blank'\r\n                    rel='noopener noreferrer'\r\n                    className='producer-contact-name'\r\n                >\r\n                    {contact.Name}\r\n                </a>\r\n\r\n                <div>{contact.Email}</div>\r\n\r\n                <div>{toPhoneNumber(contact.Phone)}</div>\r\n            </InlineHeader>\r\n        </li>\r\n    );\r\n}\r\n","import { ProducerLocationDtoV2 } from '@app/Views/AgencyDashboard/models';\r\nimport { toPhoneNumber } from '@shared/Common';\r\nimport { BoxedList } from '../boxedList';\r\nimport { InlineHeader } from '../inlineHeader';\r\nimport { ProducerContact } from '../producerContact';\r\nimport './style.scss';\r\n\r\nexport function ProducerLocation({ location, index }: { location: ProducerLocationDtoV2; index: number }) {\r\n    return (\r\n        <li id={`producer-location-${location.ProducerLocationGuid}`} className='producer-location'>\r\n            <InlineHeader>\r\n                <a\r\n                    id={`producer-location-name-${location.ProducerLocationGuid}`}\r\n                    className='producer-location-name'\r\n                    href={location.EditUrl}\r\n                    target='_blank'\r\n                    rel='noopener noreferrer'\r\n                >\r\n                    {location.Name}\r\n                </a>\r\n\r\n                <div>{location.Email}</div>\r\n\r\n                <div>{toPhoneNumber(location.Phone)}</div>\r\n            </InlineHeader>\r\n\r\n            <BoxedList>\r\n                {location.Contacts.length === 0 && <>This location has no contacts.</>}\r\n\r\n                {location.Contacts.length > 0 &&\r\n                    location.Contacts.map((contact, index) => (\r\n                        <ProducerContact key={contact.ProducerContactGuid} contact={contact} index={index} />\r\n                    ))}\r\n            </BoxedList>\r\n        </li>\r\n    );\r\n}\r\n","import { InlineHeader } from '@app/Views/AgencyDashboard/inlineHeader';\r\nimport { ProducerDtoV2 } from '@app/Views/AgencyDashboard/models';\r\nimport { BoxedList } from '../boxedList';\r\nimport { ProducerLocation } from '../producerLocation';\r\nimport './style.scss';\r\n\r\nexport function Producer({ producer }: { producer: ProducerDtoV2; index: number }) {\r\n    return (\r\n        <li id={`producer-${producer.ProducerGuid}`} className='producer'>\r\n            <InlineHeader>\r\n                <h1 id={`producer-name-${producer.ProducerGuid}`} className='producer-name'>\r\n                    {producer.ProducerName}\r\n                </h1>\r\n\r\n                <div id={`producer-location-count-${producer.ProducerGuid}`}>\r\n                    {producer.Locations.length} location(s)\r\n                </div>\r\n\r\n                <div id={`producer-contact-count-${producer.ProducerGuid}`}>\r\n                    {producer.Locations.reduce((acc, location) => acc + location.Contacts.length, 0)} contact(s)\r\n                </div>\r\n            </InlineHeader>\r\n\r\n            <BoxedList>\r\n                {producer.Locations.length === 0 && <>This producer has no locations.</>}\r\n\r\n                {producer.Locations.length > 0 &&\r\n                    producer.Locations.map((location, index) => (\r\n                        <ProducerLocation key={location.ProducerLocationGuid} location={location} index={index} />\r\n                    ))}\r\n            </BoxedList>\r\n        </li>\r\n    );\r\n}\r\n","import { fetchAndLogWithResponse } from '@api/Fetch';\r\n\r\nexport async function searchProducers(search: string, request: RequestInit) {\r\n    const response = await fetchAndLogWithResponse(\r\n        `/api/agency-management/producersv2?search=${encodeURIComponent(search.trim())}&start=0&count=100`,\r\n        'search agencies',\r\n        request\r\n    );\r\n    return await response.json();\r\n}\r\n","import { ProducerDtoV2, ProducerSearchOutput } from '@app/Views/AgencyDashboard/models';\r\nimport { useTimeout } from '@shared/Hooks/Timeout';\r\nimport dayjs from 'dayjs';\r\nimport { useEffect, useRef, useState } from 'react';\r\nimport { searchProducers } from './api';\r\n\r\nconst searchDebounceMs = 500;\r\n\r\nexport function useProducerSearch(searchTerm: string): ProducerSearchOutput {\r\n    const [producers, setProducers] = useState<ProducerDtoV2[]>([]),\r\n        [loading, setLoading] = useState(false),\r\n        [responseTime, setResponseTime] = useState(0);\r\n\r\n    const abortController = useRef(new AbortController());\r\n    useEffect(() => {\r\n        return () => {\r\n            abortController.current.abort();\r\n            abortController.current = new AbortController();\r\n        };\r\n    }, [searchTerm]);\r\n\r\n    const lastSearch = useRef(searchTerm);\r\n    useTimeout(\r\n        () => {\r\n            if (searchTerm === lastSearch.current) {\r\n                return;\r\n            }\r\n\r\n            lastSearch.current = searchTerm;\r\n            (async () => {\r\n                try {\r\n                    window.scrollTo(0, 0);\r\n                    setLoading(true);\r\n                    setResponseTime(0);\r\n                    const start = dayjs();\r\n                    setProducers(\r\n                        searchTerm === ''\r\n                            ? []\r\n                            : await searchProducers(searchTerm, { signal: abortController.current.signal })\r\n                    );\r\n                    const end = dayjs();\r\n                    setResponseTime(end.diff(start, 'seconds', true));\r\n                } finally {\r\n                    setLoading(false);\r\n                }\r\n            })();\r\n        },\r\n        searchDebounceMs,\r\n        [searchTerm]\r\n    );\r\n\r\n    return { producers, loading, responseTime, lastSearch };\r\n}\r\n","import { AgencyDashboardContext } from '@app/Views/AgencyDashboard/context';\r\nimport Loader from '@legacy/Components/Loader';\r\nimport { useContext, useEffect, useRef } from 'react';\r\nimport './style.scss';\r\n\r\nexport function SearchInfo() {\r\n    const { loading, responseTime, producers, lastSearch } = useContext(AgencyDashboardContext).searchOutput;\r\n\r\n    const responseTimeRef = useRef(responseTime);\r\n    useEffect(() => {\r\n        if (responseTimeRef.current === responseTime) {\r\n            return;\r\n        }\r\n\r\n        responseTimeRef.current = responseTime;\r\n    }, [responseTime]);\r\n\r\n    return (\r\n        <>\r\n            {loading && (\r\n                <div id='search-loader' className='search-loader search-info'>\r\n                    <Loader />\r\n                    <span>Searching...</span>\r\n                </div>\r\n            )}\r\n\r\n            {!loading && responseTime > 0 && (\r\n                <div id='search-info' className='search-info'>\r\n                    Found{' '}\r\n                    <strong>\r\n                        {producers.length} {producers.length === 1 ? 'producer' : 'producers'}\r\n                    </strong>{' '}\r\n                    with match for <strong>\"{lastSearch.current}\"</strong> in{' '}\r\n                    <strong>\r\n                        {responseTime} second{responseTime === 1 ? '' : 's'}\r\n                    </strong>\r\n                </div>\r\n            )}\r\n\r\n            {!loading && responseTime === 0 && (\r\n                <div id='search-info' className='search-info'>\r\n                    Enter a search term: <strong>producer name, location name, agent name, or email address</strong>.\r\n                </div>\r\n            )}\r\n        </>\r\n    );\r\n}\r\n","import { SearchInfo } from '@app/Views/AgencyDashboard/searchInfo';\r\nimport { Text } from '@legacy/Components/Form';\r\nimport { Value } from '@webkit/index';\r\nimport './style.scss';\r\n\r\nexport function SearchBar({ search, setSearch }: { search: Value<string>; setSearch: (search: string) => void }) {\r\n    return (\r\n        <div id='producer-search-bar' className='search-bar'>\r\n            <div className='search-input-box'>\r\n                <Text\r\n                    id='producer-search-input'\r\n                    placeholder='Search for agencies'\r\n                    value={search}\r\n                    onTextChange={(text: string) => setSearch(text)}\r\n                />\r\n            </div>\r\n\r\n            <SearchInfo />\r\n        </div>\r\n    );\r\n}\r\n","import { Path } from '@app/Views';\r\nimport { ActivateLocationComponent } from '@app/Views/AgencyDashboard/ActivateLocation';\r\nimport { AgencyDashboardContext } from '@app/Views/AgencyDashboard/context';\r\nimport { Producer } from '@app/Views/AgencyDashboard/producer';\r\nimport { useProducerSearch } from '@app/Views/AgencyDashboard/producerSearch';\r\nimport { SearchBar } from '@app/Views/AgencyDashboard/searchBar';\r\nimport { SwyfftRouteObject } from '@app/Views/routes';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport { useFormReducer } from '@shared/Hooks';\r\nimport { Value } from '@webkit/index';\r\nimport { Route, Routes } from 'react-router-dom-v5-compat';\r\nimport './style.scss';\r\n\r\nexport const AgencyDashboard: SwyfftRouteObject = {\r\n    path: Path.AgencyDashboard,\r\n    auth: AccessRole.Admin,\r\n    element: <AgencyDashboardComponent />,\r\n    hideFooter: true,\r\n};\r\n\r\nfunction AgencyDashboardComponent() {\r\n    const { form, set } = useFormReducer({\r\n        search: new Value<string>('search for agencies', ''),\r\n    });\r\n\r\n    const searchOutput = useProducerSearch(form.search.content),\r\n        { producers } = searchOutput;\r\n\r\n    return (\r\n        <>\r\n            <AgencyDashboardContext.Provider value={{ searchOutput }}>\r\n                <div className='agency-content'>\r\n                    <Routes>\r\n                        <Route\r\n                            path='/'\r\n                            element={\r\n                                <>\r\n                                    <SearchBar search={form.search} setSearch={(text: string) => set('search', text)} />\r\n\r\n                                    <ul id='producer-list' className='producer-list'>\r\n                                        {producers.map((producer, index) => (\r\n                                            <Producer key={producer.ProducerGuid} producer={producer} index={index} />\r\n                                        ))}\r\n                                    </ul>\r\n                                </>\r\n                            }\r\n                        />\r\n                        <Route path='/activate-location' element={<ActivateLocationComponent />} />\r\n                    </Routes>\r\n                </div>\r\n            </AgencyDashboardContext.Provider>\r\n        </>\r\n    );\r\n}\r\n","import { useBindingRequirementsContext } from '@api/BindingRequirementsApi/context';\r\nimport { BindingRequirementsRequestModel } from '@api/BindingRequirementsApi/models';\r\nimport { StateContext } from '@app/State';\r\nimport { Severity } from '@app/State/Models';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { Mutable } from '@shared/Models';\r\nimport { useContext } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { UrlParams } from '..';\r\n\r\nexport function usePolicyBindingRequirements() {\r\n    const params = useParams<UrlParams>(),\r\n        productLine = ProductLine.parse(params.product),\r\n        policyNumber = params.policyNumber as string,\r\n        request: BindingRequirementsRequestModel = { ProductLine: productLine.key, PolicyNumber: policyNumber };\r\n\r\n    const { update } = useContext(StateContext),\r\n        requirementsContext = useBindingRequirementsContext(request, onError);\r\n\r\n    return requirementsContext;\r\n\r\n    function onError(exception: Error) {\r\n        update(state => {\r\n            state.error = {\r\n                exception: exception as Mutable<Error>,\r\n                severity: Severity.error,\r\n            };\r\n        });\r\n    }\r\n}\r\n","import { ElementSkeleton } from '@app/Components/LoadingSkeleton';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRowSeparator } from '@app/Components/StepTile';\r\nimport { BindingRequirementsFileManagerSkeleton } from '@business/Components/BindingRequirements/FileManager/skeleton';\r\nimport { BindingRequirementsPolicyInfoSkeleton } from '@business/Components/BindingRequirements/PolicyInfo/skeleton';\r\n\r\ninterface Props {\r\n    title: string;\r\n}\r\n\r\nexport function ManageBindingRequirementsLoadingSkeleton({ title }: Props) {\r\n    return (\r\n        <>\r\n            <StepHeader\r\n                title={title}\r\n                description={\r\n                    <div className='max-w-[110px]'>\r\n                        <ElementSkeleton height={16} />\r\n                    </div>\r\n                }\r\n            />\r\n\r\n            <div className='px-[25px]'>\r\n                <BindingRequirementsPolicyInfoSkeleton />\r\n            </div>\r\n\r\n            <StepTileRowSeparator />\r\n\r\n            <div className='px-[25px]'>\r\n                <BindingRequirementsFileManagerSkeleton />\r\n            </div>\r\n        </>\r\n    );\r\n}\r\n","import { BindingRequirementsContext } from '@api/BindingRequirementsApi/context';\r\nimport { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRowSeparator } from '@app/Components/StepTile';\r\nimport { BindingRequirementsDueDate } from '@business/Components/BindingRequirements/DueDate';\r\nimport { BindingRequirementsFileManager } from '@business/Components/BindingRequirements/FileManager';\r\nimport { BindingRequirementsPolicyInfo } from '@business/Components/BindingRequirements/PolicyInfo';\r\nimport { usePolicyBindingRequirements } from './hook';\r\nimport { ManageBindingRequirementsLoadingSkeleton } from './skeleton';\r\n\r\nconst title = 'Binding Requirements';\r\n\r\nexport function PolicyBindingRequirementsComponent() {\r\n    const requirementsContext = usePolicyBindingRequirements(),\r\n        { loading } = requirementsContext;\r\n\r\n    return (\r\n        <Step title={title} className='relative min-h-[50vh]'>\r\n            {loading ? (\r\n                <ManageBindingRequirementsLoadingSkeleton title={title} />\r\n            ) : (\r\n                <BindingRequirementsContext.Provider value={requirementsContext}>\r\n                    <StepHeader title={title} description={<BindingRequirementsDueDate />} />\r\n\r\n                    <div className='px-[25px]'>\r\n                        <BindingRequirementsPolicyInfo />\r\n                    </div>\r\n\r\n                    <StepTileRowSeparator />\r\n\r\n                    <div className='px-[25px]'>\r\n                        <BindingRequirementsFileManager />\r\n                    </div>\r\n                </BindingRequirementsContext.Provider>\r\n            )}\r\n        </Step>\r\n    );\r\n}\r\n","import { AccessRole } from '@shared/Constants';\r\nimport { Path } from '..';\r\nimport { SwyfftRouteObject } from '../routes';\r\nimport { PolicyBindingRequirementsComponent } from './component';\r\n\r\nexport const BindingRequirements: SwyfftRouteObject = {\r\n    path: Path.BindingRequirements,\r\n    auth: AccessRole.Agent,\r\n    element: <PolicyBindingRequirementsComponent />,\r\n};\r\n","export class CatCode {\r\n    Code: string;\r\n    Name: string;\r\n    StartDate: string;\r\n    EndDate: string;\r\n    States: string[];\r\n    AccidentTypes: CatCodeAccidentType[];\r\n    Notes: string;\r\n    IsSuperCat: boolean;\r\n}\r\n\r\nexport class CatCodeAccidentType {\r\n    Name: string;\r\n    ProductLineId: number;\r\n}\r\n\r\nexport enum Action {\r\n    Add,\r\n    Edit,\r\n    Delete,\r\n}\r\n\r\nexport type AccidentType = {\r\n    ProductLineId: number;\r\n    Name: string;\r\n};\r\n","import * as ClaimsApi from '@api/ClaimsApi';\r\nimport { ProductLine, StateCode } from '@business/CommonSets';\r\nimport { LabelFormGroup } from '@legacy/Components/FormGroups/Label';\r\nimport { dateFormat } from '@shared/Constants';\r\nimport { useFormReducer } from '@shared/Hooks';\r\nimport {\r\n    Button,\r\n    Checkbox,\r\n    DatePicker,\r\n    HelpIcon,\r\n    Modal,\r\n    ModalRow,\r\n    MultiSelect,\r\n    Rules,\r\n    SelectItem,\r\n    Text,\r\n    Tooltip,\r\n    Value,\r\n} from '@webkit/index';\r\nimport dayjs from 'dayjs';\r\nimport { useEffect, useRef, useState } from 'react';\r\nimport { Action, CatCode, CatCodeAccidentType } from '../Models';\r\nimport './style.scss';\r\n\r\ntype Props = {\r\n    action: Action | null;\r\n    code: CatCode | null;\r\n    homeownerAccidentTypes: string[] | undefined;\r\n    commercialAccidentTypes: string[] | undefined;\r\n    onError: (message: string) => void;\r\n    onCancel: () => void;\r\n    onSubmit: () => void;\r\n};\r\n\r\nexport const CatCodeModal = (props: Props) => {\r\n    const states = useRef(StateCode.all().map(s => ({ id: s.code, name: s.code }))).current,\r\n        [loading, setLoading] = useState<boolean>(false);\r\n\r\n    const { form, set, validate, valid, reset } = useFormReducer({\r\n        code: new Value<string>('CAT code', '', [Rules.required(), Rules.maxLength(25)]),\r\n        name: new Value<string>('name', '', [Rules.maxLength(50)]),\r\n        startDate: new Value<dayjs.Dayjs | null>('start date', null, [Rules.required()]),\r\n        endDate: new Value<dayjs.Dayjs | null>('end date', null, [Rules.required()]),\r\n        superCat: new Value<boolean>('super CAT', false),\r\n        states: new Value<string[]>('states', [], [Rules.minLength(1, 'At least one state must be selected.')]),\r\n        homeownerAccidentTypes: new Value<string[]>(\r\n            'homeowner accident types',\r\n            [],\r\n            [Rules.minLength(1, 'At least one accident type must be selected.')]\r\n        ),\r\n        commercialAccidentTypes: new Value<string[]>(\r\n            'commercial accident types',\r\n            [],\r\n            [Rules.minLength(1, 'At least one accident type must be selected.')]\r\n        ),\r\n        notes: new Value<string>('notes', '', [Rules.maxLength(1000)]),\r\n    });\r\n\r\n    useEffect(() => {\r\n        if (!props.code || !props.action) reset();\r\n        else if (props.action === Action.Edit) {\r\n            const code = props.code;\r\n            set('code', code.Code || '');\r\n            set('name', code.Name || '');\r\n            set('startDate', dayjs(code.StartDate, 'MM-DD-YYYY'));\r\n            set('endDate', dayjs(code.EndDate, 'MM-DD-YYYY'));\r\n            set('states', code.States || []);\r\n            set(\r\n                'homeownerAccidentTypes',\r\n                code.AccidentTypes.filter(at => at.ProductLineId === ProductLine.Homeowner.key).map(at => at.Name)\r\n            );\r\n            set(\r\n                'commercialAccidentTypes',\r\n                code.AccidentTypes.filter(at => at.ProductLineId === ProductLine.Commercial.key).map(at => at.Name)\r\n            );\r\n            set('notes', code.Notes || '');\r\n            set('superCat', code.IsSuperCat || false);\r\n        }\r\n    }, [props.code, props.action]);\r\n\r\n    return (\r\n        <Modal\r\n            id='cat-code-modal'\r\n            size='lg'\r\n            title={`${props.action === Action.Edit ? 'Edit' : 'Add'} CAT Code`}\r\n            isOpen={props.action === Action.Add || props.action === Action.Edit}\r\n            onOpenChange={open => !open && props.onCancel()}\r\n        >\r\n            <ModalRow>\r\n                {props.action === Action.Add ? (\r\n                    <Text id='cat-code' onChange={value => set('code', value)} value={form.code} label='CAT Code' />\r\n                ) : (\r\n                    <LabelFormGroup id='cat-code-label' value={form.code.content} label='CAT Code' />\r\n                )}\r\n            </ModalRow>\r\n\r\n            <ModalRow>\r\n                <div className='cat-code-name-wrapper'>\r\n                    <Text\r\n                        id='cat-name'\r\n                        onChange={value => set('name', value)}\r\n                        value={form.name}\r\n                        placeholder='The name of the CAT that will be shown on the website and emails to our insureds.'\r\n                        label={\r\n                            <div className='name-label'>\r\n                                <span>Name</span>\r\n                                <div className='help-icon-wrapper'>\r\n                                    <Tooltip\r\n                                        message='The name of the CAT that will be shown on the website and emails to our insureds.'\r\n                                        placement='center'\r\n                                    >\r\n                                        <HelpIcon className='help-icon' fontSize='inherit' />\r\n                                    </Tooltip>\r\n                                </div>\r\n                            </div>\r\n                        }\r\n                    />\r\n                </div>\r\n            </ModalRow>\r\n\r\n            <ModalRow>\r\n                <div className='date-super-cat-row'>\r\n                    <div className='start-date'>\r\n                        <DatePicker\r\n                            id='start-date'\r\n                            label='Start Date'\r\n                            date={form.startDate}\r\n                            maxDate={form.endDate.content || undefined}\r\n                            onChange={(date: dayjs.Dayjs | null) => set('startDate', date)}\r\n                        />\r\n                    </div>\r\n\r\n                    <div className='end-date'>\r\n                        <DatePicker\r\n                            id='end-date'\r\n                            label='End Date'\r\n                            date={form.endDate}\r\n                            minDate={form.startDate.content || undefined}\r\n                            onChange={(date: dayjs.Dayjs | null) => set('endDate', date)}\r\n                        />\r\n                    </div>\r\n\r\n                    <div className='super-cat-wrapper'>\r\n                        <Checkbox id='super-cat' value={form.superCat} onChange={checked => set('superCat', checked)}>\r\n                            Super CAT\r\n                        </Checkbox>\r\n                    </div>\r\n                </div>\r\n            </ModalRow>\r\n\r\n            <ModalRow>\r\n                {states.length && (\r\n                    <MultiSelect\r\n                        id='states'\r\n                        label='States'\r\n                        value={form.states}\r\n                        onSelectionChange={(items: string[]) => set('states', items)}\r\n                    >\r\n                        {states.map(state => (\r\n                            <SelectItem key={state.id}>{state.name}</SelectItem>\r\n                        ))}\r\n                    </MultiSelect>\r\n                )}\r\n            </ModalRow>\r\n\r\n            <ModalRow>\r\n                {props.homeownerAccidentTypes && (\r\n                    <MultiSelect\r\n                        id='homeowner-accident-types'\r\n                        label='Homeowner Accident Types'\r\n                        value={form.homeownerAccidentTypes}\r\n                        onSelectionChange={(items: string[]) => set('homeownerAccidentTypes', items)}\r\n                    >\r\n                        {props.homeownerAccidentTypes.map(accidentType => (\r\n                            <SelectItem key={accidentType}>{accidentType}</SelectItem>\r\n                        ))}\r\n                    </MultiSelect>\r\n                )}\r\n            </ModalRow>\r\n\r\n            <ModalRow>\r\n                {props.commercialAccidentTypes && (\r\n                    <MultiSelect\r\n                        id='commercial-accident-types'\r\n                        label='Commercial Accident Types'\r\n                        value={form.commercialAccidentTypes}\r\n                        onSelectionChange={(items: string[]) => set('commercialAccidentTypes', items)}\r\n                    >\r\n                        {props.commercialAccidentTypes.map(accidentType => (\r\n                            <SelectItem key={accidentType}>{accidentType}</SelectItem>\r\n                        ))}\r\n                    </MultiSelect>\r\n                )}\r\n            </ModalRow>\r\n\r\n            <ModalRow>\r\n                <Text id='notes' label='Notes' value={form.notes} rows={10} onChange={value => set('notes', value)} />\r\n            </ModalRow>\r\n\r\n            <div className='cat-code-modal-buttons'>\r\n                <Button id='cancel-button' isSecondary onClick={props.onCancel}>\r\n                    Cancel\r\n                </Button>\r\n\r\n                <Button id='save-button' isLoading={loading} onClick={onSubmit}>\r\n                    Submit\r\n                </Button>\r\n            </div>\r\n        </Modal>\r\n    );\r\n\r\n    function combineAccidentTypes(): CatCodeAccidentType[] {\r\n        return [\r\n            ...form.homeownerAccidentTypes.content.map(at => ({\r\n                Name: at,\r\n                ProductLineId: ProductLine.Homeowner.key,\r\n            })),\r\n            ...form.commercialAccidentTypes.content.map(at => ({\r\n                Name: at,\r\n                ProductLineId: ProductLine.Commercial.key,\r\n            })),\r\n        ].sort((first: CatCodeAccidentType, second: CatCodeAccidentType) => first.Name.localeCompare(second.Name));\r\n    }\r\n\r\n    async function onSubmit() {\r\n        try {\r\n            validate();\r\n            if (!valid() || !form.startDate.content || !form.endDate.content) return;\r\n\r\n            setLoading(true);\r\n\r\n            const request = new CatCode();\r\n            request.Code = form.code.content;\r\n            request.Name = form.name.content;\r\n            request.StartDate = form.startDate.content.format(dateFormat);\r\n            request.EndDate = form.endDate.content.format(dateFormat);\r\n            request.States = form.states.content;\r\n            request.AccidentTypes = combineAccidentTypes();\r\n            request.Notes = form.notes.content;\r\n            request.IsSuperCat = form.superCat.content;\r\n\r\n            if (props.action === Action.Add) await ClaimsApi.addCatCode(request);\r\n            else if (props.action === Action.Edit) await ClaimsApi.updateCatCode(request);\r\n\r\n            props.onSubmit();\r\n        } catch (e) {\r\n            console.error(e);\r\n            props.onError('An unexpected error has occurred while saving the CAT code. Please try again later.');\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }\r\n};\r\n","import { Svg } from '@legacy/Components/Svg';\r\nimport { debounce } from '@shared/Common';\r\nimport { useFormReducer } from '@shared/Hooks';\r\nimport { Text, Value } from '@webkit/index';\r\nimport './style.scss';\r\n\r\ntype Props = {\r\n    onChange: (value: string) => void;\r\n};\r\n\r\nexport const Search = (props: Props) => {\r\n    const { form, set } = useFormReducer({\r\n        search: new Value<string>('search', ''),\r\n    });\r\n\r\n    return (\r\n        <div className='cat-code-search'>\r\n            <Text value={form.search} onChange={onChange} id='cat-code-search' placeholder='Search by CAT code...' />\r\n\r\n            <Svg path='/images/outline-search.svg' className='search-icon' alt='Search CAT Codes' />\r\n        </div>\r\n    );\r\n\r\n    function onChange(search: string) {\r\n        set('search', search);\r\n        debounce('cat-code-search', () => {\r\n            props.onChange(search);\r\n        });\r\n    }\r\n};\r\n","import { getCatCodes } from '@api/ClaimsApi';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { TableFormGroup, TableParams } from '@legacy/Components/FormGroups/Table';\r\nimport { dateFormat } from '@shared/Constants';\r\nimport { DeleteIcon, EditIcon, Tooltip } from '@webkit/index';\r\nimport dayjs from 'dayjs';\r\nimport { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';\r\nimport { Action, CatCode } from '../Models';\r\nimport './style.scss';\r\n\r\ntype Props = {\r\n    search: string;\r\n    onSelect: (code: CatCode, action: Action) => void;\r\n};\r\n\r\nexport type TableActions = {\r\n    update: () => void;\r\n};\r\n\r\nexport const Table = forwardRef<TableActions, Props>(({ search, onSelect }, ref) => {\r\n    const tableRef = useRef<TableFormGroup<CatCode> | null>();\r\n\r\n    useImperativeHandle(ref, () => ({\r\n        update: () => tableRef.current?.update(),\r\n    }));\r\n\r\n    useEffect(() => {\r\n        if (!tableRef.current || !search) return;\r\n\r\n        tableRef.current.search(search);\r\n    }, [search]);\r\n\r\n    return (\r\n        <TableFormGroup<CatCode>\r\n            ref={r => {\r\n                tableRef.current = r;\r\n            }}\r\n            get={get}\r\n            row={row}\r\n            headers={['Code', 'Name', 'Start Date', 'End Date', 'States', buildAccidentTypesHeader(), 'Notes', '']}\r\n            pageSize={15}\r\n        />\r\n    );\r\n\r\n    async function get(params: TableParams): Promise<CatCode[]> {\r\n        return await getCatCodes({\r\n            Start: params.start,\r\n            Count: params.count,\r\n            Search: params.search,\r\n        });\r\n    }\r\n\r\n    function row(model: CatCode): JSX.Element {\r\n        return (\r\n            <tr key={model.Code}>\r\n                <td className='code-cell'>{model.Code}</td>\r\n                <td>{model.Name}</td>\r\n                <td className='date-cell'>{dayjs(model.StartDate, 'MM-DD-YYYY').format(dateFormat)}</td>\r\n                <td className='date-cell'>{dayjs(model.EndDate, 'MM-DD-YYYY').format(dateFormat)}</td>\r\n                <td className='state-cell tag-cell'>\r\n                    {model.States.map(s => (\r\n                        <div key={`${model.Code}${s}`} className='state-tag state-tag'>\r\n                            <span>{s}</span>\r\n                        </div>\r\n                    ))}\r\n                </td>\r\n                <td className='accident-type-cell tag-cell'>\r\n                    {model.AccidentTypes.map(at => (\r\n                        <div\r\n                            key={`${model.Code}${at.Name}${at.ProductLineId}`}\r\n                            className={`accident-type-tag ${ProductLine.parse(at.ProductLineId).lowercaseName}`}\r\n                        >\r\n                            <span>{at.Name}</span>\r\n                        </div>\r\n                    ))}\r\n                </td>\r\n                <td>{model.Notes}</td>\r\n                <td className='actions'>\r\n                    <Tooltip message={`Edit CAT Code ${model.Code}`} placement='left'>\r\n                        <EditIcon id={`edit-cat-code-${model.Code}`} onClick={() => onSelect(model, Action.Edit)} />\r\n                    </Tooltip>\r\n\r\n                    <Tooltip message={`Delete CAT Code ${model.Code}`} placement='left'>\r\n                        <DeleteIcon\r\n                            id={`delete-cat-code-${model.Code}`}\r\n                            onClick={() => onSelect(model, Action.Delete)}\r\n                        />\r\n                    </Tooltip>\r\n                </td>\r\n            </tr>\r\n        );\r\n    }\r\n\r\n    function buildAccidentTypesHeader() {\r\n        return (\r\n            <>\r\n                <span className='accident-type-header'>Accident Types</span>\r\n                <span className='accident-types-legend homeowner'>\r\n                    <i></i>\r\n                    Homeowner\r\n                </span>\r\n                <span className='accident-types-legend commercial'>\r\n                    <i></i>\r\n                    Commercial\r\n                </span>\r\n            </>\r\n        );\r\n    }\r\n});\r\n","import { deleteCatCode } from '@api/ClaimsApi';\r\nimport { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRow } from '@app/Components/StepTile';\r\nimport { AppSettingsContext } from '@app/State/Context';\r\nimport { Path } from '@app/Views';\r\nimport { SwyfftRouteObject } from '@app/Views/routes';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport { ToastContext } from '@shared/Hooks';\r\nimport { Button, Confirm } from '@webkit/index';\r\nimport { useContext, useRef, useState } from 'react';\r\nimport { CatCodeModal as Modal } from '../Modal';\r\nimport { Action, CatCode } from '../Models';\r\nimport { Search } from '../Search';\r\nimport { Table, TableActions } from '../Table';\r\nimport './style.scss';\r\n\r\nexport const CatCodes: SwyfftRouteObject = {\r\n    path: Path.CatCodes,\r\n    auth: AccessRole.Admin,\r\n    element: <Component />,\r\n    shouldRevalidate: () => false,\r\n};\r\n\r\nexport function Component() {\r\n    const toast = useContext(ToastContext),\r\n        appSettings = useContext(AppSettingsContext);\r\n\r\n    const [search, setSearch] = useState<string>(''),\r\n        [action, setAction] = useState<Action | null>(null),\r\n        [code, setCode] = useState<CatCode | null>(null),\r\n        [deleting, setDeleting] = useState<boolean>(false);\r\n\r\n    const tableRef = useRef<TableActions | null>(null);\r\n\r\n    return (\r\n        <Step title='CAT Codes' className='cat-codes' fullWidth>\r\n            <StepHeader title='CAT Codes' />\r\n\r\n            <StepTileRow className='cat-code-actions'>\r\n                <Search onChange={(search: string) => setSearch(search)} />\r\n\r\n                <Button id='new-cat-code-button' onClick={onAdd}>\r\n                    Add CAT Code\r\n                </Button>\r\n            </StepTileRow>\r\n\r\n            <StepTileRow>\r\n                <Table ref={tableRef} search={search} onSelect={onSelect} />\r\n            </StepTileRow>\r\n\r\n            <Modal\r\n                action={action}\r\n                code={code}\r\n                homeownerAccidentTypes={appSettings?.homeownerAccidentTypes.map(at => at.description).sort()}\r\n                commercialAccidentTypes={appSettings?.commercialAccidentTypes.map(at => at.description).sort()}\r\n                onError={(message: string) => toast.error(message)}\r\n                onCancel={() => onCancel()}\r\n                onSubmit={() => onSubmit()}\r\n            />\r\n\r\n            <Confirm\r\n                isOpen={action === Action.Delete && code !== null}\r\n                title='Are you sure?'\r\n                text={`Deleting CAT code ${code?.Code || ''} is permanent and cannot be undone.`}\r\n                isLoading={deleting}\r\n                confirmButtonId='delete-cat-code-button'\r\n                onConfirm={onDelete}\r\n                onCancel={onCancel}\r\n            />\r\n        </Step>\r\n    );\r\n\r\n    function onSelect(code: CatCode, action: Action) {\r\n        setCode(code);\r\n        setAction(action);\r\n    }\r\n\r\n    function onCancel() {\r\n        setAction(null);\r\n        setCode(null);\r\n    }\r\n\r\n    function onSubmit() {\r\n        setAction(null);\r\n        setCode(null);\r\n        tableRef.current?.update();\r\n    }\r\n\r\n    function onAdd() {\r\n        setAction(Action.Add);\r\n    }\r\n\r\n    async function onDelete() {\r\n        try {\r\n            if (!code) return;\r\n\r\n            setDeleting(true);\r\n            await deleteCatCode(code);\r\n\r\n            setAction(null);\r\n            setCode(null);\r\n            tableRef.current?.update();\r\n        } catch (e) {\r\n            toast.error('An error has occurred while deleting the CAT code. Please try again later.');\r\n        } finally {\r\n            setDeleting(false);\r\n        }\r\n    }\r\n}\r\n","import { Svg } from '@legacy/Components/Svg';\r\nimport * as Common from '@shared/Common';\r\nimport * as Constants from '@shared/Constants';\r\nimport { getAgentName } from '@shared/Storage';\r\nimport { CloseIcon } from '@webkit/index';\r\nimport * as React from 'react';\r\nimport { Context, ReactNode, useContext } from 'react';\r\nimport './style.scss';\r\n\r\ntype SidebarNode = {\r\n    title: string;\r\n    onClick: () => void;\r\n    itemCountProperty: string;\r\n    itemSubCountProperty?: string;\r\n    icon?: ReactNode;\r\n    childNode?: SidebarNode[];\r\n};\r\n\r\ninterface ISidebarProps<T> {\r\n    agentTitle: string;\r\n    pageTitle: string;\r\n    stateContext: Context<T>;\r\n    nodes: SidebarNode[];\r\n    className?: string;\r\n    includeCloseButton?: boolean;\r\n    onCloseClick?: () => void;\r\n    onLogoClick?: () => void;\r\n}\r\n\r\nexport const Sidebar = <T,>(props: ISidebarProps<T>) => {\r\n    const context = useContext(props.stateContext);\r\n    const agentName = getAgentName() || '';\r\n    const agentNameParts = agentName.split(' ');\r\n\r\n    const getUserInitials = (): ReactNode => {\r\n        if (agentName && agentName.split(' ')) {\r\n            return agentName\r\n                .split(' ')\r\n                .map(n => n[0])\r\n                .join('');\r\n        } else {\r\n            return <Svg path={Constants.iconPaths.user} alt='User Role' />;\r\n        }\r\n    };\r\n\r\n    const handleNavigation = () => {\r\n        if (props.onLogoClick) {\r\n            props.onLogoClick();\r\n        }\r\n    };\r\n\r\n    const handleLogout = async () => {\r\n        await Common.logout();\r\n        Common.navigate(Constants.pages.Root);\r\n    };\r\n\r\n    return (\r\n        <div className={`sidebar-container${props.className ? ' ' + props.className : ''}`}>\r\n            <div className='page-info'>\r\n                <div className='page-info-header'>\r\n                    <div className='page-info-content'>\r\n                        <div className='page-title'>{props.pageTitle}</div>\r\n                        <div className='greeting'>Hi, {agentNameParts[0]}</div>\r\n                    </div>\r\n\r\n                    <div className='sidebar-logo-container'>\r\n                        {props.includeCloseButton && (\r\n                            <button\r\n                                onClick={props.onCloseClick}\r\n                                className='icon-button-no-text close-button'\r\n                                title='Close sidebar'\r\n                            >\r\n                                <CloseIcon />\r\n                            </button>\r\n                        )}\r\n\r\n                        <Svg\r\n                            path='/images/shield.svg'\r\n                            className={`sidebar-logo${props.onLogoClick ? ' sidebar-logo-action' : ''}`}\r\n                            alt='Swyfft logo'\r\n                            unstyled\r\n                            onClick={handleNavigation}\r\n                        />\r\n                    </div>\r\n                </div>\r\n\r\n                <div>\r\n                    {props.nodes.map((node: SidebarNode) => {\r\n                        return (\r\n                            <div key={node.title} className='sidebar-node' onClick={node.onClick}>\r\n                                {node.icon}\r\n                                <span className='node-title'>{node.title}</span>\r\n\r\n                                {context['state'][node.itemCountProperty] > 0 && (\r\n                                    <div className='item-count-container'>\r\n                                        <span className='item-count'>{context['state'][node.itemCountProperty]}</span>\r\n\r\n                                        {node.itemSubCountProperty &&\r\n                                            context['state'][node.itemSubCountProperty] > 0 && (\r\n                                                <span className='item-sub-count'>\r\n                                                    {context['state'][node.itemSubCountProperty]}\r\n                                                </span>\r\n                                            )}\r\n                                    </div>\r\n                                )}\r\n                            </div>\r\n                        );\r\n                    })}\r\n                </div>\r\n            </div>\r\n\r\n            <div className='user-info'>\r\n                <hr className='user-info-divider' />\r\n\r\n                <div className='name-and-title'>\r\n                    <span className='user-status-controls'>\r\n                        <IconButton className='user-icon'>{getUserInitials()}</IconButton>\r\n                    </span>\r\n\r\n                    <div>\r\n                        <div className='agent-name'>{agentName}</div>\r\n\r\n                        <div className='agent-title'>{props.agentTitle}</div>\r\n                    </div>\r\n                </div>\r\n\r\n                <div className='actions'>\r\n                    {/*TODO: Enable when we know what this action should do*/}\r\n                    {/*<div>*/}\r\n                    {/*    <Svg*/}\r\n                    {/*        path='/images/settings.svg'*/}\r\n                    {/*        alt='Settings'*/}\r\n                    {/*        unstyled*/}\r\n                    {/*    />*/}\r\n                    {/*    Settings*/}\r\n                    {/*</div>*/}\r\n\r\n                    <div>\r\n                        <Svg path='/images/logout.svg' alt='Log out' unstyled />\r\n\r\n                        <button onClick={handleLogout}>Log Out</button>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    );\r\n};\r\n\r\ninterface IIconButtonProps {\r\n    id?: string;\r\n    className: string;\r\n    onClick?: () => void;\r\n    children: ReactNode;\r\n}\r\n\r\nconst IconButton = React.forwardRef((props: IIconButtonProps, ref) => {\r\n    return (\r\n        <button ref={ref as any} id={props.id} className={props.className} onClick={props.onClick}>\r\n            {props.children}\r\n        </button>\r\n    );\r\n});\r\n","import { createContext } from 'react';\r\n\r\nimport { Mutable } from '@shared/Models';\r\n\r\nexport const SAVED_TASK_SEARCH_STORAGE_KEY = 'claimTaskSavedSearches';\r\n\r\nexport enum TaskStatus {\r\n    All = 'All Statuses',\r\n    Pending = 'Pending',\r\n    Assigned = 'Assigned',\r\n    InProgress = 'In Progress',\r\n    Overdue = 'Overdue',\r\n}\r\n\r\nexport interface IClaimTask {\r\n    ClaimNumber: string;\r\n    PolicyNumber: string;\r\n    TaskType: string;\r\n    Status: TaskStatus;\r\n    CreatedBy: string;\r\n    CreatedOn: string;\r\n    DueDate: string;\r\n    AssignedTo: string;\r\n    AssignedOn: string;\r\n    Source: string;\r\n    Note?: string;\r\n    FrissScore?: number;\r\n}\r\n\r\nexport interface IClaimTaskFilters {\r\n    searchText?: string;\r\n    taskType?: string;\r\n    assignedTo?: string;\r\n    dueDate?: string;\r\n}\r\n\r\nexport type SavedTaskSearches = Record<string, string>;\r\n\r\n// These types define a context for sharing data between the various claims dashboard components and the sidebar\r\nexport type ClaimsDashboardState = {\r\n    taskCount: number;\r\n    overdueTaskCount: number;\r\n};\r\n\r\nexport const InitialState: ClaimsDashboardState = {\r\n    taskCount: 0,\r\n    overdueTaskCount: 0,\r\n};\r\n\r\nexport type MutableState = Mutable<ClaimsDashboardState>;\r\n\r\nexport enum ActionType {\r\n    Update,\r\n    Revert,\r\n}\r\nexport type Action = {\r\n    type: ActionType;\r\n    updater?: (state: MutableState) => void;\r\n};\r\n\r\nexport type ClaimsDashboardReducer = {\r\n    state: ClaimsDashboardState;\r\n    update: (updater: (state: MutableState) => void) => void;\r\n    revert: () => void;\r\n};\r\n\r\nexport const ClaimsDashboardContext = createContext<ClaimsDashboardReducer>({} as ClaimsDashboardReducer);\r\n","import dayjs from 'dayjs';\r\n\r\nimport { IClaimTask, IClaimTaskFilters, TaskStatus } from '@app/Views/ClaimsDashboard/models';\r\n// import { fetchAndLog } from '@api/Fetch';\r\nimport { encodeQueryParam } from '@shared/Common';\r\n\r\nasync function getMockClaimTasks(skip: number, take: number, filters: IClaimTaskFilters): Promise<IClaimTask[]> {\r\n    let mockTasks = new Array<IClaimTask>();\r\n\r\n    for (let i = 1; i <= 25; i++) {\r\n        mockTasks.push({\r\n            ClaimNumber: i % 2 === 0 ? `SWYSWPN0000${i}` : `SWYSWPN12${i}000`,\r\n            PolicyNumber: i <= 7 ? `AL01-${i}00123-01` : `AL02-${i}00123-01`,\r\n            TaskType: i <= 2 ? 'Claims - Initial Coverage Review' : 'Liability Consult/Referral',\r\n            Status: i % 3 === 0 ? TaskStatus.Overdue : TaskStatus.Pending,\r\n            CreatedBy: i <= 6 ? 'John Doe' : 'Jane Smith',\r\n            CreatedOn: i % 3 ? '5/1/2024' : '5/17/2024',\r\n            DueDate: dayjs(\r\n                `${i.toString().padStart(2, '0')}-${(i + 2).toString().padStart(2, '0')}-2024`,\r\n                'MM-DD-YYYY'\r\n            ).format('MM-DD-YYYY'),\r\n            AssignedTo: i % 4 === 0 ? (i % 8 === 0 ? 'Sara Johnson' : 'Julie Wilson') : 'Sam Jones',\r\n            AssignedOn: i % 4 ? '10/1/2024' : '9/17/2024',\r\n            Source: i % 5 ? 'IMS' : 'Symbility',\r\n            FrissScore: i === 1 ? 65 : 0,\r\n        });\r\n    }\r\n\r\n    if (\r\n        filters.searchText ||\r\n        (filters.taskType && filters.taskType !== 'All') ||\r\n        (filters.assignedTo && filters.assignedTo !== 'Everyone') ||\r\n        filters.dueDate\r\n    ) {\r\n        if (filters.searchText) {\r\n            const claimNumberResults = mockTasks.filter((item: IClaimTask) => {\r\n                return item.ClaimNumber.indexOf(filters.searchText || '') > -1;\r\n            });\r\n\r\n            const policyNumberResults = mockTasks.filter((item: IClaimTask) => {\r\n                return item.PolicyNumber.indexOf(filters.searchText || '') > -1;\r\n            });\r\n\r\n            mockTasks.length = 0;\r\n            mockTasks.push(...claimNumberResults);\r\n            mockTasks.push(...policyNumberResults);\r\n        } else if (filters.taskType && filters.taskType !== 'All') {\r\n            mockTasks = mockTasks.filter((item: IClaimTask) => {\r\n                return item.TaskType === filters.taskType;\r\n            });\r\n        } else if (filters.assignedTo && filters.assignedTo !== 'Everyone') {\r\n            mockTasks = mockTasks.filter((item: IClaimTask) => {\r\n                return item.AssignedTo === filters.assignedTo;\r\n            });\r\n        } else if (filters.dueDate) {\r\n            mockTasks = mockTasks.filter((item: IClaimTask) => {\r\n                if (filters.dueDate) {\r\n                    return item.DueDate === filters.dueDate;\r\n                } else {\r\n                    return false;\r\n                }\r\n            });\r\n        }\r\n    }\r\n\r\n    await new Promise(r => setTimeout(r, 2000));\r\n\r\n    return mockTasks;\r\n}\r\n\r\nexport async function getClaimTasks(skip: number, take: number, filters: IClaimTaskFilters): Promise<IClaimTask[]> {\r\n    let queryParams = `?skip=${skip}&take=${take}`;\r\n\r\n    if (filters.searchText) {\r\n        queryParams += `&${encodeQueryParam('searchText', filters.searchText)}`;\r\n    }\r\n\r\n    if (filters.taskType) {\r\n        queryParams += `&${encodeQueryParam('taskType', filters.taskType)}`;\r\n    }\r\n\r\n    if (filters.dueDate) {\r\n        queryParams += `&${encodeQueryParam('dueDate', filters.dueDate)}`;\r\n    }\r\n\r\n    return await getMockClaimTasks(skip, take, filters);\r\n\r\n    // TODO: Uncomment when the actual API is available\r\n    // return await fetchAndLog(`/api/claims/get-tasks${queryParams}`, 'get claim tasks');\r\n}\r\n\r\nexport async function addClaimTask(task: IClaimTask) {\r\n    await new Promise(r => setTimeout(r, 2000));\r\n    return;\r\n\r\n    // TODO: Uncomment when the actual API is available\r\n    // return await fetchAndLog<IClaimTask>('/api/claims/add-task', 'add claim task', {\r\n    //     method: 'POST',\r\n    //     body: JSON.stringify(task)\r\n    // });\r\n}\r\n\r\nexport async function getTaskTypes() {\r\n    return [\r\n        'Background Check Only, No SIU',\r\n        'Claims - Appraisal Request',\r\n        'Claims - Attorney Client Privilege',\r\n        'Claims - Authority Request',\r\n        'Claims - Coverage',\r\n        'Claims - Dispute & Litigation',\r\n        'Claims - Expense Payment',\r\n        'Claims - Initial Coverage Review',\r\n        'Claims - Liability',\r\n        'Claims - Liability 30-120-day Review',\r\n        'Claims - Litigation Payment',\r\n        'Claims - Manager Review',\r\n        'Claims - Property',\r\n        'Claims - Reserve Recommendations',\r\n        'Claims - Settlement',\r\n        'Claims - Task/Message',\r\n        'Friss Fraud Score Review by SIU',\r\n        'Immunity Documents Review',\r\n        'Immunity Request',\r\n        'Large Loss',\r\n        'Large Loss - Actions',\r\n        'Large Loss - Consult',\r\n        'Large Loss - Referral',\r\n        'Liability Consult/Referral',\r\n        'Phone Conversation',\r\n        'Salvage',\r\n        'SIU Closing Summary',\r\n        'SIU EUO update',\r\n        'SIU New EUO request',\r\n        'SIU New Liability Referral',\r\n        'SIU New Property Referral',\r\n        'SIU Re-open',\r\n        'SIU Suspicion of Fraud',\r\n        'SIU Update',\r\n        'Subrogation',\r\n        'Subrogation - Action Plan',\r\n        'Subrogation - Manager Review',\r\n        'Subrogation - New Referral',\r\n    ];\r\n}\r\n","import dayjs from 'dayjs';\r\nimport { FC, useContext, useState } from 'react';\r\n\r\nimport { addClaimTask } from '@app/Views/ClaimsDashboard/api';\r\nimport { IClaimTask, TaskStatus } from '@app/Views/ClaimsDashboard/models';\r\nimport * as Common from '@shared/Common';\r\nimport * as Constants from '@shared/Constants';\r\nimport { ToastContext, useFormReducer } from '@shared/Hooks';\r\nimport { getAgentName } from '@shared/Storage';\r\nimport { Button, DatePicker, MultiSelect, Rules, Select, SelectItem, Text, Value } from '@webkit/index';\r\nimport './style.scss';\r\n\r\ntype Form = {\r\n    claimNumber: Value<string>;\r\n    dueDate: Value<dayjs.Dayjs | null>;\r\n    taskType: Value<string>;\r\n    assignedTo: Value<string[]>;\r\n};\r\n\r\ntype Props = {\r\n    onClose: () => void;\r\n    assignedToList: string[];\r\n    taskTypeList: string[];\r\n};\r\n\r\nconst TaskForm: FC<Props> = props => {\r\n    const [isLoading, setIsLoading] = useState<boolean>(false);\r\n    const toast = useContext(ToastContext);\r\n\r\n    const { form, set, setWithoutValidation, validate } = useFormReducer<Form>({\r\n        claimNumber: new Value<string>('claim number', '', [\r\n            Rules.required(true, 'Please enter a claim or policy number.'),\r\n            Rules.maxLength(50),\r\n        ]),\r\n        taskType: new Value<string>('task type', '', [Rules.required(true, 'Please select a task type.')]),\r\n        assignedTo: new Value<string[]>('assigned to', [], [Rules.minLength(1, 'Please select an assignee.')]),\r\n        dueDate: new Value<dayjs.Dayjs | null>('due date', null),\r\n    });\r\n\r\n    const createdBy = new Value<string>('created by', `${getAgentName()} - ${dayjs().format('MM/DD/YYYY')}`);\r\n\r\n    const resetForm = () => {\r\n        form.claimNumber.reset();\r\n        form.dueDate.reset();\r\n        form.taskType.reset();\r\n        form.assignedTo.reset();\r\n    };\r\n\r\n    const handleChangeDueDate = (dueDate: dayjs.Dayjs | null) => {\r\n        form.dueDate.set(dueDate);\r\n        form.dueDate.validate();\r\n\r\n        set('dueDate', dueDate);\r\n    };\r\n\r\n    const handleSubmit = async () => {\r\n        validate();\r\n        form.claimNumber.validate();\r\n        form.taskType.validate();\r\n\r\n        if (form.claimNumber.valid && form.taskType.valid) {\r\n            try {\r\n                setIsLoading(true);\r\n\r\n                const task: IClaimTask = {\r\n                    ClaimNumber: form.claimNumber.content,\r\n                    PolicyNumber: form.claimNumber.content,\r\n                    TaskType: form.taskType.content,\r\n                    Status: TaskStatus.All,\r\n                    DueDate: form.dueDate.content ? form.dueDate.content.format(Constants.dateFormatWithHyphens) : '',\r\n                    AssignedTo: '',\r\n                    CreatedBy: '',\r\n                    CreatedOn: '',\r\n                    AssignedOn: '',\r\n                    Source: '',\r\n                };\r\n\r\n                await addClaimTask(task);\r\n\r\n                resetForm();\r\n                props.onClose();\r\n                await toast.success('Task successfully added.', 3000);\r\n            } catch (error) {\r\n                await toast.error(Common.getErrorMessage(error));\r\n            } finally {\r\n                setIsLoading(false);\r\n            }\r\n        }\r\n    };\r\n\r\n    return (\r\n        <div className='task-form'>\r\n            <div className='row-1'>\r\n                <div className='column-1'>\r\n                    <Text\r\n                        value={form.claimNumber}\r\n                        label='Claim / Policy '\r\n                        placeholder='Enter claim # or policy #'\r\n                        onChange={(value: string) => setWithoutValidation('claimNumber', value)}\r\n                    />\r\n                </div>\r\n\r\n                <div className='column-1'>\r\n                    <div>\r\n                        <DatePicker\r\n                            id='task-due-date'\r\n                            minDate={dayjs()}\r\n                            label='Due Date'\r\n                            date={form.dueDate}\r\n                            onChange={handleChangeDueDate}\r\n                        />\r\n                    </div>\r\n                </div>\r\n            </div>\r\n\r\n            <div className='row-2'>\r\n                <div className='column-1'>\r\n                    <Select\r\n                        value={form.taskType}\r\n                        label='Task Type'\r\n                        placeholder='Select a task type'\r\n                        onSelectionChange={(option: string) => set('taskType', option.toString())}\r\n                    >\r\n                        {props.taskTypeList.map((value: string) => (\r\n                            <SelectItem key={value}>{value}</SelectItem>\r\n                        ))}\r\n                    </Select>\r\n                </div>\r\n\r\n                <div className='column-1'>\r\n                    <div className='disabled'>\r\n                        <Text\r\n                            id='task-created-by'\r\n                            value={createdBy}\r\n                            label='Created By / On'\r\n                            isDisabled={true}\r\n                            onChange={() => {}}\r\n                        />\r\n                    </div>\r\n                </div>\r\n            </div>\r\n\r\n            <div>\r\n                <div className='full-width'>\r\n                    <MultiSelect\r\n                        value={form.assignedTo}\r\n                        label='Assigned To'\r\n                        onSelectionChange={(option: string[]) => set('assignedTo', option)}\r\n                    >\r\n                        {props.assignedToList.map((value: string) => (\r\n                            <SelectItem key={value}>{value}</SelectItem>\r\n                        ))}\r\n                    </MultiSelect>\r\n                </div>\r\n            </div>\r\n\r\n            <div className='task-form-actions'>\r\n                <div className='submit-button'>\r\n                    <Button onClick={handleSubmit} isLoading={isLoading}>\r\n                        CREATE TASK\r\n                    </Button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    );\r\n};\r\n\r\nexport default TaskForm;\r\n","import { FC, useContext } from 'react';\r\n\r\nimport { SAVED_TASK_SEARCH_STORAGE_KEY, SavedTaskSearches } from '@app/Views/ClaimsDashboard/models';\r\nimport { ToastContext, useFormReducer } from '@shared/Hooks';\r\nimport { getLocalData, saveLocalData } from '@shared/Storage';\r\nimport { Button, Rules, Text, Value } from '@webkit/index';\r\nimport './style.scss';\r\n\r\ntype Form = {\r\n    savedSearchName: Value<string>;\r\n};\r\n\r\ntype Props = {\r\n    onClose: () => void;\r\n};\r\n\r\nconst SavedSearchForm: FC<Props> = props => {\r\n    const toast = useContext(ToastContext);\r\n\r\n    const { form, setWithoutValidation, validate } = useFormReducer<Form>({\r\n        savedSearchName: new Value<string>('savedSearchName', '', [\r\n            Rules.required(true, 'Please enter a name for the saved search.'),\r\n            Rules.maxLength(200),\r\n        ]),\r\n    });\r\n\r\n    const handleSaveSearch = async () => {\r\n        validate();\r\n        form.savedSearchName.validate();\r\n\r\n        if (form.savedSearchName.valid) {\r\n            const savedSearchesData = getLocalData(SAVED_TASK_SEARCH_STORAGE_KEY);\r\n            let savedSearches: SavedTaskSearches = {};\r\n\r\n            if (savedSearchesData) {\r\n                try {\r\n                    savedSearches = JSON.parse(savedSearchesData);\r\n                } catch {}\r\n            }\r\n\r\n            savedSearches[form.savedSearchName.content.trim()] = window.location.search.substring(1);\r\n            saveLocalData(SAVED_TASK_SEARCH_STORAGE_KEY, JSON.stringify(savedSearches));\r\n            props.onClose();\r\n            await toast.success('Search saved.', 3000);\r\n        }\r\n    };\r\n\r\n    return (\r\n        <div className='saved-search-form'>\r\n            <div>\r\n                <Text\r\n                    value={form.savedSearchName}\r\n                    label='Name of search'\r\n                    onChange={(value: string) => setWithoutValidation('savedSearchName', value)}\r\n                />\r\n            </div>\r\n\r\n            <div className='saved-search-form-actions'>\r\n                <Button onClick={props.onClose} isSecondary={true}>\r\n                    Cancel\r\n                </Button>\r\n                <Button onClick={handleSaveSearch}>Save Search</Button>\r\n            </div>\r\n        </div>\r\n    );\r\n};\r\n\r\nexport default SavedSearchForm;\r\n","import dayjs from 'dayjs';\r\nimport { FC, useContext, useEffect, useState } from 'react';\r\nimport { useSearchParams } from 'react-router-dom-v5-compat';\r\n\r\nimport SavedSearchForm from '@app/Views/ClaimsDashboard/SavedSearchForm';\r\nimport * as Common from '@shared/Common';\r\nimport '@shared/Common/style.scss';\r\nimport * as Constants from '@shared/Constants';\r\nimport { ToastContext, useFormReducer } from '@shared/Hooks';\r\nimport { getAgentName } from '@shared/Storage';\r\nimport { Button, ContentCopyIcon, DatePicker, Modal, SaveIcon, Select, SelectItem, Text, Value } from '@webkit/index';\r\nimport './style.scss';\r\n\r\nexport type TaskSearchParams = {\r\n    searchText: string;\r\n    taskType: string;\r\n    createdBy: string;\r\n    assignedTo: string;\r\n    dueDate: string;\r\n};\r\n\r\ntype Form = {\r\n    searchText: Value<string>;\r\n    taskType: Value<string>;\r\n    createdBy: Value<string>;\r\n    assignedTo: Value<string>;\r\n    dueDate: Value<dayjs.Dayjs | null>;\r\n};\r\n\r\ntype TaskSearchFormProps = {\r\n    createdByList: string[];\r\n    assignedToList: string[];\r\n    taskTypeList: string[];\r\n    isLoading: boolean;\r\n    onSubmit: (params: TaskSearchParams) => void;\r\n};\r\n\r\nconst TaskSearchForm: FC<TaskSearchFormProps> = props => {\r\n    const [initialLoad, setInitialLoad] = useState<boolean>(true);\r\n    const [isSaveSearchFormVisible, setIsSaveSearchFormVisible] = useState<boolean>(false);\r\n    const [searchParams] = useSearchParams();\r\n    const toast = useContext(ToastContext);\r\n\r\n    const dueDateParam = searchParams.get('dueDate');\r\n    let dueDate: dayjs.Dayjs | null = null;\r\n\r\n    if (dueDateParam && dayjs(dueDateParam).isValid()) {\r\n        dueDate = dayjs(dueDateParam);\r\n    }\r\n\r\n    const { form, set } = useFormReducer<Form>({\r\n        searchText: new Value<string>('searchText', searchParams.get('searchText') || ''),\r\n        taskType: new Value<string>('taskType', searchParams.get('taskType') || 'All Task Types'),\r\n        createdBy: new Value<string>('createdBy', searchParams.get('createdBy') || 'Everyone'),\r\n        assignedTo: new Value<string>('assignedTo', searchParams.get('assignedTo') || 'Everyone'),\r\n        dueDate: new Value<dayjs.Dayjs | null>('dueDate', dueDate),\r\n    });\r\n\r\n    useEffect(() => {\r\n        // If we aren't searching by a particular Assigned To value, try to set the given agent as the default value in that drop-down\r\n        if (\r\n            initialLoad &&\r\n            props.createdByList.length > 0 &&\r\n            props.assignedToList.length > 0 &&\r\n            !searchParams.get('assignedTo')\r\n        ) {\r\n            const agentName = getAgentName() || '';\r\n\r\n            if (props.assignedToList.includes(agentName)) {\r\n                set('assignedTo', agentName);\r\n            }\r\n\r\n            setInitialLoad(false);\r\n        }\r\n    });\r\n\r\n    const handleCopySearchParams = async () => {\r\n        await Common.copyText(window.location.href, window.navigator.clipboard.writeText);\r\n        await toast.success('Link to search options copied to the clipboard.', 3000);\r\n    };\r\n\r\n    const handleChangeDueDate = (value: dayjs.Dayjs | null) => {\r\n        form.dueDate.set(value);\r\n        form.dueDate.validate();\r\n\r\n        set('dueDate', value);\r\n    };\r\n\r\n    const handleSearch = async () => {\r\n        const params = {\r\n            searchText: form.searchText.content,\r\n            taskType: form.taskType.content,\r\n            createdBy: form.createdBy.content,\r\n            assignedTo: form.assignedTo.content,\r\n            dueDate: form.dueDate.content ? form.dueDate.content.format(Constants.dateFormatWithHyphens) : '',\r\n        };\r\n\r\n        props.onSubmit(params);\r\n    };\r\n\r\n    return (\r\n        <div className='task-search-form'>\r\n            <div className='row-1'>\r\n                <div className='column-1'>\r\n                    <Text\r\n                        value={form.searchText}\r\n                        label='Search'\r\n                        placeholder='Search by policy # or claim #'\r\n                        onChange={(value: string) => set('searchText', value)}\r\n                    />\r\n                </div>\r\n\r\n                <div className='column-2'>\r\n                    <Select\r\n                        value={form.taskType}\r\n                        label='Task Type'\r\n                        onSelectionChange={(option: string) => set('taskType', option)}\r\n                    >\r\n                        {props.taskTypeList.map((value: string) => (\r\n                            <SelectItem key={value}>{value}</SelectItem>\r\n                        ))}\r\n                    </Select>\r\n                </div>\r\n            </div>\r\n\r\n            <div className='row-1'>\r\n                <div className='column-1 field-container'>\r\n                    <div className='full-width'>\r\n                        <DatePicker\r\n                            id='task-due-date'\r\n                            label='Due Date'\r\n                            date={form.dueDate}\r\n                            onChange={handleChangeDueDate}\r\n                        />\r\n                    </div>\r\n\r\n                    <div className='full-width'>\r\n                        <Select\r\n                            value={form.assignedTo}\r\n                            label='Assigned To'\r\n                            onSelectionChange={(option: string) => set('assignedTo', option)}\r\n                        >\r\n                            {props.assignedToList.map((item: string) => (\r\n                                <SelectItem key={item}>{item}</SelectItem>\r\n                            ))}\r\n                        </Select>\r\n                    </div>\r\n                </div>\r\n\r\n                <div className='search-button'>\r\n                    <Button onClick={handleSearch} isLoading={props.isLoading}>\r\n                        SEARCH\r\n                    </Button>\r\n                </div>\r\n            </div>\r\n\r\n            <div className='field-container'>\r\n                <button onClick={handleCopySearchParams} className='claims-icon-button'>\r\n                    Copy Search\r\n                    <ContentCopyIcon />\r\n                </button>\r\n\r\n                <button onClick={() => setIsSaveSearchFormVisible(true)} className='claims-icon-button'>\r\n                    Save Search\r\n                    <SaveIcon />\r\n                </button>\r\n            </div>\r\n\r\n            <Modal\r\n                isOpen={isSaveSearchFormVisible}\r\n                title='Save Search'\r\n                isDismissable={false}\r\n                isKeyboardDismissable={false}\r\n                onOpenChange={(isOpen: boolean) => setIsSaveSearchFormVisible(isOpen)}\r\n            >\r\n                <SavedSearchForm onClose={() => setIsSaveSearchFormVisible(false)} />\r\n            </Modal>\r\n        </div>\r\n    );\r\n};\r\n\r\nexport default TaskSearchForm;\r\n","import dayjs from 'dayjs';\r\nimport { FC, useContext, useState } from 'react';\r\nimport { TableColumn } from 'react-data-table-component';\r\nimport Skeleton from 'react-loading-skeleton';\r\nimport { useSearchParams } from 'react-router-dom-v5-compat';\r\n\r\nimport { NoData } from '@app/Components/NoData';\r\nimport { Table } from '@app/Components/Table';\r\nimport { getClaimTasks, getTaskTypes } from '@app/Views/ClaimsDashboard/api';\r\nimport {\r\n    ClaimsDashboardContext,\r\n    IClaimTask,\r\n    IClaimTaskFilters,\r\n    SAVED_TASK_SEARCH_STORAGE_KEY,\r\n    TaskStatus,\r\n} from '@app/Views/ClaimsDashboard/models';\r\nimport TaskForm from '@app/Views/ClaimsDashboard/TaskForm';\r\nimport TaskSearchForm, { TaskSearchParams } from '@app/Views/ClaimsDashboard/TaskSearchForm';\r\nimport * as Common from '@shared/Common';\r\nimport { ToastContext, useAsyncEffect, useFormReducer } from '@shared/Hooks';\r\nimport { getLocalData } from '@shared/Storage';\r\nimport { AutoComplete, Button, CloseIcon, KeyboardArrowRightIcon, Modal, SearchIcon, Value } from '@webkit/index';\r\nimport './style.scss';\r\n\r\nconst DATA_SET_SIZE = 25;\r\nconst FRISS_SCORE_WARNING_THRESHOLD = 65;\r\n\r\ntype SavedTaskSearch = {\r\n    name: string;\r\n    value: string;\r\n};\r\n\r\ntype Form = {\r\n    savedSearch: Value<string>;\r\n};\r\n\r\nexport const ClaimTasks: FC = () => {\r\n    const [claimTasks, setClaimTasks] = useState<IClaimTask[]>([]);\r\n    const [createdByList, setCreatedByList] = useState<string[]>([]);\r\n    const [assignedToList, setAssignedToList] = useState<string[]>([]);\r\n    const [taskTypeList, setTaskTypeList] = useState<string[]>([]);\r\n    const [isLoading, setIsLoading] = useState<boolean>(false);\r\n    const [searchFormOpen, setSearchFormOpen] = useState<boolean>(false);\r\n    const [taskFormOpen, setTaskFormOpen] = useState<boolean>(false);\r\n    const [actionMenuOpen, setActionMenuOpen] = useState<boolean>(false);\r\n    const [selectedTaskSearch, setSelectedTaskSearch] = useState<SavedTaskSearch>({ name: '', value: '' });\r\n\r\n    const [searchParams, setSearchParams] = useSearchParams();\r\n    const toast = useContext(ToastContext);\r\n    const state = useContext(ClaimsDashboardContext);\r\n    const skeletonHeight = '25px';\r\n\r\n    const { form, set } = useFormReducer<Form>({\r\n        savedSearch: new Value<string>('saved search', ''),\r\n    });\r\n\r\n    useAsyncEffect(async () => {\r\n        const getData = async () => {\r\n            try {\r\n                setIsLoading(true);\r\n\r\n                const filters: IClaimTaskFilters = {\r\n                    searchText: searchParams.get('searchText') || '',\r\n                    taskType: searchParams.get('taskType') || '',\r\n                    assignedTo: searchParams.get('assignedTo') || '',\r\n                    dueDate: searchParams.get('dueDate') || '',\r\n                };\r\n                const tasks = await getClaimTasks(0, DATA_SET_SIZE, filters);\r\n\r\n                state.update(state => {\r\n                    state.taskCount = tasks.length;\r\n                    state.overdueTaskCount = tasks.filter(\r\n                        (item: IClaimTask) => item.Status === TaskStatus.Overdue\r\n                    ).length;\r\n                });\r\n\r\n                setClaimTasks(tasks);\r\n            } catch (error) {\r\n                await toast.error(Common.getErrorMessage(error));\r\n            } finally {\r\n                setIsLoading(false);\r\n            }\r\n        };\r\n\r\n        // We want this function to be called whenever the query string changes, both from the user selecting something and clicking Search and if they\r\n        // search a few times and click the browser's Back button.\r\n        await getData();\r\n    }, [searchParams]);\r\n\r\n    useAsyncEffect(async () => {\r\n        // TODO: These lists will be populated from API calls\r\n        setCreatedByList(['Everyone', 'Jane Smith', 'John Doe']);\r\n        setAssignedToList([\r\n            'Everyone',\r\n            'Chris Tybur',\r\n            'John Doe',\r\n            'Julie Wilson',\r\n            'Michael Williams',\r\n            'Sam Jones',\r\n            'Sara Johnson',\r\n        ]);\r\n        setTaskTypeList(await getTaskTypes());\r\n    }, []);\r\n\r\n    const getSavedSearches = (value: string) => {\r\n        const savedSearchesData = getLocalData(SAVED_TASK_SEARCH_STORAGE_KEY);\r\n        let savedSearches: SavedTaskSearch[] = [];\r\n\r\n        if (savedSearchesData) {\r\n            try {\r\n                const savedSearchesObj = JSON.parse(savedSearchesData);\r\n\r\n                savedSearches = Object.keys(savedSearchesObj)\r\n                    .filter((key: string) => {\r\n                        return (\r\n                            value && value.trim() && key.trim().toLowerCase().indexOf(value.trim().toLowerCase()) > -1\r\n                        );\r\n                    })\r\n                    .map((item: string) => ({ name: item, value: savedSearchesObj[item] }));\r\n            } catch {}\r\n        }\r\n\r\n        return Promise.resolve(savedSearches);\r\n    };\r\n\r\n    const handleSearch = (params: TaskSearchParams) => {\r\n        if (params.searchText) {\r\n            searchParams.set('searchText', params.searchText);\r\n        } else {\r\n            searchParams.delete('searchText');\r\n        }\r\n\r\n        if (params.taskType && params.taskType !== 'All Task Types') {\r\n            searchParams.set('taskType', params.taskType);\r\n        } else {\r\n            searchParams.delete('taskType');\r\n        }\r\n\r\n        if (params.createdBy && params.createdBy !== 'Everyone') {\r\n            searchParams.set('createdBy', params.createdBy);\r\n        } else {\r\n            searchParams.delete('createdBy');\r\n        }\r\n\r\n        if (params.assignedTo && params.assignedTo !== 'Everyone') {\r\n            searchParams.set('assignedTo', params.assignedTo);\r\n        } else {\r\n            searchParams.delete('assignedTo');\r\n        }\r\n\r\n        if (params.dueDate) {\r\n            searchParams.set('dueDate', params.dueDate);\r\n        } else {\r\n            searchParams.delete('dueDate');\r\n        }\r\n\r\n        setSearchParams(searchParams);\r\n        setIsLoading(true);\r\n    };\r\n\r\n    const handleRunSavedSearch = () => {\r\n        if (selectedTaskSearch.name) {\r\n            setSearchParams(selectedTaskSearch.value);\r\n            setIsLoading(true);\r\n        }\r\n    };\r\n\r\n    const columns: TableColumn<IClaimTask>[] = [\r\n        {\r\n            name: '',\r\n            cell: row =>\r\n                row.Status && row.Status.toString() === TaskStatus.Overdue ? <div className='overdue-icon' /> : null,\r\n            width: '26px',\r\n            style: {\r\n                justifyContent: 'end',\r\n                padding: 0,\r\n            },\r\n        },\r\n        {\r\n            name: 'Status',\r\n            cell: row =>\r\n                row.Status ? (\r\n                    row.Status.toString()\r\n                ) : (\r\n                    <Skeleton height={skeletonHeight} containerClassName='skeleton-container' />\r\n                ),\r\n        },\r\n        {\r\n            name: 'Due Date',\r\n            cell: row =>\r\n                row.DueDate ? (\r\n                    dayjs(row.DueDate, 'MM-DD-YYYY').format('M/D/YYYY')\r\n                ) : (\r\n                    <Skeleton height={skeletonHeight} containerClassName='skeleton-container' />\r\n                ),\r\n            width: '110px',\r\n            style: {\r\n                fontWeight: 'bold',\r\n            },\r\n        },\r\n        {\r\n            name: 'Assigned To / On',\r\n            cell: row =>\r\n                row.AssignedTo ? (\r\n                    <div>\r\n                        <div className='bold'>{row.AssignedTo}</div>\r\n                        <div className='secondary-cell-value'>{row.AssignedOn}</div>\r\n                    </div>\r\n                ) : (\r\n                    <Skeleton height={skeletonHeight} containerClassName='skeleton-container' />\r\n                ),\r\n        },\r\n        {\r\n            name: 'Task Type',\r\n            cell: row =>\r\n                row.TaskType ? (\r\n                    row.TaskType\r\n                ) : (\r\n                    <Skeleton height={skeletonHeight} containerClassName='skeleton-container' />\r\n                ),\r\n            style: {\r\n                fontWeight: 'bold',\r\n            },\r\n        },\r\n        {\r\n            name: 'Claim / Policy',\r\n            cell: row =>\r\n                row.ClaimNumber ? (\r\n                    <div>\r\n                        <div className='bold'>{row.ClaimNumber}</div>\r\n                        <div className='secondary-cell-value'>{row.PolicyNumber}</div>\r\n                    </div>\r\n                ) : (\r\n                    <Skeleton height={skeletonHeight} containerClassName='skeleton-container' />\r\n                ),\r\n            width: '170px',\r\n        },\r\n        {\r\n            name: 'FRISS Score',\r\n            cell: row =>\r\n                row.FrissScore !== undefined ? (\r\n                    <span\r\n                        className={`${\r\n                            row.FrissScore >= FRISS_SCORE_WARNING_THRESHOLD ? 'friss-score-warning' : undefined\r\n                        }`}\r\n                    >{`${row.FrissScore}%`}</span>\r\n                ) : (\r\n                    <Skeleton height={skeletonHeight} containerClassName='skeleton-container' />\r\n                ),\r\n            width: '115px',\r\n            style: {\r\n                fontWeight: 'bold',\r\n            },\r\n        },\r\n        {\r\n            name: 'Created By / On',\r\n            cell: row =>\r\n                row.CreatedBy ? (\r\n                    <div>\r\n                        <div className='bold'>{row.CreatedBy}</div>\r\n                        <div className='secondary-cell-value'>{row.CreatedOn}</div>\r\n                    </div>\r\n                ) : (\r\n                    <Skeleton height={skeletonHeight} containerClassName='skeleton-container' />\r\n                ),\r\n        },\r\n        {\r\n            name: 'Source',\r\n            cell: row =>\r\n                row.Source ? row.Source : <Skeleton height={skeletonHeight} containerClassName='skeleton-container' />,\r\n            width: '115px',\r\n        },\r\n        // TODO: Implement the action menu\r\n        // {\r\n        //     name: '',\r\n        //     cell: row => row.ClaimNumber ? (\r\n        //         <button onClick={() => {}}>\r\n        //             <Svg path='/images/overflow-menu.svg' alt='Action menu' className='action-menu-icon' />\r\n        //         </button>) :\r\n        //         <Skeleton height={skeletonHeight} width='24px' containerClassName='skeleton-container' />,\r\n        //     width: '38px',\r\n        //     style: {\r\n        //         justifyContent: 'start',\r\n        //         padding: 0,\r\n        //\r\n        //         button: {\r\n        //             border: 'none',\r\n        //             backgroundColor: 'transparent',\r\n        //             padding: 0\r\n        //         }\r\n        //     }\r\n        // }\r\n    ];\r\n\r\n    const customStyles = {\r\n        table: {\r\n            style: {\r\n                border: '1px solid #d9d9e9',\r\n            },\r\n        },\r\n        headRow: {\r\n            style: {\r\n                '& .rdt_TableCol:first-child': {\r\n                    justifyContent: 'end',\r\n                    padding: 0,\r\n                },\r\n            },\r\n        },\r\n    };\r\n\r\n    return (\r\n        <div className='claims-dashboard-tasks'>\r\n            <div className='tasks-header'>\r\n                <div className='header-title'>\r\n                    TASKS\r\n                    {/*<div>*/}\r\n                    {/*    <Button onClick={() => setTaskFormOpen(true)}>Add Task</Button>*/}\r\n                    {/*</div>*/}\r\n                </div>\r\n\r\n                {!searchFormOpen && (\r\n                    <div className='saved-search-container'>\r\n                        <div className='open-search-button'>\r\n                            <button onClick={() => setSearchFormOpen(true)} className='claims-icon-button'>\r\n                                <SearchIcon />\r\n                            </button>\r\n                        </div>\r\n\r\n                        <div className='horizontal-separator' />\r\n\r\n                        <div className='saved-search-input'>\r\n                            <AutoComplete<SavedTaskSearch>\r\n                                id='claims-task-saved-search-input'\r\n                                name='saved-search'\r\n                                label=''\r\n                                value={form.savedSearch}\r\n                                suggestions={getSavedSearches}\r\n                                placeholder='Type to find a saved search'\r\n                                getItemId={item => item.name}\r\n                                getItemText={item => item.name}\r\n                                autoComplete={new Date().getTime().toString()}\r\n                                onTextChange={value => {\r\n                                    set('savedSearch', value);\r\n\r\n                                    if (value === '') {\r\n                                        setSelectedTaskSearch({ name: '', value: '' });\r\n                                    }\r\n                                }}\r\n                                onSelect={value => {\r\n                                    set('savedSearch', value.name);\r\n                                    setSelectedTaskSearch(value);\r\n                                }}\r\n                            />\r\n                        </div>\r\n\r\n                        <div className='run-search-button'>\r\n                            <Button onClick={handleRunSavedSearch} iconButton={true} tooltipMessage='Run saved search'>\r\n                                <KeyboardArrowRightIcon />\r\n                            </Button>\r\n                        </div>\r\n                    </div>\r\n                )}\r\n\r\n                {searchFormOpen && (\r\n                    <div className='close-search-button'>\r\n                        <button onClick={() => setSearchFormOpen(false)} className='claims-icon-button close-button'>\r\n                            <CloseIcon />\r\n                        </button>\r\n                    </div>\r\n                )}\r\n            </div>\r\n\r\n            <div className={`search-form-container${searchFormOpen ? ' search-form-visible' : ''}`}>\r\n                {searchFormOpen && (\r\n                    <div className='search-form'>\r\n                        <TaskSearchForm\r\n                            createdByList={createdByList}\r\n                            assignedToList={assignedToList}\r\n                            taskTypeList={['All Task Types', ...taskTypeList]}\r\n                            isLoading={isLoading}\r\n                            onSubmit={handleSearch}\r\n                        />\r\n                    </div>\r\n                )}\r\n            </div>\r\n\r\n            <Modal\r\n                isOpen={taskFormOpen}\r\n                title='New Task'\r\n                onOpenChange={(isOpen: boolean) => setTaskFormOpen(isOpen)}\r\n                isDismissable={false}\r\n                isKeyboardDismissable={false}\r\n            >\r\n                <TaskForm\r\n                    onClose={() => setTaskFormOpen(false)}\r\n                    assignedToList={assignedToList}\r\n                    taskTypeList={taskTypeList}\r\n                />\r\n            </Modal>\r\n\r\n            <Table\r\n                columns={columns}\r\n                data={claimTasks}\r\n                noDataElement={<NoData message='No tasks match the current filter criteria.' />}\r\n                loading={isLoading}\r\n                hasMore={false}\r\n                loadingMore={false}\r\n                customStyles={customStyles}\r\n            />\r\n        </div>\r\n    );\r\n};\r\n","import { produce } from 'immer';\r\nimport { useReducer } from 'react';\r\n\r\nimport {\r\n    Action,\r\n    ActionType,\r\n    ClaimsDashboardReducer,\r\n    ClaimsDashboardState,\r\n    InitialState,\r\n    MutableState,\r\n} from '@app/Views/ClaimsDashboard/models';\r\n\r\nexport const useClaimsDashboardReducer = (): ClaimsDashboardReducer => {\r\n    const initial = InitialState;\r\n    const [state, dispatch] = useReducer(reducer, initial);\r\n\r\n    return {\r\n        state,\r\n        update: (updater: (state: MutableState) => void) => dispatch({ type: ActionType.Update, updater }),\r\n        revert: () => dispatch({ type: ActionType.Revert }),\r\n    };\r\n\r\n    function reducer(state: ClaimsDashboardState, action: Action): ClaimsDashboardState {\r\n        const { type, updater } = action;\r\n\r\n        switch (type) {\r\n            case ActionType.Update:\r\n                if (!updater) {\r\n                    return { ...state };\r\n                }\r\n\r\n                return produce(state, draft => {\r\n                    updater(draft);\r\n                });\r\n            case ActionType.Revert:\r\n                return { ...initial };\r\n            default:\r\n                throw new Error(ActionType[action.type] + ' action not implemented.');\r\n        }\r\n    }\r\n};\r\n","import { Sidebar } from '@app/Components/Sidebar';\r\nimport { Path } from '@app/Views';\r\nimport { ClaimTasks } from '@app/Views/ClaimsDashboard/ClaimTasks';\r\nimport { ClaimsDashboardContext } from '@app/Views/ClaimsDashboard/models';\r\nimport { useClaimsDashboardReducer } from '@app/Views/ClaimsDashboard/reducer';\r\nimport Burger from '@legacy/Components/Menus/NavbarComponents/Burger';\r\nimport { Svg } from '@legacy/Components/Svg';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport { Drawer } from '@webkit/index';\r\nimport { useState } from 'react';\r\nimport { Navigate, Route, Routes, useLocation, useNavigate } from 'react-router-dom-v5-compat';\r\nimport './style.scss';\r\n\r\nexport const ClaimsDashboardComponent = () => {\r\n    const [mobileMenuOpen, setMobileMenuOpen] = useState<boolean>(false);\r\n    const reducer = useClaimsDashboardReducer();\r\n    const navigate = useNavigate();\r\n    const location = useLocation();\r\n\r\n    const sidebarNodes = [\r\n        {\r\n            title: 'Tasks',\r\n            itemCountProperty: 'taskCount',\r\n            itemSubCountProperty: 'overdueTaskCount',\r\n            // TODO: Add logic here when we have more than one node for the sidebar\r\n            onClick: () => {},\r\n            icon: (\r\n                <Svg\r\n                    path='/images/tasks.svg'\r\n                    className={`tasks-icon${location.pathname.endsWith('/tasks') ? ' current-page' : ''}`}\r\n                    alt='Tasks'\r\n                    unstyled={true}\r\n                />\r\n            ),\r\n        },\r\n    ];\r\n\r\n    const handleOpenMobileMenu = () => {\r\n        setMobileMenuOpen(true);\r\n    };\r\n\r\n    const handleCloseMobileMenu = () => {\r\n        setMobileMenuOpen(false);\r\n    };\r\n\r\n    return (\r\n        <ClaimsDashboardContext.Provider value={reducer}>\r\n            <div className='claims-container'>\r\n                <Drawer isOpen={mobileMenuOpen} onClose={handleCloseMobileMenu} anchor='left'>\r\n                    <Sidebar\r\n                        agentTitle='Claims Admin'\r\n                        pageTitle='Claims'\r\n                        nodes={sidebarNodes}\r\n                        className='claims-sidebar-mobile'\r\n                        stateContext={ClaimsDashboardContext}\r\n                        includeCloseButton={true}\r\n                        onCloseClick={handleCloseMobileMenu}\r\n                        onLogoClick={() => navigate('/')}\r\n                    />\r\n                </Drawer>\r\n\r\n                <Sidebar\r\n                    agentTitle='Claims Admin'\r\n                    pageTitle='Claims'\r\n                    nodes={sidebarNodes}\r\n                    className='claims-sidebar'\r\n                    stateContext={ClaimsDashboardContext}\r\n                    onLogoClick={() => navigate('/')}\r\n                />\r\n\r\n                <div className='claims-content'>\r\n                    <div className='mobile-menu-button'>\r\n                        <Burger clickFn={handleOpenMobileMenu} morphIcon={false} />\r\n                    </div>\r\n\r\n                    <Routes>\r\n                        <Route path='/tasks' element={<ClaimTasks />} />\r\n                        <Route path='*' element={<Navigate to='/claims-dashboard/tasks' />} />\r\n                    </Routes>\r\n                </div>\r\n            </div>\r\n        </ClaimsDashboardContext.Provider>\r\n    );\r\n};\r\n\r\nexport const ClaimsDashboard = {\r\n    path: Path.ClaimsDashboard,\r\n    auth: AccessRole.Agent,\r\n    element: <ClaimsDashboardComponent />,\r\n    noTransition: true,\r\n    hideNavbar: true,\r\n    hideFooter: true,\r\n};\r\n","import * as React from 'react';\r\nimport { FunctionComponent } from 'react';\r\nimport './style.scss';\r\n\r\nexport const HeroText: FunctionComponent<React.PropsWithChildren> = ({ children }) => (\r\n    <div className='landing-text'>{children}</div>\r\n);\r\n","import * as React from 'react';\r\nimport { PropsWithChildren } from 'react';\r\nimport './style.scss';\r\n\r\nexport function LandingContent({ children }: PropsWithChildren<{ children }>) {\r\n    return <div className='landing-content'>{children}</div>;\r\n}\r\n","import * as React from 'react';\r\nimport { PropsWithChildren } from 'react';\r\nimport './style.scss';\r\n\r\nexport function LandingLayout({ children }: PropsWithChildren<{ children }>) {\r\n    return <div className='landing-layout'>{children}</div>;\r\n}\r\n","import { ProductLine } from '@business/CommonSets';\r\nimport * as React from 'react';\r\nimport './style.scss';\r\n\r\ntype Props = {\r\n    product: ProductLine;\r\n} & React.PropsWithChildren;\r\n\r\nexport function LandingViewWrapper({ product, children }: Props) {\r\n    const backgroundImage = React.useMemo(\r\n        () =>\r\n            product.switch<string>({\r\n                onHomeowner: () => '/images/homeowner-background.webp',\r\n                onCommercial: () => '/images/commercial-background.webp',\r\n                onFlood: () => '/images/flood-background.webp',\r\n            }),\r\n        [product]\r\n    );\r\n\r\n    return (\r\n        <div\r\n            className='landing-view-wrapper'\r\n            style={{\r\n                padding: 0,\r\n                backgroundImage: `linear-gradient(to bottom, rgba(87, 118, 1, 1) 50%, rgba(87, 118, 1, 1) 50%, rgba(87, 118, 1, 0.3) 100%), url(\"${backgroundImage}\")`,\r\n            }}\r\n        >\r\n            <div className='view-wrapper'>{children}</div>\r\n        </div>\r\n    );\r\n}\r\n","import { Svg } from '@legacy/Components/Svg';\r\nimport { iconPaths } from '@shared/Constants';\r\nimport { FunctionComponent } from 'react';\r\nimport './style.scss';\r\n\r\nexport const Logo: FunctionComponent = () => (\r\n    <Svg className='landing-logo' path={iconPaths.swyfftShieldLogo} unstyled alt='Swyfft' />\r\n);\r\n","import { ProductLine } from '@business/CommonSets';\r\nimport { Svg } from '@legacy/Components/Svg';\r\nimport * as React from 'react';\r\n\r\ntype Props = {\r\n    product: ProductLine;\r\n};\r\n\r\nexport function ProductHeader({ product }: Props) {\r\n    const icon = React.useMemo(\r\n        () =>\r\n            product.switch<string>({\r\n                onHomeowner: () => '/images/homeowner-icon.svg',\r\n                onCommercial: () => '/images/commercial-icon.svg',\r\n                onFlood: () => '/images/flood-icon.svg',\r\n            }),\r\n        [product]\r\n    );\r\n\r\n    return (\r\n        <div className='w-full border-solid border-0 border-b-[1px] border-[#799134] h-9 mb-[20px] text-white font-sans text-sm flex gap-1'>\r\n            <Svg path={icon} alt='Flood' className='w-4 h-4 mt-2' />\r\n\r\n            <span className='flex-1 tracking-[1px] leading-[36px] height-[36px] inline-block align-middle'>{`${product.value} Insurance`}</span>\r\n        </div>\r\n    );\r\n}\r\n","import * as React from 'react';\r\nimport { PropsWithChildren } from 'react';\r\nimport './style.scss';\r\n\r\nexport function LandingFooter({ children }: PropsWithChildren<{ children }>) {\r\n    return <div className='landing-footer'>{children}</div>;\r\n}\r\n","import { useContext } from 'react';\r\n\r\nimport { getAddressMatches, getExistingCommercialQuotes } from '@api/CommercialApi';\r\nimport { AppSettingsContext } from '@app/State/Context';\r\nimport { getQuotePath } from '@app/Views';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport * as Common from '@shared/Common';\r\nimport { toAddress } from '@shared/Common';\r\nimport { pages } from '@shared/Constants';\r\nimport { useNavigateWithParams } from '@shared/Hooks';\r\n\r\nimport { IDropdownQuoteSummaryItem, PropertyData } from '@shared/Models';\r\nimport { CommercialBuildingAddressInputProps, CommercialBuildingAddressResult } from './models';\r\n\r\nlet debounce: any;\r\n\r\nexport function useCommercialBuildingAddressInput(props: CommercialBuildingAddressInputProps) {\r\n    const { reducer, onError } = props,\r\n        { setWithoutValidation } = reducer,\r\n        appSettings = useContext(AppSettingsContext),\r\n        navigate = useNavigateWithParams();\r\n\r\n    return {\r\n        getSuggestions,\r\n        onTextChange,\r\n        onSelect,\r\n    };\r\n\r\n    async function getSuggestions(filter: string | undefined, signal: AbortSignal) {\r\n        if (!filter) return [];\r\n\r\n        try {\r\n            const { existingQuotes, addresses } = await new Promise<{\r\n                    existingQuotes: IDropdownQuoteSummaryItem[];\r\n                    addresses: PropertyData[];\r\n                }>(resolve => {\r\n                    if (debounce) clearTimeout(debounce);\r\n\r\n                    debounce = setTimeout(async () => {\r\n                        const [existingQuotes, addresses] = await Promise.all([\r\n                            getExistingCommercialQuotes(filter, signal),\r\n                            getAddressMatches(filter, signal),\r\n                        ]);\r\n                        resolve({ existingQuotes, addresses });\r\n                    }, 300);\r\n                }),\r\n                quoteResults = existingQuotes.map(q => ({ address: toAddress(q.Address), quoteId: q.QuoteId })),\r\n                addressResults = addresses.map(a => ({ address: a.FullAddress, addressKey: a.AddressKey }));\r\n\r\n            return [...quoteResults, ...addressResults];\r\n        } catch (e) {\r\n            await onError(e);\r\n            return [];\r\n        }\r\n    }\r\n\r\n    function onTextChange(value: string) {\r\n        setWithoutValidation('buildingAddress', value);\r\n    }\r\n\r\n    function onSelect(result: CommercialBuildingAddressResult) {\r\n        if (result.quoteId) {\r\n            if (appSettings?.newCommercialQuotePageEnabled) {\r\n                const path = getQuotePath(1);\r\n                navigate(path, { product: ProductLine.Commercial.lowercaseName, quoteId: result.quoteId });\r\n            } else {\r\n                Common.navigate(pages.LegacyCommercialQuote(result.quoteId));\r\n            }\r\n\r\n            return;\r\n        }\r\n\r\n        setWithoutValidation('buildingAddress', result.address);\r\n    }\r\n}\r\n","import { AppSettingsContext } from '@app/State/Context';\r\nimport { getPath, Path } from '@app/Views';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { pages } from '@shared/Constants';\r\nimport { CheckIcon, Link } from '@webkit/index';\r\nimport clsx from 'clsx';\r\nimport * as React from 'react';\r\nimport { CommercialBuildingAddressResult } from './models';\r\n\r\ntype Props = {\r\n    result: CommercialBuildingAddressResult;\r\n};\r\n\r\nexport function CommercialBuildingAddressItem(props: Props) {\r\n    const { address, quoteId } = props.result,\r\n        appSettings = React.useContext(AppSettingsContext);\r\n\r\n    return (\r\n        <div className={clsx(quoteId && 'grid grid-cols-3 gap-3 items-center')}>\r\n            <div className='inline-flex gap-3 col-span-2'>\r\n                {quoteId && <CheckIcon fontSize='small' className='text-brand-green-300' />}\r\n                <span>{address}</span>\r\n            </div>\r\n\r\n            {quoteId && (\r\n                <Link href={getQuoteUri()} size='sm'>\r\n                    Edit Quote\r\n                </Link>\r\n            )}\r\n        </div>\r\n    );\r\n\r\n    function getQuoteUri() {\r\n        if (!quoteId) throw new Error('Missing quote ID.');\r\n\r\n        return appSettings?.newCommercialQuotePageEnabled\r\n            ? getPath(Path.Customize, { product: ProductLine.Commercial.lowercaseName, quoteId })\r\n            : pages.LegacyCommercialQuote(quoteId);\r\n    }\r\n}\r\n","import { AutoComplete } from '@webkit/index';\r\nimport { useCommercialBuildingAddressInput } from './hook';\r\nimport { CommercialBuildingAddressItem } from './item';\r\nimport { CommercialBuildingAddressInputProps, CommercialBuildingAddressResult } from './models';\r\n\r\nexport function CommercialBuildingAddressInput(props: CommercialBuildingAddressInputProps) {\r\n    const { form } = props.reducer,\r\n        { getSuggestions, onTextChange, onSelect } = useCommercialBuildingAddressInput(props);\r\n\r\n    return (\r\n        <AutoComplete<CommercialBuildingAddressResult>\r\n            placeholder='Type your address'\r\n            id='building-address-input'\r\n            value={form.buildingAddress}\r\n            suggestions={getSuggestions}\r\n            getItemId={result => result.address}\r\n            getItemText={result => result.address}\r\n            getItemComponent={result => <CommercialBuildingAddressItem result={result} />}\r\n            onTextChange={onTextChange}\r\n            onSelect={onSelect}\r\n            autoComplete='off'\r\n            autoFocus\r\n        />\r\n    );\r\n}\r\n","import { getConstructionTypes } from '@api/CommercialApi';\r\nimport { useMemo } from 'react';\r\nimport { SelectConstructionTypeOption, SelectConstructionTypeProps } from './models';\r\n\r\nexport function useSelectConstructionType(props: SelectConstructionTypeProps) {\r\n    const { setWithoutValidation } = props.reducer,\r\n        options = useMemo(async () => await getConstructionTypes(), []);\r\n\r\n    return {\r\n        getSuggestions,\r\n        onTextChange,\r\n        onSelect,\r\n    };\r\n\r\n    async function getSuggestions(filter: string | undefined) {\r\n        return (await options)\r\n            .map(option => ({ id: option, value: option }))\r\n            .filter(option => option.value.toLowerCase().includes((filter ?? '').toLowerCase()));\r\n    }\r\n\r\n    function onTextChange(text: string) {\r\n        setWithoutValidation('constructionType', text?.toString() || '');\r\n    }\r\n\r\n    function onSelect(result: SelectConstructionTypeOption) {\r\n        setWithoutValidation('constructionType', result.value);\r\n    }\r\n}\r\n","import { ComboBox } from '@webkit/index';\r\nimport { useSelectConstructionType } from './hook';\r\nimport { SelectConstructionTypeOption, SelectConstructionTypeProps } from './models';\r\n\r\nexport function SelectConstructionType(props: SelectConstructionTypeProps) {\r\n    const { form } = props.reducer,\r\n        { getSuggestions, onTextChange, onSelect } = useSelectConstructionType(props);\r\n\r\n    return (\r\n        <ComboBox<SelectConstructionTypeOption>\r\n            id='construction-type-input'\r\n            placeholder='Construction Type'\r\n            value={form.constructionType}\r\n            suggestions={getSuggestions}\r\n            getItemId={result => result.id}\r\n            getItemText={result => result.value}\r\n            onTextChange={onTextChange}\r\n            onSelect={onSelect}\r\n        />\r\n    );\r\n}\r\n","import { commercialGeneralLiabilityTypes } from '@shared/Constants';\r\nimport { ReducerType } from '@shared/Hooks';\r\nimport { CommercialLandingForm } from '../../models';\r\n\r\nexport type SelectGeneralLiabilityProps = {\r\n    reducer: ReducerType<CommercialLandingForm>;\r\n};\r\n\r\nexport type SelectGeneralLiabilityOption = {\r\n    id: string;\r\n    value: string;\r\n};\r\n\r\nexport const selectGeneralLiabilityOptions: SelectGeneralLiabilityOption[] = Object.entries(\r\n    commercialGeneralLiabilityTypes\r\n).map(([id, value]) => ({\r\n    id,\r\n    value,\r\n}));\r\n","import { SelectGeneralLiabilityOption, selectGeneralLiabilityOptions, SelectGeneralLiabilityProps } from './models';\r\n\r\nexport function useSelectGeneralLiability(props: SelectGeneralLiabilityProps) {\r\n    const { setWithoutValidation } = props.reducer;\r\n\r\n    return {\r\n        getSuggestions,\r\n        onTextChange,\r\n        onSelect,\r\n    };\r\n\r\n    function getSuggestions(filter: string | undefined) {\r\n        return selectGeneralLiabilityOptions.filter(option =>\r\n            option.value.toLowerCase().includes((filter ?? '').toLowerCase())\r\n        );\r\n    }\r\n\r\n    function onTextChange(text: string) {\r\n        setWithoutValidation('generalLiabilityCoverage', text?.toString() || '');\r\n    }\r\n\r\n    function onSelect(result: SelectGeneralLiabilityOption) {\r\n        setWithoutValidation('generalLiabilityCoverage', result.value);\r\n    }\r\n}\r\n","import { ComboBox } from '@webkit/index';\r\nimport { useSelectGeneralLiability } from './hook';\r\nimport { SelectGeneralLiabilityOption, SelectGeneralLiabilityProps } from './models';\r\n\r\nexport function SelectGeneralLiability(props: SelectGeneralLiabilityProps) {\r\n    const { form } = props.reducer,\r\n        { getSuggestions, onTextChange, onSelect } = useSelectGeneralLiability(props);\r\n\r\n    return (\r\n        <ComboBox<SelectGeneralLiabilityOption>\r\n            id='general-liability-input'\r\n            placeholder='General Liability'\r\n            value={form.generalLiabilityCoverage}\r\n            suggestions={getSuggestions}\r\n            getItemId={result => result.id}\r\n            getItemText={result => result.value}\r\n            onTextChange={onTextChange}\r\n            onSelect={onSelect}\r\n        />\r\n    );\r\n}\r\n","import { SelectLessorsRiskOption, SelectLessorsRiskProps } from './models';\r\n\r\nexport function useLessorsRisk(props: SelectLessorsRiskProps) {\r\n    const { reducer } = props,\r\n        { form, setWithoutValidation } = reducer;\r\n\r\n    return {\r\n        form,\r\n        getSuggestions,\r\n        onTextChange,\r\n        onSelect,\r\n    };\r\n\r\n    function getSuggestions(filter: string | undefined) {\r\n        return ['Yes', 'No']\r\n            .filter(option => !filter || option.toLowerCase().includes(filter.toLowerCase()))\r\n            .map(option => ({ id: option === 'Yes', value: option }));\r\n    }\r\n\r\n    function onTextChange(text: string) {\r\n        setWithoutValidation('lessorsRisk', text?.toString() || '');\r\n    }\r\n\r\n    function onSelect(result: SelectLessorsRiskOption) {\r\n        setWithoutValidation('lessorsRisk', result.value);\r\n    }\r\n}\r\n","import { ComboBox } from '@webkit/index';\r\nimport { useLessorsRisk } from './hook';\r\nimport { SelectLessorsRiskOption, SelectLessorsRiskProps } from './models';\r\n\r\nexport function SelectLessorsRisk(props: SelectLessorsRiskProps) {\r\n    const { form, getSuggestions, onTextChange, onSelect } = useLessorsRisk(props);\r\n\r\n    return (\r\n        <ComboBox<SelectLessorsRiskOption>\r\n            id='lessors-risk'\r\n            placeholder={`Lessor's Risk?`}\r\n            value={form.lessorsRisk}\r\n            suggestions={getSuggestions}\r\n            getItemId={result => result.id.toString()}\r\n            getItemText={result => result.value}\r\n            onTextChange={onTextChange}\r\n            onSelect={onSelect}\r\n        />\r\n    );\r\n}\r\n","import { getOccupancyTypes, getOccupancyTypeValue, occupancySupportsMultipleUnits } from '@api/CommercialApi';\r\nimport { SelectOccupancyTypeProps } from './models';\r\n\r\nexport function useSelectOccupancyType(props: SelectOccupancyTypeProps) {\r\n    const { reducer, setUnitCountVisible } = props,\r\n        { setWithoutValidation } = reducer;\r\n\r\n    return {\r\n        getCategoryData: getOccupancyTypes,\r\n        onSelectionChange,\r\n    };\r\n\r\n    async function onSelectionChange(selection: string) {\r\n        setWithoutValidation('occupancyType', selection);\r\n        setUnitCountVisible(await occupancySupportsMultipleUnits(selection));\r\n        props.setOccupancyTypeValue(await getOccupancyTypeValue(selection));\r\n    }\r\n}\r\n","import { CategorySelect } from '@webkit/index';\r\nimport { useSelectOccupancyType } from './hook';\r\nimport { SelectOccupancyTypeProps } from './models';\r\n\r\nexport function SelectOccupancyType(props: SelectOccupancyTypeProps) {\r\n    const { form } = props.reducer,\r\n        { getCategoryData, onSelectionChange } = useSelectOccupancyType(props);\r\n\r\n    return (\r\n        <CategorySelect\r\n            id='occupancy-type-input'\r\n            placeholder='Occupancy Type'\r\n            value={form.occupancyType}\r\n            onSelectionChange={onSelectionChange}\r\n            getCategoryData={getCategoryData}\r\n        />\r\n    );\r\n}\r\n","import { ReducerType } from '@shared/Hooks';\r\nimport { CommercialLandingForm } from '../../models';\r\n\r\nexport type SelectSwimmingPoolCountProps = {\r\n    reducer: ReducerType<CommercialLandingForm>;\r\n};\r\n\r\nexport type SelectSwimmingPoolCountItemType = {\r\n    id: string;\r\n    value: string;\r\n};\r\n\r\nexport const selectSwimmingPoolCountOptions: SelectSwimmingPoolCountItemType[] = ['0', '1', '2', '3', '4'].map(\r\n    (value, index) => ({\r\n        id: index.toString(),\r\n        value,\r\n    })\r\n);\r\n","import {\r\n    SelectSwimmingPoolCountItemType,\r\n    selectSwimmingPoolCountOptions,\r\n    SelectSwimmingPoolCountProps,\r\n} from './models';\r\n\r\nexport function useSelectSwimmingPoolCount(props: SelectSwimmingPoolCountProps) {\r\n    const { reducer } = props;\r\n\r\n    return {\r\n        getSuggestions,\r\n        onTextChange,\r\n        onSelect,\r\n    };\r\n\r\n    function getSuggestions(filter: string | undefined) {\r\n        return selectSwimmingPoolCountOptions.filter(option =>\r\n            option.value.toLowerCase().includes((filter ?? '').toLowerCase())\r\n        );\r\n    }\r\n\r\n    function onTextChange(text: string) {\r\n        reducer.setWithoutValidation('numberOfSwimmingPools', text?.toString() || '');\r\n    }\r\n\r\n    function onSelect(result: SelectSwimmingPoolCountItemType) {\r\n        reducer.setWithoutValidation('numberOfSwimmingPools', result.value);\r\n    }\r\n}\r\n","import { ComboBox } from '@webkit/index';\r\nimport { useSelectSwimmingPoolCount } from './hook';\r\nimport { SelectSwimmingPoolCountItemType, SelectSwimmingPoolCountProps } from './models';\r\n\r\nexport function SelectSwimmingPoolCount(props: SelectSwimmingPoolCountProps) {\r\n    const { form } = props.reducer,\r\n        { getSuggestions, onTextChange, onSelect } = useSelectSwimmingPoolCount(props);\r\n\r\n    return (\r\n        <ComboBox<SelectSwimmingPoolCountItemType>\r\n            id='swimming-pool-count-input'\r\n            placeholder='# Swimming Pools'\r\n            value={form.numberOfSwimmingPools}\r\n            suggestions={getSuggestions}\r\n            getItemId={result => result.id}\r\n            getItemText={result => result.value}\r\n            onTextChange={onTextChange}\r\n            onSelect={onSelect}\r\n        />\r\n    );\r\n}\r\n","import { LandingFooter } from '@app/Components/Landing/LandingFooter';\r\nimport { ElementDisplayFormatTypes } from '@shared/Constants';\r\nimport { ReducerType } from '@shared/Hooks';\r\nimport { Button, Text } from '@webkit/index';\r\nimport * as React from 'react';\r\nimport { CommercialLandingForm } from '../../models';\r\nimport { CommercialBuildingAddressInput } from '../BuildingAddressInput';\r\nimport { SelectConstructionType } from '../ConstructionType';\r\nimport { SelectGeneralLiability } from '../GeneralLiability';\r\nimport { SelectLessorsRisk } from '../LessorsRisk';\r\nimport { SelectOccupancyType } from '../OccupancyType';\r\nimport { SelectSwimmingPoolCount } from '../SwimmingPoolCount';\r\n\r\ntype Props = {\r\n    reducer: ReducerType<CommercialLandingForm>;\r\n    onSubmit: (event: React.FormEvent<HTMLFormElement>) => Promise<void>;\r\n    onError: (error: any) => Promise<void>;\r\n    setIsUnitCountVisible: React.Dispatch<React.SetStateAction<boolean>>;\r\n    setOccupancyTypeValue: (value: string) => void;\r\n    isUnitCountVisible: boolean;\r\n    formatNumber: (key: keyof CommercialLandingForm, formatType: string) => void;\r\n    isLoading: boolean;\r\n};\r\n\r\nexport function CommercialLandingFormComponent(props: Props) {\r\n    const {\r\n        reducer,\r\n        onSubmit,\r\n        onError,\r\n        setIsUnitCountVisible,\r\n        setOccupancyTypeValue,\r\n        isUnitCountVisible,\r\n        formatNumber,\r\n        isLoading,\r\n    } = props;\r\n\r\n    return (\r\n        <form method='post' onSubmit={onSubmit}>\r\n            {/* Begin row 1 */}\r\n            <div className='grid grid-cols-12 gap-4 md:gap-2 w-full'>\r\n                <div className='col-span-6 md:col-span-4'>\r\n                    <CommercialBuildingAddressInput reducer={reducer} onError={onError} />\r\n                </div>\r\n\r\n                <div className='col-span-6 md:col-span-3'>\r\n                    <SelectOccupancyType\r\n                        reducer={reducer}\r\n                        setUnitCountVisible={setIsUnitCountVisible}\r\n                        setOccupancyTypeValue={setOccupancyTypeValue}\r\n                    />\r\n                </div>\r\n\r\n                <div className='col-span-6 md:col-span-2'>\r\n                    <SelectLessorsRisk reducer={reducer} />\r\n                </div>\r\n\r\n                <div className='col-span-6 md:col-span-3'>\r\n                    <SelectConstructionType reducer={reducer} />\r\n                </div>\r\n            </div>\r\n            {/* End row 1 */}\r\n\r\n            {/* Begin row 2 */}\r\n            <div className='grid grid-cols-6 gap-4 md:gap-2 w-full'>\r\n                <div className='col-span-3 md:col-span-1'>\r\n                    <Text\r\n                        value={reducer.form.yearBuilt}\r\n                        placeholder='Year Built'\r\n                        onChange={value => reducer.setWithoutValidation('yearBuilt', value)}\r\n                        type='number'\r\n                        maxLength={4}\r\n                    />\r\n                </div>\r\n\r\n                <div className='col-span-3 md:col-span-1'>\r\n                    <Text\r\n                        value={reducer.form.numberOfBuildings}\r\n                        placeholder='# Buildings'\r\n                        onChange={value => reducer.setWithoutValidation('numberOfBuildings', value)}\r\n                        type='number'\r\n                    />\r\n                </div>\r\n\r\n                <div className={`${isUnitCountVisible ? 'col-span-2' : 'col-span-3'} md:col-span-1`}>\r\n                    <Text\r\n                        value={reducer.form.numberOfStories}\r\n                        placeholder='# Stories'\r\n                        onChange={value => reducer.setWithoutValidation('numberOfStories', value)}\r\n                        type='number'\r\n                    />\r\n                </div>\r\n\r\n                {isUnitCountVisible && (\r\n                    <div className='col-span-2 md:col-span-1'>\r\n                        <Text\r\n                            value={reducer.form.numberOfUnits}\r\n                            placeholder='# Units'\r\n                            onChange={value => reducer.setWithoutValidation('numberOfUnits', value)}\r\n                            type='number'\r\n                        />\r\n                    </div>\r\n                )}\r\n\r\n                <div className={`${isUnitCountVisible ? 'col-span-2' : 'col-span-3'} md:col-span-1`}>\r\n                    <Text\r\n                        value={reducer.form.squareFootage}\r\n                        placeholder='Sq. Footage'\r\n                        onChange={value => reducer.setWithoutValidation('squareFootage', value)}\r\n                        onBlur={() => formatNumber('squareFootage', ElementDisplayFormatTypes.Int)}\r\n                    />\r\n                </div>\r\n\r\n                <div className={`col-span-6 ${isUnitCountVisible ? 'md:col-span-1' : 'md:col-span-2'}`}>\r\n                    <SelectSwimmingPoolCount reducer={reducer} />\r\n                </div>\r\n            </div>\r\n            {/* End row 2 */}\r\n\r\n            {/* Begin row 3 */}\r\n            <div className='grid grid-cols-6 gap-4 md:gap-2 w-full'>\r\n                <div className='col-span-6 md:col-span-4 md:flex w-full gap-4 md:gap-2'>\r\n                    <div className='md:flex-1'>\r\n                        <Text\r\n                            value={reducer.form.buildingValue}\r\n                            placeholder='Building Value'\r\n                            onChange={value => reducer.setWithoutValidation('buildingValue', value)}\r\n                            onBlur={() => formatNumber('buildingValue', ElementDisplayFormatTypes.Float)}\r\n                            withCurrencyPrefix\r\n                        />\r\n                    </div>\r\n\r\n                    <div className='mt-4 md:flex-1 md:w-auto md:mt-0'>\r\n                        <Text\r\n                            value={reducer.form.businessPersonalPropertyLimit}\r\n                            placeholder='Bus. Personal Property'\r\n                            onChange={value => reducer.setWithoutValidation('businessPersonalPropertyLimit', value)}\r\n                            onBlur={() =>\r\n                                formatNumber('businessPersonalPropertyLimit', ElementDisplayFormatTypes.Float)\r\n                            }\r\n                            withCurrencyPrefix\r\n                        />\r\n                    </div>\r\n\r\n                    <div className='mt-4 md:flex-1 md:mt-0'>\r\n                        <Text\r\n                            value={reducer.form.businessIncomeLimit}\r\n                            placeholder='Bus. Income Limit'\r\n                            onChange={value => reducer.setWithoutValidation('businessIncomeLimit', value)}\r\n                            onBlur={() => formatNumber('businessIncomeLimit', ElementDisplayFormatTypes.Float)}\r\n                            withCurrencyPrefix\r\n                        />\r\n                    </div>\r\n                </div>\r\n\r\n                <div className='col-span-3 md:col-span-1'>\r\n                    <SelectGeneralLiability reducer={reducer} />\r\n                </div>\r\n\r\n                <div className='col-span-3 md:col-span-1'>\r\n                    <Text\r\n                        value={reducer.form.targetAnnualPremium}\r\n                        placeholder='Target Premium'\r\n                        onChange={value => reducer.setWithoutValidation('targetAnnualPremium', value)}\r\n                        onBlur={() => formatNumber('targetAnnualPremium', ElementDisplayFormatTypes.Float)}\r\n                        withCurrencyPrefix\r\n                    />\r\n                </div>\r\n            </div>\r\n            {/* End row 3 */}\r\n\r\n            <LandingFooter>\r\n                <div className='w-full grid grid-cols-6 gap-4 md:gap-2 md:mt-6'>\r\n                    <div className='col-span-6 md:col-span-2 md:col-start-5'>\r\n                        <Button id='submit-quote' type='submit' isLoading={isLoading}>\r\n                            Get E&S Commercial Quote\r\n                        </Button>\r\n                    </div>\r\n                </div>\r\n            </LandingFooter>\r\n        </form>\r\n    );\r\n}\r\n","import * as React from 'react';\r\nimport { useEffect, useState } from 'react';\r\n\r\ninterface ILoadingProps {\r\n    visible: boolean;\r\n}\r\n\r\nconst Loading: React.FC<ILoadingProps> = ({ visible }) => {\r\n    const steps = [\r\n        'locating the property',\r\n        'analyzing property data',\r\n        'assessing risk factors',\r\n        'optimizing coverage',\r\n        'creating bindable quote',\r\n    ];\r\n\r\n    const stepDuration = 4000;\r\n    const [step, setStep] = useState(0);\r\n    let interval: number;\r\n\r\n    useEffect(() => {\r\n        if (visible) {\r\n            start();\r\n        } else {\r\n            stop();\r\n        }\r\n\r\n        return () => {\r\n            stop();\r\n        };\r\n    }, [visible]);\r\n\r\n    const start = () => {\r\n        setStep(0);\r\n        interval = window.setInterval(() => {\r\n            setStep(prevStep => {\r\n                if (prevStep === steps.length - 1) {\r\n                    window.clearInterval(interval);\r\n                    return prevStep;\r\n                }\r\n                return prevStep + 1;\r\n            });\r\n        }, stepDuration);\r\n    };\r\n\r\n    const stop = () => {\r\n        if (interval) window.clearInterval(interval);\r\n        setStep(0);\r\n    };\r\n\r\n    return (\r\n        <div className={`loading-bs loading-ly ${visible ? 'loading-visible-bs' : ''}`}>\r\n            {steps.map((stepText, i) => (\r\n                <LoadingStep key={i} highlighted={i === step} visible={i <= step}>\r\n                    {stepText}\r\n                </LoadingStep>\r\n            ))}\r\n        </div>\r\n    );\r\n};\r\n\r\nconst LoadingStep: React.FC<{ highlighted: boolean; visible: boolean; children: any }> = ({\r\n    highlighted,\r\n    visible,\r\n    children,\r\n}) => {\r\n    return (\r\n        <div\r\n            className={`loading-step-bs loading-step-ly ${highlighted ? 'loading-step-highlighted-bs' : ''} ${\r\n                visible ? 'loading-step-visible-bs' : ''\r\n            }`}\r\n        >\r\n            <span>{children}</span>\r\n            <i className='first-bs'>.</i>\r\n            <i className='second-bs'>.</i>\r\n            <i className='third-bs'>.</i>\r\n        </div>\r\n    );\r\n};\r\n\r\nexport default Loading;\r\n","import {\r\n    getAddressMatches,\r\n    getOrCreateComparisonQuote,\r\n    getOrCreateQuote,\r\n    logQuoteRequestSafe,\r\n} from '@api/CommercialApi';\r\nimport { AppSettingsContext } from '@app/State/Context';\r\nimport { ProductLine, RatingType } from '@business/CommonSets';\r\nimport { buildYear } from '@business/Validation/buildYear';\r\nimport { showModalHandler } from '@legacy/Commercial/CommonHelpers';\r\nimport Alert from '@legacy/Components/Modals/Alert';\r\nimport {\r\n    addNumeralFormatting,\r\n    normalizeError,\r\n    stripCommas,\r\n    stripCountryCodeFromAddress,\r\n    stripNumeralFormatting,\r\n    validateAgainstBuildingValue,\r\n} from '@shared/Common';\r\nimport {\r\n    commercialErrorSeverityTypes,\r\n    commercialValidationParameters,\r\n    HttpStatusCodes,\r\n    pages,\r\n} from '@shared/Constants';\r\nimport { useFormReducer, useNavigateWithParams } from '@shared/Hooks';\r\nimport { CommercialQuoteCreateRequest, CommercialQuoteModel } from '@shared/Models';\r\nimport { setAddress, setQuoteId } from '@shared/Storage';\r\nimport { Rules, Value } from '@webkit/index';\r\nimport { useContext, useEffect, useMemo, useRef, useState } from 'react';\r\nimport { useBeforeUnload } from 'react-router-dom-v5-compat';\r\nimport { getQuotePath } from '..';\r\nimport { CommercialLandingForm } from './models';\r\n\r\nexport function useCommercialLanding() {\r\n    const navigate = useNavigateWithParams(),\r\n        appSettings = useContext(AppSettingsContext),\r\n        [isUnitCountVisible, setIsUnitCountVisible] = useState<boolean>(false),\r\n        [occupancyTypeValue, setOccupancyTypeValue] = useState<string>(''),\r\n        [loading, setLoading] = useState<boolean>(false),\r\n        alertRef = useRef<Alert>(),\r\n        logNoQuoteAttempt = useRef<boolean>(true),\r\n        businessPersonalPropertyLimitRules = useMemo(getBusinessPersonalPropertyLimitRules, []),\r\n        businessIncomeLimitRules = useMemo(getBusinessIncomeLimitRules, []);\r\n\r\n    const reducer = useFormReducer<CommercialLandingForm>({\r\n            buildingAddress: new Value<string>('building address', '', [Rules.required()]),\r\n            occupancyType: new Value<string>('occupancy', '', [\r\n                Rules.required(undefined, 'Please select a value for occupancy type.'),\r\n            ]),\r\n            lessorsRisk: new Value<string>(\"lessor's risk\", '', [Rules.required()]),\r\n            constructionType: new Value<string>('construction type', '', [Rules.required()]),\r\n            generalLiabilityCoverage: new Value<string>('general liability', '', [Rules.required()]),\r\n            buildingValue: new Value<string>('building value', '', [Rules.required(), Rules.currency(), Rules.min(0)]),\r\n            businessPersonalPropertyLimit: new Value<string>(\r\n                'business personal property',\r\n                '',\r\n                businessPersonalPropertyLimitRules\r\n            ),\r\n            targetAnnualPremium: new Value<string>('target premium', '', [Rules.min(0), Rules.currency()]),\r\n            businessIncomeLimit: new Value<string>('business income limit', '', businessIncomeLimitRules),\r\n            yearBuilt: new Value<string>('year built', '', [Rules.required(), buildYear()]),\r\n            numberOfBuildings: new Value<string>('number of buildings', '', [\r\n                Rules.required(),\r\n                Rules.min(0),\r\n                Rules.integer(),\r\n            ]),\r\n            squareFootage: new Value<string>('square footage', '', [\r\n                Rules.required(),\r\n                Rules.min(commercialValidationParameters.livingSpaceSurplusMin),\r\n                Rules.integer(),\r\n            ]),\r\n            numberOfUnits: new Value<string>('number of units', '', [Rules.required(), Rules.min(0), Rules.integer()]),\r\n            numberOfStories: new Value<string>('number of stories', '', [\r\n                Rules.required(),\r\n                Rules.range(1, 25),\r\n                Rules.integer(),\r\n            ]),\r\n            numberOfSwimmingPools: new Value<string>('number of swimming pools', '', [Rules.required()]),\r\n        }),\r\n        { form, validate, valid, setWithoutValidation } = reducer;\r\n\r\n    useEffect(() => {\r\n        document.title = 'Swyfft | Commercial E&S Package';\r\n    }, []);\r\n\r\n    useBeforeUnload(onBeforeUnload);\r\n\r\n    return {\r\n        reducer,\r\n        setIsUnitCountVisible,\r\n        isUnitCountVisible,\r\n        occupancyTypeValue,\r\n        setOccupancyTypeValue,\r\n        isLoading: loading,\r\n        alertRef,\r\n        formatNumber,\r\n        onSubmit,\r\n        onError,\r\n    };\r\n\r\n    async function onError(error: any) {\r\n        // TODO DRC 20250310: Add this handler to the general error handling utility we will implement with SW-35289.\r\n        // The fetch API throws an error by default when the request is aborted, so we need to handle it separately.\r\n        if (error.name === 'AbortError') return;\r\n\r\n        if (!alertRef.current) return;\r\n        const normalized = normalizeError(error);\r\n        if (normalized.code === HttpStatusCodes.aborted) return;\r\n\r\n        // TODO DRC 2/10/25: The existing error parsing methods do not work with Responses a good portion of the time.\r\n        // We need to refactor the error handling to be more consistent and reliable.\r\n        let message: string = normalized.message;\r\n        const defaultMessage = 'An unexpected error occurred. Please try again or contact support.';\r\n        if (error instanceof Response) {\r\n            // The additional try/catch blocks are necessary because the response may not be JSON or text.\r\n            try {\r\n                const response = await error.json();\r\n                message = response.ErrorMessage || response.ExceptionMessage || defaultMessage;\r\n            } catch (e) {\r\n                try {\r\n                    const text = await error.text();\r\n                    message = text || defaultMessage;\r\n                } catch (e) {\r\n                    message = defaultMessage;\r\n                }\r\n            }\r\n        }\r\n\r\n        setLoading(false);\r\n        await alertRef.current.error(message);\r\n    }\r\n\r\n    function getPertinentValidationKeys() {\r\n        const formKeys = Object.keys(form).filter(key => {\r\n            if (key === 'numberOfUnits') return isUnitCountVisible;\r\n            if (key === 'targetAnnualPremium') return !!form.targetAnnualPremium.content;\r\n            return key !== 'excludeWindHail';\r\n        });\r\n\r\n        return formKeys as (keyof CommercialLandingForm)[];\r\n    }\r\n\r\n    function validateForm() {\r\n        const validationKeys = getPertinentValidationKeys();\r\n        validationKeys.forEach(key => validate(key));\r\n        const activeElement = document.activeElement as any;\r\n        if (activeElement?.blur) activeElement.blur();\r\n    }\r\n\r\n    function handleValidQuote(quoteInstance: CommercialQuoteModel) {\r\n        setQuoteId(quoteInstance.QuoteId);\r\n        setAddress(quoteInstance.BuildingAddress);\r\n        navigate(pages.CommQuoteModify);\r\n    }\r\n\r\n    function handleInvalidQuote(quoteInstance: CommercialQuoteModel) {\r\n        setLoading(false);\r\n        return showModalHandler(\r\n            quoteInstance.ErrorMessage,\r\n            quoteInstance.Severity ? quoteInstance.Severity.m_levelName : commercialErrorSeverityTypes.Warning\r\n        );\r\n    }\r\n\r\n    function onBeforeUnload() {\r\n        if (!logNoQuoteAttempt.current) return;\r\n        logQuoteRequestSafe({\r\n            EventName: 'Commercial Page Closing With No Quote Attempt',\r\n            Address: form.buildingAddress.content,\r\n        });\r\n    }\r\n\r\n    async function onSubmit(event: React.FormEvent<HTMLFormElement>) {\r\n        event.preventDefault();\r\n        if (loading) return;\r\n\r\n        validateForm();\r\n        const validationKeys = getPertinentValidationKeys();\r\n        if (!valid(validationKeys)) return;\r\n\r\n        logNoQuoteAttempt.current = false;\r\n        setLoading(true);\r\n\r\n        try {\r\n            const addressMatches = await getAddressMatches(form.buildingAddress.content),\r\n                matchedAddress = addressMatches.find(a => {\r\n                    const match = stripCommas(a.FullAddress).toLowerCase(),\r\n                        search = stripCommas(form.buildingAddress.content).toLowerCase();\r\n                    return match.includes(search);\r\n                });\r\n\r\n            // If no address was entered and no addressKey is found, we display a message asking the user to create the address\r\n            if (addressMatches.length === 0 || !matchedAddress) {\r\n                await onError(\r\n                    'This address does not exist in our system. Please use our Address Entry page to add it, then return here to create a new quote.'\r\n                );\r\n                setLoading(false);\r\n                return;\r\n            }\r\n\r\n            const request: CommercialQuoteCreateRequest = {\r\n                AddressKey: matchedAddress.AddressKey,\r\n                BuildingAddress: stripCountryCodeFromAddress(matchedAddress.FullAddress),\r\n                Street1: matchedAddress.Street1,\r\n                Street2: matchedAddress.Street2,\r\n                City: matchedAddress.City,\r\n                StateCode: matchedAddress.StateCode,\r\n                Zip: matchedAddress.Zip,\r\n                BuildingType: 'Apartment with Retail',\r\n                Occupancy: occupancyTypeValue,\r\n                ConstructionType: form.constructionType.content,\r\n                BuildingValue: stripNumeralFormatting(form.buildingValue.content),\r\n                BusinessPersonalPropertyLimit: stripNumeralFormatting(form.businessPersonalPropertyLimit.content),\r\n                TargetAnnualPremium: stripNumeralFormatting(form.targetAnnualPremium.content),\r\n                BusinessIncomeLimit: stripNumeralFormatting(form.businessIncomeLimit.content),\r\n                YearBuilt: parseInt(form.yearBuilt.content),\r\n                SquareFootage: stripNumeralFormatting(form.squareFootage.content),\r\n                NumberOfUnits: parseInt(form.numberOfUnits.content) || 0,\r\n                NumberOfStories: parseInt(form.numberOfStories.content) || 0,\r\n                SwimmingPoolCount: parseInt(form.numberOfSwimmingPools.content),\r\n                // Note that the wind exclusion control has been removed from the form, so this value is always false unless we re-introduce it later.\r\n                WindExclusion: false,\r\n                NumberOfBuildings: parseInt(form.numberOfBuildings.content) || 0,\r\n                GeneralLiabilityCoverage: form.generalLiabilityCoverage.content,\r\n                RatingType: RatingType.EAndS.value,\r\n                IsLessorsRisk: form.lessorsRisk.content === 'Yes',\r\n            };\r\n\r\n            if (appSettings?.newCommercialQuotePageEnabled) {\r\n                const comparisonQuotesModel = await getOrCreateComparisonQuote(request);\r\n                const path = getQuotePath(comparisonQuotesModel.Quotes.length);\r\n                navigate(path, {\r\n                    product: ProductLine.Commercial.lowercaseName,\r\n                    quoteId: comparisonQuotesModel.Quotes[0].QuoteId,\r\n                });\r\n            } else {\r\n                const quoteInstance = await getOrCreateQuote(request);\r\n                quoteInstance.IsOk ? handleValidQuote(quoteInstance) : handleInvalidQuote(quoteInstance);\r\n            }\r\n        } catch (error) {\r\n            await onError(error);\r\n\r\n            // The reason we don't stop loading in a finally block is to keep the loading animation\r\n            // active as the page transitions on navigation, which will happen as long as no error is thrown.\r\n            setLoading(false);\r\n        }\r\n    }\r\n\r\n    function formatNumber(key: keyof CommercialLandingForm, formatType: string) {\r\n        const value = form[key].content as string;\r\n        if (isNaN(Number(value))) return;\r\n        setWithoutValidation(key, value ? addNumeralFormatting(value, formatType) : '');\r\n    }\r\n\r\n    function getBusinessPersonalPropertyLimitRules() {\r\n        return [\r\n            Rules.required(),\r\n            Rules.min(0),\r\n            Rules.currency(),\r\n            {\r\n                id: 'building-value',\r\n                validator: (value: string) =>\r\n                    validateAgainstBuildingValue(\r\n                        stripNumeralFormatting(value),\r\n                        stripNumeralFormatting(form.buildingValue.content)\r\n                    ),\r\n                error: () => 'Business Personal Property cannot exceed 75% of Building Value.',\r\n            },\r\n        ];\r\n    }\r\n\r\n    function getBusinessIncomeLimitRules() {\r\n        return [\r\n            Rules.required(),\r\n            Rules.min(0),\r\n            Rules.currency(),\r\n            {\r\n                id: 'building-value',\r\n                validator: (value: string) =>\r\n                    validateAgainstBuildingValue(\r\n                        stripNumeralFormatting(value),\r\n                        stripNumeralFormatting(form.buildingValue.content)\r\n                    ),\r\n                error: () => 'Business Income Limit cannot exceed 75% of Building Value.',\r\n            },\r\n        ];\r\n    }\r\n}\r\n","import { HeroText } from '@app/Components/Landing/HeroText';\r\nimport { LandingContent } from '@app/Components/Landing/LandingContent';\r\nimport { LandingLayout } from '@app/Components/Landing/LandingLayout';\r\nimport { LandingViewWrapper } from '@app/Components/Landing/LandingViewWrapper';\r\nimport { Logo } from '@app/Components/Landing/Logo';\r\nimport { LayoutWrapper } from '@app/Components/LayoutWrapper';\r\nimport { ProductHeader } from '@app/Components/ProductHeader';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport Alert from '@legacy/Components/Modals/Alert';\r\nimport * as Common from '@shared/Common';\r\nimport { AlertFooterType } from '@shared/Constants';\r\nimport Portal from '@webkit/components/portal';\r\nimport { DesignContext } from '@webkit/index';\r\nimport { Path } from '..';\r\nimport { CommercialLandingFormComponent } from './Components/Form';\r\nimport Loading from './Components/Loading';\r\nimport { useCommercialLanding } from './hook';\r\nimport './style.scss';\r\n\r\nexport const CommercialLanding = {\r\n    path: Path.CommercialLanding,\r\n    element: <CommercialLandingComponent />,\r\n    auth: () => Common.isAtLeastAgent(),\r\n};\r\n\r\nexport function CommercialLandingComponent() {\r\n    const {\r\n        reducer,\r\n        setIsUnitCountVisible,\r\n        isUnitCountVisible,\r\n        setOccupancyTypeValue,\r\n        isLoading,\r\n        alertRef,\r\n        formatNumber,\r\n        onSubmit,\r\n        onError,\r\n    } = useCommercialLanding();\r\n\r\n    return (\r\n        <div className='commercial-landing-container'>\r\n            <DesignContext.Provider value='landing'>\r\n                <LandingViewWrapper product={ProductLine.Commercial}>\r\n                    <LayoutWrapper>\r\n                        <LandingLayout>\r\n                            <ProductHeader product={ProductLine.Commercial} />\r\n\r\n                            <div className='logo-container'>\r\n                                <Logo />\r\n                            </div>\r\n\r\n                            <LandingContent>\r\n                                <HeroText>\r\n                                    Using proprietary data and analytics, Swyfft can help you get{' '}\r\n                                    <span style={{ color: 'white' }}>\r\n                                        E&S commercial package insurance in under a minute.\r\n                                    </span>\r\n                                </HeroText>\r\n\r\n                                <CommercialLandingFormComponent\r\n                                    reducer={reducer}\r\n                                    onSubmit={onSubmit}\r\n                                    onError={onError}\r\n                                    setIsUnitCountVisible={setIsUnitCountVisible}\r\n                                    isUnitCountVisible={isUnitCountVisible}\r\n                                    setOccupancyTypeValue={setOccupancyTypeValue}\r\n                                    formatNumber={formatNumber}\r\n                                    isLoading={isLoading}\r\n                                />\r\n\r\n                                <Portal>\r\n                                    <Alert ref={alertRef as any} footerType={AlertFooterType.Commercial} />\r\n                                </Portal>\r\n\r\n                                <Portal>\r\n                                    <Loading visible={isLoading} />\r\n                                </Portal>\r\n                            </LandingContent>\r\n                        </LandingLayout>\r\n                    </LayoutWrapper>\r\n                </LandingViewWrapper>\r\n            </DesignContext.Provider>\r\n        </div>\r\n    );\r\n}\r\n","import { fetchAndLog, fetchAndLogWithResponse } from '@api/Fetch';\r\nimport { Address, PropertyData } from '@shared/Models';\r\n\r\n/** Retrieves the address key for an address. */\r\nexport const getAddressKey = async (address: string): Promise<string> => {\r\n    const response = await fetchAndLogWithResponse(`/api/property/address-key?address=${address}`, 'get address key');\r\n\r\n    if (!response.ok) {\r\n        throw response;\r\n    }\r\n\r\n    return await response.json();\r\n};\r\n\r\n/** Parses an address into its constituent components. */\r\nexport const parseAddress = async (address: string): Promise<Address | null> => {\r\n    return await fetchAndLog(`/api/address?address=${encodeURIComponent(address)}`, 'parse address');\r\n};\r\n\r\n/** Creates a property using the given address. */\r\nexport const createProperty = async (address: Address): Promise<PropertyData> => {\r\n    return await fetchAndLog<PropertyData>('/api/property', 'create property', {\r\n        method: 'POST',\r\n        headers: {\r\n            'Content-Type': 'application/json',\r\n        },\r\n        body: JSON.stringify(address),\r\n    });\r\n};\r\n","import { Value } from '@webkit/index';\r\nimport dayjs from 'dayjs';\r\n\r\nexport function yearBuiltValidation(yearBuilt: Value<string>) {\r\n    yearBuilt.addRule({\r\n        id: 'year-built-too-high',\r\n        validator: () => !yearBuilt.content || parseInt(yearBuilt.content) <= dayjs().year(),\r\n        error: () => `The year built must be ${dayjs().year()} or before.`,\r\n    });\r\n\r\n    yearBuilt.addRule({\r\n        id: 'year-built-too-low',\r\n        validator: () => !yearBuilt.content || parseInt(yearBuilt.content) >= 1900,\r\n        error: () => `Swyfft does not support structures built before 1900.`,\r\n    });\r\n}\r\n\r\nexport function yearBuiltAndRoofAgeValidation(yearBuilt: Value<string>, roofAge: Value<string>) {\r\n    const invalidRoofAgeOrYearBuilt = {\r\n        id: 'invalid-roof-age-or-year-built',\r\n        validator: () =>\r\n            !roofAge.content ||\r\n            !yearBuilt.content ||\r\n            parseInt(yearBuilt.content) + parseInt(roofAge.content) <= dayjs().year(),\r\n        error: () => `The roof cannot be older than the year built.`,\r\n    };\r\n\r\n    roofAge.addRule(invalidRoofAgeOrYearBuilt);\r\n    yearBuilt.addRule(invalidRoofAgeOrYearBuilt);\r\n}\r\n","import { fetchAndLog } from '@api/Fetch';\r\nimport { ValidateCityStateZipModel } from '@shared/Models';\r\n\r\nexport const validateZipCode = async (\r\n    city: string,\r\n    stateCode: string,\r\n    zipCode: string\r\n): Promise<ValidateCityStateZipModel> => {\r\n    return await fetchAndLog(\r\n        `/api/properties/validate-city-state-zip?city=${city}&stateCode=${stateCode}&zip=${zipCode}`,\r\n        'validate city state zip'\r\n    );\r\n};\r\n","import { getProperties, putProperty } from '@api/HOApi';\r\nimport { createProperty, parseAddress } from '@app/Api/Property';\r\nimport { PrimaryRouteButton, SecondaryBackButton, StepButtons } from '@app/Components/Buttons';\r\nimport { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRow } from '@app/Components/StepTile';\r\nimport { StateContext } from '@app/State';\r\nimport { yearBuiltAndRoofAgeValidation, yearBuiltValidation } from '@app/Validation';\r\nimport { DropdownFormGroup } from '@legacy/Components/FormGroups/Dropdown';\r\nimport { TextFormGroup } from '@legacy/Components/FormGroups/Text';\r\nimport { DropdownItem } from '@legacy/FormFields';\r\nimport { getMessageFromError, toKebabCase } from '@shared/Common';\r\nimport { statesByCode } from '@shared/Constants';\r\nimport {\r\n    ReducerType,\r\n    ToastContext,\r\n    useAsyncEffect,\r\n    useCreateOrGetQuotes,\r\n    usePersistentFormReducer,\r\n    useQueryString,\r\n    useRedirect,\r\n} from '@shared/Hooks';\r\nimport { Address, PropertyData, QuoteCreateRequestModel } from '@shared/Models';\r\nimport { Rule, Rules, Value } from '@webkit/index';\r\nimport * as React from 'react';\r\nimport { useContext, useEffect, useMemo, useState } from 'react';\r\nimport { useNavigate, useParams } from 'react-router-dom-v5-compat';\r\nimport { Path } from '..';\r\nimport { validateZipCode } from './api';\r\nimport './style.scss';\r\n\r\nexport type FormType = {\r\n    address: Value<string>;\r\n    city: Value<string>;\r\n    state: Value<string>;\r\n    zip: Value<string>;\r\n    livingSpace: Value<string>;\r\n    roofAge: Value<string>;\r\n    yearBuilt: Value<string>;\r\n};\r\n\r\nexport type Context = 'CreateAddress' | 'CreateAddressNoQuote' | 'EditAddress';\r\n\r\ntype CreateAddressComponentProps = {\r\n    stepDescription?: string;\r\n};\r\n\r\nexport function CreateAddressComponent({ stepDescription }: CreateAddressComponentProps) {\r\n    const navigate = useNavigate(),\r\n        { state, update } = useContext(StateContext),\r\n        toast = useContext(ToastContext),\r\n        [isInitializing, setInitializing] = useState<boolean>(true),\r\n        [isLoading, setLoading] = useState<boolean>(false),\r\n        params = useParams(),\r\n        query = useQueryString<{ livingSpace: string }>(),\r\n        redirect = useRedirect(),\r\n        { createOrGetQuotes } = useCreateOrGetQuotes(),\r\n        title = useMemo(\r\n            () => (state.createAddress.context === 'EditAddress' ? 'Edit Address' : 'Create Address'),\r\n            [state.createAddress.context]\r\n        ),\r\n        additionalRules: Rule<string>[] = useMemo(\r\n            () => (state.createAddress.context === 'CreateAddress' ? [Rules.required(), Rules.decimal()] : []),\r\n            [state.createAddress.context]\r\n        );\r\n\r\n    const reducer = usePersistentFormReducer<FormType>('create-address', {\r\n        address: new Value<string>('address', '', [Rules.required(), Rules.maxLength(50)]),\r\n        city: new Value<string>('city', '', [Rules.required(), Rules.maxLength(50)]),\r\n        state: new Value<string>('state code', '', [Rules.required(), Rules.minLength(2), Rules.maxLength(2)]),\r\n        zip: new Value<string>('zip code', '', [Rules.required(), Rules.zip()]),\r\n        livingSpace: new Value<string>('living space', '', [\r\n            Rules.required(),\r\n            Rules.decimal(),\r\n            Rules.range(500, 1000000),\r\n        ]),\r\n        roofAge: new Value<string>('roof age', '', additionalRules),\r\n        yearBuilt: new Value<string>('year built', '', additionalRules),\r\n    });\r\n\r\n    useAsyncEffect(async () => {\r\n        try {\r\n            setInitializing(true);\r\n\r\n            const a = params.address ? await parseAddress(params.address.replace(/-/g, ' ')) : null,\r\n                livingSpace = query.get('livingSpace');\r\n\r\n            if (a && livingSpace) a.LivingSpace = parseInt(livingSpace);\r\n\r\n            reducer.setWithoutValidation('address', a?.Street1 || '');\r\n            reducer.setWithoutValidation('city', a?.City || '');\r\n            reducer.setWithoutValidation('state', a?.StateCode ? a.StateCode.toLowerCase() : '');\r\n            reducer.setWithoutValidation('zip', a?.Zip || '');\r\n            reducer.setWithoutValidation(\r\n                'livingSpace',\r\n                a?.LivingSpace && !isNaN(a?.LivingSpace) ? a?.LivingSpace.toString() : ''\r\n            );\r\n            reducer.setWithoutValidation('roofAge', '');\r\n            reducer.setWithoutValidation('yearBuilt', '');\r\n        } catch (e) {\r\n            toast.error(await getMessageFromError(e));\r\n        } finally {\r\n            setInitializing(false);\r\n        }\r\n    }, []);\r\n\r\n    useEffect(() => {\r\n        if (state.createAddress.context === 'CreateAddress') {\r\n            yearBuiltValidation(reducer.form.yearBuilt);\r\n            yearBuiltAndRoofAgeValidation(reducer.form.yearBuilt, reducer.form.roofAge);\r\n        }\r\n    }, []);\r\n\r\n    return (\r\n        <Step id='create-address' title={title} className='create-address'>\r\n            <form method='post' onSubmit={submit}>\r\n                <Form loading={isInitializing} reducer={reducer} stepDescription={stepDescription} />\r\n\r\n                <StepButtons\r\n                    positive={<PrimaryRouteButton id='next' type='submit' label='Next' loading={isLoading} />}\r\n                    negative={<SecondaryBackButton id='back' label='Back' onClick={() => navigate(-1)} />}\r\n                />\r\n            </form>\r\n        </Step>\r\n    );\r\n\r\n    async function submit(e: React.FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n\r\n        reducer.validate();\r\n        if (!reducer.valid() || isLoading) return;\r\n\r\n        try {\r\n            setLoading(true);\r\n\r\n            const addressKey = state.createAddress.addressKey;\r\n            const address = {\r\n                Street1: reducer.form.address.content,\r\n                City: reducer.form.city.content,\r\n                StateCode: reducer.form.state.content,\r\n                Zip: reducer.form.zip.content,\r\n                LivingSpace: parseInt(reducer.form.livingSpace.content),\r\n                AddressKey: addressKey,\r\n            } as Address;\r\n\r\n            const quoteRequest = { ...(state.quoteRequest || {}) } as QuoteCreateRequestModel;\r\n            // Ensure the flag saying this is a Flood quote created from the homeowner quote page is set to false.\r\n            quoteRequest.FromHomeowner = false;\r\n\r\n            let context = state.createAddress.context;\r\n            if (context === 'CreateAddressNoQuote' && addressKey) {\r\n                context = 'EditAddress';\r\n                await update(state => (state.createAddress.context = context));\r\n            }\r\n\r\n            if (context === 'CreateAddress') {\r\n                quoteRequest.LivingSpace = address.LivingSpace;\r\n                quoteRequest.NonSingleFamilyResidenceConfirmed = true;\r\n                quoteRequest.RoofAge = parseInt(reducer.form.roofAge.content || '');\r\n                quoteRequest.YearBuilt = parseInt(reducer.form.yearBuilt.content || '');\r\n\r\n                await update(state => (state.quoteRequest = quoteRequest));\r\n            }\r\n\r\n            await update(state => {\r\n                state.address = address;\r\n                state.createAddress.originalZipCode = address.Zip;\r\n            });\r\n\r\n            const zipCodeSuggestions = await validateZipCode(address.City, address.StateCode, address.Zip);\r\n            if (!zipCodeSuggestions.Valid) {\r\n                await update(state => {\r\n                    state.address = address;\r\n                    state.quoteRequest = quoteRequest;\r\n                    state.createAddress = {\r\n                        ...state.createAddress,\r\n                        zipCodeSuggestions,\r\n                        originalZipCode: address.Zip,\r\n                    };\r\n                });\r\n\r\n                const encodedAddress = encodeURIComponent(toKebabCase(Address.toString(address)));\r\n                if (context === 'CreateAddress') {\r\n                    redirect(Path.ZipCodeSuggestions, {\r\n                        product: params['product'] || 'homeowner',\r\n                        address: encodedAddress,\r\n                    });\r\n                } else {\r\n                    redirect(Path.ZipCodeSuggestionsNoQuote, {\r\n                        address: encodedAddress,\r\n                    });\r\n                }\r\n\r\n                return;\r\n            }\r\n\r\n            let propertyData: PropertyData;\r\n\r\n            if (context === 'CreateAddress') {\r\n                propertyData = await createProperty(address);\r\n\r\n                // For some reason, using the spread operator at the top of this action function to create a quote request from the reducer state generates an\r\n                // object whose properties are still read-only. Attempting to set any of them with new data throws an exception. So we manually built a new quote\r\n                // request object and use that to update the state.\r\n                const newQuoteRequest: QuoteCreateRequestModel = {\r\n                    AddressKey: propertyData.AddressKey,\r\n                    Address: propertyData.FullAddress,\r\n                    NonSingleFamilyResidenceConfirmed: quoteRequest.NonSingleFamilyResidenceConfirmed,\r\n                    LivingSpace: quoteRequest.LivingSpace,\r\n                    YearBuilt: quoteRequest.YearBuilt,\r\n                    RoofAge: quoteRequest.RoofAge,\r\n                    Source: quoteRequest.Source,\r\n                    QuotePurposeId: quoteRequest.QuotePurposeId,\r\n                    InsuredNameFirst: quoteRequest.InsuredNameFirst,\r\n                    InsuredNameMiddle: quoteRequest.InsuredNameMiddle,\r\n                    InsuredNameLast: quoteRequest.InsuredNameLast,\r\n                    RatingType: quoteRequest.RatingType,\r\n                    NewLandingPage: quoteRequest.NewLandingPage,\r\n                    RequestUuid: quoteRequest.RequestUuid,\r\n                    FromHomeowner: false,\r\n                };\r\n\r\n                await update(state => (state.quoteRequest = newQuoteRequest));\r\n\r\n                return await createOrGetQuotes(newQuoteRequest);\r\n            } else {\r\n                propertyData = {\r\n                    Street1: address.Street1,\r\n                    City: address.City,\r\n                    StateCode: address.StateCode,\r\n                    Zip: address.Zip,\r\n                    LivingSpace: address.LivingSpace,\r\n                    FullAddress: Address.toString(address),\r\n                    IsSingleFamilyResidence: false,\r\n                    AddressKey: addressKey,\r\n                };\r\n\r\n                // If we know we are editing an address or the persistent form has an address key, we assume a record exists for the address so we call the\r\n                // proper endpoint. Otherwise we do a check for an existing record and if one is found, we call the proper endpoint.\r\n                if (context === 'EditAddress') {\r\n                    await putProperty(propertyData);\r\n                } else {\r\n                    const addresses = await getProperties(Address.toString(address));\r\n\r\n                    if (addresses.length > 0) {\r\n                        propertyData.AddressKey = addresses[0].AddressKey;\r\n                        await putProperty(propertyData);\r\n                    } else {\r\n                        propertyData = await createProperty(address);\r\n                        await update(state => (state.createAddress.addressKey = propertyData.AddressKey));\r\n                    }\r\n                }\r\n\r\n                redirect(Path.PreciseLocationNoQuote, {\r\n                    address: encodeURIComponent(toKebabCase(propertyData.FullAddress, true)),\r\n                });\r\n            }\r\n        } catch (e) {\r\n            toast.error(\r\n                await getMessageFromError(\r\n                    e,\r\n                    'An unexpected error occurred while creating the address. Please try again later.'\r\n                )\r\n            );\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }\r\n}\r\n\r\ntype FormProps = {\r\n    loading: boolean;\r\n    reducer: ReducerType<FormType>;\r\n    stepDescription?: string;\r\n};\r\n\r\nfunction Form({ loading, reducer, stepDescription }: FormProps) {\r\n    const { form, set, validate } = reducer,\r\n        { state } = useContext(StateContext),\r\n        title = state.createAddress.context === 'EditAddress' ? 'Edit Address' : 'Create Address';\r\n\r\n    return (\r\n        <>\r\n            <StepHeader title={title} description={stepDescription} />\r\n\r\n            <StepTileRow>\r\n                <TextFormGroup\r\n                    id='street-address'\r\n                    value={form.address}\r\n                    label='Street Address'\r\n                    loading={loading}\r\n                    onTextChange={value => set('address', value)}\r\n                />\r\n            </StepTileRow>\r\n\r\n            <StepTileRow>\r\n                <TextFormGroup\r\n                    id='city'\r\n                    value={form.city}\r\n                    label='City'\r\n                    loading={loading}\r\n                    onTextChange={value => set('city', value)}\r\n                />\r\n\r\n                <DropdownFormGroup\r\n                    id='state-code'\r\n                    label='State'\r\n                    options={Object.keys(statesByCode).map(\r\n                        s => new DropdownItem(s, s.toUpperCase(), `state-${s.toLowerCase()}`)\r\n                    )}\r\n                    onChange={(item: DropdownItem) => set('state', item.value.toString().toUpperCase())}\r\n                    value={form.state}\r\n                    placeholder='Select a state'\r\n                    className='create-address-state'\r\n                    textInput={true}\r\n                    scrollable={true}\r\n                    loading={loading}\r\n                />\r\n\r\n                <TextFormGroup\r\n                    id='zip-code'\r\n                    value={form.zip}\r\n                    label='Zip Code'\r\n                    loading={loading}\r\n                    onTextChange={value => set('zip', value)}\r\n                />\r\n            </StepTileRow>\r\n\r\n            <StepTileRow>\r\n                <TextFormGroup\r\n                    id='living-space'\r\n                    value={form.livingSpace}\r\n                    label='Living Space'\r\n                    loading={loading}\r\n                    onTextChange={value => set('livingSpace', value)}\r\n                    className={state.createAddress.context !== 'CreateAddress' ? 'living-space' : undefined}\r\n                />\r\n\r\n                {state.createAddress.context === 'CreateAddress' && (\r\n                    <>\r\n                        <TextFormGroup\r\n                            id='roof-age'\r\n                            value={form.roofAge}\r\n                            label='Roof Age'\r\n                            loading={loading}\r\n                            onTextChange={value => {\r\n                                set('roofAge', value);\r\n                                validate('yearBuilt');\r\n                            }}\r\n                        />\r\n\r\n                        <TextFormGroup\r\n                            id='year-built'\r\n                            value={form.yearBuilt}\r\n                            label='Year Built'\r\n                            loading={loading}\r\n                            onTextChange={value => {\r\n                                set('yearBuilt', value);\r\n                                validate('roofAge');\r\n                            }}\r\n                        />\r\n                    </>\r\n                )}\r\n            </StepTileRow>\r\n        </>\r\n    );\r\n}\r\n","import { Path } from '@app/Views';\r\nimport { CreateAddressComponent } from '@app/Views/CreateAddress';\r\nimport { AccessRole } from '@shared/Constants';\r\n\r\nexport const CreateAddress = {\r\n    path: Path.CreateAddress,\r\n    element: (\r\n        <CreateAddressComponent stepDescription=\"We weren't able to find a record of that address. Enter the information below to create it.\" />\r\n    ),\r\n    shouldRevalidate: () => false,\r\n};\r\n\r\nexport const CreateAddressNoQuote = {\r\n    path: Path.CreateAddressNoQuote,\r\n    auth: AccessRole.Agent,\r\n    element: <CreateAddressComponent />,\r\n};\r\n\r\nexport const EditAddress = {\r\n    path: Path.EditAddress,\r\n    auth: AccessRole.Agent,\r\n    element: <CreateAddressComponent />,\r\n};\r\n","import { PrimaryGreenButton } from '@legacy/Components/FormGroups/Buttons';\r\nimport { FunctionComponent } from 'react';\r\n\r\ntype Props = {\r\n    authorizationUri: string;\r\n    clientId: string;\r\n    redirectUri: string;\r\n};\r\n\r\nexport const Authorization: FunctionComponent<Props> = ({ authorizationUri, clientId, redirectUri }) => {\r\n    return (\r\n        <div className='authorization'>\r\n            <h2>Authorization</h2>\r\n            <p>\r\n                The HOVER app requires manual authorization to be triggered from a real life person so that information\r\n                can be shared between Swyfft and HOVER. Clicking the \"Authorize\" button below will initiate this\r\n                process, then clicking \"Allow\" on the following page will update the authorization token for the HOVER\r\n                integration, or insert it if it doesn't already exist.\r\n            </p>\r\n            <PrimaryGreenButton label='Authorize' className='authorize-button mini-button-cp' onClick={authorize} />\r\n        </div>\r\n    );\r\n\r\n    function authorize() {\r\n        window.open(`${authorizationUri}?client_id=${clientId}&response_type=code&redirect_uri=${redirectUri}`);\r\n    }\r\n};\r\n","import { fetchAndLog } from '@api/Fetch';\r\nimport { TableParams } from '@legacy/Components/FormGroups/Table';\r\nimport { Job, Webhook } from './Models';\r\n\r\nexport async function getWebhooks(): Promise<Webhook[]> {\r\n    return await fetchAndLog('/api/hover/webhooks', 'get hover webhooks');\r\n}\r\n\r\nexport async function deleteWebhook(webhook: Webhook) {\r\n    return await fetchAndLog(`/api/hover/webhook?id=${webhook.id}`, 'delete hover webhook', {\r\n        method: 'DELETE',\r\n    });\r\n}\r\n\r\nexport async function createWebhook(uri: string) {\r\n    return await fetchAndLog(`/api/hover/webhook?uri=${uri}`, 'create hover webhook', {\r\n        method: 'POST',\r\n    });\r\n}\r\n\r\nexport async function getJobs(params: TableParams): Promise<Job[]> {\r\n    return await fetchAndLog(\r\n        `/api/hover/jobs?Start=${params.start}&Count=${params.count}&Search=${params.search}`,\r\n        'get hover jobs'\r\n    );\r\n}\r\n","import { TableFormGroup } from '@legacy/Components/FormGroups/Table';\r\nimport { dateTimeFormat } from '@shared/Constants';\r\nimport dayjs from 'dayjs';\r\nimport { getJobs } from '../Api';\r\nimport { Job } from '../Models';\r\n\r\nexport const Jobs = () => {\r\n    return (\r\n        <div className='jobs'>\r\n            <h2>Jobs</h2>\r\n\r\n            <TableFormGroup\r\n                get={getJobs}\r\n                row={buildRow}\r\n                headers={['HOVER Job ID', 'Claim Number', 'State', 'Created Date', 'Modified Date']}\r\n                search={true}\r\n                searchPlaceholder='Search by claim number...'\r\n            />\r\n        </div>\r\n    );\r\n\r\n    function buildRow(job: Job) {\r\n        return (\r\n            <tr key={job.id}>\r\n                <td>{job.externalHoverJobId}</td>\r\n                <td>{job.claimNumber}</td>\r\n                <td>{job.state.capitalize()}</td>\r\n                <td>{dayjs.utc(job.createdOn).local().format(dateTimeFormat)}</td>\r\n                <td>{dayjs.utc(job.modifiedOn).local().format(dateTimeFormat)}</td>\r\n            </tr>\r\n        );\r\n    }\r\n};\r\n","import { PrimaryBlackButton, PrimaryGreenButton } from '@legacy/Components/FormGroups/Buttons';\r\nimport { LabelFormGroup } from '@legacy/Components/FormGroups/Label';\r\nimport { TableFormGroup } from '@legacy/Components/FormGroups/Table';\r\nimport { TextFormGroup } from '@legacy/Components/FormGroups/Text';\r\nimport Confirm from '@legacy/Components/Modals/Confirm';\r\nimport Modal, { ModalText, ModalTitle } from '@legacy/Components/Modals/StandardModal';\r\nimport { Svg } from '@legacy/Components/Svg';\r\nimport { Tooltip } from '@legacy/Components/Tooltip';\r\nimport { simpleDateFormat } from '@shared/Constants';\r\nimport { useFormReducer, useToast } from '@shared/Hooks';\r\nimport { Rules, Value } from '@webkit/index';\r\nimport dayjs from 'dayjs';\r\nimport utc from 'dayjs/plugin/utc';\r\nimport { FunctionComponent, useRef, useState } from 'react';\r\nimport { createWebhook, deleteWebhook, getWebhooks } from '../Api';\r\nimport { Webhook } from '../Models';\r\nimport './style.scss';\r\n\r\ndayjs.extend(utc);\r\n\r\ntype Props = {\r\n    webhookEndpoint: string;\r\n};\r\n\r\nexport const Webhooks: FunctionComponent<Props> = ({ webhookEndpoint }) => {\r\n    let tableRef = useRef<TableFormGroup<Webhook> | null>();\r\n\r\n    const [remove, setRemove] = useState<Webhook | null>(null),\r\n        [removing, setRemoving] = useState<boolean>(false),\r\n        [create, setCreate] = useState<boolean>(false),\r\n        [creating, setCreating] = useState<boolean>(false),\r\n        toast = useToast(),\r\n        { form, set, validate, valid } = useFormReducer({\r\n            domain: new Value<string>('domain', window.location.origin, [Rules.required()]),\r\n        });\r\n\r\n    return (\r\n        <div className='webhooks'>\r\n            <div>\r\n                <h2>Webhooks</h2>\r\n                <PrimaryGreenButton\r\n                    id='create-webhook-button'\r\n                    className='mini-button-cp'\r\n                    label='Create Webhook'\r\n                    onClick={() => setCreate(true)}\r\n                />\r\n            </div>\r\n\r\n            <TableFormGroup<Webhook>\r\n                ref={c => {\r\n                    tableRef.current = c;\r\n                }}\r\n                headers={['URI', 'Create Date', '']}\r\n                get={getWebhooks}\r\n                row={buildRow}\r\n            />\r\n\r\n            <Confirm\r\n                visible={remove !== null}\r\n                message='Deleting this webhook is irreversible.'\r\n                disclaimer={false}\r\n                loading={removing}\r\n                onConfirmed={confirmDelete}\r\n                onCancelled={() => setRemove(null)}\r\n            />\r\n\r\n            <Modal\r\n                id='create-webhook-modal'\r\n                show={create}\r\n                hideFn={() => setCreate(false)}\r\n                className='create-webhook-modal'\r\n                disableClickOutside={true}\r\n            >\r\n                <ModalTitle>Create Webhook</ModalTitle>\r\n                <ModalText>\r\n                    Creating a webhook here will generate a webhook entry with HOVER. The endpoint is hardcoded to match\r\n                    our API controller code and the domain is dependent on the environment from which the webhook is\r\n                    being created. The latter can be modified while the former is hardcoded.\r\n                </ModalText>\r\n\r\n                <TextFormGroup\r\n                    id='webhook-domain'\r\n                    label='Domain'\r\n                    value={form.domain}\r\n                    onTextChange={text => set('domain', text)}\r\n                />\r\n\r\n                <LabelFormGroup\r\n                    id='webhook-endpoint'\r\n                    label='Endpoint'\r\n                    value={webhookEndpoint}\r\n                    className='spacing-top'\r\n                />\r\n\r\n                <div className='buttons spacing-top-large'>\r\n                    <PrimaryBlackButton\r\n                        id='cancel-create-webhook'\r\n                        label='Cancel'\r\n                        className='mini-button-cp'\r\n                        onClick={() => setCreate(false)}\r\n                    />\r\n\r\n                    <PrimaryGreenButton\r\n                        id='confirm-create-webhook'\r\n                        label='Create'\r\n                        className='mini-button-cp'\r\n                        loading={creating}\r\n                        onClick={saveWebhook}\r\n                    />\r\n                </div>\r\n            </Modal>\r\n        </div>\r\n    );\r\n\r\n    function buildRow(webhook: Webhook): JSX.Element {\r\n        return (\r\n            <tr key={webhook.id}>\r\n                <td>{webhook.url}</td>\r\n                <td>{dayjs(webhook.created_at).local().format(simpleDateFormat)}</td>\r\n                <td className='delete-cell'>\r\n                    <Tooltip message='Delete'>\r\n                        <Svg\r\n                            path='/images/delete.svg'\r\n                            alt='Delete'\r\n                            className='delete-icon'\r\n                            onClick={() => setRemove(webhook)}\r\n                        />\r\n                    </Tooltip>\r\n                </td>\r\n            </tr>\r\n        );\r\n    }\r\n\r\n    async function confirmDelete() {\r\n        try {\r\n            if (!remove) throw new Error('No webhook selected. Cannot delete.');\r\n\r\n            setRemoving(true);\r\n\r\n            await deleteWebhook(remove);\r\n\r\n            tableRef.current?.update(true);\r\n            toast.success('The webhook has been successfully deleted.');\r\n            setRemove(null);\r\n        } catch (error) {\r\n            toast.error('An error has occurred while deleting the webhook. Please try again later.');\r\n            console.error(error);\r\n        } finally {\r\n            setRemoving(false);\r\n        }\r\n    }\r\n\r\n    async function saveWebhook() {\r\n        try {\r\n            if (!create) return;\r\n\r\n            validate();\r\n            if (!valid()) return;\r\n\r\n            setCreating(true);\r\n\r\n            await createWebhook(form.domain.content + webhookEndpoint);\r\n\r\n            tableRef.current?.update(true);\r\n            toast.success('The webhook has been created successfully.');\r\n            setCreate(false);\r\n        } catch (error) {\r\n            console.error(error);\r\n            toast.error('An error has occurred while creating the webhook. Please try again later.');\r\n        } finally {\r\n            setCreating(false);\r\n        }\r\n    }\r\n};\r\n","import { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRow } from '@app/Components/StepTile';\r\nimport { AppSettingsContext } from '@app/State/Context';\r\nimport { Path } from '@app/Views';\r\nimport { SwyfftRouteObject } from '@app/Views/routes';\r\nimport { Tab, TabGroup } from '@legacy/Components/Tabs';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport { useContext } from 'react';\r\nimport { Authorization } from '../Authorization';\r\nimport { Jobs } from '../Jobs';\r\nimport { Webhooks } from '../Webhooks';\r\nimport './style.scss';\r\n\r\nexport const Hover: SwyfftRouteObject = {\r\n    path: Path.Hover,\r\n    auth: AccessRole.Admin,\r\n    element: <Component />,\r\n    shouldRevalidate: () => false,\r\n};\r\n\r\nfunction Component() {\r\n    const appSettings = useContext(AppSettingsContext);\r\n\r\n    return appSettings ? (\r\n        <Step title='HOVER Integration Management' className='hover'>\r\n            <StepHeader title='HOVER Integration Management' description={appSettings.hoverApiBaseUri} />\r\n\r\n            <StepTileRow>\r\n                <TabGroup\r\n                    tabs={[\r\n                        new Tab('Jobs', () => <Jobs />),\r\n                        new Tab('Authorization', () => (\r\n                            <Authorization\r\n                                authorizationUri={appSettings.hoverAuthorizationUri}\r\n                                clientId={appSettings.hoverClientId}\r\n                                redirectUri={appSettings.hoverRedirectUri}\r\n                            />\r\n                        )),\r\n                        new Tab('Webhooks', () => <Webhooks webhookEndpoint={appSettings.hoverWebhookEndpoint} />),\r\n                    ]}\r\n                />\r\n            </StepTileRow>\r\n        </Step>\r\n    ) : (\r\n        <></>\r\n    );\r\n}\r\n","import { Spinner } from '@webkit/index';\r\n\r\nexport function RouteLoadingSpinner() {\r\n    return (\r\n        <div id='route-loading-spinner' className='w-full'>\r\n            <div className='mx-auto w-fit'>\r\n                <Spinner size='md' />\r\n            </div>\r\n        </div>\r\n    );\r\n}\r\n","import { fetchAndLog } from '@api/Fetch';\r\n\r\nexport interface IsoFormUiModel {\r\n    Name: string;\r\n    Number: string;\r\n    Url: string;\r\n}\r\n\r\nexport async function getIsoForms(): Promise<IsoFormUiModel[]> {\r\n    return await fetchAndLog<IsoFormUiModel[]>('/api/iso-forms/get-iso-forms', 'get list of ISO forms');\r\n}\r\n","import { getMessageFromError } from '@shared/Common';\r\nimport { ToastContext, useAsyncEffect } from '@shared/Hooks';\r\nimport { useContext, useState } from 'react';\r\nimport { getIsoForms, IsoFormUiModel } from './api';\r\n\r\nexport function useIsoForms() {\r\n    const [forms, setForms] = useState<IsoFormUiModel[]>([]),\r\n        [isLoading, setLoading] = useState<boolean>(true),\r\n        toast = useContext(ToastContext);\r\n\r\n    useAsyncEffect(async () => {\r\n        try {\r\n            setLoading(true);\r\n\r\n            setForms(await getIsoForms());\r\n        } catch (e) {\r\n            toast.error(\r\n                await getMessageFromError(\r\n                    e,\r\n                    'An unexpected error occurred while retrieving the list of ISO forms. Please try again later.'\r\n                )\r\n            );\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }, []);\r\n\r\n    return { isLoading, forms };\r\n}\r\n","import { RouteLoadingSpinner } from '@app/Components/RouteLoadingSpinner';\r\nimport { Step } from '@app/Components/Step';\r\nimport { Path } from '@app/Views';\r\nimport { IsoFormUiModel } from '@app/Views/IsoForms/api';\r\nimport { SwyfftRouteObject } from '@app/Views/routes';\r\nimport { Copyable } from '@legacy/Components/Copyable';\r\nimport Divider from '@legacy/Components/Divider';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport { Paragraph } from '@webkit/index';\r\nimport { useIsoForms } from './hook';\r\nimport './style.scss';\r\n\r\nexport const IsoForms: SwyfftRouteObject = {\r\n    path: Path.IsoForms,\r\n    auth: AccessRole.Admin,\r\n    element: <IsoFormsComponent />,\r\n    shouldRevalidate: () => false,\r\n};\r\n\r\nexport function IsoFormsComponent() {\r\n    const { isLoading, forms } = useIsoForms();\r\n\r\n    return (\r\n        <>\r\n            <Step title='ISO Forms'>\r\n                <div className='iso-form-list'>\r\n                    <h1>ISO Forms</h1>\r\n\r\n                    <Paragraph>\r\n                        The following ISO forms are available for download. The order is based on the newest form first.\r\n                    </Paragraph>\r\n\r\n                    <Divider />\r\n\r\n                    {isLoading ? <RouteLoadingSpinner /> : <IsoFormList forms={forms} />}\r\n                </div>\r\n            </Step>\r\n        </>\r\n    );\r\n}\r\n\r\nfunction IsoFormList({ forms }: { forms: IsoFormUiModel[] }) {\r\n    return (\r\n        <table>\r\n            <thead>\r\n                <tr>\r\n                    <th>Name</th>\r\n                    <th>Number</th>\r\n                    <th>URL</th>\r\n                </tr>\r\n            </thead>\r\n\r\n            <tbody>\r\n                {forms.map(form => (\r\n                    <tr key={form.Number} className='item'>\r\n                        <td>\r\n                            <Copyable value={form.Name}>\r\n                                <p className='form-value'>{form.Name}</p>\r\n                            </Copyable>\r\n                        </td>\r\n\r\n                        <td>\r\n                            <Copyable value={form.Number}>\r\n                                <p className='form-value'>{form.Number}</p>\r\n                            </Copyable>\r\n                        </td>\r\n\r\n                        <td>\r\n                            <Copyable value={form.Url}>\r\n                                <p className='form-value'>{form.Url}</p>\r\n                            </Copyable>\r\n                        </td>\r\n                    </tr>\r\n                ))}\r\n            </tbody>\r\n        </table>\r\n    );\r\n}\r\n","import { Svg } from '@legacy/Components/Svg';\r\nimport { FC } from 'react';\r\nimport './style.scss';\r\n\r\ntype Props = {\r\n    onSubmit: () => void;\r\n    title: string;\r\n    description: string;\r\n    id?: string;\r\n    alt?: string;\r\n};\r\n\r\nexport const PaymentAction: FC<Props> = (props: Props) => {\r\n    return (\r\n        <div id={props.id} className='payment-action-container' onClick={props.onSubmit}>\r\n            <div className='action-header section-title'>\r\n                <div className='action-title'>{props.title}</div>\r\n\r\n                <div>\r\n                    <Svg\r\n                        className='icon'\r\n                        path='/images/arrow-right.svg'\r\n                        unstyled\r\n                        alt={props.alt ? props.alt : props.description}\r\n                    />\r\n                </div>\r\n            </div>\r\n\r\n            <div className='action-description'>{props.description}</div>\r\n        </div>\r\n    );\r\n};\r\n","import dayjs from 'dayjs';\r\nimport { FC, useState } from 'react';\r\n\r\nimport * as AdminApi from '@api/AdminApi';\r\nimport { PrimaryRouteButton, SecondaryBackButton } from '@app/Components/Buttons';\r\nimport { routingNumber } from '@business/Validation/routingNumber';\r\nimport * as Common from '@shared/Common';\r\nimport { PaymentTypes } from '@shared/Constants';\r\nimport { useFormReducer } from '@shared/Hooks';\r\nimport { AccountType, PaymentModel } from '@shared/Models';\r\nimport { RadioGroup, Rules, Text, Value } from '@webkit/index';\r\nimport './style.scss';\r\n\r\ntype CreditCardForm = {\r\n    paymentType: Value<string>;\r\n    firstName: Value<string>;\r\n    lastName: Value<string>;\r\n    creditCardNumber: Value<string>;\r\n    creditCardExpiration: Value<string>;\r\n    cvv: Value<string>;\r\n};\r\n\r\ntype ECheckForm = {\r\n    eCheckAccountType: Value<AccountType>;\r\n    accountOwner: Value<string>;\r\n    accountNumber: Value<string>;\r\n    routingNumber: Value<string>;\r\n};\r\n\r\ntype Props = {\r\n    paymentType: PaymentTypes;\r\n    firstName: string;\r\n    lastName: string;\r\n    amountDueCredit: string;\r\n    amountDueNonCredit: string;\r\n    creditCardNumber: string;\r\n    eCheckAccountType: AccountType;\r\n    accountOwner: string;\r\n    accountNumber: string;\r\n    routingNumber: string;\r\n    onCancel: () => void;\r\n    onSubmit: (data: PaymentModel) => void;\r\n    feeNotice?: string;\r\n    updatePaymentInfo?: boolean;\r\n};\r\n\r\nexport const PaymentForm: FC<Props> = (props: Props) => {\r\n    const [submitButtonLabel, setSubmitButtonLabel] = useState<string>(getSubmitButtonLabel(props.paymentType));\r\n\r\n    const {\r\n        form: formCredit,\r\n        set,\r\n        setWithoutValidation,\r\n        valid,\r\n        validate,\r\n    } = useFormReducer<CreditCardForm>({\r\n        paymentType: new Value<string>('payment type', props.paymentType),\r\n        firstName: new Value<string>('first name', props.firstName, [\r\n            Rules.required(true, 'Please enter a value for the first name.'),\r\n        ]),\r\n        lastName: new Value<string>('last name', props.lastName, [\r\n            Rules.required(true, 'Please enter a value for the last name.'),\r\n        ]),\r\n        creditCardNumber: new Value<string>('credit card number', props.creditCardNumber, [\r\n            Rules.required(true, 'Please enter a value for the credit card number.'),\r\n            Rules.creditCard('Please enter a valid credit card number.'),\r\n        ]),\r\n        creditCardExpiration: new Value<string>('credit card expiration', '', [\r\n            Rules.required(true, 'Please enter a value for the expiration date.'),\r\n            Rules.maxLength(7),\r\n            Rules.afterWithString(dayjs().startOf('month').add(-1, 'seconds')),\r\n        ]),\r\n        cvv: new Value<string>('CVV', '', [\r\n            Rules.required(true, 'Please enter a value for the CVV.'),\r\n            Rules.regex(/^[0-9]{3,4}/),\r\n        ]),\r\n    });\r\n\r\n    const {\r\n        form: formECheck,\r\n        setWithoutValidation: setWithoutValidationECheck,\r\n        valid: validECheck,\r\n        validate: validateECheck,\r\n    } = useFormReducer<ECheckForm>({\r\n        eCheckAccountType: new Value<AccountType>('echeck account type', props.eCheckAccountType),\r\n        accountOwner: new Value<string>('account owner', props.accountOwner, [\r\n            Rules.required(true, 'Please enter a value for the account owner.'),\r\n        ]),\r\n        accountNumber: new Value<string>('account number', props.accountNumber, [\r\n            Rules.required(true, 'Please enter a value for the account number.'),\r\n            Rules.regex(/^(?!XXXX).*/),\r\n        ]),\r\n        routingNumber: new Value<string>('routing number', props.routingNumber, [\r\n            Rules.required(true, 'Please enter a value for the routing number.'),\r\n            routingNumber(),\r\n        ]),\r\n    });\r\n\r\n    const echeckAccountTypeOptions = [\r\n        { label: 'Checking', value: 'checking' },\r\n        { label: 'Savings', value: 'savings' },\r\n    ];\r\n\r\n    function getSubmitButtonLabel(paymentType: PaymentTypes) {\r\n        if (props.updatePaymentInfo) {\r\n            return 'Update Method';\r\n        } else {\r\n            return `Pay ${Common.formatCurrencyUS(\r\n                paymentType === PaymentTypes.CreditCard ? props.amountDueCredit : props.amountDueNonCredit,\r\n                2\r\n            )}`;\r\n        }\r\n    }\r\n\r\n    const handleChangePaymentType = (paymentType: PaymentTypes) => {\r\n        set('paymentType', paymentType);\r\n        setSubmitButtonLabel(getSubmitButtonLabel(paymentType));\r\n    };\r\n\r\n    const handleSubmit = async () => {\r\n        if (formCredit.paymentType.content === PaymentTypes.CreditCard) {\r\n            validate();\r\n\r\n            if (!valid()) {\r\n                return;\r\n            }\r\n        } else {\r\n            validateECheck();\r\n\r\n            if (!validECheck()) {\r\n                return;\r\n            }\r\n        }\r\n\r\n        const expirationDateParts = formCredit.creditCardExpiration.content.split('/');\r\n        let bankName = '';\r\n\r\n        if (formCredit.paymentType.content === PaymentTypes.ECheck) {\r\n            try {\r\n                bankName = await AdminApi.getBankName(formECheck.routingNumber.content);\r\n            } catch (error) {\r\n                // We do nothing here since not fetching the bank name isn't fatal when it comes to updating payment info\r\n            }\r\n        }\r\n\r\n        props.onSubmit({\r\n            PolicyNumber: '',\r\n            PolicyZip: '',\r\n            PaymentAmount: '',\r\n            Authorization: '',\r\n            AnnualNewBusiness: false,\r\n            IsCard: formCredit.paymentType.content === PaymentTypes.CreditCard,\r\n            AccountNumber: formECheck.accountNumber.content,\r\n            RoutingNumber: formECheck.routingNumber.content,\r\n            AccountName: formECheck.accountOwner.content,\r\n            BankAccountType: formECheck.eCheckAccountType.content,\r\n            BankName: bankName,\r\n            CreditCard: String(formCredit.creditCardNumber.content).replace(/-|\\s/g, ''),\r\n            Cvv: formCredit.cvv.content,\r\n            ExpMonth: expirationDateParts[0],\r\n            ExpYear: expirationDateParts[1],\r\n            FirstName: formCredit.firstName.content,\r\n            LastName: formCredit.lastName.content,\r\n        });\r\n    };\r\n\r\n    return (\r\n        <div className='payment-form-container'>\r\n            <div>Payment Method</div>\r\n\r\n            <div className='payment-type-container'>\r\n                <div\r\n                    id='payment-form-credit-card'\r\n                    className={`payment-type${\r\n                        formCredit.paymentType.content === PaymentTypes.CreditCard ? ' selected' : ''\r\n                    }`}\r\n                    onClick={() => handleChangePaymentType(PaymentTypes.CreditCard)}\r\n                >\r\n                    Credit Card\r\n                </div>\r\n                <div\r\n                    id='payment-form-echeck'\r\n                    className={`payment-type${\r\n                        formCredit.paymentType.content === PaymentTypes.ECheck ? ' selected' : ''\r\n                    }`}\r\n                    onClick={() => handleChangePaymentType(PaymentTypes.ECheck)}\r\n                >\r\n                    Echeck\r\n                </div>\r\n            </div>\r\n\r\n            {props.feeNotice && <div className='fee-notice'>{props.feeNotice}</div>}\r\n\r\n            {formCredit.paymentType.content === PaymentTypes.CreditCard && (\r\n                <div className='form-section'>\r\n                    <div className='content-row'>\r\n                        <div className='content-col'>\r\n                            <Text\r\n                                id='payment-form-first-name'\r\n                                onChange={(value: string) => setWithoutValidation('firstName', value)}\r\n                                label='First Name'\r\n                                value={formCredit.firstName}\r\n                                name='first-name-card'\r\n                            />\r\n                        </div>\r\n                        <div className='content-col'>\r\n                            <Text\r\n                                id='payment-form-last-name'\r\n                                onChange={(value: string) => setWithoutValidation('lastName', value)}\r\n                                label='Last Name'\r\n                                value={formCredit.lastName}\r\n                                name='last-name-card'\r\n                            />\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div>\r\n                        <Text\r\n                            id='payment-form-credit-card-number'\r\n                            onChange={(value: string) => setWithoutValidation('creditCardNumber', value)}\r\n                            label='Credit Card Number'\r\n                            value={formCredit.creditCardNumber}\r\n                            name='credit-card-number'\r\n                        />\r\n                    </div>\r\n\r\n                    <div className='content-row'>\r\n                        <div className='content-col'>\r\n                            <Text\r\n                                id='payment-form-credit-card-expiration'\r\n                                onChange={(value: string) => setWithoutValidation('creditCardExpiration', value)}\r\n                                label='Expiration Date'\r\n                                value={formCredit.creditCardExpiration}\r\n                                name='credit-card-expiration-date'\r\n                                placeholder='MM/YYYY'\r\n                            />\r\n                        </div>\r\n                        <div className='content-col'>\r\n                            <Text\r\n                                id='payment-form-credit-card-cvv'\r\n                                onChange={(value: string) => setWithoutValidation('cvv', value)}\r\n                                label='CVV'\r\n                                value={formCredit.cvv}\r\n                                name='credit-card-cvv'\r\n                            />\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            )}\r\n\r\n            {formCredit.paymentType.content === PaymentTypes.ECheck && (\r\n                <div className='form-section'>\r\n                    <div>\r\n                        <RadioGroup\r\n                            id='payment-form-account-type'\r\n                            onChange={(value: string) =>\r\n                                setWithoutValidationECheck('eCheckAccountType', value as AccountType)\r\n                            }\r\n                            value={formECheck.eCheckAccountType}\r\n                            label='Echeck Account'\r\n                            options={echeckAccountTypeOptions}\r\n                            orientation='horizontal'\r\n                        />\r\n                    </div>\r\n\r\n                    <div>\r\n                        <Text\r\n                            id='payment-form-account-owner'\r\n                            onChange={(value: string) => setWithoutValidationECheck('accountOwner', value)}\r\n                            label='Account Owner'\r\n                            value={formECheck.accountOwner}\r\n                            name='account-owner'\r\n                        />\r\n                    </div>\r\n\r\n                    <div className='content-row'>\r\n                        <div className='content-col'>\r\n                            <Text\r\n                                id='payment-form-account-number'\r\n                                onChange={(value: string) => setWithoutValidationECheck('accountNumber', value)}\r\n                                label='Account Number'\r\n                                value={formECheck.accountNumber}\r\n                                name='account-number'\r\n                            />\r\n                        </div>\r\n                        <div className='content-col'>\r\n                            <Text\r\n                                id='payment-form-routing-number'\r\n                                onChange={(value: string) => setWithoutValidationECheck('routingNumber', value)}\r\n                                label='Routing Number'\r\n                                value={formECheck.routingNumber}\r\n                                name='routing-number'\r\n                            />\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            )}\r\n\r\n            <div className='action-row'>\r\n                <SecondaryBackButton id='back-make-a-payment-form' label='Back' onClick={props.onCancel} />\r\n\r\n                <PrimaryRouteButton\r\n                    id='submit-make-a-payment-form'\r\n                    type='submit'\r\n                    label={submitButtonLabel}\r\n                    onClick={handleSubmit}\r\n                />\r\n            </div>\r\n        </div>\r\n    );\r\n};\r\n","import { Svg } from '@legacy/Components/Svg';\r\nimport { hideString } from '@legacy/Purchase/Components/PaymentConfirmation';\r\nimport { PaymentFrequency } from '@legacy/Purchase/Interfaces/Interfaces';\r\nimport { formatCurrencyUS } from '@shared/Common';\r\nimport { PaymentTypes } from '@shared/Constants';\r\nimport { PolicyPaymentInvoice } from '@shared/Models';\r\nimport dayjs from 'dayjs';\r\nimport { FC } from 'react';\r\nimport './style.scss';\r\n\r\ntype Props = {\r\n    policyNumber: string;\r\n    invoice: PolicyPaymentInvoice;\r\n};\r\n\r\nexport const PaymentSummary: FC<Props> = (props: Props) => {\r\n    const { invoice } = props;\r\n    const balanceDue = formatCurrencyUS(\r\n        invoice.paymentProfile.PaymentType === PaymentTypes.CreditCard\r\n            ? invoice.amountDueCredit\r\n            : invoice.amountDueNonCredit,\r\n        2,\r\n        true\r\n    );\r\n    const dueDate = `Due ${dayjs(invoice.dueDate).format('M/D/YY')}`;\r\n    const paymentFrequency = invoice.paymentProfile.PremiumType as PaymentFrequency;\r\n\r\n    return (\r\n        <div className='payment-summary-container'>\r\n            <div className='summary-row section-title'>Policy # {props.policyNumber}</div>\r\n\r\n            <div className='summary-row'>\r\n                <div className='row-label'>Current Balance Due</div>\r\n\r\n                <div className='balance-info-container'>\r\n                    <div className='balance-info'>\r\n                        <Svg\r\n                            className='icon money-icon'\r\n                            path='/images/money-icon.svg'\r\n                            unstyled\r\n                            alt={`Amount due: ${balanceDue}`}\r\n                        />\r\n\r\n                        <span id='due-balance' className='summary-label label-spacer'>\r\n                            {balanceDue}\r\n                        </span>\r\n                    </div>\r\n\r\n                    {balanceDue !== '0.00' && (\r\n                        <div className='balance-info'>\r\n                            <Svg\r\n                                className='icon'\r\n                                path='/images/calendar-icon.svg'\r\n                                unstyled\r\n                                alt={`Payment due date: ${dueDate}`}\r\n                            />\r\n\r\n                            <span id='due-date' className='summary-label label-spacer'>\r\n                                {dueDate}\r\n                            </span>\r\n                        </div>\r\n                    )}\r\n                </div>\r\n            </div>\r\n\r\n            <div className='summary-row'>\r\n                <div className='row-label'>Saved Payment Method</div>\r\n\r\n                <div className='saved-payment-info-container'>\r\n                    {paymentFrequency.toLowerCase().startsWith('escrow') ? (\r\n                        <span className='summary-label'>Escrow Account</span>\r\n                    ) : invoice.paymentProfile.PaymentType === 'creditcard' ? (\r\n                        <span>\r\n                            <span className='summary-label'>Credit Card:</span>\r\n                            <span className='cc-number'>\r\n                                &nbsp;&nbsp;&bull;&bull;&bull;&bull;-&bull;&bull;&bull;&bull;-&bull;&bull;&bull;&bull;-\r\n                                {(invoice.paymentProfile.CreditCardNumber || '').slice(-4)}\r\n                            </span>\r\n                        </span>\r\n                    ) : (\r\n                        <span>\r\n                            <span className='summary-label'>\r\n                                {(invoice.paymentProfile.ECheckAccountType || 'checking') === 'checking'\r\n                                    ? 'Checking Account:'\r\n                                    : 'Savings Account:'}\r\n                                &nbsp;&nbsp;\r\n                            </span>\r\n                            <span>{hideString(invoice.paymentProfile.ECheckAccountNumber || '', 4)}</span>\r\n                        </span>\r\n                    )}\r\n                </div>\r\n            </div>\r\n        </div>\r\n    );\r\n};\r\n","import dayjs from 'dayjs';\r\nimport html2canvas from 'html2canvas';\r\nimport * as React from 'react';\r\nimport { FC, ReactNode, useEffect, useState } from 'react';\r\nimport { useSearchParams } from 'react-router-dom-v5-compat';\r\n\r\nimport * as AdminApi from '@api/AdminApi';\r\nimport * as HOApi from '@api/HOApi';\r\nimport { PrimaryRouteButton, SecondaryBackButton } from '@app/Components/Buttons';\r\nimport { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRow } from '@app/Components/StepTile';\r\nimport { Path } from '@app/Views';\r\nimport { PaymentAction } from '@app/Views/MakeAPayment/PaymentAction';\r\nimport { PaymentForm } from '@app/Views/MakeAPayment/PaymentForm';\r\nimport { PaymentSummary } from '@app/Views/MakeAPayment/PaymentSummary';\r\nimport { ICardSummary, ICheckSummary, PaymentConfirmation } from '@legacy/Purchase/Components/PaymentConfirmation';\r\nimport { PaymentFrequency } from '@legacy/Purchase/Interfaces/Interfaces';\r\nimport * as Common from '@shared/Common';\r\nimport * as Constants from '@shared/Constants';\r\nimport { ErrorCodes, PaymentTypes } from '@shared/Constants';\r\nimport { useFormReducer, useKeyboardEvent } from '@shared/Hooks';\r\nimport * as Models from '@shared/Models';\r\nimport { AccountType, PaymentModel, PolicyPaymentInvoice } from '@shared/Models';\r\nimport { Button, Modal, Rules, Text, Value } from '@webkit/index';\r\nimport './style.scss';\r\n\r\nenum PaymentStep {\r\n    Locate = 'locate',\r\n    Verify = 'verify',\r\n    OneTimePayment = 'one-time-payment',\r\n    UpdatePaymentInfo = 'update-payment-info',\r\n    ThankYou = 'thank-you',\r\n}\r\n\r\ntype Form = {\r\n    policyNumber: Value<string>;\r\n    policyZipCode: Value<string>;\r\n};\r\n\r\nexport const MakeAPaymentComponent: FC = () => {\r\n    const [paymentStep, setPaymentStep] = useState<PaymentStep>(PaymentStep.Locate);\r\n    const [invoice, setInvoice] = useState<PolicyPaymentInvoice>(getEmptyInvoice());\r\n    const [amountDue, setAmountDue] = useState<string>('');\r\n    const [paymentInfo, setPaymentInfo] = useState<PaymentModel>(getEmptyPaymentModel());\r\n    const [paymentFrequency, setPaymentFrequency] = useState<PaymentFrequency>();\r\n    const [isPaymentConfirmationVisible, setIsPaymentConfirmationVisible] = useState<boolean>(false);\r\n    const [isLoading, setIsLoading] = useState<boolean>(false);\r\n    const [isProcessing, setIsProcessing] = useState<boolean>(false);\r\n    const [errorMessage, setErrorMessage] = useState<string>('');\r\n    const [searchParams] = useSearchParams();\r\n\r\n    useKeyboardEvent(handleKeyDown);\r\n\r\n    function getEmptyInvoice(): PolicyPaymentInvoice {\r\n        return {\r\n            paymentProfile: {\r\n                PremiumType: '',\r\n                PaymentType: '',\r\n                FirstName: null,\r\n                LastName: null,\r\n                NameOnPolicy: '',\r\n                InsuranceCompanyName: '',\r\n                BankName: '',\r\n                BankLoanNumber: '',\r\n                BankStreet1: '',\r\n                BankStreet2: '',\r\n                BankCity: '',\r\n                BankStateCode: '',\r\n                BankZip: '',\r\n                BankFax: '',\r\n                CreditCardNumber: null,\r\n                CreditCardExpires: null,\r\n                ECheckAccountType: null,\r\n                ECheckAccountOwner: null,\r\n                ECheckRoutingNumber: null,\r\n                ECheckAccountNumber: null,\r\n            },\r\n            dueDate: '',\r\n            amountDueCredit: '',\r\n            amountDueNonCredit: '',\r\n            quoteId: '',\r\n            invoiceNumber: null,\r\n            quoteStatus: '',\r\n        };\r\n    }\r\n\r\n    function getEmptyPaymentModel(): PaymentModel {\r\n        return {\r\n            PolicyNumber: '',\r\n            PolicyZip: '',\r\n            PaymentAmount: '',\r\n            Authorization: '',\r\n            AnnualNewBusiness: false,\r\n            IsCard: false,\r\n        };\r\n    }\r\n\r\n    function handleKeyDown(event: KeyboardEvent) {\r\n        if (event.key === 'Enter' && paymentStep === PaymentStep.Locate) {\r\n            handleSubmit();\r\n        }\r\n    }\r\n\r\n    const initialPolicyNumber = searchParams.get('policyNumber') || '';\r\n    const initialZipCode = searchParams.get('zip') || '';\r\n\r\n    const { form, setWithoutValidation, valid, validate } = useFormReducer<Form>({\r\n        policyNumber: new Value<string>('policyNumber', initialPolicyNumber, [\r\n            Rules.required(true, 'Please enter a value for the policy number'),\r\n        ]),\r\n        policyZipCode: new Value<string>('policyZipCode', initialZipCode, [\r\n            Rules.required(true, 'Please enter a value for the zip code'),\r\n        ]),\r\n    });\r\n\r\n    useEffect(() => {\r\n        const loadInvoice = async () => {\r\n            await getInvoice(initialPolicyNumber, initialZipCode);\r\n        };\r\n\r\n        if (initialPolicyNumber && initialZipCode && !invoice.quoteId) {\r\n            loadInvoice();\r\n        }\r\n    }, [initialPolicyNumber, initialZipCode]);\r\n\r\n    const getStepDescription = () => {\r\n        let desc: string;\r\n\r\n        switch (paymentStep) {\r\n            case PaymentStep.Locate:\r\n                desc = 'Enter policy # and zip code to locate your policy.';\r\n                break;\r\n            case PaymentStep.Verify:\r\n                desc = '';\r\n                break;\r\n            case PaymentStep.UpdatePaymentInfo:\r\n                desc = 'Update or change your saved payment method.';\r\n                break;\r\n            case PaymentStep.OneTimePayment:\r\n                desc = 'Choose a payment method and enter the details below. This payment method will not be saved.';\r\n                break;\r\n            default:\r\n                desc = '';\r\n        }\r\n\r\n        return desc;\r\n    };\r\n\r\n    const getStepContent = () => {\r\n        let content: ReactNode = '';\r\n\r\n        switch (paymentStep) {\r\n            case PaymentStep.Locate:\r\n                content = (\r\n                    <>\r\n                        <div>\r\n                            <Text\r\n                                id='make-a-payment-policy-number'\r\n                                onChange={(value: string) => setWithoutValidation('policyNumber', value)}\r\n                                label='Policy Number'\r\n                                value={form.policyNumber}\r\n                                name='policy-number'\r\n                            />\r\n                        </div>\r\n                        <div>\r\n                            <Text\r\n                                id='make-a-payment-policy-zip-code'\r\n                                onChange={(value: string) => setWithoutValidation('policyZipCode', value)}\r\n                                label='Insured Zip Code'\r\n                                value={form.policyZipCode}\r\n                                name='policy-zip'\r\n                            />\r\n                        </div>\r\n                    </>\r\n                );\r\n\r\n                break;\r\n            case PaymentStep.Verify:\r\n                const isEscrow = paymentFrequency?.toLowerCase().startsWith('escrow');\r\n\r\n                content = (\r\n                    <>\r\n                        <div className='content-col'>\r\n                            <PaymentSummary policyNumber={form.policyNumber.content} invoice={invoice} />\r\n                        </div>\r\n\r\n                        <div className='content-col'>\r\n                            {isEscrow && (\r\n                                <PaymentAction\r\n                                    id='edit-billable-interests'\r\n                                    onSubmit={() =>\r\n                                        Common.navigate(\r\n                                            `${Constants.pages.EditBillableInterests}?policyNumber=${form.policyNumber.content}`\r\n                                        )\r\n                                    }\r\n                                    title='Edit Billable Interests'\r\n                                    description='Update current mortgagee information on file'\r\n                                />\r\n                            )}\r\n\r\n                            {!isEscrow && (\r\n                                <PaymentAction\r\n                                    id='update-payment-info'\r\n                                    onSubmit={() => setPaymentStep(PaymentStep.UpdatePaymentInfo)}\r\n                                    title='Update Saved Payment Method'\r\n                                    description='Correct an out-of-date or invalid payment method'\r\n                                />\r\n                            )}\r\n\r\n                            {!isEscrow && amountDue !== '0.00' && (\r\n                                <PaymentAction\r\n                                    id='make-payment'\r\n                                    onSubmit={() => {\r\n                                        setIsPaymentConfirmationVisible(true);\r\n                                        setPaymentInfo(getPaymentInfoFromInvoice(invoice));\r\n                                    }}\r\n                                    title={`Pay ${Common.formatCurrencyUS(amountDue, 2)} with Saved Method`}\r\n                                    description='Use saved method to pay (if valid)'\r\n                                />\r\n                            )}\r\n\r\n                            {amountDue !== '0.00' && (\r\n                                <PaymentAction\r\n                                    id='make-one-time-payment'\r\n                                    onSubmit={() => setPaymentStep(PaymentStep.OneTimePayment)}\r\n                                    title={`Pay ${Common.formatCurrencyUS(amountDue, 2)}${\r\n                                        !isEscrow ? ' with Other Method' : ''\r\n                                    }`}\r\n                                    description='Payment method will not be saved'\r\n                                />\r\n                            )}\r\n                        </div>\r\n                    </>\r\n                );\r\n\r\n                break;\r\n            case PaymentStep.UpdatePaymentInfo:\r\n            case PaymentStep.OneTimePayment:\r\n                let feeNotice: string | undefined;\r\n\r\n                if (invoice.amountDueCredit !== invoice.amountDueNonCredit) {\r\n                    feeNotice = `Card payment includes ${Common.formatCurrencyUS(\r\n                        +invoice.amountDueCredit - +invoice.amountDueNonCredit,\r\n                        2\r\n                    )} convenience fee`;\r\n                }\r\n\r\n                content = (\r\n                    <>\r\n                        <PaymentForm\r\n                            paymentType={paymentInfo.IsCard ? PaymentTypes.CreditCard : PaymentTypes.ECheck}\r\n                            amountDueCredit={invoice.amountDueCredit}\r\n                            amountDueNonCredit={invoice.amountDueNonCredit}\r\n                            firstName={paymentInfo.FirstName || ''}\r\n                            lastName={paymentInfo.LastName || ''}\r\n                            creditCardNumber={paymentInfo.CreditCard || ''}\r\n                            eCheckAccountType={\r\n                                paymentInfo.BankAccountType ? (paymentInfo.BankAccountType as AccountType) : 'checking'\r\n                            }\r\n                            accountOwner={paymentInfo.AccountName || ''}\r\n                            accountNumber={paymentInfo.AccountNumber || ''}\r\n                            routingNumber={paymentInfo.RoutingNumber || ''}\r\n                            onCancel={() => setPaymentStep(PaymentStep.Verify)}\r\n                            onSubmit={handleSubmitPaymentForm}\r\n                            feeNotice={feeNotice}\r\n                            updatePaymentInfo={paymentStep === PaymentStep.UpdatePaymentInfo}\r\n                        />\r\n                    </>\r\n                );\r\n\r\n                break;\r\n            case PaymentStep.ThankYou:\r\n                content = (\r\n                    <>\r\n                        <div>\r\n                            <div className='thank-you-icon'>\r\n                                <img src={'/images/badge.svg'} alt='Payment Successful, Thank You!' />\r\n                            </div>\r\n                            <h2 className='thank-you-header'>Thank You!</h2>\r\n                            <p className='thank-you-message'>\r\n                                Your payment was submitted successfully. We will send you an email receipt shortly.\r\n                            </p>\r\n                        </div>\r\n                    </>\r\n                );\r\n        }\r\n\r\n        return content;\r\n    };\r\n\r\n    const getBackButtonLabel = () => {\r\n        if (paymentStep !== PaymentStep.UpdatePaymentInfo) {\r\n            return 'Back';\r\n        } else {\r\n            return 'Cancel';\r\n        }\r\n    };\r\n\r\n    const getErrorContent = (message: string) => {\r\n        if (!message) {\r\n            return <React.Fragment />;\r\n        }\r\n\r\n        const email = 'customersupport@swyfft.com';\r\n        const messageParts = message.split(email);\r\n\r\n        if (messageParts.length === 2) {\r\n            return (\r\n                <div className='error-message'>\r\n                    {messageParts[0]}\r\n                    <a href={`mailto:${email}`}>{email}</a>\r\n                    {messageParts[1]}\r\n                </div>\r\n            );\r\n        }\r\n\r\n        return <div className='error-message'>{message}</div>;\r\n    };\r\n\r\n    const getPaymentInfoFromInvoice = (invoice: PolicyPaymentInvoice): PaymentModel => {\r\n        const paymentInfo: PaymentModel = {\r\n            PolicyNumber: form.policyNumber.content,\r\n            PolicyZip: form.policyZipCode.content,\r\n            PaymentAmount: '0',\r\n            Authorization: '',\r\n            AnnualNewBusiness: false,\r\n            // The negative case is used here so we default to credit card if the payment type value is null. This could happen when making a one-time payment\r\n            // for a quote that is paid via escrow.\r\n            IsCard: invoice.paymentProfile.PaymentType !== PaymentTypes.ECheck,\r\n        };\r\n\r\n        if (paymentInfo.IsCard) {\r\n            paymentInfo.CreditCard = invoice.paymentProfile.CreditCardNumber || '';\r\n            paymentInfo.Cvv = '';\r\n            paymentInfo.ExpMonth = '';\r\n            paymentInfo.ExpYear = '';\r\n            paymentInfo.FirstName = invoice.paymentProfile.FirstName || '';\r\n            paymentInfo.LastName = invoice.paymentProfile.LastName || '';\r\n        } else {\r\n            paymentInfo.BankAccountType = invoice.paymentProfile.ECheckAccountType || 'checking';\r\n            paymentInfo.AccountName = invoice.paymentProfile.ECheckAccountOwner || '';\r\n            paymentInfo.AccountNumber = invoice.paymentProfile.ECheckAccountNumber || '';\r\n            paymentInfo.RoutingNumber = invoice.paymentProfile.ECheckRoutingNumber || '';\r\n            paymentInfo.BankName = '';\r\n        }\r\n\r\n        return paymentInfo;\r\n    };\r\n\r\n    const getInvoice = async (policyNumber: string, zipCode: string) => {\r\n        let invoice: PolicyPaymentInvoice;\r\n\r\n        setErrorMessage('');\r\n        setIsLoading(true);\r\n\r\n        try {\r\n            invoice = await HOApi.getPolicyPaymentInvoice(policyNumber, zipCode);\r\n\r\n            setErrorMessage('');\r\n            setInvoice(invoice);\r\n            setPaymentInfo(getPaymentInfoFromInvoice(invoice));\r\n            setAmountDue(\r\n                invoice.paymentProfile.PaymentType === Constants.PaymentTypes.CreditCard\r\n                    ? invoice.amountDueCredit\r\n                    : invoice.amountDueNonCredit\r\n            );\r\n            setPaymentFrequency(invoice.paymentProfile.PremiumType as PaymentFrequency);\r\n            setPaymentStep(PaymentStep.Verify);\r\n        } catch (err) {\r\n            const apiError = Common.getApiError(err);\r\n            let message = apiError.message;\r\n\r\n            if (err.subCode === ErrorCodes.PolicyBillingIssue) {\r\n                message =\r\n                    'Sorry, the policy you looked up has an issue with its billing information and cannot be updated online. Please contact customersupport@swyfft.com to make changes to your payment method.';\r\n            }\r\n\r\n            if (err.subCode === ErrorCodes.CouldNotLoadPolicy) {\r\n                message =\r\n                    'Sorry, we cannot load this policy for you at this time. Please contact customersupport@swyfft.com for assistance.';\r\n            }\r\n\r\n            if (err.subCode === ErrorCodes.PolicyNumberZipCodeMismatch) {\r\n                message =\r\n                    \"Sorry, this policy # and zip don't match our records. Please update the information and try again or contact Swyfft customer support at customersupport@swyfft.com.\";\r\n            }\r\n\r\n            setErrorMessage(message);\r\n        } finally {\r\n            setIsLoading(false);\r\n        }\r\n    };\r\n\r\n    const getAuthorizationScreen = async () => {\r\n        const canvasOptions: {} = {\r\n            scale: 1,\r\n            windowWidth: 1024,\r\n            width: 1024,\r\n            height: 860,\r\n            logging: false,\r\n        };\r\n\r\n        const toCanvas: any = html2canvas as any;\r\n\r\n        // We grab the confirmation modal element (as opposed to the whole body) to avoid interference with site-wide elements such as the banner. This won't\r\n        // work correctly with a React ref, which is why we use the document.getElementById method.\r\n        const screen: any = await toCanvas(document.querySelector('#confirmation-modal'), canvasOptions);\r\n\r\n        return screen.toDataURL();\r\n    };\r\n\r\n    const getPaymentInfo = async () => {\r\n        const newPaymentInfo: Models.PaymentModel = {\r\n            PolicyNumber: form.policyNumber.content,\r\n            PolicyZip: form.policyZipCode.content,\r\n            PaymentAmount: getPaymentAmount(),\r\n            Authorization: await getAuthorizationScreen(),\r\n            AnnualNewBusiness: ['escrow', 'annual'].includes(paymentFrequency || ''),\r\n            IsCard: paymentInfo.IsCard,\r\n        };\r\n\r\n        if (paymentInfo.IsCard) {\r\n            newPaymentInfo.CreditCard = paymentInfo.CreditCard;\r\n            newPaymentInfo.Cvv = paymentInfo.Cvv;\r\n            newPaymentInfo.ExpMonth = paymentInfo.ExpMonth;\r\n            newPaymentInfo.ExpYear = paymentInfo.ExpYear;\r\n        } else {\r\n            newPaymentInfo.AccountName = paymentInfo.AccountName;\r\n            newPaymentInfo.AccountNumber = paymentInfo.AccountNumber;\r\n            newPaymentInfo.RoutingNumber = paymentInfo.RoutingNumber;\r\n            newPaymentInfo.BankAccountType = paymentInfo.BankAccountType;\r\n        }\r\n\r\n        return newPaymentInfo;\r\n    };\r\n\r\n    const changePaymentInfo = async () => {\r\n        let success = false;\r\n        setIsProcessing(true);\r\n\r\n        try {\r\n            const paymentInfo = await getPaymentInfo();\r\n            paymentInfo.Authorization = await getAuthorizationScreen();\r\n\r\n            const response = await AdminApi.updatePaymentMethod(paymentInfo);\r\n\r\n            if (response.status && response.status !== 200) {\r\n                const details = await response.json();\r\n\r\n                if (Common.isProblemDetail(details)) {\r\n                    throw [response, details];\r\n                } else {\r\n                    details.Status = response.status;\r\n                    throw details;\r\n                }\r\n            }\r\n\r\n            success = true;\r\n            await getInvoice(form.policyNumber.content, form.policyZipCode.content);\r\n        } catch (ex) {\r\n            Common.handleGeneralError(ex);\r\n        } finally {\r\n            setIsProcessing(false);\r\n            setIsPaymentConfirmationVisible(false);\r\n\r\n            if (success) {\r\n                setPaymentStep(PaymentStep.Verify);\r\n            }\r\n        }\r\n    };\r\n\r\n    const makePayment = async () => {\r\n        let success = false;\r\n        setIsProcessing(true);\r\n\r\n        try {\r\n            const response = await AdminApi.payFromExistingProfile(\r\n                form.policyNumber.content,\r\n                form.policyZipCode.content,\r\n                amountDue,\r\n                paymentInfo.IsCard ? 'Credit Card' : 'ECheck',\r\n                (paymentInfo.IsCard ? paymentInfo.CreditCard : paymentInfo.AccountNumber) || ''\r\n            );\r\n\r\n            if (response.status && response.status !== 200) {\r\n                const details = await response.json();\r\n\r\n                if (Common.isProblemDetail(details)) {\r\n                    throw [response, details];\r\n                } else {\r\n                    details.Status = response.status;\r\n                    throw details;\r\n                }\r\n            }\r\n\r\n            success = true;\r\n        } catch (ex) {\r\n            Common.handleGeneralError(ex);\r\n        } finally {\r\n            setIsProcessing(false);\r\n            setIsPaymentConfirmationVisible(false);\r\n\r\n            if (success) {\r\n                setPaymentStep(PaymentStep.ThankYou);\r\n            }\r\n        }\r\n    };\r\n\r\n    const makeOneTimePayment = async () => {\r\n        let success = false;\r\n        setIsProcessing(true);\r\n\r\n        try {\r\n            const paymentInfo = await getPaymentInfo();\r\n            paymentInfo.Authorization = await getAuthorizationScreen();\r\n\r\n            const response = await AdminApi.payOnce(paymentInfo);\r\n\r\n            if (response.status && response.status !== 200) {\r\n                const details = await response.json();\r\n\r\n                if (Common.isProblemDetail(details)) {\r\n                    throw [response, details];\r\n                } else {\r\n                    details.Status = response.status;\r\n                    throw details;\r\n                }\r\n            }\r\n\r\n            success = true;\r\n        } catch (ex) {\r\n            Common.handleGeneralError(ex);\r\n        } finally {\r\n            setIsProcessing(false);\r\n            setIsPaymentConfirmationVisible(false);\r\n\r\n            if (success) {\r\n                setPaymentStep(PaymentStep.ThankYou);\r\n            }\r\n        }\r\n    };\r\n\r\n    const handleSubmit = async () => {\r\n        validate();\r\n\r\n        if (!valid()) {\r\n            return;\r\n        }\r\n\r\n        await getInvoice(form.policyNumber.content, form.policyZipCode.content);\r\n    };\r\n\r\n    const handleSubmitPaymentForm = (data: PaymentModel) => {\r\n        setPaymentInfo({ ...data, PolicyNumber: form.policyNumber.content, PolicyZip: form.policyZipCode.content });\r\n        setIsPaymentConfirmationVisible(true);\r\n    };\r\n\r\n    const handleGoBack = () => {\r\n        switch (paymentStep) {\r\n            case PaymentStep.Verify:\r\n                setPaymentStep(PaymentStep.Locate);\r\n\r\n                break;\r\n            case PaymentStep.UpdatePaymentInfo:\r\n                setPaymentStep(PaymentStep.Verify);\r\n\r\n                break;\r\n        }\r\n    };\r\n\r\n    // A one-time payment could have the credit card fee added or removed from the total.\r\n    const getPaymentAmount = () => (paymentInfo.IsCard ? invoice.amountDueCredit : invoice.amountDueNonCredit);\r\n\r\n    const updatePaymentInfo = paymentStep === PaymentStep.UpdatePaymentInfo;\r\n\r\n    return (\r\n        <Step title='Make a Payment' className='make-a-payment-container'>\r\n            {paymentStep !== PaymentStep.ThankYou && (\r\n                <StepHeader title='Make a Payment' description={getStepDescription()} />\r\n            )}\r\n\r\n            <StepTileRow className={`content-row${updatePaymentInfo ? ' hide-buffer' : ''}`}>\r\n                {getStepContent()}\r\n            </StepTileRow>\r\n\r\n            {errorMessage && <StepTileRow className='content-row'>{getErrorContent(errorMessage)}</StepTileRow>}\r\n\r\n            <StepTileRow\r\n                className={`action-row${\r\n                    updatePaymentInfo ||\r\n                    paymentStep === PaymentStep.OneTimePayment ||\r\n                    paymentStep === PaymentStep.ThankYou\r\n                        ? ' hide-me'\r\n                        : ''\r\n                }`}\r\n            >\r\n                {paymentStep !== PaymentStep.Locate && paymentStep !== PaymentStep.ThankYou && (\r\n                    <SecondaryBackButton id='back-make-a-payment' label={getBackButtonLabel()} onClick={handleGoBack} />\r\n                )}\r\n\r\n                {paymentStep !== PaymentStep.Verify && (\r\n                    <PrimaryRouteButton\r\n                        type='submit'\r\n                        label='Next'\r\n                        id='submit-make-a-payment'\r\n                        onClick={handleSubmit}\r\n                        loading={isLoading}\r\n                    />\r\n                )}\r\n            </StepTileRow>\r\n\r\n            <Modal\r\n                id='confirmation-modal'\r\n                isOpen={isPaymentConfirmationVisible}\r\n                title={\r\n                    paymentStep === PaymentStep.Verify || paymentStep === PaymentStep.OneTimePayment\r\n                        ? 'Confirm Payment'\r\n                        : 'Confirm Saved Payment Method Update'\r\n                }\r\n                onOpenChange={() => setIsPaymentConfirmationVisible(false)}\r\n                isDismissable={true}\r\n                isKeyboardDismissable={true}\r\n                size='lg'\r\n                showCloseButton={true}\r\n            >\r\n                <div className='make-a-payment-confirmation-modal'>\r\n                    <div>\r\n                        {updatePaymentInfo ? (\r\n                            <p>\r\n                                By clicking the button below, I authorize Swyfft to update my saved payment method to:\r\n                            </p>\r\n                        ) : (\r\n                            <p>\r\n                                You are making a payment of{' '}\r\n                                <span className='emphasize-text-bs'>${getPaymentAmount()}</span> using the following\r\n                                payment method:\r\n                            </p>\r\n                        )}\r\n                    </div>\r\n\r\n                    <p>\r\n                        <PaymentConfirmation\r\n                            heading=' '\r\n                            payInfo={\r\n                                paymentInfo.IsCard\r\n                                    ? ({\r\n                                          payType: 'card',\r\n                                          accountNumber: paymentInfo.CreditCard,\r\n                                      } as ICardSummary)\r\n                                    : ({\r\n                                          payType: 'echeck',\r\n                                          accountNumber: paymentInfo.AccountNumber,\r\n                                          routingNumber: paymentInfo.RoutingNumber,\r\n                                          accountType: paymentInfo.BankAccountType,\r\n                                          bankName: paymentInfo.BankName,\r\n                                      } as ICheckSummary)\r\n                            }\r\n                            payFreq={paymentFrequency}\r\n                            startDate={dayjs()}\r\n                            downPayment={0}\r\n                            monthlyPayment={paymentFrequency?.startsWith('monthly') ? parseFloat(amountDue) : 0}\r\n                            yearlyPayment={\r\n                                !paymentFrequency?.startsWith('monthly') ? parseFloat(getPaymentAmount()) : 0\r\n                            }\r\n                            pageStep={updatePaymentInfo ? 'edit' : 'once'}\r\n                            invoiceNumber={!updatePaymentInfo ? invoice.invoiceNumber ?? 0 : undefined}\r\n                            customerName={\r\n                                paymentInfo.IsCard\r\n                                    ? `${paymentInfo.FirstName} ${paymentInfo.LastName}`\r\n                                    : paymentInfo.AccountName || ''\r\n                            }\r\n                        />\r\n                    </p>\r\n\r\n                    {paymentStep === PaymentStep.OneTimePayment &&\r\n                        !paymentFrequency?.toLowerCase().startsWith('escrow') && (\r\n                            <div className='payment-auth-confirm-language-bs'>\r\n                                <p>\r\n                                    <a\r\n                                        href='#'\r\n                                        onClick={event => {\r\n                                            event.preventDefault();\r\n\r\n                                            setPaymentStep(PaymentStep.UpdatePaymentInfo);\r\n                                            setIsPaymentConfirmationVisible(false);\r\n                                        }}\r\n                                    >\r\n                                        Click here\r\n                                    </a>{' '}\r\n                                    to update your saved payment method now (this transaction will be cancelled).\r\n                                </p>\r\n                            </div>\r\n                        )}\r\n\r\n                    <div className='payment-confirm-actions'>\r\n                        <Button\r\n                            id='confirm-modal'\r\n                            isLoading={isProcessing}\r\n                            onClick={() => {\r\n                                switch (paymentStep) {\r\n                                    case PaymentStep.UpdatePaymentInfo:\r\n                                        changePaymentInfo();\r\n                                        break;\r\n                                    case PaymentStep.Verify:\r\n                                        makePayment();\r\n                                        break;\r\n                                    case PaymentStep.OneTimePayment:\r\n                                        makeOneTimePayment();\r\n                                        break;\r\n                                }\r\n                            }}\r\n                        >\r\n                            Agree & Confirm\r\n                        </Button>\r\n                    </div>\r\n                </div>\r\n            </Modal>\r\n        </Step>\r\n    );\r\n};\r\n\r\nexport const MakeAPayment = {\r\n    path: Path.MakeAPayment,\r\n    element: <MakeAPaymentComponent />,\r\n};\r\n","import { getEAndSFromAdmittedNonRenewal } from '@api/HOApi';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { useAsyncEffect, useRedirect } from '@shared/Hooks';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { getQuotePath } from '..';\r\n\r\nexport function useRenewalEAndSOffer() {\r\n    const params = useParams(),\r\n        redirect = useRedirect();\r\n\r\n    useAsyncEffect(async () => {\r\n        const comparisonModel = await getEAndSFromAdmittedNonRenewal(params.quoteId || ''),\r\n            offerQuoteId = comparisonModel.Quotes[0].QuoteId,\r\n            path = getQuotePath(comparisonModel.Quotes.length);\r\n\r\n        redirect(path, { product: ProductLine.parse(params.product).lowercaseName, quoteId: offerQuoteId });\r\n    }, []);\r\n}\r\n","import { RouteLoadingSpinner } from '@app/Components/RouteLoadingSpinner';\r\nimport { ViewWrapper } from '@app/Components/ViewWrapper';\r\nimport { Path } from '@app/Views';\r\nimport { SwyfftRouteObject } from '@app/Views/routes';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport { useRenewalEAndSOffer } from './hook';\r\n\r\nexport const RenewalEAndSOffer = {\r\n    path: Path.RenewalEAndSOffer,\r\n    shouldRevalidate: () => false,\r\n    auth: AccessRole.Agent,\r\n    element: <Component />,\r\n} as SwyfftRouteObject;\r\n\r\nexport function Component() {\r\n    useRenewalEAndSOffer();\r\n    return (\r\n        <ViewWrapper title='Request E&S Quote' includeTopBuffer>\r\n            <RouteLoadingSpinner />\r\n        </ViewWrapper>\r\n    );\r\n}\r\n","import { createEAndSFromAdmittedAgentRequest } from '@api/HOApi';\r\nimport { StateContext } from '@app/State';\r\nimport { Severity } from '@app/State/Models';\r\nimport { getQuotePath, UrlParams } from '@app/Views';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { useAsyncEffect, useRedirect } from '@shared/Hooks';\r\nimport { Mutable } from '@shared/Models';\r\nimport { useContext } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\n\r\nexport function useRequestEAndSQuote() {\r\n    const params = useParams() as UrlParams,\r\n        application = useContext(StateContext),\r\n        redirect = useRedirect();\r\n\r\n    useAsyncEffect(async () => {\r\n        if (ProductLine.parse(params.product) !== ProductLine.Homeowner) {\r\n            application.update(\r\n                state =>\r\n                    (state.error = {\r\n                        exception: new Error('Product is not supported.') as Mutable<Error>,\r\n                        severity: Severity.error,\r\n                    })\r\n            );\r\n            return;\r\n        }\r\n\r\n        try {\r\n            const comparisonModel = await createEAndSFromAdmittedAgentRequest(params.quoteId),\r\n                eAndSQuoteId = comparisonModel.Quotes[0].QuoteId,\r\n                path = getQuotePath(comparisonModel.Quotes.length);\r\n\r\n            application.update(state => (state.quoteId = eAndSQuoteId));\r\n\r\n            redirect(path, { product: params.product, quoteId: eAndSQuoteId });\r\n        } catch (e) {\r\n            application.update(\r\n                state =>\r\n                    (state.error = {\r\n                        exception: e as Mutable<Error>,\r\n                        severity: Severity.error,\r\n                    })\r\n            );\r\n        }\r\n    }, []);\r\n}\r\n","import { RouteLoadingSpinner } from '@app/Components/RouteLoadingSpinner';\r\nimport { ViewWrapper } from '@app/Components/ViewWrapper';\r\nimport { Path } from '@app/Views';\r\nimport { isAtLeastAgent } from '@shared/Common';\r\nimport { useRequestEAndSQuote } from './hook';\r\n\r\nexport const RequestEAndSQuote = {\r\n    path: Path.RequestEAndSQuote,\r\n    auth: () => isAtLeastAgent(),\r\n    element: <RequestEAndSQuoteComponent />,\r\n};\r\n\r\nfunction RequestEAndSQuoteComponent() {\r\n    useRequestEAndSQuote();\r\n    return (\r\n        <ViewWrapper title='Request E&S Quote' includeTopBuffer>\r\n            <RouteLoadingSpinner />\r\n        </ViewWrapper>\r\n    );\r\n}\r\n","import * as React from 'react';\r\nimport { FunctionComponent } from 'react';\r\n\r\nimport './style.scss';\r\n\r\ntype Props = {\r\n    className?: string;\r\n} & React.PropsWithChildren;\r\n\r\nexport const Header: FunctionComponent<Props> = ({ children, className }: Props) => (\r\n    <div className={`step-header ${className || ''}`}>{children}</div>\r\n);\r\n\r\nexport const SubHeader: FunctionComponent<Props> = ({ children, className }: Props) => (\r\n    <div className={`step-sub-header ${className || ''}`}>{children}</div>\r\n);\r\n","import { getRatingTypeColor } from '@app/ProductComparison/ColorScheme';\r\nimport { clsx } from 'clsx';\r\nimport * as React from 'react';\r\nimport { forwardRef } from 'react';\r\nimport { TwoColumnLayoutProps } from './models';\r\n\r\nexport const TwoColumnLayout = forwardRef(function (props: TwoColumnLayoutProps, ref: React.RefObject<HTMLDivElement>) {\r\n    const { className, first, second, width, ratingType, excludeHeader } = props;\r\n\r\n    return (\r\n        <div ref={ref} className={clsx('step-two-column', className)} style={{ width: width }}>\r\n            {!excludeHeader && ratingType && (\r\n                <div\r\n                    id={`rating-type-header-${ratingType.value}`}\r\n                    className={clsx('absolute top-0 left-0 w-full h-6 rounded-t-sm', getRatingTypeColor(ratingType))}\r\n                >\r\n                    <div className='text-brand-purple-550 text-[13px] text-center font-black uppercase tracking-[3px] pt-[3px] px-3'>\r\n                        {ratingType.displayValue}\r\n                    </div>\r\n                </div>\r\n            )}\r\n            <div className='first'>{first}</div>\r\n            <div className='second'>{second}</div>\r\n        </div>\r\n    );\r\n});\r\n","import { CarrierCode, RatingType } from '@business/CommonSets';\r\nimport { useRef } from 'react';\r\nimport { SelectedQuoteHeaderProps } from './models';\r\n\r\nexport function useSelectedQuoteHeader(props: SelectedQuoteHeaderProps) {\r\n    const { quote } = props,\r\n        carrierCode = CarrierCode.parse(quote.CarrierCode),\r\n        ratingType = RatingType.parse(quote.RatingType),\r\n        headerRef = useRef<HTMLDivElement>(null);\r\n\r\n    return {\r\n        carrierCode,\r\n        ratingType,\r\n        headerRef,\r\n    };\r\n}\r\n","import { TwoColumnLayout } from '@app/Components/StepTile/TwoColumnLayout';\r\nimport { Logo } from '@app/ProductComparison/Logo';\r\nimport { Price } from '@app/ProductComparison/Price';\r\nimport { ProductName } from '@app/ProductComparison/SidebarProductName';\r\nimport { useSelectedQuoteHeader } from './hook';\r\nimport { SelectedQuoteHeaderProps } from './models';\r\nimport './style.scss';\r\n\r\nexport function SelectedQuoteHeader(props: SelectedQuoteHeaderProps) {\r\n    const { quote, quoteProperty, tileWidth: width } = props,\r\n        { carrierCode, ratingType, headerRef } = useSelectedQuoteHeader(props);\r\n\r\n    return (\r\n        <>\r\n            <TwoColumnLayout\r\n                ref={headerRef}\r\n                className='selected-quote-header'\r\n                // Due to fixed positioning, the width of the selected quote header is set dynamically based on the tile width\r\n                width={width}\r\n                first={\r\n                    <div className='selected-quote'>\r\n                        <div className='selected-header-label'>You've Selected:</div>\r\n\r\n                        <Logo\r\n                            id={`selected-quote-logo-${quote.CarrierCode}`}\r\n                            src={carrierCode.logoPath}\r\n                            alt={carrierCode.displayName}\r\n                            className={`selected-quote-logo ${quote.CarrierCode?.toLowerCase()}`}\r\n                        />\r\n\r\n                        <ProductName className={'selected-quote-address'}>\r\n                            <div id='address-line-1'>{quoteProperty.Street1}</div>\r\n                            <div id='address-line-2'>\r\n                                {quoteProperty.City}, {quoteProperty.StateCode} {quoteProperty.Zip}\r\n                            </div>\r\n                        </ProductName>\r\n                    </div>\r\n                }\r\n                second={\r\n                    <Price\r\n                        id={quote.QuoteId}\r\n                        amount={quote.GrossAnnualPayment}\r\n                        className='selected-header-premium'\r\n                        subtext={<PriceSubtext />}\r\n                    />\r\n                }\r\n                ratingType={ratingType}\r\n            />\r\n        </>\r\n    );\r\n\r\n    function PriceSubtext() {\r\n        return <>{quote.GrossAnnualPayment > 0 ? 'Includes Taxes & Fees' : 'Premium unavailable'}</>;\r\n    }\r\n}\r\n","import { useResize } from '@shared/Hooks';\r\nimport { useEffect, useState } from 'react';\r\nimport { QuoteStepTileProps } from './models';\r\n\r\nexport function useQuoteStepTile(props: QuoteStepTileProps) {\r\n    const [tileWidth, setTileWidth] = useState(0);\r\n\r\n    useEffect(updateTileWidth, [props.tileContainerRef.current]);\r\n    useResize(updateTileWidth);\r\n\r\n    return {\r\n        tileWidth,\r\n    };\r\n\r\n    function updateTileWidth() {\r\n        if (!props.tileContainerRef.current) return;\r\n        setTileWidth(props.tileContainerRef?.current.offsetWidth);\r\n    }\r\n}\r\n","import { SelectedQuoteHeader } from '@app/Components/SelectedQuoteHeader';\r\nimport { StepTile } from '@app/Components/StepTile';\r\nimport { useQuoteStepTile } from './hook';\r\nimport { QuoteStepTileProps } from './models';\r\n\r\nexport function QuoteStepTile(props: QuoteStepTileProps) {\r\n    const { quote, quoteProperty, tileContainerRef, children } = props,\r\n        { tileWidth } = useQuoteStepTile(props);\r\n\r\n    return (\r\n        <StepTile ref={tileContainerRef} className='quote-step-tile'>\r\n            {quote && quoteProperty && (\r\n                <SelectedQuoteHeader quote={quote} quoteProperty={quoteProperty} tileWidth={tileWidth} />\r\n            )}\r\n            {children}\r\n        </StepTile>\r\n    );\r\n}\r\n","import {\r\n    getComparisonElementDescriptions,\r\n    getComparisonImportantNotices,\r\n    getComparisonQuotesByProduct,\r\n} from '@api/ComparisonQuoteApi';\r\nimport { ApplicationState } from '@app/State';\r\nimport { UrlParams } from '@app/Views';\r\nimport { CarrierCode, ProductLine } from '@business/CommonSets';\r\nimport { ApiError, ComparisonElementDescriptionModel, ComparisonQuotesModel } from '@shared/Models';\r\n\r\nexport type ComparisonQuoteData = {\r\n    comparisonModel: ComparisonQuotesModel;\r\n    elementDescriptions: ComparisonElementDescriptionModel[];\r\n};\r\n\r\n/** This hook fetches comparison quote data on load based on the Product and QuoteId in the url parameters and handles\r\n * updating the state. */\r\nexport async function loadComparisonQuotes(\r\n    application: ApplicationState,\r\n    params: UrlParams,\r\n    isSingleQuote?: boolean,\r\n    isUrq?: boolean\r\n): Promise<void> {\r\n    const { update } = application,\r\n        // These params can be undefined, so we use the empty string as a fallback to avoid type errors when calling .toLowerCase()\r\n        quoteId = (params.quoteId || '').toLowerCase();\r\n\r\n    if (!quoteId || !params.product) return;\r\n\r\n    const productLine = ProductLine.parse(params.product),\r\n        carriers = params.carriers ? params.carriers.split(',').map(carrier => CarrierCode.parse(carrier)) : [];\r\n\r\n    try {\r\n        const data = await load();\r\n        setData(data);\r\n    } catch (e) {\r\n        update(state => (state.error = e));\r\n    }\r\n\r\n    async function load(): Promise<ComparisonQuoteData> {\r\n        const comparisonModel = await getComparisonQuotesByProduct(productLine, quoteId);\r\n\r\n        if (isUrq) {\r\n            const urqQuote = comparisonModel.Quotes.find(quote => quote.IsUpcomingRenewalQuote);\r\n            if (!urqQuote) {\r\n                handleNonUrqQuote();\r\n            }\r\n        }\r\n\r\n        const elementDescriptions = await getComparisonElementDescriptions(productLine, comparisonModel);\r\n\r\n        return {\r\n            comparisonModel,\r\n            elementDescriptions,\r\n        };\r\n    }\r\n\r\n    function setData(comparisonQuoteData: ComparisonQuoteData): void {\r\n        const { comparisonModel, elementDescriptions } = comparisonQuoteData;\r\n        update(state => {\r\n            state.quoteId = quoteId;\r\n            state.comparisonModel = comparisonModel;\r\n            state.comparisonModelQuoteOrder = comparisonModel.Quotes.map(quote => quote.QuoteId);\r\n            state.elementDescriptions = elementDescriptions;\r\n            state.importantNotices = getComparisonImportantNotices(productLine, comparisonModel);\r\n\r\n            // There are two scenarios that use `visibleQuoteIds`:\r\n            //   - Single quote view: only show the single quote represented by `quoteId`.\r\n            //   - Multi-quote view: if carriers are specified in the URL, only show quotes from those carriers.\r\n            state.visibleQuoteIds = isSingleQuote\r\n                ? [quoteId]\r\n                : carriers?.length\r\n                ? comparisonModel.Quotes.filter(quote => carriers.includes(CarrierCode.parse(quote.CarrierCode))).map(\r\n                      quote => quote.QuoteId\r\n                  )\r\n                : state.comparisonModel.Quotes.map(quote => quote.QuoteId);\r\n\r\n            state.error = null;\r\n            state.warning = null;\r\n        });\r\n    }\r\n\r\n    function handleNonUrqQuote() {\r\n        const uiMessage =\r\n            'The quote requested is not an Upcoming Renewal Quote (URQ). ' +\r\n            'Create a URQ for a valid policy via the quote page, history manage modal, or policy reviews dashboard.';\r\n        throw new ApiError(400, null, uiMessage);\r\n    }\r\n}\r\n","import { loadComparisonQuotes } from '@app/Api/ComparisonQuotes';\r\nimport { StateContext } from '@app/State';\r\nimport { ProductLine, RatingType } from '@business/CommonSets';\r\nimport * as Common from '@shared/Common';\r\nimport { getMessageFromError } from '@shared/Common';\r\nimport { pages } from '@shared/Constants';\r\nimport { ToastContext, useAsyncEffect, useRedirect } from '@shared/Hooks';\r\nimport { setQuoteId } from '@shared/Storage';\r\nimport { TrackingEvent } from '@shared/TrackingEvents';\r\nimport { FormEvent, useContext, useRef, useState } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { getQuotePath, Path, UrlParams } from '..';\r\n\r\nexport function useUnderwritingGuidelines() {\r\n    const application = useContext(StateContext),\r\n        [isInitializing, setInitializing] = useState<boolean>(true),\r\n        toast = useContext(ToastContext),\r\n        redirect = useRedirect(),\r\n        params = useParams<UrlParams>(),\r\n        quoteId = params.quoteId as string,\r\n        quote = application.state.comparisonModel?.Quotes.find(quote => quote.QuoteId === quoteId),\r\n        ratingType = RatingType.parseOrDefault(quote?.RatingType),\r\n        tileContainerRef = useRef<HTMLDivElement>(null);\r\n\r\n    useAsyncEffect(async () => {\r\n        try {\r\n            setInitializing(true);\r\n            await loadComparisonQuotes(application, params as UrlParams);\r\n        } catch (error) {\r\n            application.update(state => (state.error = error));\r\n        } finally {\r\n            setInitializing(false);\r\n        }\r\n    }, []);\r\n\r\n    return {\r\n        isInitializing,\r\n        submit,\r\n        tileContainerRef,\r\n        quote,\r\n        application,\r\n        ratingType,\r\n    };\r\n\r\n    async function submit(e: FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n\r\n        try {\r\n            const { quoteId, importantNotices } = application.state;\r\n            if (!quoteId) return;\r\n\r\n            // Track the transition to the legacy purchase page.\r\n            TrackingEvent.trackSinglePageApplication(\r\n                getQuotePath(application.state.comparisonModel?.Quotes.length),\r\n                'bind'\r\n            );\r\n\r\n            // If there are no required elements or important notices for this quote, skip the confirmation view and go straight to purchase.\r\n            // Note that we use the quote.Required elements instead of the state.staticRequired elements in case we can skip the confirmation view if all the\r\n            // required elements have already been changed.\r\n            const quote = application.state.comparisonModel?.Quotes.find(quote => quote.QuoteId === quoteId),\r\n                confirmationElementNames = quote?.ConfirmationElementNames,\r\n                importantNoticesForQuote = importantNotices.find(notice => notice.quoteId === quoteId);\r\n\r\n            if (!confirmationElementNames?.length && !importantNoticesForQuote?.importantNotices.length) {\r\n                // Set the quoteId for the legacy purchase page to use.\r\n                setQuoteId(quoteId);\r\n\r\n                // Navigate to the legacy purchase page.\r\n                Common.navigate(pages.PurchaseWithProduct(ProductLine.parse(params.product), quoteId));\r\n                return;\r\n            }\r\n\r\n            // Otherwise navigate to the confirmation view.\r\n            redirect(Path.ConfirmQuote, { quoteId, product: params.product as string });\r\n        } catch (e) {\r\n            toast.error(await getMessageFromError(e));\r\n        }\r\n    }\r\n}\r\n","import { PrimaryRouteButton, SecondaryBackButton, StepButtons } from '@app/Components/Buttons';\r\nimport { SubHeader } from '@app/Components/Header';\r\nimport { LayoutWrapper } from '@app/Components/LayoutWrapper';\r\nimport { QuoteStepTile } from '@app/Components/QuoteStepTile';\r\nimport { RouteLoadingSpinner } from '@app/Components/RouteLoadingSpinner';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { ViewWrapper } from '@app/Components/ViewWrapper';\r\nimport { Path } from '@app/Views';\r\nimport { Svg } from '@legacy/Components/Svg';\r\nimport { iconPaths, VaveUnderwritingGuidelines } from '@shared/Constants';\r\nimport { useUnderwritingGuidelines } from './hook';\r\nimport './style.scss';\r\n\r\nenum GuidelineType {\r\n    Required = 'required',\r\n    Prohibited = 'prohibited',\r\n}\r\n\r\nexport const UnderwritingGuidelines = {\r\n    path: Path.UnderwritingGuidelines,\r\n    shouldRevalidate: () => false,\r\n    element: <UnderwritingGuidelinesComponent />,\r\n};\r\n\r\nexport function UnderwritingGuidelinesComponent() {\r\n    const { isInitializing, submit, tileContainerRef, quote, application, ratingType } = useUnderwritingGuidelines();\r\n\r\n    const { state } = application;\r\n\r\n    return (\r\n        <ViewWrapper title='Underwriting Guidelines' includeTopBuffer={true}>\r\n            {isInitializing ? (\r\n                <RouteLoadingSpinner />\r\n            ) : (\r\n                <LayoutWrapper ref={tileContainerRef} withCover>\r\n                    <QuoteStepTile\r\n                        quote={quote}\r\n                        quoteProperty={state.comparisonModel?.QuoteProperty}\r\n                        tileContainerRef={tileContainerRef}\r\n                    >\r\n                        <StepHeader\r\n                            title='Underwriting Guidelines'\r\n                            description='Please confirm the following to the best of your knowledge:'\r\n                            ratingType={ratingType}\r\n                        />\r\n                        <div className='risk-lists'>\r\n                            <RiskList guidelines={VaveUnderwritingGuidelines.Required} type={GuidelineType.Required} />\r\n                            <RiskList\r\n                                guidelines={VaveUnderwritingGuidelines.Prohibited}\r\n                                type={GuidelineType.Prohibited}\r\n                            />\r\n                        </div>\r\n                        <StepButtons\r\n                            positive={\r\n                                <form onSubmit={submit}>\r\n                                    <PrimaryRouteButton label='Yes, I affirm the above' type='submit' />\r\n                                </form>\r\n                            }\r\n                            negative={<SecondaryBackButton label='Back' />}\r\n                        />\r\n                    </QuoteStepTile>\r\n                </LayoutWrapper>\r\n            )}\r\n        </ViewWrapper>\r\n    );\r\n}\r\n\r\ninterface RiskListProps {\r\n    guidelines: string[];\r\n    type: GuidelineType;\r\n}\r\n\r\nfunction RiskList({ guidelines, type }: RiskListProps) {\r\n    return (\r\n        <div className='risk-list'>\r\n            <SubHeader>\r\n                {type === GuidelineType.Required ? 'Risk must/does contain:' : 'Risk is/does not have:'}\r\n            </SubHeader>\r\n\r\n            {guidelines.map((guideline: string, index: number) => (\r\n                <div className='guideline' key={index}>\r\n                    <Svg\r\n                        className={`icon ${type}`}\r\n                        path={type === GuidelineType.Required ? iconPaths.checkMark : iconPaths.close}\r\n                        alt={type.capitalize()}\r\n                    />\r\n                    <span>{guideline}</span>\r\n                </div>\r\n            ))}\r\n        </div>\r\n    );\r\n}\r\n","import { TileCell } from '@app/ProductComparison/TileCell';\r\nimport { ToolTip } from '@app/ProductComparison/ToolTip';\r\nimport { getQuotePath } from '@app/Views';\r\nimport { CarrierCode } from '@business/CommonSets';\r\nimport { Svg } from '@legacy/Components/Svg';\r\nimport { iconPaths } from '@shared/Constants';\r\nimport { useConditionalRender } from '@shared/Hooks';\r\nimport { ComparisonQuoteModel } from '@shared/Models';\r\nimport { TrackingEvent } from '@shared/TrackingEvents';\r\nimport * as React from 'react';\r\nimport { createRef } from 'react';\r\n\r\ninterface IFinancialRatingProps {\r\n    quote: ComparisonQuoteModel;\r\n    index: number;\r\n    getRef: (index: number) => React.RefObject<HTMLDivElement>;\r\n    scrollTo: (index: number) => void;\r\n    visibleQuoteCount: number;\r\n    tileIndex: number;\r\n}\r\n\r\nexport function FinancialRating({\r\n    quote,\r\n    index,\r\n    getRef,\r\n    scrollTo,\r\n    visibleQuoteCount,\r\n    tileIndex,\r\n}: IFinancialRatingProps) {\r\n    const { rendered, visible, setVisible } = useConditionalRender(),\r\n        { QuoteId } = quote,\r\n        carrierCode = CarrierCode.parse(quote.CarrierCode),\r\n        tileCellRef = createRef<HTMLDivElement>(),\r\n        financialRating = carrierCode.getFinancialRating();\r\n\r\n    return (\r\n        <TileCell key={QuoteId} ref={tileCellRef} tileIndex={tileIndex} className='overview-cell'>\r\n            {financialRating && (\r\n                <>\r\n                    <img\r\n                        id={`${carrierCode.value}-financial-rating-badge`}\r\n                        className='financial-rating-badge'\r\n                        src={financialRating.imagePath}\r\n                        alt={financialRating.displayName}\r\n                    />\r\n\r\n                    <Svg\r\n                        className={\r\n                            'comparison-tile-entry-description-icon' +\r\n                            (visibleQuoteCount === 1 ? ' single-tile-tooltip-icon' : '')\r\n                        }\r\n                        alt='Click for more information about Financial Rating.'\r\n                        path={iconPaths.info}\r\n                        onClick={onClickToolTip}\r\n                    />\r\n\r\n                    {rendered && (\r\n                        <ToolTip\r\n                            ref={getRef(index)}\r\n                            trigger={tileCellRef}\r\n                            title='Financial Rating'\r\n                            visible={visible}\r\n                            onClose={() => setVisible(false)}\r\n                            className={visibleQuoteCount === 1 ? 'single-tile-tooltip' : ''}\r\n                        >\r\n                            {financialRating.displayName}\r\n                        </ToolTip>\r\n                    )}\r\n                </>\r\n            )}\r\n        </TileCell>\r\n    );\r\n\r\n    function onClickToolTip() {\r\n        setVisible(true);\r\n        TrackingEvent.trackSinglePageApplication(getQuotePath(visibleQuoteCount), 'tooltip', 'Financial Rating');\r\n        scrollTo(index);\r\n    }\r\n}\r\n","import { CarrierCode } from '@business/CommonSets';\r\nimport { iconPaths } from '@shared/Constants';\r\nimport { Paragraph } from '@webkit/index';\r\n\r\ntype Props = {\r\n    carrierCode: CarrierCode;\r\n};\r\n\r\nexport function CarrierOverview(props: Props) {\r\n    const { carrierCode } = props;\r\n\r\n    return (\r\n        <div id={`${carrierCode.value}-overview-section`}>\r\n            {props.carrierCode.switch({\r\n                onVave: LloydsCoverholderLogo,\r\n                onHiscox: LloydsLogo,\r\n                onBrit: LloydsLogo,\r\n                onBenchmark: CarrierName,\r\n                onBenchmarkSpecialty: CarrierName,\r\n                onClearBlue: CarrierName,\r\n                onClearBlueSpecialty: CarrierName,\r\n                onDorchester: CarrierName,\r\n                onNfip: CarrierName,\r\n                onTopa: CarrierName,\r\n                onGranada: CarrierName,\r\n                onEmeraldBay: CarrierName,\r\n            })}\r\n        </div>\r\n    );\r\n\r\n    function CarrierName() {\r\n        return <>{carrierCode.displayName}</>;\r\n    }\r\n\r\n    function LloydsLogo() {\r\n        return (\r\n            <img\r\n                id={`${carrierCode.value}-lloyds-logo`}\r\n                src={iconPaths.lloydsLogo}\r\n                alt={carrierCode.displayName}\r\n                className='max-h-10'\r\n            />\r\n        );\r\n    }\r\n\r\n    function LloydsCoverholderLogo() {\r\n        return (\r\n            <div className='my-1'>\r\n                <img\r\n                    id={`${carrierCode.value}-lloyds-coverholder-logo`}\r\n                    src={iconPaths.lloydsCoverholderLogo}\r\n                    alt={carrierCode.displayName}\r\n                    className='max-h-10'\r\n                />\r\n                <Paragraph size='xs'>Underwritten by certain underwriters at Lloyd's</Paragraph>\r\n            </div>\r\n        );\r\n    }\r\n}\r\n","import { StateContext } from '@app/State';\r\nimport { simpleDateFormat } from '@shared/Constants';\r\nimport { useScrollTo } from '@shared/Hooks';\r\nimport dayjs from 'dayjs';\r\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\r\nimport { useContext, useMemo } from 'react';\r\nimport { OverviewSectionProps } from './models';\r\n\r\ndayjs.extend(localizedFormat);\r\n\r\nexport function useQuoteOverviewSection(props: OverviewSectionProps) {\r\n    const { state } = useContext(StateContext),\r\n        comparisonQuotes = useMemo(() => state.comparisonModel?.Quotes || [], [state.comparisonModel?.Quotes]),\r\n        visibleQuotes = useMemo(() => getVisibleQuotes(), [comparisonQuotes, state.visibleQuoteIds]);\r\n\r\n    const { getRef, scrollTo } = useScrollTo(visibleQuotes.map((_, index) => index));\r\n\r\n    return {\r\n        visibleQuotes,\r\n        getRef,\r\n        scrollTo,\r\n        getGuaranteedUntilDate,\r\n    };\r\n\r\n    function getVisibleQuotes() {\r\n        return comparisonQuotes.filter(quote => state.visibleQuoteIds.includes(quote.QuoteId));\r\n    }\r\n\r\n    /** Business wants the expiration displayed to be 1 day before the actual quote expiration date */\r\n    function getGuaranteedUntilDate(expiresOn: string) {\r\n        return dayjs(expiresOn).subtract(1, 'day').format(simpleDateFormat);\r\n    }\r\n}\r\n","import { FinancialRating } from '@app/Components/OverviewSection/FinancialRating';\r\nimport { Row } from '@app/ProductComparison/Row';\r\nimport { TileCell } from '@app/ProductComparison/TileCell';\r\nimport { CarrierCode, RatingType } from '@business/CommonSets';\r\nimport { CarrierOverview } from './CarrierOverview';\r\nimport { useQuoteOverviewSection } from './hook';\r\nimport { OverviewSectionProps } from './models';\r\nimport './style.scss';\r\n\r\nexport function QuoteOverviewSection(props: OverviewSectionProps) {\r\n    const { tileIndex } = props,\r\n        { visibleQuotes, getRef, scrollTo, getGuaranteedUntilDate } = useQuoteOverviewSection(props);\r\n\r\n    return (\r\n        <>\r\n            <Row sidebar='Carrier'>\r\n                {visibleQuotes.map(quote => (\r\n                    <TileCell key={quote.QuoteId} tileIndex={tileIndex} className={'overview-cell'}>\r\n                        <CarrierOverview carrierCode={CarrierCode.parse(quote.CarrierCode)} />\r\n                    </TileCell>\r\n                ))}\r\n            </Row>\r\n\r\n            <Row sidebar='Financial Rating'>\r\n                {visibleQuotes.map((quote, index) => (\r\n                    <FinancialRating\r\n                        key={quote.QuoteId}\r\n                        quote={quote}\r\n                        index={index}\r\n                        getRef={getRef}\r\n                        scrollTo={scrollTo}\r\n                        tileIndex={tileIndex}\r\n                        visibleQuoteCount={visibleQuotes.length}\r\n                    />\r\n                ))}\r\n            </Row>\r\n\r\n            <Row sidebar='Policy Type'>\r\n                {visibleQuotes.map(quote => (\r\n                    <TileCell key={quote.QuoteId} tileIndex={tileIndex} className={'overview-cell'}>\r\n                        {RatingType.parse(quote.RatingType).displayValue}\r\n                    </TileCell>\r\n                ))}\r\n            </Row>\r\n\r\n            <Row sidebar='Quote Guaranteed Until'>\r\n                {visibleQuotes.map(quote => (\r\n                    <TileCell key={quote.QuoteId} tileIndex={tileIndex} className={'overview-cell'}>\r\n                        {getGuaranteedUntilDate(quote.ExpiresOn)}\r\n                    </TileCell>\r\n                ))}\r\n            </Row>\r\n        </>\r\n    );\r\n}\r\n","import { fetchAndLog, fetchAndLogWithResponse } from '../Fetch';\r\n\r\nexport async function getMepMaxPercentage(productLine: number, carrierCode: string, purchasedOn: string | null) {\r\n    return await fetchAndLog<number>(\r\n        `/api/mep/max-percentage?productLine=${productLine}&carrierCode=${carrierCode}&purchasedOn=${purchasedOn || ''}`,\r\n        'get mep max percentage',\r\n    );\r\n}\r\n\r\nexport async function getMepDisclaimer(productLine: number, carrierCode: string, purchasedOn: string | null) {\r\n    const response = await fetchAndLogWithResponse(\r\n        `/api/mep/disclaimer?productLine=${productLine}&carrierCode=${carrierCode}&purchasedOn=${purchasedOn || ''}`,\r\n        'get mep disclaimer',\r\n    );\r\n\r\n    if (!response.ok) {\r\n        throw response;\r\n    }\r\n\r\n    const text = await response.text();\r\n    return text?.length ? text : '';\r\n}\r\n","import { FontSizes, Heading2, Table } from '@legacy/Components/ReactToPdf';\r\nimport { PropsWithChildren } from 'react';\r\n\r\ninterface GroupProps {\r\n    label: string;\r\n    margin?: string;\r\n    children;\r\n}\r\n\r\nexport function Group({ label, margin, children }: PropsWithChildren<GroupProps>) {\r\n    return (\r\n        <Table margin={margin || '0 0 10px 0'}>\r\n            <Heading2 fontSize={FontSizes.medium2} margin='0 0 6px 0'>\r\n                {label}\r\n            </Heading2>\r\n\r\n            {children}\r\n        </Table>\r\n    );\r\n}\r\n","import { FontSizes, ITableRowProps, TableRow } from '@legacy/Components/ReactToPdf/Components';\r\n\r\nexport function GroupRow({ label, data, dataWidth, dataMinWidth, minWidth, width }: ITableRowProps) {\r\n    return (\r\n        <TableRow\r\n            label={label}\r\n            data={data}\r\n            fontSizeOverride={FontSizes.small3}\r\n            labelFontSize={FontSizes.small3}\r\n            width={width}\r\n            minWidth={minWidth || '300px'}\r\n            dataMinWidth={dataMinWidth ?? '180px'}\r\n            dataWidth={dataWidth}\r\n        />\r\n    );\r\n}\r\n","import { CarrierCode, ElementGroupName, ProductLine, StateCode } from '@business/CommonSets';\r\nimport { toBoolean } from '@shared/Common';\r\nimport {\r\n    createHardCodedElement,\r\n    getComparisonElementFromComparisonModel,\r\n    hasElementWithName,\r\n} from '@shared/Common/ComparisonQuoteHelpers';\r\nimport { ElementDisplayNames, ElementGroupNames, ElementNames } from '@shared/Constants';\r\nimport {\r\n    ComparisonElementGroupModel,\r\n    ComparisonElementsModel,\r\n    ComparisonQuotesModel,\r\n} from '@shared/Models/ComparisonQuoteModels';\r\n\r\nexport function hasStubOrAdminElement(comparisonElement: ComparisonElementsModel) {\r\n    const elementDisplay = comparisonElement.ElementDisplay.toLowerCase();\r\n\r\n    // SW-26325 - We can't filter out the Prior Claims Stub because we need it for Vave single quote models in order to render the prior claims info\r\n    // on the printed quote (see related comments up above with the same ticket number for more info)\r\n    const isStubElement = elementDisplay.includes('stub') && !elementDisplay.includes('claims');\r\n\r\n    // SW-26664 - Additional Replacement Cost is an admin only element, but if it is set to a value other than None, we want to display it on the printed quote\r\n    // SW-27920 - Fixed the attempt to handle this case on the backend (SW-26664) which removed the (Admin Only) label from the element display. Instead of removing that\r\n    // from all Admin elements to fix this issue, we should just handle the case here as it is specific to the printed quote requirements.\r\n    const hasAdditionalReplacementCost =\r\n        elementDisplay.includes(ElementDisplayNames.AdditionalReplacementCost.toLowerCase()) &&\r\n        comparisonElement.Elements[0].Value?.toLowerCase() !== 'none';\r\n\r\n    // If an element is Admin Only (and not Additional Replacement Cost with a value other than None), we don't want to display it on the printed quote\r\n    const isAdminElement = !hasAdditionalReplacementCost && elementDisplay.includes('admin');\r\n\r\n    return isStubElement || isAdminElement;\r\n}\r\n\r\nexport function adjustElementsForPrintedQuote(\r\n    quoteId: string,\r\n    quotes: ComparisonQuotesModel,\r\n    productLine: ProductLine,\r\n    carrierCode: CarrierCode,\r\n    stateCode: StateCode,\r\n    elementGroup: ComparisonElementGroupModel\r\n) {\r\n    // Remove any admin and stub elements we don't want to display on the printed quote (it is agent facing only)\r\n    let adjustedElements = elementGroup.ComparisonElements.filter(el => !hasStubOrAdminElement(el));\r\n\r\n    // Adjust with product variations\r\n    productLine.switch({\r\n        onHomeowner,\r\n        onFlood,\r\n        onCommercial,\r\n    });\r\n\r\n    return adjustedElements;\r\n\r\n    function onHomeowner() {\r\n        ElementGroupName.parse(elementGroup.ElementGroupName).switch({\r\n            onPropertyCoverages,\r\n            onAdditionalCoverages,\r\n            onDeductibles,\r\n            onDefault: doNothing,\r\n        });\r\n\r\n        function onPropertyCoverages() {\r\n            // Add Replacement Cost Settlement element to Property Coverages for all Homeowner printed quotes\r\n            adjustedElements.push(\r\n                createHardCodedElement(\r\n                    quoteId,\r\n                    'Personal Property - Replacement Cost Settlement',\r\n                    'ReplacementCostSettlement',\r\n                    'Yes'\r\n                )\r\n            );\r\n\r\n            carrierCode.switch({\r\n                onBenchmark,\r\n                onBenchmarkSpecialty: onTopaAndBenchmarkSpecialty,\r\n                onTopa: onTopaAndBenchmarkSpecialty,\r\n                onDorchester,\r\n                onVave: doNothing,\r\n                onClearBlue: doNothing,\r\n                onClearBlueSpecialty: doNothing,\r\n                onHiscox: doNothing,\r\n                onNfip: doNothing,\r\n                onBrit: doNothing,\r\n                onGranada: doNothing,\r\n                onEmeraldBay: doNothing,\r\n            });\r\n\r\n            function onBenchmark() {\r\n                stateCode.switch({\r\n                    // Add RMPS element for Benchmark AL, MA, TX\r\n                    onAl: addRmpsElement,\r\n                    onMa: addRmpsElement,\r\n                    onTx: addRmpsElement,\r\n                    onDefault: doNothing,\r\n                });\r\n            }\r\n\r\n            function onTopaAndBenchmarkSpecialty() {\r\n                stateCode.switch({\r\n                    // Add RSPS for Topa FL, LA, SC, TX\r\n                    onFl: addRspsElement,\r\n                    onLa: addRspsElement,\r\n                    onSc: addRspsElement,\r\n                    onTx: addRspsElement,\r\n                    // Add RMPS for Topa AL, MA\r\n                    onAl: addRmpsElement,\r\n                    onMa: addRmpsElement,\r\n                    onDefault: doNothing,\r\n                });\r\n            }\r\n\r\n            function onDorchester() {\r\n                stateCode.switch({\r\n                    // Add RSPS for Dorchester MS\r\n                    onMs: addRspsElement,\r\n                    onDefault: doNothing,\r\n                });\r\n            }\r\n\r\n            function addRmpsElement() {\r\n                adjustedElements.push(\r\n                    createHardCodedElement(\r\n                        quoteId,\r\n                        'Roofing Materials Payment Schedule',\r\n                        'RoofingMaterialsPaymentSchedule',\r\n                        'Yes'\r\n                    )\r\n                );\r\n            }\r\n\r\n            function addRspsElement() {\r\n                adjustedElements.push(\r\n                    createHardCodedElement(\r\n                        quoteId,\r\n                        'Roofing Systems Payment Schedule',\r\n                        'RoofingSystemsPaymentSchedule',\r\n                        'Yes'\r\n                    )\r\n                );\r\n            }\r\n        }\r\n\r\n        function onAdditionalCoverages() {\r\n            carrierCode.switch({\r\n                onVave,\r\n                onBenchmark: doNothing,\r\n                onBenchmarkSpecialty: doNothing,\r\n                onTopa: doNothing,\r\n                onDorchester: doNothing,\r\n                onClearBlue: doNothing,\r\n                onClearBlueSpecialty: doNothing,\r\n                onHiscox: doNothing,\r\n                onNfip: doNothing,\r\n                onBrit: doNothing,\r\n                onGranada: doNothing,\r\n                onEmeraldBay: doNothing,\r\n            });\r\n\r\n            function onVave() {\r\n                // Add Vave exclusions for Pool Cage and Screen Enclosure\r\n                adjustedElements.push(\r\n                    createHardCodedElement(quoteId, 'Pool Cage and Screen Enclosure', 'VaveExclusions', 'Excluded')\r\n                );\r\n            }\r\n        }\r\n\r\n        function onDeductibles() {\r\n            carrierCode.switch({\r\n                onVave,\r\n                onBenchmark: doNothing,\r\n                onBenchmarkSpecialty: doNothing,\r\n                onTopa: doNothing,\r\n                onDorchester: doNothing,\r\n                onClearBlue: doNothing,\r\n                onClearBlueSpecialty: doNothing,\r\n                onHiscox: doNothing,\r\n                onNfip: doNothing,\r\n                onBrit: doNothing,\r\n                onGranada: doNothing,\r\n                onEmeraldBay: doNothing,\r\n            });\r\n\r\n            function onVave() {\r\n                const lossAssessmentEarthquakeCoverage = getComparisonElementFromComparisonModel(\r\n                        quotes,\r\n                        ElementNames.LossAssessmentEarthquake,\r\n                        quoteId\r\n                    ),\r\n                    hasLossAssessmentEarthquakeCoverage = toBoolean(lossAssessmentEarthquakeCoverage?.Value);\r\n\r\n                // SW-30635, SW-33332 - Add hard-coded element for Homeowner Vave quotes when LossAssessmentEarthquake element is present and its value is \"true\"\r\n                if (hasLossAssessmentEarthquakeCoverage) {\r\n                    adjustedElements.push(\r\n                        createHardCodedElement(\r\n                            quoteId,\r\n                            'Loss Assessment - Earthquake Deductible',\r\n                            'LossAssessment',\r\n                            '10%'\r\n                        )\r\n                    );\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n    function onFlood() {\r\n        // SW-25759 - Remove the replacement cost element for all Flood quotes\r\n        // (It is shown in the UI but business does not want it displayed on the printed quote  because it is only used for rating)\r\n        adjustedElements = adjustedElements.filter(\r\n            comparisonElements => !hasElementWithName(comparisonElements, ElementNames.replacementCost)\r\n        );\r\n\r\n        ElementGroupName.parse(elementGroup.ElementGroupName).switch({\r\n            onPropertyCoverages,\r\n            onDefault: doNothing,\r\n        });\r\n\r\n        function onPropertyCoverages() {\r\n            carrierCode.switch({\r\n                // Flood carriers except Hiscox have the same default flood coverage elements\r\n                onVave: addDefaultFloodCoverageElements,\r\n                onNfip: doNothing,\r\n                // Do not show default coverage elements for Hiscox\r\n                onHiscox: doNothing,\r\n                // Do nothing for non-flood carriers\r\n                onBenchmark: doNothing,\r\n                onBenchmarkSpecialty: doNothing,\r\n                onTopa: doNothing,\r\n                onDorchester: doNothing,\r\n                onClearBlue: doNothing,\r\n                onClearBlueSpecialty: doNothing,\r\n                onBrit: doNothing,\r\n                onGranada: doNothing,\r\n                onEmeraldBay: doNothing,\r\n            });\r\n        }\r\n\r\n        function addDefaultFloodCoverageElements() {\r\n            adjustedElements.push(createHardCodedElement(quoteId, 'Other Coverages', 'OtherCoverages', 'Included'));\r\n            adjustedElements.push(\r\n                createHardCodedElement(quoteId, 'Increased Cost of Compliance', 'IncreasedCostOfCompliance', 'Included')\r\n            );\r\n        }\r\n    }\r\n\r\n    function onCommercial() {\r\n        return adjustedElements;\r\n    }\r\n}\r\n\r\nexport function getElementGroupsForQuote(comparisonModel: ComparisonQuotesModel, quoteId: string) {\r\n    return comparisonModel.ElementGroups.filter(\r\n        eg =>\r\n            eg.ElementGroupName !== ElementGroupNames.Admin &&\r\n            eg.ComparisonElements.flatMap(ce => ce.Elements).some(e => e.QuoteId === quoteId)\r\n    );\r\n}\r\n\r\nexport function getCommercialCoverPageElementGroups(\r\n    comparisonModel: ComparisonQuotesModel,\r\n    quoteId: string,\r\n    carrierCode: string | null\r\n) {\r\n    const elementGroups = getElementGroupsForQuote(comparisonModel, quoteId);\r\n    return (\r\n        CarrierCode.parseOrDefault(carrierCode)?.switch({\r\n            onVave: () => elementGroups.slice(0, 5),\r\n            onTopa: () => elementGroups.slice(0, 2),\r\n            onBenchmark: doNothing,\r\n            onBenchmarkSpecialty: doNothing,\r\n            onBrit: doNothing,\r\n            onClearBlue: doNothing,\r\n            onClearBlueSpecialty: doNothing,\r\n            onDorchester: doNothing,\r\n            onEmeraldBay: doNothing,\r\n            onGranada: doNothing,\r\n            onHiscox: doNothing,\r\n            onNfip: doNothing,\r\n        }) || ([] as ComparisonElementGroupModel[])\r\n    );\r\n}\r\n\r\nexport function getCommercialSecondPageElementGroups(\r\n    comparisonModel: ComparisonQuotesModel,\r\n    quoteId: string,\r\n    carrierCode: string | null\r\n) {\r\n    const elementGroups = getElementGroupsForQuote(comparisonModel, quoteId);\r\n    return (\r\n        CarrierCode.parseOrDefault(carrierCode)?.switch({\r\n            onVave: () => elementGroups.slice(5, elementGroups.length),\r\n            onTopa: () => elementGroups.slice(2, elementGroups.length),\r\n            onBenchmark: doNothing,\r\n            onBenchmarkSpecialty: doNothing,\r\n            onBrit: doNothing,\r\n            onClearBlue: doNothing,\r\n            onClearBlueSpecialty: doNothing,\r\n            onDorchester: doNothing,\r\n            onEmeraldBay: doNothing,\r\n            onGranada: doNothing,\r\n            onHiscox: doNothing,\r\n            onNfip: doNothing,\r\n        }) || ([] as ComparisonElementGroupModel[])\r\n    );\r\n}\r\n\r\nfunction doNothing(): void {}\r\n","import { GroupRow } from '@app/PrintQuote/Components/GroupRow';\r\nimport { PrintQuoteContext } from '@app/PrintQuote/Context';\r\nimport { formatElementValue } from '@app/ProductComparison/Hooks/UseElement';\r\nimport { CarrierCode, StateCode } from '@business/CommonSets';\r\nimport { stripExtraQuoteElementLabelParts } from '@shared/Common';\r\nimport { getComparisonElementFromComparisonModel, getElementGroupByName } from '@shared/Common/ComparisonQuoteHelpers';\r\nimport { ElementNames, ElementTemplateTypes } from '@shared/Constants';\r\nimport { ComparisonQuoteModel, ComparisonQuotesModel } from '@shared/Models';\r\nimport { ReactElement, useContext, useMemo } from 'react';\r\nimport { adjustElementsForPrintedQuote } from '../Helpers';\r\n\r\n/* Handles mapping quote element groups and their elements to be formatted properly for the printed quote.\r\nThere are also cases where we have to add hard-coded elements not present in the quote data to the printed quote due to differences in business requirements between the data structures, UI, and the printed quote. */\r\nexport function mapElementGroupToPrintedQuote(\r\n    quotes: ComparisonQuotesModel,\r\n    quoteId: string,\r\n    quote: ComparisonQuoteModel,\r\n    groupName: string,\r\n    minWidthOverride?: string\r\n): (ReactElement | null)[] | null {\r\n    const { comparisonModel, productLine } = useContext(PrintQuoteContext),\r\n        carrierCode = CarrierCode.parse(quote.CarrierCode),\r\n        elementGroup = getElementGroupByName(quotes, groupName),\r\n        stateCode = StateCode.parse(quotes.QuoteProperty?.StateCode || ''),\r\n        dataWidth = useMemo(getDataWidth, [productLine]);\r\n\r\n    const adjustedElements = adjustElementsForPrintedQuote(\r\n        quoteId,\r\n        quotes,\r\n        productLine,\r\n        carrierCode,\r\n        stateCode,\r\n        elementGroup\r\n    );\r\n\r\n    return adjustedElements.map(comparisonElements => {\r\n        const comparisonElementModel = comparisonElements.Elements.find(el => el.QuoteId === quoteId),\r\n            childElementNames = [\r\n                ...new Set(\r\n                    comparisonModel?.Quotes.flatMap(quote => quote.Elements)\r\n                        .filter(element => element.ParentElementName)\r\n                        .map(element => element.ElementName)\r\n                ),\r\n            ];\r\n\r\n        if (!comparisonElementModel || childElementNames.includes(comparisonElementModel.ElementName)) {\r\n            return null;\r\n        }\r\n\r\n        // SW-26325 - This is here to strip any extra quote element label parts out to handle Prior Claims for single Vave quotes\r\n        // (An element can be passed down with the label \"Prior Claims Stub (Ignore)\" for single quotes, whereas for multiple quotes the element would get wrapped\r\n        // in a ComparisonElementsModel labeled \"Prior Claims\" and if we filter out all elements with stub we won't be able to render this claims element properly,\r\n        // see below where we map the value of ComparisonQuoteModel.Claims to the prior claims stub element value)\r\n        const formattedLabel = stripExtraQuoteElementLabelParts(comparisonElements.ElementDisplay);\r\n\r\n        // Initialize the formatted value as the element value\r\n        let formattedValue = comparisonElementModel.Value;\r\n\r\n        // Format the value for choice elements by selecting the choice Name property and defaulting to 'Not Specified' if the choice's value does not match\r\n        // the element value, or is not there\r\n        if (comparisonElementModel.ElementType === ElementTemplateTypes.Choice) {\r\n            formattedValue =\r\n                comparisonElementModel.Choices.find(choice => choice.Value === comparisonElementModel.Value)?.Name ||\r\n                'Not Specified';\r\n        }\r\n\r\n        if (comparisonElementModel.ElementType === ElementTemplateTypes.MultiSelect) {\r\n            formattedValue =\r\n                comparisonElementModel.Value?.split('|')\r\n                    .map(\r\n                        value =>\r\n                            comparisonElementModel.Choices.find(choice => choice.Value === value)?.Name ||\r\n                            'Not Specified'\r\n                    )\r\n                    .join(', ') || 'Not Specified';\r\n        }\r\n\r\n        // Map true or false values to Yes or No\r\n        switch ((formattedValue || '').toLowerCase()) {\r\n            case 'true':\r\n                formattedValue = 'Yes';\r\n                break;\r\n            case 'false':\r\n                formattedValue = 'No';\r\n                break;\r\n        }\r\n\r\n        // Format the num losses element value to the raw element value or 'Not Specified' if it is not there\r\n        if (comparisonElementModel.ElementName === ElementNames.numLosses) {\r\n            formattedValue = !!comparisonElementModel.Value ? comparisonElementModel.Value : 'Not Specified';\r\n        }\r\n\r\n        // SW-26325 - The prior claims element for Vave is a \"stub\" so we have to get the value here from the\r\n        // ComparisonQuoteModel.Claims value instead of the element itself (see related comment up above with the same ticket number for more info)\r\n        if ([ElementNames.PriorClaims, ElementNames.Claims].includes(comparisonElementModel.ElementName)) {\r\n            formattedValue = quote.Claims.length.toString();\r\n        }\r\n\r\n        // SW-29817 - If the loss of use value is 0, mark it as excluded on the printed quote\r\n        if (comparisonElementModel.ElementName === ElementNames.coverageDLimit) {\r\n            const lossOfUse = getComparisonElementFromComparisonModel(\r\n                quotes,\r\n                ElementNames.coverageDLimit,\r\n                quote.QuoteId\r\n            );\r\n            if (lossOfUse?.Value !== null && lossOfUse?.Value === '0') {\r\n                // The formatElementValue function will override this string because coverage D is a number type, so we render a different group row here\r\n                return <GroupRow key={formattedLabel} label={formattedLabel} data='Excluded' />;\r\n            }\r\n        }\r\n\r\n        const finalFormattedValue = formatElementValue(comparisonElementModel, formattedValue);\r\n\r\n        return (\r\n            <GroupRow\r\n                key={formattedLabel}\r\n                label={formattedLabel}\r\n                data={(finalFormattedValue || '').toString()}\r\n                minWidth={minWidthOverride}\r\n                dataWidth={dataWidth}\r\n                dataMinWidth={dataWidth}\r\n            />\r\n        );\r\n    });\r\n\r\n    function getDataWidth() {\r\n        return productLine.switch({\r\n            onHomeowner: () => undefined,\r\n            onFlood: () => undefined,\r\n            onCommercial: () => '180px',\r\n        });\r\n    }\r\n}\r\n","import { PropsWithChildren } from 'react';\r\n\r\nexport function LogoBlock({ children }: PropsWithChildren) {\r\n    return (\r\n        <div style={{ display: 'inline-flex', alignItems: 'center', margin: '0 0 16px 0' }}>\r\n            <img\r\n                alt='Swyfft'\r\n                src='https://www.swyfft.com/images/new-logo.png' // Images need full url for Aspose HTML to PDF\r\n                style={{\r\n                    width: '44px',\r\n                    height: 'auto',\r\n                    margin: '0 16px -6px 0',\r\n                }}\r\n            />\r\n\r\n            <div>{children}</div>\r\n        </div>\r\n    );\r\n}\r\n","import { PrintQuoteContext } from '@app/PrintQuote/Context';\r\nimport { Colors, FontSizes, Heading1, SubText } from '@legacy/Components/ReactToPdf';\r\nimport { formatGrossAnnualPayment } from '@shared/Common';\r\nimport { useContext, useMemo } from 'react';\r\n\r\nexport function Premium() {\r\n    const { quote, productLine } = useContext(PrintQuoteContext),\r\n        textAlign = useMemo(getTextAlignment, [productLine]);\r\n\r\n    return (\r\n        <Heading1 color={Colors.brandGreen} margin='0' textAlign={textAlign}>\r\n            <span style={{ fontSize: FontSizes.large2 }}>$ </span>\r\n\r\n            {formatGrossAnnualPayment(quote.GrossAnnualPayment)}\r\n\r\n            <SubText textAlign={textAlign}>Total Premium</SubText>\r\n        </Heading1>\r\n    );\r\n\r\n    /** Sets the text alignment for the premium, which should be centered for Commercial and otherwise left-aligned. */\r\n    function getTextAlignment(): 'left' | 'center' {\r\n        return productLine.switch({\r\n            onHomeowner: () => 'left',\r\n            onFlood: () => 'left',\r\n            onCommercial: () => 'center',\r\n        });\r\n    }\r\n}\r\n","import { LogoBlock } from '@app/PrintQuote/Components/LogoBlock';\r\nimport { PrintQuoteContext } from '@app/PrintQuote/Context';\r\nimport { CarrierCode } from '@business/CommonSets';\r\nimport { Colors, Column, FontSizes, Heading1, SubText } from '@legacy/Components/ReactToPdf';\r\nimport { useContext } from 'react';\r\nimport { Premium } from './Premium';\r\n\r\nexport function PageHeader() {\r\n    const { quote, productLine } = useContext(PrintQuoteContext),\r\n        carrierCode = CarrierCode.parse(quote.CarrierCode),\r\n        financialRating = carrierCode.getFinancialRating();\r\n\r\n    return (\r\n        <>\r\n            <Column width='62%' inline>\r\n                <LogoBlock>\r\n                    <Heading1 fontSize={FontSizes.large2} margin='0 0 2px 0'>\r\n                        {productLine.value} Insurance Proposal\r\n                    </Heading1>\r\n\r\n                    <SubText id='carrier-code' fontSize={FontSizes.small3}>\r\n                        {carrierCode.displayName}\r\n                    </SubText>\r\n\r\n                    {financialRating && (\r\n                        <SubText id='financial-rating' fontSize={FontSizes.small2} color={Colors.mediumPurple1}>\r\n                            {financialRating.displayName}\r\n                        </SubText>\r\n                    )}\r\n                </LogoBlock>\r\n            </Column>\r\n\r\n            <Column width='33%' margin='0 0 0 34px' inline>\r\n                <Premium />\r\n            </Column>\r\n\r\n            {/* Show divider for Commercial */}\r\n            {productLine.switch({\r\n                onHomeowner: () => <> </>,\r\n                onFlood: () => <> </>,\r\n                onCommercial: () => <hr style={{ margin: '0 0 12px 0', border: '1px solid #f2f4f5' }} />,\r\n            })}\r\n        </>\r\n    );\r\n}\r\n","import { Column, Page } from '@legacy/Components/ReactToPdf';\r\nimport { useContext, useMemo } from 'react';\r\nimport { Group } from '../Components/Group';\r\nimport { mapElementGroupToPrintedQuote } from '../Components/MapElementGroupToPrintedQuote';\r\nimport { PageHeader } from '../Components/PageHeader';\r\nimport { PrintQuoteContext } from '../Context';\r\nimport { getCommercialSecondPageElementGroups } from '../Helpers';\r\n\r\nexport function CommercialSecondPage() {\r\n    const { pageCount, timeStamp, comparisonModel, quoteId, quote } = useContext(PrintQuoteContext),\r\n        elementGroups = useMemo(getSecondPageGroups, [comparisonModel, quoteId, quote.CarrierCode]),\r\n        firstColumn = useMemo(() => elementGroups.slice(0, Math.ceil(elementGroups.length / 2)), [elementGroups]),\r\n        secondColumn = useMemo(\r\n            () => elementGroups.slice(Math.ceil(elementGroups.length / 2), elementGroups.length),\r\n            [elementGroups]\r\n        );\r\n\r\n    return (\r\n        <Page id='commercial-second-page' currentPage={2} totalPages={pageCount} timeStamp={timeStamp}>\r\n            <PageHeader />\r\n\r\n            <Column width='45%' inline>\r\n                {firstColumn.map(group => (\r\n                    <Group key={group.ElementGroupName} label={group.ElementGroupName.replace('and', '&')}>\r\n                        {mapElementGroupToPrintedQuote(\r\n                            comparisonModel,\r\n                            quoteId,\r\n                            quote,\r\n                            group.ElementGroupName,\r\n                            '190px'\r\n                        )}\r\n                    </Group>\r\n                ))}\r\n            </Column>\r\n            <Column width='45%' margin='0 0 0 45px' inline>\r\n                {secondColumn.map(group => (\r\n                    <Group key={group.ElementGroupName} label={group.ElementGroupName.replace('and', '&')}>\r\n                        {mapElementGroupToPrintedQuote(\r\n                            comparisonModel,\r\n                            quoteId,\r\n                            quote,\r\n                            group.ElementGroupName,\r\n                            '190px'\r\n                        )}\r\n                    </Group>\r\n                ))}\r\n            </Column>\r\n        </Page>\r\n    );\r\n\r\n    function getSecondPageGroups() {\r\n        return getCommercialSecondPageElementGroups(comparisonModel, quoteId, quote.CarrierCode);\r\n    }\r\n}\r\n","import { Group } from '@app/PrintQuote/Components/Group';\r\nimport { mapElementGroupToPrintedQuote } from '@app/PrintQuote/Components/MapElementGroupToPrintedQuote';\r\nimport { PrintQuoteContext } from '@app/PrintQuote/Context';\r\nimport { ElementGroupNames } from '@shared/Constants';\r\nimport { useContext, useMemo } from 'react';\r\nimport { getCommercialCoverPageElementGroups } from '../Helpers';\r\n\r\nexport function CoverPageGroups() {\r\n    const { comparisonModel, quote, quoteId, productLine } = useContext(PrintQuoteContext),\r\n        coverPageGroups = useMemo(getCoverPageGroups, [productLine]);\r\n\r\n    return (\r\n        <>\r\n            {coverPageGroups.map(group => (\r\n                <Group key={group} label={group}>\r\n                    {mapElementGroupToPrintedQuote(comparisonModel, quoteId, quote, group)}\r\n                </Group>\r\n            ))}\r\n        </>\r\n    );\r\n\r\n    function getCoverPageGroups() {\r\n        return productLine.switch({\r\n            onHomeowner: () => [\r\n                ElementGroupNames.Deductibles,\r\n                ElementGroupNames.PropertyCoverages,\r\n                ElementGroupNames.AdditionalCoverages,\r\n            ],\r\n            onFlood: () => [\r\n                ElementGroupNames.Deductibles,\r\n                ElementGroupNames.PropertyCoverages,\r\n                ElementGroupNames.AdditionalCoverages,\r\n                ElementGroupNames.ConstructionRiskCharacteristics,\r\n            ],\r\n            onCommercial: () =>\r\n                getCommercialCoverPageElementGroups(comparisonModel, quoteId, quote.CarrierCode).map(\r\n                    group => group.ElementGroupName\r\n                ),\r\n        });\r\n    }\r\n}\r\n","import { Column } from '@legacy/Components/ReactToPdf';\r\nimport { PropsWithChildren } from 'react';\r\n\r\nexport function PageContent({ children }: PropsWithChildren<{ children }>) {\r\n    return (\r\n        <Column width='62%' inline>\r\n            {children}\r\n        </Column>\r\n    );\r\n}\r\n","import { PrintQuoteContext } from '@app/PrintQuote/Context';\r\nimport { CarrierCode, RatingType } from '@business/CommonSets';\r\nimport { Colors, FontSizes, Paragraph, SubText } from '@legacy/Components/ReactToPdf';\r\nimport { simpleDateFormat } from '@shared/Constants';\r\nimport dayjs from 'dayjs';\r\nimport { useContext } from 'react';\r\n\r\nexport function Disclaimers() {\r\n    const { quote, mepDisclaimer } = useContext(PrintQuoteContext),\r\n        quoteValidUntilDate = dayjs(quote.ExpiresOn).subtract(1, 'day').format(simpleDateFormat),\r\n        carrierCode = CarrierCode.parse(quote.CarrierCode),\r\n        ratingType = RatingType.parse(quote.RatingType),\r\n        financialRating = carrierCode.getFinancialRating();\r\n\r\n    return (\r\n        <div id='disclaimers'>\r\n            <div style={{ borderTop: `0.5px solid ${Colors.lightGray2}` }}>\r\n                <Paragraph id='first-disclaimer' fontSize={FontSizes.small1} margin='16px 0 0 0'>\r\n                    Thank you for the opportunity to offer a quotation on this risk. Please review the attached\r\n                    quotation carefully as the terms and conditions offered may be different from those requested in\r\n                    your submission for insurance. This quotation is valid until <strong>{quoteValidUntilDate}</strong>{' '}\r\n                    or until the inception date of the policy, whichever comes first.\r\n                </Paragraph>\r\n            </div>\r\n\r\n            {ratingType.switch({\r\n                onAdmitted: () => <></>,\r\n                onEAndS: () => (\r\n                    <Paragraph fontSize={FontSizes.small1} margin='6px 0 0 0'>\r\n                        {carrierCode.displayName} is a surplus lines insurer\r\n                        {financialRating ? ` and is ${financialRating.displayName}` : ''}.\r\n                    </Paragraph>\r\n                ),\r\n                onNfip: () => <></>,\r\n            })}\r\n\r\n            <Paragraph fontSize={FontSizes.small1} margin='6px 0 0 0'>\r\n                Please note if this offer is accepted, the insurance policy, not this proposal, will form the contract\r\n                between the insured and the insurance company. In the event of a discrepancy between the proposal and\r\n                the insurance policy, the policy will dictate the terms of coverage.\r\n            </Paragraph>\r\n\r\n            <SubText fontSize={FontSizes.small1} margin='4px 0 0 0'>\r\n                This quote is not a binder. Coverage is not bound until you receive acknowledgment and acceptance from{' '}\r\n                {carrierCode.displayName} in the form of a fully issued policy.\r\n            </SubText>\r\n\r\n            {ratingType.switch({\r\n                onAdmitted: () => <></>,\r\n                onEAndS: () => (\r\n                    <Paragraph fontSize={FontSizes.small1} margin='8px 0 0 0' color={Colors.mediumPurple1}>\r\n                        † Minimum Earned Premium Disclosure: {mepDisclaimer}\r\n                    </Paragraph>\r\n                ),\r\n                onNfip: () => (\r\n                    <Paragraph fontSize={FontSizes.small1} margin='8px 0 0 0' color={Colors.mediumPurple1}>\r\n                        † The policy effective date is subject to adjustment based on the receipt of the full amount\r\n                        due, including applicable premiums, surcharges, and fees. Failure to pay the full amount within\r\n                        the required timeframes may result in a delay of the policy's effective date, in accordance with\r\n                        NFIP guidelines.\r\n                    </Paragraph>\r\n                ),\r\n            })}\r\n        </div>\r\n    );\r\n}\r\n","import { FontWeights, TextLockup } from '@legacy/Components/ReactToPdf';\r\nimport { CSSProperties, PropsWithChildren } from 'react';\r\n\r\ninterface SidebarLockupProps {\r\n    label: string;\r\n    fontSize?: string;\r\n    style?: CSSProperties;\r\n    children;\r\n}\r\n\r\nexport function SidebarLockup({ label, fontSize, style, children }: PropsWithChildren<SidebarLockupProps>) {\r\n    return (\r\n        <TextLockup label={label} fontWeight={FontWeights.bold} fontSize={fontSize} style={style} margin='0 0 8px 0'>\r\n            {children}\r\n        </TextLockup>\r\n    );\r\n}\r\n","import { Colors, Column, FontSizes } from '@legacy/Components/ReactToPdf';\r\nimport { getInsuredFullName, isAtLeastAgent } from '@shared/Common';\r\nimport { simpleDateFormat } from '@shared/Constants';\r\nimport { getLoginDetails } from '@shared/Storage';\r\nimport dayjs from 'dayjs';\r\nimport { parsePhoneNumber } from 'libphonenumber-js';\r\nimport { useContext } from 'react';\r\nimport { PrintQuoteContext } from '../Context';\r\nimport { Disclaimers } from './Disclaimers';\r\nimport { QuoteLink } from './QuoteLink';\r\nimport { QuoteQrCode } from './QuoteQrCode';\r\nimport { SidebarLockup } from './SidebarLockup';\r\n\r\nexport function PageSidebar() {\r\n    const { comparisonModel, quote, productLine } = useContext(PrintQuoteContext),\r\n        isAgent = isAtLeastAgent(),\r\n        loginDetails = getLoginDetails(),\r\n        createdOnDate = dayjs(quote.CreatedOn).format(simpleDateFormat),\r\n        /** Valid until date should be one day before the expiration date */\r\n        validUntilDate = dayjs(quote.ExpiresOn).subtract(1, 'day').format(simpleDateFormat),\r\n        /** We need to remove special characters for rendering in Aspose html */\r\n        producerLocationName = quote.ProducerLocationName?.replace(/&/g, 'and');\r\n\r\n    return (\r\n        <Column width='33%' margin='0 0 0 34px' inline>\r\n            <div\r\n                style={{\r\n                    padding: '12px 0 0 16px',\r\n                    border: `1px dashed ${Colors.mediumPurple1}`,\r\n                    margin: '16px 0 0 0',\r\n                }}\r\n            >\r\n                <SidebarLockup label='Quote Created On'>{createdOnDate}</SidebarLockup>\r\n                <SidebarLockup label='Quote Valid Through'>{validUntilDate}</SidebarLockup>\r\n\r\n                {/* The LastAgentId used to get agent data is not set when admin users create, patch, or purchase CO quotes. */}\r\n                {producerLocationName && <SidebarLockup label='Producer'>{producerLocationName}</SidebarLockup>}\r\n\r\n                {isAgent && loginDetails && (\r\n                    <div id='agent-details'>\r\n                        <SidebarLockup label='Agent'>{loginDetails.agentName}</SidebarLockup>\r\n\r\n                        {loginDetails.agentPhoneNumber && (\r\n                            <SidebarLockup label='Agent Phone'>\r\n                                {parsePhoneNumber(loginDetails.agentPhoneNumber, 'US').format('NATIONAL')}\r\n                            </SidebarLockup>\r\n                        )}\r\n\r\n                        <SidebarLockup\r\n                            label='Agent Email'\r\n                            fontSize={getEmailFontSize()}\r\n                            style={{ wordBreak: 'break-all' }}\r\n                        >\r\n                            {loginDetails.userName}\r\n                        </SidebarLockup>\r\n                    </div>\r\n                )}\r\n\r\n                {!!quote.InsuredNameFirst && !!quote.InsuredNameLast && (\r\n                    <SidebarLockup label='Named Insured'>{getInsuredFullName(quote)}</SidebarLockup>\r\n                )}\r\n\r\n                <SidebarLockup label='Covered Location'>\r\n                    {comparisonModel.QuoteProperty?.FullAddress || ''}\r\n                </SidebarLockup>\r\n\r\n                {productLine.switch({\r\n                    onHomeowner: () => <QuoteLinkAndQrCode />,\r\n                    onFlood: () => <QuoteLinkAndQrCode />,\r\n                    onCommercial: () => <></>,\r\n                })}\r\n            </div>\r\n\r\n            <Disclaimers />\r\n        </Column>\r\n    );\r\n\r\n    function getEmailFontSize() {\r\n        const emailLength = loginDetails?.userName.length || 0;\r\n        if (emailLength > 35) return FontSizes.small1;\r\n        if (emailLength > 26) return FontSizes.small2;\r\n        return undefined;\r\n    }\r\n\r\n    function QuoteLinkAndQrCode() {\r\n        return (\r\n            <>\r\n                <QuoteQrCode id='sidebar-qr-code' size={75} />\r\n                <QuoteLink id='sidebar-quote-link' />\r\n            </>\r\n        );\r\n    }\r\n}\r\n","import { PageContent } from '@app/PrintQuote/Components/PageContent';\r\nimport { PageHeader } from '@app/PrintQuote/Components/PageHeader';\r\nimport { PageSidebar } from '@app/PrintQuote/Components/PageSidebar';\r\nimport { PrintQuoteContext } from '@app/PrintQuote/Context';\r\nimport { Page } from '@legacy/Components/ReactToPdf';\r\nimport dayjs from 'dayjs';\r\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\r\nimport { PropsWithChildren, useContext } from 'react';\r\n\r\ndayjs.extend(localizedFormat);\r\n\r\ntype PageLayoutProps = PropsWithChildren<{\r\n    id: string;\r\n    currentPage: number;\r\n}>;\r\n\r\nexport function PageLayout({ id, currentPage, children }: PageLayoutProps) {\r\n    const { pageCount, productLine, timeStamp } = useContext(PrintQuoteContext);\r\n\r\n    return (\r\n        <Page id={id} currentPage={currentPage} totalPages={pageCount} timeStamp={timeStamp}>\r\n            <PageHeader />\r\n\r\n            <PageContent>{children}</PageContent>\r\n\r\n            {productLine.switch({\r\n                onHomeowner: () => <PageSidebar />,\r\n                onFlood: () => <PageSidebar />,\r\n                onCommercial: () => (currentPage === 1 ? <PageSidebar /> : <></>),\r\n            })}\r\n        </Page>\r\n    );\r\n}\r\n","import { Group } from '@app/PrintQuote/Components/Group';\r\nimport { GroupRow } from '@app/PrintQuote/Components/GroupRow';\r\nimport { PrintQuoteContext } from '@app/PrintQuote/Context';\r\nimport { RatingType } from '@business/CommonSets';\r\nimport { Colors, FontSizes, SubText } from '@legacy/Components/ReactToPdf';\r\nimport { formatCurrencyUS } from '@shared/Common';\r\nimport { QuoteFeeTypes } from '@shared/Constants';\r\nimport { useContext, useMemo } from 'react';\r\n\r\nexport function TaxesAndFeesGroup() {\r\n    const { quote, mepMaxPercentage } = useContext(PrintQuoteContext),\r\n        quoteFees = useMemo(getQuoteFees, [quote.QuoteFees]),\r\n        ratingType = RatingType.parse(quote.RatingType);\r\n\r\n    return (\r\n        <div id='taxes-and-fees-group'>\r\n            <Group label='Premium, Taxes &amp; Fees' margin='0'>\r\n                <GroupRow label='Property Premium' data={formatCurrencyUS(quote.AnnualPremium, 2)} />\r\n\r\n                {quoteFees.map(quoteFee => (\r\n                    <GroupRow\r\n                        key={quoteFee.Name}\r\n                        label={<FeeLabel displayName={quoteFee.DisplayName} />}\r\n                        data={formatCurrencyUS(quoteFee.Value, 2)}\r\n                    />\r\n                ))}\r\n\r\n                <GroupRow label='Total Premium' data={formatCurrencyUS(quote.GrossAnnualPayment, 2)} emphasis />\r\n            </Group>\r\n\r\n            {/* Fully-earned fees footnote */}\r\n            {quoteFees.some(quoteFee => isFullyEarnedFee(quoteFee.DisplayName)) && (\r\n                <SubText fontSize={FontSizes.small1} color={Colors.mediumPurple1}>\r\n                    * Indicates fees fully earned upon binding\r\n                </SubText>\r\n            )}\r\n\r\n            {ratingType.switch({\r\n                onAdmitted: () => <></>,\r\n                onEAndS: () => (\r\n                    <SubText fontSize={FontSizes.small1} color={Colors.mediumPurple1}>\r\n                        This policy contains a Minimum Earned Premium provision of up to {mepMaxPercentage * 100}% †\r\n                    </SubText>\r\n                ),\r\n                onNfip: () => <></>,\r\n            })}\r\n\r\n            <div style={{ margin: '0 0 14px 0' }} />\r\n        </div>\r\n    );\r\n\r\n    function isFullyEarnedFee(displayName: string) {\r\n        const feeNameNoCase = displayName.toLowerCase();\r\n        return (\r\n            feeNameNoCase.includes('policy fee') ||\r\n            feeNameNoCase.includes('inspection fee') ||\r\n            feeNameNoCase.includes('data fee')\r\n        );\r\n    }\r\n\r\n    /** Fully earned fees have an asterisk applied that ties them to a footnote */\r\n    function FeeLabel({ displayName }: { displayName: string }) {\r\n        return isFullyEarnedFee(displayName) ? (\r\n            <span>\r\n                {displayName} <strong style={{ color: Colors.mediumPurple1 }}>*</strong>\r\n            </span>\r\n        ) : (\r\n            <span>{displayName}</span>\r\n        );\r\n    }\r\n\r\n    function getQuoteFees() {\r\n        // We never show these fees on the printed quote because the user selects payment type later on the purchase page\r\n        const filteredQuoteFees = quote.QuoteFees.filter(\r\n            ({ Name }) => Name !== QuoteFeeTypes.MonthlyInstallment && Name !== QuoteFeeTypes.CreditCardFee\r\n        );\r\n        return filteredQuoteFees.sort(({ OrderNumber: a }, { OrderNumber: b }) => a - b);\r\n    }\r\n}\r\n","import { CoverPageGroups } from '@app/PrintQuote/Components/CoverPageGroups';\r\nimport { PageLayout } from '@app/PrintQuote/Components/PageLayout';\r\nimport { TaxesAndFeesGroup } from '@app/PrintQuote/Components/TaxesAndFeesGroup';\r\n\r\nexport function CoverPage() {\r\n    return (\r\n        <PageLayout id='cover-page' currentPage={1}>\r\n            <TaxesAndFeesGroup />\r\n            <CoverPageGroups />\r\n        </PageLayout>\r\n    );\r\n}\r\n","import { Group } from '@app/PrintQuote/Components/Group';\r\nimport { mapElementGroupToPrintedQuote } from '@app/PrintQuote/Components/MapElementGroupToPrintedQuote';\r\nimport { PrintQuoteContext } from '@app/PrintQuote/Context';\r\nimport { ElementGroupNames } from '@shared/Constants';\r\nimport { useContext } from 'react';\r\n\r\nexport function RiskCharacteristicsGroup() {\r\n    const { comparisonModel: quotes, quoteId, quote } = useContext(PrintQuoteContext);\r\n\r\n    return (\r\n        <Group label={ElementGroupNames.ConstructionRiskCharacteristics.replace('and', '&')}>\r\n            {mapElementGroupToPrintedQuote(quotes, quoteId, quote, ElementGroupNames.ConstructionRiskCharacteristics)}\r\n        </Group>\r\n    );\r\n}\r\n","import { PageLayout } from '@app/PrintQuote/Components/PageLayout';\r\nimport { RiskCharacteristicsGroup } from '../Components/RiskCharacteristicsGroup';\r\n\r\nexport function ResidentialSecondPage() {\r\n    return (\r\n        <PageLayout id='residential-second-page' currentPage={2}>\r\n            <RiskCharacteristicsGroup />\r\n        </PageLayout>\r\n    );\r\n}\r\n","import { getPath, Path } from '@app/Views';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { dateTimeLocalizedFormat } from '@shared/Constants';\r\nimport dayjs from 'dayjs';\r\nimport { useMemo } from 'react';\r\nimport { PrintQuoteContext } from './Context';\r\nimport { PrintedQuoteProps } from './models';\r\nimport { CommercialSecondPage } from './Pages/CommercialSecondPage';\r\nimport { CoverPage } from './Pages/CoverPage';\r\nimport { ResidentialSecondPage } from './Pages/ResidentialSecondPage';\r\n\r\nexport function PrintedQuote({\r\n    comparisonModel,\r\n    quote,\r\n    mepMaxPercentage,\r\n    mepDisclaimer,\r\n    appSettings,\r\n}: PrintedQuoteProps) {\r\n    const quoteId = quote.QuoteId,\r\n        productLine = ProductLine.parse(quote.ProductLineId),\r\n        pageCount = useMemo(getPageCount, [productLine]),\r\n        quoteUrl = useMemo(getQuoteUrl, [quoteId, productLine]),\r\n        timeStamp = useMemo(getTimeStamp, [quoteId]);\r\n\r\n    return (\r\n        <PrintQuoteContext.Provider\r\n            value={{\r\n                comparisonModel,\r\n                quote,\r\n                quoteId,\r\n                productLine,\r\n                mepMaxPercentage,\r\n                mepDisclaimer,\r\n                pageCount,\r\n                quoteUrl,\r\n                timeStamp,\r\n            }}\r\n        >\r\n            <div>\r\n                {productLine.switch({\r\n                    onHomeowner: () => (\r\n                        <>\r\n                            <CoverPage />\r\n                            <ResidentialSecondPage />\r\n                        </>\r\n                    ),\r\n                    onFlood: () => (\r\n                        <>\r\n                            <CoverPage />\r\n                        </>\r\n                    ),\r\n                    onCommercial: () => (\r\n                        <>\r\n                            <CoverPage />\r\n                            <CommercialSecondPage />\r\n                        </>\r\n                    ),\r\n                })}\r\n            </div>\r\n        </PrintQuoteContext.Provider>\r\n    );\r\n\r\n    /** Returns the number of total pages expected for the PDF by product. */\r\n    function getPageCount() {\r\n        return productLine.switch({\r\n            onHomeowner: () => 2,\r\n            onFlood: () => 1,\r\n            onCommercial: () => 2,\r\n        });\r\n    }\r\n\r\n    /** Returns the absolute url to the quote for use in the PDF link and QR code. */\r\n    function getQuoteUrl() {\r\n        return new URL(\r\n            getPath(Path.Customize, { quoteId, product: productLine.lowercaseName }),\r\n            appSettings?.baseUrl\r\n        ).toString();\r\n    }\r\n\r\n    /** Returns the quote ID and current date time to be displayed as a measure to prevent fraud. */\r\n    function getTimeStamp() {\r\n        const currentDateTime = dayjs().format(dateTimeLocalizedFormat);\r\n        return `${quoteId} | ${currentDateTime}`;\r\n    }\r\n}\r\n","import { getMepDisclaimer, getMepMaxPercentage } from '@api/MinimumEarnedPremiumApi';\r\nimport { AppSettingsContext } from '@app/State/Context';\r\nimport { CarrierCode, ProductLine, RatingType } from '@business/CommonSets';\r\nimport { useReactToPdf } from '@legacy/Components/ReactToPdf';\r\nimport { getInsuredFullName } from '@shared/Common';\r\nimport { useContext, useMemo, useState } from 'react';\r\nimport { PrintedQuote } from './component';\r\nimport { PrintQuoteOptions } from './models';\r\n\r\nexport function usePrintQuote({ comparisonModel, quote, onError }: PrintQuoteOptions) {\r\n    const [loading, setLoading] = useState(false),\r\n        appSettings = useContext(AppSettingsContext),\r\n        productLine = ProductLine.parse(quote.ProductLineId),\r\n        carrierCode = CarrierCode.parse(quote.CarrierCode),\r\n        ratingType = RatingType.parse(quote.RatingType),\r\n        fileName = useMemo(getFileName, [comparisonModel, quote, productLine]);\r\n\r\n    return {\r\n        /** Renders the printed quote React component into an encoded html string, passes that to the server to convert into a PDF, then downloads the PDF generated on the server. */\r\n        printQuote,\r\n        loading,\r\n    };\r\n\r\n    async function printQuote() {\r\n        try {\r\n            setLoading(true);\r\n\r\n            const [mepMaxPercentage, mepDisclaimer] = await getMepDetails();\r\n\r\n            await useReactToPdf({\r\n                component: (\r\n                    <PrintedQuote\r\n                        comparisonModel={comparisonModel}\r\n                        quote={quote}\r\n                        mepMaxPercentage={mepMaxPercentage}\r\n                        mepDisclaimer={mepDisclaimer}\r\n                        appSettings={appSettings}\r\n                    />\r\n                ),\r\n                unformattedFileName: fileName,\r\n            });\r\n        } catch (e) {\r\n            onError('There was an issue downloading the quote pdf. Please try again later.');\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }\r\n\r\n    /** Gets the MEP max percentage and disclaimer text from the server, by product, carrier code, and purchase date (if purchased). */\r\n    async function getMepDetails(): Promise<[number, string]> {\r\n        return await ratingType.switch({\r\n            onAdmitted: () => Promise.resolve([0, '']),\r\n            onEAndS: () =>\r\n                Promise.all([\r\n                    getMepMaxPercentage(productLine.key, carrierCode.value, quote.PurchasedOn),\r\n                    getMepDisclaimer(productLine.key, carrierCode.value, quote.PurchasedOn),\r\n                ]),\r\n            onNfip: () => Promise.resolve([0, '']),\r\n        });\r\n    }\r\n\r\n    /** Returns the file name by product. Residential quotes include the insured name because it is collected on the landing page.\r\n     * Commercial quotes do not include the insured name because it is collected on the purchase page.\r\n     */\r\n    function getFileName() {\r\n        const insuredName = getInsuredFullName(quote),\r\n            streetName = comparisonModel.QuoteProperty?.Street1 || '',\r\n            residentialFileName = `${productLine.value} Quote ${carrierCode.displayName} ${insuredName} ${streetName}`;\r\n\r\n        return productLine.switch({\r\n            onHomeowner: () => residentialFileName,\r\n            onFlood: () => residentialFileName,\r\n            onCommercial: () => `${productLine.value} Quote ${carrierCode.displayName} ${streetName}`,\r\n        });\r\n    }\r\n}\r\n","import { usePrintQuote } from '@app/PrintQuote';\r\nimport { IconLink } from '@legacy/Components/IconLink';\r\nimport { isAtLeastAgent, isLimitedAgentUser } from '@shared/Common';\r\nimport { iconPaths, QuotePremiumErrorHeaders } from '@shared/Constants';\r\nimport { ToastContext } from '@shared/Hooks';\r\nimport { Button } from '@webkit/index';\r\nimport { useContext } from 'react';\r\nimport { PrintButtonProps } from './models';\r\n\r\nexport function PrintQuoteButton({ comparisonModel, quote, iconLink, disabled }: PrintButtonProps) {\r\n    const toast = useContext(ToastContext);\r\n\r\n    const { printQuote, loading } = usePrintQuote({ comparisonModel, quote, onError: toast.error }),\r\n        isAgent = isAtLeastAgent(),\r\n        isLimitedAgent = isLimitedAgentUser(),\r\n        hasOnlyMoratoriaError =\r\n            quote.QuotePremiumErrors.length === 1 &&\r\n            quote.QuotePremiumErrors.some(e => e.Header === QuotePremiumErrorHeaders.PurchaseMoratorium),\r\n        printDisabled =\r\n            // Disable if explicitly disabled by property\r\n            disabled ||\r\n            // Disable if not an agent\r\n            !isAgent ||\r\n            // Disable if is a limited agent\r\n            isLimitedAgent ||\r\n            // Disable if there is no premium\r\n            quote.AnnualPremium === 0 ||\r\n            // Disable if quote is purchased\r\n            quote.IsPurchased ||\r\n            // Disable if there are premium errors other than a moratoria error\r\n            (quote.QuotePremiumErrors.length > 0 && !hasOnlyMoratoriaError);\r\n\r\n    return iconLink ? (\r\n        <IconLink\r\n            id={`print-quote-button-${quote.QuoteId}`}\r\n            iconPath={iconPaths.print}\r\n            iconAlt='Print Quote'\r\n            onClick={printQuote}\r\n            loading={loading}\r\n            disabled={printDisabled}\r\n        >\r\n            Print\r\n        </IconLink>\r\n    ) : (\r\n        <Button\r\n            id={`print-quote-button-${quote.QuoteId}`}\r\n            isSecondary\r\n            onClick={printQuote}\r\n            isLoading={loading}\r\n            isDisabled={printDisabled}\r\n        >\r\n            Print\r\n        </Button>\r\n    );\r\n}\r\n","import { StateContext } from '@app/State';\r\nimport { getQuotePath, Path } from '@app/Views';\r\nimport { CarrierCode, ProductLine } from '@business/CommonSets';\r\nimport { navigate } from '@shared/Common';\r\nimport { pages } from '@shared/Constants';\r\nimport { useRedirect } from '@shared/Hooks';\r\nimport { setQuoteId } from '@shared/Storage';\r\nimport { TrackingEvent } from '@shared/TrackingEvents';\r\nimport { useContext } from 'react';\r\n\r\n/**\r\n * A hook responsible for determining where to send the user when the bind quote button is clicked.\r\n *  - If the quote is a commercial quote and the legacy commercial quote page is enabled, send the user there.\r\n *  - If the quote is a Vave homeowner quote, send the user to the underwriting guidelines page.\r\n *  - If the quote has no required elements or important notices, send the user directly to the purchase page.\r\n *  - Otherwise, send the user to the confirm quote page.\r\n *\r\n * @returns An object containing `bindQuoteRedirect`, a function used to redirect the user to the appropriate page.\r\n */\r\nexport function useBindQuoteRedirect() {\r\n    const application = useContext(StateContext),\r\n        redirect = useRedirect();\r\n\r\n    return { bindQuoteRedirect };\r\n\r\n    async function bindQuoteRedirect(quoteId: string) {\r\n        TrackingEvent.trackSinglePageApplication(\r\n            getQuotePath(application.state.comparisonModel?.Quotes.length),\r\n            'bind'\r\n        );\r\n\r\n        const { quote, productLine, productName, carrierCode } = getQuoteData();\r\n\r\n        // TODO: update this to handle commercial when underwriting guidelines are available\r\n        // Homeowner Vave quotes require underwriting guidelines to be accepted before binding.\r\n        if (productLine === ProductLine.Homeowner && carrierCode === CarrierCode.Vave) {\r\n            redirect(Path.UnderwritingGuidelines, { quoteId: quote.QuoteId, product: productName });\r\n            return;\r\n        }\r\n\r\n        if (hasMissingConfirmations()) {\r\n            navigateToConfirmationsView();\r\n            return;\r\n        }\r\n\r\n        productLine.switch({\r\n            onHomeowner: navigateToResidentialPurchasePage,\r\n            onFlood: navigateToResidentialPurchasePage,\r\n            onCommercial: navigateToCommercialPurchasePage,\r\n        });\r\n\r\n        function getQuoteData() {\r\n            const quote = application.state.comparisonModel?.Quotes.find(quote => quote.QuoteId === quoteId);\r\n            if (!quote) throw new Error(`Quote with ID ${quoteId} not found.`);\r\n            const productLine = ProductLine.parse(quote.ProductLineId),\r\n                productName = productLine.lowercaseName,\r\n                carrierCode = CarrierCode.parse(quote.CarrierCode);\r\n            return { quote, productLine, productName, carrierCode };\r\n        }\r\n\r\n        function hasMissingConfirmations() {\r\n            const importantNoticesForQuote =\r\n                application.state.importantNotices.find(notice => notice.quoteId === quote.QuoteId)?.importantNotices ||\r\n                [];\r\n            return quote.ConfirmationElementNames?.length > 0 || importantNoticesForQuote.length > 0;\r\n        }\r\n\r\n        function navigateToConfirmationsView() {\r\n            redirect(Path.ConfirmQuote, { quoteId: quote.QuoteId, product: productName });\r\n        }\r\n\r\n        function navigateToResidentialPurchasePage() {\r\n            navigate(pages.PurchaseWithProduct(productLine, quote.QuoteId));\r\n        }\r\n\r\n        function navigateToCommercialPurchasePage() {\r\n            setQuoteId(quoteId);\r\n            navigate(pages.CommBindQuote);\r\n        }\r\n    }\r\n}\r\n","import { useBindQuoteRedirect } from '@app/Hooks/BindQuoteRedirect';\r\nimport { StateContext } from '@app/State';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { isAdmin, isAtLeastAgent, isLimitedAgentUser } from '@shared/Common';\r\nimport { FormEvent, useContext, useMemo } from 'react';\r\nimport { BindButtonProps } from './models';\r\n\r\nexport function useBindButton(props: BindButtonProps) {\r\n    const { quote } = props,\r\n        { update } = useContext(StateContext),\r\n        isDisabled = useMemo(isBindButtonDisabled, [quote]),\r\n        isUrq = useMemo(\r\n            () => isAdmin() && quote.ImsPolicyNumber && !ProductLine.matches(quote.ProductLineId, ProductLine.Flood),\r\n            [quote]\r\n        ),\r\n        { bindQuoteRedirect } = useBindQuoteRedirect();\r\n\r\n    return {\r\n        isUrq,\r\n        isDisabled,\r\n        submit,\r\n    };\r\n\r\n    function isBindButtonDisabled() {\r\n        // Anonymous users and limited agent users cannot bind quotes\r\n        if (!isAtLeastAgent() || isLimitedAgentUser()) return true;\r\n\r\n        // Quotes with premium errors present cannot be bound\r\n        if (quote.QuotePremiumErrors.length > 0) return true;\r\n\r\n        // Purchased quotes, readonly quotes, or quotes with a $0 premium (indicating a soft decline) cannot be bound\r\n        return quote.IsPurchased || quote.IsReadOnly || quote.GrossAnnualPayment === 0;\r\n    }\r\n\r\n    async function submit(e: FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n\r\n        try {\r\n            update(state => (state.quoteId = quote.QuoteId));\r\n            bindQuoteRedirect(quote.QuoteId);\r\n        } catch (e) {\r\n            update(state => (state.error = e));\r\n        }\r\n    }\r\n}\r\n","import { GetUrqButton } from '@app/Components/GetUrqButton';\r\nimport { Button } from '@webkit/index';\r\nimport { useBindButton } from './hook';\r\nimport { BindButtonProps } from './models';\r\n\r\nexport function BindButton(props: BindButtonProps) {\r\n    const { isUrq, isDisabled, submit } = useBindButton(props);\r\n\r\n    // Admin users viewing purchased quotes get a URQ access point instead of a bind button\r\n    // TODO: Remove logic hiding this for flood when URQ is ready for Flood - see SW-26253\r\n    return isUrq ? (\r\n        <GetUrqButton quote={props.quote} />\r\n    ) : (\r\n        <form method='post' style={{ width: '100%' }} onSubmit={submit}>\r\n            <Button id={`bind-quote-button-${props.quote.QuoteId}`} isDisabled={isDisabled} type='submit'>\r\n                {props.quote.IsPurchased ? 'Purchased' : 'Bind'}\r\n            </Button>\r\n        </form>\r\n    );\r\n}\r\n","import { emailQuote } from '@api/EmailApi';\r\nimport { CarrierCode } from '@business/CommonSets';\r\nimport { ToastActions, useFormReducer } from '@shared/Hooks';\r\nimport { ComparisonQuoteModel } from '@shared/Models';\r\nimport { TrackingEvent } from '@shared/TrackingEvents';\r\nimport { Rules, Value } from '@webkit/index';\r\nimport { useState } from 'react';\r\nimport { getQuotePath } from '../Views';\r\nimport './style.scss';\r\n\r\nexport const useEmailQuote = (quote: ComparisonQuoteModel, toast: ToastActions, quoteCount: number) => {\r\n    const [loading, setLoading] = useState<boolean>(false),\r\n        [visible, setVisible] = useState<boolean>(false),\r\n        { form, set, valid, revert } = useFormReducer({\r\n            email: new Value<string>('email address', '', [Rules.required(), Rules.email()]),\r\n            phone: new Value<string>('phone number', '', [Rules.phone()]),\r\n            message: new Value<string>('message', '', [Rules.maxLength(500)]),\r\n        });\r\n\r\n    return {\r\n        visible,\r\n        setVisible,\r\n        loading,\r\n        form,\r\n        set,\r\n        valid,\r\n        onCancel,\r\n        onSubmit,\r\n    };\r\n\r\n    function onCancel() {\r\n        setVisible(false);\r\n        revert();\r\n    }\r\n\r\n    async function onSubmit() {\r\n        setVisible(false);\r\n        setLoading(true);\r\n\r\n        try {\r\n            await emailQuote(quote.QuoteId, {\r\n                Email: form.email.content,\r\n                Phone: form.phone.content,\r\n                Message: form.message.content,\r\n                ProductLineId: quote.ProductLineId,\r\n            });\r\n            await toast.success(\r\n                `${CarrierCode.parse(quote.CarrierCode).displayName} quote successfully sent to ${form.email.content}.`\r\n            );\r\n            revert();\r\n            TrackingEvent.trackSinglePageApplication(getQuotePath(quoteCount), 'email');\r\n        } catch (e) {\r\n            await toast.error('There was a problem emailing the quote. Please try again later.');\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }\r\n};\r\n","import { useEmailQuote } from '@app/EmailQuote/Email';\r\nimport { ComparisonQuoteModel } from '@shared/Models';\r\nimport { Button, DesignContext, Modal, ModalRow, Text } from '@webkit/index';\r\nimport { FormEvent, FunctionComponent, RefObject } from 'react';\r\nimport { useFetcher } from 'react-router-dom-v5-compat';\r\n\r\ninterface Props {\r\n    quote: ComparisonQuoteModel;\r\n    emailQuote: ReturnType<typeof useEmailQuote>;\r\n    className?: string;\r\n    triggerRef: RefObject<HTMLElement>;\r\n}\r\n\r\nexport const EmailQuoteForm: FunctionComponent<Props> = props => {\r\n    const fetcher = useFetcher();\r\n\r\n    return (\r\n        <DesignContext.Provider value='standard'>\r\n            <Modal\r\n                title='Email Quote'\r\n                size='sm'\r\n                isOpen={props.emailQuote.visible}\r\n                onOpenChange={props.emailQuote.onCancel}\r\n            >\r\n                <fetcher.Form method='post' onSubmit={onSubmit}>\r\n                    <ModalRow>\r\n                        <Text\r\n                            id={'email-address' + props.quote.QuoteId}\r\n                            value={props.emailQuote.form.email}\r\n                            onChange={value => props.emailQuote.set('email', value)}\r\n                            placeholder='Email Address...'\r\n                        />\r\n                    </ModalRow>\r\n\r\n                    <ModalRow>\r\n                        <Text\r\n                            id={'phone-number' + props.quote.QuoteId}\r\n                            value={props.emailQuote.form.phone}\r\n                            onChange={value => props.emailQuote.set('phone', value)}\r\n                            placeholder='Phone Number (optional)...'\r\n                        />\r\n                    </ModalRow>\r\n\r\n                    <ModalRow>\r\n                        <Text\r\n                            id={'message' + props.quote.QuoteId}\r\n                            value={props.emailQuote.form.message}\r\n                            onChange={value => props.emailQuote.set('message', value)}\r\n                            placeholder='Message (optional)...'\r\n                        />\r\n                    </ModalRow>\r\n\r\n                    <div className='email-quote-buttons'>\r\n                        <Button isSecondary onClick={props.emailQuote.onCancel}>\r\n                            Cancel\r\n                        </Button>\r\n\r\n                        <Button\r\n                            id='send-email'\r\n                            type='submit'\r\n                            isDisabled={!props.emailQuote.valid()}\r\n                            isLoading={props.emailQuote.loading}\r\n                            name='intent'\r\n                            value='send-email'\r\n                        >\r\n                            Send Email\r\n                        </Button>\r\n                    </div>\r\n                </fetcher.Form>\r\n            </Modal>\r\n        </DesignContext.Provider>\r\n    );\r\n\r\n    async function onSubmit(e: FormEvent) {\r\n        e.preventDefault();\r\n\r\n        if (props.emailQuote.visible && props.emailQuote.valid()) await props.emailQuote.onSubmit();\r\n    }\r\n};\r\n","import { useEmailQuote } from '@app/EmailQuote';\r\nimport { ToastContext } from '@shared/Hooks';\r\nimport { useContext, useRef } from 'react';\r\nimport { EmailButtonProps } from './models';\r\n\r\nexport function useEmailButton(props: EmailButtonProps) {\r\n    const { quote, quoteCount, disabled } = props,\r\n        triggerRef = useRef<HTMLButtonElement>(null),\r\n        isDisabled = disabled || quote.IsReadOnly,\r\n        toast = useContext(ToastContext),\r\n        // This hook has some reusable logic that is used in multiple places.\r\n        emailQuote = useEmailQuote(quote, toast, quoteCount);\r\n\r\n    return {\r\n        triggerRef,\r\n        isDisabled,\r\n        emailQuote,\r\n    };\r\n}\r\n","import { EmailQuoteForm } from '@app/EmailQuote';\r\nimport { IconLink } from '@legacy/Components/IconLink';\r\nimport { iconPaths } from '@shared/Constants';\r\nimport { useEmailButton } from './hook';\r\nimport { EmailButtonProps } from './models';\r\nimport './style.scss';\r\n\r\n/** Button that opens a popup with a form to email a quote. */\r\nexport function EmailButton(props: EmailButtonProps) {\r\n    const { quote } = props,\r\n        { triggerRef, isDisabled, emailQuote } = useEmailButton(props),\r\n        { setVisible, loading } = emailQuote;\r\n\r\n    return (\r\n        <>\r\n            {/* The button that triggers the popup to open. */}\r\n            <IconLink\r\n                ref={triggerRef}\r\n                id={`email-quote-button-${quote.QuoteId}`}\r\n                iconPath={iconPaths.envelope}\r\n                iconAlt='Email Quote'\r\n                onClick={() => setVisible(true)}\r\n                disabled={isDisabled}\r\n                loading={loading}\r\n            >\r\n                Email\r\n            </IconLink>\r\n\r\n            {/* The form that pops up when the button is clicked. */}\r\n            <EmailQuoteForm\r\n                quote={quote}\r\n                emailQuote={emailQuote}\r\n                triggerRef={triggerRef}\r\n                className='tile-header-email-quote-form'\r\n            />\r\n        </>\r\n    );\r\n}\r\n","import { CardInlineData } from '@legacy/Components/Cards';\r\nimport { ModalRow } from '@legacy/Components/Modals/StandardModal';\r\nimport { formatCurrencyUS } from '@shared/Common';\r\nimport { dateTimeFormat } from '@shared/Constants';\r\nimport { IQuoteEvent } from '@shared/Models';\r\nimport dayjs from 'dayjs';\r\n\r\ntype Props = {\r\n    event: IQuoteEvent;\r\n    index: number;\r\n};\r\n\r\nexport const Event = ({ event, index }: Props) => (\r\n    <div id={`quote-history-event-${index}`} className='quote-history-event'>\r\n        <span className='quote-history-header'>{event.Event}</span>\r\n        <span className='quote-history-created-date'>{dayjs(event.CreatedOn).format(dateTimeFormat)}</span>\r\n\r\n        <div>\r\n            <ModalRow>\r\n                <CardInlineData id={`quote-history-event-agent-${index}`} label='Agent'>\r\n                    {event.Agent ? <a href={`mailto: ${event.Agent}`}>{event.Agent}</a> : '-'}\r\n                </CardInlineData>\r\n\r\n                <CardInlineData id={`quote-history-event-premium-${index}`} label='Annual Premium'>\r\n                    {event.AnnualPremium ? formatCurrencyUS(event.AnnualPremium) : '-'}\r\n                </CardInlineData>\r\n\r\n                <CardInlineData id={`quote-history-event-ip-${index}`} label='IP Address'>\r\n                    {event.IpAddress || '-'}\r\n                </CardInlineData>\r\n            </ModalRow>\r\n\r\n            {event.Notes && (\r\n                <ModalRow>\r\n                    <CardInlineData id={`quote-history-event-notes-${index}`} label='Notes'>\r\n                        <pre>{event.Notes}</pre>\r\n                    </CardInlineData>\r\n                </ModalRow>\r\n            )}\r\n        </div>\r\n    </div>\r\n);\r\n","import { fetchAndLog } from '@api/Fetch';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { IQuoteDetails } from '@shared/Models';\r\n\r\nexport function getQuoteDetails(quoteId: string, product: ProductLine): Promise<IQuoteDetails> {\r\n    const productRoute = product.switch({\r\n        onHomeowner: () => 'quotes',\r\n        onCommercial: () => 'commercial/quotes',\r\n        onFlood: () => 'quotes',\r\n    });\r\n\r\n    return fetchAndLog<IQuoteDetails>(`/api/${productRoute}/${quoteId}/details`, 'get quote details');\r\n}\r\n","import { ProductLine } from '@business/CommonSets';\r\nimport { isAdmin } from '@shared/Common';\r\nimport { dateTimeFormat } from '@shared/Constants';\r\nimport { useAsyncEffect, useToast } from '@shared/Hooks';\r\nimport { IQuoteDetails, IQuoteEvent } from '@shared/Models';\r\nimport { Value } from '@webkit/validation/value';\r\nimport dayjs from 'dayjs';\r\nimport { useEffect, useState } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { getQuoteDetails } from './api';\r\n\r\nexport function useQuoteHistoryModal(isVisible: boolean, quoteId: string, onClose: () => void) {\r\n    const [details, setDetails] = useState<IQuoteDetails | null>(null),\r\n        [events, setEvents] = useState<IQuoteEvent[]>([]),\r\n        [filter, setFilter] = useState<Value<string>>(new Value<string>('filter', '')),\r\n        toast = useToast(),\r\n        canViewAdminEvents = isAdmin(),\r\n        product = ProductLine.parse(useParams().product);\r\n\r\n    useAsyncEffect(async () => {\r\n        if (!isVisible) return;\r\n\r\n        try {\r\n            const details = await getQuoteDetails(quoteId, product);\r\n            setDetails(details);\r\n            setEvents(details.QuoteEvents);\r\n        } catch (e) {\r\n            onClose();\r\n            console.error(e);\r\n            toast.error('An error occurred while trying to retrieve quote details. Please try again later.');\r\n        }\r\n    }, [quoteId, isVisible]);\r\n\r\n    useEffect(() => {\r\n        if (!details) return;\r\n\r\n        const f = filter.content.toLowerCase();\r\n        setEvents(\r\n            details.QuoteEvents.filter(\r\n                event =>\r\n                    event.Agent?.toLowerCase().includes(f) ||\r\n                    event.AnnualPremium?.toString().includes(f) ||\r\n                    dayjs(event.CreatedOn).format(dateTimeFormat).includes(f) ||\r\n                    event.Event?.toLowerCase().includes(f) ||\r\n                    event.IpAddress?.includes(f) ||\r\n                    event.Location?.toLowerCase().includes(f) ||\r\n                    event.Notes?.toLowerCase().includes(f)\r\n            )\r\n        );\r\n    }, [filter]);\r\n\r\n    return {\r\n        details,\r\n        events,\r\n        filter,\r\n        setFilter,\r\n        canViewAdminEvents,\r\n    };\r\n}\r\n","import { CardInlineData } from '@legacy/Components/Cards';\r\nimport { dateTimeFormat } from '@shared/Constants';\r\nimport { IQuoteEvent } from '@shared/Models';\r\nimport { Modal, ModalRow, Spinner } from '@webkit/components';\r\nimport { ModalSeparator } from '@webkit/components/modal';\r\nimport Portal from '@webkit/components/portal';\r\nimport { Text } from '@webkit/components/text';\r\nimport dayjs from 'dayjs';\r\nimport { FunctionComponent } from 'react';\r\nimport { Event } from './event';\r\nimport { useQuoteHistoryModal } from './hook';\r\nimport './style.scss';\r\n\r\ntype Props = {\r\n    isVisible: boolean;\r\n    quoteId: string;\r\n    address: string | null;\r\n    onClose: () => void;\r\n};\r\n\r\nexport const QuoteHistoryModal: FunctionComponent<Props> = ({ isVisible, quoteId, address, onClose }) => {\r\n    const { details, events, filter, setFilter, canViewAdminEvents } = useQuoteHistoryModal(\r\n        isVisible,\r\n        quoteId,\r\n        onClose\r\n    );\r\n\r\n    return (\r\n        <Portal>\r\n            <Modal\r\n                id={`quote-history-modal-${quoteId}`}\r\n                title='Quote History'\r\n                size='lg'\r\n                isOpen={isVisible}\r\n                onOpenChange={(isOpen: boolean) => !isOpen && onClose()}\r\n            >\r\n                {!details && (\r\n                    <div className='w-full my-4 flex justify-center'>\r\n                        <Spinner size='md' />\r\n                    </div>\r\n                )}\r\n\r\n                {details && (\r\n                    <>\r\n                        <ModalRow>\r\n                            <CardInlineData id='quote-history-address' label='Property Address'>\r\n                                {address || '-'}\r\n                            </CardInlineData>\r\n\r\n                            <CardInlineData id='quote-history-id' label='Quote ID'>\r\n                                {quoteId}\r\n                            </CardInlineData>\r\n                        </ModalRow>\r\n\r\n                        <ModalRow>\r\n                            <CardInlineData id='quote-history-create-date' label='Created Date'>\r\n                                {dayjs(details.CreateDate).format(dateTimeFormat)}\r\n                            </CardInlineData>\r\n\r\n                            <CardInlineData id='quote-history-modify-date' label='Modified Date'>\r\n                                {dayjs(details.ModifiedOn).format(dateTimeFormat)}\r\n                            </CardInlineData>\r\n                        </ModalRow>\r\n\r\n                        <ModalSeparator />\r\n\r\n                        <div className='w-full my-4'>\r\n                            <Text\r\n                                value={filter}\r\n                                placeholder='Event filter...'\r\n                                onChange={(f: string) => setFilter(Object.assign({ ...filter.set(f) }))}\r\n                            />\r\n                        </div>\r\n\r\n                        <div>\r\n                            {events\r\n                                .filter(\r\n                                    (event: IQuoteEvent) =>\r\n                                        !event.IsAdminEvent || (event.IsAdminEvent && canViewAdminEvents)\r\n                                )\r\n                                .map((event: IQuoteEvent, index: number) => (\r\n                                    <Event key={index} index={index} event={event} />\r\n                                ))}\r\n                        </div>\r\n                    </>\r\n                )}\r\n            </Modal>\r\n        </Portal>\r\n    );\r\n};\r\n","import { QuoteHistoryModal } from '@app/ProductComparison/QuoteHistoryModal';\r\nimport { IconLink } from '@legacy/Components/IconLink';\r\nimport { iconPaths } from '@shared/Constants';\r\nimport * as React from 'react';\r\n\r\ninterface HistoryButtonProps {\r\n    quoteId: string;\r\n    address: string | null;\r\n}\r\n\r\nexport function HistoryButton({ quoteId, address }: HistoryButtonProps) {\r\n    const [isVisible, setVisible] = React.useState(false);\r\n\r\n    return (\r\n        <>\r\n            <IconLink\r\n                id={`quote-history-button-${quoteId}`}\r\n                iconPath={iconPaths.calendar}\r\n                iconAlt={'View Quote History'}\r\n                onClick={() => setVisible(true)}\r\n            >\r\n                History\r\n            </IconLink>\r\n\r\n            <QuoteHistoryModal\r\n                isVisible={isVisible}\r\n                quoteId={quoteId}\r\n                address={address}\r\n                onClose={() => setVisible(false)}\r\n            />\r\n        </>\r\n    );\r\n}\r\n","import { CarrierCode, ProductLine } from '@business/CommonSets';\r\nimport { IconLink } from '@legacy/Components/IconLink';\r\nimport { navigateOnNewTab } from '@shared/Common';\r\nimport { iconPaths, QrgLinks } from '@shared/Constants';\r\nimport { useMemo } from 'react';\r\n\r\ninterface QRGButtonProps {\r\n    quoteId: string;\r\n    stateCode: string;\r\n    carrierCode: CarrierCode;\r\n    productLine: ProductLine;\r\n}\r\n\r\nexport function QRGButton({ quoteId, stateCode, carrierCode, productLine }: QRGButtonProps) {\r\n    const qrgLink = useMemo(() => getQrgLink(), [productLine, stateCode, carrierCode]);\r\n\r\n    return !!qrgLink ? (\r\n        <IconLink\r\n            id={`qrg-button-${quoteId}`}\r\n            iconPath={iconPaths.document}\r\n            iconAlt={'View Quick Reference Guide'}\r\n            onClick={() => navigateOnNewTab(qrgLink)}\r\n        >\r\n            QRG\r\n        </IconLink>\r\n    ) : (\r\n        <></>\r\n    );\r\n\r\n    function getQrgLink() {\r\n        return QrgLinks[productLine.key]?.[stateCode]?.[carrierCode.value];\r\n    }\r\n}\r\n","import { getQuotePath, Path } from '@app/Views';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { IconLink } from '@legacy/Components/IconLink';\r\nimport { iconPaths } from '@shared/Constants';\r\nimport { useNavigateWithParams } from '@shared/Hooks';\r\nimport { TrackingEvent } from '@shared/TrackingEvents';\r\nimport { Button } from '@webkit/index';\r\n\r\ninterface ViewButtonProps {\r\n    quoteId: string;\r\n    product: ProductLine;\r\n    iconLink?: boolean;\r\n    disabled?: boolean;\r\n}\r\n\r\nexport function ViewButton({ quoteId, product: productLine, iconLink, disabled }: ViewButtonProps) {\r\n    const navigate = useNavigateWithParams();\r\n\r\n    return iconLink ? (\r\n        <IconLink\r\n            id={`view-quote-button-${quoteId}`}\r\n            iconPath={iconPaths.viewQuote}\r\n            iconAlt='View Quote'\r\n            onClick={viewQuote}\r\n            disabled={disabled}\r\n        >\r\n            View\r\n        </IconLink>\r\n    ) : (\r\n        <Button id={`view-quote-button-${quoteId}`} isSecondary onClick={viewQuote} isDisabled={disabled}>\r\n            View\r\n        </Button>\r\n    );\r\n\r\n    function viewQuote() {\r\n        // This button is only ever shown for multiple quotes, which is why we use 2 below\r\n        const trackingStep = getQuotePath(2);\r\n        TrackingEvent.trackSinglePageApplication(trackingStep, 'view_quote_button_clicked');\r\n        navigate(Path.Customize, { quoteId, product: productLine.lowercaseName });\r\n    }\r\n}\r\n","import { PrintQuoteButton } from '@app/Components/PrintQuoteButton';\r\nimport { BindButton } from '@app/Components/TileHeader/BindButton';\r\nimport { EmailButton } from '@app/Components/TileHeader/EmailButton';\r\nimport { HistoryButton } from '@app/Components/TileHeader/HistoryButton';\r\nimport { QRGButton } from '@app/Components/TileHeader/QRGButton';\r\nimport { ViewButton } from '@app/Components/TileHeader/ViewButton';\r\nimport { getRatingTypeColor } from '@app/ProductComparison/ColorScheme';\r\nimport { Logo } from '@app/ProductComparison/Logo';\r\nimport { Price } from '@app/ProductComparison/Price';\r\nimport { StateContext } from '@app/State';\r\nimport { CarrierCode, ProductLine, RatingType } from '@business/CommonSets';\r\nimport { isAtLeastAgent, isLimitedAgentUser } from '@shared/Common';\r\nimport { clsx } from 'clsx';\r\nimport * as React from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { TileHeaderProps } from './models';\r\nimport './style.scss';\r\n\r\nexport function TileHeader({ quote }: TileHeaderProps) {\r\n    const { state } = React.useContext(StateContext),\r\n        totalTiles = state.visibleQuoteIds.length || 0,\r\n        quoteProperty = state.comparisonModel?.QuoteProperty,\r\n        carrierCode = CarrierCode.parse(quote.CarrierCode),\r\n        ratingType = RatingType.parse(quote.RatingType);\r\n\r\n    const isAgent = isAtLeastAgent(),\r\n        isLimitedAgent = isLimitedAgentUser();\r\n\r\n    const columnClassName = clsx('quote-tile-header-column', [totalTiles === 1 ? 'single-tile' : '']);\r\n\r\n    const { product } = useParams(),\r\n        productLine = ProductLine.parseOrDefault(product);\r\n\r\n    if (!state.comparisonModel) return <></>;\r\n\r\n    return (\r\n        <div className={'quote-tile-header'}>\r\n            <div\r\n                id={`rating-type-header-${quote.QuoteId}`}\r\n                className={clsx('absolute top-0 left-0 w-full h-6 rounded-t-sm', getRatingTypeColor(ratingType))}\r\n            >\r\n                <div className='text-brand-purple-550 text-[13px] text-center font-black uppercase tracking-[3px] pt-[5px] px-3'>\r\n                    {ratingType.displayValue}\r\n                </div>\r\n            </div>\r\n\r\n            <div className={'primary-content'}>\r\n                <div className={columnClassName}>\r\n                    <Logo\r\n                        id={`logo-${quote.QuoteId}`}\r\n                        src={carrierCode.logoPath}\r\n                        alt={carrierCode.displayName}\r\n                        className={carrierCode.value.toLowerCase()}\r\n                    />\r\n\r\n                    <BindButton quote={quote} />\r\n                </div>\r\n                <div className={columnClassName}>\r\n                    <Price\r\n                        id={quote.QuoteId}\r\n                        amount={quote.GrossAnnualPayment}\r\n                        subtext={quote.GrossAnnualPayment > 0 ? <>Includes Taxes & Fees</> : <>Premium unavailable</>}\r\n                    />\r\n\r\n                    <div className={'secondary-buttons'}>\r\n                        <PrintQuoteButton comparisonModel={state.comparisonModel} quote={quote} />\r\n                        {totalTiles > 1 && (\r\n                            <ViewButton quoteId={quote.QuoteId} product={ProductLine.parse(quote.ProductLineId)} />\r\n                        )}\r\n                    </div>\r\n                </div>\r\n            </div>\r\n\r\n            {isAgent && !isLimitedAgent && (\r\n                <div className={'secondary-content'}>\r\n                    {quoteProperty && (\r\n                        <>\r\n                            {!quote.IsPurchased && <EmailButton quote={quote} quoteCount={totalTiles} />}\r\n\r\n                            {productLine && (\r\n                                <QRGButton\r\n                                    quoteId={quote.QuoteId}\r\n                                    stateCode={quoteProperty.StateCode || ''}\r\n                                    carrierCode={carrierCode}\r\n                                    productLine={productLine}\r\n                                />\r\n                            )}\r\n\r\n                            <HistoryButton quoteId={quote.QuoteId} address={quoteProperty.FullAddress} />\r\n                        </>\r\n                    )}\r\n                </div>\r\n            )}\r\n        </div>\r\n    );\r\n}\r\n","import { ShouldRevalidateFunction, ShouldRevalidateFunctionArgs } from 'react-router-dom-v5-compat';\r\nimport { UrlParams } from '..';\r\n\r\nexport const revalidateWhenQuoteIdChanges: ShouldRevalidateFunction = (args: ShouldRevalidateFunctionArgs) => {\r\n    const currentParams = args.currentParams as UrlParams,\r\n        nextParams = args.nextParams as UrlParams;\r\n    return currentParams.quoteId !== nextParams.quoteId;\r\n};\r\n","import { loadComparisonQuotes } from '@app/Api/ComparisonQuotes';\r\nimport { StateContext } from '@app/State';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { useAsyncEffect } from '@shared/Hooks';\r\nimport { useContext, useMemo, useState } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { UrlParams } from '..';\r\n\r\nexport function useCompareCustomize() {\r\n    const params = useParams(),\r\n        application = useContext(StateContext),\r\n        [isLoading, setLoading] = useState<boolean>(true);\r\n\r\n    const { state, update } = useContext(StateContext),\r\n        { comparisonModel, elementDescriptions } = state,\r\n        productLine = ProductLine.parseOrDefault(params.product) || ProductLine.Homeowner,\r\n        isPurchasedQuote = comparisonModel?.Quotes.some(quote => quote.IsPurchased) || false,\r\n        isMaxLayoutRequired = useMemo(() => state.visibleQuoteIds.length > 2, [state.visibleQuoteIds]);\r\n\r\n    useAsyncEffect(async () => {\r\n        try {\r\n            setLoading(true);\r\n            await loadComparisonQuotes(application, params as UrlParams);\r\n        } catch (error) {\r\n            update(state => (state.error = error));\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }, []);\r\n\r\n    return {\r\n        isLoading,\r\n        isPurchasedQuote,\r\n        isMaxLayoutRequired,\r\n        productLine,\r\n        state,\r\n        update,\r\n        elementDescriptions,\r\n        comparisonModel,\r\n    };\r\n}\r\n","import { QuoteOverviewSection } from '@app/Components/OverviewSection';\r\nimport { RouteLoadingSpinner } from '@app/Components/RouteLoadingSpinner';\r\nimport { TileHeader } from '@app/Components/TileHeader';\r\nimport { ViewWrapper } from '@app/Components/ViewWrapper';\r\nimport { ProductComparisonQuote } from '@app/ProductComparison/Quote';\r\nimport { Path } from '@app/Views';\r\nimport { isAtLeastAgent, isLimitedAgentUser } from '@shared/Common';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport { DesignContext } from '@webkit/index';\r\nimport { clsx } from 'clsx';\r\nimport { revalidateWhenQuoteIdChanges } from '../Revalidation';\r\nimport { SwyfftRouteObject } from '../routes';\r\nimport { useCompareCustomize } from './hook';\r\n\r\nexport const CompareCustomize: SwyfftRouteObject = {\r\n    path: Path.CompareCustomize,\r\n    auth: AccessRole.Agent,\r\n    element: <Component />,\r\n    shouldRevalidate: revalidateWhenQuoteIdChanges,\r\n};\r\n\r\nexport function Component() {\r\n    const {\r\n        isLoading,\r\n        isMaxLayoutRequired,\r\n        isPurchasedQuote,\r\n        productLine,\r\n        state,\r\n        update,\r\n        elementDescriptions,\r\n        comparisonModel,\r\n    } = useCompareCustomize();\r\n\r\n    return (\r\n        <DesignContext.Provider\r\n            value={comparisonModel?.Quotes.length === 1 ? 'single-quote-element' : 'multi-quote-element'}\r\n        >\r\n            <ViewWrapper\r\n                id='quote-compare'\r\n                title='Quote'\r\n                includeTopBuffer\r\n                className={clsx('quote-view', isMaxLayoutRequired && 'max-layout')}\r\n            >\r\n                {isLoading ? (\r\n                    <RouteLoadingSpinner />\r\n                ) : (\r\n                    <ProductComparisonQuote\r\n                        comparisonModel={comparisonModel}\r\n                        visibleQuoteIds={state.visibleQuoteIds}\r\n                        elementDescriptions={elementDescriptions}\r\n                        updateComparisonModel={comparisonModel =>\r\n                            update(state => (state.comparisonModel = comparisonModel))\r\n                        }\r\n                        tileHeader={quote => <TileHeader quote={quote} />}\r\n                        overViewSection={tileIndex => <QuoteOverviewSection tileIndex={tileIndex} />}\r\n                        disableRatingTypeAlert={isPurchasedQuote}\r\n                        // Anonymous users or limited agent users cannot edit quotes\r\n                        disableElements={!isAtLeastAgent() || isLimitedAgentUser()}\r\n                        productLine={productLine}\r\n                    />\r\n                )}\r\n            </ViewWrapper>\r\n        </DesignContext.Provider>\r\n    );\r\n}\r\n","import { TwoColumnLayout } from '@app/Components/StepTile/TwoColumnLayout';\r\nimport { Element } from '@app/ProductComparison/Element';\r\nimport { IPatchQuoteHook } from '@app/ProductComparison/Hooks/UsePatchQuote';\r\nimport { StateContext } from '@app/State';\r\nimport {\r\n    getComparisonElementByQuoteId,\r\n    getComparisonQuoteOrDefault,\r\n    getConfirmationElementValidationError,\r\n    getElementDescriptionByCarrierCode,\r\n} from '@shared/Common/ComparisonQuoteHelpers';\r\nimport { ComparisonElementsModel } from '@shared/Models';\r\nimport { useContext } from 'react';\r\nimport './style.scss';\r\n\r\nexport interface ConfirmationElementProps {\r\n    comparisonElements: ComparisonElementsModel;\r\n    patchQuoteHook: IPatchQuoteHook;\r\n}\r\n\r\nexport function ConfirmationElement({ comparisonElements, patchQuoteHook }: ConfirmationElementProps) {\r\n    const { state } = useContext(StateContext),\r\n        { comparisonModel, quoteId, elementDescriptions } = state,\r\n        { patch, patchFromRequest, patchClaims, patchLoading } = patchQuoteHook;\r\n\r\n    if (!comparisonModel || !quoteId || !elementDescriptions) {\r\n        return <></>;\r\n    }\r\n\r\n    const quote = getComparisonQuoteOrDefault(comparisonModel, quoteId),\r\n        comparisonElement = getComparisonElementByQuoteId(comparisonElements, quoteId);\r\n\r\n    if (!quote || !comparisonElement) {\r\n        return <></>;\r\n    }\r\n\r\n    const quoteElementDescriptions = getElementDescriptionByCarrierCode(elementDescriptions, quote.CarrierCode || ''),\r\n        elementDescriptionHtml = quoteElementDescriptions\r\n            ? quoteElementDescriptions[comparisonElement.ElementName] || ''\r\n            : '',\r\n        emptyElementError = getConfirmationElementValidationError(comparisonElement, comparisonElements.ElementDisplay),\r\n        elementErrorMessage = getComparisonElementErrorMessage();\r\n\r\n    return (\r\n        <div className='confirmation-element-wrapper'>\r\n            <TwoColumnLayout\r\n                first={\r\n                    <div className='confirmation-element-description-wrapper'>\r\n                        <h3 className='confirmation-element-name'>{comparisonElements.ElementDisplay}</h3>\r\n                        <p\r\n                            id={`confirmation-element-description-${comparisonElement.ElementName}`}\r\n                            className='confirmation-element-description'\r\n                            dangerouslySetInnerHTML={{ __html: elementDescriptionHtml }}\r\n                        />\r\n                    </div>\r\n                }\r\n                second={\r\n                    <>\r\n                        <Element\r\n                            comparisonElements={comparisonElements}\r\n                            quote={quote}\r\n                            patch={patch}\r\n                            patchFromRequest={patchFromRequest}\r\n                            patchClaims={patchClaims}\r\n                            descriptions={state.elementDescriptions}\r\n                            validationError={emptyElementError}\r\n                            hideTips\r\n                            tileEntryClassName='confirmation-element-tile-entry'\r\n                            loading={patchLoading}\r\n                            comparisonModel={state.comparisonModel}\r\n                        />\r\n\r\n                        <div className={`element-error-message ${elementErrorMessage ? 'visible' : ''}`}>\r\n                            {elementErrorMessage?.Message || ''}\r\n                        </div>\r\n                    </>\r\n                }\r\n                excludeHeader\r\n            />\r\n        </div>\r\n    );\r\n\r\n    /** Gets the error message from either a soft-decline associated to the element or from an element with an empty value. */\r\n    function getComparisonElementErrorMessage() {\r\n        if (!quote || !comparisonElement) {\r\n            return undefined;\r\n        }\r\n\r\n        const premiumError = quote.QuotePremiumErrors.find(\r\n            ({ ElementName }) => ElementName === comparisonElement.ElementName\r\n        );\r\n        return premiumError || emptyElementError || undefined;\r\n    }\r\n}\r\n","import { ComparisonQuoteImportantNotice } from '@shared/Models';\r\nimport './style.scss';\r\n\r\nexport interface ImportantNoticesProps {\r\n    importantNotices: ComparisonQuoteImportantNotice[];\r\n}\r\n\r\nexport function ImportantNotices({ importantNotices }: ImportantNoticesProps) {\r\n    return (\r\n        <div className='confirmation-element-wrapper'>\r\n            <div className='confirmation-element-description-wrapper'>\r\n                <h3 className='confirmation-element-name'>Important Notices</h3>\r\n\r\n                <ul className='important-notice-list'>{getImportantNotices()}</ul>\r\n            </div>\r\n        </div>\r\n    );\r\n\r\n    function getImportantNotices() {\r\n        return importantNotices.map(notice => {\r\n            switch (notice) {\r\n                case ComparisonQuoteImportantNotice.TexasUseOfCreditInformationDisclosure:\r\n                    return (\r\n                        <li key={notice}>\r\n                            <a\r\n                                id='texas-cd1-link'\r\n                                className='important-document-link'\r\n                                href='/api/iso-forms/name/Texas CD-1'\r\n                                target='_blank'\r\n                                rel='noopener noreferrer'\r\n                            >\r\n                                View Texas Use of Credit Information Disclosure\r\n                            </a>\r\n                        </li>\r\n                    );\r\n                default:\r\n                    return <></>;\r\n            }\r\n        });\r\n    }\r\n}\r\n","import { loadComparisonQuotes } from '@app/Api/ComparisonQuotes';\r\nimport { usePatchQuote } from '@app/ProductComparison/Hooks/UsePatchQuote';\r\nimport { StateContext } from '@app/State';\r\nimport { ProductLine, RatingType } from '@business/CommonSets';\r\nimport * as Common from '@shared/Common';\r\nimport { getMessageFromError, isAtLeastAgent, isLimitedAgentUser } from '@shared/Common';\r\nimport { getComparisonElementsByConfirmationElementNames } from '@shared/Common/ComparisonQuoteHelpers';\r\nimport { pages } from '@shared/Constants';\r\nimport { ToastContext, useAsyncEffect } from '@shared/Hooks';\r\nimport { ComparisonQuotesModel } from '@shared/Models';\r\nimport { setQuoteId } from '@shared/Storage';\r\nimport { TrackingEvent } from '@shared/TrackingEvents';\r\nimport { FormEvent, useContext, useMemo, useRef, useState } from 'react';\r\nimport { useNavigate, useParams } from 'react-router-dom-v5-compat';\r\nimport { getQuotePath, UrlParams } from '..';\r\n\r\nexport function useConfirmQuote() {\r\n    const [isInitializing, setInitializing] = useState<boolean>(true),\r\n        application = useContext(StateContext),\r\n        params = useParams<UrlParams>(),\r\n        navigate = useNavigate(),\r\n        quoteId = params.quoteId as string,\r\n        productLine = ProductLine.parseOrDefault(params.product),\r\n        stateHook = useContext(StateContext),\r\n        { update } = stateHook,\r\n        { state } = stateHook,\r\n        toast = useContext(ToastContext),\r\n        patchQuoteHook = usePatchQuote(updateComparisonModel, productLine);\r\n\r\n    const { comparisonModel } = state,\r\n        quote = useMemo(\r\n            () => comparisonModel?.Quotes.find(({ QuoteId }) => QuoteId === quoteId),\r\n            [comparisonModel?.Quotes]\r\n        ),\r\n        ratingType = useMemo(() => RatingType.parseOrDefault(quote?.RatingType), [quote]),\r\n        elementGroups = comparisonModel?.ElementGroups || [],\r\n        confirmationElementNames = quote?.ConfirmationElementNames,\r\n        requiredComparisonElements = getComparisonElementsByConfirmationElementNames(\r\n            elementGroups,\r\n            confirmationElementNames,\r\n            quoteId\r\n        ),\r\n        importantNoticesForQuote = state?.importantNotices.find(\r\n            notice => notice.quoteId === state.quoteId\r\n        )?.importantNotices,\r\n        totalRequiredConfirmations = (confirmationElementNames?.length || 0) + (importantNoticesForQuote?.length || 0);\r\n\r\n    const tileContainerRef = useRef<HTMLDivElement>(null);\r\n\r\n    useAsyncEffect(async () => {\r\n        try {\r\n            setInitializing(true);\r\n            await loadComparisonQuotes(application, params as UrlParams);\r\n        } catch (error) {\r\n            application.update(state => (state.error = error));\r\n        } finally {\r\n            setInitializing(false);\r\n        }\r\n    }, []);\r\n\r\n    return {\r\n        isInitializing,\r\n        isConfirmDisabled,\r\n        application,\r\n        comparisonModel,\r\n        tileContainerRef,\r\n        quote,\r\n        getTitle,\r\n        getDescription,\r\n        totalRequiredConfirmations,\r\n        importantNoticesForQuote,\r\n        requiredComparisonElements,\r\n        confirmationElementNames,\r\n        ratingType,\r\n        patchQuoteHook,\r\n        onBack,\r\n        submit,\r\n    };\r\n\r\n    async function submit(e: FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n\r\n        try {\r\n            if (!productLine) throw new Error('Product line not found.');\r\n\r\n            // Track the transition to the purchase page.\r\n            const trackingStep = getQuotePath(application.state.comparisonModel?.Quotes.length);\r\n            TrackingEvent.trackSinglePageApplication(trackingStep, 'bind quote');\r\n\r\n            // Navigate to the purchase page by product.\r\n            productLine.switch({\r\n                onHomeowner: navigateToResidentialQuote,\r\n                onFlood: navigateToResidentialQuote,\r\n                onCommercial: navigateToCommercialQuote,\r\n            });\r\n\r\n            function navigateToResidentialQuote() {\r\n                Common.navigate(pages.PurchaseWithProduct(ProductLine.parse(params.product), params.quoteId as string));\r\n            }\r\n\r\n            function navigateToCommercialQuote() {\r\n                setQuoteId(quoteId);\r\n                Common.navigate(pages.CommBindQuote);\r\n            }\r\n        } catch (e) {\r\n            toast.error(\r\n                await getMessageFromError(\r\n                    e,\r\n                    'An error has occurred while confirming your quote. Please try again later.'\r\n                )\r\n            );\r\n        }\r\n    }\r\n\r\n    function updateComparisonModel(comparisonModel: ComparisonQuotesModel) {\r\n        update(state => {\r\n            state.comparisonModel = comparisonModel;\r\n        });\r\n    }\r\n\r\n    function onBack() {\r\n        navigate(-1);\r\n    }\r\n\r\n    /** Returns true if there are any soft-declines or required elements with empty values. */\r\n    function isConfirmDisabled() {\r\n        if (!isAtLeastAgent() || isLimitedAgentUser() || !quote) return true;\r\n\r\n        // Ensure the user cannot progress past the confirmation step if a long-running patch request is in progress.\r\n        if (patchQuoteHook.patchLoading) return true;\r\n\r\n        const { QuotePremiumErrors } = quote,\r\n            hasSoftDeclines = QuotePremiumErrors.length > 0;\r\n\r\n        // Quotes with soft declines cannot be bound, even if all elements have a value set.\r\n        if (!requiredComparisonElements.length) return hasSoftDeclines;\r\n\r\n        const hasEmptyRequiredElements = requiredComparisonElements.some(({ Elements }) => {\r\n            const elementsForQuote = Elements.filter(({ QuoteId }) => QuoteId === quoteId);\r\n            return elementsForQuote.some(({ Value }) => !Value);\r\n        });\r\n\r\n        // Quotes with either soft declines or one or more empty element values cannot be bound.\r\n        return hasSoftDeclines || hasEmptyRequiredElements;\r\n    }\r\n\r\n    function getTitle() {\r\n        if (totalRequiredConfirmations === 0) return 'All confirmations complete';\r\n        if (totalRequiredConfirmations === 1) return 'One more thing...';\r\n        return 'A few final things...';\r\n    }\r\n\r\n    function getDescription() {\r\n        if (totalRequiredConfirmations === 0) return 'Click confirm to proceed to purchase';\r\n        return 'Before you can purchase, please make sure the following are correct:';\r\n    }\r\n}\r\n","import { PrimaryRouteButton, SecondaryBackButton, StepButtons } from '@app/Components/Buttons';\r\nimport { LayoutWrapper } from '@app/Components/LayoutWrapper';\r\nimport { QuoteStepTile } from '@app/Components/QuoteStepTile';\r\nimport { RouteLoadingSpinner } from '@app/Components/RouteLoadingSpinner';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { ViewWrapper } from '@app/Components/ViewWrapper';\r\nimport { IPatchRequest } from '@app/ProductComparison/Interfaces';\r\nimport { Path } from '@app/Views';\r\nimport { ConfirmationElement } from '@app/Views/ConfirmQuote/ConfirmationElement';\r\nimport { ImportantNotices } from '@app/Views/ConfirmQuote/ImportantNotices';\r\nimport { CarrierCode } from '@business/CommonSets';\r\nimport { Svg } from '@legacy/Components/Svg';\r\nimport { AccessRole, iconPaths } from '@shared/Constants';\r\nimport { useConfirmQuote } from './hook';\r\n\r\nexport const ConfirmQuote = {\r\n    path: Path.ConfirmQuote,\r\n    shouldRevalidate: () => false,\r\n    auth: AccessRole.Agent,\r\n    element: <Component />,\r\n};\r\n\r\nexport function Component() {\r\n    const {\r\n        isInitializing,\r\n        isConfirmDisabled,\r\n        comparisonModel,\r\n        tileContainerRef,\r\n        quote,\r\n        getTitle,\r\n        getDescription,\r\n        totalRequiredConfirmations,\r\n        importantNoticesForQuote,\r\n        requiredComparisonElements,\r\n        confirmationElementNames,\r\n        patchQuoteHook,\r\n        onBack,\r\n        ratingType,\r\n        submit,\r\n    } = useConfirmQuote();\r\n\r\n    return (\r\n        <ViewWrapper title='Quote Confirmation' includeTopBuffer={true}>\r\n            {isInitializing ? (\r\n                <RouteLoadingSpinner />\r\n            ) : (\r\n                <LayoutWrapper ref={tileContainerRef} withCover>\r\n                    <QuoteStepTile\r\n                        quote={quote}\r\n                        quoteProperty={comparisonModel?.QuoteProperty}\r\n                        tileContainerRef={tileContainerRef}\r\n                    >\r\n                        {/* If a user happens to change each element in the confirmation view (and there are no resulting soft declines), they will see no required\r\n                    elements in the view. To handle this, we change up the StepHeader title, description, and add an icon to indicate the completed state. */}\r\n                        <StepHeader\r\n                            title={getTitle()}\r\n                            description={getDescription()}\r\n                            icon={\r\n                                totalRequiredConfirmations === 0 ? (\r\n                                    <Svg\r\n                                        id={'confirmation-complete-icon'}\r\n                                        className={'confirmation-complete-icon'}\r\n                                        path={iconPaths.badge}\r\n                                        unstyled\r\n                                        aria-hidden='true'\r\n                                        alt={getTitle()}\r\n                                    />\r\n                                ) : (\r\n                                    <></>\r\n                                )\r\n                            }\r\n                            ratingType={ratingType}\r\n                        />\r\n\r\n                        {!!importantNoticesForQuote?.length && (\r\n                            <ImportantNotices importantNotices={importantNoticesForQuote} />\r\n                        )}\r\n\r\n                        {/* We use the staticRequiredElements to persist them - see comment above. */}\r\n                        {requiredComparisonElements.map((comparisonElement, index) => (\r\n                            <ConfirmationElement\r\n                                key={comparisonElement.ElementDisplay + index}\r\n                                comparisonElements={comparisonElement}\r\n                                patchQuoteHook={{\r\n                                    ...patchQuoteHook,\r\n                                    patch: async (quoteId: string, requests: IPatchRequest[]) => {\r\n                                        await patchQuoteHook.patch(quoteId, requests, confirmationElementNames);\r\n                                    },\r\n                                }}\r\n                            />\r\n                        ))}\r\n\r\n                        <StepButtons\r\n                            positive={\r\n                                <form method='post' onSubmit={submit}>\r\n                                    <PrimaryRouteButton label='Confirm' disabled={isConfirmDisabled()} type='submit' />\r\n                                </form>\r\n                            }\r\n                            negative={\r\n                                <SecondaryBackButton\r\n                                    label='Back'\r\n                                    onClick={\r\n                                        CarrierCode.parseOrDefault(quote?.CarrierCode) === CarrierCode.Vave\r\n                                            ? () => onBack()\r\n                                            : undefined\r\n                                    }\r\n                                />\r\n                            }\r\n                        />\r\n                    </QuoteStepTile>\r\n                </LayoutWrapper>\r\n            )}\r\n        </ViewWrapper>\r\n    );\r\n}\r\n","import { StateContext } from '@app/State';\r\nimport { getMessageFromError } from '@shared/Common';\r\nimport { ToastContext, useCreateOrGetQuotes } from '@shared/Hooks';\r\nimport { FormEvent, useContext, useState } from 'react';\r\nimport { useNavigate } from 'react-router-dom-v5-compat';\r\n\r\nexport function useConfirmSingleFamilyResidence() {\r\n    const navigate = useNavigate(),\r\n        toast = useContext(ToastContext),\r\n        application = useContext(StateContext),\r\n        { createOrGetQuotes } = useCreateOrGetQuotes(),\r\n        [isLoading, setLoading] = useState<boolean>(false);\r\n\r\n    return {\r\n        isLoading,\r\n        submit,\r\n        navigate,\r\n    };\r\n\r\n    async function submit(e: FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n        if (isLoading) return;\r\n\r\n        setLoading(true);\r\n\r\n        try {\r\n            const quoteRequest = {\r\n                ...application.state.quoteRequest,\r\n                NonSingleFamilyResidenceConfirmed: true,\r\n            };\r\n\r\n            application.update(state => (state.quoteRequest = quoteRequest));\r\n            await createOrGetQuotes(quoteRequest);\r\n        } catch (e) {\r\n            toast.error(await getMessageFromError(e));\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }\r\n}\r\n","import { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { Button, Paragraph } from '@webkit/index';\r\nimport { Path } from '..';\r\nimport { useConfirmSingleFamilyResidence } from './hook';\r\nimport './style.scss';\r\n\r\nexport const ConfirmSingleFamilyResidence = {\r\n    path: Path.ConfirmSingleFamilyResidence,\r\n    element: () => <SingleFamilyResidenceComponent />,\r\n    shouldRevalidate: () => false,\r\n};\r\n\r\nexport function SingleFamilyResidenceComponent() {\r\n    const { isLoading, submit, navigate } = useConfirmSingleFamilyResidence();\r\n\r\n    return (\r\n        <Step title='Confirm Single Family Residence' className='confirm-single-family-residence'>\r\n            <form method='post' autoComplete='off' onSubmit={submit}>\r\n                <StepHeader title='Confirm Single Family Residence' />\r\n\r\n                <div className='text-content'>\r\n                    <Paragraph>\r\n                        Swyfft only insures residential homes. Please confirm that this is a single family residence (or\r\n                        if not in MA, a 50% or greater owner-occupied duplex is acceptable), permanently attached to a\r\n                        foundation.\r\n                    </Paragraph>\r\n                    <Paragraph>\r\n                        To continue with your quote, please confirm that the property refers to a single family\r\n                        residence.\r\n                    </Paragraph>\r\n                </div>\r\n\r\n                <div className='button-container'>\r\n                    <Button isSecondary onClick={() => navigate(-1)}>\r\n                        Back\r\n                    </Button>\r\n\r\n                    <Button type='submit' isLoading={isLoading}>\r\n                        Yes, this is a single family residence\r\n                    </Button>\r\n                </div>\r\n            </form>\r\n        </Step>\r\n    );\r\n}\r\n","import { loadComparisonQuotes } from '@app/Api/ComparisonQuotes';\r\nimport { StateContext } from '@app/State';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { useAsyncEffect } from '@shared/Hooks';\r\nimport { useContext, useMemo, useState } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { UrlParams } from '..';\r\n\r\nexport function useCustomize() {\r\n    const [isLoading, setLoading] = useState<boolean>(true),\r\n        application = useContext(StateContext),\r\n        { state, update } = application,\r\n        params = useParams(),\r\n        { product } = useParams<UrlParams>(),\r\n        productLine = ProductLine.parseOrDefault(product) || ProductLine.Homeowner,\r\n        isPurchasedQuote = useMemo(\r\n            () => state.comparisonModel?.Quotes.some(quote => quote.IsPurchased) || false,\r\n            [state.comparisonModel]\r\n        );\r\n\r\n    useAsyncEffect(async () => {\r\n        try {\r\n            setLoading(true);\r\n            await loadComparisonQuotes(application, params as UrlParams, true);\r\n        } catch (error) {\r\n            update(state => (state.error = error));\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }, []);\r\n\r\n    return {\r\n        isLoading,\r\n        isPurchasedQuote,\r\n        state,\r\n        update,\r\n        productLine,\r\n    };\r\n}\r\n","import { QuoteOverviewSection } from '@app/Components/OverviewSection';\r\nimport { RouteLoadingSpinner } from '@app/Components/RouteLoadingSpinner';\r\nimport { TileHeader } from '@app/Components/TileHeader';\r\nimport { ViewWrapper } from '@app/Components/ViewWrapper';\r\nimport { ProductComparisonQuote } from '@app/ProductComparison/Quote';\r\nimport { Path } from '@app/Views';\r\nimport { isAtLeastAgent, isLimitedAgentUser } from '@shared/Common';\r\nimport { DesignContext } from '@webkit/index';\r\nimport { revalidateWhenQuoteIdChanges } from '../Revalidation';\r\nimport { useCustomize } from './hook';\r\n\r\nexport const Customize = {\r\n    path: Path.Customize,\r\n    element: <Component />,\r\n    shouldRevalidate: revalidateWhenQuoteIdChanges,\r\n};\r\n\r\nexport function Component() {\r\n    const { isLoading, isPurchasedQuote, state, update, productLine } = useCustomize(),\r\n        { comparisonModel, elementDescriptions } = state;\r\n\r\n    return (\r\n        <DesignContext.Provider value='single-quote-element'>\r\n            <ViewWrapper id='quote-customize' title='Quote' includeTopBuffer={true} className='quote-view'>\r\n                {isLoading ? (\r\n                    <RouteLoadingSpinner />\r\n                ) : (\r\n                    <ProductComparisonQuote\r\n                        comparisonModel={comparisonModel}\r\n                        visibleQuoteIds={state.visibleQuoteIds}\r\n                        elementDescriptions={elementDescriptions}\r\n                        updateComparisonModel={comparisonModel =>\r\n                            update(state => (state.comparisonModel = comparisonModel))\r\n                        }\r\n                        tileHeader={quote => <TileHeader quote={quote} />}\r\n                        overViewSection={tileIndex => <QuoteOverviewSection tileIndex={tileIndex} />}\r\n                        disableRatingTypeAlert={isPurchasedQuote}\r\n                        isSingleQuote\r\n                        // Anonymous users or limited agent users cannot edit quotes\r\n                        disableElements={!isAtLeastAgent() || isLimitedAgentUser()}\r\n                        productLine={productLine}\r\n                    />\r\n                )}\r\n            </ViewWrapper>\r\n        </DesignContext.Provider>\r\n    );\r\n}\r\n","import { parseAddress } from '@api/HOApi';\r\nimport { InitialState, StateContext } from '@app/State';\r\nimport { fromKebabToTitleCase } from '@shared/Common';\r\nimport { useAsyncEffect, useCreateOrGetQuotes, useQueryString, useRedirect } from '@shared/Hooks';\r\nimport { QuoteCreateRequestModel } from '@shared/Models';\r\nimport { useContext } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { getPath, Path, UrlParams } from '..';\r\n\r\nexport function useDeepLinkQuote() {\r\n    const params = useParams() as UrlParams & { address: string },\r\n        query = useQueryString<{ firstName: string; lastName: string; middleName: string }>(),\r\n        application = useContext(StateContext),\r\n        { createOrGetQuotes } = useCreateOrGetQuotes(),\r\n        redirect = useRedirect();\r\n\r\n    useAsyncEffect(async () => {\r\n        try {\r\n            const product = params.product;\r\n            if (!product) throw new Error('Product is required.');\r\n\r\n            const address = params.address;\r\n            if (!address) throw new Error('Address is required.');\r\n\r\n            const parsedAddress = await parseAddress(address);\r\n            if (!parsedAddress) throw new Error('Address is invalid.');\r\n\r\n            const firstName = query.get('firstName');\r\n            if (!firstName) throw new Error('First name is required.');\r\n\r\n            const lastName = query.get('lastName');\r\n            if (!lastName) throw new Error('Last name is required.');\r\n\r\n            const quoteRequest = {\r\n                Address: fromKebabToTitleCase(address),\r\n                InsuredNameFirst: firstName,\r\n                InsuredNameMiddle: query.get('middleName'),\r\n                InsuredNameLast: lastName,\r\n                NewLandingPage: true,\r\n                // Ensure the flag saying this was a flood quote created from the homeowner page is set to false.\r\n                FromHomeowner: false,\r\n            } as QuoteCreateRequestModel;\r\n\r\n            application.state = InitialState;\r\n            application.update(state => (state.quoteRequest = quoteRequest));\r\n\r\n            await createOrGetQuotes(quoteRequest);\r\n        } catch (e) {\r\n            redirect(getPath(Path.ProductLanding, { product: params.product || 'homeowner' }));\r\n        }\r\n    }, []);\r\n}\r\n","import { RouteLoadingSpinner } from '@app/Components/RouteLoadingSpinner';\r\nimport { ViewWrapper } from '@app/Components/ViewWrapper';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { isAtLeastAgent } from '@shared/Common';\r\nimport { Params } from 'react-router-dom-v5-compat';\r\nimport { Path } from '..';\r\nimport { useDeepLinkQuote } from './hook';\r\n\r\nexport type RouteParams = {\r\n    address: string;\r\n    product: string;\r\n};\r\n\r\nexport const DeepLinkQuote = {\r\n    path: Path.DeepLinkQuote,\r\n    auth: (params?: Params<string>) => {\r\n        // Only users with at least agent access are allowed access to the landing view for flood.\r\n        const productLine = ProductLine.parse(params?.product);\r\n        return productLine === ProductLine.Flood ? isAtLeastAgent() : true;\r\n    },\r\n    element: <DeepLinkQuoteComponent />,\r\n};\r\n\r\nexport function DeepLinkQuoteComponent() {\r\n    useDeepLinkQuote();\r\n    return (\r\n        <ViewWrapper title='Quote' includeTopBuffer>\r\n            <RouteLoadingSpinner />\r\n        </ViewWrapper>\r\n    );\r\n}\r\n","import { searchHomeownerAddresses } from '@api/HOApi';\r\nimport { PropertyData } from '@shared/Models';\r\nimport { AutoComplete, Value } from '@webkit/index';\r\nimport { forwardRef } from 'react';\r\nimport './style.scss';\r\n\r\nlet debounce: any;\r\n\r\ntype Props = {\r\n    /** The underlying value containing the typed or selected address. */\r\n    address: Value<string>;\r\n\r\n    /** Fired when the user types new content into the underlying input. */\r\n    onChange: (address: string) => void;\r\n\r\n    /** Fired when the user selects an entry from the select list. */\r\n    onSelect?: (property: PropertyData) => void;\r\n\r\n    /** An optional ID to apply to the DOM input. */\r\n    id?: string;\r\n\r\n    /** An optional name to apply to the DOM input. */\r\n    name?: string;\r\n\r\n    /** When set, the DOM input is focused on mount. */\r\n    autoFocus?: boolean;\r\n};\r\n\r\nexport type Actions = {\r\n    focus: () => void;\r\n};\r\n\r\nexport const AddressAutoComplete = forwardRef((props: Props, ref) => {\r\n    return (\r\n        <div className='landing-address'>\r\n            <AutoComplete<PropertyData>\r\n                id={props.id || ''}\r\n                name='address'\r\n                placeholder='Type your address'\r\n                value={props.address}\r\n                suggestions={async (filter: string) => await search(filter)}\r\n                getItemId={property => property.AddressKey}\r\n                getItemText={property => property.FullAddress}\r\n                autoComplete={new Date().getTime().toString()}\r\n                autoFocus\r\n                onTextChange={props.onChange}\r\n                onSelect={property => props.onSelect && props.onSelect(property)}\r\n            />\r\n        </div>\r\n    );\r\n\r\n    async function search(filter: string): Promise<PropertyData[]> {\r\n        return new Promise<PropertyData[]>(resolve => {\r\n            if (debounce) clearTimeout(debounce);\r\n\r\n            debounce = setTimeout(async () => {\r\n                resolve(await searchHomeownerAddresses(filter, 8));\r\n            }, 300);\r\n        });\r\n    }\r\n});\r\n","import { Text, Value } from '@webkit/index';\r\nimport { FunctionComponent } from 'react';\r\nimport './style.scss';\r\n\r\ninterface Props {\r\n    firstName: Value<string>;\r\n    middleName: Value<string>;\r\n    lastName: Value<string>;\r\n    onChange: (key: 'firstName' | 'middleName' | 'lastName', value: string) => void;\r\n}\r\n\r\nexport const InsuredName: FunctionComponent<Props> = props => {\r\n    return (\r\n        <div className='landing-name'>\r\n            <Text\r\n                id='first-name'\r\n                name='first-name'\r\n                value={props.firstName}\r\n                onChange={name => props.onChange('firstName', name)}\r\n                placeholder='Insured first name'\r\n            />\r\n\r\n            <Text\r\n                id='middle-name'\r\n                name='middle-name'\r\n                value={props.middleName}\r\n                onChange={name => props.onChange('middleName', name)}\r\n                placeholder='Insured middle name (optional)'\r\n            />\r\n\r\n            <Text\r\n                id='last-name'\r\n                name='last-name'\r\n                value={props.lastName}\r\n                onChange={name => props.onChange('lastName', name)}\r\n                placeholder='Insured last name'\r\n            />\r\n        </div>\r\n    );\r\n};\r\n","import { Actions } from '@app/Components/Landing/Address';\r\nimport { StateContext } from '@app/State';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { getMessageFromError, isLimitedAgentUser } from '@shared/Common';\r\nimport { pages } from '@shared/Constants';\r\nimport { ToastContext, useFormReducer } from '@shared/Hooks';\r\nimport { useCreateOrGetQuotes } from '@shared/Hooks/CreateOrGetQuotes';\r\nimport { clearForm } from '@shared/Hooks/PersistentFormReducer';\r\nimport { useRedirect } from '@shared/Hooks/Redirect';\r\nimport { QuoteCreateRequestModel } from '@shared/Models';\r\nimport { Rules, Value } from '@webkit/index';\r\nimport { useContext, useEffect, useRef, useState } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { Path, UrlParams } from '..';\r\n\r\ntype Form = {\r\n    address: Value<string>;\r\n    firstName: Value<string>;\r\n    middleName: Value<string>;\r\n    lastName: Value<string>;\r\n    creditScore: Value<boolean>;\r\n};\r\n\r\nexport function useLanding(path: Path) {\r\n    const params = useParams<UrlParams>(),\r\n        redirect = useRedirect(),\r\n        application = useContext(StateContext),\r\n        toast = useContext(ToastContext),\r\n        [addressKey, setAddressKey] = useState<string | null>(null),\r\n        [isLoading, setLoading] = useState<boolean>(false),\r\n        productLine = ProductLine.parseOrDefault(params.product) ?? ProductLine.Homeowner,\r\n        addressRef = useRef<Actions>(),\r\n        nameFieldLengthRules = [Rules.rangeLength(2, 50)];\r\n\r\n    const { form, set, setWithoutValidation, valid, validate } = useFormReducer<Form>({\r\n        address: new Value<string>('address', '', [Rules.required()]),\r\n        firstName: new Value<string>('first name', '', [Rules.required(), ...nameFieldLengthRules]),\r\n        middleName: new Value<string>('middle name', '', [Rules.maxLength(50)]),\r\n        lastName: new Value<string>('last name', '', [Rules.required(), ...nameFieldLengthRules]),\r\n        creditScore: new Value<boolean>('credit score', true, [Rules.equals(true)]),\r\n    });\r\n\r\n    const { createOrGetQuotes } = useCreateOrGetQuotes();\r\n\r\n    useEffect(() => {\r\n        if (addressRef.current) addressRef.current.focus();\r\n\r\n        if (isLimitedAgentUser()) {\r\n            const productLine =\r\n                path === Path.HomeownerLanding ? ProductLine.Homeowner : ProductLine.parse(params?.product);\r\n            redirect(pages.History(productLine));\r\n        }\r\n\r\n        // Clear stored single page application state as we're starting a new quote from the landing page. The 1500 millisecond delay is needed to prevent flashes of no\r\n        // content on views as they transition to the landing page. Previously this was set to 300 milliseconds but that was not enough time for the transition\r\n        // to finish before the state was cleared and a weird empty UI would be shown (in particular on the quote page).\r\n        setTimeout(clearForm, 1500);\r\n    }, []);\r\n\r\n    return {\r\n        addressKey,\r\n        addressRef,\r\n        productLine,\r\n        form,\r\n        set,\r\n        setWithoutValidation,\r\n        submit,\r\n        validateForm,\r\n        setAddressKey,\r\n        isLoading,\r\n    };\r\n\r\n    function validateForm() {\r\n        getPertinentValidationKeys().forEach(key => validate(key as keyof Form));\r\n\r\n        const activeElement = document.activeElement as any;\r\n        if (activeElement?.blur) activeElement.blur();\r\n    }\r\n\r\n    async function submit(e: React.FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n\r\n        // If we're in the middle of submitting the form, don't allow the user to submit it again. The loading button does not automatically prevent the user\r\n        // from submitting when in a loading state, and adding a disabled state to it would change the button styling.\r\n        if (isLoading || !valid(getPertinentValidationKeys())) return;\r\n\r\n        try {\r\n            setLoading(true);\r\n\r\n            const quoteRequest = {\r\n                Address: form.address.content,\r\n                AddressKey: addressKey,\r\n                InsuredNameFirst: form.firstName.content,\r\n                InsuredNameMiddle: form.middleName.content,\r\n                InsuredNameLast: form.lastName.content,\r\n                NewLandingPage: true,\r\n                // Ensure the flag saying this was a flood quote created from the homeowner page is set to false.\r\n                FromHomeowner: false,\r\n            } as QuoteCreateRequestModel;\r\n\r\n            application.update(state => (state.quoteRequest = quoteRequest));\r\n            await createOrGetQuotes(quoteRequest);\r\n        } catch (e) {\r\n            toast.error(await getMessageFromError(e));\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }\r\n\r\n    function getPertinentValidationKeys() {\r\n        // If the middle name is filled out, check validation for all the fields before submitting. Otherwise, run validation for all the fields except the middle name.\r\n        const formKeys = Object.keys(form),\r\n            keysWithNoMiddleName = formKeys.filter(key => key !== 'middleName');\r\n        return (!!form.middleName.content ? formKeys : keysWithNoMiddleName) as (keyof Form)[];\r\n    }\r\n}\r\n","import { CheckboxFormGroup } from '@legacy/Components/FormGroups/Checkbox';\r\nimport { pages } from '@shared/Constants';\r\nimport { Value } from '@webkit/index';\r\nimport { useState } from 'react';\r\n\r\ninterface Props {\r\n    value: Value<boolean>;\r\n    setValue: (checked: boolean) => void;\r\n}\r\n\r\nexport function TermsCheckbox({ value, setValue: set }: Props) {\r\n    const [isLinkHovered, setIsLinkHovered] = useState(false);\r\n\r\n    return (\r\n        <CheckboxFormGroup\r\n            id='terms-checkbox'\r\n            label={<CheckboxLabel />}\r\n            labelClassName='credit-score-label'\r\n            checkboxClassName='credit-score-checkbox'\r\n            value={value}\r\n            onChange={setCheckbox}\r\n        />\r\n    );\r\n\r\n    function setCheckbox(checked: boolean) {\r\n        if (isLinkHovered) {\r\n            return;\r\n        }\r\n\r\n        set(checked);\r\n    }\r\n\r\n    function CheckboxLabel() {\r\n        return (\r\n            <span id='terms-checkbox-label'>\r\n                By clicking the \"Get Quote\" button, you're agreeing to our <TermsLink /> and are authorizing us to\r\n                retrieve a credit-based insurance score (in states where we're allowed).\r\n            </span>\r\n        );\r\n    }\r\n\r\n    function TermsLink() {\r\n        return (\r\n            <a\r\n                id='terms-link'\r\n                href={pages.Privacy}\r\n                target='_blank'\r\n                rel='noopener noreferrer'\r\n                onMouseEnter={() => setIsLinkHovered(true)}\r\n                onMouseLeave={() => setIsLinkHovered(false)}\r\n            >\r\n                terms\r\n            </a>\r\n        );\r\n    }\r\n}\r\n","import { AddressAutoComplete } from '@app/Components/Landing/Address';\r\nimport { HeroText } from '@app/Components/Landing/HeroText';\r\nimport { LandingContent } from '@app/Components/Landing/LandingContent';\r\nimport { LandingFooter } from '@app/Components/Landing/LandingFooter';\r\nimport { LandingLayout } from '@app/Components/Landing/LandingLayout';\r\nimport { LandingViewWrapper } from '@app/Components/Landing/LandingViewWrapper';\r\nimport { Logo } from '@app/Components/Landing/Logo';\r\nimport { InsuredName } from '@app/Components/Landing/Name';\r\nimport { LayoutWrapper } from '@app/Components/LayoutWrapper';\r\nimport { ProductHeader } from '@app/Components/ProductHeader';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { PrimaryGreenButton } from '@legacy/Components/FormGroups/Buttons';\r\nimport { isAtLeastAgent } from '@shared/Common';\r\nimport { DesignContext } from '@webkit/index';\r\nimport { Params } from 'react-router-dom-v5-compat';\r\nimport { Path } from '..';\r\nimport { useLanding } from './hook';\r\nimport './style.scss';\r\nimport { TermsCheckbox } from './TermsCheckbox';\r\n\r\nexport const Landing = (path: Path) => ({\r\n    path,\r\n    auth: (params?: Params<string>) => {\r\n        // Only users with at least agent access are allowed access to the landing view for flood.\r\n        const productLine = path === Path.HomeownerLanding ? ProductLine.Homeowner : ProductLine.parse(params?.product);\r\n        return productLine.key === ProductLine.Flood.key ? isAtLeastAgent() : true;\r\n    },\r\n    element: <Component path={path} />,\r\n});\r\n\r\nexport function Component({ path }: { path: Path }) {\r\n    const {\r\n        addressKey,\r\n        addressRef,\r\n        productLine,\r\n        set,\r\n        setWithoutValidation,\r\n        form,\r\n        submit,\r\n        validateForm,\r\n        setAddressKey,\r\n        isLoading,\r\n    } = useLanding(path);\r\n\r\n    return (\r\n        <DesignContext.Provider value='landing'>\r\n            <LandingViewWrapper product={productLine}>\r\n                <LayoutWrapper>\r\n                    <LandingLayout>\r\n                        <ProductHeader product={productLine} />\r\n\r\n                        <div className='logo-container'>\r\n                            <Logo />\r\n                        </div>\r\n\r\n                        <LandingContent>\r\n                            <HeroText>Unlike other insurance brands with endless forms,</HeroText>\r\n                            <HeroText>Swyfft uses unique data sources and analytics</HeroText>\r\n                            <HeroText>\r\n                                to offer{' '}\r\n                                <span className='text-red'>{`${productLine.lowercaseName} insurance in seconds.`}</span>\r\n                            </HeroText>\r\n\r\n                            <form method='post' onSubmit={submit} autoComplete='off'>\r\n                                <input autoComplete='false' name='hidden' type='text' style={{ display: 'none' }} />\r\n                                <input type='hidden' name='address-key' value={addressKey || ''} />\r\n\r\n                                <AddressAutoComplete\r\n                                    ref={addressRef}\r\n                                    id='address'\r\n                                    address={form.address}\r\n                                    autoFocus\r\n                                    onChange={address => setWithoutValidation('address', address)}\r\n                                    onSelect={property => setAddressKey(property.AddressKey)}\r\n                                />\r\n\r\n                                <InsuredName\r\n                                    firstName={form.firstName}\r\n                                    middleName={form.middleName}\r\n                                    lastName={form.lastName}\r\n                                    onChange={(key, value) => set(key, value)}\r\n                                />\r\n\r\n                                <LandingFooter>\r\n                                    <div className='credit-score-disclaimer'>\r\n                                        {productLine === ProductLine.Homeowner && (\r\n                                            <TermsCheckbox\r\n                                                value={form.creditScore}\r\n                                                setValue={checked => set('creditScore', checked)}\r\n                                            />\r\n                                        )}\r\n                                    </div>\r\n\r\n                                    <PrimaryGreenButton\r\n                                        id='submit-quote'\r\n                                        label='Get Quote'\r\n                                        loading={isLoading}\r\n                                        type='submit'\r\n                                        className='landing-get-quote-button'\r\n                                        onClick={validateForm}\r\n                                    />\r\n                                </LandingFooter>\r\n                            </form>\r\n                        </LandingContent>\r\n                    </LandingLayout>\r\n                </LayoutWrapper>\r\n            </LandingViewWrapper>\r\n        </DesignContext.Provider>\r\n    );\r\n}\r\n","import { fetchAndLogWithResponse } from '@api/Fetch';\r\nimport { LoginDetails } from '@shared/Models';\r\n\r\ntype LoginAsResponse = {\r\n    token: string;\r\n    roles: string[];\r\n    details: LoginDetails;\r\n};\r\n\r\nexport async function loginAs(email: string): Promise<LoginAsResponse> {\r\n    const response = await fetchAndLogWithResponse('/api/loginas', 'login-as', {\r\n        method: 'POST',\r\n        body: JSON.stringify({ email }),\r\n    });\r\n\r\n    if (!response.ok) {\r\n        if (response.status === 400) throw new Error(await response.text());\r\n        else throw response;\r\n    }\r\n\r\n    return await response.json();\r\n}\r\n","import { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRow } from '@app/Components/StepTile';\r\nimport { PrimaryGreenButton } from '@legacy/Components/FormGroups/Buttons';\r\nimport { TextFormGroup } from '@legacy/Components/FormGroups/Text';\r\nimport { useFormReducer } from '@shared/Hooks/FormReducer';\r\nimport { useToast } from '@shared/Hooks/Toast';\r\nimport { saveLocalData, setCookie } from '@shared/Storage';\r\nimport { Rules, Value } from '@webkit/index';\r\nimport * as React from 'react';\r\nimport { Path } from '..';\r\nimport { loginAs } from './api';\r\nimport './style.scss';\r\n\r\nexport const LoginAs = {\r\n    path: Path.LoginAs,\r\n    element: () => <Component />,\r\n    shouldRevalidate: () => false,\r\n};\r\n\r\ntype Form = {\r\n    email: Value<string>;\r\n};\r\n\r\nfunction Component() {\r\n    const [loading, setLoading] = React.useState<boolean>(false),\r\n        { error } = useToast();\r\n\r\n    const { form, set, validate, valid } = useFormReducer<Form>({\r\n        email: new Value('email', '', [Rules.required(), Rules.email()]),\r\n    });\r\n\r\n    return (\r\n        <Step title='Login As' className='login-as'>\r\n            <StepHeader title='Login As' />\r\n\r\n            <form onSubmit={loginAsSomeoneElse}>\r\n                <StepTileRow className='login-as-row'>\r\n                    <TextFormGroup\r\n                        id='email'\r\n                        label='Email Address'\r\n                        value={form.email}\r\n                        onTextChange={text => set('email', text)}\r\n                    />\r\n\r\n                    <PrimaryGreenButton\r\n                        loading={loading}\r\n                        label='Login As Someone Else'\r\n                        className='mini-button-cp'\r\n                        type='submit'\r\n                        onClick={() => validate()}\r\n                    />\r\n                </StepTileRow>\r\n            </form>\r\n        </Step>\r\n    );\r\n\r\n    async function loginAsSomeoneElse(e: React.FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n\r\n        if (!valid()) return;\r\n\r\n        try {\r\n            setLoading(true);\r\n\r\n            const response = await loginAs(form.email.content);\r\n            setCookie('authorization', response.token, 0);\r\n            saveLocalData('rememberMe', '');\r\n            saveLocalData('roles', JSON.stringify(response.roles));\r\n            saveLocalData('loginDetails', JSON.stringify(response.details));\r\n            window.location.href = '/';\r\n        } catch (e) {\r\n            console.error(e);\r\n            error((e as Error).message);\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }\r\n}\r\n","import { StateContext } from '@app/State';\r\nimport { yearBuiltAndRoofAgeValidation, yearBuiltValidation } from '@app/Validation';\r\nimport { getMessageFromError } from '@shared/Common';\r\nimport { ToastContext, usePersistentFormReducer } from '@shared/Hooks';\r\nimport { useCreateOrGetQuotes } from '@shared/Hooks/CreateOrGetQuotes';\r\nimport { Rules, Value } from '@webkit/index';\r\nimport { useContext, useEffect, useState } from 'react';\r\nimport { useNavigate } from 'react-router-dom-v5-compat';\r\n\r\ntype FormType = {\r\n    addressKey: Value<string>;\r\n    livingSpace: Value<string>;\r\n    roofAge: Value<string>;\r\n    yearBuilt: Value<string>;\r\n    singleFamilyResidence: Value<boolean>;\r\n};\r\n\r\nexport function useMissingPropertyData() {\r\n    const navigate = useNavigate(),\r\n        application = useContext(StateContext),\r\n        missingPropertyData = application.state.missingPropertyData,\r\n        toast = useContext(ToastContext),\r\n        { createOrGetQuotes } = useCreateOrGetQuotes(),\r\n        [isLoading, setLoading] = useState<boolean>(false);\r\n\r\n    const reducer = usePersistentFormReducer<FormType>('missing-property-data', {\r\n        addressKey: new Value<string>('address key', ''),\r\n        livingSpace: new Value<string>(\r\n            'living space',\r\n            '',\r\n            missingPropertyData?.livingSpace ? [Rules.required(), Rules.decimal(), Rules.range(500, 10000)] : undefined\r\n        ),\r\n        roofAge: new Value<string>(\r\n            'roof age',\r\n            '',\r\n            missingPropertyData?.roofAge ? [Rules.required(), Rules.decimal()] : undefined\r\n        ),\r\n        yearBuilt: new Value<string>(\r\n            'year built',\r\n            '',\r\n            missingPropertyData?.yearBuilt ? [Rules.required(), Rules.decimal()] : undefined\r\n        ),\r\n        singleFamilyResidence: new Value<boolean>(\r\n            'single family residence',\r\n            false,\r\n            missingPropertyData?.singleFamilyResidence\r\n                ? [Rules.equals(true, 'Please confirm that this property is a single family residence.')]\r\n                : undefined\r\n        ),\r\n    });\r\n\r\n    useEffect(() => {\r\n        if (missingPropertyData?.yearBuilt) yearBuiltValidation(reducer.form.yearBuilt);\r\n        if (missingPropertyData?.yearBuilt && missingPropertyData?.roofAge)\r\n            yearBuiltAndRoofAgeValidation(reducer.form.yearBuilt, reducer.form.roofAge);\r\n    }, []);\r\n\r\n    return {\r\n        navigate,\r\n        reducer,\r\n        missingPropertyData,\r\n        submit,\r\n        isLoading,\r\n    };\r\n\r\n    async function submit(e: React.FormEvent<HTMLFormElement>) {\r\n        try {\r\n            e.preventDefault();\r\n\r\n            reducer.validate();\r\n            if (!reducer.valid() || isLoading) return;\r\n\r\n            setLoading(true);\r\n\r\n            const missingPropertyData = application.state.missingPropertyData,\r\n                newQuoteRequest = { ...application.state.quoteRequest };\r\n\r\n            if (missingPropertyData?.livingSpace)\r\n                newQuoteRequest.LivingSpace = parseInt(reducer.form.livingSpace.content);\r\n            if (missingPropertyData?.roofAge) newQuoteRequest.RoofAge = parseInt(reducer.form.roofAge.content);\r\n            if (missingPropertyData?.yearBuilt) newQuoteRequest.YearBuilt = parseInt(reducer.form.yearBuilt.content);\r\n            if (missingPropertyData?.singleFamilyResidence)\r\n                newQuoteRequest.NonSingleFamilyResidenceConfirmed = reducer.form.singleFamilyResidence.content;\r\n\r\n            application.update(state => (state.quoteRequest = newQuoteRequest));\r\n            await createOrGetQuotes(newQuoteRequest);\r\n        } catch (e) {\r\n            toast.error(await getMessageFromError(e));\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }\r\n}\r\n","import { PrimaryRouteButton, SecondaryBackButton, StepButtons } from '@app/Components/Buttons';\r\nimport { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRow } from '@app/Components/StepTile';\r\nimport { Checkbox, Paragraph, Text } from '@webkit/index';\r\nimport { Path } from '..';\r\nimport { useMissingPropertyData } from './hook';\r\n\r\nexport const MissingPropertyData = {\r\n    path: Path.MissingPropertyData,\r\n    element: () => <Component />,\r\n    shouldRevalidate: () => false,\r\n};\r\n\r\nexport const Component = () => {\r\n    const { navigate, reducer, submit, missingPropertyData, isLoading } = useMissingPropertyData();\r\n\r\n    return (\r\n        <Step title='Missing Property Data' className='missing-property-data'>\r\n            <form method='post' onSubmit={submit}>\r\n                <input type='hidden' name='address-key' value={reducer.form.addressKey.content} />\r\n\r\n                <StepHeader\r\n                    title='Missing Property Data'\r\n                    description={`Some important data is missing for this property. Please fill out the fields below and confirm that the information is correct.`}\r\n                />\r\n\r\n                <StepTileRow>\r\n                    {missingPropertyData?.livingSpace && (\r\n                        <Text\r\n                            id='living-space'\r\n                            value={reducer.form.livingSpace}\r\n                            label='Living Space'\r\n                            onChange={value => reducer.set('livingSpace', value)}\r\n                        />\r\n                    )}\r\n\r\n                    {missingPropertyData?.roofAge && (\r\n                        <Text\r\n                            id='roof-age'\r\n                            value={reducer.form.roofAge}\r\n                            label='Roof Age'\r\n                            onChange={value => {\r\n                                reducer.set('roofAge', value);\r\n                                if (missingPropertyData?.yearBuilt) reducer.validate('yearBuilt');\r\n                            }}\r\n                        />\r\n                    )}\r\n\r\n                    {missingPropertyData?.yearBuilt && (\r\n                        <Text\r\n                            id='year-built'\r\n                            value={reducer.form.yearBuilt}\r\n                            label='Year Built'\r\n                            onChange={value => {\r\n                                reducer.set('yearBuilt', value);\r\n                                if (missingPropertyData?.roofAge) reducer.validate('roofAge');\r\n                            }}\r\n                        />\r\n                    )}\r\n                </StepTileRow>\r\n\r\n                {missingPropertyData?.singleFamilyResidence && (\r\n                    <StepTileRow>\r\n                        <div>\r\n                            <Checkbox\r\n                                id='single-family-residence'\r\n                                value={reducer.form.singleFamilyResidence}\r\n                                onChange={checked => reducer.set('singleFamilyResidence', checked)}\r\n                            >\r\n                                <span className='text-black text-base'>Single Family Residence</span>\r\n                            </Checkbox>\r\n\r\n                            <div className='mt-2'>\r\n                                <Paragraph size='sm'>\r\n                                    Swyfft only insures residential homes. Please confirm that this is a single family\r\n                                    residence, permanently attached to a foundation.\r\n                                </Paragraph>\r\n                            </div>\r\n                        </div>\r\n                    </StepTileRow>\r\n                )}\r\n\r\n                <StepButtons\r\n                    positive={<PrimaryRouteButton id='next' type='submit' label='Next' loading={isLoading} />}\r\n                    negative={<SecondaryBackButton id='back' label='Back' onClick={() => navigate(-1)} />}\r\n                />\r\n            </form>\r\n        </Step>\r\n    );\r\n};\r\n","import { fetchAndLog } from '@api/Fetch';\r\n\r\nexport type Coordinates = {\r\n    lat: number;\r\n    lng: number;\r\n};\r\n\r\nexport const setPropertyLocation = async (addressKey: string | undefined, latitude: number, longitude: number) => {\r\n    await fetchAndLog('/api/propertyLocation', 'set property location', {\r\n        method: 'PUT',\r\n        headers: {\r\n            'Content-Type': 'application/json',\r\n        },\r\n        body: JSON.stringify({\r\n            AddressKey: addressKey,\r\n            Latitude: latitude,\r\n            Longitude: longitude,\r\n        }),\r\n    });\r\n};\r\n\r\nexport const getStateBoundary = async (stateCode: string): Promise<Coordinates[][]> => {\r\n    const result = await fetchAndLog<{ X: number; Y: number }[][]>(\r\n        `/api/property/state-boundary?stateCode=${stateCode}`,\r\n        'get state boundary'\r\n    );\r\n    return result.map(outer => outer.map(inner => ({ lat: inner.Y, lng: inner.X })));\r\n};\r\n","import { getAddressKey, parseAddress } from '@app/Api/Property';\r\nimport { AppSettingsContext, StateContext } from '@app/State/Context';\r\nimport { getMessageFromError, truncate } from '@shared/Common';\r\nimport {\r\n    ToastContext,\r\n    useAsyncEffect,\r\n    useCreateOrGetQuotes,\r\n    usePersistentFormReducer,\r\n    useRedirect,\r\n} from '@shared/Hooks';\r\nimport { Address } from '@shared/Models';\r\nimport { Rule, Rules, Value } from '@webkit/index';\r\nimport { FormEvent, useContext, useEffect, useRef, useState } from 'react';\r\nimport { useNavigate, useParams } from 'react-router-dom-v5-compat';\r\nimport { Path } from '..';\r\nimport { Coordinates, getStateBoundary, setPropertyLocation } from './api';\r\nimport { MapActions } from './map';\r\n\r\nexport type FormType = {\r\n    lat: Value<string>;\r\n    lng: Value<string>;\r\n    addressKey: Value<string>;\r\n};\r\n\r\nexport function usePreciseLocation() {\r\n    const navigate = useNavigate(),\r\n        appSettings = useContext(AppSettingsContext),\r\n        application = useContext(StateContext),\r\n        toast = useContext(ToastContext),\r\n        params = useParams(),\r\n        [boundaries, setBoundaries] = useState<Coordinates[][]>([]),\r\n        [isSelected, setSelected] = useState<Coordinates | null>(null),\r\n        [isDisabled, setDisabled] = useState<boolean>(true),\r\n        [isLoading, setLoading] = useState<boolean>(false),\r\n        map = useRef<MapActions>(null),\r\n        redirect = useRedirect(),\r\n        { createOrGetQuotes } = useCreateOrGetQuotes();\r\n\r\n    const formReducer = usePersistentFormReducer<FormType>('precise-location', {\r\n        lat: new Value<string>('latitude', '', [Rules.required(), Rules.decimal()]),\r\n        lng: new Value<string>('longitude', '', [Rules.required(), Rules.decimal()]),\r\n        addressKey: new Value<string>('address key', ''),\r\n    });\r\n\r\n    const lat = formReducer.form.lat.content,\r\n        lng = formReducer.form.lng.content;\r\n\r\n    useAsyncEffect(async () => {\r\n        try {\r\n            setLoading(true);\r\n\r\n            const { quoteRequest, createAddress } = application.state,\r\n                { context, latitude, longitude } = createAddress;\r\n\r\n            let address: Address | null;\r\n            let addressKey: string;\r\n\r\n            if (!params.address) throw new Error('Missing address.');\r\n\r\n            if (application.state.address) {\r\n                address = { ...application.state.address };\r\n            } else {\r\n                address = await parseAddress(params.address.replace(/-/g, ' '));\r\n            }\r\n\r\n            if (!address) throw new Error(`Unable to parse address: ${params.address}`);\r\n\r\n            if (context === 'CreateAddress') {\r\n                addressKey = quoteRequest.AddressKey || (await getAddressKey(Address.toString(address)));\r\n            } else {\r\n                addressKey =\r\n                    application.state.createAddress.addressKey || (await getAddressKey(Address.toString(address)));\r\n            }\r\n\r\n            formReducer.set('addressKey', addressKey);\r\n            formReducer.setWithoutValidation('lat', latitude?.toString() || '');\r\n            formReducer.setWithoutValidation('lng', longitude?.toString() || '');\r\n\r\n            setBoundaries(await getStateBoundary(address.StateCode));\r\n        } catch (e) {\r\n            application.update(state => (state.error = e));\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }, []);\r\n\r\n    useEffect(() => {\r\n        if (!lat || !lng || isNaN(parseFloat(lat)) || isNaN(parseFloat(lng))) return;\r\n\r\n        setSelected({ lat: parseFloat(lat), lng: parseFloat(lng) });\r\n        setTimeout(() => setDisabled(!formReducer.valid()));\r\n    }, [lat, lng]);\r\n\r\n    useAsyncEffect(async () => {\r\n        if (!map.current) {\r\n            return;\r\n        }\r\n\r\n        await map.current.initialized;\r\n\r\n        const invalidArea = {\r\n            id: 'invalid-area',\r\n            validator: () =>\r\n                map.current?.containsLocation({\r\n                    lat: parseFloat(formReducer.form.lat.content),\r\n                    lng: parseFloat(formReducer.form.lng.content),\r\n                }),\r\n            error: () => 'The selected point is outside the valid area.',\r\n        } as Rule<string>;\r\n\r\n        formReducer.form.lat.addRule(invalidArea);\r\n        formReducer.form.lng.addRule(invalidArea);\r\n    }, [map.current]);\r\n\r\n    return {\r\n        formReducer,\r\n        googleMapsApiKey: appSettings?.googleMapsApiKey,\r\n        map,\r\n        boundaries,\r\n        navigate,\r\n        submit,\r\n        isSelected,\r\n        isDisabled,\r\n        isLoading,\r\n        setSelectedLocation,\r\n    };\r\n\r\n    async function submit(e: FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n\r\n        formReducer.validate();\r\n        if (!formReducer.valid() || isLoading) return;\r\n\r\n        try {\r\n            setLoading(true);\r\n\r\n            await setPropertyLocation(\r\n                formReducer.form.addressKey.content,\r\n                parseFloat(formReducer.form.lat.content),\r\n                parseFloat(formReducer.form.lng.content)\r\n            );\r\n\r\n            if (application.state.createAddress.context === 'CreateAddress') {\r\n                await createOrGetQuotes(application.state.quoteRequest);\r\n            } else {\r\n                application.update(state => (state.createAddress.success = true));\r\n                redirect(Path.AddressManagement, { showSuccess: 'true' });\r\n            }\r\n        } catch (e) {\r\n            toast.error(await getMessageFromError(e));\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }\r\n\r\n    function setSelectedLocation(location: Coordinates) {\r\n        const decimalPlaces = 8;\r\n        location.lat = truncate(location.lat, decimalPlaces);\r\n        location.lng = truncate(location.lng, decimalPlaces);\r\n        formReducer.set('lat', location.lat.toString());\r\n        formReducer.set('lng', location.lng.toString());\r\n        setDisabled(!formReducer.valid());\r\n        setSelected(location);\r\n    }\r\n}\r\n","import { jsx, jsxs, Fragment } from 'react/jsx-runtime';\nimport { createContext, useContext, memo, useState, useRef, useEffect, PureComponent, createRef, useMemo, Children, isValidElement, cloneElement } from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { createPortal } from 'react-dom';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n    extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n    return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n    if (typeof b !== \"function\" && b !== null)\r\n        throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n    extendStatics(d, b);\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n    __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    };\r\n    return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __rest$1(s, e) {\r\n    var t = {};\r\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n        t[p] = s[p];\r\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n                t[p[i]] = s[p[i]];\r\n        }\r\n    return t;\r\n}\r\n\r\nfunction __awaiter$1(thisArg, _arguments, P, generator) {\r\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n    function verb(n) { return function (v) { return step([n, v]); }; }\r\n    function step(op) {\r\n        if (f) throw new TypeError(\"Generator is already executing.\");\r\n        while (_) try {\r\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n            if (y = 0, t) op = [op[0] & 2, t.value];\r\n            switch (op[0]) {\r\n                case 0: case 1: t = op; break;\r\n                case 4: _.label++; return { value: op[1], done: false };\r\n                case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                default:\r\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                    if (t[2]) _.ops.pop();\r\n                    _.trys.pop(); continue;\r\n            }\r\n            op = body.call(thisArg, _);\r\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n    }\r\n}\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar NODE_ENV = process.env.NODE_ENV;\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n  if (NODE_ENV !== 'production') {\n    if (format === undefined) {\n      throw new Error('invariant requires an error message argument');\n    }\n  }\n\n  if (!condition) {\n    var error;\n    if (format === undefined) {\n      error = new Error(\n        'Minified exception occurred; use the non-minified dev environment ' +\n        'for the full error message and additional helpful warnings.'\n      );\n    } else {\n      var args = [a, b, c, d, e, f];\n      var argIndex = 0;\n      error = new Error(\n        format.replace(/%s/g, function() { return args[argIndex++]; })\n      );\n      error.name = 'Invariant Violation';\n    }\n\n    error.framesToPop = 1; // we don't care about invariant's own frame\n    throw error;\n  }\n};\n\nvar invariant_1 = invariant;\n\nvar invariant$1 = /*@__PURE__*/getDefaultExportFromCjs(invariant_1);\n\nvar MapContext = createContext(null);\nfunction useGoogleMap() {\n    invariant$1(!!useContext, 'useGoogleMap is React hook and requires React version 16.8+');\n    var map = useContext(MapContext);\n    invariant$1(!!map, 'useGoogleMap needs a GoogleMap available up in the tree');\n    return map;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction reduce(obj, fn, acc) {\n    return Object.keys(obj).reduce(function reducer(newAcc, key) {\n        return fn(newAcc, obj[key], key);\n    }, acc);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction forEach(obj, fn) {\n    Object.keys(obj).forEach(function (key) {\n        return fn(obj[key], key);\n    });\n}\n\n/* global google */\nfunction applyUpdaterToNextProps(\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nupdaterMap, \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nprevProps, \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nnextProps, \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ninstance\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n) {\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    var map = {};\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    var iter = function (fn, key) {\n        var nextValue = nextProps[key];\n        if (nextValue !== prevProps[key]) {\n            map[key] = nextValue;\n            fn(instance, nextValue);\n        }\n    };\n    forEach(updaterMap, iter);\n    return map;\n}\nfunction registerEvents(\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nprops, \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ninstance, eventMap) {\n    var registeredList = reduce(eventMap, function reducer(acc, googleEventName, \n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    onEventName) {\n        if (typeof props[onEventName] === 'function') {\n            acc.push(google.maps.event.addListener(instance, googleEventName, props[onEventName]));\n        }\n        return acc;\n    }, []);\n    return registeredList;\n}\nfunction unregisterEvent(registered) {\n    google.maps.event.removeListener(registered);\n}\nfunction unregisterEvents(events) {\n    if (events === void 0) { events = []; }\n    events.forEach(unregisterEvent);\n}\nfunction applyUpdatersToPropsAndRegisterEvents(_a) {\n    var updaterMap = _a.updaterMap, eventMap = _a.eventMap, prevProps = _a.prevProps, nextProps = _a.nextProps, instance = _a.instance;\n    var registeredEvents = registerEvents(nextProps, instance, eventMap);\n    applyUpdaterToNextProps(updaterMap, prevProps, nextProps, instance);\n    return registeredEvents;\n}\n\nvar eventMap$i = {\n    onDblClick: 'dblclick',\n    onDragEnd: 'dragend',\n    onDragStart: 'dragstart',\n    onMapTypeIdChanged: 'maptypeid_changed',\n    onMouseMove: 'mousemove',\n    onMouseOut: 'mouseout',\n    onMouseOver: 'mouseover',\n    onMouseDown: 'mousedown',\n    onMouseUp: 'mouseup',\n    onRightClick: 'rightclick',\n    onTilesLoaded: 'tilesloaded',\n    onBoundsChanged: 'bounds_changed',\n    onCenterChanged: 'center_changed',\n    onClick: 'click',\n    onDrag: 'drag',\n    onHeadingChanged: 'heading_changed',\n    onIdle: 'idle',\n    onProjectionChanged: 'projection_changed',\n    onResize: 'resize',\n    onTiltChanged: 'tilt_changed',\n    onZoomChanged: 'zoom_changed',\n};\nvar updaterMap$i = {\n    extraMapTypes: function (map, extra) {\n        extra.forEach(function forEachExtra(it, i) {\n            map.mapTypes.set(String(i), it);\n        });\n    },\n    center: function (map, center) {\n        map.setCenter(center);\n    },\n    clickableIcons: function (map, clickable) {\n        map.setClickableIcons(clickable);\n    },\n    heading: function (map, heading) {\n        map.setHeading(heading);\n    },\n    mapTypeId: function (map, mapTypeId) {\n        map.setMapTypeId(mapTypeId);\n    },\n    options: function (map, options) {\n        map.setOptions(options);\n    },\n    streetView: function (map, streetView) {\n        map.setStreetView(streetView);\n    },\n    tilt: function (map, tilt) {\n        map.setTilt(tilt);\n    },\n    zoom: function (map, zoom) {\n        map.setZoom(zoom);\n    },\n};\n// TODO: unfinished!\nfunction GoogleMapFunctional(_a) {\n    var children = _a.children, options = _a.options, id = _a.id, mapContainerStyle = _a.mapContainerStyle, mapContainerClassName = _a.mapContainerClassName, center = _a.center, \n    // clickableIcons,\n    // extraMapTypes,\n    // heading,\n    // mapTypeId,\n    onClick = _a.onClick, onDblClick = _a.onDblClick, onDrag = _a.onDrag, onDragEnd = _a.onDragEnd, onDragStart = _a.onDragStart, onMouseMove = _a.onMouseMove, onMouseOut = _a.onMouseOut, onMouseOver = _a.onMouseOver, onMouseDown = _a.onMouseDown, onMouseUp = _a.onMouseUp, onRightClick = _a.onRightClick, \n    // onMapTypeIdChanged,\n    // onTilesLoaded,\n    // onBoundsChanged,\n    onCenterChanged = _a.onCenterChanged, \n    // onHeadingChanged,\n    // onIdle,\n    // onProjectionChanged,\n    // onResize,\n    // onTiltChanged,\n    // onZoomChanged,\n    onLoad = _a.onLoad, onUnmount = _a.onUnmount;\n    var _b = useState(null), map = _b[0], setMap = _b[1];\n    var ref = useRef(null);\n    // const [extraMapTypesListener, setExtraMapTypesListener] = useState<google.maps.MapsEventListener | null>(null)\n    var _c = useState(null), centerChangedListener = _c[0], setCenterChangedListener = _c[1];\n    var _d = useState(null), dblclickListener = _d[0], setDblclickListener = _d[1];\n    var _e = useState(null), dragendListener = _e[0], setDragendListener = _e[1];\n    var _f = useState(null), dragstartListener = _f[0], setDragstartListener = _f[1];\n    var _g = useState(null), mousedownListener = _g[0], setMousedownListener = _g[1];\n    var _h = useState(null), mousemoveListener = _h[0], setMousemoveListener = _h[1];\n    var _j = useState(null), mouseoutListener = _j[0], setMouseoutListener = _j[1];\n    var _k = useState(null), mouseoverListener = _k[0], setMouseoverListener = _k[1];\n    var _l = useState(null), mouseupListener = _l[0], setMouseupListener = _l[1];\n    var _m = useState(null), rightclickListener = _m[0], setRightclickListener = _m[1];\n    var _o = useState(null), clickListener = _o[0], setClickListener = _o[1];\n    var _p = useState(null), dragListener = _p[0], setDragListener = _p[1];\n    // Order does matter\n    useEffect(function () {\n        if (options && map !== null) {\n            map.setOptions(options);\n        }\n    }, [map, options]);\n    useEffect(function () {\n        if (map !== null && typeof center !== 'undefined') {\n            map.setCenter(center);\n        }\n    }, [map, center]);\n    useEffect(function () {\n        if (map && onDblClick) {\n            if (dblclickListener !== null) {\n                google.maps.event.removeListener(dblclickListener);\n            }\n            setDblclickListener(google.maps.event.addListener(map, 'dblclick', onDblClick));\n        }\n    }, [onDblClick]);\n    useEffect(function () {\n        if (map && onDragEnd) {\n            if (dragendListener !== null) {\n                google.maps.event.removeListener(dragendListener);\n            }\n            setDragendListener(google.maps.event.addListener(map, 'dragend', onDragEnd));\n        }\n    }, [onDragEnd]);\n    useEffect(function () {\n        if (map && onDragStart) {\n            if (dragstartListener !== null) {\n                google.maps.event.removeListener(dragstartListener);\n            }\n            setDragstartListener(google.maps.event.addListener(map, 'dragstart', onDragStart));\n        }\n    }, [onDragStart]);\n    useEffect(function () {\n        if (map && onMouseDown) {\n            if (mousedownListener !== null) {\n                google.maps.event.removeListener(mousedownListener);\n            }\n            setMousedownListener(google.maps.event.addListener(map, 'mousedown', onMouseDown));\n        }\n    }, [onMouseDown]);\n    useEffect(function () {\n        if (map && onMouseMove) {\n            if (mousemoveListener !== null) {\n                google.maps.event.removeListener(mousemoveListener);\n            }\n            setMousemoveListener(google.maps.event.addListener(map, 'mousemove', onMouseMove));\n        }\n    }, [onMouseMove]);\n    useEffect(function () {\n        if (map && onMouseOut) {\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            setMouseoutListener(google.maps.event.addListener(map, 'mouseout', onMouseOut));\n        }\n    }, [onMouseOut]);\n    useEffect(function () {\n        if (map && onMouseOver) {\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            setMouseoverListener(google.maps.event.addListener(map, 'mouseover', onMouseOver));\n        }\n    }, [onMouseOver]);\n    useEffect(function () {\n        if (map && onMouseUp) {\n            if (mouseupListener !== null) {\n                google.maps.event.removeListener(mouseupListener);\n            }\n            setMouseupListener(google.maps.event.addListener(map, 'mouseup', onMouseUp));\n        }\n    }, [onMouseUp]);\n    useEffect(function () {\n        if (map && onRightClick) {\n            if (rightclickListener !== null) {\n                google.maps.event.removeListener(rightclickListener);\n            }\n            setRightclickListener(google.maps.event.addListener(map, 'rightclick', onRightClick));\n        }\n    }, [onRightClick]);\n    useEffect(function () {\n        if (map && onClick) {\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            setClickListener(google.maps.event.addListener(map, 'click', onClick));\n        }\n    }, [onClick]);\n    useEffect(function () {\n        if (map && onDrag) {\n            if (dragListener !== null) {\n                google.maps.event.removeListener(dragListener);\n            }\n            setDragListener(google.maps.event.addListener(map, 'drag', onDrag));\n        }\n    }, [onDrag]);\n    useEffect(function () {\n        if (map && onCenterChanged) {\n            if (centerChangedListener !== null) {\n                google.maps.event.removeListener(centerChangedListener);\n            }\n            setCenterChangedListener(google.maps.event.addListener(map, 'center_changed', onCenterChanged));\n        }\n    }, [onClick]);\n    useEffect(function () {\n        var map = ref.current === null\n            ? null\n            : new google.maps.Map(ref.current, options);\n        setMap(map);\n        if (map !== null && onLoad) {\n            onLoad(map);\n        }\n        return function () {\n            if (map !== null) {\n                if (onUnmount) {\n                    onUnmount(map);\n                }\n            }\n        };\n    }, []);\n    return (jsx(\"div\", { id: id, ref: ref, style: mapContainerStyle, className: mapContainerClassName, children: jsx(MapContext.Provider, { value: map, children: map !== null ? children : null }) }));\n}\nmemo(GoogleMapFunctional);\nvar GoogleMap = /** @class */ (function (_super) {\n    __extends(GoogleMap, _super);\n    function GoogleMap() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.state = {\n            map: null,\n        };\n        _this.registeredEvents = [];\n        _this.mapRef = null;\n        _this.getInstance = function () {\n            if (_this.mapRef === null) {\n                return null;\n            }\n            return new google.maps.Map(_this.mapRef, _this.props.options);\n        };\n        _this.panTo = function (latLng) {\n            var map = _this.getInstance();\n            if (map) {\n                map.panTo(latLng);\n            }\n        };\n        _this.setMapCallback = function () {\n            if (_this.state.map !== null) {\n                if (_this.props.onLoad) {\n                    _this.props.onLoad(_this.state.map);\n                }\n            }\n        };\n        _this.getRef = function (ref) {\n            _this.mapRef = ref;\n        };\n        return _this;\n    }\n    GoogleMap.prototype.componentDidMount = function () {\n        var map = this.getInstance();\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$i,\n            eventMap: eventMap$i,\n            prevProps: {},\n            nextProps: this.props,\n            instance: map,\n        });\n        this.setState(function setMap() {\n            return {\n                map: map,\n            };\n        }, this.setMapCallback);\n    };\n    GoogleMap.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.map !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$i,\n                eventMap: eventMap$i,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.map,\n            });\n        }\n    };\n    GoogleMap.prototype.componentWillUnmount = function () {\n        if (this.state.map !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.map);\n            }\n            unregisterEvents(this.registeredEvents);\n        }\n    };\n    GoogleMap.prototype.render = function () {\n        return (jsx(\"div\", { id: this.props.id, ref: this.getRef, style: this.props.mapContainerStyle, className: this.props.mapContainerClassName, children: jsx(MapContext.Provider, { value: this.state.map, children: this.state.map !== null ? this.props.children : null }) }));\n    };\n    return GoogleMap;\n}(PureComponent));\n\nvar isBrowser = typeof document !== 'undefined';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction injectScript(_a) {\n    var url = _a.url, id = _a.id, nonce = _a.nonce;\n    if (!isBrowser) {\n        return Promise.reject(new Error('document is undefined'));\n    }\n    return new Promise(function injectScriptCallback(resolve, reject) {\n        var existingScript = document.getElementById(id);\n        var windowWithGoogleMap = window;\n        if (existingScript) {\n            // Same script id/url: keep same script\n            var dataStateAttribute = existingScript.getAttribute('data-state');\n            if (existingScript.src === url && dataStateAttribute !== 'error') {\n                if (dataStateAttribute === 'ready') {\n                    return resolve(id);\n                }\n                else {\n                    var originalInitMap_1 = windowWithGoogleMap.initMap;\n                    var originalErrorCallback_1 = existingScript.onerror;\n                    windowWithGoogleMap.initMap = function initMap() {\n                        if (originalInitMap_1) {\n                            originalInitMap_1();\n                        }\n                        resolve(id);\n                    };\n                    existingScript.onerror = function (err) {\n                        if (originalErrorCallback_1) {\n                            originalErrorCallback_1(err);\n                        }\n                        reject(err);\n                    };\n                    return;\n                }\n            }\n            // Same script id, but either\n            // 1. requested URL is different\n            // 2. script failed to load\n            else {\n                existingScript.remove();\n            }\n        }\n        var script = document.createElement('script');\n        script.type = 'text/javascript';\n        script.src = url;\n        script.id = id;\n        script.async = true;\n        script.nonce = nonce || '';\n        script.onerror = function onerror(err) {\n            script.setAttribute('data-state', 'error');\n            reject(err);\n        };\n        windowWithGoogleMap.initMap = function onload() {\n            script.setAttribute('data-state', 'ready');\n            resolve(id);\n        };\n        document.head.appendChild(script);\n    }).catch(function (err) {\n        console.error('injectScript error: ', err);\n        throw err;\n    });\n}\n\nfunction isGoogleFontStyle(element) {\n    // 'Roboto' or 'Google Sans Text' font download\n    var href = element.href;\n    if (href && (href.indexOf('https://fonts.googleapis.com/css?family=Roboto') === 0 ||\n        href.indexOf('https://fonts.googleapis.com/css?family=Google+Sans+Text') === 0)) {\n        return true;\n    }\n    // font style elements\n    if (\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    element.tagName.toLowerCase() === 'style' &&\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        element.styleSheet &&\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        element.styleSheet.cssText &&\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        element.styleSheet.cssText.replace('\\r\\n', '').indexOf('.gm-style') === 0) {\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        element.styleSheet.cssText = '';\n        return true;\n    }\n    // font style elements for other browsers\n    if (\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    element.tagName.toLowerCase() === 'style' &&\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        element.innerHTML &&\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        element.innerHTML.replace('\\r\\n', '').indexOf('.gm-style') === 0) {\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        element.innerHTML = '';\n        return true;\n    }\n    // when google tries to add empty style\n    if (\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    element.tagName.toLowerCase() === 'style' &&\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        !element.styleSheet &&\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        !element.innerHTML) {\n        return true;\n    }\n    return false;\n}\n// Preventing the Google Maps library from downloading an extra font\nfunction preventGoogleFonts() {\n    // we override these methods only for one particular head element\n    // default methods for other elements are not affected\n    var head = document.getElementsByTagName('head')[0];\n    if (head) {\n        var trueInsertBefore_1 = head.insertBefore.bind(head);\n        // TODO: adding return before reflect solves the TS issue\n        head.insertBefore = function insertBefore(newElement, referenceElement) {\n            if (!isGoogleFontStyle(newElement)) {\n                Reflect.apply(trueInsertBefore_1, head, [newElement, referenceElement]);\n            }\n            return newElement;\n        };\n        var trueAppend_1 = head.appendChild.bind(head);\n        // TODO: adding return before reflect solves the TS issue\n        head.appendChild = function appendChild(textNode) {\n            if (!isGoogleFontStyle(textNode)) {\n                Reflect.apply(trueAppend_1, head, [textNode]);\n            }\n            return textNode;\n        };\n    }\n}\n\nfunction makeLoadScriptUrl(_a) {\n    var googleMapsApiKey = _a.googleMapsApiKey, googleMapsClientId = _a.googleMapsClientId, _b = _a.version, version = _b === void 0 ? 'weekly' : _b, language = _a.language, region = _a.region, libraries = _a.libraries, channel = _a.channel, mapIds = _a.mapIds, authReferrerPolicy = _a.authReferrerPolicy;\n    var params = [];\n    invariant$1((googleMapsApiKey && googleMapsClientId) || !(googleMapsApiKey && googleMapsClientId), 'You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time.');\n    if (googleMapsApiKey) {\n        params.push(\"key=\".concat(googleMapsApiKey));\n    }\n    else if (googleMapsClientId) {\n        params.push(\"client=\".concat(googleMapsClientId));\n    }\n    if (version) {\n        params.push(\"v=\".concat(version));\n    }\n    if (language) {\n        params.push(\"language=\".concat(language));\n    }\n    if (region) {\n        params.push(\"region=\".concat(region));\n    }\n    if (libraries && libraries.length) {\n        params.push(\"libraries=\".concat(libraries.sort().join(',')));\n    }\n    if (channel) {\n        params.push(\"channel=\".concat(channel));\n    }\n    if (mapIds && mapIds.length) {\n        params.push(\"map_ids=\".concat(mapIds.join(',')));\n    }\n    if (authReferrerPolicy) {\n        params.push(\"auth_referrer_policy=\".concat(authReferrerPolicy));\n    }\n    params.push('callback=initMap');\n    return \"https://maps.googleapis.com/maps/api/js?\".concat(params.join('&'));\n}\n\nvar cleaningUp = false;\nfunction DefaultLoadingElement() {\n    return jsx(\"div\", { children: \"Loading...\" });\n}\nvar defaultLoadScriptProps = {\n    id: 'script-loader',\n    version: 'weekly',\n};\nvar LoadScript = /** @class */ (function (_super) {\n    __extends(LoadScript, _super);\n    function LoadScript() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.check = createRef();\n        _this.state = {\n            loaded: false,\n        };\n        _this.cleanupCallback = function () {\n            // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n            // @ts-ignore\n            delete window.google.maps;\n            _this.injectScript();\n        };\n        _this.isCleaningUp = function () { return __awaiter$1(_this, void 0, void 0, function () {\n            function promiseCallback(resolve) {\n                if (!cleaningUp) {\n                    resolve();\n                }\n                else {\n                    if (isBrowser) {\n                        var timer_1 = window.setInterval(function interval() {\n                            if (!cleaningUp) {\n                                window.clearInterval(timer_1);\n                                resolve();\n                            }\n                        }, 1);\n                    }\n                }\n                return;\n            }\n            return __generator(this, function (_a) {\n                return [2 /*return*/, new Promise(promiseCallback)];\n            });\n        }); };\n        _this.cleanup = function () {\n            cleaningUp = true;\n            var script = document.getElementById(_this.props.id);\n            if (script && script.parentNode) {\n                script.parentNode.removeChild(script);\n            }\n            Array.prototype.slice\n                .call(document.getElementsByTagName('script'))\n                .filter(function filter(script) {\n                return typeof script.src === 'string' && script.src.includes('maps.googleapis');\n            })\n                .forEach(function forEach(script) {\n                if (script.parentNode) {\n                    script.parentNode.removeChild(script);\n                }\n            });\n            Array.prototype.slice\n                .call(document.getElementsByTagName('link'))\n                .filter(function filter(link) {\n                return (link.href === 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans');\n            })\n                .forEach(function forEach(link) {\n                if (link.parentNode) {\n                    link.parentNode.removeChild(link);\n                }\n            });\n            Array.prototype.slice\n                .call(document.getElementsByTagName('style'))\n                .filter(function filter(style) {\n                return (style.innerText !== undefined &&\n                    style.innerText.length > 0 &&\n                    style.innerText.includes('.gm-'));\n            })\n                .forEach(function forEach(style) {\n                if (style.parentNode) {\n                    style.parentNode.removeChild(style);\n                }\n            });\n        };\n        _this.injectScript = function () {\n            if (_this.props.preventGoogleFontsLoading) {\n                preventGoogleFonts();\n            }\n            invariant$1(!!_this.props.id, 'LoadScript requires \"id\" prop to be a string: %s', _this.props.id);\n            var injectScriptOptions = {\n                id: _this.props.id,\n                nonce: _this.props.nonce,\n                url: makeLoadScriptUrl(_this.props),\n            };\n            injectScript(injectScriptOptions)\n                .then(function () {\n                if (_this.props.onLoad) {\n                    _this.props.onLoad();\n                }\n                _this.setState(function setLoaded() {\n                    return {\n                        loaded: true,\n                    };\n                });\n                return;\n            })\n                .catch(function (err) {\n                if (_this.props.onError) {\n                    _this.props.onError(err);\n                }\n                console.error(\"\\n          There has been an Error with loading Google Maps API script, please check that you provided correct google API key (\".concat(_this\n                    .props.googleMapsApiKey || '-', \") or Client ID (\").concat(_this.props.googleMapsClientId ||\n                    '-', \") to <LoadScript />\\n          Otherwise it is a Network issue.\\n        \"));\n            });\n        };\n        return _this;\n    }\n    LoadScript.prototype.componentDidMount = function () {\n        if (isBrowser) {\n            if (window.google && window.google.maps && !cleaningUp) {\n                console.error('google api is already presented');\n                return;\n            }\n            this.isCleaningUp()\n                .then(this.injectScript)\n                .catch(function error(err) {\n                console.error('Error at injecting script after cleaning up: ', err);\n            });\n        }\n    };\n    LoadScript.prototype.componentDidUpdate = function (prevProps) {\n        if (this.props.libraries !== prevProps.libraries) {\n            console.warn('Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables');\n        }\n        if (isBrowser && prevProps.language !== this.props.language) {\n            this.cleanup();\n            // TODO: refactor to use gDSFP maybe... wait for hooks refactoring.\n            this.setState(function setLoaded() {\n                return {\n                    loaded: false,\n                };\n            }, this.cleanupCallback);\n        }\n    };\n    LoadScript.prototype.componentWillUnmount = function () {\n        var _this = this;\n        if (isBrowser) {\n            this.cleanup();\n            var timeoutCallback = function () {\n                if (!_this.check.current) {\n                    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                    // @ts-ignore\n                    delete window.google;\n                    cleaningUp = false;\n                }\n            };\n            window.setTimeout(timeoutCallback, 1);\n            if (this.props.onUnmount) {\n                this.props.onUnmount();\n            }\n        }\n    };\n    LoadScript.prototype.render = function () {\n        return (jsxs(Fragment, { children: [jsx(\"div\", { ref: this.check }), this.state.loaded\n                    ? this.props.children\n                    : this.props.loadingElement || jsx(DefaultLoadingElement, {})] }));\n    };\n    LoadScript.defaultProps = defaultLoadScriptProps;\n    return LoadScript;\n}(PureComponent));\n\n/* eslint-disable filenames/match-regex */\nvar previouslyLoadedUrl;\nfunction useLoadScript(_a) {\n    var _b = _a.id, id = _b === void 0 ? defaultLoadScriptProps.id : _b, _c = _a.version, version = _c === void 0 ? defaultLoadScriptProps.version : _c, nonce = _a.nonce, googleMapsApiKey = _a.googleMapsApiKey, googleMapsClientId = _a.googleMapsClientId, language = _a.language, region = _a.region, libraries = _a.libraries, preventGoogleFontsLoading = _a.preventGoogleFontsLoading, channel = _a.channel, mapIds = _a.mapIds, authReferrerPolicy = _a.authReferrerPolicy;\n    var isMounted = useRef(false);\n    var _d = useState(false), isLoaded = _d[0], setLoaded = _d[1];\n    var _e = useState(undefined), loadError = _e[0], setLoadError = _e[1];\n    useEffect(function trackMountedState() {\n        isMounted.current = true;\n        return function () {\n            isMounted.current = false;\n        };\n    }, []);\n    useEffect(function applyPreventGoogleFonts() {\n        if (isBrowser && preventGoogleFontsLoading) {\n            preventGoogleFonts();\n        }\n    }, [preventGoogleFontsLoading]);\n    useEffect(function validateLoadedState() {\n        if (isLoaded) {\n            invariant$1(!!window.google, 'useLoadScript was marked as loaded, but window.google is not present. Something went wrong.');\n        }\n    }, [isLoaded]);\n    var url = makeLoadScriptUrl({\n        version: version,\n        googleMapsApiKey: googleMapsApiKey,\n        googleMapsClientId: googleMapsClientId,\n        language: language,\n        region: region,\n        libraries: libraries,\n        channel: channel,\n        mapIds: mapIds,\n        authReferrerPolicy: authReferrerPolicy\n    });\n    useEffect(function loadScriptAndModifyLoadedState() {\n        if (!isBrowser) {\n            return;\n        }\n        function setLoadedIfMounted() {\n            if (isMounted.current) {\n                setLoaded(true);\n                previouslyLoadedUrl = url;\n            }\n        }\n        if (window.google && window.google.maps && previouslyLoadedUrl === url) {\n            setLoadedIfMounted();\n            return;\n        }\n        injectScript({ id: id, url: url, nonce: nonce })\n            .then(setLoadedIfMounted)\n            .catch(function handleInjectError(err) {\n            if (isMounted.current) {\n                setLoadError(err);\n            }\n            console.warn(\"\\n        There has been an Error with loading Google Maps API script, please check that you provided correct google API key (\".concat(googleMapsApiKey ||\n                '-', \") or Client ID (\").concat(googleMapsClientId || '-', \")\\n        Otherwise it is a Network issue.\\n      \"));\n            console.error(err);\n        });\n    }, [id, url, nonce]);\n    var prevLibraries = useRef();\n    useEffect(function checkPerformance() {\n        if (prevLibraries.current && libraries !== prevLibraries.current) {\n            console.warn('Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables');\n        }\n        prevLibraries.current = libraries;\n    }, [libraries]);\n    return { isLoaded: isLoaded, loadError: loadError, url: url };\n}\n\nvar defaultLoadingElement = jsx(DefaultLoadingElement, {});\nfunction LoadScriptNext(_a) {\n    var loadingElement = _a.loadingElement, onLoad = _a.onLoad, onError = _a.onError, onUnmount = _a.onUnmount, children = _a.children, hookOptions = __rest$1(_a, [\"loadingElement\", \"onLoad\", \"onError\", \"onUnmount\", \"children\"]);\n    var _b = useLoadScript(hookOptions), isLoaded = _b.isLoaded, loadError = _b.loadError;\n    useEffect(function handleOnLoad() {\n        if (isLoaded && typeof onLoad === 'function') {\n            onLoad();\n        }\n    }, [isLoaded, onLoad]);\n    useEffect(function handleOnError() {\n        if (loadError && typeof onError === 'function') {\n            onError(loadError);\n        }\n    }, [loadError, onError]);\n    useEffect(function handleOnUnmount() {\n        return function () {\n            if (onUnmount) {\n                onUnmount();\n            }\n        };\n    }, [onUnmount]);\n    return isLoaded ? children : loadingElement || defaultLoadingElement;\n}\nvar LoadScriptNext$1 = memo(LoadScriptNext);\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\n\n// do not edit .js files directly - edit src/index.jst\n\n\n\nvar fastDeepEqual$1 = function equal(a, b) {\n  if (a === b) return true;\n\n  if (a && b && typeof a == 'object' && typeof b == 'object') {\n    if (a.constructor !== b.constructor) return false;\n\n    var length, i, keys;\n    if (Array.isArray(a)) {\n      length = a.length;\n      if (length != b.length) return false;\n      for (i = length; i-- !== 0;)\n        if (!equal(a[i], b[i])) return false;\n      return true;\n    }\n\n\n\n    if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n    if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n    if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n    keys = Object.keys(a);\n    length = keys.length;\n    if (length !== Object.keys(b).length) return false;\n\n    for (i = length; i-- !== 0;)\n      if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n    for (i = length; i-- !== 0;) {\n      var key = keys[i];\n\n      if (!equal(a[key], b[key])) return false;\n    }\n\n    return true;\n  }\n\n  // true if both NaN, false otherwise\n  return a!==a && b!==b;\n};\n\n/**\n * Copyright 2019 Google LLC. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at.\n *\n *      Http://www.apache.org/licenses/LICENSE-2.0.\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst DEFAULT_ID = \"__googleMapsScriptId\";\n/**\n * The status of the [[Loader]].\n */\nvar LoaderStatus;\n(function (LoaderStatus) {\n    LoaderStatus[LoaderStatus[\"INITIALIZED\"] = 0] = \"INITIALIZED\";\n    LoaderStatus[LoaderStatus[\"LOADING\"] = 1] = \"LOADING\";\n    LoaderStatus[LoaderStatus[\"SUCCESS\"] = 2] = \"SUCCESS\";\n    LoaderStatus[LoaderStatus[\"FAILURE\"] = 3] = \"FAILURE\";\n})(LoaderStatus || (LoaderStatus = {}));\n/**\n * [[Loader]] makes it easier to add Google Maps JavaScript API to your application\n * dynamically using\n * [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).\n * It works by dynamically creating and appending a script node to the the\n * document head and wrapping the callback function so as to return a promise.\n *\n * ```\n * const loader = new Loader({\n *   apiKey: \"\",\n *   version: \"weekly\",\n *   libraries: [\"places\"]\n * });\n *\n * loader.load().then((google) => {\n *   const map = new google.maps.Map(...)\n * })\n * ```\n */\nclass Loader {\n    /**\n     * Creates an instance of Loader using [[LoaderOptions]]. No defaults are set\n     * using this library, instead the defaults are set by the Google Maps\n     * JavaScript API server.\n     *\n     * ```\n     * const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});\n     * ```\n     */\n    constructor({ apiKey, authReferrerPolicy, channel, client, id = DEFAULT_ID, language, libraries = [], mapIds, nonce, region, retries = 3, url = \"https://maps.googleapis.com/maps/api/js\", version, }) {\n        this.callbacks = [];\n        this.done = false;\n        this.loading = false;\n        this.errors = [];\n        this.apiKey = apiKey;\n        this.authReferrerPolicy = authReferrerPolicy;\n        this.channel = channel;\n        this.client = client;\n        this.id = id || DEFAULT_ID; // Do not allow empty string\n        this.language = language;\n        this.libraries = libraries;\n        this.mapIds = mapIds;\n        this.nonce = nonce;\n        this.region = region;\n        this.retries = retries;\n        this.url = url;\n        this.version = version;\n        if (Loader.instance) {\n            if (!fastDeepEqual$1(this.options, Loader.instance.options)) {\n                throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Loader.instance.options)}`);\n            }\n            return Loader.instance;\n        }\n        Loader.instance = this;\n    }\n    get options() {\n        return {\n            version: this.version,\n            apiKey: this.apiKey,\n            channel: this.channel,\n            client: this.client,\n            id: this.id,\n            libraries: this.libraries,\n            language: this.language,\n            region: this.region,\n            mapIds: this.mapIds,\n            nonce: this.nonce,\n            url: this.url,\n            authReferrerPolicy: this.authReferrerPolicy,\n        };\n    }\n    get status() {\n        if (this.errors.length) {\n            return LoaderStatus.FAILURE;\n        }\n        if (this.done) {\n            return LoaderStatus.SUCCESS;\n        }\n        if (this.loading) {\n            return LoaderStatus.LOADING;\n        }\n        return LoaderStatus.INITIALIZED;\n    }\n    get failed() {\n        return this.done && !this.loading && this.errors.length >= this.retries + 1;\n    }\n    /**\n     * CreateUrl returns the Google Maps JavaScript API script url given the [[LoaderOptions]].\n     *\n     * @ignore\n     * @deprecated\n     */\n    createUrl() {\n        let url = this.url;\n        url += `?callback=__googleMapsCallback`;\n        if (this.apiKey) {\n            url += `&key=${this.apiKey}`;\n        }\n        if (this.channel) {\n            url += `&channel=${this.channel}`;\n        }\n        if (this.client) {\n            url += `&client=${this.client}`;\n        }\n        if (this.libraries.length > 0) {\n            url += `&libraries=${this.libraries.join(\",\")}`;\n        }\n        if (this.language) {\n            url += `&language=${this.language}`;\n        }\n        if (this.region) {\n            url += `&region=${this.region}`;\n        }\n        if (this.version) {\n            url += `&v=${this.version}`;\n        }\n        if (this.mapIds) {\n            url += `&map_ids=${this.mapIds.join(\",\")}`;\n        }\n        if (this.authReferrerPolicy) {\n            url += `&auth_referrer_policy=${this.authReferrerPolicy}`;\n        }\n        return url;\n    }\n    deleteScript() {\n        const script = document.getElementById(this.id);\n        if (script) {\n            script.remove();\n        }\n    }\n    /**\n     * Load the Google Maps JavaScript API script and return a Promise.\n     * @deprecated, use importLibrary() instead.\n     */\n    load() {\n        return this.loadPromise();\n    }\n    /**\n     * Load the Google Maps JavaScript API script and return a Promise.\n     *\n     * @ignore\n     * @deprecated, use importLibrary() instead.\n     */\n    loadPromise() {\n        return new Promise((resolve, reject) => {\n            this.loadCallback((err) => {\n                if (!err) {\n                    resolve(window.google);\n                }\n                else {\n                    reject(err.error);\n                }\n            });\n        });\n    }\n    importLibrary(name) {\n        this.execute();\n        return google.maps.importLibrary(name);\n    }\n    /**\n     * Load the Google Maps JavaScript API script with a callback.\n     * @deprecated, use importLibrary() instead.\n     */\n    loadCallback(fn) {\n        this.callbacks.push(fn);\n        this.execute();\n    }\n    /**\n     * Set the script on document.\n     */\n    setScript() {\n        var _a, _b;\n        if (document.getElementById(this.id)) {\n            // TODO wrap onerror callback for cases where the script was loaded elsewhere\n            this.callback();\n            return;\n        }\n        const params = {\n            key: this.apiKey,\n            channel: this.channel,\n            client: this.client,\n            libraries: this.libraries.length && this.libraries,\n            v: this.version,\n            mapIds: this.mapIds,\n            language: this.language,\n            region: this.region,\n            authReferrerPolicy: this.authReferrerPolicy,\n        };\n        // keep the URL minimal:\n        Object.keys(params).forEach(\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        (key) => !params[key] && delete params[key]);\n        if (!((_b = (_a = window === null || window === void 0 ? void 0 : window.google) === null || _a === void 0 ? void 0 : _a.maps) === null || _b === void 0 ? void 0 : _b.importLibrary)) {\n            // tweaked copy of https://developers.google.com/maps/documentation/javascript/load-maps-js-api#dynamic-library-import\n            // which also sets the base url, the id, and the nonce\n            /* eslint-disable */\n            ((g) => {\n                // @ts-ignore\n                let h, a, k, p = \"The Google Maps JavaScript API\", c = \"google\", l = \"importLibrary\", q = \"__ib__\", m = document, b = window;\n                // @ts-ignore\n                b = b[c] || (b[c] = {});\n                // @ts-ignore\n                const d = b.maps || (b.maps = {}), r = new Set(), e = new URLSearchParams(), u = () => \n                // @ts-ignore\n                h || (h = new Promise((f, n) => __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    yield (a = m.createElement(\"script\"));\n                    a.id = this.id;\n                    e.set(\"libraries\", [...r] + \"\");\n                    // @ts-ignore\n                    for (k in g)\n                        e.set(k.replace(/[A-Z]/g, (t) => \"_\" + t[0].toLowerCase()), g[k]);\n                    e.set(\"callback\", c + \".maps.\" + q);\n                    a.src = this.url + `?` + e;\n                    d[q] = f;\n                    a.onerror = () => (h = n(Error(p + \" could not load.\")));\n                    // @ts-ignore\n                    a.nonce = this.nonce || ((_a = m.querySelector(\"script[nonce]\")) === null || _a === void 0 ? void 0 : _a.nonce) || \"\";\n                    m.head.append(a);\n                })));\n                // @ts-ignore\n                d[l] ? console.warn(p + \" only loads once. Ignoring:\", g) : (d[l] = (f, ...n) => r.add(f) && u().then(() => d[l](f, ...n)));\n            })(params);\n            /* eslint-enable */\n        }\n        // While most libraries populate the global namespace when loaded via bootstrap params,\n        // this is not the case for \"marker\" when used with the inline bootstrap loader\n        // (and maybe others in the future). So ensure there is an importLibrary for each:\n        const libraryPromises = this.libraries.map((library) => this.importLibrary(library));\n        // ensure at least one library, to kick off loading...\n        if (!libraryPromises.length) {\n            libraryPromises.push(this.importLibrary(\"core\"));\n        }\n        Promise.all(libraryPromises).then(() => this.callback(), (error) => {\n            const event = new ErrorEvent(\"error\", { error }); // for backwards compat\n            this.loadErrorCallback(event);\n        });\n    }\n    /**\n     * Reset the loader state.\n     */\n    reset() {\n        this.deleteScript();\n        this.done = false;\n        this.loading = false;\n        this.errors = [];\n        this.onerrorEvent = null;\n    }\n    resetIfRetryingFailed() {\n        if (this.failed) {\n            this.reset();\n        }\n    }\n    loadErrorCallback(e) {\n        this.errors.push(e);\n        if (this.errors.length <= this.retries) {\n            const delay = this.errors.length * Math.pow(2, this.errors.length);\n            console.error(`Failed to load Google Maps script, retrying in ${delay} ms.`);\n            setTimeout(() => {\n                this.deleteScript();\n                this.setScript();\n            }, delay);\n        }\n        else {\n            this.onerrorEvent = e;\n            this.callback();\n        }\n    }\n    callback() {\n        this.done = true;\n        this.loading = false;\n        this.callbacks.forEach((cb) => {\n            cb(this.onerrorEvent);\n        });\n        this.callbacks = [];\n    }\n    execute() {\n        this.resetIfRetryingFailed();\n        if (this.done) {\n            this.callback();\n        }\n        else {\n            // short circuit and warn if google.maps is already loaded\n            if (window.google && window.google.maps && window.google.maps.version) {\n                console.warn(\"Google Maps already loaded outside @googlemaps/js-api-loader.\" +\n                    \"This may result in undesirable behavior as options and script parameters may not match.\");\n                this.callback();\n                return;\n            }\n            if (this.loading) ;\n            else {\n                this.loading = true;\n                this.setScript();\n            }\n        }\n    }\n}\n\nvar defaultLibraries = ['maps'];\nfunction useJsApiLoader(_a) {\n    var _b = _a.id, id = _b === void 0 ? defaultLoadScriptProps.id : _b, _c = _a.version, version = _c === void 0 ? defaultLoadScriptProps.version : _c, nonce = _a.nonce, googleMapsApiKey = _a.googleMapsApiKey, \n    // googleMapsClientId,\n    language = _a.language, region = _a.region, _d = _a.libraries, libraries = _d === void 0 ? defaultLibraries : _d, preventGoogleFontsLoading = _a.preventGoogleFontsLoading, \n    // channel,\n    mapIds = _a.mapIds, authReferrerPolicy = _a.authReferrerPolicy;\n    var isMounted = useRef(false);\n    var _e = useState(false), isLoaded = _e[0], setLoaded = _e[1];\n    var _f = useState(undefined), loadError = _f[0], setLoadError = _f[1];\n    useEffect(function trackMountedState() {\n        isMounted.current = true;\n        return function () {\n            isMounted.current = false;\n        };\n    }, []);\n    var loader = useMemo(function () {\n        return new Loader({\n            id: id,\n            apiKey: googleMapsApiKey,\n            version: version,\n            libraries: libraries,\n            language: language || 'en',\n            region: region || 'US',\n            mapIds: mapIds || [],\n            nonce: nonce || '',\n            authReferrerPolicy: authReferrerPolicy || 'origin',\n        });\n    }, [id, googleMapsApiKey, version, libraries, language, region, mapIds, nonce, authReferrerPolicy]);\n    useEffect(function effect() {\n        if (isLoaded) {\n            return;\n        }\n        else {\n            loader.load().then(function () {\n                if (isMounted.current) {\n                    setLoaded(true);\n                }\n                return;\n            })\n                .catch(function (error) {\n                setLoadError(error);\n            });\n        }\n    }, []);\n    useEffect(function () {\n        if (isBrowser && preventGoogleFontsLoading) {\n            preventGoogleFonts();\n        }\n    }, [preventGoogleFontsLoading]);\n    var prevLibraries = useRef();\n    useEffect(function () {\n        if (prevLibraries.current && libraries !== prevLibraries.current) {\n            console.warn('Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables');\n        }\n        prevLibraries.current = libraries;\n    }, [libraries]);\n    return { isLoaded: isLoaded, loadError: loadError };\n}\n\nvar eventMap$h = {};\nvar updaterMap$h = {\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n};\nfunction TrafficLayerFunctional(_a) {\n    var options = _a.options, onLoad = _a.onLoad, onUnmount = _a.onUnmount;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    // Order does matter\n    useEffect(function () {\n        if (instance !== null) {\n            instance.setMap(map);\n        }\n    }, [map]);\n    useEffect(function () {\n        if (options && instance !== null) {\n            instance.setOptions(options);\n        }\n    }, [instance, options]);\n    useEffect(function () {\n        var trafficLayer = new google.maps.TrafficLayer(__assign(__assign({}, (options || {})), { map: map }));\n        setInstance(trafficLayer);\n        if (onLoad) {\n            onLoad(trafficLayer);\n        }\n        return function () {\n            if (instance !== null) {\n                if (onUnmount) {\n                    onUnmount(instance);\n                }\n                instance.setMap(null);\n            }\n        };\n    }, []);\n    return null;\n}\nvar TrafficLayerF = memo(TrafficLayerFunctional);\nvar TrafficLayer = /** @class */ (function (_super) {\n    __extends(TrafficLayer, _super);\n    function TrafficLayer() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.state = {\n            trafficLayer: null,\n        };\n        _this.setTrafficLayerCallback = function () {\n            if (_this.state.trafficLayer !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.trafficLayer);\n            }\n        };\n        _this.registeredEvents = [];\n        return _this;\n    }\n    TrafficLayer.prototype.componentDidMount = function () {\n        var trafficLayer = new google.maps.TrafficLayer(__assign(__assign({}, (this.props.options || {})), { map: this.context }));\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$h,\n            eventMap: eventMap$h,\n            prevProps: {},\n            nextProps: this.props,\n            instance: trafficLayer,\n        });\n        this.setState(function setTrafficLayer() {\n            return {\n                trafficLayer: trafficLayer,\n            };\n        }, this.setTrafficLayerCallback);\n    };\n    TrafficLayer.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.trafficLayer !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$h,\n                eventMap: eventMap$h,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.trafficLayer,\n            });\n        }\n    };\n    TrafficLayer.prototype.componentWillUnmount = function () {\n        if (this.state.trafficLayer !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.trafficLayer);\n            }\n            unregisterEvents(this.registeredEvents);\n            this.state.trafficLayer.setMap(null);\n        }\n    };\n    TrafficLayer.prototype.render = function () {\n        return null;\n    };\n    TrafficLayer.contextType = MapContext;\n    return TrafficLayer;\n}(PureComponent));\n\nfunction BicyclingLayerFunctional(_a) {\n    var onLoad = _a.onLoad, onUnmount = _a.onUnmount;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    // Order does matter\n    useEffect(function () {\n        if (instance !== null) {\n            instance.setMap(map);\n        }\n    }, [map]);\n    useEffect(function () {\n        var bicyclingLayer = new google.maps.BicyclingLayer();\n        setInstance(bicyclingLayer);\n        bicyclingLayer.setMap(map);\n        if (onLoad) {\n            onLoad(bicyclingLayer);\n        }\n        return function () {\n            if (bicyclingLayer !== null) {\n                if (onUnmount) {\n                    onUnmount(bicyclingLayer);\n                }\n                bicyclingLayer.setMap(null);\n            }\n        };\n    }, []);\n    return null;\n}\nvar BicyclingLayerF = memo(BicyclingLayerFunctional);\nvar BicyclingLayer = /** @class */ (function (_super) {\n    __extends(BicyclingLayer, _super);\n    function BicyclingLayer() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.state = {\n            bicyclingLayer: null,\n        };\n        _this.setBicyclingLayerCallback = function () {\n            if (_this.state.bicyclingLayer !== null) {\n                _this.state.bicyclingLayer.setMap(_this.context);\n                if (_this.props.onLoad) {\n                    _this.props.onLoad(_this.state.bicyclingLayer);\n                }\n            }\n        };\n        return _this;\n    }\n    BicyclingLayer.prototype.componentDidMount = function () {\n        var bicyclingLayer = new google.maps.BicyclingLayer();\n        this.setState(function () {\n            return {\n                bicyclingLayer: bicyclingLayer,\n            };\n        }, this.setBicyclingLayerCallback);\n    };\n    BicyclingLayer.prototype.componentWillUnmount = function () {\n        if (this.state.bicyclingLayer !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.bicyclingLayer);\n            }\n            this.state.bicyclingLayer.setMap(null);\n        }\n    };\n    BicyclingLayer.prototype.render = function () {\n        return null;\n    };\n    BicyclingLayer.contextType = MapContext;\n    return BicyclingLayer;\n}(PureComponent));\n\nfunction TransitLayerFunctional(_a) {\n    var onLoad = _a.onLoad, onUnmount = _a.onUnmount;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    // Order does matter\n    useEffect(function () {\n        if (instance !== null) {\n            instance.setMap(map);\n        }\n    }, [map]);\n    useEffect(function () {\n        var transitLayer = new google.maps.TransitLayer();\n        setInstance(transitLayer);\n        transitLayer.setMap(map);\n        if (onLoad) {\n            onLoad(transitLayer);\n        }\n        return function () {\n            if (instance !== null) {\n                if (onUnmount) {\n                    onUnmount(instance);\n                }\n                instance.setMap(null);\n            }\n        };\n    }, []);\n    return null;\n}\nvar TransitLayerF = memo(TransitLayerFunctional);\nvar TransitLayer = /** @class */ (function (_super) {\n    __extends(TransitLayer, _super);\n    function TransitLayer() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.state = {\n            transitLayer: null,\n        };\n        _this.setTransitLayerCallback = function () {\n            if (_this.state.transitLayer !== null) {\n                _this.state.transitLayer.setMap(_this.context);\n                if (_this.props.onLoad) {\n                    _this.props.onLoad(_this.state.transitLayer);\n                }\n            }\n        };\n        return _this;\n    }\n    TransitLayer.prototype.componentDidMount = function () {\n        var transitLayer = new google.maps.TransitLayer();\n        this.setState(function setTransitLayer() {\n            return {\n                transitLayer: transitLayer,\n            };\n        }, this.setTransitLayerCallback);\n    };\n    TransitLayer.prototype.componentWillUnmount = function () {\n        if (this.state.transitLayer !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.transitLayer);\n            }\n            this.state.transitLayer.setMap(null);\n        }\n    };\n    TransitLayer.prototype.render = function () {\n        return null;\n    };\n    TransitLayer.contextType = MapContext;\n    return TransitLayer;\n}(PureComponent));\n\nvar eventMap$g = {\n    onCircleComplete: 'circlecomplete',\n    onMarkerComplete: 'markercomplete',\n    onOverlayComplete: 'overlaycomplete',\n    onPolygonComplete: 'polygoncomplete',\n    onPolylineComplete: 'polylinecomplete',\n    onRectangleComplete: 'rectanglecomplete',\n};\nvar updaterMap$g = {\n    drawingMode: function (instance, drawingMode) {\n        instance.setDrawingMode(drawingMode);\n    },\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n};\nfunction DrawingManagerFunctional(_a) {\n    var options = _a.options, drawingMode = _a.drawingMode, onCircleComplete = _a.onCircleComplete, onMarkerComplete = _a.onMarkerComplete, onOverlayComplete = _a.onOverlayComplete, onPolygonComplete = _a.onPolygonComplete, onPolylineComplete = _a.onPolylineComplete, onRectangleComplete = _a.onRectangleComplete, onLoad = _a.onLoad, onUnmount = _a.onUnmount;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    var _c = useState(null), circlecompleteListener = _c[0], setCircleCompleteListener = _c[1];\n    var _d = useState(null), markercompleteListener = _d[0], setMarkerCompleteListener = _d[1];\n    var _e = useState(null), overlaycompleteListener = _e[0], setOverlayCompleteListener = _e[1];\n    var _f = useState(null), polygoncompleteListener = _f[0], setPolygonCompleteListener = _f[1];\n    var _g = useState(null), polylinecompleteListener = _g[0], setPolylineCompleteListener = _g[1];\n    var _h = useState(null), rectanglecompleteListener = _h[0], setRectangleCompleteListener = _h[1];\n    // Order does matter\n    useEffect(function () {\n        if (instance !== null) {\n            instance.setMap(map);\n        }\n    }, [map]);\n    useEffect(function () {\n        if (options && instance !== null) {\n            instance.setOptions(options);\n        }\n    }, [instance, options]);\n    useEffect(function () {\n        if (instance !== null) {\n            instance.setDrawingMode(drawingMode !== null && drawingMode !== void 0 ? drawingMode : null);\n        }\n    }, [instance, drawingMode]);\n    useEffect(function () {\n        if (instance && onCircleComplete) {\n            if (circlecompleteListener !== null) {\n                google.maps.event.removeListener(circlecompleteListener);\n            }\n            setCircleCompleteListener(google.maps.event.addListener(instance, 'circlecomplete', onCircleComplete));\n        }\n    }, [instance, onCircleComplete]);\n    useEffect(function () {\n        if (instance && onMarkerComplete) {\n            if (markercompleteListener !== null) {\n                google.maps.event.removeListener(markercompleteListener);\n            }\n            setMarkerCompleteListener(google.maps.event.addListener(instance, 'markercomplete', onMarkerComplete));\n        }\n    }, [instance, onMarkerComplete]);\n    useEffect(function () {\n        if (instance && onOverlayComplete) {\n            if (overlaycompleteListener !== null) {\n                google.maps.event.removeListener(overlaycompleteListener);\n            }\n            setOverlayCompleteListener(google.maps.event.addListener(instance, 'overlaycomplete', onOverlayComplete));\n        }\n    }, [instance, onOverlayComplete]);\n    useEffect(function () {\n        if (instance && onPolygonComplete) {\n            if (polygoncompleteListener !== null) {\n                google.maps.event.removeListener(polygoncompleteListener);\n            }\n            setPolygonCompleteListener(google.maps.event.addListener(instance, 'polygoncomplete', onPolygonComplete));\n        }\n    }, [instance, onPolygonComplete]);\n    useEffect(function () {\n        if (instance && onPolylineComplete) {\n            if (polylinecompleteListener !== null) {\n                google.maps.event.removeListener(polylinecompleteListener);\n            }\n            setPolylineCompleteListener(google.maps.event.addListener(instance, 'polylinecomplete', onPolylineComplete));\n        }\n    }, [instance, onPolylineComplete]);\n    useEffect(function () {\n        if (instance && onRectangleComplete) {\n            if (rectanglecompleteListener !== null) {\n                google.maps.event.removeListener(rectanglecompleteListener);\n            }\n            setRectangleCompleteListener(google.maps.event.addListener(instance, 'rectanglecomplete', onRectangleComplete));\n        }\n    }, [instance, onRectangleComplete]);\n    useEffect(function () {\n        invariant$1(!!google.maps.drawing, \"Did you include prop libraries={['drawing']} in the URL? %s\", google.maps.drawing);\n        var drawingManager = new google.maps.drawing.DrawingManager(__assign(__assign({}, (options || {})), { map: map }));\n        if (drawingMode) {\n            drawingManager.setDrawingMode(drawingMode);\n        }\n        if (onCircleComplete) {\n            setCircleCompleteListener(google.maps.event.addListener(drawingManager, 'circlecomplete', onCircleComplete));\n        }\n        if (onMarkerComplete) {\n            setMarkerCompleteListener(google.maps.event.addListener(drawingManager, 'markercomplete', onMarkerComplete));\n        }\n        if (onOverlayComplete) {\n            setOverlayCompleteListener(google.maps.event.addListener(drawingManager, 'overlaycomplete', onOverlayComplete));\n        }\n        if (onPolygonComplete) {\n            setPolygonCompleteListener(google.maps.event.addListener(drawingManager, 'polygoncomplete', onPolygonComplete));\n        }\n        if (onPolylineComplete) {\n            setPolylineCompleteListener(google.maps.event.addListener(drawingManager, 'polylinecomplete', onPolylineComplete));\n        }\n        if (onRectangleComplete) {\n            setRectangleCompleteListener(google.maps.event.addListener(drawingManager, 'rectanglecomplete', onRectangleComplete));\n        }\n        setInstance(drawingManager);\n        if (onLoad) {\n            onLoad(drawingManager);\n        }\n        return function () {\n            if (instance !== null) {\n                if (circlecompleteListener) {\n                    google.maps.event.removeListener(circlecompleteListener);\n                }\n                if (markercompleteListener) {\n                    google.maps.event.removeListener(markercompleteListener);\n                }\n                if (overlaycompleteListener) {\n                    google.maps.event.removeListener(overlaycompleteListener);\n                }\n                if (polygoncompleteListener) {\n                    google.maps.event.removeListener(polygoncompleteListener);\n                }\n                if (polylinecompleteListener) {\n                    google.maps.event.removeListener(polylinecompleteListener);\n                }\n                if (rectanglecompleteListener) {\n                    google.maps.event.removeListener(rectanglecompleteListener);\n                }\n                if (onUnmount) {\n                    onUnmount(instance);\n                }\n                instance.setMap(null);\n            }\n        };\n    }, []);\n    return null;\n}\nvar DrawingManagerF = memo(DrawingManagerFunctional);\nvar DrawingManager = /** @class */ (function (_super) {\n    __extends(DrawingManager, _super);\n    function DrawingManager(props) {\n        var _this = _super.call(this, props) || this;\n        _this.registeredEvents = [];\n        _this.state = {\n            drawingManager: null,\n        };\n        _this.setDrawingManagerCallback = function () {\n            if (_this.state.drawingManager !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.drawingManager);\n            }\n        };\n        invariant$1(!!google.maps.drawing, \"Did you include prop libraries={['drawing']} in the URL? %s\", google.maps.drawing);\n        return _this;\n    }\n    DrawingManager.prototype.componentDidMount = function () {\n        var drawingManager = new google.maps.drawing.DrawingManager(__assign(__assign({}, (this.props.options || {})), { map: this.context }));\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$g,\n            eventMap: eventMap$g,\n            prevProps: {},\n            nextProps: this.props,\n            instance: drawingManager,\n        });\n        this.setState(function setDrawingManager() {\n            return {\n                drawingManager: drawingManager,\n            };\n        }, this.setDrawingManagerCallback);\n    };\n    DrawingManager.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.drawingManager !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$g,\n                eventMap: eventMap$g,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.drawingManager,\n            });\n        }\n    };\n    DrawingManager.prototype.componentWillUnmount = function () {\n        if (this.state.drawingManager !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.drawingManager);\n            }\n            unregisterEvents(this.registeredEvents);\n            this.state.drawingManager.setMap(null);\n        }\n    };\n    DrawingManager.prototype.render = function () {\n        return null;\n    };\n    DrawingManager.contextType = MapContext;\n    return DrawingManager;\n}(PureComponent));\n\nvar eventMap$f = {\n    onAnimationChanged: 'animation_changed',\n    onClick: 'click',\n    onClickableChanged: 'clickable_changed',\n    onCursorChanged: 'cursor_changed',\n    onDblClick: 'dblclick',\n    onDrag: 'drag',\n    onDragEnd: 'dragend',\n    onDraggableChanged: 'draggable_changed',\n    onDragStart: 'dragstart',\n    onFlatChanged: 'flat_changed',\n    onIconChanged: 'icon_changed',\n    onMouseDown: 'mousedown',\n    onMouseOut: 'mouseout',\n    onMouseOver: 'mouseover',\n    onMouseUp: 'mouseup',\n    onPositionChanged: 'position_changed',\n    onRightClick: 'rightclick',\n    onShapeChanged: 'shape_changed',\n    onTitleChanged: 'title_changed',\n    onVisibleChanged: 'visible_changed',\n    onZindexChanged: 'zindex_changed',\n};\nvar updaterMap$f = {\n    animation: function (instance, animation) {\n        instance.setAnimation(animation);\n    },\n    clickable: function (instance, clickable) {\n        instance.setClickable(clickable);\n    },\n    cursor: function (instance, cursor) {\n        instance.setCursor(cursor);\n    },\n    draggable: function (instance, draggable) {\n        instance.setDraggable(draggable);\n    },\n    icon: function (instance, icon) {\n        instance.setIcon(icon);\n    },\n    label: function (instance, label) {\n        instance.setLabel(label);\n    },\n    map: function (instance, map) {\n        instance.setMap(map);\n    },\n    opacity: function (instance, opacity) {\n        instance.setOpacity(opacity);\n    },\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n    position: function (instance, position) {\n        instance.setPosition(position);\n    },\n    shape: function (instance, shape) {\n        instance.setShape(shape);\n    },\n    title: function (instance, title) {\n        instance.setTitle(title);\n    },\n    visible: function (instance, visible) {\n        instance.setVisible(visible);\n    },\n    zIndex: function (instance, zIndex) {\n        instance.setZIndex(zIndex);\n    },\n};\nvar defaultOptions$5 = {};\nfunction MarkerFunctional(_a) {\n    var position = _a.position, options = _a.options, clusterer = _a.clusterer, noClustererRedraw = _a.noClustererRedraw, children = _a.children, draggable = _a.draggable, visible = _a.visible, animation = _a.animation, clickable = _a.clickable, cursor = _a.cursor, icon = _a.icon, label = _a.label, opacity = _a.opacity, shape = _a.shape, title = _a.title, zIndex = _a.zIndex, onClick = _a.onClick, onDblClick = _a.onDblClick, onDrag = _a.onDrag, onDragEnd = _a.onDragEnd, onDragStart = _a.onDragStart, onMouseOut = _a.onMouseOut, onMouseOver = _a.onMouseOver, onMouseUp = _a.onMouseUp, onMouseDown = _a.onMouseDown, onRightClick = _a.onRightClick, onClickableChanged = _a.onClickableChanged, onCursorChanged = _a.onCursorChanged, onAnimationChanged = _a.onAnimationChanged, onDraggableChanged = _a.onDraggableChanged, onFlatChanged = _a.onFlatChanged, onIconChanged = _a.onIconChanged, onPositionChanged = _a.onPositionChanged, onShapeChanged = _a.onShapeChanged, onTitleChanged = _a.onTitleChanged, onVisibleChanged = _a.onVisibleChanged, onZindexChanged = _a.onZindexChanged, onLoad = _a.onLoad, onUnmount = _a.onUnmount;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    var _c = useState(null), dblclickListener = _c[0], setDblclickListener = _c[1];\n    var _d = useState(null), dragendListener = _d[0], setDragendListener = _d[1];\n    var _e = useState(null), dragstartListener = _e[0], setDragstartListener = _e[1];\n    var _f = useState(null), mousedownListener = _f[0], setMousedownListener = _f[1];\n    var _g = useState(null), mouseoutListener = _g[0], setMouseoutListener = _g[1];\n    var _h = useState(null), mouseoverListener = _h[0], setMouseoverListener = _h[1];\n    var _j = useState(null), mouseupListener = _j[0], setMouseupListener = _j[1];\n    var _k = useState(null), rightclickListener = _k[0], setRightclickListener = _k[1];\n    var _l = useState(null), clickListener = _l[0], setClickListener = _l[1];\n    var _m = useState(null), dragListener = _m[0], setDragListener = _m[1];\n    var _o = useState(null), clickableChangedListener = _o[0], setClickableChangedListener = _o[1];\n    var _p = useState(null), cursorChangedListener = _p[0], setCursorChangedListener = _p[1];\n    var _q = useState(null), animationChangedListener = _q[0], setAnimationChangedListener = _q[1];\n    var _r = useState(null), draggableChangedListener = _r[0], setDraggableChangedListener = _r[1];\n    var _s = useState(null), flatChangedListener = _s[0], setFlatChangedListener = _s[1];\n    var _t = useState(null), iconChangedListener = _t[0], setIconChangedListener = _t[1];\n    var _u = useState(null), positionChangedListener = _u[0], setPositionChangedListener = _u[1];\n    var _v = useState(null), shapeChangedListener = _v[0], setShapeChangedListener = _v[1];\n    var _w = useState(null), titleChangedListener = _w[0], setTitleChangedListener = _w[1];\n    var _x = useState(null), visibleChangedListener = _x[0], setVisibleChangedListener = _x[1];\n    var _y = useState(null), zIndexChangedListener = _y[0], setZindexChangedListener = _y[1];\n    // Order does matter\n    useEffect(function () {\n        if (instance !== null) {\n            instance.setMap(map);\n        }\n    }, [map]);\n    useEffect(function () {\n        if (typeof options !== 'undefined' && instance !== null) {\n            instance.setOptions(options);\n        }\n    }, [instance, options]);\n    useEffect(function () {\n        if (typeof draggable !== 'undefined' && instance !== null) {\n            instance.setDraggable(draggable);\n        }\n    }, [instance, draggable]);\n    useEffect(function () {\n        if (position && instance !== null) {\n            instance.setPosition(position);\n        }\n    }, [instance, position]);\n    useEffect(function () {\n        if (typeof visible !== 'undefined' && instance !== null) {\n            instance.setVisible(visible);\n        }\n    }, [instance, visible]);\n    useEffect(function () {\n        instance === null || instance === void 0 ? void 0 : instance.setAnimation(animation);\n    }, [instance, animation]);\n    useEffect(function () {\n        if (instance && clickable !== undefined) {\n            instance.setClickable(clickable);\n        }\n    }, [instance, clickable]);\n    useEffect(function () {\n        if (instance && cursor !== undefined) {\n            instance.setCursor(cursor);\n        }\n    }, [instance, cursor]);\n    useEffect(function () {\n        if (instance && icon !== undefined) {\n            instance.setIcon(icon);\n        }\n    }, [instance, icon]);\n    useEffect(function () {\n        if (instance && label !== undefined) {\n            instance.setLabel(label);\n        }\n    }, [instance, label]);\n    useEffect(function () {\n        if (instance && opacity !== undefined) {\n            instance.setOpacity(opacity);\n        }\n    }, [instance, opacity]);\n    useEffect(function () {\n        if (instance && shape !== undefined) {\n            instance.setShape(shape);\n        }\n    }, [instance, shape]);\n    useEffect(function () {\n        if (instance && title !== undefined) {\n            instance.setTitle(title);\n        }\n    }, [instance, title]);\n    useEffect(function () {\n        if (instance && zIndex !== undefined) {\n            instance.setZIndex(zIndex);\n        }\n    }, [instance, zIndex]);\n    useEffect(function () {\n        if (instance && onDblClick) {\n            if (dblclickListener !== null) {\n                google.maps.event.removeListener(dblclickListener);\n            }\n            setDblclickListener(google.maps.event.addListener(instance, 'dblclick', onDblClick));\n        }\n    }, [onDblClick]);\n    useEffect(function () {\n        if (instance && onDragEnd) {\n            if (dragendListener !== null) {\n                google.maps.event.removeListener(dragendListener);\n            }\n            setDragendListener(google.maps.event.addListener(instance, 'dragend', onDragEnd));\n        }\n    }, [onDragEnd]);\n    useEffect(function () {\n        if (instance && onDragStart) {\n            if (dragstartListener !== null) {\n                google.maps.event.removeListener(dragstartListener);\n            }\n            setDragstartListener(google.maps.event.addListener(instance, 'dragstart', onDragStart));\n        }\n    }, [onDragStart]);\n    useEffect(function () {\n        if (instance && onMouseDown) {\n            if (mousedownListener !== null) {\n                google.maps.event.removeListener(mousedownListener);\n            }\n            setMousedownListener(google.maps.event.addListener(instance, 'mousedown', onMouseDown));\n        }\n    }, [onMouseDown]);\n    useEffect(function () {\n        if (instance && onMouseOut) {\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            setMouseoutListener(google.maps.event.addListener(instance, 'mouseout', onMouseOut));\n        }\n    }, [onMouseOut]);\n    useEffect(function () {\n        if (instance && onMouseOver) {\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            setMouseoverListener(google.maps.event.addListener(instance, 'mouseover', onMouseOver));\n        }\n    }, [onMouseOver]);\n    useEffect(function () {\n        if (instance && onMouseUp) {\n            if (mouseupListener !== null) {\n                google.maps.event.removeListener(mouseupListener);\n            }\n            setMouseupListener(google.maps.event.addListener(instance, 'mouseup', onMouseUp));\n        }\n    }, [onMouseUp]);\n    useEffect(function () {\n        if (instance && onRightClick) {\n            if (rightclickListener !== null) {\n                google.maps.event.removeListener(rightclickListener);\n            }\n            setRightclickListener(google.maps.event.addListener(instance, 'rightclick', onRightClick));\n        }\n    }, [onRightClick]);\n    useEffect(function () {\n        if (instance && onClick) {\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            setClickListener(google.maps.event.addListener(instance, 'click', onClick));\n        }\n    }, [onClick]);\n    useEffect(function () {\n        if (instance && onDrag) {\n            if (dragListener !== null) {\n                google.maps.event.removeListener(dragListener);\n            }\n            setDragListener(google.maps.event.addListener(instance, 'drag', onDrag));\n        }\n    }, [onDrag]);\n    useEffect(function () {\n        if (instance && onClickableChanged) {\n            if (clickableChangedListener !== null) {\n                google.maps.event.removeListener(clickableChangedListener);\n            }\n            setClickableChangedListener(google.maps.event.addListener(instance, 'clickable_changed', onClickableChanged));\n        }\n    }, [onClickableChanged]);\n    useEffect(function () {\n        if (instance && onCursorChanged) {\n            if (cursorChangedListener !== null) {\n                google.maps.event.removeListener(cursorChangedListener);\n            }\n            setCursorChangedListener(google.maps.event.addListener(instance, 'cursor_changed', onCursorChanged));\n        }\n    }, [onCursorChanged]);\n    useEffect(function () {\n        if (instance && onAnimationChanged) {\n            if (animationChangedListener !== null) {\n                google.maps.event.removeListener(animationChangedListener);\n            }\n            setAnimationChangedListener(google.maps.event.addListener(instance, 'animation_changed', onAnimationChanged));\n        }\n    }, [onAnimationChanged]);\n    useEffect(function () {\n        if (instance && onDraggableChanged) {\n            if (draggableChangedListener !== null) {\n                google.maps.event.removeListener(draggableChangedListener);\n            }\n            setDraggableChangedListener(google.maps.event.addListener(instance, 'draggable_changed', onDraggableChanged));\n        }\n    }, [onDraggableChanged]);\n    useEffect(function () {\n        if (instance && onFlatChanged) {\n            if (flatChangedListener !== null) {\n                google.maps.event.removeListener(flatChangedListener);\n            }\n            setFlatChangedListener(google.maps.event.addListener(instance, 'flat_changed', onFlatChanged));\n        }\n    }, [onFlatChanged]);\n    useEffect(function () {\n        if (instance && onIconChanged) {\n            if (iconChangedListener !== null) {\n                google.maps.event.removeListener(iconChangedListener);\n            }\n            setIconChangedListener(google.maps.event.addListener(instance, 'icon_changed', onIconChanged));\n        }\n    }, [onIconChanged]);\n    useEffect(function () {\n        if (instance && onPositionChanged) {\n            if (positionChangedListener !== null) {\n                google.maps.event.removeListener(positionChangedListener);\n            }\n            setPositionChangedListener(google.maps.event.addListener(instance, 'position_changed', onPositionChanged));\n        }\n    }, [onPositionChanged]);\n    useEffect(function () {\n        if (instance && onShapeChanged) {\n            if (shapeChangedListener !== null) {\n                google.maps.event.removeListener(shapeChangedListener);\n            }\n            setShapeChangedListener(google.maps.event.addListener(instance, 'shape_changed', onShapeChanged));\n        }\n    }, [onShapeChanged]);\n    useEffect(function () {\n        if (instance && onTitleChanged) {\n            if (titleChangedListener !== null) {\n                google.maps.event.removeListener(titleChangedListener);\n            }\n            setTitleChangedListener(google.maps.event.addListener(instance, 'title_changed', onTitleChanged));\n        }\n    }, [onTitleChanged]);\n    useEffect(function () {\n        if (instance && onVisibleChanged) {\n            if (visibleChangedListener !== null) {\n                google.maps.event.removeListener(visibleChangedListener);\n            }\n            setVisibleChangedListener(google.maps.event.addListener(instance, 'visible_changed', onVisibleChanged));\n        }\n    }, [onVisibleChanged]);\n    useEffect(function () {\n        if (instance && onZindexChanged) {\n            if (zIndexChangedListener !== null) {\n                google.maps.event.removeListener(zIndexChangedListener);\n            }\n            setZindexChangedListener(google.maps.event.addListener(instance, 'zindex_changed', onZindexChanged));\n        }\n    }, [onZindexChanged]);\n    useEffect(function () {\n        var markerOptions = __assign(__assign(__assign({}, (options || defaultOptions$5)), (clusterer ? defaultOptions$5 : { map: map })), { position: position });\n        var marker = new google.maps.Marker(markerOptions);\n        if (clusterer) {\n            clusterer.addMarker(marker, !!noClustererRedraw);\n        }\n        else {\n            marker.setMap(map);\n        }\n        if (position) {\n            marker.setPosition(position);\n        }\n        if (typeof visible !== 'undefined') {\n            marker.setVisible(visible);\n        }\n        if (typeof draggable !== 'undefined') {\n            marker.setDraggable(draggable);\n        }\n        if (typeof clickable !== 'undefined') {\n            marker.setClickable(clickable);\n        }\n        if (typeof cursor === 'string') {\n            marker.setCursor(cursor);\n        }\n        if (icon) {\n            marker.setIcon(icon);\n        }\n        if (typeof label !== 'undefined') {\n            marker.setLabel(label);\n        }\n        if (typeof opacity !== 'undefined') {\n            marker.setOpacity(opacity);\n        }\n        if (shape) {\n            marker.setShape(shape);\n        }\n        if (typeof title === 'string') {\n            marker.setTitle(title);\n        }\n        if (typeof zIndex === 'number') {\n            marker.setZIndex(zIndex);\n        }\n        if (onDblClick) {\n            setDblclickListener(google.maps.event.addListener(marker, 'dblclick', onDblClick));\n        }\n        if (onDragEnd) {\n            setDragendListener(google.maps.event.addListener(marker, 'dragend', onDragEnd));\n        }\n        if (onDragStart) {\n            setDragstartListener(google.maps.event.addListener(marker, 'dragstart', onDragStart));\n        }\n        if (onMouseDown) {\n            setMousedownListener(google.maps.event.addListener(marker, 'mousedown', onMouseDown));\n        }\n        if (onMouseOut) {\n            setMouseoutListener(google.maps.event.addListener(marker, 'mouseout', onMouseOut));\n        }\n        if (onMouseOver) {\n            setMouseoverListener(google.maps.event.addListener(marker, 'mouseover', onMouseOver));\n        }\n        if (onMouseUp) {\n            setMouseupListener(google.maps.event.addListener(marker, 'mouseup', onMouseUp));\n        }\n        if (onRightClick) {\n            setRightclickListener(google.maps.event.addListener(marker, 'rightclick', onRightClick));\n        }\n        if (onClick) {\n            setClickListener(google.maps.event.addListener(marker, 'click', onClick));\n        }\n        if (onDrag) {\n            setDragListener(google.maps.event.addListener(marker, 'drag', onDrag));\n        }\n        if (onClickableChanged) {\n            setClickableChangedListener(google.maps.event.addListener(marker, 'clickable_changed', onClickableChanged));\n        }\n        if (onCursorChanged) {\n            setCursorChangedListener(google.maps.event.addListener(marker, 'cursor_changed', onCursorChanged));\n        }\n        if (onAnimationChanged) {\n            setAnimationChangedListener(google.maps.event.addListener(marker, 'animation_changed', onAnimationChanged));\n        }\n        if (onDraggableChanged) {\n            setDraggableChangedListener(google.maps.event.addListener(marker, 'draggable_changed', onDraggableChanged));\n        }\n        if (onFlatChanged) {\n            setFlatChangedListener(google.maps.event.addListener(marker, 'flat_changed', onFlatChanged));\n        }\n        if (onIconChanged) {\n            setIconChangedListener(google.maps.event.addListener(marker, 'icon_changed', onIconChanged));\n        }\n        if (onPositionChanged) {\n            setPositionChangedListener(google.maps.event.addListener(marker, 'position_changed', onPositionChanged));\n        }\n        if (onShapeChanged) {\n            setShapeChangedListener(google.maps.event.addListener(marker, 'shape_changed', onShapeChanged));\n        }\n        if (onTitleChanged) {\n            setTitleChangedListener(google.maps.event.addListener(marker, 'title_changed', onTitleChanged));\n        }\n        if (onVisibleChanged) {\n            setVisibleChangedListener(google.maps.event.addListener(marker, 'visible_changed', onVisibleChanged));\n        }\n        if (onZindexChanged) {\n            setZindexChangedListener(google.maps.event.addListener(marker, 'zindex_changed', onZindexChanged));\n        }\n        setInstance(marker);\n        if (onLoad) {\n            onLoad(marker);\n        }\n        return function () {\n            if (dblclickListener !== null) {\n                google.maps.event.removeListener(dblclickListener);\n            }\n            if (dragendListener !== null) {\n                google.maps.event.removeListener(dragendListener);\n            }\n            if (dragstartListener !== null) {\n                google.maps.event.removeListener(dragstartListener);\n            }\n            if (mousedownListener !== null) {\n                google.maps.event.removeListener(mousedownListener);\n            }\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            if (mouseupListener !== null) {\n                google.maps.event.removeListener(mouseupListener);\n            }\n            if (rightclickListener !== null) {\n                google.maps.event.removeListener(rightclickListener);\n            }\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            if (clickableChangedListener !== null) {\n                google.maps.event.removeListener(clickableChangedListener);\n            }\n            if (cursorChangedListener !== null) {\n                google.maps.event.removeListener(cursorChangedListener);\n            }\n            if (animationChangedListener !== null) {\n                google.maps.event.removeListener(animationChangedListener);\n            }\n            if (draggableChangedListener !== null) {\n                google.maps.event.removeListener(draggableChangedListener);\n            }\n            if (flatChangedListener !== null) {\n                google.maps.event.removeListener(flatChangedListener);\n            }\n            if (iconChangedListener !== null) {\n                google.maps.event.removeListener(iconChangedListener);\n            }\n            if (positionChangedListener !== null) {\n                google.maps.event.removeListener(positionChangedListener);\n            }\n            if (titleChangedListener !== null) {\n                google.maps.event.removeListener(titleChangedListener);\n            }\n            if (visibleChangedListener !== null) {\n                google.maps.event.removeListener(visibleChangedListener);\n            }\n            if (zIndexChangedListener !== null) {\n                google.maps.event.removeListener(zIndexChangedListener);\n            }\n            if (onUnmount) {\n                onUnmount(marker);\n            }\n            if (clusterer) {\n                clusterer.removeMarker(marker, !!noClustererRedraw);\n            }\n            else if (marker) {\n                marker.setMap(null);\n            }\n        };\n    }, []);\n    var chx = useMemo(function () {\n        return children\n            ? Children.map(children, function (child) {\n                if (!isValidElement(child)) {\n                    return child;\n                }\n                var elementChild = child;\n                return cloneElement(elementChild, { anchor: instance });\n            })\n            : null;\n    }, [children, instance]);\n    return jsx(Fragment, { children: chx }) || null;\n}\nvar MarkerF = memo(MarkerFunctional);\nvar Marker = /** @class */ (function (_super) {\n    __extends(Marker, _super);\n    function Marker() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        return _this;\n    }\n    Marker.prototype.componentDidMount = function () {\n        var markerOptions = __assign(__assign(__assign({}, (this.props.options || defaultOptions$5)), (this.props.clusterer ? defaultOptions$5 : { map: this.context })), { position: this.props.position });\n        // Unfortunately we can't just do this in the contstructor, because the\n        // `MapContext` might not be filled in yet.\n        this.marker = new google.maps.Marker(markerOptions);\n        if (this.props.clusterer) {\n            this.props.clusterer.addMarker(this.marker, !!this.props.noClustererRedraw);\n        }\n        else {\n            this.marker.setMap(this.context);\n        }\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$f,\n            eventMap: eventMap$f,\n            prevProps: {},\n            nextProps: this.props,\n            instance: this.marker,\n        });\n        if (this.props.onLoad) {\n            this.props.onLoad(this.marker);\n        }\n    };\n    Marker.prototype.componentDidUpdate = function (prevProps) {\n        if (this.marker) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$f,\n                eventMap: eventMap$f,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.marker,\n            });\n        }\n    };\n    Marker.prototype.componentWillUnmount = function () {\n        if (this.marker) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.marker);\n            }\n            unregisterEvents(this.registeredEvents);\n            if (this.props.clusterer) {\n                this.props.clusterer.removeMarker(this.marker, !!this.props.noClustererRedraw);\n            }\n            else {\n                this.marker && this.marker.setMap(null);\n            }\n        }\n    };\n    Marker.prototype.render = function () {\n        var _this = this;\n        var children = null;\n        if (this.props.children) {\n            children = Children.map(this.props.children, function (child) {\n                if (!isValidElement(child)) {\n                    return child;\n                }\n                var elementChild = child;\n                return cloneElement(elementChild, { anchor: _this.marker });\n            });\n        }\n        return children || null;\n    };\n    Marker.contextType = MapContext;\n    return Marker;\n}(PureComponent));\n\nvar ClusterIcon = /** @class */ (function () {\n    function ClusterIcon(cluster, styles) {\n        cluster.getClusterer().extend(ClusterIcon, google.maps.OverlayView);\n        this.cluster = cluster;\n        this.clusterClassName = this.cluster.getClusterer().getClusterClass();\n        this.className = this.clusterClassName;\n        this.styles = styles;\n        this.center = undefined;\n        this.div = null;\n        this.sums = null;\n        this.visible = false;\n        this.boundsChangedListener = null;\n        this.url = '';\n        this.height = 0;\n        this.width = 0;\n        this.anchorText = [0, 0];\n        this.anchorIcon = [0, 0];\n        this.textColor = 'black';\n        this.textSize = 11;\n        this.textDecoration = 'none';\n        this.fontWeight = 'bold';\n        this.fontStyle = 'normal';\n        this.fontFamily = 'Arial,sans-serif';\n        this.backgroundPosition = '0 0';\n        this.cMouseDownInCluster = null;\n        this.cDraggingMapByCluster = null;\n        this.timeOut = null;\n        this.setMap(cluster.getMap()); // Note: this causes onAdd to be called\n        this.onBoundsChanged = this.onBoundsChanged.bind(this);\n        this.onMouseDown = this.onMouseDown.bind(this);\n        this.onClick = this.onClick.bind(this);\n        this.onMouseOver = this.onMouseOver.bind(this);\n        this.onMouseOut = this.onMouseOut.bind(this);\n        this.onAdd = this.onAdd.bind(this);\n        this.onRemove = this.onRemove.bind(this);\n        this.draw = this.draw.bind(this);\n        this.hide = this.hide.bind(this);\n        this.show = this.show.bind(this);\n        this.useStyle = this.useStyle.bind(this);\n        this.setCenter = this.setCenter.bind(this);\n        this.getPosFromLatLng = this.getPosFromLatLng.bind(this);\n    }\n    ClusterIcon.prototype.onBoundsChanged = function () {\n        this.cDraggingMapByCluster = this.cMouseDownInCluster;\n    };\n    ClusterIcon.prototype.onMouseDown = function () {\n        this.cMouseDownInCluster = true;\n        this.cDraggingMapByCluster = false;\n    };\n    ClusterIcon.prototype.onClick = function (event) {\n        this.cMouseDownInCluster = false;\n        if (!this.cDraggingMapByCluster) {\n            var markerClusterer_1 = this.cluster.getClusterer();\n            /**\n             * This event is fired when a cluster marker is clicked.\n             * @name MarkerClusterer#click\n             * @param {Cluster} c The cluster that was clicked.\n             * @event\n             */\n            google.maps.event.trigger(markerClusterer_1, 'click', this.cluster);\n            google.maps.event.trigger(markerClusterer_1, 'clusterclick', this.cluster); // deprecated name\n            // The default click handler follows. Disable it by setting\n            // the zoomOnClick property to false.\n            if (markerClusterer_1.getZoomOnClick()) {\n                // Zoom into the cluster.\n                var maxZoom_1 = markerClusterer_1.getMaxZoom();\n                var bounds_1 = this.cluster.getBounds();\n                var map = markerClusterer_1.getMap();\n                if (map !== null && 'fitBounds' in map) {\n                    map.fitBounds(bounds_1);\n                }\n                // There is a fix for Issue 170 here:\n                this.timeOut = window.setTimeout(function () {\n                    var map = markerClusterer_1.getMap();\n                    if (map !== null) {\n                        if ('fitBounds' in map) {\n                            map.fitBounds(bounds_1);\n                        }\n                        var zoom = map.getZoom() || 0;\n                        // Don't zoom beyond the max zoom level\n                        if (maxZoom_1 !== null &&\n                            zoom > maxZoom_1) {\n                            map.setZoom(maxZoom_1 + 1);\n                        }\n                    }\n                }, 100);\n            }\n            // Prevent event propagation to the map:\n            event.cancelBubble = true;\n            if (event.stopPropagation) {\n                event.stopPropagation();\n            }\n        }\n    };\n    ClusterIcon.prototype.onMouseOver = function () {\n        /**\n         * This event is fired when the mouse moves over a cluster marker.\n         * @name MarkerClusterer#mouseover\n         * @param {Cluster} c The cluster that the mouse moved over.\n         * @event\n         */\n        google.maps.event.trigger(this.cluster.getClusterer(), 'mouseover', this.cluster);\n    };\n    ClusterIcon.prototype.onMouseOut = function () {\n        /**\n         * This event is fired when the mouse moves out of a cluster marker.\n         * @name MarkerClusterer#mouseout\n         * @param {Cluster} c The cluster that the mouse moved out of.\n         * @event\n         */\n        google.maps.event.trigger(this.cluster.getClusterer(), 'mouseout', this.cluster);\n    };\n    ClusterIcon.prototype.onAdd = function () {\n        var _a;\n        this.div = document.createElement('div');\n        this.div.className = this.className;\n        if (this.visible) {\n            this.show();\n        }\n        (_a = this.getPanes()) === null || _a === void 0 ? void 0 : _a.overlayMouseTarget.appendChild(this.div);\n        var map = this.getMap();\n        if (map !== null) {\n            // Fix for Issue 157\n            this.boundsChangedListener = google.maps.event.addListener(map, 'bounds_changed', this.onBoundsChanged);\n            this.div.addEventListener('mousedown', this.onMouseDown);\n            this.div.addEventListener('click', this.onClick);\n            this.div.addEventListener('mouseover', this.onMouseOver);\n            this.div.addEventListener('mouseout', this.onMouseOut);\n        }\n    };\n    ClusterIcon.prototype.onRemove = function () {\n        if (this.div && this.div.parentNode) {\n            this.hide();\n            if (this.boundsChangedListener !== null) {\n                google.maps.event.removeListener(this.boundsChangedListener);\n            }\n            this.div.removeEventListener('mousedown', this.onMouseDown);\n            this.div.removeEventListener('click', this.onClick);\n            this.div.removeEventListener('mouseover', this.onMouseOver);\n            this.div.removeEventListener('mouseout', this.onMouseOut);\n            this.div.parentNode.removeChild(this.div);\n            if (this.timeOut !== null) {\n                window.clearTimeout(this.timeOut);\n                this.timeOut = null;\n            }\n            this.div = null;\n        }\n    };\n    ClusterIcon.prototype.draw = function () {\n        if (this.visible && this.div !== null && this.center) {\n            var pos = this.getPosFromLatLng(this.center);\n            this.div.style.top = pos !== null ? \"\".concat(pos.y, \"px\") : '0';\n            this.div.style.left = pos !== null ? \"\".concat(pos.x, \"px\") : '0';\n        }\n    };\n    ClusterIcon.prototype.hide = function () {\n        if (this.div) {\n            this.div.style.display = 'none';\n        }\n        this.visible = false;\n    };\n    ClusterIcon.prototype.show = function () {\n        var _a, _b, _c, _d, _e, _f;\n        if (this.div && this.center) {\n            var divTitle = this.sums === null ||\n                typeof this.sums.title === 'undefined' ||\n                this.sums.title === '' ? this.cluster.getClusterer().getTitle() : this.sums.title;\n            // NOTE: values must be specified in px units\n            var bp = this.backgroundPosition.split(' ');\n            var spriteH = parseInt(((_a = bp[0]) === null || _a === void 0 ? void 0 : _a.replace(/^\\s+|\\s+$/g, '')) || '0', 10);\n            var spriteV = parseInt(((_b = bp[1]) === null || _b === void 0 ? void 0 : _b.replace(/^\\s+|\\s+$/g, '')) || '0', 10);\n            var pos = this.getPosFromLatLng(this.center);\n            this.div.className = this.className;\n            this.div.setAttribute('style', \"cursor: pointer; position: absolute; top: \".concat(pos !== null ? \"\".concat(pos.y, \"px\") : '0', \"; left: \").concat(pos !== null ? \"\".concat(pos.x, \"px\") : '0', \"; width: \").concat(this.width, \"px; height: \").concat(this.height, \"px; \"));\n            var img = document.createElement('img');\n            img.alt = divTitle;\n            img.src = this.url;\n            img.width = this.width;\n            img.height = this.height;\n            img.setAttribute('style', \"position: absolute; top: \".concat(spriteV, \"px; left: \").concat(spriteH, \"px\"));\n            if (!this.cluster.getClusterer().enableRetinaIcons) {\n                img.style.clip = \"rect(-\".concat(spriteV, \"px, -\").concat(spriteH + this.width, \"px, -\").concat(spriteV + this.height, \", -\").concat(spriteH, \")\");\n            }\n            var textElm = document.createElement('div');\n            textElm.setAttribute('style', \"position: absolute; top: \".concat(this.anchorText[0], \"px; left: \").concat(this.anchorText[1], \"px; color: \").concat(this.textColor, \"; font-size: \").concat(this.textSize, \"px; font-family: \").concat(this.fontFamily, \"; font-weight: \").concat(this.fontWeight, \"; fontStyle: \").concat(this.fontStyle, \"; text-decoration: \").concat(this.textDecoration, \"; text-align: center; width: \").concat(this.width, \"px; line-height: \").concat(this.height, \"px\"));\n            if ((_c = this.sums) === null || _c === void 0 ? void 0 : _c.text)\n                textElm.innerText = \"\".concat((_d = this.sums) === null || _d === void 0 ? void 0 : _d.text);\n            if ((_e = this.sums) === null || _e === void 0 ? void 0 : _e.html)\n                textElm.innerHTML = \"\".concat((_f = this.sums) === null || _f === void 0 ? void 0 : _f.html);\n            this.div.innerHTML = '';\n            this.div.appendChild(img);\n            this.div.appendChild(textElm);\n            this.div.title = divTitle;\n            this.div.style.display = '';\n        }\n        this.visible = true;\n    };\n    ClusterIcon.prototype.useStyle = function (sums) {\n        this.sums = sums;\n        var styles = this.cluster.getClusterer().getStyles();\n        var style = styles[Math.min(styles.length - 1, Math.max(0, sums.index - 1))];\n        if (style) {\n            this.url = style.url;\n            this.height = style.height;\n            this.width = style.width;\n            if (style.className) {\n                this.className = \"\".concat(this.clusterClassName, \" \").concat(style.className);\n            }\n            this.anchorText = style.anchorText || [0, 0];\n            this.anchorIcon = style.anchorIcon || [this.height / 2, this.width / 2];\n            this.textColor = style.textColor || 'black';\n            this.textSize = style.textSize || 11;\n            this.textDecoration = style.textDecoration || 'none';\n            this.fontWeight = style.fontWeight || 'bold';\n            this.fontStyle = style.fontStyle || 'normal';\n            this.fontFamily = style.fontFamily || 'Arial,sans-serif';\n            this.backgroundPosition = style.backgroundPosition || '0 0';\n        }\n    };\n    ClusterIcon.prototype.setCenter = function (center) {\n        this.center = center;\n    };\n    ClusterIcon.prototype.getPosFromLatLng = function (latlng) {\n        var pos = this.getProjection().fromLatLngToDivPixel(latlng);\n        if (pos !== null) {\n            pos.x -= this.anchorIcon[1];\n            pos.y -= this.anchorIcon[0];\n        }\n        return pos;\n    };\n    return ClusterIcon;\n}());\n\n/* global google */\nvar Cluster$1 = /** @class */ (function () {\n    function Cluster(markerClusterer) {\n        this.markerClusterer = markerClusterer;\n        this.map = this.markerClusterer.getMap();\n        this.gridSize = this.markerClusterer.getGridSize();\n        this.minClusterSize = this.markerClusterer.getMinimumClusterSize();\n        this.averageCenter = this.markerClusterer.getAverageCenter();\n        this.markers = [];\n        this.center = undefined;\n        this.bounds = null;\n        this.clusterIcon = new ClusterIcon(this, this.markerClusterer.getStyles());\n        this.getSize = this.getSize.bind(this);\n        this.getMarkers = this.getMarkers.bind(this);\n        this.getCenter = this.getCenter.bind(this);\n        this.getMap = this.getMap.bind(this);\n        this.getClusterer = this.getClusterer.bind(this);\n        this.getBounds = this.getBounds.bind(this);\n        this.remove = this.remove.bind(this);\n        this.addMarker = this.addMarker.bind(this);\n        this.isMarkerInClusterBounds = this.isMarkerInClusterBounds.bind(this);\n        this.calculateBounds = this.calculateBounds.bind(this);\n        this.updateIcon = this.updateIcon.bind(this);\n        this.isMarkerAlreadyAdded = this.isMarkerAlreadyAdded.bind(this);\n    }\n    Cluster.prototype.getSize = function () {\n        return this.markers.length;\n    };\n    Cluster.prototype.getMarkers = function () {\n        return this.markers;\n    };\n    Cluster.prototype.getCenter = function () {\n        return this.center;\n    };\n    Cluster.prototype.getMap = function () {\n        return this.map;\n    };\n    Cluster.prototype.getClusterer = function () {\n        return this.markerClusterer;\n    };\n    Cluster.prototype.getBounds = function () {\n        var bounds = new google.maps.LatLngBounds(this.center, this.center);\n        var markers = this.getMarkers();\n        for (var _i = 0, markers_1 = markers; _i < markers_1.length; _i++) {\n            var marker = markers_1[_i];\n            var position = marker.getPosition();\n            if (position) {\n                bounds.extend(position);\n            }\n        }\n        return bounds;\n    };\n    Cluster.prototype.remove = function () {\n        this.clusterIcon.setMap(null);\n        this.markers = [];\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        delete this.markers;\n    };\n    Cluster.prototype.addMarker = function (marker) {\n        var _a;\n        if (this.isMarkerAlreadyAdded(marker)) {\n            return false;\n        }\n        if (!this.center) {\n            var position = marker.getPosition();\n            if (position) {\n                this.center = position;\n                this.calculateBounds();\n            }\n        }\n        else {\n            if (this.averageCenter) {\n                var position = marker.getPosition();\n                if (position) {\n                    var length_1 = this.markers.length + 1;\n                    this.center = new google.maps.LatLng((this.center.lat() * (length_1 - 1) + position.lat()) / length_1, (this.center.lng() * (length_1 - 1) + position.lng()) / length_1);\n                    this.calculateBounds();\n                }\n            }\n        }\n        marker.isAdded = true;\n        this.markers.push(marker);\n        var mCount = this.markers.length;\n        var maxZoom = this.markerClusterer.getMaxZoom();\n        var zoom = (_a = this.map) === null || _a === void 0 ? void 0 : _a.getZoom();\n        if (maxZoom !== null && typeof zoom !== 'undefined' && zoom > maxZoom) {\n            // Zoomed in past max zoom, so show the marker.\n            if (marker.getMap() !== this.map) {\n                marker.setMap(this.map);\n            }\n        }\n        else if (mCount < this.minClusterSize) {\n            // Min cluster size not reached so show the marker.\n            if (marker.getMap() !== this.map) {\n                marker.setMap(this.map);\n            }\n        }\n        else if (mCount === this.minClusterSize) {\n            // Hide the markers that were showing.\n            for (var _i = 0, _b = this.markers; _i < _b.length; _i++) {\n                var markerElement = _b[_i];\n                markerElement.setMap(null);\n            }\n        }\n        else {\n            marker.setMap(null);\n        }\n        return true;\n    };\n    Cluster.prototype.isMarkerInClusterBounds = function (marker) {\n        if (this.bounds !== null) {\n            var position = marker.getPosition();\n            if (position) {\n                return this.bounds.contains(position);\n            }\n        }\n        return false;\n    };\n    Cluster.prototype.calculateBounds = function () {\n        this.bounds = this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center, this.center));\n    };\n    Cluster.prototype.updateIcon = function () {\n        var _a;\n        var mCount = this.markers.length;\n        var maxZoom = this.markerClusterer.getMaxZoom();\n        var zoom = (_a = this.map) === null || _a === void 0 ? void 0 : _a.getZoom();\n        if (maxZoom !== null && typeof zoom !== 'undefined' && zoom > maxZoom) {\n            this.clusterIcon.hide();\n            return;\n        }\n        if (mCount < this.minClusterSize) {\n            // Min cluster size not yet reached.\n            this.clusterIcon.hide();\n            return;\n        }\n        if (this.center) {\n            this.clusterIcon.setCenter(this.center);\n        }\n        this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers, this.markerClusterer.getStyles().length));\n        this.clusterIcon.show();\n    };\n    Cluster.prototype.isMarkerAlreadyAdded = function (marker) {\n        if (this.markers.includes) {\n            return this.markers.includes(marker);\n        }\n        for (var i = 0; i < this.markers.length; i++) {\n            if (marker === this.markers[i]) {\n                return true;\n            }\n        }\n        return false;\n    };\n    return Cluster;\n}());\n\n/* global google */\n/**\n * Supports up to 9007199254740991 (Number.MAX_SAFE_INTEGER) markers\n * which is not a problem as max array length is 4294967296 (2**32)\n */\nfunction CALCULATOR(markers, numStyles) {\n    var count = markers.length;\n    var numberOfDigits = count.toString().length;\n    var index = Math.min(numberOfDigits, numStyles);\n    return {\n        text: count.toString(),\n        index: index,\n        title: '',\n    };\n}\nvar BATCH_SIZE = 2000;\nvar BATCH_SIZE_IE = 500;\nvar IMAGE_PATH = 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m';\nvar IMAGE_EXTENSION = 'png';\nvar IMAGE_SIZES = [53, 56, 66, 78, 90];\nvar CLUSTERER_CLASS = 'cluster';\nvar Clusterer = /** @class */ (function () {\n    function Clusterer(map, optMarkers, optOptions) {\n        if (optMarkers === void 0) { optMarkers = []; }\n        if (optOptions === void 0) { optOptions = {}; }\n        this.getMinimumClusterSize = this.getMinimumClusterSize.bind(this);\n        this.setMinimumClusterSize = this.setMinimumClusterSize.bind(this);\n        this.getEnableRetinaIcons = this.getEnableRetinaIcons.bind(this);\n        this.setEnableRetinaIcons = this.setEnableRetinaIcons.bind(this);\n        this.addToClosestCluster = this.addToClosestCluster.bind(this);\n        this.getImageExtension = this.getImageExtension.bind(this);\n        this.setImageExtension = this.setImageExtension.bind(this);\n        this.getExtendedBounds = this.getExtendedBounds.bind(this);\n        this.getAverageCenter = this.getAverageCenter.bind(this);\n        this.setAverageCenter = this.setAverageCenter.bind(this);\n        this.getTotalClusters = this.getTotalClusters.bind(this);\n        this.fitMapToMarkers = this.fitMapToMarkers.bind(this);\n        this.getIgnoreHidden = this.getIgnoreHidden.bind(this);\n        this.setIgnoreHidden = this.setIgnoreHidden.bind(this);\n        this.getClusterClass = this.getClusterClass.bind(this);\n        this.setClusterClass = this.setClusterClass.bind(this);\n        this.getTotalMarkers = this.getTotalMarkers.bind(this);\n        this.getZoomOnClick = this.getZoomOnClick.bind(this);\n        this.setZoomOnClick = this.setZoomOnClick.bind(this);\n        this.getBatchSizeIE = this.getBatchSizeIE.bind(this);\n        this.setBatchSizeIE = this.setBatchSizeIE.bind(this);\n        this.createClusters = this.createClusters.bind(this);\n        this.onZoomChanged = this.onZoomChanged.bind(this);\n        this.getImageSizes = this.getImageSizes.bind(this);\n        this.setImageSizes = this.setImageSizes.bind(this);\n        this.getCalculator = this.getCalculator.bind(this);\n        this.setCalculator = this.setCalculator.bind(this);\n        this.removeMarkers = this.removeMarkers.bind(this);\n        this.resetViewport = this.resetViewport.bind(this);\n        this.getImagePath = this.getImagePath.bind(this);\n        this.setImagePath = this.setImagePath.bind(this);\n        this.pushMarkerTo = this.pushMarkerTo.bind(this);\n        this.removeMarker = this.removeMarker.bind(this);\n        this.clearMarkers = this.clearMarkers.bind(this);\n        this.setupStyles = this.setupStyles.bind(this);\n        this.getGridSize = this.getGridSize.bind(this);\n        this.setGridSize = this.setGridSize.bind(this);\n        this.getClusters = this.getClusters.bind(this);\n        this.getMaxZoom = this.getMaxZoom.bind(this);\n        this.setMaxZoom = this.setMaxZoom.bind(this);\n        this.getMarkers = this.getMarkers.bind(this);\n        this.addMarkers = this.addMarkers.bind(this);\n        this.getStyles = this.getStyles.bind(this);\n        this.setStyles = this.setStyles.bind(this);\n        this.addMarker = this.addMarker.bind(this);\n        this.onRemove = this.onRemove.bind(this);\n        this.getTitle = this.getTitle.bind(this);\n        this.setTitle = this.setTitle.bind(this);\n        this.repaint = this.repaint.bind(this);\n        this.onIdle = this.onIdle.bind(this);\n        this.redraw = this.redraw.bind(this);\n        this.onAdd = this.onAdd.bind(this);\n        this.draw = this.draw.bind(this);\n        this.extend = this.extend.bind(this);\n        this.extend(Clusterer, google.maps.OverlayView);\n        this.markers = [];\n        this.clusters = [];\n        this.listeners = [];\n        this.activeMap = null;\n        this.ready = false;\n        this.gridSize = optOptions.gridSize || 60;\n        this.minClusterSize = optOptions.minimumClusterSize || 2;\n        this.maxZoom = optOptions.maxZoom || null;\n        this.styles = optOptions.styles || [];\n        this.title = optOptions.title || '';\n        this.zoomOnClick = true;\n        if (optOptions.zoomOnClick !== undefined) {\n            this.zoomOnClick = optOptions.zoomOnClick;\n        }\n        this.averageCenter = false;\n        if (optOptions.averageCenter !== undefined) {\n            this.averageCenter = optOptions.averageCenter;\n        }\n        this.ignoreHidden = false;\n        if (optOptions.ignoreHidden !== undefined) {\n            this.ignoreHidden = optOptions.ignoreHidden;\n        }\n        this.enableRetinaIcons = false;\n        if (optOptions.enableRetinaIcons !== undefined) {\n            this.enableRetinaIcons = optOptions.enableRetinaIcons;\n        }\n        this.imagePath = optOptions.imagePath || IMAGE_PATH;\n        this.imageExtension = optOptions.imageExtension || IMAGE_EXTENSION;\n        this.imageSizes = optOptions.imageSizes || IMAGE_SIZES;\n        this.calculator = optOptions.calculator || CALCULATOR;\n        this.batchSize = optOptions.batchSize || BATCH_SIZE;\n        this.batchSizeIE = optOptions.batchSizeIE || BATCH_SIZE_IE;\n        this.clusterClass = optOptions.clusterClass || CLUSTERER_CLASS;\n        if (navigator.userAgent.toLowerCase().indexOf('msie') !== -1) {\n            // Try to avoid IE timeout when processing a huge number of markers:\n            this.batchSize = this.batchSizeIE;\n        }\n        this.timerRefStatic = null;\n        this.setupStyles();\n        this.addMarkers(optMarkers, true);\n        this.setMap(map); // Note: this causes onAdd to be called\n    }\n    Clusterer.prototype.onZoomChanged = function () {\n        var _a, _b;\n        this.resetViewport(false);\n        // Workaround for this Google bug: when map is at level 0 and \"-\" of\n        // zoom slider is clicked, a \"zoom_changed\" event is fired even though\n        // the map doesn't zoom out any further. In this situation, no \"idle\"\n        // event is triggered so the cluster markers that have been removed\n        // do not get redrawn. Same goes for a zoom in at maxZoom.\n        if (((_a = this.getMap()) === null || _a === void 0 ? void 0 : _a.getZoom()) === (this.get('minZoom') || 0) ||\n            ((_b = this.getMap()) === null || _b === void 0 ? void 0 : _b.getZoom()) === this.get('maxZoom')) {\n            google.maps.event.trigger(this, 'idle');\n        }\n    };\n    Clusterer.prototype.onIdle = function () {\n        this.redraw();\n    };\n    Clusterer.prototype.onAdd = function () {\n        var map = this.getMap();\n        this.activeMap = map;\n        this.ready = true;\n        this.repaint();\n        if (map !== null) {\n            // Add the map event listeners\n            this.listeners = [\n                google.maps.event.addListener(map, 'zoom_changed', this.onZoomChanged),\n                google.maps.event.addListener(map, 'idle', this.onIdle),\n            ];\n        }\n    };\n    Clusterer.prototype.onRemove = function () {\n        // Put all the managed markers back on the map:\n        for (var _i = 0, _a = this.markers; _i < _a.length; _i++) {\n            var marker = _a[_i];\n            if (marker.getMap() !== this.activeMap) {\n                marker.setMap(this.activeMap);\n            }\n        }\n        // Remove all clusters:\n        for (var _b = 0, _c = this.clusters; _b < _c.length; _b++) {\n            var cluster = _c[_b];\n            cluster.remove();\n        }\n        this.clusters = [];\n        // Remove map event listeners:\n        for (var _d = 0, _e = this.listeners; _d < _e.length; _d++) {\n            var listener = _e[_d];\n            google.maps.event.removeListener(listener);\n        }\n        this.listeners = [];\n        this.activeMap = null;\n        this.ready = false;\n    };\n    Clusterer.prototype.draw = function () { return; };\n    Clusterer.prototype.getMap = function () { return null; };\n    Clusterer.prototype.getPanes = function () { return null; };\n    Clusterer.prototype.getProjection = function () {\n        return {\n            fromContainerPixelToLatLng: function () { return null; },\n            fromDivPixelToLatLng: function () { return null; },\n            fromLatLngToContainerPixel: function () { return null; },\n            fromLatLngToDivPixel: function () { return null; },\n            getVisibleRegion: function () { return null; },\n            getWorldWidth: function () { return 0; }\n        };\n    };\n    Clusterer.prototype.setMap = function () { return; };\n    Clusterer.prototype.addListener = function () {\n        return {\n            remove: function () { return; }\n        };\n    };\n    Clusterer.prototype.bindTo = function () { return; };\n    Clusterer.prototype.get = function () { return; };\n    Clusterer.prototype.notify = function () { return; };\n    Clusterer.prototype.set = function () { return; };\n    Clusterer.prototype.setValues = function () { return; };\n    Clusterer.prototype.unbind = function () { return; };\n    Clusterer.prototype.unbindAll = function () { return; };\n    Clusterer.prototype.setupStyles = function () {\n        if (this.styles.length > 0) {\n            return;\n        }\n        for (var i = 0; i < this.imageSizes.length; i++) {\n            this.styles.push({\n                url: \"\".concat(this.imagePath + (i + 1), \".\").concat(this.imageExtension),\n                height: this.imageSizes[i] || 0,\n                width: this.imageSizes[i] || 0,\n            });\n        }\n    };\n    Clusterer.prototype.fitMapToMarkers = function () {\n        var markers = this.getMarkers();\n        var bounds = new google.maps.LatLngBounds();\n        for (var _i = 0, markers_1 = markers; _i < markers_1.length; _i++) {\n            var marker = markers_1[_i];\n            var position = marker.getPosition();\n            if (position) {\n                bounds.extend(position);\n            }\n        }\n        var map = this.getMap();\n        if (map !== null && 'fitBounds' in map) {\n            map.fitBounds(bounds);\n        }\n    };\n    Clusterer.prototype.getGridSize = function () {\n        return this.gridSize;\n    };\n    Clusterer.prototype.setGridSize = function (gridSize) {\n        this.gridSize = gridSize;\n    };\n    Clusterer.prototype.getMinimumClusterSize = function () {\n        return this.minClusterSize;\n    };\n    Clusterer.prototype.setMinimumClusterSize = function (minimumClusterSize) {\n        this.minClusterSize = minimumClusterSize;\n    };\n    Clusterer.prototype.getMaxZoom = function () {\n        return this.maxZoom;\n    };\n    Clusterer.prototype.setMaxZoom = function (maxZoom) {\n        this.maxZoom = maxZoom;\n    };\n    Clusterer.prototype.getStyles = function () {\n        return this.styles;\n    };\n    Clusterer.prototype.setStyles = function (styles) {\n        this.styles = styles;\n    };\n    Clusterer.prototype.getTitle = function () {\n        return this.title;\n    };\n    Clusterer.prototype.setTitle = function (title) {\n        this.title = title;\n    };\n    Clusterer.prototype.getZoomOnClick = function () {\n        return this.zoomOnClick;\n    };\n    Clusterer.prototype.setZoomOnClick = function (zoomOnClick) {\n        this.zoomOnClick = zoomOnClick;\n    };\n    Clusterer.prototype.getAverageCenter = function () {\n        return this.averageCenter;\n    };\n    Clusterer.prototype.setAverageCenter = function (averageCenter) {\n        this.averageCenter = averageCenter;\n    };\n    Clusterer.prototype.getIgnoreHidden = function () {\n        return this.ignoreHidden;\n    };\n    Clusterer.prototype.setIgnoreHidden = function (ignoreHidden) {\n        this.ignoreHidden = ignoreHidden;\n    };\n    Clusterer.prototype.getEnableRetinaIcons = function () {\n        return this.enableRetinaIcons;\n    };\n    Clusterer.prototype.setEnableRetinaIcons = function (enableRetinaIcons) {\n        this.enableRetinaIcons = enableRetinaIcons;\n    };\n    Clusterer.prototype.getImageExtension = function () {\n        return this.imageExtension;\n    };\n    Clusterer.prototype.setImageExtension = function (imageExtension) {\n        this.imageExtension = imageExtension;\n    };\n    Clusterer.prototype.getImagePath = function () {\n        return this.imagePath;\n    };\n    Clusterer.prototype.setImagePath = function (imagePath) {\n        this.imagePath = imagePath;\n    };\n    Clusterer.prototype.getImageSizes = function () {\n        return this.imageSizes;\n    };\n    Clusterer.prototype.setImageSizes = function (imageSizes) {\n        this.imageSizes = imageSizes;\n    };\n    Clusterer.prototype.getCalculator = function () {\n        return this.calculator;\n    };\n    Clusterer.prototype.setCalculator = function (calculator) {\n        this.calculator = calculator;\n    };\n    Clusterer.prototype.getBatchSizeIE = function () {\n        return this.batchSizeIE;\n    };\n    Clusterer.prototype.setBatchSizeIE = function (batchSizeIE) {\n        this.batchSizeIE = batchSizeIE;\n    };\n    Clusterer.prototype.getClusterClass = function () {\n        return this.clusterClass;\n    };\n    Clusterer.prototype.setClusterClass = function (clusterClass) {\n        this.clusterClass = clusterClass;\n    };\n    Clusterer.prototype.getMarkers = function () {\n        return this.markers;\n    };\n    Clusterer.prototype.getTotalMarkers = function () {\n        return this.markers.length;\n    };\n    Clusterer.prototype.getClusters = function () {\n        return this.clusters;\n    };\n    Clusterer.prototype.getTotalClusters = function () {\n        return this.clusters.length;\n    };\n    Clusterer.prototype.addMarker = function (marker, optNoDraw) {\n        this.pushMarkerTo(marker);\n        if (!optNoDraw) {\n            this.redraw();\n        }\n    };\n    Clusterer.prototype.addMarkers = function (markers, optNoDraw) {\n        for (var key in markers) {\n            if (Object.prototype.hasOwnProperty.call(markers, key)) {\n                var marker = markers[key];\n                if (marker) {\n                    this.pushMarkerTo(marker);\n                }\n            }\n        }\n        if (!optNoDraw) {\n            this.redraw();\n        }\n    };\n    Clusterer.prototype.pushMarkerTo = function (marker) {\n        var _this = this;\n        // If the marker is draggable add a listener so we can update the clusters on the dragend:\n        if (marker.getDraggable()) {\n            google.maps.event.addListener(marker, 'dragend', function () {\n                if (_this.ready) {\n                    marker.isAdded = false;\n                    _this.repaint();\n                }\n            });\n        }\n        marker.isAdded = false;\n        this.markers.push(marker);\n    };\n    Clusterer.prototype.removeMarker_ = function (marker) {\n        var index = -1;\n        if (this.markers.indexOf) {\n            index = this.markers.indexOf(marker);\n        }\n        else {\n            for (var i = 0; i < this.markers.length; i++) {\n                if (marker === this.markers[i]) {\n                    index = i;\n                    break;\n                }\n            }\n        }\n        if (index === -1) {\n            // Marker is not in our list of markers, so do nothing:\n            return false;\n        }\n        marker.setMap(null);\n        this.markers.splice(index, 1); // Remove the marker from the list of managed markers\n        return true;\n    };\n    Clusterer.prototype.removeMarker = function (marker, optNoDraw) {\n        var removed = this.removeMarker_(marker);\n        if (!optNoDraw && removed) {\n            this.repaint();\n        }\n        return removed;\n    };\n    Clusterer.prototype.removeMarkers = function (markers, optNoDraw) {\n        var removed = false;\n        for (var _i = 0, markers_2 = markers; _i < markers_2.length; _i++) {\n            var marker = markers_2[_i];\n            removed = removed || this.removeMarker_(marker);\n        }\n        if (!optNoDraw && removed) {\n            this.repaint();\n        }\n        return removed;\n    };\n    Clusterer.prototype.clearMarkers = function () {\n        this.resetViewport(true);\n        this.markers = [];\n    };\n    Clusterer.prototype.repaint = function () {\n        var oldClusters = this.clusters.slice();\n        this.clusters = [];\n        this.resetViewport(false);\n        this.redraw();\n        // Remove the old clusters.\n        // Do it in a timeout to prevent blinking effect.\n        setTimeout(function timeout() {\n            for (var _i = 0, oldClusters_1 = oldClusters; _i < oldClusters_1.length; _i++) {\n                var oldCluster = oldClusters_1[_i];\n                oldCluster.remove();\n            }\n        }, 0);\n    };\n    Clusterer.prototype.getExtendedBounds = function (bounds) {\n        var projection = this.getProjection();\n        // Convert the points to pixels and the extend out by the grid size.\n        var trPix = projection.fromLatLngToDivPixel(\n        // Turn the bounds into latlng.\n        new google.maps.LatLng(bounds.getNorthEast().lat(), bounds.getNorthEast().lng()));\n        if (trPix !== null) {\n            trPix.x += this.gridSize;\n            trPix.y -= this.gridSize;\n        }\n        var blPix = projection.fromLatLngToDivPixel(\n        // Turn the bounds into latlng.\n        new google.maps.LatLng(bounds.getSouthWest().lat(), bounds.getSouthWest().lng()));\n        if (blPix !== null) {\n            blPix.x -= this.gridSize;\n            blPix.y += this.gridSize;\n        }\n        // Extend the bounds to contain the new bounds.\n        if (trPix !== null) {\n            // Convert the pixel points back to LatLng nw\n            var point1 = projection.fromDivPixelToLatLng(trPix);\n            if (point1 !== null) {\n                bounds.extend(point1);\n            }\n        }\n        if (blPix !== null) {\n            // Convert the pixel points back to LatLng sw\n            var point2 = projection.fromDivPixelToLatLng(blPix);\n            if (point2 !== null) {\n                bounds.extend(point2);\n            }\n        }\n        return bounds;\n    };\n    Clusterer.prototype.redraw = function () {\n        // Redraws all the clusters.\n        this.createClusters(0);\n    };\n    Clusterer.prototype.resetViewport = function (optHide) {\n        // Remove all the clusters\n        for (var _i = 0, _a = this.clusters; _i < _a.length; _i++) {\n            var cluster = _a[_i];\n            cluster.remove();\n        }\n        this.clusters = [];\n        // Reset the markers to not be added and to be removed from the map.\n        for (var _b = 0, _c = this.markers; _b < _c.length; _b++) {\n            var marker = _c[_b];\n            marker.isAdded = false;\n            if (optHide) {\n                marker.setMap(null);\n            }\n        }\n    };\n    Clusterer.prototype.distanceBetweenPoints = function (p1, p2) {\n        var R = 6371; // Radius of the Earth in km\n        var dLat = ((p2.lat() - p1.lat()) * Math.PI) / 180;\n        var dLon = ((p2.lng() - p1.lng()) * Math.PI) / 180;\n        var a = Math.sin(dLat / 2) * Math.sin(dLat / 2) +\n            Math.cos((p1.lat() * Math.PI) / 180) *\n                Math.cos((p2.lat() * Math.PI) / 180) *\n                Math.sin(dLon / 2) *\n                Math.sin(dLon / 2);\n        return R * (2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)));\n    };\n    Clusterer.prototype.isMarkerInBounds = function (marker, bounds) {\n        var position = marker.getPosition();\n        if (position) {\n            return bounds.contains(position);\n        }\n        return false;\n    };\n    Clusterer.prototype.addToClosestCluster = function (marker) {\n        var cluster;\n        var distance = 40000; // Some large number\n        var clusterToAddTo = null;\n        for (var _i = 0, _a = this.clusters; _i < _a.length; _i++) {\n            var clusterElement = _a[_i];\n            cluster = clusterElement;\n            var center = cluster.getCenter();\n            var position = marker.getPosition();\n            if (center && position) {\n                var d = this.distanceBetweenPoints(center, position);\n                if (d < distance) {\n                    distance = d;\n                    clusterToAddTo = cluster;\n                }\n            }\n        }\n        if (clusterToAddTo && clusterToAddTo.isMarkerInClusterBounds(marker)) {\n            clusterToAddTo.addMarker(marker);\n        }\n        else {\n            cluster = new Cluster$1(this);\n            cluster.addMarker(marker);\n            this.clusters.push(cluster);\n        }\n    };\n    Clusterer.prototype.createClusters = function (iFirst) {\n        var _this = this;\n        if (!this.ready) {\n            return;\n        }\n        // Cancel previous batch processing if we're working on the first batch:\n        if (iFirst === 0) {\n            /**\n             * This event is fired when the <code>Clusterer</code> begins\n             *  clustering markers.\n             * @name Clusterer#clusteringbegin\n             * @param {Clusterer} mc The Clusterer whose markers are being clustered.\n             * @event\n             */\n            google.maps.event.trigger(this, 'clusteringbegin', this);\n            if (this.timerRefStatic !== null) {\n                window.clearTimeout(this.timerRefStatic);\n                // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                // @ts-ignore\n                delete this.timerRefStatic;\n            }\n        }\n        var map = this.getMap();\n        var bounds = map !== null && 'getBounds' in map ? map.getBounds() : null;\n        var zoom = (map === null || map === void 0 ? void 0 : map.getZoom()) || 0;\n        // Get our current map view bounds.\n        // Create a new bounds object so we don't affect the map.\n        //\n        // See Comments 9 & 11 on Issue 3651 relating to this workaround for a Google Maps bug:\n        var mapBounds = zoom > 3\n            ? new google.maps.LatLngBounds(bounds === null || bounds === void 0 ? void 0 : bounds.getSouthWest(), bounds === null || bounds === void 0 ? void 0 : bounds.getNorthEast())\n            : new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472, -178.48388434375), new google.maps.LatLng(-85.08136444384544, 178.00048865625));\n        var extendedMapBounds = this.getExtendedBounds(mapBounds);\n        var iLast = Math.min(iFirst + this.batchSize, this.markers.length);\n        for (var i = iFirst; i < iLast; i++) {\n            var marker = this.markers[i];\n            if (marker && !marker.isAdded && this.isMarkerInBounds(marker, extendedMapBounds) && (!this.ignoreHidden || (this.ignoreHidden && marker.getVisible()))) {\n                this.addToClosestCluster(marker);\n            }\n        }\n        if (iLast < this.markers.length) {\n            this.timerRefStatic = window.setTimeout(function () {\n                _this.createClusters(iLast);\n            }, 0);\n        }\n        else {\n            this.timerRefStatic = null;\n            /**\n             * This event is fired when the <code>Clusterer</code> stops\n             *  clustering markers.\n             * @name Clusterer#clusteringend\n             * @param {Clusterer} mc The Clusterer whose markers are being clustered.\n             * @event\n             */\n            google.maps.event.trigger(this, 'clusteringend', this);\n            for (var _i = 0, _a = this.clusters; _i < _a.length; _i++) {\n                var cluster = _a[_i];\n                cluster.updateIcon();\n            }\n        }\n    };\n    Clusterer.prototype.extend = function (obj1, obj2) {\n        return function applyExtend(object) {\n            for (var property in object.prototype) {\n                // eslint-disable-next-line @typescript-eslint/ban-types\n                var prop = property;\n                // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                // @ts-ignore\n                this.prototype[prop] = object.prototype[prop];\n            }\n            return this;\n        }.apply(obj1, [obj2]);\n    };\n    return Clusterer;\n}());\n\nvar eventMap$e = {\n    onClick: 'click',\n    onClusteringBegin: 'clusteringbegin',\n    onClusteringEnd: 'clusteringend',\n    onMouseOut: 'mouseout',\n    onMouseOver: 'mouseover',\n};\nvar updaterMap$e = {\n    averageCenter: function (instance, averageCenter) {\n        instance.setAverageCenter(averageCenter);\n    },\n    batchSizeIE: function (instance, batchSizeIE) {\n        instance.setBatchSizeIE(batchSizeIE);\n    },\n    calculator: function (instance, calculator) {\n        instance.setCalculator(calculator);\n    },\n    clusterClass: function (instance, clusterClass) {\n        instance.setClusterClass(clusterClass);\n    },\n    enableRetinaIcons: function (instance, enableRetinaIcons) {\n        instance.setEnableRetinaIcons(enableRetinaIcons);\n    },\n    gridSize: function (instance, gridSize) {\n        instance.setGridSize(gridSize);\n    },\n    ignoreHidden: function (instance, ignoreHidden) {\n        instance.setIgnoreHidden(ignoreHidden);\n    },\n    imageExtension: function (instance, imageExtension) {\n        instance.setImageExtension(imageExtension);\n    },\n    imagePath: function (instance, imagePath) {\n        instance.setImagePath(imagePath);\n    },\n    imageSizes: function (instance, imageSizes) {\n        instance.setImageSizes(imageSizes);\n    },\n    maxZoom: function (instance, maxZoom) {\n        instance.setMaxZoom(maxZoom);\n    },\n    minimumClusterSize: function (instance, minimumClusterSize) {\n        instance.setMinimumClusterSize(minimumClusterSize);\n    },\n    styles: function (instance, styles) {\n        instance.setStyles(styles);\n    },\n    title: function (instance, title) {\n        instance.setTitle(title);\n    },\n    zoomOnClick: function (instance, zoomOnClick) {\n        instance.setZoomOnClick(zoomOnClick);\n    },\n};\nvar defaultOptions$4 = {};\nfunction MarkerClustererFunctional(props) {\n    var children = props.children, options = props.options, averageCenter = props.averageCenter, batchSizeIE = props.batchSizeIE, calculator = props.calculator, clusterClass = props.clusterClass, enableRetinaIcons = props.enableRetinaIcons, gridSize = props.gridSize, ignoreHidden = props.ignoreHidden, imageExtension = props.imageExtension, imagePath = props.imagePath, imageSizes = props.imageSizes, maxZoom = props.maxZoom, minimumClusterSize = props.minimumClusterSize, styles = props.styles, title = props.title, zoomOnClick = props.zoomOnClick, onClick = props.onClick, onClusteringBegin = props.onClusteringBegin, onClusteringEnd = props.onClusteringEnd, onMouseOver = props.onMouseOver, onMouseOut = props.onMouseOut, onLoad = props.onLoad, onUnmount = props.onUnmount;\n    var _a = useState(null), instance = _a[0], setInstance = _a[1];\n    var map = useContext(MapContext);\n    var _b = useState(null), clickListener = _b[0], setClickListener = _b[1];\n    var _c = useState(null), clusteringBeginListener = _c[0], setClusteringBeginListener = _c[1];\n    var _d = useState(null), clusteringEndListener = _d[0], setClusteringEndListener = _d[1];\n    var _e = useState(null), mouseoutListener = _e[0], setMouseoutListener = _e[1];\n    var _f = useState(null), mouseoverListener = _f[0], setMouseoverListener = _f[1];\n    useEffect(function () {\n        if (instance && onMouseOut) {\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            setMouseoutListener(google.maps.event.addListener(instance, eventMap$e.onMouseOut, onMouseOut));\n        }\n    }, [onMouseOut]);\n    useEffect(function () {\n        if (instance && onMouseOver) {\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            setMouseoverListener(google.maps.event.addListener(instance, eventMap$e.onMouseOver, onMouseOver));\n        }\n    }, [onMouseOver]);\n    useEffect(function () {\n        if (instance && onClick) {\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            setClickListener(google.maps.event.addListener(instance, eventMap$e.onClick, onClick));\n        }\n    }, [onClick]);\n    useEffect(function () {\n        if (instance && onClusteringBegin) {\n            if (clusteringBeginListener !== null) {\n                google.maps.event.removeListener(clusteringBeginListener);\n            }\n            setClusteringBeginListener(google.maps.event.addListener(instance, eventMap$e.onClusteringBegin, onClusteringBegin));\n        }\n    }, [onClusteringBegin]);\n    useEffect(function () {\n        if (instance && onClusteringEnd) {\n            if (clusteringEndListener !== null) {\n                google.maps.event.removeListener(clusteringEndListener);\n            }\n            setClusteringBeginListener(google.maps.event.addListener(instance, eventMap$e.onClusteringEnd, onClusteringEnd));\n        }\n    }, [onClusteringEnd]);\n    useEffect(function () {\n        if (typeof averageCenter !== 'undefined' && instance !== null) {\n            updaterMap$e.averageCenter(instance, averageCenter);\n        }\n    }, [instance, averageCenter]);\n    useEffect(function () {\n        if (typeof batchSizeIE !== 'undefined' && instance !== null) {\n            updaterMap$e.batchSizeIE(instance, batchSizeIE);\n        }\n    }, [instance, batchSizeIE]);\n    useEffect(function () {\n        if (typeof calculator !== 'undefined' && instance !== null) {\n            updaterMap$e.calculator(instance, calculator);\n        }\n    }, [instance, calculator]);\n    useEffect(function () {\n        if (typeof clusterClass !== 'undefined' && instance !== null) {\n            updaterMap$e.clusterClass(instance, clusterClass);\n        }\n    }, [instance, clusterClass]);\n    useEffect(function () {\n        if (typeof enableRetinaIcons !== 'undefined' && instance !== null) {\n            updaterMap$e.enableRetinaIcons(instance, enableRetinaIcons);\n        }\n    }, [instance, enableRetinaIcons]);\n    useEffect(function () {\n        if (typeof gridSize !== 'undefined' && instance !== null) {\n            updaterMap$e.gridSize(instance, gridSize);\n        }\n    }, [instance, gridSize]);\n    useEffect(function () {\n        if (typeof ignoreHidden !== 'undefined' && instance !== null) {\n            updaterMap$e.ignoreHidden(instance, ignoreHidden);\n        }\n    }, [instance, ignoreHidden]);\n    useEffect(function () {\n        if (typeof imageExtension !== 'undefined' && instance !== null) {\n            updaterMap$e.imageExtension(instance, imageExtension);\n        }\n    }, [instance, imageExtension]);\n    useEffect(function () {\n        if (typeof imagePath !== 'undefined' && instance !== null) {\n            updaterMap$e.imagePath(instance, imagePath);\n        }\n    }, [instance, imagePath]);\n    useEffect(function () {\n        if (typeof imageSizes !== 'undefined' && instance !== null) {\n            updaterMap$e.imageSizes(instance, imageSizes);\n        }\n    }, [instance, imageSizes]);\n    useEffect(function () {\n        if (typeof maxZoom !== 'undefined' && instance !== null) {\n            updaterMap$e.maxZoom(instance, maxZoom);\n        }\n    }, [instance, maxZoom]);\n    useEffect(function () {\n        if (typeof minimumClusterSize !== 'undefined' && instance !== null) {\n            updaterMap$e.minimumClusterSize(instance, minimumClusterSize);\n        }\n    }, [instance, minimumClusterSize]);\n    useEffect(function () {\n        if (typeof styles !== 'undefined' && instance !== null) {\n            updaterMap$e.styles(instance, styles);\n        }\n    }, [instance, styles]);\n    useEffect(function () {\n        if (typeof title !== 'undefined' && instance !== null) {\n            updaterMap$e.title(instance, title);\n        }\n    }, [instance, title]);\n    useEffect(function () {\n        if (typeof zoomOnClick !== 'undefined' && instance !== null) {\n            updaterMap$e.zoomOnClick(instance, zoomOnClick);\n        }\n    }, [instance, zoomOnClick]);\n    useEffect(function () {\n        if (!map)\n            return;\n        var clustererOptions = __assign({}, (options || defaultOptions$4));\n        var clusterer = new Clusterer(map, [], clustererOptions);\n        if (averageCenter) {\n            updaterMap$e.averageCenter(clusterer, averageCenter);\n        }\n        if (batchSizeIE) {\n            updaterMap$e.batchSizeIE(clusterer, batchSizeIE);\n        }\n        if (calculator) {\n            updaterMap$e.calculator(clusterer, calculator);\n        }\n        if (clusterClass) {\n            updaterMap$e.clusterClass(clusterer, clusterClass);\n        }\n        if (enableRetinaIcons) {\n            updaterMap$e.enableRetinaIcons(clusterer, enableRetinaIcons);\n        }\n        if (gridSize) {\n            updaterMap$e.gridSize(clusterer, gridSize);\n        }\n        if (ignoreHidden) {\n            updaterMap$e.ignoreHidden(clusterer, ignoreHidden);\n        }\n        if (imageExtension) {\n            updaterMap$e.imageExtension(clusterer, imageExtension);\n        }\n        if (imagePath) {\n            updaterMap$e.imagePath(clusterer, imagePath);\n        }\n        if (imageSizes) {\n            updaterMap$e.imageSizes(clusterer, imageSizes);\n        }\n        if (maxZoom) {\n            updaterMap$e.maxZoom(clusterer, maxZoom);\n        }\n        if (minimumClusterSize) {\n            updaterMap$e.minimumClusterSize(clusterer, minimumClusterSize);\n        }\n        if (styles) {\n            updaterMap$e.styles(clusterer, styles);\n        }\n        if (title) {\n            updaterMap$e.title(clusterer, title);\n        }\n        if (zoomOnClick) {\n            updaterMap$e.zoomOnClick(clusterer, zoomOnClick);\n        }\n        if (onMouseOut) {\n            setMouseoutListener(google.maps.event.addListener(clusterer, eventMap$e.onMouseOut, onMouseOut));\n        }\n        if (onMouseOver) {\n            setMouseoverListener(google.maps.event.addListener(clusterer, eventMap$e.onMouseOver, onMouseOver));\n        }\n        if (onClick) {\n            setClickListener(google.maps.event.addListener(clusterer, eventMap$e.onClick, onClick));\n        }\n        if (onClusteringBegin) {\n            setClusteringBeginListener(google.maps.event.addListener(clusterer, eventMap$e.onClusteringBegin, onClusteringBegin));\n        }\n        if (onClusteringEnd) {\n            setClusteringEndListener(google.maps.event.addListener(clusterer, eventMap$e.onClusteringEnd, onClusteringEnd));\n        }\n        setInstance(clusterer);\n        if (onLoad) {\n            onLoad(clusterer);\n        }\n        return function () {\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            if (clusteringBeginListener !== null) {\n                google.maps.event.removeListener(clusteringBeginListener);\n            }\n            if (clusteringEndListener !== null) {\n                google.maps.event.removeListener(clusteringEndListener);\n            }\n            if (onUnmount) {\n                onUnmount(clusterer);\n            }\n        };\n    }, []);\n    return instance !== null ? children(instance) || null : null;\n}\nvar MarkerClustererF = memo(MarkerClustererFunctional);\nvar ClustererComponent = /** @class */ (function (_super) {\n    __extends(ClustererComponent, _super);\n    function ClustererComponent() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.state = {\n            markerClusterer: null,\n        };\n        _this.setClustererCallback = function () {\n            if (_this.state.markerClusterer !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.markerClusterer);\n            }\n        };\n        return _this;\n    }\n    ClustererComponent.prototype.componentDidMount = function () {\n        if (this.context) {\n            var markerClusterer_1 = new Clusterer(this.context, [], this.props.options);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$e,\n                eventMap: eventMap$e,\n                prevProps: {},\n                nextProps: this.props,\n                instance: markerClusterer_1,\n            });\n            this.setState(function () {\n                return {\n                    markerClusterer: markerClusterer_1,\n                };\n            }, this.setClustererCallback);\n        }\n    };\n    ClustererComponent.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.markerClusterer) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$e,\n                eventMap: eventMap$e,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.markerClusterer,\n            });\n        }\n    };\n    ClustererComponent.prototype.componentWillUnmount = function () {\n        if (this.state.markerClusterer !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.markerClusterer);\n            }\n            unregisterEvents(this.registeredEvents);\n            // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n            // @ts-ignore\n            this.state.markerClusterer.setMap(null);\n        }\n    };\n    ClustererComponent.prototype.render = function () {\n        return this.state.markerClusterer !== null\n            ? this.props.children(this.state.markerClusterer)\n            : null;\n    };\n    ClustererComponent.contextType = MapContext;\n    return ClustererComponent;\n}(PureComponent));\n\n// This handler prevents an event in the InfoBox from being passed on to the map.\nfunction cancelHandler(event) {\n    event.cancelBubble = true;\n    if (event.stopPropagation) {\n        event.stopPropagation();\n    }\n}\nvar InfoBox = /** @class */ (function () {\n    function InfoBox(options) {\n        if (options === void 0) { options = {}; }\n        this.getCloseClickHandler = this.getCloseClickHandler.bind(this);\n        this.closeClickHandler = this.closeClickHandler.bind(this);\n        this.createInfoBoxDiv = this.createInfoBoxDiv.bind(this);\n        this.addClickHandler = this.addClickHandler.bind(this);\n        this.getCloseBoxImg = this.getCloseBoxImg.bind(this);\n        this.getBoxWidths = this.getBoxWidths.bind(this);\n        this.setBoxStyle = this.setBoxStyle.bind(this);\n        this.setPosition = this.setPosition.bind(this);\n        this.getPosition = this.getPosition.bind(this);\n        this.setOptions = this.setOptions.bind(this);\n        this.setContent = this.setContent.bind(this);\n        this.setVisible = this.setVisible.bind(this);\n        this.getContent = this.getContent.bind(this);\n        this.getVisible = this.getVisible.bind(this);\n        this.setZIndex = this.setZIndex.bind(this);\n        this.getZIndex = this.getZIndex.bind(this);\n        this.onRemove = this.onRemove.bind(this);\n        this.panBox = this.panBox.bind(this);\n        this.extend = this.extend.bind(this);\n        this.close = this.close.bind(this);\n        this.draw = this.draw.bind(this);\n        this.show = this.show.bind(this);\n        this.hide = this.hide.bind(this);\n        this.open = this.open.bind(this);\n        this.extend(InfoBox, google.maps.OverlayView);\n        // Standard options (in common with google.maps.InfoWindow):\n        this.content = options.content || '';\n        this.disableAutoPan = options.disableAutoPan || false;\n        this.maxWidth = options.maxWidth || 0;\n        this.pixelOffset = options.pixelOffset || new google.maps.Size(0, 0);\n        this.position = options.position || new google.maps.LatLng(0, 0);\n        this.zIndex = options.zIndex || null;\n        // Additional options (unique to InfoBox):\n        this.boxClass = options.boxClass || 'infoBox';\n        this.boxStyle = options.boxStyle || {};\n        this.closeBoxMargin = options.closeBoxMargin || '2px';\n        this.closeBoxURL = options.closeBoxURL || 'http://www.google.com/intl/en_us/mapfiles/close.gif';\n        if (options.closeBoxURL === '') {\n            this.closeBoxURL = '';\n        }\n        this.infoBoxClearance = options.infoBoxClearance || new google.maps.Size(1, 1);\n        if (typeof options.visible === 'undefined') {\n            if (typeof options.isHidden === 'undefined') {\n                options.visible = true;\n            }\n            else {\n                options.visible = !options.isHidden;\n            }\n        }\n        this.isHidden = !options.visible;\n        this.alignBottom = options.alignBottom || false;\n        this.pane = options.pane || 'floatPane';\n        this.enableEventPropagation = options.enableEventPropagation || false;\n        this.div = null;\n        this.closeListener = null;\n        this.moveListener = null;\n        this.mapListener = null;\n        this.contextListener = null;\n        this.eventListeners = null;\n        this.fixedWidthSet = null;\n    }\n    InfoBox.prototype.createInfoBoxDiv = function () {\n        var _this = this;\n        // This handler ignores the current event in the InfoBox and conditionally prevents\n        // the event from being passed on to the map. It is used for the contextmenu event.\n        var ignoreHandler = function (event) {\n            event.returnValue = false;\n            if (event.preventDefault) {\n                event.preventDefault();\n            }\n            if (!_this.enableEventPropagation) {\n                cancelHandler(event);\n            }\n        };\n        if (!this.div) {\n            this.div = document.createElement('div');\n            this.setBoxStyle();\n            if (typeof this.content === 'string') {\n                this.div.innerHTML = this.getCloseBoxImg() + this.content;\n            }\n            else {\n                this.div.innerHTML = this.getCloseBoxImg();\n                this.div.appendChild(this.content);\n            }\n            var panes = this.getPanes();\n            if (panes !== null) {\n                panes[this.pane].appendChild(this.div); // Add the InfoBox div to the DOM\n            }\n            this.addClickHandler();\n            if (this.div.style.width) {\n                this.fixedWidthSet = true;\n            }\n            else {\n                if (this.maxWidth !== 0 && this.div.offsetWidth > this.maxWidth) {\n                    this.div.style.width = this.maxWidth + 'px';\n                    this.fixedWidthSet = true;\n                }\n                else {\n                    // The following code is needed to overcome problems with MSIE\n                    var bw = this.getBoxWidths();\n                    this.div.style.width = this.div.offsetWidth - bw.left - bw.right + 'px';\n                    this.fixedWidthSet = false;\n                }\n            }\n            this.panBox(this.disableAutoPan);\n            if (!this.enableEventPropagation) {\n                this.eventListeners = [];\n                // Cancel event propagation.\n                // Note: mousemove not included (to resolve Issue 152)\n                var events = [\n                    'mousedown',\n                    'mouseover',\n                    'mouseout',\n                    'mouseup',\n                    'click',\n                    'dblclick',\n                    'touchstart',\n                    'touchend',\n                    'touchmove',\n                ];\n                for (var _i = 0, events_1 = events; _i < events_1.length; _i++) {\n                    var event_1 = events_1[_i];\n                    this.eventListeners.push(google.maps.event.addListener(this.div, event_1, cancelHandler));\n                }\n                // Workaround for Google bug that causes the cursor to change to a pointer\n                // when the mouse moves over a marker underneath InfoBox.\n                this.eventListeners.push(google.maps.event.addListener(this.div, 'mouseover', function () {\n                    if (_this.div) {\n                        _this.div.style.cursor = 'default';\n                    }\n                }));\n            }\n            this.contextListener = google.maps.event.addListener(this.div, 'contextmenu', ignoreHandler);\n            /**\n             * This event is fired when the DIV containing the InfoBox's content is attached to the DOM.\n             * @name InfoBox#domready\n             * @event\n             */\n            google.maps.event.trigger(this, 'domready');\n        }\n    };\n    InfoBox.prototype.getCloseBoxImg = function () {\n        var img = '';\n        if (this.closeBoxURL !== '') {\n            img = '<img alt=\"\"';\n            img += ' aria-hidden=\"true\"';\n            img += \" src='\" + this.closeBoxURL + \"'\";\n            img += ' align=right'; // Do this because Opera chokes on style='float: right;'\n            img += \" style='\";\n            img += ' position: relative;'; // Required by MSIE\n            img += ' cursor: pointer;';\n            img += ' margin: ' + this.closeBoxMargin + ';';\n            img += \"'>\";\n        }\n        return img;\n    };\n    InfoBox.prototype.addClickHandler = function () {\n        this.closeListener = this.div && this.div.firstChild && this.closeBoxURL !== ''\n            ? google.maps.event.addListener(this.div.firstChild, 'click', this.getCloseClickHandler())\n            : null;\n    };\n    InfoBox.prototype.closeClickHandler = function (event) {\n        // 1.0.3 fix: Always prevent propagation of a close box click to the map:\n        event.cancelBubble = true;\n        if (event.stopPropagation) {\n            event.stopPropagation();\n        }\n        /**\n         * This event is fired when the InfoBox's close box is clicked.\n         * @name InfoBox#closeclick\n         * @event\n         */\n        google.maps.event.trigger(this, 'closeclick');\n        this.close();\n    };\n    InfoBox.prototype.getCloseClickHandler = function () {\n        return this.closeClickHandler;\n    };\n    InfoBox.prototype.panBox = function (disablePan) {\n        if (this.div && !disablePan) {\n            // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n            // @ts-ignore\n            var map = this.getMap();\n            // Only pan if attached to map, not panorama\n            if (map instanceof google.maps.Map) {\n                var xOffset = 0;\n                var yOffset = 0;\n                var bounds = map.getBounds();\n                if (bounds && !bounds.contains(this.position)) {\n                    // Marker not in visible area of map, so set center\n                    // of map to the marker position first.\n                    map.setCenter(this.position);\n                }\n                var mapDiv = map.getDiv();\n                // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                // @ts-ignore\n                var mapWidth = mapDiv.offsetWidth;\n                // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                // @ts-ignore\n                var mapHeight = mapDiv.offsetHeight;\n                var iwOffsetX = this.pixelOffset.width;\n                var iwOffsetY = this.pixelOffset.height;\n                var iwWidth = this.div.offsetWidth;\n                var iwHeight = this.div.offsetHeight;\n                var padX = this.infoBoxClearance.width;\n                var padY = this.infoBoxClearance.height;\n                // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                // @ts-ignore\n                var projection = this.getProjection();\n                var pixPosition = projection.fromLatLngToContainerPixel(this.position);\n                if (pixPosition !== null) {\n                    if (pixPosition.x < -iwOffsetX + padX) {\n                        xOffset = pixPosition.x + iwOffsetX - padX;\n                    }\n                    else if (pixPosition.x + iwWidth + iwOffsetX + padX > mapWidth) {\n                        xOffset = pixPosition.x + iwWidth + iwOffsetX + padX - mapWidth;\n                    }\n                    if (this.alignBottom) {\n                        if (pixPosition.y < -iwOffsetY + padY + iwHeight) {\n                            yOffset = pixPosition.y + iwOffsetY - padY - iwHeight;\n                        }\n                        else if (pixPosition.y + iwOffsetY + padY > mapHeight) {\n                            yOffset = pixPosition.y + iwOffsetY + padY - mapHeight;\n                        }\n                    }\n                    else {\n                        if (pixPosition.y < -iwOffsetY + padY) {\n                            yOffset = pixPosition.y + iwOffsetY - padY;\n                        }\n                        else if (pixPosition.y + iwHeight + iwOffsetY + padY > mapHeight) {\n                            yOffset = pixPosition.y + iwHeight + iwOffsetY + padY - mapHeight;\n                        }\n                    }\n                }\n                if (!(xOffset === 0 && yOffset === 0)) {\n                    // Move the map to the shifted center.\n                    map.panBy(xOffset, yOffset);\n                }\n            }\n        }\n    };\n    InfoBox.prototype.setBoxStyle = function () {\n        if (this.div) {\n            // Apply style values from the style sheet defined in the boxClass parameter:\n            this.div.className = this.boxClass;\n            // Clear existing inline style values:\n            this.div.style.cssText = '';\n            // Apply style values defined in the boxStyle parameter:\n            var boxStyle = this.boxStyle;\n            for (var i in boxStyle) {\n                if (Object.prototype.hasOwnProperty.call(boxStyle, i)) {\n                    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                    // @ts-ignore\n                    this.div.style[i] = boxStyle[i];\n                }\n            }\n            // Fix for iOS disappearing InfoBox problem\n            // See http://stackoverflow.com/questions/9229535/google-maps-markers-disappear-at-certain-zoom-level-only-on-iphone-ipad\n            this.div.style.webkitTransform = 'translateZ(0)';\n            // Fix up opacity style for benefit of MSIE\n            if (typeof this.div.style.opacity !== 'undefined' && this.div.style.opacity !== '') {\n                // See http://www.quirksmode.org/css/opacity.html\n                var opacity = parseFloat(this.div.style.opacity || '');\n                // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                // @ts-ignore\n                this.div.style.msFilter =\n                    '\"progid:DXImageTransform.Microsoft.Alpha(Opacity=' + opacity * 100 + ')\"';\n                this.div.style.filter = 'alpha(opacity=' + opacity * 100 + ')';\n            }\n            // Apply required styles\n            this.div.style.position = 'absolute';\n            this.div.style.visibility = 'hidden';\n            if (this.zIndex !== null) {\n                this.div.style.zIndex = this.zIndex + '';\n            }\n            if (!this.div.style.overflow) {\n                this.div.style.overflow = 'auto';\n            }\n        }\n    };\n    InfoBox.prototype.getBoxWidths = function () {\n        var bw = { top: 0, bottom: 0, left: 0, right: 0 };\n        if (!this.div) {\n            return bw;\n        }\n        if (document.defaultView) {\n            var ownerDocument = this.div.ownerDocument;\n            var computedStyle = ownerDocument && ownerDocument.defaultView\n                ? ownerDocument.defaultView.getComputedStyle(this.div, '')\n                : null;\n            if (computedStyle) {\n                // The computed styles are always in pixel units (good!)\n                bw.top = parseInt(computedStyle.borderTopWidth || '', 10) || 0;\n                bw.bottom = parseInt(computedStyle.borderBottomWidth || '', 10) || 0;\n                bw.left = parseInt(computedStyle.borderLeftWidth || '', 10) || 0;\n                bw.right = parseInt(computedStyle.borderRightWidth || '', 10) || 0;\n            }\n        }\n        else if (\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        document.documentElement.currentStyle // MSIE\n        ) {\n            // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n            // @ts-ignore\n            var currentStyle = this.div.currentStyle;\n            if (currentStyle) {\n                // The current styles may not be in pixel units, but assume they are (bad!)\n                bw.top = parseInt(currentStyle.borderTopWidth || '', 10) || 0;\n                bw.bottom = parseInt(currentStyle.borderBottomWidth || '', 10) || 0;\n                bw.left = parseInt(currentStyle.borderLeftWidth || '', 10) || 0;\n                bw.right = parseInt(currentStyle.borderRightWidth || '', 10) || 0;\n            }\n        }\n        return bw;\n    };\n    InfoBox.prototype.onRemove = function () {\n        if (this.div && this.div.parentNode) {\n            this.div.parentNode.removeChild(this.div);\n            this.div = null;\n        }\n    };\n    InfoBox.prototype.draw = function () {\n        this.createInfoBoxDiv();\n        if (this.div) {\n            // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n            // @ts-ignore\n            var projection = this.getProjection();\n            var pixPosition = projection.fromLatLngToDivPixel(this.position);\n            if (pixPosition !== null) {\n                this.div.style.left = pixPosition.x + this.pixelOffset.width + 'px';\n                if (this.alignBottom) {\n                    this.div.style.bottom = -(pixPosition.y + this.pixelOffset.height) + 'px';\n                }\n                else {\n                    this.div.style.top = pixPosition.y + this.pixelOffset.height + 'px';\n                }\n            }\n            if (this.isHidden) {\n                this.div.style.visibility = 'hidden';\n            }\n            else {\n                this.div.style.visibility = 'visible';\n            }\n        }\n    };\n    InfoBox.prototype.setOptions = function (options) {\n        if (options === void 0) { options = {}; }\n        if (typeof options.boxClass !== 'undefined') {\n            // Must be first\n            this.boxClass = options.boxClass;\n            this.setBoxStyle();\n        }\n        if (typeof options.boxStyle !== 'undefined') {\n            // Must be second\n            this.boxStyle = options.boxStyle;\n            this.setBoxStyle();\n        }\n        if (typeof options.content !== 'undefined') {\n            this.setContent(options.content);\n        }\n        if (typeof options.disableAutoPan !== 'undefined') {\n            this.disableAutoPan = options.disableAutoPan;\n        }\n        if (typeof options.maxWidth !== 'undefined') {\n            this.maxWidth = options.maxWidth;\n        }\n        if (typeof options.pixelOffset !== 'undefined') {\n            this.pixelOffset = options.pixelOffset;\n        }\n        if (typeof options.alignBottom !== 'undefined') {\n            this.alignBottom = options.alignBottom;\n        }\n        if (typeof options.position !== 'undefined') {\n            this.setPosition(options.position);\n        }\n        if (typeof options.zIndex !== 'undefined') {\n            this.setZIndex(options.zIndex);\n        }\n        if (typeof options.closeBoxMargin !== 'undefined') {\n            this.closeBoxMargin = options.closeBoxMargin;\n        }\n        if (typeof options.closeBoxURL !== 'undefined') {\n            this.closeBoxURL = options.closeBoxURL;\n        }\n        if (typeof options.infoBoxClearance !== 'undefined') {\n            this.infoBoxClearance = options.infoBoxClearance;\n        }\n        if (typeof options.isHidden !== 'undefined') {\n            this.isHidden = options.isHidden;\n        }\n        if (typeof options.visible !== 'undefined') {\n            this.isHidden = !options.visible;\n        }\n        if (typeof options.enableEventPropagation !== 'undefined') {\n            this.enableEventPropagation = options.enableEventPropagation;\n        }\n        if (this.div) {\n            this.draw();\n        }\n    };\n    InfoBox.prototype.setContent = function (content) {\n        this.content = content;\n        if (this.div) {\n            if (this.closeListener) {\n                google.maps.event.removeListener(this.closeListener);\n                this.closeListener = null;\n            }\n            // Odd code required to make things work with MSIE.\n            if (!this.fixedWidthSet) {\n                this.div.style.width = '';\n            }\n            if (typeof content === 'string') {\n                this.div.innerHTML = this.getCloseBoxImg() + content;\n            }\n            else {\n                this.div.innerHTML = this.getCloseBoxImg();\n                this.div.appendChild(content);\n            }\n            // Perverse code required to make things work with MSIE.\n            // (Ensures the close box does, in fact, float to the right.)\n            if (!this.fixedWidthSet) {\n                this.div.style.width = this.div.offsetWidth + 'px';\n                if (typeof content === 'string') {\n                    this.div.innerHTML = this.getCloseBoxImg() + content;\n                }\n                else {\n                    this.div.innerHTML = this.getCloseBoxImg();\n                    this.div.appendChild(content);\n                }\n            }\n            this.addClickHandler();\n        }\n        /**\n         * This event is fired when the content of the InfoBox changes.\n         * @name InfoBox#content_changed\n         * @event\n         */\n        google.maps.event.trigger(this, 'content_changed');\n    };\n    InfoBox.prototype.setPosition = function (latLng) {\n        this.position = latLng;\n        if (this.div) {\n            this.draw();\n        }\n        /**\n         * This event is fired when the position of the InfoBox changes.\n         * @name InfoBox#position_changed\n         * @event\n         */\n        google.maps.event.trigger(this, 'position_changed');\n    };\n    InfoBox.prototype.setVisible = function (isVisible) {\n        this.isHidden = !isVisible;\n        if (this.div) {\n            this.div.style.visibility = this.isHidden ? 'hidden' : 'visible';\n        }\n    };\n    InfoBox.prototype.setZIndex = function (index) {\n        this.zIndex = index;\n        if (this.div) {\n            this.div.style.zIndex = index + '';\n        }\n        /**\n         * This event is fired when the zIndex of the InfoBox changes.\n         * @name InfoBox#zindex_changed\n         * @event\n         */\n        google.maps.event.trigger(this, 'zindex_changed');\n    };\n    InfoBox.prototype.getContent = function () {\n        return this.content;\n    };\n    InfoBox.prototype.getPosition = function () {\n        return this.position;\n    };\n    InfoBox.prototype.getZIndex = function () {\n        return this.zIndex;\n    };\n    InfoBox.prototype.getVisible = function () {\n        var map = this.getMap();\n        return typeof map === 'undefined' || map === null ? false : !this.isHidden;\n    };\n    InfoBox.prototype.show = function () {\n        this.isHidden = false;\n        if (this.div) {\n            this.div.style.visibility = 'visible';\n        }\n    };\n    InfoBox.prototype.hide = function () {\n        this.isHidden = true;\n        if (this.div) {\n            this.div.style.visibility = 'hidden';\n        }\n    };\n    InfoBox.prototype.open = function (map, anchor) {\n        var _this = this;\n        if (anchor) {\n            // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n            // @ts-ignore\n            this.position = anchor.getPosition();\n            this.moveListener = google.maps.event.addListener(anchor, 'position_changed', function () {\n                // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                // @ts-ignore\n                var position = anchor.getPosition();\n                _this.setPosition(position);\n            });\n            this.mapListener = google.maps.event.addListener(anchor, 'map_changed', function () {\n                // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                // @ts-ignore\n                _this.setMap(anchor.map);\n            });\n        }\n        this.setMap(map);\n        if (this.div) {\n            this.panBox();\n        }\n    };\n    InfoBox.prototype.close = function () {\n        if (this.closeListener) {\n            google.maps.event.removeListener(this.closeListener);\n            this.closeListener = null;\n        }\n        if (this.eventListeners) {\n            for (var _i = 0, _a = this.eventListeners; _i < _a.length; _i++) {\n                var eventListener = _a[_i];\n                google.maps.event.removeListener(eventListener);\n            }\n            this.eventListeners = null;\n        }\n        if (this.moveListener) {\n            google.maps.event.removeListener(this.moveListener);\n            this.moveListener = null;\n        }\n        if (this.mapListener) {\n            google.maps.event.removeListener(this.mapListener);\n            this.mapListener = null;\n        }\n        if (this.contextListener) {\n            google.maps.event.removeListener(this.contextListener);\n            this.contextListener = null;\n        }\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        this.setMap(null);\n    };\n    InfoBox.prototype.extend = function (obj1, obj2) {\n        return function applyExtend(object) {\n            for (var property in object.prototype) {\n                if (!Object.prototype.hasOwnProperty.call(this, property)) {\n                    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                    // @ts-ignore\n                    this.prototype[property] = object.prototype[property];\n                }\n            }\n            return this;\n        }.apply(obj1, [obj2]);\n    };\n    return InfoBox;\n}());\n\nvar eventMap$d = {\n    onCloseClick: 'closeclick',\n    onContentChanged: 'content_changed',\n    onDomReady: 'domready',\n    onPositionChanged: 'position_changed',\n    onZindexChanged: 'zindex_changed',\n};\nvar updaterMap$d = {\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n    position: function (instance, position) {\n        if (position instanceof google.maps.LatLng) {\n            instance.setPosition(position);\n        }\n        else {\n            instance.setPosition(new google.maps.LatLng(position.lat, position.lng));\n        }\n    },\n    visible: function (instance, visible) {\n        instance.setVisible(visible);\n    },\n    zIndex: function (instance, zIndex) {\n        instance.setZIndex(zIndex);\n    },\n};\nvar defaultOptions$3 = {};\nfunction InfoBoxFunctional(_a) {\n    var children = _a.children, anchor = _a.anchor, options = _a.options, position = _a.position, zIndex = _a.zIndex, onCloseClick = _a.onCloseClick, onDomReady = _a.onDomReady, onContentChanged = _a.onContentChanged, onPositionChanged = _a.onPositionChanged, onZindexChanged = _a.onZindexChanged, onLoad = _a.onLoad, onUnmount = _a.onUnmount;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    var _c = useState(null), closeClickListener = _c[0], setCloseClickListener = _c[1];\n    var _d = useState(null), domReadyClickListener = _d[0], setDomReadyClickListener = _d[1];\n    var _e = useState(null), contentChangedClickListener = _e[0], setContentChangedClickListener = _e[1];\n    var _f = useState(null), positionChangedClickListener = _f[0], setPositionChangedClickListener = _f[1];\n    var _g = useState(null), zIndexChangedClickListener = _g[0], setZindexChangedClickListener = _g[1];\n    var containerElementRef = useRef(null);\n    // Order does matter\n    useEffect(function () {\n        if (map && instance !== null) {\n            instance.close();\n            if (anchor) {\n                instance.open(map, anchor);\n            }\n            else if (instance.getPosition()) {\n                instance.open(map);\n            }\n        }\n    }, [map, instance, anchor]);\n    useEffect(function () {\n        if (options && instance !== null) {\n            instance.setOptions(options);\n        }\n    }, [instance, options]);\n    useEffect(function () {\n        if (position && instance !== null) {\n            var positionLatLng = position instanceof google.maps.LatLng\n                ? position\n                // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                // @ts-ignore\n                : new google.maps.LatLng(position.lat, position.lng);\n            instance.setPosition(positionLatLng);\n        }\n    }, [position]);\n    useEffect(function () {\n        if (typeof zIndex === 'number' && instance !== null) {\n            instance.setZIndex(zIndex);\n        }\n    }, [zIndex]);\n    useEffect(function () {\n        if (instance && onCloseClick) {\n            if (closeClickListener !== null) {\n                google.maps.event.removeListener(closeClickListener);\n            }\n            setCloseClickListener(google.maps.event.addListener(instance, 'closeclick', onCloseClick));\n        }\n    }, [onCloseClick]);\n    useEffect(function () {\n        if (instance && onDomReady) {\n            if (domReadyClickListener !== null) {\n                google.maps.event.removeListener(domReadyClickListener);\n            }\n            setDomReadyClickListener(google.maps.event.addListener(instance, 'domready', onDomReady));\n        }\n    }, [onDomReady]);\n    useEffect(function () {\n        if (instance && onContentChanged) {\n            if (contentChangedClickListener !== null) {\n                google.maps.event.removeListener(contentChangedClickListener);\n            }\n            setContentChangedClickListener(google.maps.event.addListener(instance, 'content_changed', onContentChanged));\n        }\n    }, [onContentChanged]);\n    useEffect(function () {\n        if (instance && onPositionChanged) {\n            if (positionChangedClickListener !== null) {\n                google.maps.event.removeListener(positionChangedClickListener);\n            }\n            setPositionChangedClickListener(google.maps.event.addListener(instance, 'position_changed', onPositionChanged));\n        }\n    }, [onPositionChanged]);\n    useEffect(function () {\n        if (instance && onZindexChanged) {\n            if (zIndexChangedClickListener !== null) {\n                google.maps.event.removeListener(zIndexChangedClickListener);\n            }\n            setZindexChangedClickListener(google.maps.event.addListener(instance, 'zindex_changed', onZindexChanged));\n        }\n    }, [onZindexChanged]);\n    useEffect(function () {\n        if (map) {\n            var _a = options || defaultOptions$3, position_1 = _a.position, infoBoxOptions = __rest$1(_a, [\"position\"]);\n            var positionLatLng = void 0;\n            if (position_1 && !(position_1 instanceof google.maps.LatLng)) {\n                // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                // @ts-ignore\n                positionLatLng = new google.maps.LatLng(position_1.lat, position_1.lng);\n            }\n            var infoBox = new InfoBox(__assign(__assign({}, infoBoxOptions), (positionLatLng ? { position: positionLatLng } : {})));\n            containerElementRef.current = document.createElement('div');\n            setInstance(infoBox);\n            if (onCloseClick) {\n                setCloseClickListener(google.maps.event.addListener(infoBox, 'closeclick', onCloseClick));\n            }\n            if (onDomReady) {\n                setDomReadyClickListener(google.maps.event.addListener(infoBox, 'domready', onDomReady));\n            }\n            if (onContentChanged) {\n                setContentChangedClickListener(google.maps.event.addListener(infoBox, 'content_changed', onContentChanged));\n            }\n            if (onPositionChanged) {\n                setPositionChangedClickListener(google.maps.event.addListener(infoBox, 'position_changed', onPositionChanged));\n            }\n            if (onZindexChanged) {\n                setZindexChangedClickListener(google.maps.event.addListener(infoBox, 'zindex_changed', onZindexChanged));\n            }\n            infoBox.setContent(containerElementRef.current);\n            if (anchor) {\n                infoBox.open(map, anchor);\n            }\n            else if (infoBox.getPosition()) {\n                infoBox.open(map);\n            }\n            else {\n                invariant$1(false, 'You must provide either an anchor or a position prop for <InfoBox>.');\n            }\n            if (onLoad) {\n                onLoad(infoBox);\n            }\n        }\n        return function () {\n            if (instance !== null) {\n                if (closeClickListener) {\n                    google.maps.event.removeListener(closeClickListener);\n                }\n                if (contentChangedClickListener) {\n                    google.maps.event.removeListener(contentChangedClickListener);\n                }\n                if (domReadyClickListener) {\n                    google.maps.event.removeListener(domReadyClickListener);\n                }\n                if (positionChangedClickListener) {\n                    google.maps.event.removeListener(positionChangedClickListener);\n                }\n                if (zIndexChangedClickListener) {\n                    google.maps.event.removeListener(zIndexChangedClickListener);\n                }\n                if (onUnmount) {\n                    onUnmount(instance);\n                }\n                instance.close();\n            }\n        };\n    }, []);\n    return containerElementRef.current ? createPortal(Children.only(children), containerElementRef.current) : null;\n}\nvar InfoBoxF = memo(InfoBoxFunctional);\nvar InfoBoxComponent = /** @class */ (function (_super) {\n    __extends(InfoBoxComponent, _super);\n    function InfoBoxComponent() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.containerElement = null;\n        _this.state = {\n            infoBox: null,\n        };\n        _this.open = function (infoBox, anchor) {\n            if (anchor) {\n                if (_this.context !== null) {\n                    infoBox.open(_this.context, anchor);\n                }\n            }\n            else if (infoBox.getPosition()) {\n                if (_this.context !== null) {\n                    infoBox.open(_this.context);\n                }\n            }\n            else {\n                invariant$1(false, 'You must provide either an anchor or a position prop for <InfoBox>.');\n            }\n        };\n        _this.setInfoBoxCallback = function () {\n            if (_this.state.infoBox !== null && _this.containerElement !== null) {\n                _this.state.infoBox.setContent(_this.containerElement);\n                _this.open(_this.state.infoBox, _this.props.anchor);\n                if (_this.props.onLoad) {\n                    _this.props.onLoad(_this.state.infoBox);\n                }\n            }\n        };\n        return _this;\n    }\n    InfoBoxComponent.prototype.componentDidMount = function () {\n        var _a = this.props.options || {}, position = _a.position, infoBoxOptions = __rest$1(_a, [\"position\"]);\n        var positionLatLng;\n        if (position && !(position instanceof google.maps.LatLng)) {\n            // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n            // @ts-ignore\n            positionLatLng = new google.maps.LatLng(position.lat, position.lng);\n        }\n        var infoBox = new InfoBox(__assign(__assign({}, infoBoxOptions), (positionLatLng ? { position: positionLatLng } : {})));\n        this.containerElement = document.createElement('div');\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$d,\n            eventMap: eventMap$d,\n            prevProps: {},\n            nextProps: this.props,\n            instance: infoBox,\n        });\n        this.setState({ infoBox: infoBox }, this.setInfoBoxCallback);\n    };\n    InfoBoxComponent.prototype.componentDidUpdate = function (prevProps) {\n        var infoBox = this.state.infoBox;\n        if (infoBox !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$d,\n                eventMap: eventMap$d,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: infoBox,\n            });\n        }\n    };\n    InfoBoxComponent.prototype.componentWillUnmount = function () {\n        var onUnmount = this.props.onUnmount;\n        var infoBox = this.state.infoBox;\n        if (infoBox !== null) {\n            if (onUnmount) {\n                onUnmount(infoBox);\n            }\n            unregisterEvents(this.registeredEvents);\n            infoBox.close();\n        }\n    };\n    InfoBoxComponent.prototype.render = function () {\n        return this.containerElement ? createPortal(Children.only(this.props.children), this.containerElement) : null;\n    };\n    InfoBoxComponent.contextType = MapContext;\n    return InfoBoxComponent;\n}(PureComponent));\n\n// do not edit .js files directly - edit src/index.jst\n\n\n\nvar fastDeepEqual = function equal(a, b) {\n  if (a === b) return true;\n\n  if (a && b && typeof a == 'object' && typeof b == 'object') {\n    if (a.constructor !== b.constructor) return false;\n\n    var length, i, keys;\n    if (Array.isArray(a)) {\n      length = a.length;\n      if (length != b.length) return false;\n      for (i = length; i-- !== 0;)\n        if (!equal(a[i], b[i])) return false;\n      return true;\n    }\n\n\n\n    if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n    if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n    if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n    keys = Object.keys(a);\n    length = keys.length;\n    if (length !== Object.keys(b).length) return false;\n\n    for (i = length; i-- !== 0;)\n      if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n    for (i = length; i-- !== 0;) {\n      var key = keys[i];\n\n      if (!equal(a[key], b[key])) return false;\n    }\n\n    return true;\n  }\n\n  // true if both NaN, false otherwise\n  return a!==a && b!==b;\n};\n\nvar equal = /*@__PURE__*/getDefaultExportFromCjs(fastDeepEqual);\n\nconst ARRAY_TYPES = [\n    Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array,\n    Int32Array, Uint32Array, Float32Array, Float64Array\n];\n\n/** @typedef {Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor} TypedArrayConstructor */\n\nconst VERSION = 1; // serialized format version\nconst HEADER_SIZE = 8;\n\nclass KDBush {\n\n    /**\n     * Creates an index from raw `ArrayBuffer` data.\n     * @param {ArrayBuffer} data\n     */\n    static from(data) {\n        if (!(data instanceof ArrayBuffer)) {\n            throw new Error('Data must be an instance of ArrayBuffer.');\n        }\n        const [magic, versionAndType] = new Uint8Array(data, 0, 2);\n        if (magic !== 0xdb) {\n            throw new Error('Data does not appear to be in a KDBush format.');\n        }\n        const version = versionAndType >> 4;\n        if (version !== VERSION) {\n            throw new Error(`Got v${version} data when expected v${VERSION}.`);\n        }\n        const ArrayType = ARRAY_TYPES[versionAndType & 0x0f];\n        if (!ArrayType) {\n            throw new Error('Unrecognized array type.');\n        }\n        const [nodeSize] = new Uint16Array(data, 2, 1);\n        const [numItems] = new Uint32Array(data, 4, 1);\n\n        return new KDBush(numItems, nodeSize, ArrayType, data);\n    }\n\n    /**\n     * Creates an index that will hold a given number of items.\n     * @param {number} numItems\n     * @param {number} [nodeSize=64] Size of the KD-tree node (64 by default).\n     * @param {TypedArrayConstructor} [ArrayType=Float64Array] The array type used for coordinates storage (`Float64Array` by default).\n     * @param {ArrayBuffer} [data] (For internal use only)\n     */\n    constructor(numItems, nodeSize = 64, ArrayType = Float64Array, data) {\n        if (isNaN(numItems) || numItems < 0) throw new Error(`Unpexpected numItems value: ${numItems}.`);\n\n        this.numItems = +numItems;\n        this.nodeSize = Math.min(Math.max(+nodeSize, 2), 65535);\n        this.ArrayType = ArrayType;\n        this.IndexArrayType = numItems < 65536 ? Uint16Array : Uint32Array;\n\n        const arrayTypeIndex = ARRAY_TYPES.indexOf(this.ArrayType);\n        const coordsByteSize = numItems * 2 * this.ArrayType.BYTES_PER_ELEMENT;\n        const idsByteSize = numItems * this.IndexArrayType.BYTES_PER_ELEMENT;\n        const padCoords = (8 - idsByteSize % 8) % 8;\n\n        if (arrayTypeIndex < 0) {\n            throw new Error(`Unexpected typed array class: ${ArrayType}.`);\n        }\n\n        if (data && (data instanceof ArrayBuffer)) { // reconstruct an index from a buffer\n            this.data = data;\n            this.ids = new this.IndexArrayType(this.data, HEADER_SIZE, numItems);\n            this.coords = new this.ArrayType(this.data, HEADER_SIZE + idsByteSize + padCoords, numItems * 2);\n            this._pos = numItems * 2;\n            this._finished = true;\n        } else { // initialize a new index\n            this.data = new ArrayBuffer(HEADER_SIZE + coordsByteSize + idsByteSize + padCoords);\n            this.ids = new this.IndexArrayType(this.data, HEADER_SIZE, numItems);\n            this.coords = new this.ArrayType(this.data, HEADER_SIZE + idsByteSize + padCoords, numItems * 2);\n            this._pos = 0;\n            this._finished = false;\n\n            // set header\n            new Uint8Array(this.data, 0, 2).set([0xdb, (VERSION << 4) + arrayTypeIndex]);\n            new Uint16Array(this.data, 2, 1)[0] = nodeSize;\n            new Uint32Array(this.data, 4, 1)[0] = numItems;\n        }\n    }\n\n    /**\n     * Add a point to the index.\n     * @param {number} x\n     * @param {number} y\n     * @returns {number} An incremental index associated with the added item (starting from `0`).\n     */\n    add(x, y) {\n        const index = this._pos >> 1;\n        this.ids[index] = index;\n        this.coords[this._pos++] = x;\n        this.coords[this._pos++] = y;\n        return index;\n    }\n\n    /**\n     * Perform indexing of the added points.\n     */\n    finish() {\n        const numAdded = this._pos >> 1;\n        if (numAdded !== this.numItems) {\n            throw new Error(`Added ${numAdded} items when expected ${this.numItems}.`);\n        }\n        // kd-sort both arrays for efficient search\n        sort(this.ids, this.coords, this.nodeSize, 0, this.numItems - 1, 0);\n\n        this._finished = true;\n        return this;\n    }\n\n    /**\n     * Search the index for items within a given bounding box.\n     * @param {number} minX\n     * @param {number} minY\n     * @param {number} maxX\n     * @param {number} maxY\n     * @returns {number[]} An array of indices correponding to the found items.\n     */\n    range(minX, minY, maxX, maxY) {\n        if (!this._finished) throw new Error('Data not yet indexed - call index.finish().');\n\n        const {ids, coords, nodeSize} = this;\n        const stack = [0, ids.length - 1, 0];\n        const result = [];\n\n        // recursively search for items in range in the kd-sorted arrays\n        while (stack.length) {\n            const axis = stack.pop() || 0;\n            const right = stack.pop() || 0;\n            const left = stack.pop() || 0;\n\n            // if we reached \"tree node\", search linearly\n            if (right - left <= nodeSize) {\n                for (let i = left; i <= right; i++) {\n                    const x = coords[2 * i];\n                    const y = coords[2 * i + 1];\n                    if (x >= minX && x <= maxX && y >= minY && y <= maxY) result.push(ids[i]);\n                }\n                continue;\n            }\n\n            // otherwise find the middle index\n            const m = (left + right) >> 1;\n\n            // include the middle item if it's in range\n            const x = coords[2 * m];\n            const y = coords[2 * m + 1];\n            if (x >= minX && x <= maxX && y >= minY && y <= maxY) result.push(ids[m]);\n\n            // queue search in halves that intersect the query\n            if (axis === 0 ? minX <= x : minY <= y) {\n                stack.push(left);\n                stack.push(m - 1);\n                stack.push(1 - axis);\n            }\n            if (axis === 0 ? maxX >= x : maxY >= y) {\n                stack.push(m + 1);\n                stack.push(right);\n                stack.push(1 - axis);\n            }\n        }\n\n        return result;\n    }\n\n    /**\n     * Search the index for items within a given radius.\n     * @param {number} qx\n     * @param {number} qy\n     * @param {number} r Query radius.\n     * @returns {number[]} An array of indices correponding to the found items.\n     */\n    within(qx, qy, r) {\n        if (!this._finished) throw new Error('Data not yet indexed - call index.finish().');\n\n        const {ids, coords, nodeSize} = this;\n        const stack = [0, ids.length - 1, 0];\n        const result = [];\n        const r2 = r * r;\n\n        // recursively search for items within radius in the kd-sorted arrays\n        while (stack.length) {\n            const axis = stack.pop() || 0;\n            const right = stack.pop() || 0;\n            const left = stack.pop() || 0;\n\n            // if we reached \"tree node\", search linearly\n            if (right - left <= nodeSize) {\n                for (let i = left; i <= right; i++) {\n                    if (sqDist(coords[2 * i], coords[2 * i + 1], qx, qy) <= r2) result.push(ids[i]);\n                }\n                continue;\n            }\n\n            // otherwise find the middle index\n            const m = (left + right) >> 1;\n\n            // include the middle item if it's in range\n            const x = coords[2 * m];\n            const y = coords[2 * m + 1];\n            if (sqDist(x, y, qx, qy) <= r2) result.push(ids[m]);\n\n            // queue search in halves that intersect the query\n            if (axis === 0 ? qx - r <= x : qy - r <= y) {\n                stack.push(left);\n                stack.push(m - 1);\n                stack.push(1 - axis);\n            }\n            if (axis === 0 ? qx + r >= x : qy + r >= y) {\n                stack.push(m + 1);\n                stack.push(right);\n                stack.push(1 - axis);\n            }\n        }\n\n        return result;\n    }\n}\n\n/**\n * @param {Uint16Array | Uint32Array} ids\n * @param {InstanceType<TypedArrayConstructor>} coords\n * @param {number} nodeSize\n * @param {number} left\n * @param {number} right\n * @param {number} axis\n */\nfunction sort(ids, coords, nodeSize, left, right, axis) {\n    if (right - left <= nodeSize) return;\n\n    const m = (left + right) >> 1; // middle index\n\n    // sort ids and coords around the middle index so that the halves lie\n    // either left/right or top/bottom correspondingly (taking turns)\n    select(ids, coords, m, left, right, axis);\n\n    // recursively kd-sort first half and second half on the opposite axis\n    sort(ids, coords, nodeSize, left, m - 1, 1 - axis);\n    sort(ids, coords, nodeSize, m + 1, right, 1 - axis);\n}\n\n/**\n * Custom Floyd-Rivest selection algorithm: sort ids and coords so that\n * [left..k-1] items are smaller than k-th item (on either x or y axis)\n * @param {Uint16Array | Uint32Array} ids\n * @param {InstanceType<TypedArrayConstructor>} coords\n * @param {number} k\n * @param {number} left\n * @param {number} right\n * @param {number} axis\n */\nfunction select(ids, coords, k, left, right, axis) {\n\n    while (right > left) {\n        if (right - left > 600) {\n            const n = right - left + 1;\n            const m = k - left + 1;\n            const z = Math.log(n);\n            const s = 0.5 * Math.exp(2 * z / 3);\n            const sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1);\n            const newLeft = Math.max(left, Math.floor(k - m * s / n + sd));\n            const newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd));\n            select(ids, coords, k, newLeft, newRight, axis);\n        }\n\n        const t = coords[2 * k + axis];\n        let i = left;\n        let j = right;\n\n        swapItem(ids, coords, left, k);\n        if (coords[2 * right + axis] > t) swapItem(ids, coords, left, right);\n\n        while (i < j) {\n            swapItem(ids, coords, i, j);\n            i++;\n            j--;\n            while (coords[2 * i + axis] < t) i++;\n            while (coords[2 * j + axis] > t) j--;\n        }\n\n        if (coords[2 * left + axis] === t) swapItem(ids, coords, left, j);\n        else {\n            j++;\n            swapItem(ids, coords, j, right);\n        }\n\n        if (j <= k) left = j + 1;\n        if (k <= j) right = j - 1;\n    }\n}\n\n/**\n * @param {Uint16Array | Uint32Array} ids\n * @param {InstanceType<TypedArrayConstructor>} coords\n * @param {number} i\n * @param {number} j\n */\nfunction swapItem(ids, coords, i, j) {\n    swap(ids, i, j);\n    swap(coords, 2 * i, 2 * j);\n    swap(coords, 2 * i + 1, 2 * j + 1);\n}\n\n/**\n * @param {InstanceType<TypedArrayConstructor>} arr\n * @param {number} i\n * @param {number} j\n */\nfunction swap(arr, i, j) {\n    const tmp = arr[i];\n    arr[i] = arr[j];\n    arr[j] = tmp;\n}\n\n/**\n * @param {number} ax\n * @param {number} ay\n * @param {number} bx\n * @param {number} by\n */\nfunction sqDist(ax, ay, bx, by) {\n    const dx = ax - bx;\n    const dy = ay - by;\n    return dx * dx + dy * dy;\n}\n\nconst defaultOptions$2 = {\n    minZoom: 0,   // min zoom to generate clusters on\n    maxZoom: 16,  // max zoom level to cluster the points on\n    minPoints: 2, // minimum points to form a cluster\n    radius: 40,   // cluster radius in pixels\n    extent: 512,  // tile extent (radius is calculated relative to it)\n    nodeSize: 64, // size of the KD-tree leaf node, affects performance\n    log: false,   // whether to log timing info\n\n    // whether to generate numeric ids for input features (in vector tiles)\n    generateId: false,\n\n    // a reduce function for calculating custom cluster properties\n    reduce: null, // (accumulated, props) => { accumulated.sum += props.sum; }\n\n    // properties to use for individual points when running the reducer\n    map: props => props // props => ({sum: props.my_value})\n};\n\nconst fround = Math.fround || (tmp => ((x) => { tmp[0] = +x; return tmp[0]; }))(new Float32Array(1));\n\nconst OFFSET_ZOOM = 2;\nconst OFFSET_ID = 3;\nconst OFFSET_PARENT = 4;\nconst OFFSET_NUM = 5;\nconst OFFSET_PROP = 6;\n\nclass Supercluster {\n    constructor(options) {\n        this.options = Object.assign(Object.create(defaultOptions$2), options);\n        this.trees = new Array(this.options.maxZoom + 1);\n        this.stride = this.options.reduce ? 7 : 6;\n        this.clusterProps = [];\n    }\n\n    load(points) {\n        const {log, minZoom, maxZoom} = this.options;\n\n        if (log) console.time('total time');\n\n        const timerId = `prepare ${  points.length  } points`;\n        if (log) console.time(timerId);\n\n        this.points = points;\n\n        // generate a cluster object for each point and index input points into a KD-tree\n        const data = [];\n\n        for (let i = 0; i < points.length; i++) {\n            const p = points[i];\n            if (!p.geometry) continue;\n\n            const [lng, lat] = p.geometry.coordinates;\n            const x = fround(lngX(lng));\n            const y = fround(latY(lat));\n            // store internal point/cluster data in flat numeric arrays for performance\n            data.push(\n                x, y, // projected point coordinates\n                Infinity, // the last zoom the point was processed at\n                i, // index of the source feature in the original input array\n                -1, // parent cluster id\n                1 // number of points in a cluster\n            );\n            if (this.options.reduce) data.push(0); // noop\n        }\n        let tree = this.trees[maxZoom + 1] = this._createTree(data);\n\n        if (log) console.timeEnd(timerId);\n\n        // cluster points on max zoom, then cluster the results on previous zoom, etc.;\n        // results in a cluster hierarchy across zoom levels\n        for (let z = maxZoom; z >= minZoom; z--) {\n            const now = +Date.now();\n\n            // create a new set of clusters for the zoom and index them with a KD-tree\n            tree = this.trees[z] = this._createTree(this._cluster(tree, z));\n\n            if (log) console.log('z%d: %d clusters in %dms', z, tree.numItems, +Date.now() - now);\n        }\n\n        if (log) console.timeEnd('total time');\n\n        return this;\n    }\n\n    getClusters(bbox, zoom) {\n        let minLng = ((bbox[0] + 180) % 360 + 360) % 360 - 180;\n        const minLat = Math.max(-90, Math.min(90, bbox[1]));\n        let maxLng = bbox[2] === 180 ? 180 : ((bbox[2] + 180) % 360 + 360) % 360 - 180;\n        const maxLat = Math.max(-90, Math.min(90, bbox[3]));\n\n        if (bbox[2] - bbox[0] >= 360) {\n            minLng = -180;\n            maxLng = 180;\n        } else if (minLng > maxLng) {\n            const easternHem = this.getClusters([minLng, minLat, 180, maxLat], zoom);\n            const westernHem = this.getClusters([-180, minLat, maxLng, maxLat], zoom);\n            return easternHem.concat(westernHem);\n        }\n\n        const tree = this.trees[this._limitZoom(zoom)];\n        const ids = tree.range(lngX(minLng), latY(maxLat), lngX(maxLng), latY(minLat));\n        const data = tree.data;\n        const clusters = [];\n        for (const id of ids) {\n            const k = this.stride * id;\n            clusters.push(data[k + OFFSET_NUM] > 1 ? getClusterJSON(data, k, this.clusterProps) : this.points[data[k + OFFSET_ID]]);\n        }\n        return clusters;\n    }\n\n    getChildren(clusterId) {\n        const originId = this._getOriginId(clusterId);\n        const originZoom = this._getOriginZoom(clusterId);\n        const errorMsg = 'No cluster with the specified id.';\n\n        const tree = this.trees[originZoom];\n        if (!tree) throw new Error(errorMsg);\n\n        const data = tree.data;\n        if (originId * this.stride >= data.length) throw new Error(errorMsg);\n\n        const r = this.options.radius / (this.options.extent * Math.pow(2, originZoom - 1));\n        const x = data[originId * this.stride];\n        const y = data[originId * this.stride + 1];\n        const ids = tree.within(x, y, r);\n        const children = [];\n        for (const id of ids) {\n            const k = id * this.stride;\n            if (data[k + OFFSET_PARENT] === clusterId) {\n                children.push(data[k + OFFSET_NUM] > 1 ? getClusterJSON(data, k, this.clusterProps) : this.points[data[k + OFFSET_ID]]);\n            }\n        }\n\n        if (children.length === 0) throw new Error(errorMsg);\n\n        return children;\n    }\n\n    getLeaves(clusterId, limit, offset) {\n        limit = limit || 10;\n        offset = offset || 0;\n\n        const leaves = [];\n        this._appendLeaves(leaves, clusterId, limit, offset, 0);\n\n        return leaves;\n    }\n\n    getTile(z, x, y) {\n        const tree = this.trees[this._limitZoom(z)];\n        const z2 = Math.pow(2, z);\n        const {extent, radius} = this.options;\n        const p = radius / extent;\n        const top = (y - p) / z2;\n        const bottom = (y + 1 + p) / z2;\n\n        const tile = {\n            features: []\n        };\n\n        this._addTileFeatures(\n            tree.range((x - p) / z2, top, (x + 1 + p) / z2, bottom),\n            tree.data, x, y, z2, tile);\n\n        if (x === 0) {\n            this._addTileFeatures(\n                tree.range(1 - p / z2, top, 1, bottom),\n                tree.data, z2, y, z2, tile);\n        }\n        if (x === z2 - 1) {\n            this._addTileFeatures(\n                tree.range(0, top, p / z2, bottom),\n                tree.data, -1, y, z2, tile);\n        }\n\n        return tile.features.length ? tile : null;\n    }\n\n    getClusterExpansionZoom(clusterId) {\n        let expansionZoom = this._getOriginZoom(clusterId) - 1;\n        while (expansionZoom <= this.options.maxZoom) {\n            const children = this.getChildren(clusterId);\n            expansionZoom++;\n            if (children.length !== 1) break;\n            clusterId = children[0].properties.cluster_id;\n        }\n        return expansionZoom;\n    }\n\n    _appendLeaves(result, clusterId, limit, offset, skipped) {\n        const children = this.getChildren(clusterId);\n\n        for (const child of children) {\n            const props = child.properties;\n\n            if (props && props.cluster) {\n                if (skipped + props.point_count <= offset) {\n                    // skip the whole cluster\n                    skipped += props.point_count;\n                } else {\n                    // enter the cluster\n                    skipped = this._appendLeaves(result, props.cluster_id, limit, offset, skipped);\n                    // exit the cluster\n                }\n            } else if (skipped < offset) {\n                // skip a single point\n                skipped++;\n            } else {\n                // add a single point\n                result.push(child);\n            }\n            if (result.length === limit) break;\n        }\n\n        return skipped;\n    }\n\n    _createTree(data) {\n        const tree = new KDBush(data.length / this.stride | 0, this.options.nodeSize, Float32Array);\n        for (let i = 0; i < data.length; i += this.stride) tree.add(data[i], data[i + 1]);\n        tree.finish();\n        tree.data = data;\n        return tree;\n    }\n\n    _addTileFeatures(ids, data, x, y, z2, tile) {\n        for (const i of ids) {\n            const k = i * this.stride;\n            const isCluster = data[k + OFFSET_NUM] > 1;\n\n            let tags, px, py;\n            if (isCluster) {\n                tags = getClusterProperties(data, k, this.clusterProps);\n                px = data[k];\n                py = data[k + 1];\n            } else {\n                const p = this.points[data[k + OFFSET_ID]];\n                tags = p.properties;\n                const [lng, lat] = p.geometry.coordinates;\n                px = lngX(lng);\n                py = latY(lat);\n            }\n\n            const f = {\n                type: 1,\n                geometry: [[\n                    Math.round(this.options.extent * (px * z2 - x)),\n                    Math.round(this.options.extent * (py * z2 - y))\n                ]],\n                tags\n            };\n\n            // assign id\n            let id;\n            if (isCluster || this.options.generateId) {\n                // optionally generate id for points\n                id = data[k + OFFSET_ID];\n            } else {\n                // keep id if already assigned\n                id = this.points[data[k + OFFSET_ID]].id;\n            }\n\n            if (id !== undefined) f.id = id;\n\n            tile.features.push(f);\n        }\n    }\n\n    _limitZoom(z) {\n        return Math.max(this.options.minZoom, Math.min(Math.floor(+z), this.options.maxZoom + 1));\n    }\n\n    _cluster(tree, zoom) {\n        const {radius, extent, reduce, minPoints} = this.options;\n        const r = radius / (extent * Math.pow(2, zoom));\n        const data = tree.data;\n        const nextData = [];\n        const stride = this.stride;\n\n        // loop through each point\n        for (let i = 0; i < data.length; i += stride) {\n            // if we've already visited the point at this zoom level, skip it\n            if (data[i + OFFSET_ZOOM] <= zoom) continue;\n            data[i + OFFSET_ZOOM] = zoom;\n\n            // find all nearby points\n            const x = data[i];\n            const y = data[i + 1];\n            const neighborIds = tree.within(data[i], data[i + 1], r);\n\n            const numPointsOrigin = data[i + OFFSET_NUM];\n            let numPoints = numPointsOrigin;\n\n            // count the number of points in a potential cluster\n            for (const neighborId of neighborIds) {\n                const k = neighborId * stride;\n                // filter out neighbors that are already processed\n                if (data[k + OFFSET_ZOOM] > zoom) numPoints += data[k + OFFSET_NUM];\n            }\n\n            // if there were neighbors to merge, and there are enough points to form a cluster\n            if (numPoints > numPointsOrigin && numPoints >= minPoints) {\n                let wx = x * numPointsOrigin;\n                let wy = y * numPointsOrigin;\n\n                let clusterProperties;\n                let clusterPropIndex = -1;\n\n                // encode both zoom and point index on which the cluster originated -- offset by total length of features\n                const id = ((i / stride | 0) << 5) + (zoom + 1) + this.points.length;\n\n                for (const neighborId of neighborIds) {\n                    const k = neighborId * stride;\n\n                    if (data[k + OFFSET_ZOOM] <= zoom) continue;\n                    data[k + OFFSET_ZOOM] = zoom; // save the zoom (so it doesn't get processed twice)\n\n                    const numPoints2 = data[k + OFFSET_NUM];\n                    wx += data[k] * numPoints2; // accumulate coordinates for calculating weighted center\n                    wy += data[k + 1] * numPoints2;\n\n                    data[k + OFFSET_PARENT] = id;\n\n                    if (reduce) {\n                        if (!clusterProperties) {\n                            clusterProperties = this._map(data, i, true);\n                            clusterPropIndex = this.clusterProps.length;\n                            this.clusterProps.push(clusterProperties);\n                        }\n                        reduce(clusterProperties, this._map(data, k));\n                    }\n                }\n\n                data[i + OFFSET_PARENT] = id;\n                nextData.push(wx / numPoints, wy / numPoints, Infinity, id, -1, numPoints);\n                if (reduce) nextData.push(clusterPropIndex);\n\n            } else { // left points as unclustered\n                for (let j = 0; j < stride; j++) nextData.push(data[i + j]);\n\n                if (numPoints > 1) {\n                    for (const neighborId of neighborIds) {\n                        const k = neighborId * stride;\n                        if (data[k + OFFSET_ZOOM] <= zoom) continue;\n                        data[k + OFFSET_ZOOM] = zoom;\n                        for (let j = 0; j < stride; j++) nextData.push(data[k + j]);\n                    }\n                }\n            }\n        }\n\n        return nextData;\n    }\n\n    // get index of the point from which the cluster originated\n    _getOriginId(clusterId) {\n        return (clusterId - this.points.length) >> 5;\n    }\n\n    // get zoom of the point from which the cluster originated\n    _getOriginZoom(clusterId) {\n        return (clusterId - this.points.length) % 32;\n    }\n\n    _map(data, i, clone) {\n        if (data[i + OFFSET_NUM] > 1) {\n            const props = this.clusterProps[data[i + OFFSET_PROP]];\n            return clone ? Object.assign({}, props) : props;\n        }\n        const original = this.points[data[i + OFFSET_ID]].properties;\n        const result = this.options.map(original);\n        return clone && result === original ? Object.assign({}, result) : result;\n    }\n}\n\nfunction getClusterJSON(data, i, clusterProps) {\n    return {\n        type: 'Feature',\n        id: data[i + OFFSET_ID],\n        properties: getClusterProperties(data, i, clusterProps),\n        geometry: {\n            type: 'Point',\n            coordinates: [xLng(data[i]), yLat(data[i + 1])]\n        }\n    };\n}\n\nfunction getClusterProperties(data, i, clusterProps) {\n    const count = data[i + OFFSET_NUM];\n    const abbrev =\n        count >= 10000 ? `${Math.round(count / 1000)  }k` :\n        count >= 1000 ? `${Math.round(count / 100) / 10  }k` : count;\n    const propIndex = data[i + OFFSET_PROP];\n    const properties = propIndex === -1 ? {} : Object.assign({}, clusterProps[propIndex]);\n    return Object.assign(properties, {\n        cluster: true,\n        cluster_id: data[i + OFFSET_ID],\n        point_count: count,\n        point_count_abbreviated: abbrev\n    });\n}\n\n// longitude/latitude to spherical mercator in [0..1] range\nfunction lngX(lng) {\n    return lng / 360 + 0.5;\n}\nfunction latY(lat) {\n    const sin = Math.sin(lat * Math.PI / 180);\n    const y = (0.5 - 0.25 * Math.log((1 + sin) / (1 - sin)) / Math.PI);\n    return y < 0 ? 0 : y > 1 ? 1 : y;\n}\n\n// spherical mercator to longitude/latitude\nfunction xLng(x) {\n    return (x - 0.5) * 360;\n}\nfunction yLat(y) {\n    const y2 = (180 - y * 360) * Math.PI / 180;\n    return 360 * Math.atan(Math.exp(y2)) / Math.PI - 90;\n}\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n    var t = {};\r\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n        t[p] = s[p];\r\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n                t[p[i]] = s[p[i]];\r\n        }\r\n    return t;\r\n}\n\n/**\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * util class that creates a common set of convenience functions to wrap\n * shared behavior of Advanced Markers and Markers.\n */\nclass MarkerUtils {\n    static isAdvancedMarkerAvailable(map) {\n        return (google.maps.marker &&\n            map.getMapCapabilities().isAdvancedMarkersAvailable === true);\n    }\n    static isAdvancedMarker(marker) {\n        return (google.maps.marker &&\n            marker instanceof google.maps.marker.AdvancedMarkerElement);\n    }\n    static setMap(marker, map) {\n        if (this.isAdvancedMarker(marker)) {\n            marker.map = map;\n        }\n        else {\n            marker.setMap(map);\n        }\n    }\n    static getPosition(marker) {\n        // SuperClusterAlgorithm.calculate expects a LatLng instance so we fake it for Adv Markers\n        if (this.isAdvancedMarker(marker)) {\n            if (marker.position) {\n                if (marker.position instanceof google.maps.LatLng) {\n                    return marker.position;\n                }\n                // since we can't cast to LatLngLiteral for reasons =(\n                if (marker.position.lat && marker.position.lng) {\n                    return new google.maps.LatLng(marker.position.lat, marker.position.lng);\n                }\n            }\n            return new google.maps.LatLng(null);\n        }\n        return marker.getPosition();\n    }\n    static getVisible(marker) {\n        if (this.isAdvancedMarker(marker)) {\n            /**\n             * Always return true for Advanced Markers because the clusterer\n             * uses getVisible as a way to count legacy markers not as an actual\n             * indicator of visibility for some reason. Even when markers are hidden\n             * Marker.getVisible returns `true` and this is used to set the marker count\n             * on the cluster. See the behavior of Cluster.count\n             */\n            return true;\n        }\n        return marker.getVisible();\n    }\n}\n\n/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nclass Cluster {\n    constructor({ markers, position }) {\n        this.markers = markers;\n        if (position) {\n            if (position instanceof google.maps.LatLng) {\n                this._position = position;\n            }\n            else {\n                this._position = new google.maps.LatLng(position);\n            }\n        }\n    }\n    get bounds() {\n        if (this.markers.length === 0 && !this._position) {\n            return;\n        }\n        const bounds = new google.maps.LatLngBounds(this._position, this._position);\n        for (const marker of this.markers) {\n            bounds.extend(MarkerUtils.getPosition(marker));\n        }\n        return bounds;\n    }\n    get position() {\n        return this._position || this.bounds.getCenter();\n    }\n    /**\n     * Get the count of **visible** markers.\n     */\n    get count() {\n        return this.markers.filter((m) => MarkerUtils.getVisible(m)).length;\n    }\n    /**\n     * Add a marker to the cluster.\n     */\n    push(marker) {\n        this.markers.push(marker);\n    }\n    /**\n     * Cleanup references and remove marker from map.\n     */\n    delete() {\n        if (this.marker) {\n            MarkerUtils.setMap(this.marker, null);\n            this.marker = undefined;\n        }\n        this.markers.length = 0;\n    }\n}\n\n/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Returns the markers visible in a padded map viewport\n *\n * @param map\n * @param mapCanvasProjection\n * @param markers The list of marker to filter\n * @param viewportPaddingPixels The padding in pixel\n * @returns The list of markers in the padded viewport\n */\nconst filterMarkersToPaddedViewport = (map, mapCanvasProjection, markers, viewportPaddingPixels) => {\n    const extendedMapBounds = extendBoundsToPaddedViewport(map.getBounds(), mapCanvasProjection, viewportPaddingPixels);\n    return markers.filter((marker) => extendedMapBounds.contains(MarkerUtils.getPosition(marker)));\n};\n/**\n * Extends a bounds by a number of pixels in each direction\n */\nconst extendBoundsToPaddedViewport = (bounds, projection, numPixels) => {\n    const { northEast, southWest } = latLngBoundsToPixelBounds(bounds, projection);\n    const extendedPixelBounds = extendPixelBounds({ northEast, southWest }, numPixels);\n    return pixelBoundsToLatLngBounds(extendedPixelBounds, projection);\n};\n/**\n * Gets the extended bounds as a bbox [westLng, southLat, eastLng, northLat]\n */\nconst getPaddedViewport = (bounds, projection, pixels) => {\n    const extended = extendBoundsToPaddedViewport(bounds, projection, pixels);\n    const ne = extended.getNorthEast();\n    const sw = extended.getSouthWest();\n    return [sw.lng(), sw.lat(), ne.lng(), ne.lat()];\n};\n/**\n * Returns the distance between 2 positions.\n *\n * @hidden\n */\nconst distanceBetweenPoints = (p1, p2) => {\n    const R = 6371; // Radius of the Earth in km\n    const dLat = ((p2.lat - p1.lat) * Math.PI) / 180;\n    const dLon = ((p2.lng - p1.lng) * Math.PI) / 180;\n    const sinDLat = Math.sin(dLat / 2);\n    const sinDLon = Math.sin(dLon / 2);\n    const a = sinDLat * sinDLat +\n        Math.cos((p1.lat * Math.PI) / 180) *\n            Math.cos((p2.lat * Math.PI) / 180) *\n            sinDLon *\n            sinDLon;\n    const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n    return R * c;\n};\n/**\n * Converts a LatLng bound to pixels.\n *\n * @hidden\n */\nconst latLngBoundsToPixelBounds = (bounds, projection) => {\n    return {\n        northEast: projection.fromLatLngToDivPixel(bounds.getNorthEast()),\n        southWest: projection.fromLatLngToDivPixel(bounds.getSouthWest()),\n    };\n};\n/**\n * Extends a pixel bounds by numPixels in all directions.\n *\n * @hidden\n */\nconst extendPixelBounds = ({ northEast, southWest }, numPixels) => {\n    northEast.x += numPixels;\n    northEast.y -= numPixels;\n    southWest.x -= numPixels;\n    southWest.y += numPixels;\n    return { northEast, southWest };\n};\n/**\n * @hidden\n */\nconst pixelBoundsToLatLngBounds = ({ northEast, southWest }, projection) => {\n    const sw = projection.fromDivPixelToLatLng(southWest);\n    const ne = projection.fromDivPixelToLatLng(northEast);\n    return new google.maps.LatLngBounds(sw, ne);\n};\n\n/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @hidden\n */\nclass AbstractAlgorithm {\n    constructor({ maxZoom = 16 }) {\n        this.maxZoom = maxZoom;\n    }\n    /**\n     * Helper function to bypass clustering based upon some map state such as\n     * zoom, number of markers, etc.\n     *\n     * ```typescript\n     *  cluster({markers, map}: AlgorithmInput): Cluster[] {\n     *    if (shouldBypassClustering(map)) {\n     *      return this.noop({markers})\n     *    }\n     * }\n     * ```\n     */\n    noop({ markers, }) {\n        return noop$1(markers);\n    }\n}\n/**\n * Abstract viewport algorithm proves a class to filter markers by a padded\n * viewport. This is a common optimization.\n *\n * @hidden\n */\nclass AbstractViewportAlgorithm extends AbstractAlgorithm {\n    constructor(_a) {\n        var { viewportPadding = 60 } = _a, options = __rest(_a, [\"viewportPadding\"]);\n        super(options);\n        this.viewportPadding = 60;\n        this.viewportPadding = viewportPadding;\n    }\n    calculate({ markers, map, mapCanvasProjection, }) {\n        if (map.getZoom() >= this.maxZoom) {\n            return {\n                clusters: this.noop({\n                    markers,\n                }),\n                changed: false,\n            };\n        }\n        return {\n            clusters: this.cluster({\n                markers: filterMarkersToPaddedViewport(map, mapCanvasProjection, markers, this.viewportPadding),\n                map,\n                mapCanvasProjection,\n            }),\n        };\n    }\n}\n/**\n * @hidden\n */\nconst noop$1 = (markers) => {\n    const clusters = markers.map((marker) => new Cluster({\n        position: MarkerUtils.getPosition(marker),\n        markers: [marker],\n    }));\n    return clusters;\n};\n\n/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * The default Grid algorithm historically used in Google Maps marker\n * clustering.\n *\n * The Grid algorithm does not implement caching and markers may flash as the\n * viewport changes. Instead use {@link SuperClusterAlgorithm}.\n */\nclass GridAlgorithm extends AbstractViewportAlgorithm {\n    constructor(_a) {\n        var { maxDistance = 40000, gridSize = 40 } = _a, options = __rest(_a, [\"maxDistance\", \"gridSize\"]);\n        super(options);\n        this.clusters = [];\n        this.state = { zoom: -1 };\n        this.maxDistance = maxDistance;\n        this.gridSize = gridSize;\n    }\n    calculate({ markers, map, mapCanvasProjection, }) {\n        const state = { zoom: map.getZoom() };\n        let changed = false;\n        if (this.state.zoom >= this.maxZoom && state.zoom >= this.maxZoom) ;\n        else {\n            changed = !equal(this.state, state);\n        }\n        this.state = state;\n        if (map.getZoom() >= this.maxZoom) {\n            return {\n                clusters: this.noop({\n                    markers,\n                }),\n                changed,\n            };\n        }\n        return {\n            clusters: this.cluster({\n                markers: filterMarkersToPaddedViewport(map, mapCanvasProjection, markers, this.viewportPadding),\n                map,\n                mapCanvasProjection,\n            }),\n        };\n    }\n    cluster({ markers, map, mapCanvasProjection, }) {\n        this.clusters = [];\n        markers.forEach((marker) => {\n            this.addToClosestCluster(marker, map, mapCanvasProjection);\n        });\n        return this.clusters;\n    }\n    addToClosestCluster(marker, map, projection) {\n        let maxDistance = this.maxDistance; // Some large number\n        let cluster = null;\n        for (let i = 0; i < this.clusters.length; i++) {\n            const candidate = this.clusters[i];\n            const distance = distanceBetweenPoints(candidate.bounds.getCenter().toJSON(), MarkerUtils.getPosition(marker).toJSON());\n            if (distance < maxDistance) {\n                maxDistance = distance;\n                cluster = candidate;\n            }\n        }\n        if (cluster &&\n            extendBoundsToPaddedViewport(cluster.bounds, projection, this.gridSize).contains(MarkerUtils.getPosition(marker))) {\n            cluster.push(marker);\n        }\n        else {\n            const cluster = new Cluster({ markers: [marker] });\n            this.clusters.push(cluster);\n        }\n    }\n}\n\n/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Noop algorithm does not generate any clusters or filter markers by the an extended viewport.\n */\nclass NoopAlgorithm extends AbstractAlgorithm {\n    constructor(_a) {\n        var options = __rest(_a, []);\n        super(options);\n    }\n    calculate({ markers, map, mapCanvasProjection, }) {\n        return {\n            clusters: this.cluster({ markers, map, mapCanvasProjection }),\n            changed: false,\n        };\n    }\n    cluster(input) {\n        return this.noop(input);\n    }\n}\n\n/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * A very fast JavaScript algorithm for geospatial point clustering using KD trees.\n *\n * @see https://www.npmjs.com/package/supercluster for more information on options.\n */\nclass SuperClusterAlgorithm extends AbstractAlgorithm {\n    constructor(_a) {\n        var { maxZoom, radius = 60 } = _a, options = __rest(_a, [\"maxZoom\", \"radius\"]);\n        super({ maxZoom });\n        this.state = { zoom: -1 };\n        this.superCluster = new Supercluster(Object.assign({ maxZoom: this.maxZoom, radius }, options));\n    }\n    calculate(input) {\n        let changed = false;\n        const state = { zoom: input.map.getZoom() };\n        if (!equal(input.markers, this.markers)) {\n            changed = true;\n            // TODO use proxy to avoid copy?\n            this.markers = [...input.markers];\n            const points = this.markers.map((marker) => {\n                const position = MarkerUtils.getPosition(marker);\n                const coordinates = [position.lng(), position.lat()];\n                return {\n                    type: \"Feature\",\n                    geometry: {\n                        type: \"Point\",\n                        coordinates,\n                    },\n                    properties: { marker },\n                };\n            });\n            this.superCluster.load(points);\n        }\n        if (!changed) {\n            if (this.state.zoom <= this.maxZoom || state.zoom <= this.maxZoom) {\n                changed = !equal(this.state, state);\n            }\n        }\n        this.state = state;\n        if (changed) {\n            this.clusters = this.cluster(input);\n        }\n        return { clusters: this.clusters, changed };\n    }\n    cluster({ map }) {\n        return this.superCluster\n            .getClusters([-180, -90, 180, 90], Math.round(map.getZoom()))\n            .map((feature) => this.transformCluster(feature));\n    }\n    transformCluster({ geometry: { coordinates: [lng, lat], }, properties, }) {\n        if (properties.cluster) {\n            return new Cluster({\n                markers: this.superCluster\n                    .getLeaves(properties.cluster_id, Infinity)\n                    .map((leaf) => leaf.properties.marker),\n                position: { lat, lng },\n            });\n        }\n        const marker = properties.marker;\n        return new Cluster({\n            markers: [marker],\n            position: MarkerUtils.getPosition(marker),\n        });\n    }\n}\n\n/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * A very fast JavaScript algorithm for geospatial point clustering using KD trees.\n *\n * @see https://www.npmjs.com/package/supercluster for more information on options.\n */\nclass SuperClusterViewportAlgorithm extends AbstractViewportAlgorithm {\n    constructor(_a) {\n        var { maxZoom, radius = 60, viewportPadding = 60 } = _a, options = __rest(_a, [\"maxZoom\", \"radius\", \"viewportPadding\"]);\n        super({ maxZoom, viewportPadding });\n        this.superCluster = new Supercluster(Object.assign({ maxZoom: this.maxZoom, radius }, options));\n        this.state = { zoom: -1, view: [0, 0, 0, 0] };\n    }\n    calculate(input) {\n        const state = {\n            zoom: Math.round(input.map.getZoom()),\n            view: getPaddedViewport(input.map.getBounds(), input.mapCanvasProjection, this.viewportPadding),\n        };\n        let changed = !equal(this.state, state);\n        if (!equal(input.markers, this.markers)) {\n            changed = true;\n            // TODO use proxy to avoid copy?\n            this.markers = [...input.markers];\n            const points = this.markers.map((marker) => {\n                const position = MarkerUtils.getPosition(marker);\n                const coordinates = [position.lng(), position.lat()];\n                return {\n                    type: \"Feature\",\n                    geometry: {\n                        type: \"Point\",\n                        coordinates,\n                    },\n                    properties: { marker },\n                };\n            });\n            this.superCluster.load(points);\n        }\n        if (changed) {\n            this.clusters = this.cluster(input);\n            this.state = state;\n        }\n        return { clusters: this.clusters, changed };\n    }\n    cluster({ map, mapCanvasProjection }) {\n        /* recalculate new state because we can't use the cached version. */\n        const state = {\n            zoom: Math.round(map.getZoom()),\n            view: getPaddedViewport(map.getBounds(), mapCanvasProjection, this.viewportPadding),\n        };\n        return this.superCluster\n            .getClusters(state.view, state.zoom)\n            .map((feature) => this.transformCluster(feature));\n    }\n    transformCluster({ geometry: { coordinates: [lng, lat], }, properties, }) {\n        if (properties.cluster) {\n            return new Cluster({\n                markers: this.superCluster\n                    .getLeaves(properties.cluster_id, Infinity)\n                    .map((leaf) => leaf.properties.marker),\n                position: { lat, lng },\n            });\n        }\n        const marker = properties.marker;\n        return new Cluster({\n            markers: [marker],\n            position: MarkerUtils.getPosition(marker),\n        });\n    }\n}\n\n/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Provides statistics on all clusters in the current render cycle for use in {@link Renderer.render}.\n */\nclass ClusterStats {\n    constructor(markers, clusters) {\n        this.markers = { sum: markers.length };\n        const clusterMarkerCounts = clusters.map((a) => a.count);\n        const clusterMarkerSum = clusterMarkerCounts.reduce((a, b) => a + b, 0);\n        this.clusters = {\n            count: clusters.length,\n            markers: {\n                mean: clusterMarkerSum / clusters.length,\n                sum: clusterMarkerSum,\n                min: Math.min(...clusterMarkerCounts),\n                max: Math.max(...clusterMarkerCounts),\n            },\n        };\n    }\n}\nclass DefaultRenderer {\n    /**\n     * The default render function for the library used by {@link MarkerClusterer}.\n     *\n     * Currently set to use the following:\n     *\n     * ```typescript\n     * // change color if this cluster has more markers than the mean cluster\n     * const color =\n     *   count > Math.max(10, stats.clusters.markers.mean)\n     *     ? \"#ff0000\"\n     *     : \"#0000ff\";\n     *\n     * // create svg url with fill color\n     * const svg = window.btoa(`\n     * <svg fill=\"${color}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 240 240\">\n     *   <circle cx=\"120\" cy=\"120\" opacity=\".6\" r=\"70\" />\n     *   <circle cx=\"120\" cy=\"120\" opacity=\".3\" r=\"90\" />\n     *   <circle cx=\"120\" cy=\"120\" opacity=\".2\" r=\"110\" />\n     *   <circle cx=\"120\" cy=\"120\" opacity=\".1\" r=\"130\" />\n     * </svg>`);\n     *\n     * // create marker using svg icon\n     * return new google.maps.Marker({\n     *   position,\n     *   icon: {\n     *     url: `data:image/svg+xml;base64,${svg}`,\n     *     scaledSize: new google.maps.Size(45, 45),\n     *   },\n     *   label: {\n     *     text: String(count),\n     *     color: \"rgba(255,255,255,0.9)\",\n     *     fontSize: \"12px\",\n     *   },\n     *   // adjust zIndex to be above other markers\n     *   zIndex: 1000 + count,\n     * });\n     * ```\n     */\n    render({ count, position }, stats, map) {\n        // change color if this cluster has more markers than the mean cluster\n        const color = count > Math.max(10, stats.clusters.markers.mean) ? \"#ff0000\" : \"#0000ff\";\n        // create svg literal with fill color\n        const svg = `<svg fill=\"${color}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 240 240\" width=\"50\" height=\"50\">\n<circle cx=\"120\" cy=\"120\" opacity=\".6\" r=\"70\" />\n<circle cx=\"120\" cy=\"120\" opacity=\".3\" r=\"90\" />\n<circle cx=\"120\" cy=\"120\" opacity=\".2\" r=\"110\" />\n<text x=\"50%\" y=\"50%\" style=\"fill:#fff\" text-anchor=\"middle\" font-size=\"50\" dominant-baseline=\"middle\" font-family=\"roboto,arial,sans-serif\">${count}</text>\n</svg>`;\n        const title = `Cluster of ${count} markers`, \n        // adjust zIndex to be above other markers\n        zIndex = Number(google.maps.Marker.MAX_ZINDEX) + count;\n        if (MarkerUtils.isAdvancedMarkerAvailable(map)) {\n            // create cluster SVG element\n            const parser = new DOMParser();\n            const svgEl = parser.parseFromString(svg, \"image/svg+xml\").documentElement;\n            svgEl.setAttribute(\"transform\", \"translate(0 25)\");\n            const clusterOptions = {\n                map,\n                position,\n                zIndex,\n                title,\n                content: svgEl,\n            };\n            return new google.maps.marker.AdvancedMarkerElement(clusterOptions);\n        }\n        const clusterOptions = {\n            position,\n            zIndex,\n            title,\n            icon: {\n                url: `data:image/svg+xml;base64,${btoa(svg)}`,\n                anchor: new google.maps.Point(25, 25),\n            },\n        };\n        return new google.maps.Marker(clusterOptions);\n    }\n}\n\n/**\n * Copyright 2019 Google LLC. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Extends an object's prototype by another's.\n *\n * @param type1 The Type to be extended.\n * @param type2 The Type to extend with.\n * @ignore\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction extend(type1, type2) {\n    /* istanbul ignore next */\n    // eslint-disable-next-line prefer-const\n    for (let property in type2.prototype) {\n        type1.prototype[property] = type2.prototype[property];\n    }\n}\n/**\n * @ignore\n */\nclass OverlayViewSafe {\n    constructor() {\n        // MarkerClusterer implements google.maps.OverlayView interface. We use the\n        // extend function to extend MarkerClusterer with google.maps.OverlayView\n        // because it might not always be available when the code is defined so we\n        // look for it at the last possible moment. If it doesn't exist now then\n        // there is no point going ahead :)\n        extend(OverlayViewSafe, google.maps.OverlayView);\n    }\n}\n\n/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar MarkerClustererEvents;\n(function (MarkerClustererEvents) {\n    MarkerClustererEvents[\"CLUSTERING_BEGIN\"] = \"clusteringbegin\";\n    MarkerClustererEvents[\"CLUSTERING_END\"] = \"clusteringend\";\n    MarkerClustererEvents[\"CLUSTER_CLICK\"] = \"click\";\n})(MarkerClustererEvents || (MarkerClustererEvents = {}));\nconst defaultOnClusterClickHandler = (_, cluster, map) => {\n    map.fitBounds(cluster.bounds);\n};\n/**\n * MarkerClusterer creates and manages per-zoom-level clusters for large amounts\n * of markers. See {@link MarkerClustererOptions} for more details.\n *\n */\nclass MarkerClusterer extends OverlayViewSafe {\n    constructor({ map, markers = [], algorithmOptions = {}, algorithm = new SuperClusterAlgorithm(algorithmOptions), renderer = new DefaultRenderer(), onClusterClick = defaultOnClusterClickHandler, }) {\n        super();\n        this.markers = [...markers];\n        this.clusters = [];\n        this.algorithm = algorithm;\n        this.renderer = renderer;\n        this.onClusterClick = onClusterClick;\n        if (map) {\n            this.setMap(map);\n        }\n    }\n    addMarker(marker, noDraw) {\n        if (this.markers.includes(marker)) {\n            return;\n        }\n        this.markers.push(marker);\n        if (!noDraw) {\n            this.render();\n        }\n    }\n    addMarkers(markers, noDraw) {\n        markers.forEach((marker) => {\n            this.addMarker(marker, true);\n        });\n        if (!noDraw) {\n            this.render();\n        }\n    }\n    removeMarker(marker, noDraw) {\n        const index = this.markers.indexOf(marker);\n        if (index === -1) {\n            // Marker is not in our list of markers, so do nothing:\n            return false;\n        }\n        MarkerUtils.setMap(marker, null);\n        this.markers.splice(index, 1); // Remove the marker from the list of managed markers\n        if (!noDraw) {\n            this.render();\n        }\n        return true;\n    }\n    removeMarkers(markers, noDraw) {\n        let removed = false;\n        markers.forEach((marker) => {\n            removed = this.removeMarker(marker, true) || removed;\n        });\n        if (removed && !noDraw) {\n            this.render();\n        }\n        return removed;\n    }\n    clearMarkers(noDraw) {\n        this.markers.length = 0;\n        if (!noDraw) {\n            this.render();\n        }\n    }\n    /**\n     * Recalculates and draws all the marker clusters.\n     */\n    render() {\n        const map = this.getMap();\n        if (map instanceof google.maps.Map && map.getProjection()) {\n            google.maps.event.trigger(this, MarkerClustererEvents.CLUSTERING_BEGIN, this);\n            const { clusters, changed } = this.algorithm.calculate({\n                markers: this.markers,\n                map,\n                mapCanvasProjection: this.getProjection(),\n            });\n            // Allow algorithms to return flag on whether the clusters/markers have changed.\n            if (changed || changed == undefined) {\n                // Accumulate the markers of the clusters composed of a single marker.\n                // Those clusters directly use the marker.\n                // Clusters with more than one markers use a group marker generated by a renderer.\n                const singleMarker = new Set();\n                for (const cluster of clusters) {\n                    if (cluster.markers.length == 1) {\n                        singleMarker.add(cluster.markers[0]);\n                    }\n                }\n                const groupMarkers = [];\n                // Iterate the clusters that are currently rendered.\n                for (const cluster of this.clusters) {\n                    if (cluster.marker == null) {\n                        continue;\n                    }\n                    if (cluster.markers.length == 1) {\n                        if (!singleMarker.has(cluster.marker)) {\n                            // The marker:\n                            // - was previously rendered because it is from a cluster with 1 marker,\n                            // - should no more be rendered as it is not in singleMarker.\n                            MarkerUtils.setMap(cluster.marker, null);\n                        }\n                    }\n                    else {\n                        // Delay the removal of old group markers to avoid flickering.\n                        groupMarkers.push(cluster.marker);\n                    }\n                }\n                this.clusters = clusters;\n                this.renderClusters();\n                // Delayed removal of the markers of the former groups.\n                requestAnimationFrame(() => groupMarkers.forEach((marker) => MarkerUtils.setMap(marker, null)));\n            }\n            google.maps.event.trigger(this, MarkerClustererEvents.CLUSTERING_END, this);\n        }\n    }\n    onAdd() {\n        this.idleListener = this.getMap().addListener(\"idle\", this.render.bind(this));\n        this.render();\n    }\n    onRemove() {\n        google.maps.event.removeListener(this.idleListener);\n        this.reset();\n    }\n    reset() {\n        this.markers.forEach((marker) => MarkerUtils.setMap(marker, null));\n        this.clusters.forEach((cluster) => cluster.delete());\n        this.clusters = [];\n    }\n    renderClusters() {\n        // Generate stats to pass to renderers.\n        const stats = new ClusterStats(this.markers, this.clusters);\n        const map = this.getMap();\n        this.clusters.forEach((cluster) => {\n            if (cluster.markers.length === 1) {\n                cluster.marker = cluster.markers[0];\n            }\n            else {\n                // Generate the marker to represent the group.\n                cluster.marker = this.renderer.render(cluster, stats, map);\n                // Make sure all individual markers are removed from the map.\n                cluster.markers.forEach((marker) => MarkerUtils.setMap(marker, null));\n                if (this.onClusterClick) {\n                    cluster.marker.addListener(\"click\", \n                    /* istanbul ignore next */\n                    (event) => {\n                        google.maps.event.trigger(this, MarkerClustererEvents.CLUSTER_CLICK, cluster);\n                        this.onClusterClick(event, cluster, map);\n                    });\n                }\n            }\n            MarkerUtils.setMap(cluster.marker, map);\n        });\n    }\n}\n\nvar index_esm = /*#__PURE__*/Object.freeze({\n    __proto__: null,\n    AbstractAlgorithm: AbstractAlgorithm,\n    AbstractViewportAlgorithm: AbstractViewportAlgorithm,\n    Cluster: Cluster,\n    ClusterStats: ClusterStats,\n    DefaultRenderer: DefaultRenderer,\n    GridAlgorithm: GridAlgorithm,\n    MarkerClusterer: MarkerClusterer,\n    get MarkerClustererEvents () { return MarkerClustererEvents; },\n    MarkerUtils: MarkerUtils,\n    NoopAlgorithm: NoopAlgorithm,\n    SuperClusterAlgorithm: SuperClusterAlgorithm,\n    SuperClusterViewportAlgorithm: SuperClusterViewportAlgorithm,\n    defaultOnClusterClickHandler: defaultOnClusterClickHandler,\n    distanceBetweenPoints: distanceBetweenPoints,\n    extendBoundsToPaddedViewport: extendBoundsToPaddedViewport,\n    extendPixelBounds: extendPixelBounds,\n    filterMarkersToPaddedViewport: filterMarkersToPaddedViewport,\n    getPaddedViewport: getPaddedViewport,\n    noop: noop$1,\n    pixelBoundsToLatLngBounds: pixelBoundsToLatLngBounds\n});\n\nfunction useGoogleMarkerClusterer(options) {\n    var map = useGoogleMap();\n    var _a = useState(null), markerClusterer = _a[0], setMarkerClusterer = _a[1];\n    useEffect(function () {\n        if (map && markerClusterer === null) {\n            var markerCluster = new MarkerClusterer(__assign(__assign({}, options), { map: map }));\n            setMarkerClusterer(markerCluster);\n        }\n    }, [map]);\n    return markerClusterer;\n}\n/** Wrapper around [@googlemaps/markerclusterer](https://github.com/googlemaps/js-markerclusterer)\n *\n * Accepts {@link  MarkerClustererOptionsSubset} which is a subset of  {@link MarkerClustererOptions}\n */\nfunction GoogleMarkerClusterer(_a) {\n    var children = _a.children, options = _a.options;\n    var markerClusterer = useGoogleMarkerClusterer(options);\n    return markerClusterer !== null ? children(markerClusterer) : null;\n}\nvar GoogleMarkerClusterer$1 = memo(GoogleMarkerClusterer);\n\nvar eventMap$c = {\n    onCloseClick: 'closeclick',\n    onContentChanged: 'content_changed',\n    onDomReady: 'domready',\n    onPositionChanged: 'position_changed',\n    onZindexChanged: 'zindex_changed',\n};\nvar updaterMap$c = {\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n    position: function (instance, position) {\n        instance.setPosition(position);\n    },\n    zIndex: function (instance, zIndex) {\n        instance.setZIndex(zIndex);\n    },\n};\nfunction InfoWindowFunctional(_a) {\n    var children = _a.children, anchor = _a.anchor, options = _a.options, position = _a.position, zIndex = _a.zIndex, onCloseClick = _a.onCloseClick, onDomReady = _a.onDomReady, onContentChanged = _a.onContentChanged, onPositionChanged = _a.onPositionChanged, onZindexChanged = _a.onZindexChanged, onLoad = _a.onLoad, onUnmount = _a.onUnmount;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    var _c = useState(null), closeclickListener = _c[0], setCloseClickListener = _c[1];\n    var _d = useState(null), domreadyclickListener = _d[0], setDomReadyClickListener = _d[1];\n    var _e = useState(null), contentchangedclickListener = _e[0], setContentChangedClickListener = _e[1];\n    var _f = useState(null), positionchangedclickListener = _f[0], setPositionChangedClickListener = _f[1];\n    var _g = useState(null), zindexchangedclickListener = _g[0], setZindexChangedClickListener = _g[1];\n    var containerElementRef = useRef(null);\n    // Order does matter\n    useEffect(function () {\n        if (instance !== null) {\n            instance.close();\n            if (anchor) {\n                instance.open(map, anchor);\n            }\n            else if (instance.getPosition()) {\n                instance.open(map);\n            }\n        }\n    }, [map, instance, anchor]);\n    useEffect(function () {\n        if (options && instance !== null) {\n            instance.setOptions(options);\n        }\n    }, [instance, options]);\n    useEffect(function () {\n        if (position && instance !== null) {\n            instance.setPosition(position);\n        }\n    }, [position]);\n    useEffect(function () {\n        if (typeof zIndex === 'number' && instance !== null) {\n            instance.setZIndex(zIndex);\n        }\n    }, [zIndex]);\n    useEffect(function () {\n        if (instance && onCloseClick) {\n            if (closeclickListener !== null) {\n                google.maps.event.removeListener(closeclickListener);\n            }\n            setCloseClickListener(google.maps.event.addListener(instance, 'closeclick', onCloseClick));\n        }\n    }, [onCloseClick]);\n    useEffect(function () {\n        if (instance && onDomReady) {\n            if (domreadyclickListener !== null) {\n                google.maps.event.removeListener(domreadyclickListener);\n            }\n            setDomReadyClickListener(google.maps.event.addListener(instance, 'domready', onDomReady));\n        }\n    }, [onDomReady]);\n    useEffect(function () {\n        if (instance && onContentChanged) {\n            if (contentchangedclickListener !== null) {\n                google.maps.event.removeListener(contentchangedclickListener);\n            }\n            setContentChangedClickListener(google.maps.event.addListener(instance, 'content_changed', onContentChanged));\n        }\n    }, [onContentChanged]);\n    useEffect(function () {\n        if (instance && onPositionChanged) {\n            if (positionchangedclickListener !== null) {\n                google.maps.event.removeListener(positionchangedclickListener);\n            }\n            setPositionChangedClickListener(google.maps.event.addListener(instance, 'position_changed', onPositionChanged));\n        }\n    }, [onPositionChanged]);\n    useEffect(function () {\n        if (instance && onZindexChanged) {\n            if (zindexchangedclickListener !== null) {\n                google.maps.event.removeListener(zindexchangedclickListener);\n            }\n            setZindexChangedClickListener(google.maps.event.addListener(instance, 'zindex_changed', onZindexChanged));\n        }\n    }, [onZindexChanged]);\n    useEffect(function () {\n        var infoWindow = new google.maps.InfoWindow(__assign({}, (options || {})));\n        setInstance(infoWindow);\n        containerElementRef.current = document.createElement('div');\n        if (onCloseClick) {\n            setCloseClickListener(google.maps.event.addListener(infoWindow, 'closeclick', onCloseClick));\n        }\n        if (onDomReady) {\n            setDomReadyClickListener(google.maps.event.addListener(infoWindow, 'domready', onDomReady));\n        }\n        if (onContentChanged) {\n            setContentChangedClickListener(google.maps.event.addListener(infoWindow, 'content_changed', onContentChanged));\n        }\n        if (onPositionChanged) {\n            setPositionChangedClickListener(google.maps.event.addListener(infoWindow, 'position_changed', onPositionChanged));\n        }\n        if (onZindexChanged) {\n            setZindexChangedClickListener(google.maps.event.addListener(infoWindow, 'zindex_changed', onZindexChanged));\n        }\n        infoWindow.setContent(containerElementRef.current);\n        if (position) {\n            infoWindow.setPosition(position);\n        }\n        if (zIndex) {\n            infoWindow.setZIndex(zIndex);\n        }\n        if (anchor) {\n            infoWindow.open(map, anchor);\n        }\n        else if (infoWindow.getPosition()) {\n            infoWindow.open(map);\n        }\n        else {\n            invariant$1(false, \"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.\");\n        }\n        if (onLoad) {\n            onLoad(infoWindow);\n        }\n        return function () {\n            if (closeclickListener) {\n                google.maps.event.removeListener(closeclickListener);\n            }\n            if (contentchangedclickListener) {\n                google.maps.event.removeListener(contentchangedclickListener);\n            }\n            if (domreadyclickListener) {\n                google.maps.event.removeListener(domreadyclickListener);\n            }\n            if (positionchangedclickListener) {\n                google.maps.event.removeListener(positionchangedclickListener);\n            }\n            if (zindexchangedclickListener) {\n                google.maps.event.removeListener(zindexchangedclickListener);\n            }\n            if (onUnmount) {\n                onUnmount(infoWindow);\n            }\n            infoWindow.close();\n        };\n    }, []);\n    return containerElementRef.current ? (createPortal(Children.only(children), containerElementRef.current)) : (null);\n}\nvar InfoWindowF = memo(InfoWindowFunctional);\nvar InfoWindow = /** @class */ (function (_super) {\n    __extends(InfoWindow, _super);\n    function InfoWindow() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.containerElement = null;\n        _this.state = {\n            infoWindow: null,\n        };\n        _this.open = function (infoWindow, anchor) {\n            if (anchor) {\n                infoWindow.open(_this.context, anchor);\n            }\n            else if (infoWindow.getPosition()) {\n                infoWindow.open(_this.context);\n            }\n            else {\n                invariant$1(false, \"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.\");\n            }\n        };\n        _this.setInfoWindowCallback = function () {\n            if (_this.state.infoWindow !== null && _this.containerElement !== null) {\n                _this.state.infoWindow.setContent(_this.containerElement);\n                _this.open(_this.state.infoWindow, _this.props.anchor);\n                if (_this.props.onLoad) {\n                    _this.props.onLoad(_this.state.infoWindow);\n                }\n            }\n        };\n        return _this;\n    }\n    InfoWindow.prototype.componentDidMount = function () {\n        var infoWindow = new google.maps.InfoWindow(__assign({}, (this.props.options || {})));\n        this.containerElement = document.createElement('div');\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$c,\n            eventMap: eventMap$c,\n            prevProps: {},\n            nextProps: this.props,\n            instance: infoWindow,\n        });\n        this.setState(function () {\n            return {\n                infoWindow: infoWindow,\n            };\n        }, this.setInfoWindowCallback);\n    };\n    InfoWindow.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.infoWindow !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$c,\n                eventMap: eventMap$c,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.infoWindow,\n            });\n        }\n    };\n    InfoWindow.prototype.componentWillUnmount = function () {\n        if (this.state.infoWindow !== null) {\n            unregisterEvents(this.registeredEvents);\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.infoWindow);\n            }\n            this.state.infoWindow.close();\n        }\n    };\n    InfoWindow.prototype.render = function () {\n        return this.containerElement ? (createPortal(Children.only(this.props.children), this.containerElement)) : (null);\n    };\n    InfoWindow.contextType = MapContext;\n    return InfoWindow;\n}(PureComponent));\n\nvar eventMap$b = {\n    onClick: 'click',\n    onDblClick: 'dblclick',\n    onDrag: 'drag',\n    onDragEnd: 'dragend',\n    onDragStart: 'dragstart',\n    onMouseDown: 'mousedown',\n    onMouseMove: 'mousemove',\n    onMouseOut: 'mouseout',\n    onMouseOver: 'mouseover',\n    onMouseUp: 'mouseup',\n    onRightClick: 'rightclick',\n};\nvar updaterMap$b = {\n    draggable: function (instance, draggable) {\n        instance.setDraggable(draggable);\n    },\n    editable: function (instance, editable) {\n        instance.setEditable(editable);\n    },\n    map: function (instance, map) {\n        instance.setMap(map);\n    },\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n    path: function (instance, path) {\n        instance.setPath(path);\n    },\n    visible: function (instance, visible) {\n        instance.setVisible(visible);\n    },\n};\nvar defaultOptions$1 = {};\nfunction PolylineFunctional(_a) {\n    var options = _a.options, draggable = _a.draggable, editable = _a.editable, visible = _a.visible, path = _a.path, onDblClick = _a.onDblClick, onDragEnd = _a.onDragEnd, onDragStart = _a.onDragStart, onMouseDown = _a.onMouseDown, onMouseMove = _a.onMouseMove, onMouseOut = _a.onMouseOut, onMouseOver = _a.onMouseOver, onMouseUp = _a.onMouseUp, onRightClick = _a.onRightClick, onClick = _a.onClick, onDrag = _a.onDrag, onLoad = _a.onLoad, onUnmount = _a.onUnmount;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    var _c = useState(null), dblclickListener = _c[0], setDblclickListener = _c[1];\n    var _d = useState(null), dragendListener = _d[0], setDragendListener = _d[1];\n    var _e = useState(null), dragstartListener = _e[0], setDragstartListener = _e[1];\n    var _f = useState(null), mousedownListener = _f[0], setMousedownListener = _f[1];\n    var _g = useState(null), mousemoveListener = _g[0], setMousemoveListener = _g[1];\n    var _h = useState(null), mouseoutListener = _h[0], setMouseoutListener = _h[1];\n    var _j = useState(null), mouseoverListener = _j[0], setMouseoverListener = _j[1];\n    var _k = useState(null), mouseupListener = _k[0], setMouseupListener = _k[1];\n    var _l = useState(null), rightclickListener = _l[0], setRightclickListener = _l[1];\n    var _m = useState(null), clickListener = _m[0], setClickListener = _m[1];\n    var _o = useState(null), dragListener = _o[0], setDragListener = _o[1];\n    // Order does matter\n    useEffect(function () {\n        if (instance !== null) {\n            instance.setMap(map);\n        }\n    }, [map]);\n    useEffect(function () {\n        if (typeof options !== 'undefined' && instance !== null) {\n            instance.setOptions(options);\n        }\n    }, [instance, options]);\n    useEffect(function () {\n        if (typeof draggable !== 'undefined' && instance !== null) {\n            instance.setDraggable(draggable);\n        }\n    }, [instance, draggable]);\n    useEffect(function () {\n        if (typeof editable !== 'undefined' && instance !== null) {\n            instance.setEditable(editable);\n        }\n    }, [instance, editable]);\n    useEffect(function () {\n        if (typeof visible !== 'undefined' && instance !== null) {\n            instance.setVisible(visible);\n        }\n    }, [instance, visible]);\n    useEffect(function () {\n        if (typeof path !== 'undefined' && instance !== null) {\n            instance.setPath(path);\n        }\n    }, [instance, path]);\n    useEffect(function () {\n        if (instance && onDblClick) {\n            if (dblclickListener !== null) {\n                google.maps.event.removeListener(dblclickListener);\n            }\n            setDblclickListener(google.maps.event.addListener(instance, 'dblclick', onDblClick));\n        }\n    }, [onDblClick]);\n    useEffect(function () {\n        if (instance && onDragEnd) {\n            if (dragendListener !== null) {\n                google.maps.event.removeListener(dragendListener);\n            }\n            setDragendListener(google.maps.event.addListener(instance, 'dragend', onDragEnd));\n        }\n    }, [onDragEnd]);\n    useEffect(function () {\n        if (instance && onDragStart) {\n            if (dragstartListener !== null) {\n                google.maps.event.removeListener(dragstartListener);\n            }\n            setDragstartListener(google.maps.event.addListener(instance, 'dragstart', onDragStart));\n        }\n    }, [onDragStart]);\n    useEffect(function () {\n        if (instance && onMouseDown) {\n            if (mousedownListener !== null) {\n                google.maps.event.removeListener(mousedownListener);\n            }\n            setMousedownListener(google.maps.event.addListener(instance, 'mousedown', onMouseDown));\n        }\n    }, [onMouseDown]);\n    useEffect(function () {\n        if (instance && onMouseMove) {\n            if (mousemoveListener !== null) {\n                google.maps.event.removeListener(mousemoveListener);\n            }\n            setMousemoveListener(google.maps.event.addListener(instance, 'mousemove', onMouseMove));\n        }\n    }, [onMouseMove]);\n    useEffect(function () {\n        if (instance && onMouseOut) {\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            setMouseoutListener(google.maps.event.addListener(instance, 'mouseout', onMouseOut));\n        }\n    }, [onMouseOut]);\n    useEffect(function () {\n        if (instance && onMouseOver) {\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            setMouseoverListener(google.maps.event.addListener(instance, 'mouseover', onMouseOver));\n        }\n    }, [onMouseOver]);\n    useEffect(function () {\n        if (instance && onMouseUp) {\n            if (mouseupListener !== null) {\n                google.maps.event.removeListener(mouseupListener);\n            }\n            setMouseupListener(google.maps.event.addListener(instance, 'mouseup', onMouseUp));\n        }\n    }, [onMouseUp]);\n    useEffect(function () {\n        if (instance && onRightClick) {\n            if (rightclickListener !== null) {\n                google.maps.event.removeListener(rightclickListener);\n            }\n            setRightclickListener(google.maps.event.addListener(instance, 'rightclick', onRightClick));\n        }\n    }, [onRightClick]);\n    useEffect(function () {\n        if (instance && onClick) {\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            setClickListener(google.maps.event.addListener(instance, 'click', onClick));\n        }\n    }, [onClick]);\n    useEffect(function () {\n        if (instance && onDrag) {\n            if (dragListener !== null) {\n                google.maps.event.removeListener(dragListener);\n            }\n            setDragListener(google.maps.event.addListener(instance, 'drag', onDrag));\n        }\n    }, [onDrag]);\n    useEffect(function () {\n        var polyline = new google.maps.Polyline(__assign(__assign({}, (options || defaultOptions$1)), { map: map }));\n        if (path) {\n            polyline.setPath(path);\n        }\n        if (typeof visible !== 'undefined') {\n            polyline.setVisible(visible);\n        }\n        if (typeof editable !== 'undefined') {\n            polyline.setEditable(editable);\n        }\n        if (typeof draggable !== 'undefined') {\n            polyline.setDraggable(draggable);\n        }\n        if (onDblClick) {\n            setDblclickListener(google.maps.event.addListener(polyline, 'dblclick', onDblClick));\n        }\n        if (onDragEnd) {\n            setDragendListener(google.maps.event.addListener(polyline, 'dragend', onDragEnd));\n        }\n        if (onDragStart) {\n            setDragstartListener(google.maps.event.addListener(polyline, 'dragstart', onDragStart));\n        }\n        if (onMouseDown) {\n            setMousedownListener(google.maps.event.addListener(polyline, 'mousedown', onMouseDown));\n        }\n        if (onMouseMove) {\n            setMousemoveListener(google.maps.event.addListener(polyline, 'mousemove', onMouseMove));\n        }\n        if (onMouseOut) {\n            setMouseoutListener(google.maps.event.addListener(polyline, 'mouseout', onMouseOut));\n        }\n        if (onMouseOver) {\n            setMouseoverListener(google.maps.event.addListener(polyline, 'mouseover', onMouseOver));\n        }\n        if (onMouseUp) {\n            setMouseupListener(google.maps.event.addListener(polyline, 'mouseup', onMouseUp));\n        }\n        if (onRightClick) {\n            setRightclickListener(google.maps.event.addListener(polyline, 'rightclick', onRightClick));\n        }\n        if (onClick) {\n            setClickListener(google.maps.event.addListener(polyline, 'click', onClick));\n        }\n        if (onDrag) {\n            setDragListener(google.maps.event.addListener(polyline, 'drag', onDrag));\n        }\n        setInstance(polyline);\n        if (onLoad) {\n            onLoad(polyline);\n        }\n        return function () {\n            if (dblclickListener !== null) {\n                google.maps.event.removeListener(dblclickListener);\n            }\n            if (dragendListener !== null) {\n                google.maps.event.removeListener(dragendListener);\n            }\n            if (dragstartListener !== null) {\n                google.maps.event.removeListener(dragstartListener);\n            }\n            if (mousedownListener !== null) {\n                google.maps.event.removeListener(mousedownListener);\n            }\n            if (mousemoveListener !== null) {\n                google.maps.event.removeListener(mousemoveListener);\n            }\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            if (mouseupListener !== null) {\n                google.maps.event.removeListener(mouseupListener);\n            }\n            if (rightclickListener !== null) {\n                google.maps.event.removeListener(rightclickListener);\n            }\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            if (onUnmount) {\n                onUnmount(polyline);\n            }\n            polyline.setMap(null);\n        };\n    }, []);\n    return null;\n}\nvar PolylineF = memo(PolylineFunctional);\nvar Polyline = /** @class */ (function (_super) {\n    __extends(Polyline, _super);\n    function Polyline() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.state = {\n            polyline: null,\n        };\n        _this.setPolylineCallback = function () {\n            if (_this.state.polyline !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.polyline);\n            }\n        };\n        return _this;\n    }\n    Polyline.prototype.componentDidMount = function () {\n        var polyline = new google.maps.Polyline(__assign(__assign({}, (this.props.options || {})), { map: this.context }));\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$b,\n            eventMap: eventMap$b,\n            prevProps: {},\n            nextProps: this.props,\n            instance: polyline,\n        });\n        this.setState(function setPolyline() {\n            return {\n                polyline: polyline,\n            };\n        }, this.setPolylineCallback);\n    };\n    Polyline.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.polyline !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$b,\n                eventMap: eventMap$b,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.polyline,\n            });\n        }\n    };\n    Polyline.prototype.componentWillUnmount = function () {\n        if (this.state.polyline !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.polyline);\n            }\n            unregisterEvents(this.registeredEvents);\n            this.state.polyline.setMap(null);\n        }\n    };\n    Polyline.prototype.render = function () {\n        return null;\n    };\n    Polyline.contextType = MapContext;\n    return Polyline;\n}(PureComponent));\n\nvar eventMap$a = {\n    onClick: 'click',\n    onDblClick: 'dblclick',\n    onDrag: 'drag',\n    onDragEnd: 'dragend',\n    onDragStart: 'dragstart',\n    onMouseDown: 'mousedown',\n    onMouseMove: 'mousemove',\n    onMouseOut: 'mouseout',\n    onMouseOver: 'mouseover',\n    onMouseUp: 'mouseup',\n    onRightClick: 'rightclick',\n};\nvar updaterMap$a = {\n    draggable: function (instance, draggable) {\n        instance.setDraggable(draggable);\n    },\n    editable: function (instance, editable) {\n        instance.setEditable(editable);\n    },\n    map: function (instance, map) {\n        instance.setMap(map);\n    },\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n    path: function (instance, path) {\n        instance.setPath(path);\n    },\n    paths: function (instance, paths) {\n        instance.setPaths(paths);\n    },\n    visible: function (instance, visible) {\n        instance.setVisible(visible);\n    },\n};\nfunction PolygonFunctional(_a) {\n    var options = _a.options, draggable = _a.draggable, editable = _a.editable, visible = _a.visible, path = _a.path, paths = _a.paths, onDblClick = _a.onDblClick, onDragEnd = _a.onDragEnd, onDragStart = _a.onDragStart, onMouseDown = _a.onMouseDown, onMouseMove = _a.onMouseMove, onMouseOut = _a.onMouseOut, onMouseOver = _a.onMouseOver, onMouseUp = _a.onMouseUp, onRightClick = _a.onRightClick, onClick = _a.onClick, onDrag = _a.onDrag, onLoad = _a.onLoad, onUnmount = _a.onUnmount, onEdit = _a.onEdit;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    var _c = useState(null), dblclickListener = _c[0], setDblclickListener = _c[1];\n    var _d = useState(null), dragendListener = _d[0], setDragendListener = _d[1];\n    var _e = useState(null), dragstartListener = _e[0], setDragstartListener = _e[1];\n    var _f = useState(null), mousedownListener = _f[0], setMousedownListener = _f[1];\n    var _g = useState(null), mousemoveListener = _g[0], setMousemoveListener = _g[1];\n    var _h = useState(null), mouseoutListener = _h[0], setMouseoutListener = _h[1];\n    var _j = useState(null), mouseoverListener = _j[0], setMouseoverListener = _j[1];\n    var _k = useState(null), mouseupListener = _k[0], setMouseupListener = _k[1];\n    var _l = useState(null), rightclickListener = _l[0], setRightclickListener = _l[1];\n    var _m = useState(null), clickListener = _m[0], setClickListener = _m[1];\n    var _o = useState(null), dragListener = _o[0], setDragListener = _o[1];\n    // Order does matter\n    useEffect(function () {\n        if (instance !== null) {\n            instance.setMap(map);\n        }\n    }, [map]);\n    useEffect(function () {\n        if (typeof options !== 'undefined' && instance !== null) {\n            instance.setOptions(options);\n        }\n    }, [instance, options]);\n    useEffect(function () {\n        if (typeof draggable !== 'undefined' && instance !== null) {\n            instance.setDraggable(draggable);\n        }\n    }, [instance, draggable]);\n    useEffect(function () {\n        if (typeof editable !== 'undefined' && instance !== null) {\n            instance.setEditable(editable);\n        }\n    }, [instance, editable]);\n    useEffect(function () {\n        if (typeof visible !== 'undefined' && instance !== null) {\n            instance.setVisible(visible);\n        }\n    }, [instance, visible]);\n    useEffect(function () {\n        if (typeof path !== 'undefined' && instance !== null) {\n            instance.setPath(path);\n        }\n    }, [instance, path]);\n    useEffect(function () {\n        if (typeof paths !== 'undefined' && instance !== null) {\n            instance.setPaths(paths);\n        }\n    }, [instance, paths]);\n    useEffect(function () {\n        if (instance && onDblClick) {\n            if (dblclickListener !== null) {\n                google.maps.event.removeListener(dblclickListener);\n            }\n            setDblclickListener(google.maps.event.addListener(instance, 'dblclick', onDblClick));\n        }\n    }, [onDblClick]);\n    useEffect(function () {\n        if (instance) {\n            google.maps.event.addListener(instance.getPath(), 'insert_at', function () {\n                onEdit === null || onEdit === void 0 ? void 0 : onEdit(instance);\n            });\n            google.maps.event.addListener(instance.getPath(), 'set_at', function () {\n                onEdit === null || onEdit === void 0 ? void 0 : onEdit(instance);\n            });\n        }\n    }, [instance, onEdit]);\n    useEffect(function () {\n        if (instance && onDragEnd) {\n            if (dragendListener !== null) {\n                google.maps.event.removeListener(dragendListener);\n            }\n            setDragendListener(google.maps.event.addListener(instance, 'dragend', onDragEnd));\n        }\n    }, [onDragEnd]);\n    useEffect(function () {\n        if (instance && onDragStart) {\n            if (dragstartListener !== null) {\n                google.maps.event.removeListener(dragstartListener);\n            }\n            setDragstartListener(google.maps.event.addListener(instance, 'dragstart', onDragStart));\n        }\n    }, [onDragStart]);\n    useEffect(function () {\n        if (instance && onMouseDown) {\n            if (mousedownListener !== null) {\n                google.maps.event.removeListener(mousedownListener);\n            }\n            setMousedownListener(google.maps.event.addListener(instance, 'mousedown', onMouseDown));\n        }\n    }, [onMouseDown]);\n    useEffect(function () {\n        if (instance && onMouseMove) {\n            if (mousemoveListener !== null) {\n                google.maps.event.removeListener(mousemoveListener);\n            }\n            setMousemoveListener(google.maps.event.addListener(instance, 'mousemove', onMouseMove));\n        }\n    }, [onMouseMove]);\n    useEffect(function () {\n        if (instance && onMouseOut) {\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            setMouseoutListener(google.maps.event.addListener(instance, 'mouseout', onMouseOut));\n        }\n    }, [onMouseOut]);\n    useEffect(function () {\n        if (instance && onMouseOver) {\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            setMouseoverListener(google.maps.event.addListener(instance, 'mouseover', onMouseOver));\n        }\n    }, [onMouseOver]);\n    useEffect(function () {\n        if (instance && onMouseUp) {\n            if (mouseupListener !== null) {\n                google.maps.event.removeListener(mouseupListener);\n            }\n            setMouseupListener(google.maps.event.addListener(instance, 'mouseup', onMouseUp));\n        }\n    }, [onMouseUp]);\n    useEffect(function () {\n        if (instance && onRightClick) {\n            if (rightclickListener !== null) {\n                google.maps.event.removeListener(rightclickListener);\n            }\n            setRightclickListener(google.maps.event.addListener(instance, 'rightclick', onRightClick));\n        }\n    }, [onRightClick]);\n    useEffect(function () {\n        if (instance && onClick) {\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            setClickListener(google.maps.event.addListener(instance, 'click', onClick));\n        }\n    }, [onClick]);\n    useEffect(function () {\n        if (instance && onDrag) {\n            if (dragListener !== null) {\n                google.maps.event.removeListener(dragListener);\n            }\n            setDragListener(google.maps.event.addListener(instance, 'drag', onDrag));\n        }\n    }, [onDrag]);\n    useEffect(function () {\n        var polygon = new google.maps.Polygon(__assign(__assign({}, (options || {})), { map: map }));\n        if (path) {\n            polygon.setPath(path);\n        }\n        if (paths) {\n            polygon.setPaths(paths);\n        }\n        if (typeof visible !== 'undefined') {\n            polygon.setVisible(visible);\n        }\n        if (typeof editable !== 'undefined') {\n            polygon.setEditable(editable);\n        }\n        if (typeof draggable !== 'undefined') {\n            polygon.setDraggable(draggable);\n        }\n        if (onDblClick) {\n            setDblclickListener(google.maps.event.addListener(polygon, 'dblclick', onDblClick));\n        }\n        if (onDragEnd) {\n            setDragendListener(google.maps.event.addListener(polygon, 'dragend', onDragEnd));\n        }\n        if (onDragStart) {\n            setDragstartListener(google.maps.event.addListener(polygon, 'dragstart', onDragStart));\n        }\n        if (onMouseDown) {\n            setMousedownListener(google.maps.event.addListener(polygon, 'mousedown', onMouseDown));\n        }\n        if (onMouseMove) {\n            setMousemoveListener(google.maps.event.addListener(polygon, 'mousemove', onMouseMove));\n        }\n        if (onMouseOut) {\n            setMouseoutListener(google.maps.event.addListener(polygon, 'mouseout', onMouseOut));\n        }\n        if (onMouseOver) {\n            setMouseoverListener(google.maps.event.addListener(polygon, 'mouseover', onMouseOver));\n        }\n        if (onMouseUp) {\n            setMouseupListener(google.maps.event.addListener(polygon, 'mouseup', onMouseUp));\n        }\n        if (onRightClick) {\n            setRightclickListener(google.maps.event.addListener(polygon, 'rightclick', onRightClick));\n        }\n        if (onClick) {\n            setClickListener(google.maps.event.addListener(polygon, 'click', onClick));\n        }\n        if (onDrag) {\n            setDragListener(google.maps.event.addListener(polygon, 'drag', onDrag));\n        }\n        setInstance(polygon);\n        if (onLoad) {\n            onLoad(polygon);\n        }\n        return function () {\n            if (dblclickListener !== null) {\n                google.maps.event.removeListener(dblclickListener);\n            }\n            if (dragendListener !== null) {\n                google.maps.event.removeListener(dragendListener);\n            }\n            if (dragstartListener !== null) {\n                google.maps.event.removeListener(dragstartListener);\n            }\n            if (mousedownListener !== null) {\n                google.maps.event.removeListener(mousedownListener);\n            }\n            if (mousemoveListener !== null) {\n                google.maps.event.removeListener(mousemoveListener);\n            }\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            if (mouseupListener !== null) {\n                google.maps.event.removeListener(mouseupListener);\n            }\n            if (rightclickListener !== null) {\n                google.maps.event.removeListener(rightclickListener);\n            }\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            if (onUnmount) {\n                onUnmount(polygon);\n            }\n            polygon.setMap(null);\n        };\n    }, []);\n    return null;\n}\nvar PolygonF = memo(PolygonFunctional);\nvar Polygon = /** @class */ (function (_super) {\n    __extends(Polygon, _super);\n    function Polygon() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.state = {\n            polygon: null,\n        };\n        _this.setPolygonCallback = function () {\n            if (_this.state.polygon !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.polygon);\n            }\n        };\n        return _this;\n    }\n    Polygon.prototype.componentDidMount = function () {\n        var polygon = new google.maps.Polygon(__assign(__assign({}, (this.props.options || {})), { map: this.context }));\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$a,\n            eventMap: eventMap$a,\n            prevProps: {},\n            nextProps: this.props,\n            instance: polygon,\n        });\n        this.setState(function setPolygon() {\n            return {\n                polygon: polygon,\n            };\n        }, this.setPolygonCallback);\n    };\n    Polygon.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.polygon !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$a,\n                eventMap: eventMap$a,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.polygon,\n            });\n        }\n    };\n    Polygon.prototype.componentWillUnmount = function () {\n        if (this.state.polygon !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.polygon);\n            }\n            unregisterEvents(this.registeredEvents);\n            this.state.polygon && this.state.polygon.setMap(null);\n        }\n    };\n    Polygon.prototype.render = function () {\n        return null;\n    };\n    Polygon.contextType = MapContext;\n    return Polygon;\n}(PureComponent));\n\nvar eventMap$9 = {\n    onBoundsChanged: 'bounds_changed',\n    onClick: 'click',\n    onDblClick: 'dblclick',\n    onDrag: 'drag',\n    onDragEnd: 'dragend',\n    onDragStart: 'dragstart',\n    onMouseDown: 'mousedown',\n    onMouseMove: 'mousemove',\n    onMouseOut: 'mouseout',\n    onMouseOver: 'mouseover',\n    onMouseUp: 'mouseup',\n    onRightClick: 'rightclick',\n};\nvar updaterMap$9 = {\n    bounds: function (instance, bounds) {\n        instance.setBounds(bounds);\n    },\n    draggable: function (instance, draggable) {\n        instance.setDraggable(draggable);\n    },\n    editable: function (instance, editable) {\n        instance.setEditable(editable);\n    },\n    map: function (instance, map) {\n        instance.setMap(map);\n    },\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n    visible: function (instance, visible) {\n        instance.setVisible(visible);\n    },\n};\nfunction RectangleFunctional(_a) {\n    var options = _a.options, bounds = _a.bounds, draggable = _a.draggable, editable = _a.editable, visible = _a.visible, onDblClick = _a.onDblClick, onDragEnd = _a.onDragEnd, onDragStart = _a.onDragStart, onMouseDown = _a.onMouseDown, onMouseMove = _a.onMouseMove, onMouseOut = _a.onMouseOut, onMouseOver = _a.onMouseOver, onMouseUp = _a.onMouseUp, onRightClick = _a.onRightClick, onClick = _a.onClick, onDrag = _a.onDrag, onBoundsChanged = _a.onBoundsChanged, onLoad = _a.onLoad, onUnmount = _a.onUnmount;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    var _c = useState(null), dblclickListener = _c[0], setDblclickListener = _c[1];\n    var _d = useState(null), dragendListener = _d[0], setDragendListener = _d[1];\n    var _e = useState(null), dragstartListener = _e[0], setDragstartListener = _e[1];\n    var _f = useState(null), mousedownListener = _f[0], setMousedownListener = _f[1];\n    var _g = useState(null), mousemoveListener = _g[0], setMousemoveListener = _g[1];\n    var _h = useState(null), mouseoutListener = _h[0], setMouseoutListener = _h[1];\n    var _j = useState(null), mouseoverListener = _j[0], setMouseoverListener = _j[1];\n    var _k = useState(null), mouseupListener = _k[0], setMouseupListener = _k[1];\n    var _l = useState(null), rightClickListener = _l[0], setRightClickListener = _l[1];\n    var _m = useState(null), clickListener = _m[0], setClickListener = _m[1];\n    var _o = useState(null), dragListener = _o[0], setDragListener = _o[1];\n    var _p = useState(null), boundsChangedListener = _p[0], setBoundsChangedListener = _p[1];\n    // Order does matter\n    useEffect(function () {\n        if (instance !== null) {\n            instance.setMap(map);\n        }\n    }, [map]);\n    useEffect(function () {\n        if (typeof options !== 'undefined' && instance !== null) {\n            instance.setOptions(options);\n        }\n    }, [instance, options]);\n    useEffect(function () {\n        if (typeof draggable !== 'undefined' && instance !== null) {\n            instance.setDraggable(draggable);\n        }\n    }, [instance, draggable]);\n    useEffect(function () {\n        if (typeof editable !== 'undefined' && instance !== null) {\n            instance.setEditable(editable);\n        }\n    }, [instance, editable]);\n    useEffect(function () {\n        if (typeof visible !== 'undefined' && instance !== null) {\n            instance.setVisible(visible);\n        }\n    }, [instance, visible]);\n    useEffect(function () {\n        if (typeof bounds !== 'undefined' && instance !== null) {\n            instance.setBounds(bounds);\n        }\n    }, [instance, bounds]);\n    useEffect(function () {\n        if (instance && onDblClick) {\n            if (dblclickListener !== null) {\n                google.maps.event.removeListener(dblclickListener);\n            }\n            setDblclickListener(google.maps.event.addListener(instance, 'dblclick', onDblClick));\n        }\n    }, [onDblClick]);\n    useEffect(function () {\n        if (instance && onDragEnd) {\n            if (dragendListener !== null) {\n                google.maps.event.removeListener(dragendListener);\n            }\n            setDragendListener(google.maps.event.addListener(instance, 'dragend', onDragEnd));\n        }\n    }, [onDragEnd]);\n    useEffect(function () {\n        if (instance && onDragStart) {\n            if (dragstartListener !== null) {\n                google.maps.event.removeListener(dragstartListener);\n            }\n            setDragstartListener(google.maps.event.addListener(instance, 'dragstart', onDragStart));\n        }\n    }, [onDragStart]);\n    useEffect(function () {\n        if (instance && onMouseDown) {\n            if (mousedownListener !== null) {\n                google.maps.event.removeListener(mousedownListener);\n            }\n            setMousedownListener(google.maps.event.addListener(instance, 'mousedown', onMouseDown));\n        }\n    }, [onMouseDown]);\n    useEffect(function () {\n        if (instance && onMouseMove) {\n            if (mousemoveListener !== null) {\n                google.maps.event.removeListener(mousemoveListener);\n            }\n            setMousemoveListener(google.maps.event.addListener(instance, 'mousemove', onMouseMove));\n        }\n    }, [onMouseMove]);\n    useEffect(function () {\n        if (instance && onMouseOut) {\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            setMouseoutListener(google.maps.event.addListener(instance, 'mouseout', onMouseOut));\n        }\n    }, [onMouseOut]);\n    useEffect(function () {\n        if (instance && onMouseOver) {\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            setMouseoverListener(google.maps.event.addListener(instance, 'mouseover', onMouseOver));\n        }\n    }, [onMouseOver]);\n    useEffect(function () {\n        if (instance && onMouseUp) {\n            if (mouseupListener !== null) {\n                google.maps.event.removeListener(mouseupListener);\n            }\n            setMouseupListener(google.maps.event.addListener(instance, 'mouseup', onMouseUp));\n        }\n    }, [onMouseUp]);\n    useEffect(function () {\n        if (instance && onRightClick) {\n            if (rightClickListener !== null) {\n                google.maps.event.removeListener(rightClickListener);\n            }\n            setRightClickListener(google.maps.event.addListener(instance, 'rightclick', onRightClick));\n        }\n    }, [onRightClick]);\n    useEffect(function () {\n        if (instance && onClick) {\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            setClickListener(google.maps.event.addListener(instance, 'click', onClick));\n        }\n    }, [onClick]);\n    useEffect(function () {\n        if (instance && onDrag) {\n            if (dragListener !== null) {\n                google.maps.event.removeListener(dragListener);\n            }\n            setDragListener(google.maps.event.addListener(instance, 'drag', onDrag));\n        }\n    }, [onDrag]);\n    useEffect(function () {\n        if (instance && onBoundsChanged) {\n            if (boundsChangedListener !== null) {\n                google.maps.event.removeListener(boundsChangedListener);\n            }\n            setBoundsChangedListener(google.maps.event.addListener(instance, 'bounds_changed', onBoundsChanged));\n        }\n    }, [onBoundsChanged]);\n    useEffect(function () {\n        var rectangle = new google.maps.Rectangle(__assign(__assign({}, (options || {})), { map: map }));\n        if (typeof visible !== 'undefined') {\n            rectangle.setVisible(visible);\n        }\n        if (typeof editable !== 'undefined') {\n            rectangle.setEditable(editable);\n        }\n        if (typeof draggable !== 'undefined') {\n            rectangle.setDraggable(draggable);\n        }\n        if (typeof bounds !== 'undefined') {\n            rectangle.setBounds(bounds);\n        }\n        if (onDblClick) {\n            setDblclickListener(google.maps.event.addListener(rectangle, 'dblclick', onDblClick));\n        }\n        if (onDragEnd) {\n            setDragendListener(google.maps.event.addListener(rectangle, 'dragend', onDragEnd));\n        }\n        if (onDragStart) {\n            setDragstartListener(google.maps.event.addListener(rectangle, 'dragstart', onDragStart));\n        }\n        if (onMouseDown) {\n            setMousedownListener(google.maps.event.addListener(rectangle, 'mousedown', onMouseDown));\n        }\n        if (onMouseMove) {\n            setMousemoveListener(google.maps.event.addListener(rectangle, 'mousemove', onMouseMove));\n        }\n        if (onMouseOut) {\n            setMouseoutListener(google.maps.event.addListener(rectangle, 'mouseout', onMouseOut));\n        }\n        if (onMouseOver) {\n            setMouseoverListener(google.maps.event.addListener(rectangle, 'mouseover', onMouseOver));\n        }\n        if (onMouseUp) {\n            setMouseupListener(google.maps.event.addListener(rectangle, 'mouseup', onMouseUp));\n        }\n        if (onRightClick) {\n            setRightClickListener(google.maps.event.addListener(rectangle, 'rightclick', onRightClick));\n        }\n        if (onClick) {\n            setClickListener(google.maps.event.addListener(rectangle, 'click', onClick));\n        }\n        if (onDrag) {\n            setDragListener(google.maps.event.addListener(rectangle, 'drag', onDrag));\n        }\n        if (onBoundsChanged) {\n            setBoundsChangedListener(google.maps.event.addListener(rectangle, 'bounds_changed', onBoundsChanged));\n        }\n        setInstance(rectangle);\n        if (onLoad) {\n            onLoad(rectangle);\n        }\n        return function () {\n            if (dblclickListener !== null) {\n                google.maps.event.removeListener(dblclickListener);\n            }\n            if (dragendListener !== null) {\n                google.maps.event.removeListener(dragendListener);\n            }\n            if (dragstartListener !== null) {\n                google.maps.event.removeListener(dragstartListener);\n            }\n            if (mousedownListener !== null) {\n                google.maps.event.removeListener(mousedownListener);\n            }\n            if (mousemoveListener !== null) {\n                google.maps.event.removeListener(mousemoveListener);\n            }\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            if (mouseupListener !== null) {\n                google.maps.event.removeListener(mouseupListener);\n            }\n            if (rightClickListener !== null) {\n                google.maps.event.removeListener(rightClickListener);\n            }\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            if (dragListener !== null) {\n                google.maps.event.removeListener(dragListener);\n            }\n            if (boundsChangedListener !== null) {\n                google.maps.event.removeListener(boundsChangedListener);\n            }\n            if (onUnmount) {\n                onUnmount(rectangle);\n            }\n            rectangle.setMap(null);\n        };\n    }, []);\n    return null;\n}\nvar RectangleF = memo(RectangleFunctional);\nvar Rectangle = /** @class */ (function (_super) {\n    __extends(Rectangle, _super);\n    function Rectangle() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.state = {\n            rectangle: null,\n        };\n        _this.setRectangleCallback = function () {\n            if (_this.state.rectangle !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.rectangle);\n            }\n        };\n        return _this;\n    }\n    Rectangle.prototype.componentDidMount = function () {\n        var rectangle = new google.maps.Rectangle(__assign(__assign({}, (this.props.options || {})), { map: this.context }));\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$9,\n            eventMap: eventMap$9,\n            prevProps: {},\n            nextProps: this.props,\n            instance: rectangle,\n        });\n        this.setState(function setRectangle() {\n            return {\n                rectangle: rectangle,\n            };\n        }, this.setRectangleCallback);\n    };\n    Rectangle.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.rectangle !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$9,\n                eventMap: eventMap$9,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.rectangle,\n            });\n        }\n    };\n    Rectangle.prototype.componentWillUnmount = function () {\n        if (this.state.rectangle !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.rectangle);\n            }\n            unregisterEvents(this.registeredEvents);\n            this.state.rectangle.setMap(null);\n        }\n    };\n    Rectangle.prototype.render = function () {\n        return null;\n    };\n    Rectangle.contextType = MapContext;\n    return Rectangle;\n}(PureComponent));\n\nvar eventMap$8 = {\n    onCenterChanged: 'center_changed',\n    onRadiusChanged: 'radius_changed',\n    onClick: 'click',\n    onDblClick: 'dblclick',\n    onDrag: 'drag',\n    onDragEnd: 'dragend',\n    onDragStart: 'dragstart',\n    onMouseDown: 'mousedown',\n    onMouseMove: 'mousemove',\n    onMouseOut: 'mouseout',\n    onMouseOver: 'mouseover',\n    onMouseUp: 'mouseup',\n    onRightClick: 'rightclick',\n};\nvar updaterMap$8 = {\n    center: function (instance, center) {\n        instance.setCenter(center);\n    },\n    draggable: function (instance, draggable) {\n        instance.setDraggable(draggable);\n    },\n    editable: function (instance, editable) {\n        instance.setEditable(editable);\n    },\n    map: function (instance, map) {\n        instance.setMap(map);\n    },\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n    radius: function (instance, radius) {\n        instance.setRadius(radius);\n    },\n    visible: function (instance, visible) {\n        instance.setVisible(visible);\n    },\n};\nvar defaultOptions = {};\nfunction CircleFunctional(_a) {\n    var options = _a.options, center = _a.center, radius = _a.radius, draggable = _a.draggable, editable = _a.editable, visible = _a.visible, onDblClick = _a.onDblClick, onDragEnd = _a.onDragEnd, onDragStart = _a.onDragStart, onMouseDown = _a.onMouseDown, onMouseMove = _a.onMouseMove, onMouseOut = _a.onMouseOut, onMouseOver = _a.onMouseOver, onMouseUp = _a.onMouseUp, onRightClick = _a.onRightClick, onClick = _a.onClick, onDrag = _a.onDrag, onCenterChanged = _a.onCenterChanged, onRadiusChanged = _a.onRadiusChanged, onLoad = _a.onLoad, onUnmount = _a.onUnmount;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    var _c = useState(null), dblclickListener = _c[0], setDblclickListener = _c[1];\n    var _d = useState(null), dragendListener = _d[0], setDragendListener = _d[1];\n    var _e = useState(null), dragstartListener = _e[0], setDragstartListener = _e[1];\n    var _f = useState(null), mousedownListener = _f[0], setMousedownListener = _f[1];\n    var _g = useState(null), mousemoveListener = _g[0], setMousemoveListener = _g[1];\n    var _h = useState(null), mouseoutListener = _h[0], setMouseoutListener = _h[1];\n    var _j = useState(null), mouseoverListener = _j[0], setMouseoverListener = _j[1];\n    var _k = useState(null), mouseupListener = _k[0], setMouseupListener = _k[1];\n    var _l = useState(null), rightclickListener = _l[0], setRightclickListener = _l[1];\n    var _m = useState(null), clickListener = _m[0], setClickListener = _m[1];\n    var _o = useState(null), dragListener = _o[0], setDragListener = _o[1];\n    var _p = useState(null), centerChangedListener = _p[0], setCenterChangedListener = _p[1];\n    var _q = useState(null), radiusChangedListener = _q[0], setRadiusChangedListener = _q[1];\n    // Order does matter\n    useEffect(function () {\n        if (instance !== null) {\n            instance.setMap(map);\n        }\n    }, [map]);\n    useEffect(function () {\n        if (typeof options !== 'undefined' && instance !== null) {\n            instance.setOptions(options);\n        }\n    }, [instance, options]);\n    useEffect(function () {\n        if (typeof draggable !== 'undefined' && instance !== null) {\n            instance.setDraggable(draggable);\n        }\n    }, [instance, draggable]);\n    useEffect(function () {\n        if (typeof editable !== 'undefined' && instance !== null) {\n            instance.setEditable(editable);\n        }\n    }, [instance, editable]);\n    useEffect(function () {\n        if (typeof visible !== 'undefined' && instance !== null) {\n            instance.setVisible(visible);\n        }\n    }, [instance, visible]);\n    useEffect(function () {\n        if (typeof radius === 'number' && instance !== null) {\n            instance.setRadius(radius);\n        }\n    }, [instance, radius]);\n    useEffect(function () {\n        if (typeof center !== 'undefined' && instance !== null) {\n            instance.setCenter(center);\n        }\n    }, [instance, center]);\n    useEffect(function () {\n        if (instance && onDblClick) {\n            if (dblclickListener !== null) {\n                google.maps.event.removeListener(dblclickListener);\n            }\n            setDblclickListener(google.maps.event.addListener(instance, 'dblclick', onDblClick));\n        }\n    }, [onDblClick]);\n    useEffect(function () {\n        if (instance && onDragEnd) {\n            if (dragendListener !== null) {\n                google.maps.event.removeListener(dragendListener);\n            }\n            setDragendListener(google.maps.event.addListener(instance, 'dragend', onDragEnd));\n        }\n    }, [onDragEnd]);\n    useEffect(function () {\n        if (instance && onDragStart) {\n            if (dragstartListener !== null) {\n                google.maps.event.removeListener(dragstartListener);\n            }\n            setDragstartListener(google.maps.event.addListener(instance, 'dragstart', onDragStart));\n        }\n    }, [onDragStart]);\n    useEffect(function () {\n        if (instance && onMouseDown) {\n            if (mousedownListener !== null) {\n                google.maps.event.removeListener(mousedownListener);\n            }\n            setMousedownListener(google.maps.event.addListener(instance, 'mousedown', onMouseDown));\n        }\n    }, [onMouseDown]);\n    useEffect(function () {\n        if (instance && onMouseMove) {\n            if (mousemoveListener !== null) {\n                google.maps.event.removeListener(mousemoveListener);\n            }\n            setMousemoveListener(google.maps.event.addListener(instance, 'mousemove', onMouseMove));\n        }\n    }, [onMouseMove]);\n    useEffect(function () {\n        if (instance && onMouseOut) {\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            setMouseoutListener(google.maps.event.addListener(instance, 'mouseout', onMouseOut));\n        }\n    }, [onMouseOut]);\n    useEffect(function () {\n        if (instance && onMouseOver) {\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            setMouseoverListener(google.maps.event.addListener(instance, 'mouseover', onMouseOver));\n        }\n    }, [onMouseOver]);\n    useEffect(function () {\n        if (instance && onMouseUp) {\n            if (mouseupListener !== null) {\n                google.maps.event.removeListener(mouseupListener);\n            }\n            setMouseupListener(google.maps.event.addListener(instance, 'mouseup', onMouseUp));\n        }\n    }, [onMouseUp]);\n    useEffect(function () {\n        if (instance && onRightClick) {\n            if (rightclickListener !== null) {\n                google.maps.event.removeListener(rightclickListener);\n            }\n            setRightclickListener(google.maps.event.addListener(instance, 'rightclick', onRightClick));\n        }\n    }, [onRightClick]);\n    useEffect(function () {\n        if (instance && onClick) {\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            setClickListener(google.maps.event.addListener(instance, 'click', onClick));\n        }\n    }, [onClick]);\n    useEffect(function () {\n        if (instance && onDrag) {\n            if (dragListener !== null) {\n                google.maps.event.removeListener(dragListener);\n            }\n            setDragListener(google.maps.event.addListener(instance, 'drag', onDrag));\n        }\n    }, [onDrag]);\n    useEffect(function () {\n        if (instance && onCenterChanged) {\n            if (centerChangedListener !== null) {\n                google.maps.event.removeListener(centerChangedListener);\n            }\n            setCenterChangedListener(google.maps.event.addListener(instance, 'center_changed', onCenterChanged));\n        }\n    }, [onClick]);\n    useEffect(function () {\n        if (instance && onRadiusChanged) {\n            if (radiusChangedListener !== null) {\n                google.maps.event.removeListener(radiusChangedListener);\n            }\n            setRadiusChangedListener(google.maps.event.addListener(instance, 'radius_changed', onRadiusChanged));\n        }\n    }, [onRadiusChanged]);\n    useEffect(function () {\n        var circle = new google.maps.Circle(__assign(__assign({}, (options || defaultOptions)), { map: map }));\n        if (typeof radius === 'number') {\n            circle.setRadius(radius);\n        }\n        if (typeof center !== 'undefined') {\n            circle.setCenter(center);\n        }\n        if (typeof radius === 'number') {\n            circle.setRadius(radius);\n        }\n        if (typeof visible !== 'undefined') {\n            circle.setVisible(visible);\n        }\n        if (typeof editable !== 'undefined') {\n            circle.setEditable(editable);\n        }\n        if (typeof draggable !== 'undefined') {\n            circle.setDraggable(draggable);\n        }\n        if (onDblClick) {\n            setDblclickListener(google.maps.event.addListener(circle, 'dblclick', onDblClick));\n        }\n        if (onDragEnd) {\n            setDragendListener(google.maps.event.addListener(circle, 'dragend', onDragEnd));\n        }\n        if (onDragStart) {\n            setDragstartListener(google.maps.event.addListener(circle, 'dragstart', onDragStart));\n        }\n        if (onMouseDown) {\n            setMousedownListener(google.maps.event.addListener(circle, 'mousedown', onMouseDown));\n        }\n        if (onMouseMove) {\n            setMousemoveListener(google.maps.event.addListener(circle, 'mousemove', onMouseMove));\n        }\n        if (onMouseOut) {\n            setMouseoutListener(google.maps.event.addListener(circle, 'mouseout', onMouseOut));\n        }\n        if (onMouseOver) {\n            setMouseoverListener(google.maps.event.addListener(circle, 'mouseover', onMouseOver));\n        }\n        if (onMouseUp) {\n            setMouseupListener(google.maps.event.addListener(circle, 'mouseup', onMouseUp));\n        }\n        if (onRightClick) {\n            setRightclickListener(google.maps.event.addListener(circle, 'rightclick', onRightClick));\n        }\n        if (onClick) {\n            setClickListener(google.maps.event.addListener(circle, 'click', onClick));\n        }\n        if (onDrag) {\n            setDragListener(google.maps.event.addListener(circle, 'drag', onDrag));\n        }\n        if (onCenterChanged) {\n            setCenterChangedListener(google.maps.event.addListener(circle, 'center_changed', onCenterChanged));\n        }\n        if (onRadiusChanged) {\n            setRadiusChangedListener(google.maps.event.addListener(circle, 'radius_changed', onRadiusChanged));\n        }\n        setInstance(circle);\n        if (onLoad) {\n            onLoad(circle);\n        }\n        return function () {\n            if (dblclickListener !== null) {\n                google.maps.event.removeListener(dblclickListener);\n            }\n            if (dragendListener !== null) {\n                google.maps.event.removeListener(dragendListener);\n            }\n            if (dragstartListener !== null) {\n                google.maps.event.removeListener(dragstartListener);\n            }\n            if (mousedownListener !== null) {\n                google.maps.event.removeListener(mousedownListener);\n            }\n            if (mousemoveListener !== null) {\n                google.maps.event.removeListener(mousemoveListener);\n            }\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            if (mouseupListener !== null) {\n                google.maps.event.removeListener(mouseupListener);\n            }\n            if (rightclickListener !== null) {\n                google.maps.event.removeListener(rightclickListener);\n            }\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            if (centerChangedListener !== null) {\n                google.maps.event.removeListener(centerChangedListener);\n            }\n            if (radiusChangedListener !== null) {\n                google.maps.event.removeListener(radiusChangedListener);\n            }\n            if (onUnmount) {\n                onUnmount(circle);\n            }\n            circle.setMap(null);\n        };\n    }, []);\n    return null;\n}\nvar CircleF = memo(CircleFunctional);\nvar Circle = /** @class */ (function (_super) {\n    __extends(Circle, _super);\n    function Circle() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.state = {\n            circle: null,\n        };\n        _this.setCircleCallback = function () {\n            if (_this.state.circle !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.circle);\n            }\n        };\n        return _this;\n    }\n    Circle.prototype.componentDidMount = function () {\n        var circle = new google.maps.Circle(__assign(__assign({}, (this.props.options || {})), { map: this.context }));\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$8,\n            eventMap: eventMap$8,\n            prevProps: {},\n            nextProps: this.props,\n            instance: circle,\n        });\n        this.setState(function setCircle() {\n            return {\n                circle: circle,\n            };\n        }, this.setCircleCallback);\n    };\n    Circle.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.circle !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$8,\n                eventMap: eventMap$8,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.circle,\n            });\n        }\n    };\n    Circle.prototype.componentWillUnmount = function () {\n        var _a;\n        if (this.state.circle !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.circle);\n            }\n            unregisterEvents(this.registeredEvents);\n            (_a = this.state.circle) === null || _a === void 0 ? void 0 : _a.setMap(null);\n        }\n    };\n    Circle.prototype.render = function () {\n        return null;\n    };\n    Circle.contextType = MapContext;\n    return Circle;\n}(PureComponent));\n\nvar eventMap$7 = {\n    onClick: 'click',\n    onDblClick: 'dblclick',\n    onMouseDown: 'mousedown',\n    onMouseOut: 'mouseout',\n    onMouseOver: 'mouseover',\n    onMouseUp: 'mouseup',\n    onRightClick: 'rightclick',\n    onAddFeature: 'addfeature',\n    onRemoveFeature: 'removefeature',\n    onRemoveProperty: 'removeproperty',\n    onSetGeometry: 'setgeometry',\n    onSetProperty: 'setproperty',\n};\nvar updaterMap$7 = {\n    add: function (instance, feature) {\n        instance.add(feature);\n    },\n    addgeojson: function (instance, geojson, options) {\n        instance.addGeoJson(geojson, options);\n    },\n    contains: function (instance, feature) {\n        instance.contains(feature);\n    },\n    foreach: function (instance, callback) {\n        instance.forEach(callback);\n    },\n    loadgeojson: function (instance, url, options, callback) {\n        instance.loadGeoJson(url, options, callback);\n    },\n    overridestyle: function (instance, feature, style) {\n        instance.overrideStyle(feature, style);\n    },\n    remove: function (instance, feature) {\n        instance.remove(feature);\n    },\n    revertstyle: function (instance, feature) {\n        instance.revertStyle(feature);\n    },\n    controlposition: function (instance, controlPosition) {\n        instance.setControlPosition(controlPosition);\n    },\n    controls: function (instance, controls) {\n        instance.setControls(controls);\n    },\n    drawingmode: function (instance, mode) {\n        instance.setDrawingMode(mode);\n    },\n    map: function (instance, map) {\n        instance.setMap(map);\n    },\n    style: function (instance, style) {\n        instance.setStyle(style);\n    },\n    togeojson: function (instance, callback) {\n        instance.toGeoJson(callback);\n    },\n};\nfunction DataFunctional(_a) {\n    var options = _a.options, onClick = _a.onClick, onDblClick = _a.onDblClick, onMouseDown = _a.onMouseDown, onMouseMove = _a.onMouseMove, onMouseOut = _a.onMouseOut, onMouseOver = _a.onMouseOver, onMouseUp = _a.onMouseUp, onRightClick = _a.onRightClick, onAddFeature = _a.onAddFeature, onRemoveFeature = _a.onRemoveFeature, onRemoveProperty = _a.onRemoveProperty, onSetGeometry = _a.onSetGeometry, onSetProperty = _a.onSetProperty, onLoad = _a.onLoad, onUnmount = _a.onUnmount;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    var _c = useState(null), dblclickListener = _c[0], setDblclickListener = _c[1];\n    var _d = useState(null), mousedownListener = _d[0], setMousedownListener = _d[1];\n    var _e = useState(null), mousemoveListener = _e[0], setMousemoveListener = _e[1];\n    var _f = useState(null), mouseoutListener = _f[0], setMouseoutListener = _f[1];\n    var _g = useState(null), mouseoverListener = _g[0], setMouseoverListener = _g[1];\n    var _h = useState(null), mouseupListener = _h[0], setMouseupListener = _h[1];\n    var _j = useState(null), rightclickListener = _j[0], setRightclickListener = _j[1];\n    var _k = useState(null), clickListener = _k[0], setClickListener = _k[1];\n    var _l = useState(null), addFeatureListener = _l[0], setAddFeatureListener = _l[1];\n    var _m = useState(null), removeFeatureListener = _m[0], setRemoveFeatureListener = _m[1];\n    var _o = useState(null), removePropertyListener = _o[0], setRemovePropertyListener = _o[1];\n    var _p = useState(null), setGeometryListener = _p[0], setSetGeometryListener = _p[1];\n    var _q = useState(null), setPropertyListener = _q[0], setSetPropertyListener = _q[1];\n    // Order does matter\n    useEffect(function () {\n        if (instance !== null) {\n            instance.setMap(map);\n        }\n    }, [map]);\n    useEffect(function () {\n        if (instance && onDblClick) {\n            if (dblclickListener !== null) {\n                google.maps.event.removeListener(dblclickListener);\n            }\n            setDblclickListener(google.maps.event.addListener(instance, 'dblclick', onDblClick));\n        }\n    }, [onDblClick]);\n    useEffect(function () {\n        if (instance && onMouseDown) {\n            if (mousedownListener !== null) {\n                google.maps.event.removeListener(mousedownListener);\n            }\n            setMousedownListener(google.maps.event.addListener(instance, 'mousedown', onMouseDown));\n        }\n    }, [onMouseDown]);\n    useEffect(function () {\n        if (instance && onMouseMove) {\n            if (mousemoveListener !== null) {\n                google.maps.event.removeListener(mousemoveListener);\n            }\n            setMousemoveListener(google.maps.event.addListener(instance, 'mousemove', onMouseMove));\n        }\n    }, [onMouseMove]);\n    useEffect(function () {\n        if (instance && onMouseOut) {\n            if (mouseoutListener !== null) {\n                google.maps.event.removeListener(mouseoutListener);\n            }\n            setMouseoutListener(google.maps.event.addListener(instance, 'mouseout', onMouseOut));\n        }\n    }, [onMouseOut]);\n    useEffect(function () {\n        if (instance && onMouseOver) {\n            if (mouseoverListener !== null) {\n                google.maps.event.removeListener(mouseoverListener);\n            }\n            setMouseoverListener(google.maps.event.addListener(instance, 'mouseover', onMouseOver));\n        }\n    }, [onMouseOver]);\n    useEffect(function () {\n        if (instance && onMouseUp) {\n            if (mouseupListener !== null) {\n                google.maps.event.removeListener(mouseupListener);\n            }\n            setMouseupListener(google.maps.event.addListener(instance, 'mouseup', onMouseUp));\n        }\n    }, [onMouseUp]);\n    useEffect(function () {\n        if (instance && onRightClick) {\n            if (rightclickListener !== null) {\n                google.maps.event.removeListener(rightclickListener);\n            }\n            setRightclickListener(google.maps.event.addListener(instance, 'rightclick', onRightClick));\n        }\n    }, [onRightClick]);\n    useEffect(function () {\n        if (instance && onClick) {\n            if (clickListener !== null) {\n                google.maps.event.removeListener(clickListener);\n            }\n            setClickListener(google.maps.event.addListener(instance, 'click', onClick));\n        }\n    }, [onClick]);\n    useEffect(function () {\n        if (instance && onAddFeature) {\n            if (addFeatureListener !== null) {\n                google.maps.event.removeListener(addFeatureListener);\n            }\n            setAddFeatureListener(google.maps.event.addListener(instance, 'addfeature', onAddFeature));\n        }\n    }, [onAddFeature]);\n    useEffect(function () {\n        if (instance && onRemoveFeature) {\n            if (removeFeatureListener !== null) {\n                google.maps.event.removeListener(removeFeatureListener);\n            }\n            setRemoveFeatureListener(google.maps.event.addListener(instance, 'removefeature', onRemoveFeature));\n        }\n    }, [onRemoveFeature]);\n    useEffect(function () {\n        if (instance && onRemoveProperty) {\n            if (removePropertyListener !== null) {\n                google.maps.event.removeListener(removePropertyListener);\n            }\n            setRemovePropertyListener(google.maps.event.addListener(instance, 'removeproperty', onRemoveProperty));\n        }\n    }, [onRemoveProperty]);\n    useEffect(function () {\n        if (instance && onSetGeometry) {\n            if (setGeometryListener !== null) {\n                google.maps.event.removeListener(setGeometryListener);\n            }\n            setSetGeometryListener(google.maps.event.addListener(instance, 'setgeometry', onSetGeometry));\n        }\n    }, [onSetGeometry]);\n    useEffect(function () {\n        if (instance && onSetProperty) {\n            if (setPropertyListener !== null) {\n                google.maps.event.removeListener(setPropertyListener);\n            }\n            setSetPropertyListener(google.maps.event.addListener(instance, 'setproperty', onSetProperty));\n        }\n    }, [onSetProperty]);\n    useEffect(function () {\n        if (map !== null) {\n            var data = new google.maps.Data(__assign(__assign({}, (options || {})), { map: map }));\n            if (onDblClick) {\n                setDblclickListener(google.maps.event.addListener(data, 'dblclick', onDblClick));\n            }\n            if (onMouseDown) {\n                setMousedownListener(google.maps.event.addListener(data, 'mousedown', onMouseDown));\n            }\n            if (onMouseMove) {\n                setMousemoveListener(google.maps.event.addListener(data, 'mousemove', onMouseMove));\n            }\n            if (onMouseOut) {\n                setMouseoutListener(google.maps.event.addListener(data, 'mouseout', onMouseOut));\n            }\n            if (onMouseOver) {\n                setMouseoverListener(google.maps.event.addListener(data, 'mouseover', onMouseOver));\n            }\n            if (onMouseUp) {\n                setMouseupListener(google.maps.event.addListener(data, 'mouseup', onMouseUp));\n            }\n            if (onRightClick) {\n                setRightclickListener(google.maps.event.addListener(data, 'rightclick', onRightClick));\n            }\n            if (onClick) {\n                setClickListener(google.maps.event.addListener(data, 'click', onClick));\n            }\n            if (onAddFeature) {\n                setAddFeatureListener(google.maps.event.addListener(data, 'addfeature', onAddFeature));\n            }\n            if (onRemoveFeature) {\n                setRemoveFeatureListener(google.maps.event.addListener(data, 'removefeature', onRemoveFeature));\n            }\n            if (onRemoveProperty) {\n                setRemovePropertyListener(google.maps.event.addListener(data, 'removeproperty', onRemoveProperty));\n            }\n            if (onSetGeometry) {\n                setSetGeometryListener(google.maps.event.addListener(data, 'setgeometry', onSetGeometry));\n            }\n            if (onSetProperty) {\n                setSetPropertyListener(google.maps.event.addListener(data, 'setproperty', onSetProperty));\n            }\n            setInstance(data);\n            if (onLoad) {\n                onLoad(data);\n            }\n        }\n        return function () {\n            if (instance) {\n                if (dblclickListener !== null) {\n                    google.maps.event.removeListener(dblclickListener);\n                }\n                if (mousedownListener !== null) {\n                    google.maps.event.removeListener(mousedownListener);\n                }\n                if (mousemoveListener !== null) {\n                    google.maps.event.removeListener(mousemoveListener);\n                }\n                if (mouseoutListener !== null) {\n                    google.maps.event.removeListener(mouseoutListener);\n                }\n                if (mouseoverListener !== null) {\n                    google.maps.event.removeListener(mouseoverListener);\n                }\n                if (mouseupListener !== null) {\n                    google.maps.event.removeListener(mouseupListener);\n                }\n                if (rightclickListener !== null) {\n                    google.maps.event.removeListener(rightclickListener);\n                }\n                if (clickListener !== null) {\n                    google.maps.event.removeListener(clickListener);\n                }\n                if (addFeatureListener !== null) {\n                    google.maps.event.removeListener(addFeatureListener);\n                }\n                if (removeFeatureListener !== null) {\n                    google.maps.event.removeListener(removeFeatureListener);\n                }\n                if (removePropertyListener !== null) {\n                    google.maps.event.removeListener(removePropertyListener);\n                }\n                if (setGeometryListener !== null) {\n                    google.maps.event.removeListener(setGeometryListener);\n                }\n                if (setPropertyListener !== null) {\n                    google.maps.event.removeListener(setPropertyListener);\n                }\n                if (onUnmount) {\n                    onUnmount(instance);\n                }\n                instance.setMap(null);\n            }\n        };\n    }, []);\n    return null;\n}\nvar DataF = memo(DataFunctional);\nvar Data = /** @class */ (function (_super) {\n    __extends(Data, _super);\n    function Data() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.state = {\n            data: null,\n        };\n        _this.setDataCallback = function () {\n            if (_this.state.data !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.data);\n            }\n        };\n        return _this;\n    }\n    Data.prototype.componentDidMount = function () {\n        if (this.context !== null) {\n            var data_1 = new google.maps.Data(__assign(__assign({}, (this.props.options || {})), { map: this.context }));\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$7,\n                eventMap: eventMap$7,\n                prevProps: {},\n                nextProps: this.props,\n                instance: data_1,\n            });\n            this.setState(function () {\n                return {\n                    data: data_1,\n                };\n            }, this.setDataCallback);\n        }\n    };\n    Data.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.data !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$7,\n                eventMap: eventMap$7,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.data,\n            });\n        }\n    };\n    Data.prototype.componentWillUnmount = function () {\n        if (this.state.data !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.data);\n            }\n            unregisterEvents(this.registeredEvents);\n            if (this.state.data) {\n                this.state.data.setMap(null);\n            }\n        }\n    };\n    Data.prototype.render = function () {\n        return null;\n    };\n    Data.contextType = MapContext;\n    return Data;\n}(PureComponent));\n\nvar eventMap$6 = {\n    onClick: 'click',\n    onDefaultViewportChanged: 'defaultviewport_changed',\n    onStatusChanged: 'status_changed',\n};\nvar updaterMap$6 = {\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n    url: function (instance, url) {\n        instance.setUrl(url);\n    },\n    zIndex: function (instance, zIndex) {\n        instance.setZIndex(zIndex);\n    },\n};\nvar KmlLayer = /** @class */ (function (_super) {\n    __extends(KmlLayer, _super);\n    function KmlLayer() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.state = {\n            kmlLayer: null,\n        };\n        _this.setKmlLayerCallback = function () {\n            if (_this.state.kmlLayer !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.kmlLayer);\n            }\n        };\n        return _this;\n    }\n    KmlLayer.prototype.componentDidMount = function () {\n        var kmlLayer = new google.maps.KmlLayer(__assign(__assign({}, this.props.options), { map: this.context }));\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$6,\n            eventMap: eventMap$6,\n            prevProps: {},\n            nextProps: this.props,\n            instance: kmlLayer,\n        });\n        this.setState(function setLmlLayer() {\n            return {\n                kmlLayer: kmlLayer,\n            };\n        }, this.setKmlLayerCallback);\n    };\n    KmlLayer.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.kmlLayer !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$6,\n                eventMap: eventMap$6,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.kmlLayer,\n            });\n        }\n    };\n    KmlLayer.prototype.componentWillUnmount = function () {\n        if (this.state.kmlLayer !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.kmlLayer);\n            }\n            unregisterEvents(this.registeredEvents);\n            this.state.kmlLayer.setMap(null);\n        }\n    };\n    KmlLayer.prototype.render = function () {\n        return null;\n    };\n    KmlLayer.contextType = MapContext;\n    return KmlLayer;\n}(PureComponent));\n\nfunction getOffsetOverride(containerElement, getPixelPositionOffset) {\n    return typeof getPixelPositionOffset === 'function'\n        ? getPixelPositionOffset(containerElement.offsetWidth, containerElement.offsetHeight)\n        : {\n            x: 0,\n            y: 0,\n        };\n}\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction createLatLng(inst, Type) { return new Type(inst.lat, inst.lng); }\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction createLatLngBounds(inst, Type) {\n    return new Type(new google.maps.LatLng(inst.ne.lat, inst.ne.lng), new google.maps.LatLng(inst.sw.lat, inst.sw.lng));\n}\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction ensureOfType(inst, \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype, \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfactory\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n) {\n    return inst instanceof type ? inst : factory(inst, type);\n}\nfunction ensureOfTypeBounds(inst, \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype, \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfactory\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n) {\n    return inst instanceof type ? inst : factory(inst, type);\n}\nfunction getLayoutStylesByBounds(mapCanvasProjection, offset, bounds) {\n    var ne = mapCanvasProjection && mapCanvasProjection.fromLatLngToDivPixel(bounds.getNorthEast());\n    var sw = mapCanvasProjection && mapCanvasProjection.fromLatLngToDivPixel(bounds.getSouthWest());\n    if (ne && sw) {\n        return {\n            left: \"\".concat(sw.x + offset.x, \"px\"),\n            top: \"\".concat(ne.y + offset.y, \"px\"),\n            width: \"\".concat(ne.x - sw.x - offset.x, \"px\"),\n            height: \"\".concat(sw.y - ne.y - offset.y, \"px\"),\n        };\n    }\n    return {\n        left: '-9999px',\n        top: '-9999px',\n    };\n}\nfunction getLayoutStylesByPosition(mapCanvasProjection, offset, position) {\n    var point = mapCanvasProjection && mapCanvasProjection.fromLatLngToDivPixel(position);\n    if (point) {\n        var x = point.x, y = point.y;\n        return {\n            left: \"\".concat(x + offset.x, \"px\"),\n            top: \"\".concat(y + offset.y, \"px\"),\n        };\n    }\n    return {\n        left: '-9999px',\n        top: '-9999px',\n    };\n}\nfunction getLayoutStyles(mapCanvasProjection, offset, bounds, position) {\n    return bounds !== undefined\n        ? getLayoutStylesByBounds(mapCanvasProjection, offset, ensureOfTypeBounds(bounds, google.maps.LatLngBounds, createLatLngBounds))\n        : getLayoutStylesByPosition(mapCanvasProjection, offset, ensureOfType(position, google.maps.LatLng, createLatLng));\n}\nfunction arePositionsEqual(currentPosition, previousPosition) {\n    return currentPosition.left === previousPosition.left\n        && currentPosition.top === previousPosition.top\n        && currentPosition.width === previousPosition.height\n        && currentPosition.height === previousPosition.height;\n}\n\nfunction createOverlay(container, pane, position, bounds, getPixelPositionOffset) {\n    var Overlay = /** @class */ (function (_super) {\n        __extends(Overlay, _super);\n        function Overlay(container, pane, position, bounds) {\n            var _this = _super.call(this) || this;\n            _this.container = container;\n            _this.pane = pane;\n            _this.position = position;\n            _this.bounds = bounds;\n            return _this;\n        }\n        Overlay.prototype.onAdd = function () {\n            var _a;\n            var pane = (_a = this.getPanes()) === null || _a === void 0 ? void 0 : _a[this.pane];\n            pane === null || pane === void 0 ? void 0 : pane.appendChild(this.container);\n        };\n        Overlay.prototype.draw = function () {\n            var projection = this.getProjection();\n            var offset = __assign({}, (this.container\n                ? getOffsetOverride(this.container, getPixelPositionOffset)\n                : {\n                    x: 0,\n                    y: 0,\n                }));\n            var layoutStyles = getLayoutStyles(projection, offset, this.bounds, this.position);\n            for (var _i = 0, _a = Object.entries(layoutStyles); _i < _a.length; _i++) {\n                var _b = _a[_i], key = _b[0], value = _b[1];\n                // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n                // @ts-ignore\n                this.container.style[key] = value;\n            }\n        };\n        Overlay.prototype.onRemove = function () {\n            if (this.container.parentNode !== null) {\n                this.container.parentNode.removeChild(this.container);\n            }\n        };\n        return Overlay;\n    }(google.maps.OverlayView));\n    return new Overlay(container, pane, position, bounds);\n}\n\nfunction convertToLatLngString(latLngLike) {\n    if (!latLngLike) {\n        return '';\n    }\n    var latLng = latLngLike instanceof google.maps.LatLng\n        ? latLngLike\n        : new google.maps.LatLng(latLngLike.lat, latLngLike.lng);\n    return latLng + '';\n}\nfunction convertToLatLngBoundsString(latLngBoundsLike) {\n    if (!latLngBoundsLike) {\n        return '';\n    }\n    var latLngBounds = latLngBoundsLike instanceof google.maps.LatLngBounds\n        ? latLngBoundsLike\n        : new google.maps.LatLngBounds(new google.maps.LatLng(latLngBoundsLike.south, latLngBoundsLike.east), new google.maps.LatLng(latLngBoundsLike.north, latLngBoundsLike.west));\n    return latLngBounds + '';\n}\nvar FLOAT_PANE = \"floatPane\";\nvar MAP_PANE = \"mapPane\";\nvar MARKER_LAYER = \"markerLayer\";\nvar OVERLAY_LAYER = \"overlayLayer\";\nvar OVERLAY_MOUSE_TARGET = \"overlayMouseTarget\";\nfunction OverlayViewFunctional(_a) {\n    var position = _a.position, bounds = _a.bounds, mapPaneName = _a.mapPaneName, zIndex = _a.zIndex, onLoad = _a.onLoad, onUnmount = _a.onUnmount, getPixelPositionOffset = _a.getPixelPositionOffset, children = _a.children;\n    var map = useContext(MapContext);\n    var container = useMemo(function () {\n        var div = document.createElement('div');\n        div.style.position = 'absolute';\n        return div;\n    }, []);\n    var overlay = useMemo(function () {\n        return createOverlay(container, mapPaneName, position, bounds, getPixelPositionOffset);\n    }, [container, mapPaneName, position, bounds]);\n    useEffect(function () {\n        onLoad === null || onLoad === void 0 ? void 0 : onLoad(overlay);\n        overlay === null || overlay === void 0 ? void 0 : overlay.setMap(map);\n        return function () {\n            onUnmount === null || onUnmount === void 0 ? void 0 : onUnmount(overlay);\n            overlay === null || overlay === void 0 ? void 0 : overlay.setMap(null);\n        };\n    }, [map, overlay]);\n    // to move the container to the foreground and background\n    useEffect(function () {\n        container.style.zIndex = \"\".concat(zIndex);\n    }, [zIndex, container]);\n    return ReactDOM.createPortal(children, container);\n}\nvar OverlayViewF = memo(OverlayViewFunctional);\nvar OverlayView = /** @class */ (function (_super) {\n    __extends(OverlayView, _super);\n    function OverlayView(props) {\n        var _this = _super.call(this, props) || this;\n        _this.state = {\n            paneEl: null,\n            containerStyle: {\n                // set initial position\n                position: 'absolute',\n            },\n        };\n        _this.updatePane = function () {\n            var mapPaneName = _this.props.mapPaneName;\n            // https://developers.google.com/maps/documentation/javascript/3.exp/reference#MapPanes\n            var mapPanes = _this.overlayView.getPanes();\n            invariant$1(!!mapPaneName, \"OverlayView requires props.mapPaneName but got %s\", mapPaneName);\n            if (mapPanes) {\n                _this.setState({\n                    paneEl: mapPanes[mapPaneName],\n                });\n            }\n            else {\n                _this.setState({\n                    paneEl: null,\n                });\n            }\n        };\n        _this.onAdd = function () {\n            var _a, _b;\n            _this.updatePane();\n            (_b = (_a = _this.props).onLoad) === null || _b === void 0 ? void 0 : _b.call(_a, _this.overlayView);\n        };\n        _this.onPositionElement = function () {\n            var mapCanvasProjection = _this.overlayView.getProjection();\n            var offset = __assign({ x: 0, y: 0 }, (_this.containerRef.current\n                ? getOffsetOverride(_this.containerRef.current, _this.props.getPixelPositionOffset)\n                : {}));\n            var layoutStyles = getLayoutStyles(mapCanvasProjection, offset, _this.props.bounds, _this.props.position);\n            var _a = _this.state.containerStyle, left = _a.left, top = _a.top, width = _a.width, height = _a.height;\n            if (!arePositionsEqual(layoutStyles, { left: left, top: top, width: width, height: height })) {\n                _this.setState({\n                    containerStyle: {\n                        top: layoutStyles.top || 0,\n                        left: layoutStyles.left || 0,\n                        width: layoutStyles.width || 0,\n                        height: layoutStyles.height || 0,\n                        position: 'absolute',\n                    },\n                });\n            }\n        };\n        _this.draw = function () {\n            _this.onPositionElement();\n        };\n        _this.onRemove = function () {\n            var _a, _b;\n            _this.setState(function () { return ({\n                paneEl: null,\n            }); });\n            (_b = (_a = _this.props).onUnmount) === null || _b === void 0 ? void 0 : _b.call(_a, _this.overlayView);\n        };\n        _this.containerRef = createRef();\n        // You must implement three methods: onAdd(), draw(), and onRemove().\n        var overlayView = new google.maps.OverlayView();\n        overlayView.onAdd = _this.onAdd;\n        overlayView.draw = _this.draw;\n        overlayView.onRemove = _this.onRemove;\n        _this.overlayView = overlayView;\n        return _this;\n    }\n    OverlayView.prototype.componentDidMount = function () {\n        this.overlayView.setMap(this.context);\n    };\n    OverlayView.prototype.componentDidUpdate = function (prevProps) {\n        var prevPositionString = convertToLatLngString(prevProps.position);\n        var positionString = convertToLatLngString(this.props.position);\n        var prevBoundsString = convertToLatLngBoundsString(prevProps.bounds);\n        var boundsString = convertToLatLngBoundsString(this.props.bounds);\n        if (prevPositionString !== positionString ||\n            prevBoundsString !== boundsString) {\n            this.overlayView.draw();\n        }\n        if (prevProps.mapPaneName !== this.props.mapPaneName) {\n            this.updatePane();\n        }\n    };\n    OverlayView.prototype.componentWillUnmount = function () {\n        this.overlayView.setMap(null);\n    };\n    OverlayView.prototype.render = function () {\n        var paneEl = this.state.paneEl;\n        if (paneEl) {\n            return ReactDOM.createPortal(jsx(\"div\", { ref: this.containerRef, style: this.state.containerStyle, children: Children.only(this.props.children) }), paneEl);\n        }\n        else {\n            return null;\n        }\n    };\n    OverlayView.FLOAT_PANE = \"floatPane\";\n    OverlayView.MAP_PANE = \"mapPane\";\n    OverlayView.MARKER_LAYER = \"markerLayer\";\n    OverlayView.OVERLAY_LAYER = \"overlayLayer\";\n    OverlayView.OVERLAY_MOUSE_TARGET = \"overlayMouseTarget\";\n    OverlayView.contextType = MapContext;\n    return OverlayView;\n}(PureComponent));\n\nfunction noop() { return; }\n\nvar eventMap$5 = {\n    onDblClick: 'dblclick',\n    onClick: 'click',\n};\nvar updaterMap$5 = {\n    opacity: function (instance, opacity) {\n        instance.setOpacity(opacity);\n    },\n};\nfunction GroundOverlayFunctional(_a) {\n    var url = _a.url, bounds = _a.bounds, options = _a.options, visible = _a.visible;\n    var map = useContext(MapContext);\n    var imageBounds = new google.maps.LatLngBounds(new google.maps.LatLng(bounds.south, bounds.west), new google.maps.LatLng(bounds.north, bounds.east));\n    var groundOverlay = useMemo(function () {\n        var overlay = new google.maps.GroundOverlay(url, imageBounds, __assign({}, options));\n        return overlay;\n    }, []);\n    useEffect(function () {\n        if (groundOverlay !== null) {\n            groundOverlay.setMap(map);\n        }\n    }, [map]);\n    useEffect(function () {\n        if (typeof url !== 'undefined' && groundOverlay !== null) {\n            groundOverlay.set(\"url\", url);\n            groundOverlay.setMap(map);\n        }\n    }, [groundOverlay, url]);\n    useEffect(function () {\n        if (typeof visible !== 'undefined' && groundOverlay !== null) {\n            groundOverlay.setOpacity(visible ? 1 : 0);\n        }\n    }, [groundOverlay, visible]);\n    useEffect(function () {\n        var newBounds = new google.maps.LatLngBounds(new google.maps.LatLng(bounds.south, bounds.west), new google.maps.LatLng(bounds.north, bounds.east));\n        if (typeof bounds !== 'undefined' && groundOverlay !== null) {\n            groundOverlay.set(\"bounds\", newBounds);\n            groundOverlay.setMap(map);\n        }\n    }, [groundOverlay, bounds]);\n    return null;\n}\nvar GroundOverlayF = memo(GroundOverlayFunctional);\nvar GroundOverlay = /** @class */ (function (_super) {\n    __extends(GroundOverlay, _super);\n    function GroundOverlay() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.state = {\n            groundOverlay: null,\n        };\n        _this.setGroundOverlayCallback = function () {\n            if (_this.state.groundOverlay !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.groundOverlay);\n            }\n        };\n        return _this;\n    }\n    GroundOverlay.prototype.componentDidMount = function () {\n        invariant$1(!!this.props.url || !!this.props.bounds, \"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655\");\n        var groundOverlay = new google.maps.GroundOverlay(this.props.url, this.props.bounds, __assign(__assign({}, this.props.options), { map: this.context }));\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$5,\n            eventMap: eventMap$5,\n            prevProps: {},\n            nextProps: this.props,\n            instance: groundOverlay,\n        });\n        this.setState(function setGroundOverlay() {\n            return {\n                groundOverlay: groundOverlay,\n            };\n        }, this.setGroundOverlayCallback);\n    };\n    GroundOverlay.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.groundOverlay !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$5,\n                eventMap: eventMap$5,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.groundOverlay,\n            });\n        }\n    };\n    GroundOverlay.prototype.componentWillUnmount = function () {\n        if (this.state.groundOverlay) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.groundOverlay);\n            }\n            this.state.groundOverlay.setMap(null);\n        }\n    };\n    GroundOverlay.prototype.render = function () {\n        return null;\n    };\n    GroundOverlay.defaultProps = {\n        onLoad: noop,\n    };\n    GroundOverlay.contextType = MapContext;\n    return GroundOverlay;\n}(PureComponent));\n\nvar eventMap$4 = {};\nvar updaterMap$4 = {\n    data: function (instance, data) {\n        instance.setData(data);\n    },\n    map: function (instance, map) {\n        instance.setMap(map);\n    },\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n};\nfunction HeatmapLayerFunctional(_a) {\n    var data = _a.data, onLoad = _a.onLoad, onUnmount = _a.onUnmount, options = _a.options;\n    var map = useContext(MapContext);\n    var _b = useState(null), instance = _b[0], setInstance = _b[1];\n    useEffect(function () {\n        if (!google.maps.visualization) {\n            invariant$1(!!google.maps.visualization, 'Did you include prop libraries={[\"visualization\"]} in useJsApiScript? %s', google.maps.visualization);\n        }\n    }, []);\n    useEffect(function () {\n        invariant$1(!!data, 'data property is required in HeatmapLayer %s', data);\n    }, [data]);\n    // Order does matter\n    useEffect(function () {\n        if (instance !== null) {\n            instance.setMap(map);\n        }\n    }, [map]);\n    useEffect(function () {\n        if (options && instance !== null) {\n            instance.setOptions(options);\n        }\n    }, [instance, options]);\n    useEffect(function () {\n        var heatmapLayer = new google.maps.visualization.HeatmapLayer(__assign(__assign({}, (options || {})), { data: data, map: map }));\n        setInstance(heatmapLayer);\n        if (onLoad) {\n            onLoad(heatmapLayer);\n        }\n        return function () {\n            if (instance !== null) {\n                if (onUnmount) {\n                    onUnmount(instance);\n                }\n                instance.setMap(null);\n            }\n        };\n    }, []);\n    return null;\n}\nvar HeatmapLayerF = memo(HeatmapLayerFunctional);\nvar HeatmapLayer = /** @class */ (function (_super) {\n    __extends(HeatmapLayer, _super);\n    function HeatmapLayer() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.state = {\n            heatmapLayer: null,\n        };\n        _this.setHeatmapLayerCallback = function () {\n            if (_this.state.heatmapLayer !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.heatmapLayer);\n            }\n        };\n        return _this;\n    }\n    HeatmapLayer.prototype.componentDidMount = function () {\n        invariant$1(!!google.maps.visualization, 'Did you include prop libraries={[\"visualization\"]} to <LoadScript />? %s', google.maps.visualization);\n        invariant$1(!!this.props.data, 'data property is required in HeatmapLayer %s', this.props.data);\n        var heatmapLayer = new google.maps.visualization.HeatmapLayer(__assign(__assign({}, (this.props.options || {})), { data: this.props.data, map: this.context }));\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$4,\n            eventMap: eventMap$4,\n            prevProps: {},\n            nextProps: this.props,\n            instance: heatmapLayer,\n        });\n        this.setState(function setHeatmapLayer() {\n            return {\n                heatmapLayer: heatmapLayer,\n            };\n        }, this.setHeatmapLayerCallback);\n    };\n    HeatmapLayer.prototype.componentDidUpdate = function (prevProps) {\n        unregisterEvents(this.registeredEvents);\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$4,\n            eventMap: eventMap$4,\n            prevProps: prevProps,\n            nextProps: this.props,\n            instance: this.state.heatmapLayer,\n        });\n    };\n    HeatmapLayer.prototype.componentWillUnmount = function () {\n        if (this.state.heatmapLayer !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.heatmapLayer);\n            }\n            unregisterEvents(this.registeredEvents);\n            this.state.heatmapLayer.setMap(null);\n        }\n    };\n    HeatmapLayer.prototype.render = function () {\n        return null;\n    };\n    HeatmapLayer.contextType = MapContext;\n    return HeatmapLayer;\n}(PureComponent));\n\nvar eventMap$3 = {\n    onCloseClick: 'closeclick',\n    onPanoChanged: 'pano_changed',\n    onPositionChanged: 'position_changed',\n    onPovChanged: 'pov_changed',\n    onResize: 'resize',\n    onStatusChanged: 'status_changed',\n    onVisibleChanged: 'visible_changed',\n    onZoomChanged: 'zoom_changed',\n};\nvar updaterMap$3 = {\n    register: function (instance, provider, options) {\n        instance.registerPanoProvider(provider, options);\n    },\n    links: function (instance, links) {\n        instance.setLinks(links);\n    },\n    motionTracking: function (instance, motionTracking) {\n        instance.setMotionTracking(motionTracking);\n    },\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n    pano: function (instance, pano) {\n        instance.setPano(pano);\n    },\n    position: function (instance, position) {\n        instance.setPosition(position);\n    },\n    pov: function (instance, pov) {\n        instance.setPov(pov);\n    },\n    visible: function (instance, visible) {\n        instance.setVisible(visible);\n    },\n    zoom: function (instance, zoom) {\n        instance.setZoom(zoom);\n    },\n};\nvar StreetViewPanorama = /** @class */ (function (_super) {\n    __extends(StreetViewPanorama, _super);\n    function StreetViewPanorama() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.state = {\n            streetViewPanorama: null,\n        };\n        _this.setStreetViewPanoramaCallback = function () {\n            if (_this.state.streetViewPanorama !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.streetViewPanorama);\n            }\n        };\n        return _this;\n    }\n    StreetViewPanorama.prototype.componentDidMount = function () {\n        var _a, _b;\n        var streetViewPanorama = (_b = (_a = this.context) === null || _a === void 0 ? void 0 : _a.getStreetView()) !== null && _b !== void 0 ? _b : null;\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$3,\n            eventMap: eventMap$3,\n            prevProps: {},\n            nextProps: this.props,\n            instance: streetViewPanorama,\n        });\n        this.setState(function () {\n            return {\n                streetViewPanorama: streetViewPanorama,\n            };\n        }, this.setStreetViewPanoramaCallback);\n    };\n    StreetViewPanorama.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.streetViewPanorama !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$3,\n                eventMap: eventMap$3,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.streetViewPanorama,\n            });\n        }\n    };\n    StreetViewPanorama.prototype.componentWillUnmount = function () {\n        if (this.state.streetViewPanorama !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.streetViewPanorama);\n            }\n            unregisterEvents(this.registeredEvents);\n            this.state.streetViewPanorama.setVisible(false);\n        }\n    };\n    StreetViewPanorama.prototype.render = function () {\n        return null;\n    };\n    StreetViewPanorama.contextType = MapContext;\n    return StreetViewPanorama;\n}(PureComponent));\n\nvar StreetViewService = /** @class */ (function (_super) {\n    __extends(StreetViewService, _super);\n    function StreetViewService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.state = {\n            streetViewService: null,\n        };\n        _this.setStreetViewServiceCallback = function () {\n            if (_this.state.streetViewService !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.streetViewService);\n            }\n        };\n        return _this;\n    }\n    StreetViewService.prototype.componentDidMount = function () {\n        var streetViewService = new google.maps.StreetViewService();\n        this.setState(function setStreetViewService() {\n            return {\n                streetViewService: streetViewService,\n            };\n        }, this.setStreetViewServiceCallback);\n    };\n    StreetViewService.prototype.componentWillUnmount = function () {\n        if (this.state.streetViewService !== null && this.props.onUnmount) {\n            this.props.onUnmount(this.state.streetViewService);\n        }\n    };\n    StreetViewService.prototype.render = function () {\n        return null;\n    };\n    StreetViewService.contextType = MapContext;\n    return StreetViewService;\n}(PureComponent));\n\nvar DirectionsService = /** @class */ (function (_super) {\n    __extends(DirectionsService, _super);\n    function DirectionsService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.state = {\n            directionsService: null,\n        };\n        _this.setDirectionsServiceCallback = function () {\n            if (_this.state.directionsService !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.directionsService);\n            }\n        };\n        return _this;\n    }\n    DirectionsService.prototype.componentDidMount = function () {\n        invariant$1(!!this.props.options, 'DirectionsService expected options object as parameter, but got %s', this.props.options);\n        var directionsService = new google.maps.DirectionsService();\n        this.setState(function setDirectionsService() {\n            return {\n                directionsService: directionsService,\n            };\n        }, this.setDirectionsServiceCallback);\n    };\n    DirectionsService.prototype.componentDidUpdate = function () {\n        if (this.state.directionsService !== null) {\n            this.state.directionsService.route(this.props.options, this.props.callback);\n        }\n    };\n    DirectionsService.prototype.componentWillUnmount = function () {\n        if (this.state.directionsService !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.directionsService);\n            }\n        }\n    };\n    DirectionsService.prototype.render = function () {\n        return null;\n    };\n    return DirectionsService;\n}(PureComponent));\n\nvar eventMap$2 = {\n    onDirectionsChanged: 'directions_changed',\n};\nvar updaterMap$2 = {\n    directions: function (instance, directions) {\n        instance.setDirections(directions);\n    },\n    map: function (instance, map) {\n        instance.setMap(map);\n    },\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n    panel: function (instance, panel) {\n        instance.setPanel(panel);\n    },\n    routeIndex: function (instance, routeIndex) {\n        instance.setRouteIndex(routeIndex);\n    },\n};\nvar DirectionsRenderer = /** @class */ (function (_super) {\n    __extends(DirectionsRenderer, _super);\n    function DirectionsRenderer() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.state = {\n            directionsRenderer: null,\n        };\n        _this.setDirectionsRendererCallback = function () {\n            if (_this.state.directionsRenderer !== null) {\n                _this.state.directionsRenderer.setMap(_this.context);\n                if (_this.props.onLoad) {\n                    _this.props.onLoad(_this.state.directionsRenderer);\n                }\n            }\n        };\n        return _this;\n    }\n    DirectionsRenderer.prototype.componentDidMount = function () {\n        var directionsRenderer = new google.maps.DirectionsRenderer(this.props.options);\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap$2,\n            eventMap: eventMap$2,\n            prevProps: {},\n            nextProps: this.props,\n            instance: directionsRenderer,\n        });\n        this.setState(function setDirectionsRenderer() {\n            return {\n                directionsRenderer: directionsRenderer,\n            };\n        }, this.setDirectionsRendererCallback);\n    };\n    DirectionsRenderer.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.directionsRenderer !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$2,\n                eventMap: eventMap$2,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.directionsRenderer,\n            });\n        }\n    };\n    DirectionsRenderer.prototype.componentWillUnmount = function () {\n        if (this.state.directionsRenderer !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.directionsRenderer);\n            }\n            unregisterEvents(this.registeredEvents);\n            if (this.state.directionsRenderer) {\n                this.state.directionsRenderer.setMap(null);\n            }\n        }\n    };\n    DirectionsRenderer.prototype.render = function () {\n        return jsx(Fragment, {});\n    };\n    DirectionsRenderer.contextType = MapContext;\n    return DirectionsRenderer;\n}(PureComponent));\n\nvar DistanceMatrixService = /** @class */ (function (_super) {\n    __extends(DistanceMatrixService, _super);\n    function DistanceMatrixService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.state = {\n            distanceMatrixService: null,\n        };\n        _this.setDistanceMatrixServiceCallback = function () {\n            if (_this.state.distanceMatrixService !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.distanceMatrixService);\n            }\n        };\n        return _this;\n    }\n    DistanceMatrixService.prototype.componentDidMount = function () {\n        invariant$1(!!this.props.options, 'DistanceMatrixService expected options object as parameter, but go %s', this.props.options);\n        var distanceMatrixService = new google.maps.DistanceMatrixService();\n        this.setState(function setDistanceMatrixService() {\n            return {\n                distanceMatrixService: distanceMatrixService,\n            };\n        }, this.setDistanceMatrixServiceCallback);\n    };\n    DistanceMatrixService.prototype.componentDidUpdate = function () {\n        if (this.state.distanceMatrixService !== null) {\n            this.state.distanceMatrixService.getDistanceMatrix(this.props.options, this.props.callback);\n        }\n    };\n    DistanceMatrixService.prototype.componentWillUnmount = function () {\n        if (this.state.distanceMatrixService !== null && this.props.onUnmount) {\n            this.props.onUnmount(this.state.distanceMatrixService);\n        }\n    };\n    DistanceMatrixService.prototype.render = function () {\n        return null;\n    };\n    return DistanceMatrixService;\n}(PureComponent));\n\nvar eventMap$1 = {\n    onPlacesChanged: 'places_changed',\n};\nvar updaterMap$1 = {\n    bounds: function (instance, bounds) {\n        instance.setBounds(bounds);\n    },\n};\nvar StandaloneSearchBox = /** @class */ (function (_super) {\n    __extends(StandaloneSearchBox, _super);\n    function StandaloneSearchBox() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.containerElement = createRef();\n        _this.state = {\n            searchBox: null,\n        };\n        _this.setSearchBoxCallback = function () {\n            if (_this.state.searchBox !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.searchBox);\n            }\n        };\n        return _this;\n    }\n    StandaloneSearchBox.prototype.componentDidMount = function () {\n        invariant$1(!!google.maps.places, 'You need to provide libraries={[\"places\"]} prop to <LoadScript /> component %s', google.maps.places);\n        if (this.containerElement !== null && this.containerElement.current !== null) {\n            var input = this.containerElement.current.querySelector('input');\n            if (input !== null) {\n                var searchBox_1 = new google.maps.places.SearchBox(input, this.props.options);\n                this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                    updaterMap: updaterMap$1,\n                    eventMap: eventMap$1,\n                    prevProps: {},\n                    nextProps: this.props,\n                    instance: searchBox_1,\n                });\n                this.setState(function setSearchBox() {\n                    return {\n                        searchBox: searchBox_1,\n                    };\n                }, this.setSearchBoxCallback);\n            }\n        }\n    };\n    StandaloneSearchBox.prototype.componentDidUpdate = function (prevProps) {\n        if (this.state.searchBox !== null) {\n            unregisterEvents(this.registeredEvents);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap$1,\n                eventMap: eventMap$1,\n                prevProps: prevProps,\n                nextProps: this.props,\n                instance: this.state.searchBox,\n            });\n        }\n    };\n    StandaloneSearchBox.prototype.componentWillUnmount = function () {\n        if (this.state.searchBox !== null) {\n            if (this.props.onUnmount) {\n                this.props.onUnmount(this.state.searchBox);\n            }\n            unregisterEvents(this.registeredEvents);\n        }\n    };\n    StandaloneSearchBox.prototype.render = function () {\n        return jsx(\"div\", { ref: this.containerElement, children: Children.only(this.props.children) });\n    };\n    StandaloneSearchBox.contextType = MapContext;\n    return StandaloneSearchBox;\n}(PureComponent));\n\nvar eventMap = {\n    onPlaceChanged: 'place_changed',\n};\nvar updaterMap = {\n    bounds: function (instance, bounds) {\n        instance.setBounds(bounds);\n    },\n    restrictions: function (instance, restrictions) {\n        instance.setComponentRestrictions(restrictions);\n    },\n    fields: function (instance, fields) {\n        instance.setFields(fields);\n    },\n    options: function (instance, options) {\n        instance.setOptions(options);\n    },\n    types: function (instance, types) {\n        instance.setTypes(types);\n    },\n};\nvar Autocomplete = /** @class */ (function (_super) {\n    __extends(Autocomplete, _super);\n    function Autocomplete() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registeredEvents = [];\n        _this.containerElement = createRef();\n        _this.state = {\n            autocomplete: null,\n        };\n        _this.setAutocompleteCallback = function () {\n            if (_this.state.autocomplete !== null && _this.props.onLoad) {\n                _this.props.onLoad(_this.state.autocomplete);\n            }\n        };\n        return _this;\n    }\n    Autocomplete.prototype.componentDidMount = function () {\n        var _a;\n        invariant$1(!!google.maps.places, 'You need to provide libraries={[\"places\"]} prop to <LoadScript /> component %s', google.maps.places);\n        // TODO: why current could be equal null?\n        var input = (_a = this.containerElement.current) === null || _a === void 0 ? void 0 : _a.querySelector('input');\n        if (input) {\n            var autocomplete_1 = new google.maps.places.Autocomplete(input, this.props.options);\n            this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n                updaterMap: updaterMap,\n                eventMap: eventMap,\n                prevProps: {},\n                nextProps: this.props,\n                instance: autocomplete_1,\n            });\n            this.setState(function () {\n                return {\n                    autocomplete: autocomplete_1,\n                };\n            }, this.setAutocompleteCallback);\n        }\n    };\n    Autocomplete.prototype.componentDidUpdate = function (prevProps) {\n        unregisterEvents(this.registeredEvents);\n        this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({\n            updaterMap: updaterMap,\n            eventMap: eventMap,\n            prevProps: prevProps,\n            nextProps: this.props,\n            instance: this.state.autocomplete,\n        });\n    };\n    Autocomplete.prototype.componentWillUnmount = function () {\n        if (this.state.autocomplete !== null) {\n            unregisterEvents(this.registeredEvents);\n        }\n    };\n    Autocomplete.prototype.render = function () {\n        return jsx(\"div\", { ref: this.containerElement, className: this.props.className, children: Children.only(this.props.children) });\n    };\n    Autocomplete.defaultProps = {\n        className: ''\n    };\n    Autocomplete.contextType = MapContext;\n    return Autocomplete;\n}(PureComponent));\n\nexport { Autocomplete, BicyclingLayer, BicyclingLayerF, Circle, CircleF, Data, DataF, DirectionsRenderer, DirectionsService, DistanceMatrixService, DrawingManager, DrawingManagerF, FLOAT_PANE, GoogleMap, index_esm as GoogleMapsMarkerClusterer, GoogleMarkerClusterer$1 as GoogleMarkerClusterer, GroundOverlay, GroundOverlayF, HeatmapLayer, HeatmapLayerF, InfoBoxComponent as InfoBox, InfoBoxF, InfoWindow, InfoWindowF, KmlLayer, LoadScript, LoadScriptNext$1 as LoadScriptNext, MAP_PANE, MARKER_LAYER, MapContext, Marker, ClustererComponent as MarkerClusterer, MarkerClustererF, MarkerF, OVERLAY_LAYER, OVERLAY_MOUSE_TARGET, OverlayView, OverlayViewF, Polygon, PolygonF, Polyline, PolylineF, Rectangle, RectangleF, StandaloneSearchBox, StreetViewPanorama, StreetViewService, TrafficLayer, TrafficLayerF, TransitLayer, TransitLayerF, useGoogleMap, useJsApiLoader, useLoadScript };\n//# sourceMappingURL=esm.js.map\n","import { Spinner } from '@legacy/Components/Spinner';\r\nimport { GoogleMap, Marker, Polygon, useJsApiLoader } from '@react-google-maps/api';\r\nimport * as React from 'react';\r\nimport { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react';\r\nimport { Coordinates } from './api';\r\n\r\n// The coordinates of a polygon that covers the whole Earth. The valid area for showing where the\r\n// user can select a coordinate is a hole cut into this polygon.\r\nconst overlayCoordinates = [\r\n    { lat: 85, lng: 180 },\r\n    { lat: 85, lng: 90 },\r\n    { lat: 85, lng: 0 },\r\n    { lat: 85, lng: -90 },\r\n    { lat: 85, lng: -180 },\r\n    { lat: 0, lng: -180 },\r\n    { lat: -85, lng: -180 },\r\n    { lat: -85, lng: -90 },\r\n    { lat: -85, lng: 0 },\r\n    { lat: -85, lng: 90 },\r\n    { lat: -85, lng: 180 },\r\n    { lat: 0, lng: 180 },\r\n    { lat: 85, lng: 180 },\r\n].reverse();\r\n\r\nconst polygonOptions = {\r\n    strokeColor: 'black',\r\n    strokeOpacity: 0.5,\r\n    strokeWeight: 1,\r\n    fillColor: 'black',\r\n    fillOpacity: 0.25,\r\n};\r\n\r\ntype Props = {\r\n    selectLocation: (location: Coordinates) => void;\r\n    selected: Coordinates | null;\r\n    boundaries: Coordinates[][];\r\n    googleMapsApiKey: string;\r\n};\r\n\r\nexport type MapActions = {\r\n    initialized: Promise<void>;\r\n    containsLocation: (location: Coordinates) => boolean;\r\n};\r\n\r\nexport const Map = forwardRef<MapActions, Props>(({ selectLocation, selected, boundaries, googleMapsApiKey }, ref) => {\r\n    const initialCenter = React.useRef<Coordinates>({ lat: 39.833333, lng: -98.583333 }), // Geographical center of the contiguous US.\r\n        { isLoaded } = useJsApiLoader({ googleMapsApiKey, version: 'quarterly' }),\r\n        [map, setMap] = useState<google.maps.Map | null>(null),\r\n        polygon = useRef<google.maps.Polygon | null>(null);\r\n\r\n    useImperativeHandle(ref, () => ({\r\n        initialized: new Promise<void>(resolve => {\r\n            const interval = setInterval(() => {\r\n                if (isLoaded && polygon) {\r\n                    clearInterval(interval);\r\n                    resolve();\r\n                }\r\n            }, 100);\r\n        }),\r\n        containsLocation,\r\n    }));\r\n\r\n    useEffect(() => {\r\n        if (!map || !boundaries?.length) return;\r\n\r\n        const bounds = new google.maps.LatLngBounds();\r\n        boundaries.forEach(outer => {\r\n            outer.forEach(coordinate => bounds.extend(coordinate));\r\n        });\r\n        map.fitBounds(bounds, 25);\r\n    }, [boundaries, map]);\r\n\r\n    return isLoaded ? (\r\n        <GoogleMap\r\n            mapContainerClassName='map-container'\r\n            center={initialCenter.current}\r\n            zoom={4}\r\n            clickableIcons={false}\r\n            options={{\r\n                fullscreenControl: false,\r\n                streetViewControl: false,\r\n                mapTypeControl: false,\r\n            }}\r\n            onLoad={(m: google.maps.Map) => setMap(m)}\r\n            onClick={onSelect}\r\n        >\r\n            {selected && <Marker position={selected} />}\r\n\r\n            <Polygon\r\n                options={polygonOptions}\r\n                paths={[overlayCoordinates, ...(boundaries || [])]}\r\n                onLoad={(p: google.maps.Polygon) => (polygon.current = p)}\r\n            />\r\n        </GoogleMap>\r\n    ) : (\r\n        <div className='map-container'>\r\n            <Spinner />\r\n        </div>\r\n    );\r\n\r\n    function onSelect(e: google.maps.MapMouseEvent) {\r\n        if (!e.latLng) return;\r\n\r\n        selectLocation({ lat: e.latLng.lat(), lng: e.latLng.lng() });\r\n    }\r\n\r\n    function containsLocation(location: Coordinates): boolean {\r\n        // The polygon used to determine if a location is within the valid area is greyed out area. If it's not in that\r\n        // polygon (which spans the entire world except for the area we want to allow), then it's not a valid location.\r\n        return (polygon.current && !google.maps.geometry.poly.containsLocation(location, polygon.current)) || false;\r\n    }\r\n});\r\n","import { PrimaryRouteButton, SecondaryBackButton, StepButtons } from '@app/Components/Buttons';\r\nimport { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRow } from '@app/Components/StepTile';\r\nimport { Path } from '@app/Views';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport { ReducerType } from '@shared/Hooks/FormReducer';\r\nimport { Text } from '@webkit/index';\r\nimport { Coordinates } from './api';\r\nimport { FormType, usePreciseLocation } from './hook';\r\nimport { Map } from './map';\r\nimport './style.scss';\r\n\r\nexport const PreciseLocation = {\r\n    path: Path.PreciseLocation,\r\n    element: <PreciseLocationComponent />,\r\n    shouldRevalidate: () => false,\r\n};\r\n\r\nexport const PreciseLocationNoQuote = {\r\n    path: Path.PreciseLocationNoQuote,\r\n    auth: AccessRole.Agent,\r\n    element: <PreciseLocationComponent />,\r\n};\r\n\r\nexport function PreciseLocationComponent() {\r\n    const {\r\n        formReducer,\r\n        googleMapsApiKey,\r\n        map,\r\n        boundaries,\r\n        navigate,\r\n        submit,\r\n        isSelected,\r\n        isDisabled,\r\n        isLoading,\r\n        setSelectedLocation,\r\n    } = usePreciseLocation();\r\n\r\n    return (\r\n        <Step id='precise-location' title='Location' className='precise-location'>\r\n            <StepHeader\r\n                title='Precise Location'\r\n                description={`We don't have a precise location for that address. Please select the location in the highlighted region in the map below or enter the latitude and longitude manually.`}\r\n            />\r\n\r\n            <form method='post' onSubmit={submit}>\r\n                <Form reducer={formReducer} />\r\n\r\n                {googleMapsApiKey && (\r\n                    <Map\r\n                        ref={map}\r\n                        selectLocation={(location: Coordinates) => setSelectedLocation(location)}\r\n                        selected={isSelected}\r\n                        boundaries={boundaries}\r\n                        googleMapsApiKey={googleMapsApiKey}\r\n                    />\r\n                )}\r\n\r\n                <StepButtons\r\n                    positive={\r\n                        <PrimaryRouteButton\r\n                            id='next'\r\n                            type='submit'\r\n                            label='Next'\r\n                            disabled={isDisabled}\r\n                            loading={isLoading}\r\n                        />\r\n                    }\r\n                    negative={<SecondaryBackButton id='back' label='Back' onClick={() => navigate(-1)} />}\r\n                />\r\n            </form>\r\n        </Step>\r\n    );\r\n}\r\n\r\ntype FormProps = {\r\n    reducer: ReducerType<FormType>;\r\n};\r\n\r\nexport function Form({ reducer }: FormProps) {\r\n    const { form, set } = reducer;\r\n\r\n    return (\r\n        <>\r\n            <input type='hidden' name='address-key' value={reducer.form.addressKey.content} />\r\n\r\n            <StepTileRow>\r\n                <Text\r\n                    id='latitude'\r\n                    name='latitude'\r\n                    label='Latitude'\r\n                    value={form.lat}\r\n                    onChange={text => set('lat', text.trim())}\r\n                />\r\n\r\n                <Text\r\n                    id='longitude'\r\n                    name='longitude'\r\n                    label='Longitude'\r\n                    value={form.lng}\r\n                    onChange={text => set('lng', text.trim())}\r\n                />\r\n            </StepTileRow>\r\n        </>\r\n    );\r\n}\r\n","import { loadComparisonQuotes } from '@app/Api/ComparisonQuotes';\r\nimport { StateContext } from '@app/State';\r\nimport { CarrierCode, ProductLine } from '@business/CommonSets';\r\nimport { useAsyncEffect, useNavigateWithParams } from '@shared/Hooks';\r\nimport { Value } from '@webkit/index';\r\nimport { useContext, useEffect, useMemo, useState } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { Path, UrlParams } from '..';\r\n\r\nexport function useQuoteList() {\r\n    const application = useContext(StateContext),\r\n        [isLoading, setLoading] = useState<boolean>(false),\r\n        params = useParams(),\r\n        { product, quoteId } = params,\r\n        [quoteValues, setQuoteValues] = useState<{ [key: string]: Value<boolean> }>({}),\r\n        [error, setError] = useState<string | null>(null),\r\n        selectedQuotes = useMemo(() => Object.keys(quoteValues).filter(key => quoteValues[key].content), [quoteValues]),\r\n        navigate = useNavigateWithParams();\r\n\r\n    useAsyncEffect(async () => {\r\n        try {\r\n            setLoading(true);\r\n            await loadComparisonQuotes(application, params as UrlParams);\r\n        } catch (error) {\r\n            application.update(state => (state.error = error));\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }, []);\r\n\r\n    useEffect(() => {\r\n        const productLine = ProductLine.parseOrDefault(product);\r\n\r\n        if (productLine && quoteId && application.state.comparisonModel) {\r\n            setQuoteValues(\r\n                application.state.comparisonModel.Quotes.reduce((acc, quote) => {\r\n                    acc[quote.QuoteId] = new Value<boolean>(quote.QuoteId, false);\r\n                    return acc;\r\n                }, {} as { [key: string]: Value<boolean> })\r\n            );\r\n        }\r\n    }, [product, quoteId, application.state.comparisonModel]);\r\n\r\n    return {\r\n        model: application.state.comparisonModel,\r\n        quoteValues,\r\n        toggleQuote,\r\n        selectedQuotes,\r\n        error,\r\n        isLoading,\r\n        onCompareQuotes,\r\n    };\r\n\r\n    function onCompareQuotes() {\r\n        if (!product || !quoteId) {\r\n            throw new Error('Product and quote ID are required to compare quotes.');\r\n        }\r\n\r\n        if (selectedQuotes.length !== 2) {\r\n            setError('Please select two quotes to compare.');\r\n            return;\r\n        }\r\n\r\n        const carriers = selectedQuotes.map(quoteId => {\r\n            const carrierCode = application.state.comparisonModel?.Quotes.find(q => q.QuoteId === quoteId)?.CarrierCode;\r\n            return CarrierCode.parse(carrierCode).abbreviation;\r\n        });\r\n\r\n        navigate(Path.CompareCustomize, { product, quoteId, carriers: carriers.join(',') });\r\n    }\r\n\r\n    function toggleQuote(quoteId: string, checked: boolean) {\r\n        const qv = { ...quoteValues };\r\n        qv[quoteId].set(checked);\r\n        setQuoteValues({ ...qv });\r\n    }\r\n}\r\n","import { useBindQuoteRedirect } from '@app/Hooks/BindQuoteRedirect';\r\nimport { StateContext } from '@app/State';\r\nimport { isAtLeastAgent, isLimitedAgentUser } from '@shared/Common';\r\nimport { useContext, useMemo } from 'react';\r\nimport { BindButtonProps } from './models';\r\n\r\n/** Logic for the quote list tile bind button. */\r\nexport function useBindButton(props: BindButtonProps) {\r\n    const { quoteId } = props,\r\n        application = useContext(StateContext),\r\n        disabled = useMemo(isDisabled, []),\r\n        { bindQuoteRedirect } = useBindQuoteRedirect();\r\n\r\n    return {\r\n        onClick,\r\n        disabled,\r\n        submit,\r\n    };\r\n\r\n    function onClick() {\r\n        application.update(state => (state.quoteId = quoteId));\r\n    }\r\n\r\n    function isDisabled() {\r\n        return !isAtLeastAgent() || isLimitedAgentUser();\r\n    }\r\n\r\n    function submit(e: React.FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n\r\n        try {\r\n            bindQuoteRedirect(quoteId);\r\n        } catch (e) {\r\n            application.update(state => (state.error = e));\r\n        }\r\n    }\r\n}\r\n","import { Button } from '@webkit/index';\r\nimport { useBindButton } from './hook';\r\nimport { BindButtonProps } from './models';\r\n\r\n/** Button that navigates to the bind page for a quote from the quote list tile component. */\r\nexport function BindButton(props: BindButtonProps) {\r\n    const { quoteId } = props,\r\n        { onClick, disabled, submit } = useBindButton(props);\r\n\r\n    return (\r\n        <form method='post' onSubmit={submit}>\r\n            <div className='w-full xs:max-w-[85%] mt-3 mx-auto'>\r\n                <Button id={`bind-quote-button-${quoteId}`} type='submit' onClick={onClick} isDisabled={disabled}>\r\n                    Bind\r\n                </Button>\r\n            </div>\r\n        </form>\r\n    );\r\n}\r\n","import { iconPaths } from '@shared/Constants';\r\nimport { Paragraph } from '@webkit/index';\r\nimport { clsx } from 'clsx';\r\nimport { QuoteListCarrierLogoProps } from './models';\r\n\r\n/** The carrier logo (and any accompanying partner logos or additional text as needed) displayed on each quote list tile. */\r\nexport function CarrierLogoLockup(props: QuoteListCarrierLogoProps) {\r\n    const { carrierCode } = props;\r\n\r\n    return (\r\n        <div id={`carrier-logo-lockup-${carrierCode.value}`} className='relative min-h-[61px] mt-5 text-center'>\r\n            {/* The classes on this div ensure the logo lockups are always center-aligned to each other even if they are slightly different sizes. */}\r\n            <div className='absolute top-[50%] left-[50%] transform translate-x-[-50%] translate-y-[-50%] w-full'>\r\n                {props.carrierCode.switch({\r\n                    onVave: VaveLloydsCoverholder,\r\n                    onNfip: Default,\r\n                    onBrit: LloydsPartner,\r\n                    onHiscox: LloydsPartner,\r\n                    onBenchmark: Default,\r\n                    onBenchmarkSpecialty: Default,\r\n                    onClearBlue: Default,\r\n                    onClearBlueSpecialty: Default,\r\n                    onDorchester: Default,\r\n                    onTopa: Default,\r\n                    onGranada: Default,\r\n                    onEmeraldBay: Default,\r\n                })}\r\n            </div>\r\n        </div>\r\n    );\r\n\r\n    /** The default carrier logo path is stored in the CarrierCode set. */\r\n    function Default() {\r\n        const defaultStyle = 'max-h-11';\r\n        return (\r\n            <img\r\n                id={`carrier-logo-${props.carrierCode.value}`}\r\n                alt={props.carrierCode.displayName}\r\n                className={clsx(\r\n                    'mx-auto',\r\n                    carrierCode.switch({\r\n                        onNfip: () => 'max-h-7 sm:max-h-11',\r\n                        onTopa: () => 'max-h-9',\r\n                        onVave: () => defaultStyle,\r\n                        onBrit: () => defaultStyle,\r\n                        onHiscox: () => defaultStyle,\r\n                        onBenchmark: () => defaultStyle,\r\n                        onBenchmarkSpecialty: () => defaultStyle,\r\n                        onClearBlue: () => defaultStyle,\r\n                        onClearBlueSpecialty: () => defaultStyle,\r\n                        onDorchester: () => defaultStyle,\r\n                        onGranada: () => defaultStyle,\r\n                        onEmeraldBay: () => defaultStyle,\r\n                    })\r\n                )}\r\n                src={props.carrierCode.logoPath}\r\n            />\r\n        );\r\n    }\r\n\r\n    /** Lloyd's and Vave want us to show a more specific logo because Lloyd's covers Vave policies. */\r\n    function VaveLloydsCoverholder() {\r\n        return (\r\n            <div className='grid grid-cols-1'>\r\n                <div className='sm:inline-flex gap-5 sm:max-h-11 mt-5 sm:mt-0 mx-auto'>\r\n                    <img\r\n                        id={`vave-carrier-logo`}\r\n                        alt={props.carrierCode.displayName}\r\n                        src={props.carrierCode.logoPath}\r\n                        className='max-h-11'\r\n                    />\r\n                    <img\r\n                        id={`lloyds-coverholder-logo`}\r\n                        alt={props.carrierCode.displayName}\r\n                        src={iconPaths.lloydsCoverholderLogo}\r\n                        className='max-h-11'\r\n                    />\r\n                </div>\r\n\r\n                <div className='mx-auto'>\r\n                    <Paragraph size='xs'>Underwritten by certain underwriters at Lloyd's</Paragraph>\r\n                </div>\r\n            </div>\r\n        );\r\n    }\r\n\r\n    /** Lloyd's wants us to show their logo along with non-Vave partner carriers (i.e. Hiscox, Brit). */\r\n    function LloydsPartner() {\r\n        const defaultStyle = 'max-h-10';\r\n\r\n        return (\r\n            <div className={`inline-flex gap-5 max-h-10 mx-auto`}>\r\n                <img\r\n                    id={`carrier-logo-${props.carrierCode.value}`}\r\n                    alt={props.carrierCode.displayName}\r\n                    className={props.carrierCode.switch({\r\n                        onHiscox: () => `${defaultStyle} -mt-1`,\r\n                        onBrit: () => 'max-h-8 mt-[6px]',\r\n                        onBenchmark: () => defaultStyle,\r\n                        onBenchmarkSpecialty: () => defaultStyle,\r\n                        onClearBlue: () => defaultStyle,\r\n                        onClearBlueSpecialty: () => defaultStyle,\r\n                        onDorchester: () => defaultStyle,\r\n                        onTopa: () => defaultStyle,\r\n                        onVave: () => defaultStyle,\r\n                        onNfip: () => defaultStyle,\r\n                        onGranada: () => defaultStyle,\r\n                        onEmeraldBay: () => defaultStyle,\r\n                    })}\r\n                    src={props.carrierCode.logoPath}\r\n                />\r\n                <img id='lloyds-logo' alt='Lloyds of London' className='max-h-10 mx-auto' src={iconPaths.lloydsLogo} />\r\n            </div>\r\n        );\r\n    }\r\n}\r\n","import { formatCurrencyUS } from '@shared/Common';\r\nimport { getComparisonQuoteElementsByElementName } from '@shared/Common/ComparisonQuoteHelpers';\r\nimport { useMemo } from 'react';\r\nimport { CoveragePreviewProps } from './models';\r\n\r\n/** Logic for retrieving quote elements to display the coverage preview information with. */\r\nexport function useCoveragePreview(props: CoveragePreviewProps) {\r\n    const { comparisonModel, quoteId, elementNames } = props,\r\n        elements = useMemo(getElements, [comparisonModel, quoteId, elementNames]);\r\n\r\n    return {\r\n        elements,\r\n    };\r\n\r\n    function getElements() {\r\n        return elementNames.map(elementName => {\r\n            const matchingComparisonElements = getComparisonQuoteElementsByElementName(comparisonModel, elementName),\r\n                displayName = matchingComparisonElements?.ElementDisplay,\r\n                value = matchingComparisonElements?.Elements.find(element => element.QuoteId === quoteId)?.Value,\r\n                displayValue = value ? formatCurrencyUS(value) : 'Unavailable';\r\n\r\n            return {\r\n                displayName,\r\n                displayValue,\r\n            };\r\n        });\r\n    }\r\n}\r\n","import { CarrierCode } from '@business/CommonSets';\r\nimport { Paragraph } from '@webkit/index';\r\nimport { clsx } from 'clsx';\r\nimport { useCoveragePreview } from './hook';\r\nimport { CoveragePreviewProps } from './models';\r\n\r\n/** A preview of coverage quote elements and values that is only displayed if a list of element names is provided. Displays each element display name and formatted value. */\r\nexport function CoveragePreview(props: CoveragePreviewProps) {\r\n    const { elementNames, carrierCode } = props,\r\n        { elements } = useCoveragePreview(props);\r\n\r\n    // If there are no elements to display, return an empty fragment.\r\n    if (elementNames.length === 0) return <></>;\r\n\r\n    return (\r\n        <>\r\n            <hr className={clsx('m-0 mb-3', carrierCode === CarrierCode.Vave ? 'mt-11 sm:mt-4' : 'mt-4')} />\r\n            <div id='quote-coverage-preview' className='mx-auto sm:max-w-[65%]'>\r\n                {elements.map(element => (\r\n                    <div key={element.displayName} className='inline-flex items-center gap-3'>\r\n                        <div className='min-w-[150px]'>\r\n                            <Paragraph size='sm'>{element.displayName}</Paragraph>\r\n                        </div>\r\n                        <Paragraph bold>\r\n                            <span className='text-black'>{element.displayValue}</span>\r\n                        </Paragraph>\r\n                    </div>\r\n                ))}\r\n            </div>\r\n        </>\r\n    );\r\n}\r\n","import { CarrierCode, ProductLine, RatingType } from '@business/CommonSets';\r\nimport { ElementNames } from '@shared/Constants';\r\nimport { useMemo } from 'react';\r\nimport { QuoteListTileProps } from './models';\r\n\r\n/** Logic and parameters used for the quote list tile component. */\r\nexport function useQuoteListTile(props: QuoteListTileProps) {\r\n    const { quote } = props,\r\n        ratingType = RatingType.parse(quote.RatingType),\r\n        carrierCode = CarrierCode.parse(quote.CarrierCode),\r\n        productLine = ProductLine.parse(quote.ProductLineId),\r\n        hasPremiumErrors = quote.QuotePremiumErrors.length > 0,\r\n        coveragePreviewElementNames = useMemo(getCoveragePreviewElementNames, []);\r\n\r\n    return {\r\n        ratingType,\r\n        carrierCode,\r\n        productLine,\r\n        hasPremiumErrors,\r\n        coveragePreviewElementNames,\r\n    };\r\n\r\n    /** Returns a list of quote element names to use for the coverage preview by product. */\r\n    function getCoveragePreviewElementNames() {\r\n        return productLine.switch({\r\n            onHomeowner: () => [],\r\n            onCommercial: () => [],\r\n            // Business wants to display a preview of building property and personal property limits only for Flood\r\n            onFlood: () => [ElementNames.BuildingPropertyLimit, ElementNames.coverageCLimit],\r\n        });\r\n    }\r\n}\r\n","import { ErrorIcon, Paragraph } from '@webkit/index';\r\n\r\n/** Static component that displays a message for when there are premium errors. */\r\nexport function PremiumErrorInfo() {\r\n    return (\r\n        <>\r\n            <hr className='m-0 mt-3 mb-4' />\r\n            <div id='quote-premium-error-info' className='text-center'>\r\n                <div className='inline-flex items-center gap-2'>\r\n                    <ErrorIcon fontSize='small' className='text-brand-red-250' />\r\n                    <Paragraph bold>\r\n                        <span className='text-brand-red-250'>Premium Unavailable</span>\r\n                    </Paragraph>\r\n                </div>\r\n                <Paragraph size='xs'>Click review or select to compare for details.</Paragraph>\r\n            </div>\r\n        </>\r\n    );\r\n}\r\n","import { simpleDateFormat } from '@shared/Constants';\r\nimport dayjs from 'dayjs';\r\nimport { useEffect, useMemo, useRef } from 'react';\r\nimport { useCountUp } from 'react-countup';\r\nimport { QuoteListTilePremiumInfoProps } from './models';\r\n\r\n/** Logic for formatting and displaying the premium and related information. */\r\nexport function usePremiumInfo(props: QuoteListTilePremiumInfoProps) {\r\n    const { grossAnnualPayment, expiresOn } = props,\r\n        premiumRef = useRef<HTMLSpanElement>(null),\r\n        { update } = useCountUp({\r\n            ref: premiumRef,\r\n            start: 0,\r\n            end: grossAnnualPayment,\r\n            duration: 1,\r\n            prefix: '$',\r\n            separator: ',',\r\n            useEasing: true,\r\n            easingFn: easeCountup,\r\n        }),\r\n        guaranteedUntilDate = useMemo(getQuoteGuaranteedUntilDate, [expiresOn]);\r\n\r\n    useEffect(() => update(grossAnnualPayment), [grossAnnualPayment]);\r\n\r\n    return {\r\n        guaranteedUntilDate,\r\n        premiumRef,\r\n    };\r\n\r\n    /** Business wants the guaranteed until date to be one day before the expiration date. */\r\n    function getQuoteGuaranteedUntilDate() {\r\n        return dayjs(expiresOn).subtract(1, 'day').format(simpleDateFormat);\r\n    }\r\n\r\n    function easeCountup(t: number, b: number, c: number, d: number) {\r\n        return c * ((t = t / d - 1) * t * t + 1) + b;\r\n    }\r\n}\r\n","import { Paragraph, Title } from '@webkit/index';\r\nimport { usePremiumInfo } from './hook';\r\nimport { QuoteListTilePremiumInfoProps } from './models';\r\n\r\n/** The premium and related info about purchasing a quote. */\r\nexport function PremiumInfo(props: QuoteListTilePremiumInfoProps) {\r\n    const { premiumRef, guaranteedUntilDate } = usePremiumInfo(props);\r\n\r\n    return (\r\n        <>\r\n            <hr className='m-0 mt-3 mb-4' />\r\n            <div id='quote-premium-info' className='max-w-[85%] mx-auto'>\r\n                <div className='inline-flex gap-4 items-center'>\r\n                    <Title size='lg'>\r\n                        {/* Premium is wrapped in a \"count-up\" animation which assigns the value via the element ref. */}\r\n                        <span ref={premiumRef} />\r\n                        <span className='text-sm'>/yr</span>\r\n                    </Title>\r\n                    <div>\r\n                        <Paragraph size='xs'>Includes Taxes & Fees</Paragraph>\r\n                        <Paragraph size='xs'>\r\n                            Guaranteed until <strong>{guaranteedUntilDate}</strong>\r\n                        </Paragraph>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </>\r\n    );\r\n}\r\n","import { PrintQuoteButton } from '@app/Components/PrintQuoteButton';\r\nimport { EmailButton } from '@app/Components/TileHeader/EmailButton';\r\nimport { ViewButton } from '@app/Components/TileHeader/ViewButton';\r\nimport { QuoteActionLinksProps } from './models';\r\n\r\n/** Secondary actions for quotes, such as printing and emailing, displayed on the quote list tile. */\r\nexport function QuoteActionLinks(props: QuoteActionLinksProps) {\r\n    const { comparisonModel, quote, productLine, hasPremiumErrors } = props;\r\n\r\n    return (\r\n        <div id={`quote-action-links-${quote.QuoteId}`} className='inline-flex gap-4 items-center mt-4 mx-auto'>\r\n            <PrintQuoteButton comparisonModel={comparisonModel} quote={quote} disabled={hasPremiumErrors} iconLink />\r\n            <ViewButton quoteId={quote.QuoteId} product={productLine} disabled={hasPremiumErrors} iconLink />\r\n            <EmailButton quote={quote} quoteCount={1} disabled={hasPremiumErrors} />\r\n        </div>\r\n    );\r\n}\r\n","import { Path } from '@app/Views';\r\nimport { useNavigateWithParams } from '@shared/Hooks';\r\nimport { ReviewButtonProps } from './models';\r\n\r\n/** Logic for using the review button to navigate to a single quote view. */\r\nexport function useReviewButton(props: ReviewButtonProps) {\r\n    const { quoteId, productLine } = props,\r\n        navigate = useNavigateWithParams();\r\n\r\n    return {\r\n        onClick,\r\n    };\r\n\r\n    function onClick() {\r\n        navigate(Path.Customize, { quoteId: quoteId, product: productLine.lowercaseName });\r\n    }\r\n}\r\n","import { Button } from '@webkit/index';\r\nimport { useReviewButton } from './hook';\r\nimport { ReviewButtonProps } from './models';\r\n\r\n/** Button that links to view the quote separately. Intended for when there are premium errors preventing bind. */\r\nexport function ReviewButton(props: ReviewButtonProps) {\r\n    const { quoteId } = props,\r\n        { onClick } = useReviewButton(props);\r\n\r\n    return (\r\n        <div className='w-full xs:max-w-[85%] mt-3 mx-auto'>\r\n            <Button id={`review-quote-button-${quoteId}`} onClick={onClick} isSecondary>\r\n                Review\r\n            </Button>\r\n        </div>\r\n    );\r\n}\r\n","import { getRatingTypeColor } from '@app/ProductComparison/ColorScheme';\r\nimport { QuoteListTileWrapperProps } from './models';\r\n\r\n/** The quote information container with a top border color-coded to the rating type. */\r\nexport function TileWrapper(props: QuoteListTileWrapperProps) {\r\n    const { id, ratingType } = props;\r\n\r\n    return (\r\n        <div id={id} className={'relative bg-white rounded-[4px] p-6 grid grid-cols-1 items-end'}>\r\n            <div\r\n                id='rating-type-color'\r\n                className={`absolute top-0 w-full rounded-t-[4px] text-center min-h-6 grid grid-cols-1 items-center justify-items-center ${getRatingTypeColor(\r\n                    ratingType\r\n                )}`}\r\n            >\r\n                <strong className='text-black font-sans leading-none text-[13px] font-black uppercase tracking-[3px]'>\r\n                    {ratingType.displayValue}\r\n                </strong>\r\n            </div>\r\n\r\n            {props.children}\r\n        </div>\r\n    );\r\n}\r\n","import { Checkbox } from '@webkit/index';\r\nimport { BindButton } from './BindButton';\r\nimport { CarrierLogoLockup } from './CarrierLogo';\r\nimport { CoveragePreview } from './CoveragePreview';\r\nimport { useQuoteListTile } from './hook';\r\nimport { QuoteListTileProps } from './models';\r\nimport { PremiumErrorInfo } from './PremiumErrorInfo';\r\nimport { PremiumInfo } from './PremiumInfo';\r\nimport { QuoteActionLinks } from './QuoteActionLinks';\r\nimport { ReviewButton } from './ReviewButton';\r\nimport { TileWrapper } from './TileWrapper';\r\n\r\n/** The tile that displays quote information and actions, including selecting a quote to compare, for the quote list view shown when there are more than two quotes available. */\r\nexport function QuoteListTile(props: QuoteListTileProps) {\r\n    const { comparisonModel, quote, isToggled, onQuoteToggle } = props,\r\n        { ratingType, carrierCode, productLine, hasPremiumErrors, coveragePreviewElementNames } =\r\n            useQuoteListTile(props);\r\n\r\n    return (\r\n        <TileWrapper id={`quote-tile-${quote.QuoteId}`} ratingType={ratingType}>\r\n            <div className='mt-3'>\r\n                <Checkbox\r\n                    id={`toggle-quote-${quote.QuoteId}`}\r\n                    value={isToggled}\r\n                    onChange={checked => onQuoteToggle(quote.QuoteId, checked)}\r\n                >\r\n                    Compare Quote\r\n                </Checkbox>\r\n            </div>\r\n\r\n            <CarrierLogoLockup carrierCode={carrierCode} />\r\n\r\n            <CoveragePreview\r\n                comparisonModel={comparisonModel}\r\n                quoteId={quote.QuoteId}\r\n                carrierCode={carrierCode}\r\n                elementNames={coveragePreviewElementNames}\r\n            />\r\n\r\n            {hasPremiumErrors ? (\r\n                <>\r\n                    <PremiumErrorInfo />\r\n                    <ReviewButton quoteId={quote.QuoteId} productLine={productLine} />\r\n                </>\r\n            ) : (\r\n                <>\r\n                    <PremiumInfo grossAnnualPayment={quote.GrossAnnualPayment} expiresOn={quote.ExpiresOn} />\r\n                    <BindButton quoteId={quote.QuoteId} />\r\n                </>\r\n            )}\r\n\r\n            <QuoteActionLinks\r\n                comparisonModel={comparisonModel}\r\n                quote={quote}\r\n                productLine={productLine}\r\n                hasPremiumErrors={hasPremiumErrors}\r\n            />\r\n        </TileWrapper>\r\n    );\r\n}\r\n","import { LayoutWrapper } from '@app/Components/LayoutWrapper';\r\nimport { RouteLoadingSpinner } from '@app/Components/RouteLoadingSpinner';\r\nimport { ViewWrapper } from '@app/Components/ViewWrapper';\r\nimport { SidebarHeader } from '@app/ProductComparison/SidebarHeader';\r\nimport { Path } from '@app/Views';\r\nimport { Button, Paragraph } from '@webkit/index';\r\nimport { clsx } from 'clsx';\r\nimport { useQuoteList } from './hook';\r\nimport './style.scss';\r\nimport { QuoteListTile } from './Tile';\r\n\r\nexport const QuoteList = {\r\n    path: Path.QuoteList,\r\n    element: <Component />,\r\n    shouldRevalidate: () => false,\r\n};\r\n\r\nexport function Component() {\r\n    const { model, quoteValues, toggleQuote, error, isLoading, onCompareQuotes } = useQuoteList();\r\n\r\n    return (\r\n        <div className='quote-list'>\r\n            <div className='step'>\r\n                <ViewWrapper title='Quotes' id='quote-list'>\r\n                    {isLoading ? (\r\n                        <RouteLoadingSpinner />\r\n                    ) : (\r\n                        <LayoutWrapper>\r\n                            <div className='quote-tile-sidebar'>\r\n                                <SidebarHeader comparisonModel={model} visibleQuotes={model?.Quotes || []} />\r\n\r\n                                {model && (\r\n                                    <div className='quote-list-comparison'>\r\n                                        <Button onClick={onCompareQuotes}>Compare Quotes</Button>\r\n\r\n                                        <div\r\n                                            className={clsx('opacity-0 pointer-events-none', {\r\n                                                'opacity-100 pointer-events-auto': error,\r\n                                            })}\r\n                                        >\r\n                                            <Paragraph>\r\n                                                <span className='text-white'>{error}</span>\r\n                                            </Paragraph>\r\n                                        </div>\r\n                                    </div>\r\n                                )}\r\n                            </div>\r\n\r\n                            {Object.keys(quoteValues).length > 0 && (\r\n                                <div className='grid grid-cols-1 md:grid-cols-2 auto-rows-auto gap-x-7 gap-y-6 w-full'>\r\n                                    {model?.Quotes.map(quote => (\r\n                                        <QuoteListTile\r\n                                            key={quote.QuoteId}\r\n                                            comparisonModel={model}\r\n                                            quote={quote}\r\n                                            isToggled={quoteValues[quote.QuoteId]}\r\n                                            onQuoteToggle={toggleQuote}\r\n                                        />\r\n                                    ))}\r\n                                </div>\r\n                            )}\r\n                        </LayoutWrapper>\r\n                    )}\r\n                </ViewWrapper>\r\n            </div>\r\n        </div>\r\n    );\r\n}\r\n","import { RouteLoadingSpinner } from '@app/Components/RouteLoadingSpinner';\r\nimport { ViewWrapper } from '@app/Components/ViewWrapper';\r\nimport { Path } from '@app/Views';\r\nimport { SwyfftRouteObject } from '@app/Views/routes';\r\nimport { navigate } from '@shared/Common';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport { useEffect } from 'react';\r\n\r\nexport const Redirect = (from: Path, to: string, accessRole?: AccessRole) =>\r\n    ({\r\n        path: from,\r\n        shouldRevalidate: () => false,\r\n        auth: accessRole,\r\n        element: <RedirectComponent to={to} />,\r\n    } as SwyfftRouteObject);\r\n\r\nexport function RedirectComponent({ to }: { to: string }) {\r\n    useEffect(() => {\r\n        navigate(to);\r\n    }, []);\r\n\r\n    return (\r\n        <ViewWrapper title='Request E&S Quote' includeTopBuffer>\r\n            <RouteLoadingSpinner />\r\n        </ViewWrapper>\r\n    );\r\n}\r\n","import { fetchAndLog } from '@api/Fetch';\r\nimport { AgencyOnboardingData, AgencyOnboardingSignUpRequest } from './models';\r\n\r\nexport async function getAgencyData(agencyData: AgencyOnboardingSignUpRequest): Promise<AgencyOnboardingData> {\r\n    return await fetchAndLog<AgencyOnboardingData>('/api/agency-onboarding/verifynpn', 'verify-npn', {\r\n        method: 'POST',\r\n        headers: {\r\n            'Content-Type': 'application/json',\r\n        },\r\n        body: JSON.stringify(agencyData),\r\n    });\r\n}\r\n","export const AGENCY_DATA: string = 'onboarding-agency-data';\r\n\r\nexport enum SignUpPaths {\r\n    AgencyInformation = 'agency-information',\r\n    AgentInformation = 'agent-information',\r\n}\r\n\r\nexport type AgencyOnboardingSignUpRequest = {\r\n    agentFirstName?: string;\r\n    agentLastName?: string;\r\n    agentNpn?: string;\r\n    agencyName?: string;\r\n    agencyNpn?: string;\r\n    isAgencyNpnRequired?: boolean;\r\n};\r\n\r\nexport type AgencyOnboardingData = AgencyOnboardingSignUpRequest & {\r\n    agencyEmail?: string;\r\n    agencyPhone?: string;\r\n    agencyAddress?: string;\r\n    agencyCity?: string;\r\n    agencyState?: string;\r\n    agencyZip?: string;\r\n    agencyFein?: string;\r\n    isAgencyNetwork?: boolean;\r\n    isClusterAgency?: boolean;\r\n\r\n    agentEmail?: string;\r\n    agentPhone?: string;\r\n    agentTitle?: string;\r\n    agentRole?: string;\r\n\r\n    businessTypeId?: string;\r\n    ivansUserId?: string;\r\n    ivansAccountNumber?: string;\r\n};\r\n","import { StateContext } from '@app/State';\r\nimport { useContext, useState } from 'react';\r\nimport { getAgencyData } from './api';\r\nimport { AGENCY_DATA, AgencyOnboardingData, AgencyOnboardingSignUpRequest } from './models';\r\n\r\n/**\r\n * Manages underlying data for the agency onboarding process.\r\n */\r\nexport function useOnboardingData() {\r\n    const { update } = useContext(StateContext),\r\n        [data, setData] = useState<AgencyOnboardingData | null>(null);\r\n\r\n    return { data, set, load };\r\n\r\n    /**\r\n     * Loads data from the initial onboarding API using either the provided request or the current stored data.\r\n     */\r\n    async function load(request?: AgencyOnboardingSignUpRequest): Promise<void> {\r\n        try {\r\n            set(await getAgencyData(request || get()));\r\n        } catch (e) {\r\n            update(state => (state.error = e));\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Updates the internal data object using the provided data. Any data that exists internally will be overwritten,\r\n     * but any data that is not provided will be left as is.\r\n     */\r\n    function set(newData: AgencyOnboardingData) {\r\n        setData({ ...data, ...newData });\r\n        sessionStorage.setItem(AGENCY_DATA, JSON.stringify(newData));\r\n    }\r\n\r\n    /**\r\n     * Returns the current onboarding data. If the data has not been loaded, it will be fetched from session storage.\r\n     */\r\n    function get(): AgencyOnboardingData {\r\n        if (data) return data;\r\n\r\n        const raw = sessionStorage.getItem(AGENCY_DATA);\r\n        if (!raw) throw new Error('Onboarding data is missing.');\r\n\r\n        const parsed = JSON.parse(raw) as AgencyOnboardingData;\r\n        setData(parsed);\r\n        return parsed;\r\n    }\r\n}\r\n","import { StateContext } from '@app/State';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { useAsyncEffect, useFormReducer, useRedirect } from '@shared/Hooks';\r\nimport { Rules, Value } from '@webkit/index';\r\nimport { FormEvent, useContext, useState } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { Path } from '../..';\r\nimport { useOnboardingData } from '../hook';\r\nimport { SignUpPaths } from '../models';\r\n\r\nexport function useAgencyInformation() {\r\n    const [isInitializing, setInitializing] = useState<boolean>(false),\r\n        { update } = useContext(StateContext),\r\n        { product } = useParams(),\r\n        productLine = ProductLine.parse(product),\r\n        redirect = useRedirect(),\r\n        onboarding = useOnboardingData();\r\n\r\n    const formReducer = useFormReducer({\r\n        legalName: new Value<string>('agency legal name', '', [Rules.required()]),\r\n        npn: new Value<string>('agency NPN', '', [\r\n            Rules.required(),\r\n            Rules.integer(),\r\n            Rules.minLength(4),\r\n            Rules.maxLength(9),\r\n        ]),\r\n        email: new Value<string>('agency email address', '', [Rules.required(), Rules.email()]),\r\n        phone: new Value<string>('agency phone number', '', [Rules.required(), Rules.phone()]),\r\n        streetAddress: new Value<string>('agency street address', '', [Rules.required()]),\r\n        city: new Value<string>('agency city', '', [Rules.required()]),\r\n        stateCode: new Value<string>('agency state', '', [Rules.required()]),\r\n        zip: new Value<string>('agency zip code', '', [Rules.required(), Rules.zip()]),\r\n    });\r\n\r\n    const { form, set, valid, validate } = formReducer;\r\n\r\n    useAsyncEffect(async () => {\r\n        try {\r\n            setInitializing(true);\r\n\r\n            await onboarding.load();\r\n\r\n            set('email', onboarding.data?.agencyEmail || '');\r\n            set('phone', onboarding.data?.agencyPhone || '');\r\n            set('streetAddress', onboarding.data?.agencyAddress || '');\r\n            set('city', onboarding.data?.agencyCity || '');\r\n            set('stateCode', onboarding.data?.agencyState || '');\r\n            set('zip', onboarding.data?.agencyZip || '');\r\n        } catch (error) {\r\n            update(state => (state.error = error));\r\n        } finally {\r\n            setInitializing(false);\r\n        }\r\n    }, []);\r\n\r\n    return {\r\n        isInitializing,\r\n        formReducer,\r\n        submit,\r\n        cancel,\r\n    };\r\n\r\n    async function submit(e: FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n\r\n        validate();\r\n        if (!valid()) return;\r\n\r\n        onboarding.set({\r\n            agencyName: form.legalName.content,\r\n            agencyNpn: form.npn.content,\r\n            agencyEmail: form.email.content,\r\n            agencyPhone: form.phone.content,\r\n            agencyAddress: form.streetAddress.content,\r\n            agencyCity: form.city.content,\r\n            agencyState: form.stateCode.content,\r\n            agencyZip: form.zip.content,\r\n        });\r\n\r\n        redirect(SignUpPaths.AgentInformation, { product: product as string });\r\n    }\r\n\r\n    function cancel() {\r\n        redirect(Path.ProductLanding, { product: product || 'homeowner' });\r\n    }\r\n}\r\n","import { RouteLoadingSpinner } from '@app/Components/RouteLoadingSpinner';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTile } from '@app/Components/StepTile';\r\nimport { StateCode } from '@business/CommonSets';\r\nimport { Button, Select, SelectItem, Text } from '@webkit/index';\r\nimport { useAgencyInformation } from './hook';\r\n\r\nexport function AgencyInformation() {\r\n    const { isInitializing, formReducer, submit, cancel } = useAgencyInformation();\r\n\r\n    const { form, set } = formReducer;\r\n\r\n    return isInitializing ? (\r\n        <RouteLoadingSpinner />\r\n    ) : (\r\n        <StepTile>\r\n            <StepHeader\r\n                title='Agency Information'\r\n                description='Is this information all correct? Please complete, correct or update all required information.'\r\n            />\r\n\r\n            <form className='p-6 pt-0' onSubmit={submit}>\r\n                <div className='w-full h-[1px] bg-black opacity-10 mt-2 mb-6'></div>\r\n\r\n                <span className='text-black mb-3 inline-block font-bold !text-base'>Contact Information</span>\r\n\r\n                <div className='grid grid-cols-1 lg:grid-cols-4 gap-4'>\r\n                    <div className='lg:col-span-3'>\r\n                        <Text\r\n                            label='Agency Legal Name'\r\n                            value={form.legalName}\r\n                            onChange={text => set('legalName', text)}\r\n                        />\r\n                    </div>\r\n\r\n                    <Text label='Agency NPN' value={form.npn} onChange={text => set('npn', text)} />\r\n                </div>\r\n\r\n                <div className='grid grid-cols-1 lg:grid-cols-2 gap-4 mt-4'>\r\n                    <Text label='Agency Email' value={form.email} onChange={text => set('email', text)} />\r\n\r\n                    <Text label='Agency Phone' value={form.phone} onChange={text => set('phone', text)} />\r\n                </div>\r\n\r\n                <div className='w-full h-[1px] bg-black opacity-10 mt-8 mb-6'></div>\r\n\r\n                <span className='text-black mb-3 inline-block font-bold !text-base'>Location</span>\r\n\r\n                <div className='w-full'>\r\n                    <Text\r\n                        label='Street Address'\r\n                        value={form.streetAddress}\r\n                        onChange={text => set('streetAddress', text)}\r\n                    />\r\n                </div>\r\n\r\n                <div className='grid grid-cols-1 lg:grid-cols-4 gap-4 mt-4'>\r\n                    <div className='lg:col-span-2'>\r\n                        <Text label='City' value={form.city} onChange={text => set('city', text)} />\r\n                    </div>\r\n\r\n                    <Select label='State' value={form.stateCode} onSelectionChange={state => set('stateCode', state)}>\r\n                        {StateCode.all().map(state => (\r\n                            <SelectItem key={state.code}>{state.name}</SelectItem>\r\n                        ))}\r\n                    </Select>\r\n\r\n                    <Text label='Zip Code' value={form.zip} onChange={text => set('zip', text)} />\r\n                </div>\r\n\r\n                <div className='w-full h-[1px] bg-black opacity-10 mt-8 mb-8'></div>\r\n\r\n                <div className='grid grid-cols-1 lg:grid-cols-6 gap-4'>\r\n                    <div className='lg:col-start-4 lg:col-span-1'>\r\n                        <Button isSecondary onClick={cancel}>\r\n                            Cancel\r\n                        </Button>\r\n                    </div>\r\n\r\n                    <div className='lg:col-start-5 lg:col-span-2'>\r\n                        <Button type='submit'>Next Step</Button>\r\n                    </div>\r\n                </div>\r\n            </form>\r\n        </StepTile>\r\n    );\r\n}\r\n","import { useFormReducer, useRedirect } from '@shared/Hooks';\r\nimport { Rules, Value } from '@webkit/index';\r\nimport { FormEvent } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { Path } from '../..';\r\nimport { useOnboardingData } from '../hook';\r\n\r\nexport function useAgentInformation() {\r\n    const redirect = useRedirect(),\r\n        params = useParams(),\r\n        product = params.product,\r\n        onboarding = useOnboardingData();\r\n\r\n    const formReducer = useFormReducer({\r\n        firstName: new Value<string>('first name', onboarding.data?.agentFirstName || '', [Rules.required()]),\r\n        lastName: new Value<string>('last name', onboarding.data?.agentLastName || '', [Rules.required()]),\r\n        email: new Value<string>('email', onboarding.data?.agentEmail || '', [Rules.required(), Rules.email()]),\r\n        phone: new Value<string>('phone', onboarding.data?.agentPhone || '', [Rules.required(), Rules.phone()]),\r\n        npn: new Value<string>('npn', onboarding.data?.agentNpn || '', [\r\n            Rules.required(),\r\n            Rules.minLength(4),\r\n            Rules.maxLength(9),\r\n        ]),\r\n        title: new Value<string>('title', onboarding.data?.agentTitle || '', [Rules.required()]),\r\n        role: new Value<string>('role', onboarding.data?.agentRole || 'Principal', [Rules.required()]),\r\n        isClusterAgency: new Value<string | null>(\r\n            'cluster agency',\r\n            onboarding.data?.isClusterAgency?.toString() || '',\r\n            [Rules.required()]\r\n        ),\r\n    });\r\n\r\n    return {\r\n        formReducer,\r\n        submit,\r\n        cancel,\r\n    };\r\n\r\n    async function submit(e: FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n\r\n        formReducer.validate();\r\n        if (!formReducer.valid()) return;\r\n\r\n        onboarding.set({\r\n            agentFirstName: formReducer.form.firstName.content,\r\n            agentLastName: formReducer.form.lastName.content,\r\n            agentEmail: formReducer.form.email.content,\r\n            agentPhone: formReducer.form.phone.content,\r\n            agentNpn: formReducer.form.npn.content,\r\n            agentTitle: formReducer.form.title.content,\r\n            agentRole: formReducer.form.role.content,\r\n            isClusterAgency: formReducer.form.isClusterAgency.content === 'true',\r\n        });\r\n\r\n        // TODO: Redirect to either the taxes and accounting page or the unable to sign up page.\r\n    }\r\n\r\n    function cancel() {\r\n        redirect(Path.ProductLanding, { product: product || 'homeowner' });\r\n    }\r\n}\r\n","import { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTile } from '@app/Components/StepTile';\r\nimport { Button, RadioGroup, Select, SelectItem, Text } from '@webkit/index';\r\nimport { useAgentInformation } from './hook';\r\n\r\nexport function AgentInformation() {\r\n    const { formReducer, submit, cancel } = useAgentInformation();\r\n\r\n    const { form, set } = formReducer;\r\n\r\n    return (\r\n        <StepTile>\r\n            <StepHeader title='Agent Information' />\r\n\r\n            <form className='p-6 pt-0' onSubmit={submit}>\r\n                <div className='grid grid-cols-1 lg:grid-cols-2 gap-4'>\r\n                    <Text\r\n                        id='first-name'\r\n                        label='First Name'\r\n                        value={form.firstName}\r\n                        onChange={text => set('firstName', text)}\r\n                    />\r\n\r\n                    <Text\r\n                        id='last-name'\r\n                        label='Last Name'\r\n                        value={form.lastName}\r\n                        onChange={text => set('lastName', text)}\r\n                    />\r\n                </div>\r\n\r\n                <div className='grid grid-cols-1 lg:grid-cols-4 gap-4 mt-4'>\r\n                    <div className='col-span-1 lg:col-span-2'>\r\n                        <Text id='email' label='Agent Email' value={form.email} onChange={text => set('email', text)} />\r\n                    </div>\r\n\r\n                    <Text id='phone' label='Agent Phone' value={form.phone} onChange={text => set('phone', text)} />\r\n\r\n                    <Text id='npn' label='Agent NPN' value={form.npn} onChange={text => set('npn', text)} />\r\n                </div>\r\n\r\n                <div className='grid grid-cols-1 lg:grid-cols-2 gap-4 mt-4'>\r\n                    <Text id='title' label='Agent Title' value={form.title} onChange={text => set('title', text)} />\r\n\r\n                    <Select\r\n                        id='role'\r\n                        label='Agent Role'\r\n                        value={form.role}\r\n                        onSelectionChange={item => set('role', item)}\r\n                    >\r\n                        {[\r\n                            'Account Manager',\r\n                            'Accounting',\r\n                            'Broker',\r\n                            'Claims',\r\n                            'CSR',\r\n                            'IT',\r\n                            'Management',\r\n                            'Marketing',\r\n                            'Policy Issuance',\r\n                            'President',\r\n                            'Principal',\r\n                            'Producer',\r\n                        ].map(role => (\r\n                            <SelectItem key={role}>{role}</SelectItem>\r\n                        ))}\r\n                    </Select>\r\n                </div>\r\n\r\n                <div className='mt-4 w-full text-black'>\r\n                    <RadioGroup\r\n                        value={form.isClusterAgency}\r\n                        label={\r\n                            <span className='text-black'>Are you part of a cluster, aggregate or agency network?</span>\r\n                        }\r\n                        orientation='horizontal'\r\n                        onChange={(value: string | null) => set('isClusterAgency', value)}\r\n                        options={[\r\n                            { label: 'Yes', value: 'true' },\r\n                            { label: 'No', value: 'false' },\r\n                        ]}\r\n                    />\r\n                </div>\r\n\r\n                <div className='grid grid-cols-1 lg:grid-cols-6 gap-4 mt-4'>\r\n                    <div className='lg:col-start-4 lg:col-span-1'>\r\n                        <Button isSecondary onClick={cancel}>\r\n                            Cancel\r\n                        </Button>\r\n                    </div>\r\n\r\n                    <div className='lg:col-start-5 lg:col-span-2'>\r\n                        <Button type='submit'>Next Step</Button>\r\n                    </div>\r\n                </div>\r\n            </form>\r\n        </StepTile>\r\n    );\r\n}\r\n","import { useLocation, useParams } from 'react-router-dom-v5-compat';\r\n\r\nexport function useOnboardingViewProgressTracker() {\r\n    const { product } = useParams(),\r\n        location = useLocation();\r\n\r\n    return {\r\n        product: product || '',\r\n        location,\r\n    };\r\n}\r\n","import { transitionDuration } from '@app/Constants';\r\nimport {\r\n    ClipboardIcon,\r\n    EditIcon,\r\n    FolderIcon,\r\n    PersonIcon,\r\n    StoreIcon,\r\n    ViewProgressItem,\r\n    ViewProgressTracker,\r\n} from '@webkit/index';\r\nimport { getPath, Path } from '../..';\r\nimport { SignUpPaths } from '../models';\r\nimport { useOnboardingViewProgressTracker } from './hook';\r\n\r\nexport function OnboardingViewProgressTracker() {\r\n    const { location, product } = useOnboardingViewProgressTracker();\r\n\r\n    return (\r\n        <div className='text-white'>\r\n            <ViewProgressTracker location={location} delay={transitionDuration}>\r\n                <ViewProgressItem\r\n                    path={getPath(`${Path.SignUp.toString().replace('*', '')}${SignUpPaths.AgencyInformation}`, {\r\n                        product,\r\n                    })}\r\n                    icon={<StoreIcon />}\r\n                >\r\n                    Agency Information\r\n                </ViewProgressItem>\r\n\r\n                <ViewProgressItem\r\n                    path={getPath(`${Path.SignUp.toString().replace('*', '')}${SignUpPaths.AgentInformation}`, {\r\n                        product,\r\n                    })}\r\n                    icon={<PersonIcon />}\r\n                >\r\n                    Agent Information\r\n                </ViewProgressItem>\r\n\r\n                <ViewProgressItem path='/third' icon={<ClipboardIcon />}>\r\n                    Taxes & Accounting\r\n                </ViewProgressItem>\r\n\r\n                <ViewProgressItem path='/fourth' icon={<FolderIcon />}>\r\n                    Documentation\r\n                </ViewProgressItem>\r\n\r\n                <ViewProgressItem path='/fifth' icon={<EditIcon />}>\r\n                    Agree & Sign\r\n                </ViewProgressItem>\r\n            </ViewProgressTracker>\r\n        </div>\r\n    );\r\n}\r\n","import { LayoutWrapper } from '@app/Components/LayoutWrapper';\r\nimport { ProductHeader } from '@app/Components/ProductHeader';\r\nimport { ViewWrapper } from '@app/Components/ViewWrapper';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { Outlet, useParams } from 'react-router-dom-v5-compat';\r\nimport { Path } from '../..';\r\nimport { AgencyInformation } from '../AgencyInformation';\r\nimport { AgentInformation } from '../AgentInformation';\r\nimport { SignUpPaths } from '../models';\r\nimport { OnboardingViewProgressTracker } from '../Tracker';\r\n\r\nexport const SignUp = {\r\n    path: Path.SignUp,\r\n    shouldRevalidate: () => false,\r\n    element: <SignUpComponent />,\r\n    noTransition: true,\r\n    children: [\r\n        {\r\n            path: SignUpPaths.AgencyInformation,\r\n            element: <AgencyInformation />,\r\n        },\r\n        {\r\n            path: SignUpPaths.AgentInformation,\r\n            element: <AgentInformation />,\r\n        },\r\n    ].map(r => ({\r\n        ...r,\r\n        hideNavbar: true,\r\n        hideFooter: true,\r\n    })),\r\n};\r\n\r\nexport function SignUpComponent() {\r\n    const params = useParams(),\r\n        product = ProductLine.parse(params.product);\r\n\r\n    return (\r\n        <div className='step'>\r\n            <ViewWrapper title='Sign Up'>\r\n                <LayoutWrapper>\r\n                    <div className='w-60 hidden invisible lg:!block lg:!visible'>\r\n                        <div className='text-white font-bold text-lg tracking-[0.3px] mt-[51px]'>\r\n                            Agency Registrations\r\n                        </div>\r\n\r\n                        <div className='h-[1px] bg-white opacity-20 w-full my-6'></div>\r\n\r\n                        <div className='bg-transparent'>\r\n                            <OnboardingViewProgressTracker />\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div className='w-auto lg:w-full'>\r\n                        <ProductHeader product={product} />\r\n\r\n                        <Outlet />\r\n                    </div>\r\n                </LayoutWrapper>\r\n            </ViewWrapper>\r\n        </div>\r\n    );\r\n}\r\n","import { ProductLine } from '@business/CommonSets';\r\nimport { useFormReducer, useRedirect } from '@shared/Hooks';\r\nimport { Rules, Value } from '@webkit/index';\r\nimport { FormEvent, useEffect } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { useOnboardingData } from '../hook';\r\nimport { SignUpPaths } from '../models';\r\n\r\nexport type AgencyType = 'individual' | 'group';\r\n\r\nexport function useSignUp() {\r\n    const params = useParams(),\r\n        productLine = ProductLine.parse(params.product),\r\n        redirect = useRedirect(),\r\n        onboarding = useOnboardingData();\r\n\r\n    const formReducer = useFormReducer({\r\n        firstName: new Value<string>('first name', '', [Rules.required()]),\r\n        lastName: new Value<string>('last name', '', [Rules.required()]),\r\n        agentNpn: new Value<string>('agent NPN', '', [\r\n            Rules.required(),\r\n            Rules.integer(),\r\n            Rules.minLength(4),\r\n            Rules.maxLength(9),\r\n        ]),\r\n        agencyType: new Value<string | null>('agency type', null, [Rules.required()]),\r\n        agencyName: new Value<string>('agency name', ''),\r\n        agencyNpn: new Value<string>('agency NPN', '', []),\r\n        terms: new Value<boolean>('terms and conditions', false, [\r\n            Rules.equals(true, 'Please accept the terms and conditions.'),\r\n        ]),\r\n    });\r\n\r\n    useEffect(() => {\r\n        if (formReducer.form.agencyType.content === 'group') {\r\n            formReducer.form.agencyName.setRules([Rules.required()]);\r\n            formReducer.form.agencyNpn.setRules([\r\n                Rules.required(),\r\n                Rules.integer(),\r\n                Rules.minLength(4),\r\n                Rules.maxLength(9),\r\n            ]);\r\n        } else {\r\n            formReducer.form.agencyName.setRules([]);\r\n            formReducer.form.agencyNpn.setRules([]);\r\n        }\r\n    }, [formReducer.form.agencyType.content]);\r\n\r\n    return {\r\n        productLine,\r\n        formReducer,\r\n        submit,\r\n    };\r\n\r\n    async function submit(e: FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n\r\n        formReducer.validate();\r\n        if (!formReducer.valid()) return;\r\n\r\n        onboarding.set({\r\n            agentFirstName: formReducer.form.firstName.content,\r\n            agentLastName: formReducer.form.lastName.content,\r\n            agentNpn: formReducer.form.agentNpn.content,\r\n            agencyName: formReducer.form.agencyName.content,\r\n            agencyNpn: formReducer.form.agencyNpn.content,\r\n            isAgencyNpnRequired: formReducer.form.agencyType.content === 'group',\r\n        });\r\n\r\n        redirect(SignUpPaths.AgencyInformation, { product: productLine.lowercaseName });\r\n    }\r\n}\r\n","import { HeroText } from '@app/Components/Landing/HeroText';\r\nimport { LandingContent } from '@app/Components/Landing/LandingContent';\r\nimport { LandingViewWrapper } from '@app/Components/Landing/LandingViewWrapper';\r\nimport { Logo } from '@app/Components/Landing/Logo';\r\nimport { LayoutWrapper } from '@app/Components/LayoutWrapper';\r\nimport { ProductHeader } from '@app/Components/ProductHeader';\r\nimport { Button, Checkbox, DesignContext, RadioGroup, Text } from '@webkit/index';\r\nimport { tv } from 'tailwind-variants';\r\nimport { Path } from '../..';\r\nimport { AgencyType, useSignUp } from './hook';\r\n\r\nconst styles = {\r\n    agencyInformation: tv({\r\n        base: 'agency-information transition-[height,opacity] duration-500 ease-in-out overflow-hidden',\r\n        variants: {\r\n            isOpen: {\r\n                true: 'h-auto opacity-100',\r\n                false: 'h-0 opacity-0',\r\n            },\r\n        },\r\n    }),\r\n};\r\n\r\nexport const SignUpEntry = {\r\n    path: Path.SignUpEntry,\r\n    element: <SignUpComponent />,\r\n    shouldRevalidate: () => false,\r\n};\r\n\r\nexport function SignUpComponent() {\r\n    const { productLine, formReducer, submit } = useSignUp();\r\n\r\n    const { form, set, setWithoutValidation } = formReducer;\r\n\r\n    return (\r\n        <DesignContext.Provider value='landing'>\r\n            <LandingViewWrapper product={productLine}>\r\n                <LayoutWrapper>\r\n                    <form className='landing-layout w-full lg:w-[900px]' onSubmit={submit}>\r\n                        <ProductHeader product={productLine} />\r\n\r\n                        <div className='logo-container'>\r\n                            <Logo />\r\n                        </div>\r\n\r\n                        <div className='lg:flex'>\r\n                            <div className='w-full lg:flex-1'>\r\n                                <LandingContent>\r\n                                    <HeroText>Become a Swyfft agent today.</HeroText>\r\n                                    <HeroText>\r\n                                        Offer{' '}\r\n                                        <span className='text-white'>{`${productLine.lowercaseName} insurance in seconds.`}</span>\r\n                                    </HeroText>\r\n                                </LandingContent>\r\n                            </div>\r\n\r\n                            <div className='w-full ml-4 mt-4 lg:ml-0 lg:mt-0 lg:w-52 text-white justify-end text-base font-semibold'>\r\n                                <ul className='!list-disc'>\r\n                                    <li>Available in all 50 states</li>\r\n                                    <li>Multiple quotes in seconds</li>\r\n                                </ul>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div className='mt-8 grid grid-cols-1 lg:grid-cols-3 gap-6'>\r\n                            <Text\r\n                                placeholder='First Name'\r\n                                value={form.firstName}\r\n                                onChange={(value: string) => set('firstName', value)}\r\n                            />\r\n\r\n                            <Text\r\n                                placeholder='Last Name'\r\n                                value={form.lastName}\r\n                                onChange={(value: string) => set('lastName', value)}\r\n                            />\r\n\r\n                            <Text\r\n                                placeholder='Agent NPN'\r\n                                value={form.agentNpn}\r\n                                onChange={(value: string) => set('agentNpn', value)}\r\n                            />\r\n                        </div>\r\n\r\n                        <div className={styles.agencyInformation({ isOpen: form.agencyType.content === 'group' })}>\r\n                            <div className='mt-8 grid grid-cols-1 lg:grid-cols-3 gap-6'>\r\n                                <div className='lg:col-span-2'>\r\n                                    <Text\r\n                                        placeholder='Agency Legal Name'\r\n                                        value={form.agencyName}\r\n                                        onChange={(value: string) => set('agencyName', value)}\r\n                                    />\r\n                                </div>\r\n\r\n                                <Text\r\n                                    placeholder='Agency NPN'\r\n                                    value={form.agencyNpn}\r\n                                    onChange={(value: string) => set('agencyNpn', value)}\r\n                                />\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div className='grid grid-cols-1 lg:grid-cols-3 gap-6 mt-8'>\r\n                            <div className='lg:col-span-2 text-white'>\r\n                                <RadioGroup\r\n                                    value={form.agencyType}\r\n                                    label={\r\n                                        <>\r\n                                            I am <b>only</b> licensed under my individual name.\r\n                                        </>\r\n                                    }\r\n                                    orientation='horizontal'\r\n                                    onChange={(value: string | null) => set('agencyType', value as AgencyType)}\r\n                                    options={[\r\n                                        { label: 'Yes', value: 'individual' },\r\n                                        { label: 'No', value: 'group' },\r\n                                    ]}\r\n                                />\r\n                            </div>\r\n\r\n                            <div>\r\n                                <Button type='submit'>Sign Up</Button>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div className='mt-8 pt-4 border-0 border-t border-white/[.2] border-solid'>\r\n                            <div className='max-w-[45ch]'>\r\n                                <Checkbox\r\n                                    id='terms-and-conditions'\r\n                                    value={form.terms}\r\n                                    onChange={(value: boolean) => setWithoutValidation('terms', value)}\r\n                                    size='large'\r\n                                >\r\n                                    <span className='text-xs max-w-prose'>\r\n                                        By clicking the \"Sign Up\" button, you're agreeing to our{' '}\r\n                                        <a\r\n                                            href='/privacy'\r\n                                            target='_blank'\r\n                                            rel='noopener noreferrer'\r\n                                            className='text-white underline !hover:text-white'\r\n                                        >\r\n                                            terms\r\n                                        </a>{' '}\r\n                                        and are authorizing Swyfft to retrieve all information available through NIPR.\r\n                                    </span>\r\n                                </Checkbox>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div className='mt-8 mb-6 rounded-lg bg-black p-8'>\r\n                            <div className='lg:flex'>\r\n                                <span className='w-full inline-block lg:w-auto lg:inline lg:flex-1 font-sans text-4xl font-extrabold text-white'>\r\n                                    Here's what you'll need:\r\n                                </span>\r\n\r\n                                <a\r\n                                    href='/login'\r\n                                    className='w-full inline-block mt-4 lg:w-auto lg:mt-0 lg:inline text-brand-green-250 font-semibold text-lg hover:underline hover:text-brand-green-250'\r\n                                >\r\n                                    {'Existing Swyfft Agent Login >'}\r\n                                </a>\r\n                            </div>\r\n\r\n                            <div className='w-full h-[1px] bg-white/[0.3] mt-4' />\r\n\r\n                            <div className='grid grid-cols-1 lg:grid-cols-2 text-base mt-4 text-brand-gray-450 font-sans [&_li]:ml-4 font-bold'>\r\n                                <ul className='list-disc'>\r\n                                    <li>Legal Agency Name and Contact Information</li>\r\n                                    <li>Agent Profile Information</li>\r\n                                    <li>Cluster and Network Affiliations</li>\r\n                                </ul>\r\n\r\n                                <ul className='list-disc'>\r\n                                    <li>IVANS Account Information</li>\r\n                                    <li>Tax Information (FEIN), W9</li>\r\n                                    <li>E&O Dec</li>\r\n                                </ul>\r\n                            </div>\r\n                        </div>\r\n                    </form>\r\n                </LayoutWrapper>\r\n            </LandingViewWrapper>\r\n        </DesignContext.Provider>\r\n    );\r\n}\r\n","/*!\r\n * XRegExp 3.2.0\r\n * <xregexp.com>\r\n * Steven Levithan (c) 2007-2017 MIT License\r\n */\r\n\r\n'use strict';\r\n\r\n/**\r\n * XRegExp provides augmented, extensible regular expressions. You get additional regex syntax and\r\n * flags, beyond what browsers support natively. XRegExp is also a regex utility belt with tools to\r\n * make your client-side grepping simpler and more powerful, while freeing you from related\r\n * cross-browser inconsistencies.\r\n */\r\n\r\n// ==--------------------------==\r\n// Private stuff\r\n// ==--------------------------==\r\n\r\n// Property name used for extended regex instance data\r\nvar REGEX_DATA = 'xregexp';\r\n// Optional features that can be installed and uninstalled\r\nvar features = {\r\n    astral: false,\r\n    natives: false\r\n};\r\n// Native methods to use and restore ('native' is an ES3 reserved keyword)\r\nvar nativ = {\r\n    exec: RegExp.prototype.exec,\r\n    test: RegExp.prototype.test,\r\n    match: String.prototype.match,\r\n    replace: String.prototype.replace,\r\n    split: String.prototype.split\r\n};\r\n// Storage for fixed/extended native methods\r\nvar fixed = {};\r\n// Storage for regexes cached by `XRegExp.cache`\r\nvar regexCache = {};\r\n// Storage for pattern details cached by the `XRegExp` constructor\r\nvar patternCache = {};\r\n// Storage for regex syntax tokens added internally or by `XRegExp.addToken`\r\nvar tokens = [];\r\n// Token scopes\r\nvar defaultScope = 'default';\r\nvar classScope = 'class';\r\n// Regexes that match native regex syntax, including octals\r\nvar nativeTokens = {\r\n    // Any native multicharacter token in default scope, or any single character\r\n    'default': /\\\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\\d*|x[\\dA-Fa-f]{2}|u(?:[\\dA-Fa-f]{4}|{[\\dA-Fa-f]+})|c[A-Za-z]|[\\s\\S])|\\(\\?(?:[:=!]|<[=!])|[?*+]\\?|{\\d+(?:,\\d*)?}\\??|[\\s\\S]/,\r\n    // Any native multicharacter token in character class scope, or any single character\r\n    'class': /\\\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\\dA-Fa-f]{2}|u(?:[\\dA-Fa-f]{4}|{[\\dA-Fa-f]+})|c[A-Za-z]|[\\s\\S])|[\\s\\S]/\r\n};\r\n// Any backreference or dollar-prefixed character in replacement strings\r\nvar replacementToken = /\\$(?:{([\\w$]+)}|(\\d\\d?|[\\s\\S]))/g;\r\n// Check for correct `exec` handling of nonparticipating capturing groups\r\nvar correctExecNpcg = nativ.exec.call(/()??/, '')[1] === undefined;\r\n// Check for ES6 `flags` prop support\r\nvar hasFlagsProp = /x/.flags !== undefined;\r\n// Shortcut to `Object.prototype.toString`\r\nvar toString = {}.toString;\r\n\r\nfunction hasNativeFlag(flag) {\r\n    // Can't check based on the presence of properties/getters since browsers might support such\r\n    // properties even when they don't support the corresponding flag in regex construction (tested\r\n    // in Chrome 48, where `'unicode' in /x/` is true but trying to construct a regex with flag `u`\r\n    // throws an error)\r\n    var isSupported = true;\r\n    try {\r\n        // Can't use regex literals for testing even in a `try` because regex literals with\r\n        // unsupported flags cause a compilation error in IE\r\n        new RegExp('', flag);\r\n    } catch (exception) {\r\n        isSupported = false;\r\n    }\r\n    return isSupported;\r\n}\r\n// Check for ES6 `u` flag support\r\nvar hasNativeU = hasNativeFlag('u');\r\n// Check for ES6 `y` flag support\r\nvar hasNativeY = hasNativeFlag('y');\r\n// Tracker for known flags, including addon flags\r\nvar registeredFlags = {\r\n    g: true,\r\n    i: true,\r\n    m: true,\r\n    u: hasNativeU,\r\n    y: hasNativeY\r\n};\r\n\r\n/**\r\n * Attaches extended data and `XRegExp.prototype` properties to a regex object.\r\n *\r\n * @private\r\n * @param {RegExp} regex Regex to augment.\r\n * @param {Array} captureNames Array with capture names, or `null`.\r\n * @param {String} xSource XRegExp pattern used to generate `regex`, or `null` if N/A.\r\n * @param {String} xFlags XRegExp flags used to generate `regex`, or `null` if N/A.\r\n * @param {Boolean} [isInternalOnly=false] Whether the regex will be used only for internal\r\n *   operations, and never exposed to users. For internal-only regexes, we can improve perf by\r\n *   skipping some operations like attaching `XRegExp.prototype` properties.\r\n * @returns {RegExp} Augmented regex.\r\n */\r\nfunction augment(regex, captureNames, xSource, xFlags, isInternalOnly) {\r\n    var p;\r\n\r\n    regex[REGEX_DATA] = {\r\n        captureNames: captureNames\r\n    };\r\n\r\n    if (isInternalOnly) {\r\n        return regex;\r\n    }\r\n\r\n    // Can't auto-inherit these since the XRegExp constructor returns a nonprimitive value\r\n    if (regex.__proto__) {\r\n        regex.__proto__ = XRegExp.prototype;\r\n    } else {\r\n        for (p in XRegExp.prototype) {\r\n            // An `XRegExp.prototype.hasOwnProperty(p)` check wouldn't be worth it here, since this\r\n            // is performance sensitive, and enumerable `Object.prototype` or `RegExp.prototype`\r\n            // extensions exist on `regex.prototype` anyway\r\n            regex[p] = XRegExp.prototype[p];\r\n        }\r\n    }\r\n\r\n    regex[REGEX_DATA].source = xSource;\r\n    // Emulate the ES6 `flags` prop by ensuring flags are in alphabetical order\r\n    regex[REGEX_DATA].flags = xFlags ? xFlags.split('').sort().join('') : xFlags;\r\n\r\n    return regex;\r\n}\r\n\r\n/**\r\n * Removes any duplicate characters from the provided string.\r\n *\r\n * @private\r\n * @param {String} str String to remove duplicate characters from.\r\n * @returns {String} String with any duplicate characters removed.\r\n */\r\nfunction clipDuplicates(str) {\r\n    return nativ.replace.call(str, /([\\s\\S])(?=[\\s\\S]*\\1)/g, '');\r\n}\r\n\r\n/**\r\n * Copies a regex object while preserving extended data and augmenting with `XRegExp.prototype`\r\n * properties. The copy has a fresh `lastIndex` property (set to zero). Allows adding and removing\r\n * flags g and y while copying the regex.\r\n *\r\n * @private\r\n * @param {RegExp} regex Regex to copy.\r\n * @param {Object} [options] Options object with optional properties:\r\n *   - `addG` {Boolean} Add flag g while copying the regex.\r\n *   - `addY` {Boolean} Add flag y while copying the regex.\r\n *   - `removeG` {Boolean} Remove flag g while copying the regex.\r\n *   - `removeY` {Boolean} Remove flag y while copying the regex.\r\n *   - `isInternalOnly` {Boolean} Whether the copied regex will be used only for internal\r\n *     operations, and never exposed to users. For internal-only regexes, we can improve perf by\r\n *     skipping some operations like attaching `XRegExp.prototype` properties.\r\n *   - `source` {String} Overrides `<regex>.source`, for special cases.\r\n * @returns {RegExp} Copy of the provided regex, possibly with modified flags.\r\n */\r\nfunction copyRegex(regex, options) {\r\n    if (!XRegExp.isRegExp(regex)) {\r\n        throw new TypeError('Type RegExp expected');\r\n    }\r\n\r\n    var xData = regex[REGEX_DATA] || {};\r\n    var flags = getNativeFlags(regex);\r\n    var flagsToAdd = '';\r\n    var flagsToRemove = '';\r\n    var xregexpSource = null;\r\n    var xregexpFlags = null;\r\n\r\n    options = options || {};\r\n\r\n    if (options.removeG) {flagsToRemove += 'g';}\r\n    if (options.removeY) {flagsToRemove += 'y';}\r\n    if (flagsToRemove) {\r\n        flags = nativ.replace.call(flags, new RegExp('[' + flagsToRemove + ']+', 'g'), '');\r\n    }\r\n\r\n    if (options.addG) {flagsToAdd += 'g';}\r\n    if (options.addY) {flagsToAdd += 'y';}\r\n    if (flagsToAdd) {\r\n        flags = clipDuplicates(flags + flagsToAdd);\r\n    }\r\n\r\n    if (!options.isInternalOnly) {\r\n        if (xData.source !== undefined) {\r\n            xregexpSource = xData.source;\r\n        }\r\n        // null or undefined; don't want to add to `flags` if the previous value was null, since\r\n        // that indicates we're not tracking original precompilation flags\r\n        if (xData.flags != null) {\r\n            // Flags are only added for non-internal regexes by `XRegExp.globalize`. Flags are never\r\n            // removed for non-internal regexes, so don't need to handle it\r\n            xregexpFlags = flagsToAdd ? clipDuplicates(xData.flags + flagsToAdd) : xData.flags;\r\n        }\r\n    }\r\n\r\n    // Augment with `XRegExp.prototype` properties, but use the native `RegExp` constructor to avoid\r\n    // searching for special tokens. That would be wrong for regexes constructed by `RegExp`, and\r\n    // unnecessary for regexes constructed by `XRegExp` because the regex has already undergone the\r\n    // translation to native regex syntax\r\n    regex = augment(\r\n        new RegExp(options.source || regex.source, flags),\r\n        hasNamedCapture(regex) ? xData.captureNames.slice(0) : null,\r\n        xregexpSource,\r\n        xregexpFlags,\r\n        options.isInternalOnly\r\n    );\r\n\r\n    return regex;\r\n}\r\n\r\n/**\r\n * Converts hexadecimal to decimal.\r\n *\r\n * @private\r\n * @param {String} hex\r\n * @returns {Number}\r\n */\r\nfunction dec(hex) {\r\n    return parseInt(hex, 16);\r\n}\r\n\r\n/**\r\n * Returns a pattern that can be used in a native RegExp in place of an ignorable token such as an\r\n * inline comment or whitespace with flag x. This is used directly as a token handler function\r\n * passed to `XRegExp.addToken`.\r\n *\r\n * @private\r\n * @param {String} match Match arg of `XRegExp.addToken` handler\r\n * @param {String} scope Scope arg of `XRegExp.addToken` handler\r\n * @param {String} flags Flags arg of `XRegExp.addToken` handler\r\n * @returns {String} Either '' or '(?:)', depending on which is needed in the context of the match.\r\n */\r\nfunction getContextualTokenSeparator(match, scope, flags) {\r\n    if (\r\n        // No need to separate tokens if at the beginning or end of a group\r\n        match.input.charAt(match.index - 1) === '(' ||\r\n        match.input.charAt(match.index + match[0].length) === ')' ||\r\n        // Avoid separating tokens when the following token is a quantifier\r\n        isPatternNext(match.input, match.index + match[0].length, flags, '[?*+]|{\\\\d+(?:,\\\\d*)?}')\r\n    ) {\r\n        return '';\r\n    }\r\n    // Keep tokens separated. This avoids e.g. inadvertedly changing `\\1 1` or `\\1(?#)1` to `\\11`.\r\n    // This also ensures all tokens remain as discrete atoms, e.g. it avoids converting the syntax\r\n    // error `(? :` into `(?:`.\r\n    return '(?:)';\r\n}\r\n\r\n/**\r\n * Returns native `RegExp` flags used by a regex object.\r\n *\r\n * @private\r\n * @param {RegExp} regex Regex to check.\r\n * @returns {String} Native flags in use.\r\n */\r\nfunction getNativeFlags(regex) {\r\n    return hasFlagsProp ?\r\n        regex.flags :\r\n        // Explicitly using `RegExp.prototype.toString` (rather than e.g. `String` or concatenation\r\n        // with an empty string) allows this to continue working predictably when\r\n        // `XRegExp.proptotype.toString` is overridden\r\n        nativ.exec.call(/\\/([a-z]*)$/i, RegExp.prototype.toString.call(regex))[1];\r\n}\r\n\r\n/**\r\n * Determines whether a regex has extended instance data used to track capture names.\r\n *\r\n * @private\r\n * @param {RegExp} regex Regex to check.\r\n * @returns {Boolean} Whether the regex uses named capture.\r\n */\r\nfunction hasNamedCapture(regex) {\r\n    return !!(regex[REGEX_DATA] && regex[REGEX_DATA].captureNames);\r\n}\r\n\r\n/**\r\n * Converts decimal to hexadecimal.\r\n *\r\n * @private\r\n * @param {Number|String} dec\r\n * @returns {String}\r\n */\r\nfunction hex(dec) {\r\n    return parseInt(dec, 10).toString(16);\r\n}\r\n\r\n/**\r\n * Returns the first index at which a given value can be found in an array.\r\n *\r\n * @private\r\n * @param {Array} array Array to search.\r\n * @param {*} value Value to locate in the array.\r\n * @returns {Number} Zero-based index at which the item is found, or -1.\r\n */\r\nfunction indexOf(array, value) {\r\n    var len = array.length;\r\n    var i;\r\n\r\n    for (i = 0; i < len; ++i) {\r\n        if (array[i] === value) {\r\n            return i;\r\n        }\r\n    }\r\n\r\n    return -1;\r\n}\r\n\r\n/**\r\n * Checks whether the next nonignorable token after the specified position matches the\r\n * `needlePattern`\r\n *\r\n * @private\r\n * @param {String} pattern Pattern to search within.\r\n * @param {Number} pos Index in `pattern` to search at.\r\n * @param {String} flags Flags used by the pattern.\r\n * @param {String} needlePattern Pattern to match the next token against.\r\n * @returns {Boolean} Whether the next nonignorable token matches `needlePattern`\r\n */\r\nfunction isPatternNext(pattern, pos, flags, needlePattern) {\r\n    var inlineCommentPattern = '\\\\(\\\\?#[^)]*\\\\)';\r\n    var lineCommentPattern = '#[^#\\\\n]*';\r\n    var patternsToIgnore = flags.indexOf('x') > -1 ?\r\n        // Ignore any leading whitespace, line comments, and inline comments\r\n        ['\\\\s', lineCommentPattern, inlineCommentPattern] :\r\n        // Ignore any leading inline comments\r\n        [inlineCommentPattern];\r\n    return nativ.test.call(\r\n        new RegExp('^(?:' + patternsToIgnore.join('|') + ')*(?:' + needlePattern + ')'),\r\n        pattern.slice(pos)\r\n    );\r\n}\r\n\r\n/**\r\n * Determines whether a value is of the specified type, by resolving its internal [[Class]].\r\n *\r\n * @private\r\n * @param {*} value Object to check.\r\n * @param {String} type Type to check for, in TitleCase.\r\n * @returns {Boolean} Whether the object matches the type.\r\n */\r\nfunction isType(value, type) {\r\n    return toString.call(value) === '[object ' + type + ']';\r\n}\r\n\r\n/**\r\n * Adds leading zeros if shorter than four characters. Used for fixed-length hexadecimal values.\r\n *\r\n * @private\r\n * @param {String} str\r\n * @returns {String}\r\n */\r\nfunction pad4(str) {\r\n    while (str.length < 4) {\r\n        str = '0' + str;\r\n    }\r\n    return str;\r\n}\r\n\r\n/**\r\n * Checks for flag-related errors, and strips/applies flags in a leading mode modifier. Offloads\r\n * the flag preparation logic from the `XRegExp` constructor.\r\n *\r\n * @private\r\n * @param {String} pattern Regex pattern, possibly with a leading mode modifier.\r\n * @param {String} flags Any combination of flags.\r\n * @returns {Object} Object with properties `pattern` and `flags`.\r\n */\r\nfunction prepareFlags(pattern, flags) {\r\n    var i;\r\n\r\n    // Recent browsers throw on duplicate flags, so copy this behavior for nonnative flags\r\n    if (clipDuplicates(flags) !== flags) {\r\n        throw new SyntaxError('Invalid duplicate regex flag ' + flags);\r\n    }\r\n\r\n    // Strip and apply a leading mode modifier with any combination of flags except g or y\r\n    pattern = nativ.replace.call(pattern, /^\\(\\?([\\w$]+)\\)/, function($0, $1) {\r\n        if (nativ.test.call(/[gy]/, $1)) {\r\n            throw new SyntaxError('Cannot use flag g or y in mode modifier ' + $0);\r\n        }\r\n        // Allow duplicate flags within the mode modifier\r\n        flags = clipDuplicates(flags + $1);\r\n        return '';\r\n    });\r\n\r\n    // Throw on unknown native or nonnative flags\r\n    for (i = 0; i < flags.length; ++i) {\r\n        if (!registeredFlags[flags.charAt(i)]) {\r\n            throw new SyntaxError('Unknown regex flag ' + flags.charAt(i));\r\n        }\r\n    }\r\n\r\n    return {\r\n        pattern: pattern,\r\n        flags: flags\r\n    };\r\n}\r\n\r\n/**\r\n * Prepares an options object from the given value.\r\n *\r\n * @private\r\n * @param {String|Object} value Value to convert to an options object.\r\n * @returns {Object} Options object.\r\n */\r\nfunction prepareOptions(value) {\r\n    var options = {};\r\n\r\n    if (isType(value, 'String')) {\r\n        XRegExp.forEach(value, /[^\\s,]+/, function(match) {\r\n            options[match] = true;\r\n        });\r\n\r\n        return options;\r\n    }\r\n\r\n    return value;\r\n}\r\n\r\n/**\r\n * Registers a flag so it doesn't throw an 'unknown flag' error.\r\n *\r\n * @private\r\n * @param {String} flag Single-character flag to register.\r\n */\r\nfunction registerFlag(flag) {\r\n    if (!/^[\\w$]$/.test(flag)) {\r\n        throw new Error('Flag must be a single character A-Za-z0-9_$');\r\n    }\r\n\r\n    registeredFlags[flag] = true;\r\n}\r\n\r\n/**\r\n * Runs built-in and custom regex syntax tokens in reverse insertion order at the specified\r\n * position, until a match is found.\r\n *\r\n * @private\r\n * @param {String} pattern Original pattern from which an XRegExp object is being built.\r\n * @param {String} flags Flags being used to construct the regex.\r\n * @param {Number} pos Position to search for tokens within `pattern`.\r\n * @param {Number} scope Regex scope to apply: 'default' or 'class'.\r\n * @param {Object} context Context object to use for token handler functions.\r\n * @returns {Object} Object with properties `matchLength`, `output`, and `reparse`; or `null`.\r\n */\r\nfunction runTokens(pattern, flags, pos, scope, context) {\r\n    var i = tokens.length;\r\n    var leadChar = pattern.charAt(pos);\r\n    var result = null;\r\n    var match;\r\n    var t;\r\n\r\n    // Run in reverse insertion order\r\n    while (i--) {\r\n        t = tokens[i];\r\n        if (\r\n            (t.leadChar && t.leadChar !== leadChar) ||\r\n            (t.scope !== scope && t.scope !== 'all') ||\r\n            (t.flag && flags.indexOf(t.flag) === -1)\r\n        ) {\r\n            continue;\r\n        }\r\n\r\n        match = XRegExp.exec(pattern, t.regex, pos, 'sticky');\r\n        if (match) {\r\n            result = {\r\n                matchLength: match[0].length,\r\n                output: t.handler.call(context, match, scope, flags),\r\n                reparse: t.reparse\r\n            };\r\n            // Finished with token tests\r\n            break;\r\n        }\r\n    }\r\n\r\n    return result;\r\n}\r\n\r\n/**\r\n * Enables or disables implicit astral mode opt-in. When enabled, flag A is automatically added to\r\n * all new regexes created by XRegExp. This causes an error to be thrown when creating regexes if\r\n * the Unicode Base addon is not available, since flag A is registered by that addon.\r\n *\r\n * @private\r\n * @param {Boolean} on `true` to enable; `false` to disable.\r\n */\r\nfunction setAstral(on) {\r\n    features.astral = on;\r\n}\r\n\r\n/**\r\n * Enables or disables native method overrides.\r\n *\r\n * @private\r\n * @param {Boolean} on `true` to enable; `false` to disable.\r\n */\r\nfunction setNatives(on) {\r\n    RegExp.prototype.exec = (on ? fixed : nativ).exec;\r\n    RegExp.prototype.test = (on ? fixed : nativ).test;\r\n    String.prototype.match = (on ? fixed : nativ).match;\r\n    String.prototype.replace = (on ? fixed : nativ).replace;\r\n    String.prototype.split = (on ? fixed : nativ).split;\r\n\r\n    features.natives = on;\r\n}\r\n\r\n/**\r\n * Returns the object, or throws an error if it is `null` or `undefined`. This is used to follow\r\n * the ES5 abstract operation `ToObject`.\r\n *\r\n * @private\r\n * @param {*} value Object to check and return.\r\n * @returns {*} The provided object.\r\n */\r\nfunction toObject(value) {\r\n    // null or undefined\r\n    if (value == null) {\r\n        throw new TypeError('Cannot convert null or undefined to object');\r\n    }\r\n\r\n    return value;\r\n}\r\n\r\n// ==--------------------------==\r\n// Constructor\r\n// ==--------------------------==\r\n\r\n/**\r\n * Creates an extended regular expression object for matching text with a pattern. Differs from a\r\n * native regular expression in that additional syntax and flags are supported. The returned object\r\n * is in fact a native `RegExp` and works with all native methods.\r\n *\r\n * @class XRegExp\r\n * @constructor\r\n * @param {String|RegExp} pattern Regex pattern string, or an existing regex object to copy.\r\n * @param {String} [flags] Any combination of flags.\r\n *   Native flags:\r\n *     - `g` - global\r\n *     - `i` - ignore case\r\n *     - `m` - multiline anchors\r\n *     - `u` - unicode (ES6)\r\n *     - `y` - sticky (Firefox 3+, ES6)\r\n *   Additional XRegExp flags:\r\n *     - `n` - explicit capture\r\n *     - `s` - dot matches all (aka singleline)\r\n *     - `x` - free-spacing and line comments (aka extended)\r\n *     - `A` - astral (requires the Unicode Base addon)\r\n *   Flags cannot be provided when constructing one `RegExp` from another.\r\n * @returns {RegExp} Extended regular expression object.\r\n * @example\r\n *\r\n * // With named capture and flag x\r\n * XRegExp('(?<year>  [0-9]{4} ) -?  # year  \\n\\\r\n *          (?<month> [0-9]{2} ) -?  # month \\n\\\r\n *          (?<day>   [0-9]{2} )     # day   ', 'x');\r\n *\r\n * // Providing a regex object copies it. Native regexes are recompiled using native (not XRegExp)\r\n * // syntax. Copies maintain extended data, are augmented with `XRegExp.prototype` properties, and\r\n * // have fresh `lastIndex` properties (set to zero).\r\n * XRegExp(/regex/);\r\n */\r\nfunction XRegExp(pattern, flags) {\r\n    if (XRegExp.isRegExp(pattern)) {\r\n        if (flags !== undefined) {\r\n            throw new TypeError('Cannot supply flags when copying a RegExp');\r\n        }\r\n        return copyRegex(pattern);\r\n    }\r\n\r\n    // Copy the argument behavior of `RegExp`\r\n    pattern = pattern === undefined ? '' : String(pattern);\r\n    flags = flags === undefined ? '' : String(flags);\r\n\r\n    if (XRegExp.isInstalled('astral') && flags.indexOf('A') === -1) {\r\n        // This causes an error to be thrown if the Unicode Base addon is not available\r\n        flags += 'A';\r\n    }\r\n\r\n    if (!patternCache[pattern]) {\r\n        patternCache[pattern] = {};\r\n    }\r\n\r\n    if (!patternCache[pattern][flags]) {\r\n        var context = {\r\n            hasNamedCapture: false,\r\n            captureNames: []\r\n        };\r\n        var scope = defaultScope;\r\n        var output = '';\r\n        var pos = 0;\r\n        var result;\r\n\r\n        // Check for flag-related errors, and strip/apply flags in a leading mode modifier\r\n        var applied = prepareFlags(pattern, flags);\r\n        var appliedPattern = applied.pattern;\r\n        var appliedFlags = applied.flags;\r\n\r\n        // Use XRegExp's tokens to translate the pattern to a native regex pattern.\r\n        // `appliedPattern.length` may change on each iteration if tokens use `reparse`\r\n        while (pos < appliedPattern.length) {\r\n            do {\r\n                // Check for custom tokens at the current position\r\n                result = runTokens(appliedPattern, appliedFlags, pos, scope, context);\r\n                // If the matched token used the `reparse` option, splice its output into the\r\n                // pattern before running tokens again at the same position\r\n                if (result && result.reparse) {\r\n                    appliedPattern = appliedPattern.slice(0, pos) +\r\n                        result.output +\r\n                        appliedPattern.slice(pos + result.matchLength);\r\n                }\r\n            } while (result && result.reparse);\r\n\r\n            if (result) {\r\n                output += result.output;\r\n                pos += (result.matchLength || 1);\r\n            } else {\r\n                // Get the native token at the current position\r\n                var token = XRegExp.exec(appliedPattern, nativeTokens[scope], pos, 'sticky')[0];\r\n                output += token;\r\n                pos += token.length;\r\n                if (token === '[' && scope === defaultScope) {\r\n                    scope = classScope;\r\n                } else if (token === ']' && scope === classScope) {\r\n                    scope = defaultScope;\r\n                }\r\n            }\r\n        }\r\n\r\n        patternCache[pattern][flags] = {\r\n            // Use basic cleanup to collapse repeated empty groups like `(?:)(?:)` to `(?:)`. Empty\r\n            // groups are sometimes inserted during regex transpilation in order to keep tokens\r\n            // separated. However, more than one empty group in a row is never needed.\r\n            pattern: nativ.replace.call(output, /(?:\\(\\?:\\))+/g, '(?:)'),\r\n            // Strip all but native flags\r\n            flags: nativ.replace.call(appliedFlags, /[^gimuy]+/g, ''),\r\n            // `context.captureNames` has an item for each capturing group, even if unnamed\r\n            captures: context.hasNamedCapture ? context.captureNames : null\r\n        };\r\n    }\r\n\r\n    var generated = patternCache[pattern][flags];\r\n    return augment(\r\n        new RegExp(generated.pattern, generated.flags),\r\n        generated.captures,\r\n        pattern,\r\n        flags\r\n    );\r\n}\r\n\r\n// Add `RegExp.prototype` to the prototype chain\r\nXRegExp.prototype = new RegExp();\r\n\r\n// ==--------------------------==\r\n// Public properties\r\n// ==--------------------------==\r\n\r\n/**\r\n * The XRegExp version number as a string containing three dot-separated parts. For example,\r\n * '2.0.0-beta-3'.\r\n *\r\n * @static\r\n * @memberOf XRegExp\r\n * @type String\r\n */\r\nXRegExp.version = '3.2.0';\r\n\r\n// ==--------------------------==\r\n// Public methods\r\n// ==--------------------------==\r\n\r\n// Intentionally undocumented; used in tests and addons\r\nXRegExp._clipDuplicates = clipDuplicates;\r\nXRegExp._hasNativeFlag = hasNativeFlag;\r\nXRegExp._dec = dec;\r\nXRegExp._hex = hex;\r\nXRegExp._pad4 = pad4;\r\n\r\n/**\r\n * Extends XRegExp syntax and allows custom flags. This is used internally and can be used to\r\n * create XRegExp addons. If more than one token can match the same string, the last added wins.\r\n *\r\n * @memberOf XRegExp\r\n * @param {RegExp} regex Regex object that matches the new token.\r\n * @param {Function} handler Function that returns a new pattern string (using native regex syntax)\r\n *   to replace the matched token within all future XRegExp regexes. Has access to persistent\r\n *   properties of the regex being built, through `this`. Invoked with three arguments:\r\n *   - The match array, with named backreference properties.\r\n *   - The regex scope where the match was found: 'default' or 'class'.\r\n *   - The flags used by the regex, including any flags in a leading mode modifier.\r\n *   The handler function becomes part of the XRegExp construction process, so be careful not to\r\n *   construct XRegExps within the function or you will trigger infinite recursion.\r\n * @param {Object} [options] Options object with optional properties:\r\n *   - `scope` {String} Scope where the token applies: 'default', 'class', or 'all'.\r\n *   - `flag` {String} Single-character flag that triggers the token. This also registers the\r\n *     flag, which prevents XRegExp from throwing an 'unknown flag' error when the flag is used.\r\n *   - `optionalFlags` {String} Any custom flags checked for within the token `handler` that are\r\n *     not required to trigger the token. This registers the flags, to prevent XRegExp from\r\n *     throwing an 'unknown flag' error when any of the flags are used.\r\n *   - `reparse` {Boolean} Whether the `handler` function's output should not be treated as\r\n *     final, and instead be reparseable by other tokens (including the current token). Allows\r\n *     token chaining or deferring.\r\n *   - `leadChar` {String} Single character that occurs at the beginning of any successful match\r\n *     of the token (not always applicable). This doesn't change the behavior of the token unless\r\n *     you provide an erroneous value. However, providing it can increase the token's performance\r\n *     since the token can be skipped at any positions where this character doesn't appear.\r\n * @example\r\n *\r\n * // Basic usage: Add \\a for the ALERT control code\r\n * XRegExp.addToken(\r\n *   /\\\\a/,\r\n *   function() {return '\\\\x07';},\r\n *   {scope: 'all'}\r\n * );\r\n * XRegExp('\\\\a[\\\\a-\\\\n]+').test('\\x07\\n\\x07'); // -> true\r\n *\r\n * // Add the U (ungreedy) flag from PCRE and RE2, which reverses greedy and lazy quantifiers.\r\n * // Since `scope` is not specified, it uses 'default' (i.e., transformations apply outside of\r\n * // character classes only)\r\n * XRegExp.addToken(\r\n *   /([?*+]|{\\d+(?:,\\d*)?})(\\??)/,\r\n *   function(match) {return match[1] + (match[2] ? '' : '?');},\r\n *   {flag: 'U'}\r\n * );\r\n * XRegExp('a+', 'U').exec('aaa')[0]; // -> 'a'\r\n * XRegExp('a+?', 'U').exec('aaa')[0]; // -> 'aaa'\r\n */\r\nXRegExp.addToken = function(regex, handler, options) {\r\n    options = options || {};\r\n    var optionalFlags = options.optionalFlags;\r\n    var i;\r\n\r\n    if (options.flag) {\r\n        registerFlag(options.flag);\r\n    }\r\n\r\n    if (optionalFlags) {\r\n        optionalFlags = nativ.split.call(optionalFlags, '');\r\n        for (i = 0; i < optionalFlags.length; ++i) {\r\n            registerFlag(optionalFlags[i]);\r\n        }\r\n    }\r\n\r\n    // Add to the private list of syntax tokens\r\n    tokens.push({\r\n        regex: copyRegex(regex, {\r\n            addG: true,\r\n            addY: hasNativeY,\r\n            isInternalOnly: true\r\n        }),\r\n        handler: handler,\r\n        scope: options.scope || defaultScope,\r\n        flag: options.flag,\r\n        reparse: options.reparse,\r\n        leadChar: options.leadChar\r\n    });\r\n\r\n    // Reset the pattern cache used by the `XRegExp` constructor, since the same pattern and flags\r\n    // might now produce different results\r\n    XRegExp.cache.flush('patterns');\r\n};\r\n\r\n/**\r\n * Caches and returns the result of calling `XRegExp(pattern, flags)`. On any subsequent call with\r\n * the same pattern and flag combination, the cached copy of the regex is returned.\r\n *\r\n * @memberOf XRegExp\r\n * @param {String} pattern Regex pattern string.\r\n * @param {String} [flags] Any combination of XRegExp flags.\r\n * @returns {RegExp} Cached XRegExp object.\r\n * @example\r\n *\r\n * while (match = XRegExp.cache('.', 'gs').exec(str)) {\r\n *   // The regex is compiled once only\r\n * }\r\n */\r\nXRegExp.cache = function(pattern, flags) {\r\n    if (!regexCache[pattern]) {\r\n        regexCache[pattern] = {};\r\n    }\r\n    return regexCache[pattern][flags] || (\r\n        regexCache[pattern][flags] = XRegExp(pattern, flags)\r\n    );\r\n};\r\n\r\n// Intentionally undocumented; used in tests\r\nXRegExp.cache.flush = function(cacheName) {\r\n    if (cacheName === 'patterns') {\r\n        // Flush the pattern cache used by the `XRegExp` constructor\r\n        patternCache = {};\r\n    } else {\r\n        // Flush the regex cache populated by `XRegExp.cache`\r\n        regexCache = {};\r\n    }\r\n};\r\n\r\n/**\r\n * Escapes any regular expression metacharacters, for use when matching literal strings. The result\r\n * can safely be used at any point within a regex that uses any flags.\r\n *\r\n * @memberOf XRegExp\r\n * @param {String} str String to escape.\r\n * @returns {String} String with regex metacharacters escaped.\r\n * @example\r\n *\r\n * XRegExp.escape('Escaped? <.>');\r\n * // -> 'Escaped\\?\\ <\\.>'\r\n */\r\nXRegExp.escape = function(str) {\r\n    return nativ.replace.call(toObject(str), /[-\\[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\r\n};\r\n\r\n/**\r\n * Executes a regex search in a specified string. Returns a match array or `null`. If the provided\r\n * regex uses named capture, named backreference properties are included on the match array.\r\n * Optional `pos` and `sticky` arguments specify the search start position, and whether the match\r\n * must start at the specified position only. The `lastIndex` property of the provided regex is not\r\n * used, but is updated for compatibility. Also fixes browser bugs compared to the native\r\n * `RegExp.prototype.exec` and can be used reliably cross-browser.\r\n *\r\n * @memberOf XRegExp\r\n * @param {String} str String to search.\r\n * @param {RegExp} regex Regex to search with.\r\n * @param {Number} [pos=0] Zero-based index at which to start the search.\r\n * @param {Boolean|String} [sticky=false] Whether the match must start at the specified position\r\n *   only. The string `'sticky'` is accepted as an alternative to `true`.\r\n * @returns {Array} Match array with named backreference properties, or `null`.\r\n * @example\r\n *\r\n * // Basic use, with named backreference\r\n * var match = XRegExp.exec('U+2620', XRegExp('U\\\\+(?<hex>[0-9A-F]{4})'));\r\n * match.hex; // -> '2620'\r\n *\r\n * // With pos and sticky, in a loop\r\n * var pos = 2, result = [], match;\r\n * while (match = XRegExp.exec('<1><2><3><4>5<6>', /<(\\d)>/, pos, 'sticky')) {\r\n *   result.push(match[1]);\r\n *   pos = match.index + match[0].length;\r\n * }\r\n * // result -> ['2', '3', '4']\r\n */\r\nXRegExp.exec = function(str, regex, pos, sticky) {\r\n    var cacheKey = 'g';\r\n    var addY = false;\r\n    var fakeY = false;\r\n    var match;\r\n    var r2;\r\n\r\n    addY = hasNativeY && !!(sticky || (regex.sticky && sticky !== false));\r\n    if (addY) {\r\n        cacheKey += 'y';\r\n    } else if (sticky) {\r\n        // Simulate sticky matching by appending an empty capture to the original regex. The\r\n        // resulting regex will succeed no matter what at the current index (set with `lastIndex`),\r\n        // and will not search the rest of the subject string. We'll know that the original regex\r\n        // has failed if that last capture is `''` rather than `undefined` (i.e., if that last\r\n        // capture participated in the match).\r\n        fakeY = true;\r\n        cacheKey += 'FakeY';\r\n    }\r\n\r\n    regex[REGEX_DATA] = regex[REGEX_DATA] || {};\r\n\r\n    // Shares cached copies with `XRegExp.match`/`replace`\r\n    r2 = regex[REGEX_DATA][cacheKey] || (\r\n        regex[REGEX_DATA][cacheKey] = copyRegex(regex, {\r\n            addG: true,\r\n            addY: addY,\r\n            source: fakeY ? regex.source + '|()' : undefined,\r\n            removeY: sticky === false,\r\n            isInternalOnly: true\r\n        })\r\n    );\r\n\r\n    pos = pos || 0;\r\n    r2.lastIndex = pos;\r\n\r\n    // Fixed `exec` required for `lastIndex` fix, named backreferences, etc.\r\n    match = fixed.exec.call(r2, str);\r\n\r\n    // Get rid of the capture added by the pseudo-sticky matcher if needed. An empty string means\r\n    // the original regexp failed (see above).\r\n    if (fakeY && match && match.pop() === '') {\r\n        match = null;\r\n    }\r\n\r\n    if (regex.global) {\r\n        regex.lastIndex = match ? r2.lastIndex : 0;\r\n    }\r\n\r\n    return match;\r\n};\r\n\r\n/**\r\n * Executes a provided function once per regex match. Searches always start at the beginning of the\r\n * string and continue until the end, regardless of the state of the regex's `global` property and\r\n * initial `lastIndex`.\r\n *\r\n * @memberOf XRegExp\r\n * @param {String} str String to search.\r\n * @param {RegExp} regex Regex to search with.\r\n * @param {Function} callback Function to execute for each match. Invoked with four arguments:\r\n *   - The match array, with named backreference properties.\r\n *   - The zero-based match index.\r\n *   - The string being traversed.\r\n *   - The regex object being used to traverse the string.\r\n * @example\r\n *\r\n * // Extracts every other digit from a string\r\n * var evens = [];\r\n * XRegExp.forEach('1a2345', /\\d/, function(match, i) {\r\n *   if (i % 2) evens.push(+match[0]);\r\n * });\r\n * // evens -> [2, 4]\r\n */\r\nXRegExp.forEach = function(str, regex, callback) {\r\n    var pos = 0;\r\n    var i = -1;\r\n    var match;\r\n\r\n    while ((match = XRegExp.exec(str, regex, pos))) {\r\n        // Because `regex` is provided to `callback`, the function could use the deprecated/\r\n        // nonstandard `RegExp.prototype.compile` to mutate the regex. However, since `XRegExp.exec`\r\n        // doesn't use `lastIndex` to set the search position, this can't lead to an infinite loop,\r\n        // at least. Actually, because of the way `XRegExp.exec` caches globalized versions of\r\n        // regexes, mutating the regex will not have any effect on the iteration or matched strings,\r\n        // which is a nice side effect that brings extra safety.\r\n        callback(match, ++i, str, regex);\r\n\r\n        pos = match.index + (match[0].length || 1);\r\n    }\r\n};\r\n\r\n/**\r\n * Copies a regex object and adds flag `g`. The copy maintains extended data, is augmented with\r\n * `XRegExp.prototype` properties, and has a fresh `lastIndex` property (set to zero). Native\r\n * regexes are not recompiled using XRegExp syntax.\r\n *\r\n * @memberOf XRegExp\r\n * @param {RegExp} regex Regex to globalize.\r\n * @returns {RegExp} Copy of the provided regex with flag `g` added.\r\n * @example\r\n *\r\n * var globalCopy = XRegExp.globalize(/regex/);\r\n * globalCopy.global; // -> true\r\n */\r\nXRegExp.globalize = function(regex) {\r\n    return copyRegex(regex, {addG: true});\r\n};\r\n\r\n/**\r\n * Installs optional features according to the specified options. Can be undone using\r\n * `XRegExp.uninstall`.\r\n *\r\n * @memberOf XRegExp\r\n * @param {Object|String} options Options object or string.\r\n * @example\r\n *\r\n * // With an options object\r\n * XRegExp.install({\r\n *   // Enables support for astral code points in Unicode addons (implicitly sets flag A)\r\n *   astral: true,\r\n *\r\n *   // DEPRECATED: Overrides native regex methods with fixed/extended versions\r\n *   natives: true\r\n * });\r\n *\r\n * // With an options string\r\n * XRegExp.install('astral natives');\r\n */\r\nXRegExp.install = function(options) {\r\n    options = prepareOptions(options);\r\n\r\n    if (!features.astral && options.astral) {\r\n        setAstral(true);\r\n    }\r\n\r\n    if (!features.natives && options.natives) {\r\n        setNatives(true);\r\n    }\r\n};\r\n\r\n/**\r\n * Checks whether an individual optional feature is installed.\r\n *\r\n * @memberOf XRegExp\r\n * @param {String} feature Name of the feature to check. One of:\r\n *   - `astral`\r\n *   - `natives`\r\n * @returns {Boolean} Whether the feature is installed.\r\n * @example\r\n *\r\n * XRegExp.isInstalled('astral');\r\n */\r\nXRegExp.isInstalled = function(feature) {\r\n    return !!(features[feature]);\r\n};\r\n\r\n/**\r\n * Returns `true` if an object is a regex; `false` if it isn't. This works correctly for regexes\r\n * created in another frame, when `instanceof` and `constructor` checks would fail.\r\n *\r\n * @memberOf XRegExp\r\n * @param {*} value Object to check.\r\n * @returns {Boolean} Whether the object is a `RegExp` object.\r\n * @example\r\n *\r\n * XRegExp.isRegExp('string'); // -> false\r\n * XRegExp.isRegExp(/regex/i); // -> true\r\n * XRegExp.isRegExp(RegExp('^', 'm')); // -> true\r\n * XRegExp.isRegExp(XRegExp('(?s).')); // -> true\r\n */\r\nXRegExp.isRegExp = function(value) {\r\n    return toString.call(value) === '[object RegExp]';\r\n    //return isType(value, 'RegExp');\r\n};\r\n\r\n/**\r\n * Returns the first matched string, or in global mode, an array containing all matched strings.\r\n * This is essentially a more convenient re-implementation of `String.prototype.match` that gives\r\n * the result types you actually want (string instead of `exec`-style array in match-first mode,\r\n * and an empty array instead of `null` when no matches are found in match-all mode). It also lets\r\n * you override flag g and ignore `lastIndex`, and fixes browser bugs.\r\n *\r\n * @memberOf XRegExp\r\n * @param {String} str String to search.\r\n * @param {RegExp} regex Regex to search with.\r\n * @param {String} [scope='one'] Use 'one' to return the first match as a string. Use 'all' to\r\n *   return an array of all matched strings. If not explicitly specified and `regex` uses flag g,\r\n *   `scope` is 'all'.\r\n * @returns {String|Array} In match-first mode: First match as a string, or `null`. In match-all\r\n *   mode: Array of all matched strings, or an empty array.\r\n * @example\r\n *\r\n * // Match first\r\n * XRegExp.match('abc', /\\w/); // -> 'a'\r\n * XRegExp.match('abc', /\\w/g, 'one'); // -> 'a'\r\n * XRegExp.match('abc', /x/g, 'one'); // -> null\r\n *\r\n * // Match all\r\n * XRegExp.match('abc', /\\w/g); // -> ['a', 'b', 'c']\r\n * XRegExp.match('abc', /\\w/, 'all'); // -> ['a', 'b', 'c']\r\n * XRegExp.match('abc', /x/, 'all'); // -> []\r\n */\r\nXRegExp.match = function(str, regex, scope) {\r\n    var global = (regex.global && scope !== 'one') || scope === 'all';\r\n    var cacheKey = ((global ? 'g' : '') + (regex.sticky ? 'y' : '')) || 'noGY';\r\n    var result;\r\n    var r2;\r\n\r\n    regex[REGEX_DATA] = regex[REGEX_DATA] || {};\r\n\r\n    // Shares cached copies with `XRegExp.exec`/`replace`\r\n    r2 = regex[REGEX_DATA][cacheKey] || (\r\n        regex[REGEX_DATA][cacheKey] = copyRegex(regex, {\r\n            addG: !!global,\r\n            removeG: scope === 'one',\r\n            isInternalOnly: true\r\n        })\r\n    );\r\n\r\n    result = nativ.match.call(toObject(str), r2);\r\n\r\n    if (regex.global) {\r\n        regex.lastIndex = (\r\n            (scope === 'one' && result) ?\r\n                // Can't use `r2.lastIndex` since `r2` is nonglobal in this case\r\n                (result.index + result[0].length) : 0\r\n        );\r\n    }\r\n\r\n    return global ? (result || []) : (result && result[0]);\r\n};\r\n\r\n/**\r\n * Retrieves the matches from searching a string using a chain of regexes that successively search\r\n * within previous matches. The provided `chain` array can contain regexes and or objects with\r\n * `regex` and `backref` properties. When a backreference is specified, the named or numbered\r\n * backreference is passed forward to the next regex or returned.\r\n *\r\n * @memberOf XRegExp\r\n * @param {String} str String to search.\r\n * @param {Array} chain Regexes that each search for matches within preceding results.\r\n * @returns {Array} Matches by the last regex in the chain, or an empty array.\r\n * @example\r\n *\r\n * // Basic usage; matches numbers within <b> tags\r\n * XRegExp.matchChain('1 <b>2</b> 3 <b>4 a 56</b>', [\r\n *   XRegExp('(?is)<b>.*?</b>'),\r\n *   /\\d+/\r\n * ]);\r\n * // -> ['2', '4', '56']\r\n *\r\n * // Passing forward and returning specific backreferences\r\n * html = '<a href=\"http://xregexp.com/api/\">XRegExp</a>\\\r\n *         <a href=\"http://www.google.com/\">Google</a>';\r\n * XRegExp.matchChain(html, [\r\n *   {regex: /<a href=\"([^\"]+)\">/i, backref: 1},\r\n *   {regex: XRegExp('(?i)^https?://(?<domain>[^/?#]+)'), backref: 'domain'}\r\n * ]);\r\n * // -> ['xregexp.com', 'www.google.com']\r\n */\r\nXRegExp.matchChain = function(str, chain) {\r\n    return (function recurseChain(values, level) {\r\n        var item = chain[level].regex ? chain[level] : {regex: chain[level]};\r\n        var matches = [];\r\n\r\n        function addMatch(match) {\r\n            if (item.backref) {\r\n                // Safari 4.0.5 (but not 5.0.5+) inappropriately uses sparse arrays to hold the\r\n                // `undefined`s for backreferences to nonparticipating capturing groups. In such\r\n                // cases, a `hasOwnProperty` or `in` check on its own would inappropriately throw\r\n                // the exception, so also check if the backreference is a number that is within the\r\n                // bounds of the array.\r\n                if (!(match.hasOwnProperty(item.backref) || +item.backref < match.length)) {\r\n                    throw new ReferenceError('Backreference to undefined group: ' + item.backref);\r\n                }\r\n\r\n                matches.push(match[item.backref] || '');\r\n            } else {\r\n                matches.push(match[0]);\r\n            }\r\n        }\r\n\r\n        for (var i = 0; i < values.length; ++i) {\r\n            XRegExp.forEach(values[i], item.regex, addMatch);\r\n        }\r\n\r\n        return ((level === chain.length - 1) || !matches.length) ?\r\n            matches :\r\n            recurseChain(matches, level + 1);\r\n    }([str], 0));\r\n};\r\n\r\n/**\r\n * Returns a new string with one or all matches of a pattern replaced. The pattern can be a string\r\n * or regex, and the replacement can be a string or a function to be called for each match. To\r\n * perform a global search and replace, use the optional `scope` argument or include flag g if using\r\n * a regex. Replacement strings can use `${n}` for named and numbered backreferences. Replacement\r\n * functions can use named backreferences via `arguments[0].name`. Also fixes browser bugs compared\r\n * to the native `String.prototype.replace` and can be used reliably cross-browser.\r\n *\r\n * @memberOf XRegExp\r\n * @param {String} str String to search.\r\n * @param {RegExp|String} search Search pattern to be replaced.\r\n * @param {String|Function} replacement Replacement string or a function invoked to create it.\r\n *   Replacement strings can include special replacement syntax:\r\n *     - $$ - Inserts a literal $ character.\r\n *     - $&, $0 - Inserts the matched substring.\r\n *     - $` - Inserts the string that precedes the matched substring (left context).\r\n *     - $' - Inserts the string that follows the matched substring (right context).\r\n *     - $n, $nn - Where n/nn are digits referencing an existent capturing group, inserts\r\n *       backreference n/nn.\r\n *     - ${n} - Where n is a name or any number of digits that reference an existent capturing\r\n *       group, inserts backreference n.\r\n *   Replacement functions are invoked with three or more arguments:\r\n *     - The matched substring (corresponds to $& above). Named backreferences are accessible as\r\n *       properties of this first argument.\r\n *     - 0..n arguments, one for each backreference (corresponding to $1, $2, etc. above).\r\n *     - The zero-based index of the match within the total search string.\r\n *     - The total string being searched.\r\n * @param {String} [scope='one'] Use 'one' to replace the first match only, or 'all'. If not\r\n *   explicitly specified and using a regex with flag g, `scope` is 'all'.\r\n * @returns {String} New string with one or all matches replaced.\r\n * @example\r\n *\r\n * // Regex search, using named backreferences in replacement string\r\n * var name = XRegExp('(?<first>\\\\w+) (?<last>\\\\w+)');\r\n * XRegExp.replace('John Smith', name, '${last}, ${first}');\r\n * // -> 'Smith, John'\r\n *\r\n * // Regex search, using named backreferences in replacement function\r\n * XRegExp.replace('John Smith', name, function(match) {\r\n *   return match.last + ', ' + match.first;\r\n * });\r\n * // -> 'Smith, John'\r\n *\r\n * // String search, with replace-all\r\n * XRegExp.replace('RegExp builds RegExps', 'RegExp', 'XRegExp', 'all');\r\n * // -> 'XRegExp builds XRegExps'\r\n */\r\nXRegExp.replace = function(str, search, replacement, scope) {\r\n    var isRegex = XRegExp.isRegExp(search);\r\n    var global = (search.global && scope !== 'one') || scope === 'all';\r\n    var cacheKey = ((global ? 'g' : '') + (search.sticky ? 'y' : '')) || 'noGY';\r\n    var s2 = search;\r\n    var result;\r\n\r\n    if (isRegex) {\r\n        search[REGEX_DATA] = search[REGEX_DATA] || {};\r\n\r\n        // Shares cached copies with `XRegExp.exec`/`match`. Since a copy is used, `search`'s\r\n        // `lastIndex` isn't updated *during* replacement iterations\r\n        s2 = search[REGEX_DATA][cacheKey] || (\r\n            search[REGEX_DATA][cacheKey] = copyRegex(search, {\r\n                addG: !!global,\r\n                removeG: scope === 'one',\r\n                isInternalOnly: true\r\n            })\r\n        );\r\n    } else if (global) {\r\n        s2 = new RegExp(XRegExp.escape(String(search)), 'g');\r\n    }\r\n\r\n    // Fixed `replace` required for named backreferences, etc.\r\n    result = fixed.replace.call(toObject(str), s2, replacement);\r\n\r\n    if (isRegex && search.global) {\r\n        // Fixes IE, Safari bug (last tested IE 9, Safari 5.1)\r\n        search.lastIndex = 0;\r\n    }\r\n\r\n    return result;\r\n};\r\n\r\n/**\r\n * Performs batch processing of string replacements. Used like `XRegExp.replace`, but accepts an\r\n * array of replacement details. Later replacements operate on the output of earlier replacements.\r\n * Replacement details are accepted as an array with a regex or string to search for, the\r\n * replacement string or function, and an optional scope of 'one' or 'all'. Uses the XRegExp\r\n * replacement text syntax, which supports named backreference properties via `${name}`.\r\n *\r\n * @memberOf XRegExp\r\n * @param {String} str String to search.\r\n * @param {Array} replacements Array of replacement detail arrays.\r\n * @returns {String} New string with all replacements.\r\n * @example\r\n *\r\n * str = XRegExp.replaceEach(str, [\r\n *   [XRegExp('(?<name>a)'), 'z${name}'],\r\n *   [/b/gi, 'y'],\r\n *   [/c/g, 'x', 'one'], // scope 'one' overrides /g\r\n *   [/d/, 'w', 'all'],  // scope 'all' overrides lack of /g\r\n *   ['e', 'v', 'all'],  // scope 'all' allows replace-all for strings\r\n *   [/f/g, function($0) {\r\n *     return $0.toUpperCase();\r\n *   }]\r\n * ]);\r\n */\r\nXRegExp.replaceEach = function(str, replacements) {\r\n    var i;\r\n    var r;\r\n\r\n    for (i = 0; i < replacements.length; ++i) {\r\n        r = replacements[i];\r\n        str = XRegExp.replace(str, r[0], r[1], r[2]);\r\n    }\r\n\r\n    return str;\r\n};\r\n\r\n/**\r\n * Splits a string into an array of strings using a regex or string separator. Matches of the\r\n * separator are not included in the result array. However, if `separator` is a regex that contains\r\n * capturing groups, backreferences are spliced into the result each time `separator` is matched.\r\n * Fixes browser bugs compared to the native `String.prototype.split` and can be used reliably\r\n * cross-browser.\r\n *\r\n * @memberOf XRegExp\r\n * @param {String} str String to split.\r\n * @param {RegExp|String} separator Regex or string to use for separating the string.\r\n * @param {Number} [limit] Maximum number of items to include in the result array.\r\n * @returns {Array} Array of substrings.\r\n * @example\r\n *\r\n * // Basic use\r\n * XRegExp.split('a b c', ' ');\r\n * // -> ['a', 'b', 'c']\r\n *\r\n * // With limit\r\n * XRegExp.split('a b c', ' ', 2);\r\n * // -> ['a', 'b']\r\n *\r\n * // Backreferences in result array\r\n * XRegExp.split('..word1..', /([a-z]+)(\\d+)/i);\r\n * // -> ['..', 'word', '1', '..']\r\n */\r\nXRegExp.split = function(str, separator, limit) {\r\n    return fixed.split.call(toObject(str), separator, limit);\r\n};\r\n\r\n/**\r\n * Executes a regex search in a specified string. Returns `true` or `false`. Optional `pos` and\r\n * `sticky` arguments specify the search start position, and whether the match must start at the\r\n * specified position only. The `lastIndex` property of the provided regex is not used, but is\r\n * updated for compatibility. Also fixes browser bugs compared to the native\r\n * `RegExp.prototype.test` and can be used reliably cross-browser.\r\n *\r\n * @memberOf XRegExp\r\n * @param {String} str String to search.\r\n * @param {RegExp} regex Regex to search with.\r\n * @param {Number} [pos=0] Zero-based index at which to start the search.\r\n * @param {Boolean|String} [sticky=false] Whether the match must start at the specified position\r\n *   only. The string `'sticky'` is accepted as an alternative to `true`.\r\n * @returns {Boolean} Whether the regex matched the provided value.\r\n * @example\r\n *\r\n * // Basic use\r\n * XRegExp.test('abc', /c/); // -> true\r\n *\r\n * // With pos and sticky\r\n * XRegExp.test('abc', /c/, 0, 'sticky'); // -> false\r\n * XRegExp.test('abc', /c/, 2, 'sticky'); // -> true\r\n */\r\nXRegExp.test = function(str, regex, pos, sticky) {\r\n    // Do this the easy way :-)\r\n    return !!XRegExp.exec(str, regex, pos, sticky);\r\n};\r\n\r\n/**\r\n * Uninstalls optional features according to the specified options. All optional features start out\r\n * uninstalled, so this is used to undo the actions of `XRegExp.install`.\r\n *\r\n * @memberOf XRegExp\r\n * @param {Object|String} options Options object or string.\r\n * @example\r\n *\r\n * // With an options object\r\n * XRegExp.uninstall({\r\n *   // Disables support for astral code points in Unicode addons\r\n *   astral: true,\r\n *\r\n *   // DEPRECATED: Restores native regex methods\r\n *   natives: true\r\n * });\r\n *\r\n * // With an options string\r\n * XRegExp.uninstall('astral natives');\r\n */\r\nXRegExp.uninstall = function(options) {\r\n    options = prepareOptions(options);\r\n\r\n    if (features.astral && options.astral) {\r\n        setAstral(false);\r\n    }\r\n\r\n    if (features.natives && options.natives) {\r\n        setNatives(false);\r\n    }\r\n};\r\n\r\n/**\r\n * Returns an XRegExp object that is the union of the given patterns. Patterns can be provided as\r\n * regex objects or strings. Metacharacters are escaped in patterns provided as strings.\r\n * Backreferences in provided regex objects are automatically renumbered to work correctly within\r\n * the larger combined pattern. Native flags used by provided regexes are ignored in favor of the\r\n * `flags` argument.\r\n *\r\n * @memberOf XRegExp\r\n * @param {Array} patterns Regexes and strings to combine.\r\n * @param {String} [flags] Any combination of XRegExp flags.\r\n * @param {Object} [options] Options object with optional properties:\r\n *   - `conjunction` {String} Type of conjunction to use: 'or' (default) or 'none'.\r\n * @returns {RegExp} Union of the provided regexes and strings.\r\n * @example\r\n *\r\n * XRegExp.union(['a+b*c', /(dogs)\\1/, /(cats)\\1/], 'i');\r\n * // -> /a\\+b\\*c|(dogs)\\1|(cats)\\2/i\r\n *\r\n * XRegExp.union([/man/, /bear/, /pig/], 'i', {conjunction: 'none'});\r\n * // -> /manbearpig/i\r\n */\r\nXRegExp.union = function(patterns, flags, options) {\r\n    options = options || {};\r\n    var conjunction = options.conjunction || 'or';\r\n    var numCaptures = 0;\r\n    var numPriorCaptures;\r\n    var captureNames;\r\n\r\n    function rewrite(match, paren, backref) {\r\n        var name = captureNames[numCaptures - numPriorCaptures];\r\n\r\n        // Capturing group\r\n        if (paren) {\r\n            ++numCaptures;\r\n            // If the current capture has a name, preserve the name\r\n            if (name) {\r\n                return '(?<' + name + '>';\r\n            }\r\n        // Backreference\r\n        } else if (backref) {\r\n            // Rewrite the backreference\r\n            return '\\\\' + (+backref + numPriorCaptures);\r\n        }\r\n\r\n        return match;\r\n    }\r\n\r\n    if (!(isType(patterns, 'Array') && patterns.length)) {\r\n        throw new TypeError('Must provide a nonempty array of patterns to merge');\r\n    }\r\n\r\n    var parts = /(\\()(?!\\?)|\\\\([1-9]\\d*)|\\\\[\\s\\S]|\\[(?:[^\\\\\\]]|\\\\[\\s\\S])*\\]/g;\r\n    var output = [];\r\n    var pattern;\r\n    for (var i = 0; i < patterns.length; ++i) {\r\n        pattern = patterns[i];\r\n\r\n        if (XRegExp.isRegExp(pattern)) {\r\n            numPriorCaptures = numCaptures;\r\n            captureNames = (pattern[REGEX_DATA] && pattern[REGEX_DATA].captureNames) || [];\r\n\r\n            // Rewrite backreferences. Passing to XRegExp dies on octals and ensures patterns are\r\n            // independently valid; helps keep this simple. Named captures are put back\r\n            output.push(nativ.replace.call(XRegExp(pattern.source).source, parts, rewrite));\r\n        } else {\r\n            output.push(XRegExp.escape(pattern));\r\n        }\r\n    }\r\n\r\n    var separator = conjunction === 'none' ? '' : '|';\r\n    return XRegExp(output.join(separator), flags);\r\n};\r\n\r\n// ==--------------------------==\r\n// Fixed/extended native methods\r\n// ==--------------------------==\r\n\r\n/**\r\n * Adds named capture support (with backreferences returned as `result.name`), and fixes browser\r\n * bugs in the native `RegExp.prototype.exec`. Calling `XRegExp.install('natives')` uses this to\r\n * override the native method. Use via `XRegExp.exec` without overriding natives.\r\n *\r\n * @memberOf RegExp\r\n * @param {String} str String to search.\r\n * @returns {Array} Match array with named backreference properties, or `null`.\r\n */\r\nfixed.exec = function(str) {\r\n    var origLastIndex = this.lastIndex;\r\n    var match = nativ.exec.apply(this, arguments);\r\n    var name;\r\n    var r2;\r\n    var i;\r\n\r\n    if (match) {\r\n        // Fix browsers whose `exec` methods don't return `undefined` for nonparticipating capturing\r\n        // groups. This fixes IE 5.5-8, but not IE 9's quirks mode or emulation of older IEs. IE 9\r\n        // in standards mode follows the spec.\r\n        if (!correctExecNpcg && match.length > 1 && indexOf(match, '') > -1) {\r\n            r2 = copyRegex(this, {\r\n                removeG: true,\r\n                isInternalOnly: true\r\n            });\r\n            // Using `str.slice(match.index)` rather than `match[0]` in case lookahead allowed\r\n            // matching due to characters outside the match\r\n            nativ.replace.call(String(str).slice(match.index), r2, function() {\r\n                var len = arguments.length;\r\n                var i;\r\n                // Skip index 0 and the last 2\r\n                for (i = 1; i < len - 2; ++i) {\r\n                    if (arguments[i] === undefined) {\r\n                        match[i] = undefined;\r\n                    }\r\n                }\r\n            });\r\n        }\r\n\r\n        // Attach named capture properties\r\n        if (this[REGEX_DATA] && this[REGEX_DATA].captureNames) {\r\n            // Skip index 0\r\n            for (i = 1; i < match.length; ++i) {\r\n                name = this[REGEX_DATA].captureNames[i - 1];\r\n                if (name) {\r\n                    match[name] = match[i];\r\n                }\r\n            }\r\n        }\r\n\r\n        // Fix browsers that increment `lastIndex` after zero-length matches\r\n        if (this.global && !match[0].length && (this.lastIndex > match.index)) {\r\n            this.lastIndex = match.index;\r\n        }\r\n    }\r\n\r\n    if (!this.global) {\r\n        // Fixes IE, Opera bug (last tested IE 9, Opera 11.6)\r\n        this.lastIndex = origLastIndex;\r\n    }\r\n\r\n    return match;\r\n};\r\n\r\n/**\r\n * Fixes browser bugs in the native `RegExp.prototype.test`. Calling `XRegExp.install('natives')`\r\n * uses this to override the native method.\r\n *\r\n * @memberOf RegExp\r\n * @param {String} str String to search.\r\n * @returns {Boolean} Whether the regex matched the provided value.\r\n */\r\nfixed.test = function(str) {\r\n    // Do this the easy way :-)\r\n    return !!fixed.exec.call(this, str);\r\n};\r\n\r\n/**\r\n * Adds named capture support (with backreferences returned as `result.name`), and fixes browser\r\n * bugs in the native `String.prototype.match`. Calling `XRegExp.install('natives')` uses this to\r\n * override the native method.\r\n *\r\n * @memberOf String\r\n * @param {RegExp|*} regex Regex to search with. If not a regex object, it is passed to `RegExp`.\r\n * @returns {Array} If `regex` uses flag g, an array of match strings or `null`. Without flag g,\r\n *   the result of calling `regex.exec(this)`.\r\n */\r\nfixed.match = function(regex) {\r\n    var result;\r\n\r\n    if (!XRegExp.isRegExp(regex)) {\r\n        // Use the native `RegExp` rather than `XRegExp`\r\n        regex = new RegExp(regex);\r\n    } else if (regex.global) {\r\n        result = nativ.match.apply(this, arguments);\r\n        // Fixes IE bug\r\n        regex.lastIndex = 0;\r\n\r\n        return result;\r\n    }\r\n\r\n    return fixed.exec.call(regex, toObject(this));\r\n};\r\n\r\n/**\r\n * Adds support for `${n}` tokens for named and numbered backreferences in replacement text, and\r\n * provides named backreferences to replacement functions as `arguments[0].name`. Also fixes browser\r\n * bugs in replacement text syntax when performing a replacement using a nonregex search value, and\r\n * the value of a replacement regex's `lastIndex` property during replacement iterations and upon\r\n * completion. Calling `XRegExp.install('natives')` uses this to override the native method. Note\r\n * that this doesn't support SpiderMonkey's proprietary third (`flags`) argument. Use via\r\n * `XRegExp.replace` without overriding natives.\r\n *\r\n * @memberOf String\r\n * @param {RegExp|String} search Search pattern to be replaced.\r\n * @param {String|Function} replacement Replacement string or a function invoked to create it.\r\n * @returns {String} New string with one or all matches replaced.\r\n */\r\nfixed.replace = function(search, replacement) {\r\n    var isRegex = XRegExp.isRegExp(search);\r\n    var origLastIndex;\r\n    var captureNames;\r\n    var result;\r\n\r\n    if (isRegex) {\r\n        if (search[REGEX_DATA]) {\r\n            captureNames = search[REGEX_DATA].captureNames;\r\n        }\r\n        // Only needed if `search` is nonglobal\r\n        origLastIndex = search.lastIndex;\r\n    } else {\r\n        search += ''; // Type-convert\r\n    }\r\n\r\n    // Don't use `typeof`; some older browsers return 'function' for regex objects\r\n    if (isType(replacement, 'Function')) {\r\n        // Stringifying `this` fixes a bug in IE < 9 where the last argument in replacement\r\n        // functions isn't type-converted to a string\r\n        result = nativ.replace.call(String(this), search, function() {\r\n            var args = arguments;\r\n            var i;\r\n            if (captureNames) {\r\n                // Change the `arguments[0]` string primitive to a `String` object that can store\r\n                // properties. This really does need to use `String` as a constructor\r\n                args[0] = new String(args[0]);\r\n                // Store named backreferences on the first argument\r\n                for (i = 0; i < captureNames.length; ++i) {\r\n                    if (captureNames[i]) {\r\n                        args[0][captureNames[i]] = args[i + 1];\r\n                    }\r\n                }\r\n            }\r\n            // Update `lastIndex` before calling `replacement`. Fixes IE, Chrome, Firefox, Safari\r\n            // bug (last tested IE 9, Chrome 17, Firefox 11, Safari 5.1)\r\n            if (isRegex && search.global) {\r\n                search.lastIndex = args[args.length - 2] + args[0].length;\r\n            }\r\n            // ES6 specs the context for replacement functions as `undefined`\r\n            return replacement.apply(undefined, args);\r\n        });\r\n    } else {\r\n        // Ensure that the last value of `args` will be a string when given nonstring `this`,\r\n        // while still throwing on null or undefined context\r\n        result = nativ.replace.call(this == null ? this : String(this), search, function() {\r\n            // Keep this function's `arguments` available through closure\r\n            var args = arguments;\r\n            return nativ.replace.call(String(replacement), replacementToken, function($0, $1, $2) {\r\n                var n;\r\n                // Named or numbered backreference with curly braces\r\n                if ($1) {\r\n                    // XRegExp behavior for `${n}`:\r\n                    // 1. Backreference to numbered capture, if `n` is an integer. Use `0` for the\r\n                    //    entire match. Any number of leading zeros may be used.\r\n                    // 2. Backreference to named capture `n`, if it exists and is not an integer\r\n                    //    overridden by numbered capture. In practice, this does not overlap with\r\n                    //    numbered capture since XRegExp does not allow named capture to use a bare\r\n                    //    integer as the name.\r\n                    // 3. If the name or number does not refer to an existing capturing group, it's\r\n                    //    an error.\r\n                    n = +$1; // Type-convert; drop leading zeros\r\n                    if (n <= args.length - 3) {\r\n                        return args[n] || '';\r\n                    }\r\n                    // Groups with the same name is an error, else would need `lastIndexOf`\r\n                    n = captureNames ? indexOf(captureNames, $1) : -1;\r\n                    if (n < 0) {\r\n                        throw new SyntaxError('Backreference to undefined group ' + $0);\r\n                    }\r\n                    return args[n + 1] || '';\r\n                }\r\n                // Else, special variable or numbered backreference without curly braces\r\n                if ($2 === '$') { // $$\r\n                    return '$';\r\n                }\r\n                if ($2 === '&' || +$2 === 0) { // $&, $0 (not followed by 1-9), $00\r\n                    return args[0];\r\n                }\r\n                if ($2 === '`') { // $` (left context)\r\n                    return args[args.length - 1].slice(0, args[args.length - 2]);\r\n                }\r\n                if ($2 === \"'\") { // $' (right context)\r\n                    return args[args.length - 1].slice(args[args.length - 2] + args[0].length);\r\n                }\r\n                // Else, numbered backreference without curly braces\r\n                $2 = +$2; // Type-convert; drop leading zero\r\n                // XRegExp behavior for `$n` and `$nn`:\r\n                // - Backrefs end after 1 or 2 digits. Use `${..}` for more digits.\r\n                // - `$1` is an error if no capturing groups.\r\n                // - `$10` is an error if less than 10 capturing groups. Use `${1}0` instead.\r\n                // - `$01` is `$1` if at least one capturing group, else it's an error.\r\n                // - `$0` (not followed by 1-9) and `$00` are the entire match.\r\n                // Native behavior, for comparison:\r\n                // - Backrefs end after 1 or 2 digits. Cannot reference capturing group 100+.\r\n                // - `$1` is a literal `$1` if no capturing groups.\r\n                // - `$10` is `$1` followed by a literal `0` if less than 10 capturing groups.\r\n                // - `$01` is `$1` if at least one capturing group, else it's a literal `$01`.\r\n                // - `$0` is a literal `$0`.\r\n                if (!isNaN($2)) {\r\n                    if ($2 > args.length - 3) {\r\n                        throw new SyntaxError('Backreference to undefined group ' + $0);\r\n                    }\r\n                    return args[$2] || '';\r\n                }\r\n                // `$` followed by an unsupported char is an error, unlike native JS\r\n                throw new SyntaxError('Invalid token ' + $0);\r\n            });\r\n        });\r\n    }\r\n\r\n    if (isRegex) {\r\n        if (search.global) {\r\n            // Fixes IE, Safari bug (last tested IE 9, Safari 5.1)\r\n            search.lastIndex = 0;\r\n        } else {\r\n            // Fixes IE, Opera bug (last tested IE 9, Opera 11.6)\r\n            search.lastIndex = origLastIndex;\r\n        }\r\n    }\r\n\r\n    return result;\r\n};\r\n\r\n/**\r\n * Fixes browser bugs in the native `String.prototype.split`. Calling `XRegExp.install('natives')`\r\n * uses this to override the native method. Use via `XRegExp.split` without overriding natives.\r\n *\r\n * @memberOf String\r\n * @param {RegExp|String} separator Regex or string to use for separating the string.\r\n * @param {Number} [limit] Maximum number of items to include in the result array.\r\n * @returns {Array} Array of substrings.\r\n */\r\nfixed.split = function(separator, limit) {\r\n    if (!XRegExp.isRegExp(separator)) {\r\n        // Browsers handle nonregex split correctly, so use the faster native method\r\n        return nativ.split.apply(this, arguments);\r\n    }\r\n\r\n    var str = String(this);\r\n    var output = [];\r\n    var origLastIndex = separator.lastIndex;\r\n    var lastLastIndex = 0;\r\n    var lastLength;\r\n\r\n    // Values for `limit`, per the spec:\r\n    // If undefined: pow(2,32) - 1\r\n    // If 0, Infinity, or NaN: 0\r\n    // If positive number: limit = floor(limit); if (limit >= pow(2,32)) limit -= pow(2,32);\r\n    // If negative number: pow(2,32) - floor(abs(limit))\r\n    // If other: Type-convert, then use the above rules\r\n    // This line fails in very strange ways for some values of `limit` in Opera 10.5-10.63, unless\r\n    // Opera Dragonfly is open (go figure). It works in at least Opera 9.5-10.1 and 11+\r\n    limit = (limit === undefined ? -1 : limit) >>> 0;\r\n\r\n    XRegExp.forEach(str, separator, function(match) {\r\n        // This condition is not the same as `if (match[0].length)`\r\n        if ((match.index + match[0].length) > lastLastIndex) {\r\n            output.push(str.slice(lastLastIndex, match.index));\r\n            if (match.length > 1 && match.index < str.length) {\r\n                Array.prototype.push.apply(output, match.slice(1));\r\n            }\r\n            lastLength = match[0].length;\r\n            lastLastIndex = match.index + lastLength;\r\n        }\r\n    });\r\n\r\n    if (lastLastIndex === str.length) {\r\n        if (!nativ.test.call(separator, '') || lastLength) {\r\n            output.push('');\r\n        }\r\n    } else {\r\n        output.push(str.slice(lastLastIndex));\r\n    }\r\n\r\n    separator.lastIndex = origLastIndex;\r\n    return output.length > limit ? output.slice(0, limit) : output;\r\n};\r\n\r\n// ==--------------------------==\r\n// Built-in syntax/flag tokens\r\n// ==--------------------------==\r\n\r\n/*\r\n * Letter escapes that natively match literal characters: `\\a`, `\\A`, etc. These should be\r\n * SyntaxErrors but are allowed in web reality. XRegExp makes them errors for cross-browser\r\n * consistency and to reserve their syntax, but lets them be superseded by addons.\r\n */\r\nXRegExp.addToken(\r\n    /\\\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\\dA-Fa-f]{4}|{[\\dA-Fa-f]+})|x(?![\\dA-Fa-f]{2}))/,\r\n    function(match, scope) {\r\n        // \\B is allowed in default scope only\r\n        if (match[1] === 'B' && scope === defaultScope) {\r\n            return match[0];\r\n        }\r\n        throw new SyntaxError('Invalid escape ' + match[0]);\r\n    },\r\n    {\r\n        scope: 'all',\r\n        leadChar: '\\\\'\r\n    }\r\n);\r\n\r\n/*\r\n * Unicode code point escape with curly braces: `\\u{N..}`. `N..` is any one or more digit\r\n * hexadecimal number from 0-10FFFF, and can include leading zeros. Requires the native ES6 `u` flag\r\n * to support code points greater than U+FFFF. Avoids converting code points above U+FFFF to\r\n * surrogate pairs (which could be done without flag `u`), since that could lead to broken behavior\r\n * if you follow a `\\u{N..}` token that references a code point above U+FFFF with a quantifier, or\r\n * if you use the same in a character class.\r\n */\r\nXRegExp.addToken(\r\n    /\\\\u{([\\dA-Fa-f]+)}/,\r\n    function(match, scope, flags) {\r\n        var code = dec(match[1]);\r\n        if (code > 0x10FFFF) {\r\n            throw new SyntaxError('Invalid Unicode code point ' + match[0]);\r\n        }\r\n        if (code <= 0xFFFF) {\r\n            // Converting to \\uNNNN avoids needing to escape the literal character and keep it\r\n            // separate from preceding tokens\r\n            return '\\\\u' + pad4(hex(code));\r\n        }\r\n        // If `code` is between 0xFFFF and 0x10FFFF, require and defer to native handling\r\n        if (hasNativeU && flags.indexOf('u') > -1) {\r\n            return match[0];\r\n        }\r\n        throw new SyntaxError('Cannot use Unicode code point above \\\\u{FFFF} without flag u');\r\n    },\r\n    {\r\n        scope: 'all',\r\n        leadChar: '\\\\'\r\n    }\r\n);\r\n\r\n/*\r\n * Empty character class: `[]` or `[^]`. This fixes a critical cross-browser syntax inconsistency.\r\n * Unless this is standardized (per the ES spec), regex syntax can't be accurately parsed because\r\n * character class endings can't be determined.\r\n */\r\nXRegExp.addToken(\r\n    /\\[(\\^?)\\]/,\r\n    function(match) {\r\n        // For cross-browser compatibility with ES3, convert [] to \\b\\B and [^] to [\\s\\S].\r\n        // (?!) should work like \\b\\B, but is unreliable in some versions of Firefox\r\n        return match[1] ? '[\\\\s\\\\S]' : '\\\\b\\\\B';\r\n    },\r\n    {leadChar: '['}\r\n);\r\n\r\n/*\r\n * Comment pattern: `(?# )`. Inline comments are an alternative to the line comments allowed in\r\n * free-spacing mode (flag x).\r\n */\r\nXRegExp.addToken(\r\n    /\\(\\?#[^)]*\\)/,\r\n    getContextualTokenSeparator,\r\n    {leadChar: '('}\r\n);\r\n\r\n/*\r\n * Whitespace and line comments, in free-spacing mode (aka extended mode, flag x) only.\r\n */\r\nXRegExp.addToken(\r\n    /\\s+|#[^\\n]*\\n?/,\r\n    getContextualTokenSeparator,\r\n    {flag: 'x'}\r\n);\r\n\r\n/*\r\n * Dot, in dotall mode (aka singleline mode, flag s) only.\r\n */\r\nXRegExp.addToken(\r\n    /\\./,\r\n    function() {\r\n        return '[\\\\s\\\\S]';\r\n    },\r\n    {\r\n        flag: 's',\r\n        leadChar: '.'\r\n    }\r\n);\r\n\r\n/*\r\n * Named backreference: `\\k<name>`. Backreference names can use the characters A-Z, a-z, 0-9, _,\r\n * and $ only. Also allows numbered backreferences as `\\k<n>`.\r\n */\r\nXRegExp.addToken(\r\n    /\\\\k<([\\w$]+)>/,\r\n    function(match) {\r\n        // Groups with the same name is an error, else would need `lastIndexOf`\r\n        var index = isNaN(match[1]) ? (indexOf(this.captureNames, match[1]) + 1) : +match[1];\r\n        var endIndex = match.index + match[0].length;\r\n        if (!index || index > this.captureNames.length) {\r\n            throw new SyntaxError('Backreference to undefined group ' + match[0]);\r\n        }\r\n        // Keep backreferences separate from subsequent literal numbers. This avoids e.g.\r\n        // inadvertedly changing `(?<n>)\\k<n>1` to `()\\11`.\r\n        return '\\\\' + index + (\r\n            endIndex === match.input.length || isNaN(match.input.charAt(endIndex)) ?\r\n                '' : '(?:)'\r\n        );\r\n    },\r\n    {leadChar: '\\\\'}\r\n);\r\n\r\n/*\r\n * Numbered backreference or octal, plus any following digits: `\\0`, `\\11`, etc. Octals except `\\0`\r\n * not followed by 0-9 and backreferences to unopened capture groups throw an error. Other matches\r\n * are returned unaltered. IE < 9 doesn't support backreferences above `\\99` in regex syntax.\r\n */\r\nXRegExp.addToken(\r\n    /\\\\(\\d+)/,\r\n    function(match, scope) {\r\n        if (\r\n            !(\r\n                scope === defaultScope &&\r\n                /^[1-9]/.test(match[1]) &&\r\n                +match[1] <= this.captureNames.length\r\n            ) &&\r\n            match[1] !== '0'\r\n        ) {\r\n            throw new SyntaxError('Cannot use octal escape or backreference to undefined group ' +\r\n                match[0]);\r\n        }\r\n        return match[0];\r\n    },\r\n    {\r\n        scope: 'all',\r\n        leadChar: '\\\\'\r\n    }\r\n);\r\n\r\n/*\r\n * Named capturing group; match the opening delimiter only: `(?<name>`. Capture names can use the\r\n * characters A-Z, a-z, 0-9, _, and $ only. Names can't be integers. Supports Python-style\r\n * `(?P<name>` as an alternate syntax to avoid issues in some older versions of Opera which natively\r\n * supported the Python-style syntax. Otherwise, XRegExp might treat numbered backreferences to\r\n * Python-style named capture as octals.\r\n */\r\nXRegExp.addToken(\r\n    /\\(\\?P?<([\\w$]+)>/,\r\n    function(match) {\r\n        // Disallow bare integers as names because named backreferences are added to match arrays\r\n        // and therefore numeric properties may lead to incorrect lookups\r\n        if (!isNaN(match[1])) {\r\n            throw new SyntaxError('Cannot use integer as capture name ' + match[0]);\r\n        }\r\n        if (match[1] === 'length' || match[1] === '__proto__') {\r\n            throw new SyntaxError('Cannot use reserved word as capture name ' + match[0]);\r\n        }\r\n        if (indexOf(this.captureNames, match[1]) > -1) {\r\n            throw new SyntaxError('Cannot use same name for multiple groups ' + match[0]);\r\n        }\r\n        this.captureNames.push(match[1]);\r\n        this.hasNamedCapture = true;\r\n        return '(';\r\n    },\r\n    {leadChar: '('}\r\n);\r\n\r\n/*\r\n * Capturing group; match the opening parenthesis only. Required for support of named capturing\r\n * groups. Also adds explicit capture mode (flag n).\r\n */\r\nXRegExp.addToken(\r\n    /\\((?!\\?)/,\r\n    function(match, scope, flags) {\r\n        if (flags.indexOf('n') > -1) {\r\n            return '(?:';\r\n        }\r\n        this.captureNames.push(null);\r\n        return '(';\r\n    },\r\n    {\r\n        optionalFlags: 'n',\r\n        leadChar: '('\r\n    }\r\n);\r\n\r\nmodule.exports = XRegExp;\r\n","// Copyright (c) 2014-2015, hassansin\n//\n//Perl Ref: http://cpansearch.perl.org/src/TIMB/Geo-StreetAddress-US-1.04/US.pm\n\"use strict\";\n\n(function(){\n  var root;\n  root = this;\n  var XRegExp;\n\n  if (typeof require !== \"undefined\"){\n     XRegExp = require('xregexp/src/xregexp.js');\n  }\n  else\n    XRegExp = root.XRegExp;\n\n  var parser = {};\n  var Addr_Match = {};\n\n  var Directional = {\n    north       : \"N\",\n    northeast   : \"NE\",\n    east        : \"E\",\n    southeast   : \"SE\",\n    south       : \"S\",\n    southwest   : \"SW\",\n    west        : \"W\",\n    northwest   : \"NW\",\n  };\n\n  var Street_Type = {\n    allee       : \"aly\",\n    alley       : \"aly\",\n    ally        : \"aly\",\n    anex        : \"anx\",\n    annex       : \"anx\",\n    annx        : \"anx\",\n    arcade      : \"arc\",\n    av          : \"ave\",\n    aven        : \"ave\",\n    avenu       : \"ave\",\n    avenue      : \"ave\",\n    avn         : \"ave\",\n    avnue       : \"ave\",\n    bayoo       : \"byu\",\n    bayou       : \"byu\",\n    beach       : \"bch\",\n    bend        : \"bnd\",\n    bluf        : \"blf\",\n    bluff       : \"blf\",\n    bluffs      : \"blfs\",\n    bot         : \"btm\",\n    bottm       : \"btm\",\n    bottom      : \"btm\",\n    boul        : \"blvd\",\n    boulevard   : \"blvd\",\n    boulv       : \"blvd\",\n    branch      : \"br\",\n    brdge       : \"brg\",\n    bridge      : \"brg\",\n    brnch       : \"br\",\n    brook       : \"brk\",\n    brooks      : \"brks\",\n    burg        : \"bg\",\n    burgs       : \"bgs\",\n    bypa        : \"byp\",\n    bypas       : \"byp\",\n    bypass      : \"byp\",\n    byps        : \"byp\",\n    camp        : \"cp\",\n    canyn       : \"cyn\",\n    canyon      : \"cyn\",\n    cape        : \"cpe\",\n    causeway    : \"cswy\",\n    causway     : \"cswy\",\n    causwa      : \"cswy\",\n    cen         : \"ctr\",\n    cent        : \"ctr\",\n    center      : \"ctr\",\n    centers     : \"ctrs\",\n    centr       : \"ctr\",\n    centre      : \"ctr\",\n    circ        : \"cir\",\n    circl       : \"cir\",\n    circle      : \"cir\",\n    circles     : \"cirs\",\n    ck          : \"crk\",\n    cliff       : \"clf\",\n    cliffs      : \"clfs\",\n    club        : \"clb\",\n    cmp         : \"cp\",\n    cnter       : \"ctr\",\n    cntr        : \"ctr\",\n    cnyn        : \"cyn\",\n    common      : \"cmn\",\n    commons     : \"cmns\",\n    corner      : \"cor\",\n    corners     : \"cors\",\n    course      : \"crse\",\n    court       : \"ct\",\n    courts      : \"cts\",\n    cove        : \"cv\",\n    coves       : \"cvs\",\n    cr          : \"crk\",\n    crcl        : \"cir\",\n    crcle       : \"cir\",\n    crecent     : \"cres\",\n    creek       : \"crk\",\n    crescent    : \"cres\",\n    cresent     : \"cres\",\n    crest       : \"crst\",\n    crossing    : \"xing\",\n    crossroad   : \"xrd\",\n    crossroads  : \"xrds\",\n    crscnt      : \"cres\",\n    crsent      : \"cres\",\n    crsnt       : \"cres\",\n    crssing     : \"xing\",\n    crssng      : \"xing\",\n    crt         : \"ct\",\n    curve       : \"curv\",\n    dale        : \"dl\",\n    dam         : \"dm\",\n    div         : \"dv\",\n    divide      : \"dv\",\n    driv        : \"dr\",\n    drive       : \"dr\",\n    drives      : \"drs\",\n    drv         : \"dr\",\n    dvd         : \"dv\",\n    estate      : \"est\",\n    estates     : \"ests\",\n    exp         : \"expy\",\n    expr        : \"expy\",\n    express     : \"expy\",\n    expressway  : \"expy\",\n    expw        : \"expy\",\n    extension   : \"ext\",\n    extensions  : \"exts\",\n    extn        : \"ext\",\n    extnsn      : \"ext\",\n    fall        : \"fall\",\n    falls       : \"fls\",\n    ferry       : \"fry\",\n    field       : \"fld\",\n    fields      : \"flds\",\n    flat        : \"flt\",\n    flats       : \"flts\",\n    ford        : \"frd\",\n    fords       : \"frds\",\n    forest      : \"frst\",\n    forests     : \"frst\",\n    forg        : \"frg\",\n    forge       : \"frg\",\n    forges      : \"frgs\",\n    fork        : \"frk\",\n    forks       : \"frks\",\n    fort        : \"ft\",\n    freeway     : \"fwy\",\n    freewy      : \"fwy\",\n    frry        : \"fry\",\n    frt         : \"ft\",\n    frway       : \"fwy\",\n    frwy        : \"fwy\",\n    garden      : \"gdn\",\n    gardens     : \"gdns\",\n    gardn       : \"gdn\",\n    gateway     : \"gtwy\",\n    gatewy      : \"gtwy\",\n    gatway      : \"gtwy\",\n    glen        : \"gln\",\n    glens       : \"glns\",\n    grden       : \"gdn\",\n    grdn        : \"gdn\",\n    grdns       : \"gdns\",\n    green       : \"grn\",\n    greens      : \"grns\",\n    grov        : \"grv\",\n    grove       : \"grv\",\n    groves      : \"grvs\",\n    gtway       : \"gtwy\",\n    harb        : \"hbr\",\n    harbor      : \"hbr\",\n    harbors     : \"hbrs\",\n    harbr       : \"hbr\",\n    haven       : \"hvn\",\n    havn        : \"hvn\",\n    height      : \"hts\",\n    heights     : \"hts\",\n    hgts        : \"hts\",\n    highway     : \"hwy\",\n    highwy      : \"hwy\",\n    hill        : \"hl\",\n    hills       : \"hls\",\n    hiway       : \"hwy\",\n    hiwy        : \"hwy\",\n    hllw        : \"holw\",\n    hollow      : \"holw\",\n    hollows     : \"holw\",\n    holws       : \"holw\",\n    hrbor       : \"hbr\",\n    ht          : \"hts\",\n    hway        : \"hwy\",\n    inlet       : \"inlt\",\n    island      : \"is\",\n    islands     : \"iss\",\n    isles       : \"isle\",\n    islnd       : \"is\",\n    islnds      : \"iss\",\n    jction      : \"jct\",\n    jctn        : \"jct\",\n    jctns       : \"jcts\",\n    junction    : \"jct\",\n    junctions   : \"jcts\",\n    junctn      : \"jct\",\n    juncton     : \"jct\",\n    key         : \"ky\",\n    keys        : \"kys\",\n    knol        : \"knl\",\n    knoll       : \"knl\",\n    knolls      : \"knls\",\n    la          : \"ln\",\n    lake        : \"lk\",\n    lakes       : \"lks\",\n    land        : \"land\",\n    landing     : \"lndg\",\n    lane        : \"ln\",\n    lanes       : \"ln\",\n    ldge        : \"ldg\",\n    light       : \"lgt\",\n    lights      : \"lgts\",\n    lndng       : \"lndg\",\n    loaf        : \"lf\",\n    lock        : \"lck\",\n    locks       : \"lcks\",\n    lodg        : \"ldg\",\n    lodge       : \"ldg\",\n    loops       : \"loop\",\n    mall        : \"mall\",\n    manor       : \"mnr\",\n    manors      : \"mnrs\",\n    meadow      : \"mdw\",\n    meadows     : \"mdws\",\n    medows      : \"mdws\",\n    mews        : \"mews\",\n    mill        : \"ml\",\n    mills       : \"mls\",\n    mission     : \"msn\",\n    missn       : \"msn\",\n    mnt         : \"mt\",\n    mntain      : \"mtn\",\n    mntn        : \"mtn\",\n    mntns       : \"mtns\",\n    motorway    : \"mtwy\",\n    mount       : \"mt\",\n    mountain    : \"mtn\",\n    mountains   : \"mtns\",\n    mountin     : \"mtn\",\n    mssn        : \"msn\",\n    mtin        : \"mtn\",\n    neck        : \"nck\",\n    orchard     : \"orch\",\n    orchrd      : \"orch\",\n    overpass    : \"opas\",\n    ovl         : \"oval\",\n    parks       : \"park\",\n    parkway     : \"pkwy\",\n    parkways    : \"pkwy\",\n    parkwy      : \"pkwy\",\n    pass        : \"pass\",\n    passage     : \"psge\",\n    paths       : \"path\",\n    pikes       : \"pike\",\n    pine        : \"pne\",\n    pines       : \"pnes\",\n    pk          : \"park\",\n    pkway       : \"pkwy\",\n    pkwys       : \"pkwy\",\n    pky         : \"pkwy\",\n    place       : \"pl\",\n    plain       : \"pln\",\n    plaines     : \"plns\",\n    plains      : \"plns\",\n    plaza       : \"plz\",\n    plza        : \"plz\",\n    point       : \"pt\",\n    points      : \"pts\",\n    port        : \"prt\",\n    ports       : \"prts\",\n    prairie     : \"pr\",\n    prarie      : \"pr\",\n    prk         : \"park\",\n    prr         : \"pr\",\n    rad         : \"radl\",\n    radial      : \"radl\",\n    radiel      : \"radl\",\n    ranch       : \"rnch\",\n    ranches     : \"rnch\",\n    rapid       : \"rpd\",\n    rapids      : \"rpds\",\n    rdge        : \"rdg\",\n    rest        : \"rst\",\n    ridge       : \"rdg\",\n    ridges      : \"rdgs\",\n    river       : \"riv\",\n    rivr        : \"riv\",\n    rnchs       : \"rnch\",\n    road        : \"rd\",\n    roads       : \"rds\",\n    route       : \"rte\",\n    rvr         : \"riv\",\n    row         : \"row\",\n    rue         : \"rue\",\n    run         : \"run\",\n    shoal       : \"shl\",\n    shoals      : \"shls\",\n    shoar       : \"shr\",\n    shoars      : \"shrs\",\n    shore       : \"shr\",\n    shores      : \"shrs\",\n    skyway      : \"skwy\",\n    spng        : \"spg\",\n    spngs       : \"spgs\",\n    spring      : \"spg\",\n    springs     : \"spgs\",\n    sprng       : \"spg\",\n    sprngs      : \"spgs\",\n    spurs       : \"spur\",\n    sqr         : \"sq\",\n    sqre        : \"sq\",\n    sqrs        : \"sqs\",\n    squ         : \"sq\",\n    square      : \"sq\",\n    squares     : \"sqs\",\n    station     : \"sta\",\n    statn       : \"sta\",\n    stn         : \"sta\",\n    str         : \"st\",\n    strav       : \"stra\",\n    strave      : \"stra\",\n    straven     : \"stra\",\n    stravenue   : \"stra\",\n    stravn      : \"stra\",\n    stream      : \"strm\",\n    street      : \"st\",\n    streets     : \"sts\",\n    streme      : \"strm\",\n    strt        : \"st\",\n    strvn       : \"stra\",\n    strvnue     : \"stra\",\n    sumit       : \"smt\",\n    sumitt      : \"smt\",\n    summit      : \"smt\",\n    terr        : \"ter\",\n    terrace     : \"ter\",\n    throughway  : \"trwy\",\n    tpk         : \"tpke\",\n    tr          : \"trl\",\n    trace       : \"trce\",\n    traces      : \"trce\",\n    track       : \"trak\",\n    tracks      : \"trak\",\n    trafficway  : \"trfy\",\n    trail       : \"trl\",\n    trails      : \"trl\",\n    trk         : \"trak\",\n    trks        : \"trak\",\n    trls        : \"trl\",\n    trnpk       : \"tpke\",\n    trpk        : \"tpke\",\n    tunel       : \"tunl\",\n    tunls       : \"tunl\",\n    tunnel      : \"tunl\",\n    tunnels     : \"tunl\",\n    tunnl       : \"tunl\",\n    turnpike    : \"tpke\",\n    turnpk      : \"tpke\",\n    underpass   : \"upas\",\n    union       : \"un\",\n    unions      : \"uns\",\n    valley      : \"vly\",\n    valleys     : \"vlys\",\n    vally       : \"vly\",\n    vdct        : \"via\",\n    viadct      : \"via\",\n    viaduct     : \"via\",\n    view        : \"vw\",\n    views       : \"vws\",\n    vill        : \"vlg\",\n    villag      : \"vlg\",\n    village     : \"vlg\",\n    villages    : \"vlgs\",\n    ville       : \"vl\",\n    villg       : \"vlg\",\n    villiage    : \"vlg\",\n    vist        : \"vis\",\n    vista       : \"vis\",\n    vlly        : \"vly\",\n    vst         : \"vis\",\n    vsta        : \"vis\",\n    wall        : \"wall\",\n    walks       : \"walk\",\n    well        : \"wl\",\n    wells       : \"wls\",\n    wy          : \"way\",\n  };\n\n  var State_Code = {\n    \"alabama\" : \"AL\",\n    \"alaska\" : \"AK\",\n    \"american samoa\" : \"AS\",\n    \"arizona\" : \"AZ\",\n    \"arkansas\" : \"AR\",\n    \"california\" : \"CA\",\n    \"colorado\" : \"CO\",\n    \"connecticut\" : \"CT\",\n    \"delaware\" : \"DE\",\n    \"district of columbia\" : \"DC\",\n    \"federated states of micronesia\" : \"FM\",\n    \"florida\" : \"FL\",\n    \"georgia\" : \"GA\",\n    \"guam\" : \"GU\",\n    \"hawaii\" : \"HI\",\n    \"idaho\" : \"ID\",\n    \"illinois\" : \"IL\",\n    \"indiana\" : \"IN\",\n    \"iowa\" : \"IA\",\n    \"kansas\" : \"KS\",\n    \"kentucky\" : \"KY\",\n    \"louisiana\" : \"LA\",\n    \"maine\" : \"ME\",\n    \"marshall islands\" : \"MH\",\n    \"maryland\" : \"MD\",\n    \"massachusetts\" : \"MA\",\n    \"michigan\" : \"MI\",\n    \"minnesota\" : \"MN\",\n    \"mississippi\" : \"MS\",\n    \"missouri\" : \"MO\",\n    \"montana\" : \"MT\",\n    \"nebraska\" : \"NE\",\n    \"nevada\" : \"NV\",\n    \"new hampshire\" : \"NH\",\n    \"new jersey\" : \"NJ\",\n    \"new mexico\" : \"NM\",\n    \"new york\" : \"NY\",\n    \"north carolina\" : \"NC\",\n    \"north dakota\" : \"ND\",\n    \"northern mariana islands\" : \"MP\",\n    \"ohio\" : \"OH\",\n    \"oklahoma\" : \"OK\",\n    \"oregon\" : \"OR\",\n    \"palau\" : \"PW\",\n    \"pennsylvania\" : \"PA\",\n    \"puerto rico\" : \"PR\",\n    \"rhode island\" : \"RI\",\n    \"south carolina\" : \"SC\",\n    \"south dakota\" : \"SD\",\n    \"tennessee\" : \"TN\",\n    \"texas\" : \"TX\",\n    \"utah\" : \"UT\",\n    \"vermont\" : \"VT\",\n    \"virgin islands\" : \"VI\",\n    \"virginia\" : \"VA\",\n    \"washington\" : \"WA\",\n    \"west virginia\" : \"WV\",\n    \"wisconsin\" : \"WI\",\n    \"wyoming\" : \"WY\",\n  };\n\n  var Direction_Code;\n  var initialized = false;\n\n  var Normalize_Map = {\n    prefix: Directional,\n    prefix1: Directional,\n    prefix2: Directional,\n    suffix: Directional,\n    suffix1: Directional,\n    suffix2: Directional,\n    type: Street_Type,\n    type1: Street_Type,\n    type2: Street_Type,\n    state: State_Code,\n  }\n\n  function capitalize(s){\n    return s && s[0].toUpperCase() + s.slice(1);\n  }\n  function keys(o){\n    return Object.keys(o);\n  }\n  function values(o){\n    var v = [];\n    keys(o).forEach(function(k){\n      v.push(o[k]);\n    });\n    return v;\n  }\n  function each(o,fn){\n    keys(o).forEach(function(k){\n      fn(o[k],k);\n    });\n  }\n  function invert(o){\n    var o1= {};\n    keys(o).forEach(function(k){\n      o1[o[k]] = k;\n    });\n    return o1;\n  }\n  function flatten(o){\n    return keys(o).concat(values(o));\n  }\n  function lazyInit(){\n    if (initialized) {\n      return;\n    }\n    initialized = true;\n\n    Direction_Code = invert(Directional);\n\n    /*\n    var Street_Type_Match = {};\n    each(Street_Type,function(v,k){ Street_Type_Match[v] = XRegExp.escape(v) });\n    each(Street_Type,function(v,k){ Street_Type_Match[v] = Street_Type_Match[v] + \"|\" + XRegExp.escape(k); });\n    each(Street_Type_Match,function(v,k){ Street_Type_Match[k] = new RegExp( '\\\\b(?:' +  Street_Type_Match[k]  + ')\\\\b', 'i') });\n    */\n\n    Addr_Match = {\n      type    : flatten(Street_Type).sort().filter(function(v,i,arr){return arr.indexOf(v)===i }).join('|'),\n      fraction : '\\\\d+\\\\/\\\\d+',\n      state   : '\\\\b(?:' + keys(State_Code).concat(values(State_Code)).map(XRegExp.escape).join('|') + ')\\\\b',\n      direct  : values(Directional).sort(function(a,b){return a.length < b.length}).reduce(function(prev,curr){return prev.concat([XRegExp.escape(curr.replace(/\\w/g,'$&.')),curr])},keys(Directional)).join('|'),\n      dircode : keys(Direction_Code).join(\"|\"),\n      zip     : '(?<zip>\\\\d{5})[- ]?(?<plus4>\\\\d{4})?',\n      corner  : '(?:\\\\band\\\\b|\\\\bat\\\\b|&|\\\\@)',\n    };\n\n    Addr_Match.number = '(?<number>(\\\\d+-?\\\\d*)|([N|S|E|W]\\\\d{1,3}[N|S|E|W]\\\\d{1,6}))(?=\\\\D)';\n\n    Addr_Match.street = '                                       \\n\\\n      (?:                                                       \\n\\\n        (?:(?<street_0>'+Addr_Match.direct+')\\\\W+               \\n\\\n           (?<type_0>'+Addr_Match.type+')\\\\b                    \\n\\\n        )                                                       \\n\\\n        |                                                       \\n\\\n        (?:(?<prefix_0>'+Addr_Match.direct+')\\\\W+)?             \\n\\\n        (?:                                                     \\n\\\n          (?<street_1>[^,]*\\\\d)                                 \\n\\\n          (?:[^\\\\w,]*(?<suffix_1>'+Addr_Match.direct+')\\\\b)     \\n\\\n          |                                                     \\n\\\n          (?<street_2>[^,]+)                                    \\n\\\n          (?:[^\\\\w,]+(?<type_2>'+Addr_Match.type+')\\\\b)         \\n\\\n          (?:[^\\\\w,]+(?<suffix_2>'+Addr_Match.direct+')\\\\b)?    \\n\\\n          |                                                     \\n\\\n          (?<street_3>[^,]+?)                                   \\n\\\n          (?:[^\\\\w,]+(?<type_3>'+Addr_Match.type+')\\\\b)?        \\n\\\n          (?:[^\\\\w,]+(?<suffix_3>'+Addr_Match.direct+')\\\\b)?    \\n\\\n        )                                                       \\n\\\n      )';\n\n    Addr_Match.po_box = 'p\\\\W*(?:[om]|ost\\\\ ?office)\\\\W*b(?:ox)?'\n\n    Addr_Match.sec_unit_type_numbered = '             \\n\\\n      (?<sec_unit_type_1>su?i?te                      \\n\\\n        |'+Addr_Match.po_box+'                        \\n\\\n        |(?:ap|dep)(?:ar)?t(?:me?nt)?                 \\n\\\n        |ro*m                                         \\n\\\n        |flo*r?                                       \\n\\\n        |uni?t                                        \\n\\\n        |bu?i?ldi?n?g                                 \\n\\\n        |ha?nga?r                                     \\n\\\n        |lo?t                                         \\n\\\n        |pier                                         \\n\\\n        |slip                                         \\n\\\n        |spa?ce?                                      \\n\\\n        |stop                                         \\n\\\n        |tra?i?le?r                                   \\n\\\n        |box)(?![a-z]                                 \\n\\\n      )                                               \\n\\\n      ';\n\n    Addr_Match.sec_unit_type_unnumbered = '           \\n\\\n      (?<sec_unit_type_2>ba?se?me?n?t                 \\n\\\n        |fro?nt                                       \\n\\\n        |lo?bby                                       \\n\\\n        |lowe?r                                       \\n\\\n        |off?i?ce?                                    \\n\\\n        |pe?n?t?ho?u?s?e?                             \\n\\\n        |rear                                         \\n\\\n        |side                                         \\n\\\n        |uppe?r                                       \\n\\\n      )\\\\b';\n\n    Addr_Match.sec_unit = '                               \\n\\\n      (?:                               #fix3             \\n\\\n        (?:                             #fix1             \\n\\\n          (?:                                             \\n\\\n            (?:'+Addr_Match.sec_unit_type_numbered+'\\\\W*) \\n\\\n            |(?<sec_unit_type_3>\\\\#)\\\\W*                  \\n\\\n          )                                               \\n\\\n          (?<sec_unit_num_1>[\\\\w-]+)                      \\n\\\n        )                                                 \\n\\\n        |                                                 \\n\\\n        '+Addr_Match.sec_unit_type_unnumbered+'           \\n\\\n      )';\n\n    Addr_Match.city_and_state = '                       \\n\\\n      (?:                                               \\n\\\n        (?<city>[^\\\\d,]+?)\\\\W+                          \\n\\\n        (?<state>'+Addr_Match.state+')                  \\n\\\n      )                                                 \\n\\\n      ';\n\n    Addr_Match.place = '                                \\n\\\n      (?:'+Addr_Match.city_and_state+'\\\\W*)?            \\n\\\n      (?:'+Addr_Match.zip+')?                           \\n\\\n      ';\n\n    Addr_Match.address = XRegExp('                      \\n\\\n      ^                                                 \\n\\\n      [^\\\\w\\\\#]*                                        \\n\\\n      ('+Addr_Match.number+')\\\\W*                       \\n\\\n      (?:'+Addr_Match.fraction+'\\\\W*)?                  \\n\\\n         '+Addr_Match.street+'\\\\W+                      \\n\\\n      (?:'+Addr_Match.sec_unit+')?\\\\W*          #fix2   \\n\\\n         '+Addr_Match.place+'                           \\n\\\n      \\\\W*$','ix');\n\n    var sep = '(?:\\\\W+|$)'; // no support for \\Z\n\n    Addr_Match.informal_address = XRegExp('                   \\n\\\n      ^                                                       \\n\\\n      \\\\s*                                                    \\n\\\n      (?:'+Addr_Match.sec_unit+sep+')?                        \\n\\\n      (?:'+Addr_Match.number+')?\\\\W*                          \\n\\\n      (?:'+Addr_Match.fraction+'\\\\W*)?                        \\n\\\n         '+Addr_Match.street+sep+'                            \\n\\\n      (?:'+Addr_Match.sec_unit.replace(/_\\d/g,'$&1')+sep+')?  \\n\\\n      (?:'+Addr_Match.place+')?                               \\n\\\n      ','ix');\n\n    Addr_Match.po_address = XRegExp('                         \\n\\\n      ^                                                       \\n\\\n      \\\\s*                                                    \\n\\\n      (?:'+Addr_Match.sec_unit.replace(/_\\d/g,'$&1')+sep+')?  \\n\\\n      (?:'+Addr_Match.place+')?                               \\n\\\n      ','ix');\n\n    Addr_Match.intersection = XRegExp('                     \\n\\\n      ^\\\\W*                                                 \\n\\\n      '+Addr_Match.street.replace(/_\\d/g,'1$&')+'\\\\W*?      \\n\\\n      \\\\s+'+Addr_Match.corner+'\\\\s+                         \\n\\\n      '+Addr_Match.street.replace(/_\\d/g,'2$&') + '\\\\W+     \\n\\\n      '+Addr_Match.place+'\\\\W*$','ix');\n  }\n  parser.normalize_address = function(parts){\n    lazyInit();\n    if(!parts)\n      return null;\n    var parsed = {};\n\n    Object.keys(parts).forEach(function(k){\n      if(['input','index'].indexOf(k) !== -1 || isFinite(k))\n        return;\n      var key = isFinite(k.split('_').pop())? k.split('_').slice(0,-1).join('_'): k ;\n      if(parts[k])\n        parsed[key] = parts[k].trim().replace(/^\\s+|\\s+$|[^\\w\\s\\-#&]/g, '');\n    });\n    each(Normalize_Map, function(map,key) {\n      if(parsed[key] && map[parsed[key].toLowerCase()]) {\n        parsed[key] = map[parsed[key].toLowerCase()];\n      }\n    });\n\n    ['type', 'type1', 'type2'].forEach(function(key){\n      if(key in parsed)\n        parsed[key] = parsed[key].charAt(0).toUpperCase() + parsed[key].slice(1).toLowerCase();\n    });\n\n    if(parsed.city){\n      parsed.city = XRegExp.replace(parsed.city,\n        XRegExp('^(?<dircode>'+Addr_Match.dircode+')\\\\s+(?=\\\\S)','ix'),\n        function(match){\n          return capitalize(Direction_Code[match.dircode.toUpperCase()]) +' ';\n        });\n    }\n    return parsed;\n  };\n\n  parser.parseAddress = function(address){\n    lazyInit();\n    var parts = XRegExp.exec(address,Addr_Match.address);\n    return parser.normalize_address(parts);\n  };\n  parser.parseInformalAddress = function(address){\n    lazyInit();\n    var parts = XRegExp.exec(address,Addr_Match.informal_address);\n    return parser.normalize_address(parts);\n  }; \n  parser.parsePoAddress = function(address){\n    lazyInit();\n    var parts = XRegExp.exec(address,Addr_Match.po_address);\n    return parser.normalize_address(parts);\n  };\n  parser.parseLocation = function(address){\n    lazyInit();\n    if (XRegExp(Addr_Match.corner,'xi').test(address)) {\n        return parser.parseIntersection(address);\n    }\n    if (XRegExp('^'+Addr_Match.po_box,'xi').test(address)){\n      return parser.parsePoAddress(address);\n    }\n    return parser.parseAddress(address)\n        || parser.parseInformalAddress(address);\n  };\n  parser.parseIntersection = function(address){\n    lazyInit();\n    var parts = XRegExp.exec(address,Addr_Match.intersection);\n    parts = parser.normalize_address(parts);\n    if(parts){\n        parts.type2 = parts.type2 || '';\n        parts.type1 = parts.type1 || '';\n        if (parts.type2 && !parts.type1 || (parts.type1 === parts.type2)) {\n            var type = parts.type2;\n            type = XRegExp.replace(type,/s\\W*$/,'');\n            if (XRegExp('^'+Addr_Match.type+'$','ix').test(type)) {\n                parts.type1 = parts.type2 = type;\n            }\n        }\n    }\n\n    return parts;\n  };\n\n  // AMD / RequireJS\n  if (typeof define !== 'undefined' && define.amd) {\n      define([], function () {\n          return parser;\n      });\n  }\n  // Node.js\n  else if (typeof exports !== \"undefined\") {\n    exports.parseIntersection = parser.parseIntersection;\n    exports.parseLocation = parser.parseLocation;\n    exports.parseInformalAddress = parser.parseInformalAddress;\n    exports.parseAddress = parser.parseAddress;\n  }\n  // included directly via <script> tag\n  else {\n      root.addressParser = root.addressParser || parser;\n  }\n\n}());\n","import { StateContext } from '@app/State';\r\nimport { AppSettingsContext } from '@app/State/Context';\r\nimport { navigate as rootNavigate, toPhoneNumber } from '@shared/Common';\r\nimport { ErrorCodes, pages } from '@shared/Constants';\r\nimport { useNavigateWithParams } from '@shared/Hooks';\r\nimport { parseLocation } from 'parse-address';\r\nimport React, { useContext, useMemo } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { Path } from '..';\r\n\r\nexport function useUnsupportedProperty() {\r\n    const { state } = useContext(StateContext),\r\n        appSettings = useContext(AppSettingsContext),\r\n        navigate = useNavigateWithParams(),\r\n        params = useParams<{ product: string }>(),\r\n        address = React.useMemo(() => parseLocation(state.quoteRequest?.Address || ''), [state.quoteRequest?.Address]),\r\n        supportPhone = toPhoneNumber(appSettings?.customerSupportPhoneNumber || ''),\r\n        isMarketing = useMemo(\r\n            () => state.quoteError?.ErrorCode === ErrorCodes.AgentUnlicensed,\r\n            [state.quoteError?.ErrorCode]\r\n        );\r\n\r\n    return {\r\n        navigateToNewQuote: () => navigate(Path.ProductLanding, { product: params.product }),\r\n        navigateToHistory: () => rootNavigate(pages.History()),\r\n        errorMessage: state.quoteError?.ErrorMessage || `We're not able to quote this property`,\r\n        subErrorMessage: `Unfortunately, we're not able to quote this property.`,\r\n        phoneNumber: supportPhone,\r\n        isTexasDisclosureRequired: !isMarketing && address?.state === 'TX',\r\n        isMarketing,\r\n    };\r\n}\r\n","import { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { pages } from '@shared/Constants';\r\nimport { Button, Link, Paragraph } from '@webkit/index';\r\nimport { Path } from '..';\r\nimport { useUnsupportedProperty } from './hook';\r\nimport './style.scss';\r\n\r\nexport const UnsupportedProperty = {\r\n    path: Path.UnsupportedProperty,\r\n    element: () => <Component />,\r\n};\r\n\r\nexport const Component = () => {\r\n    const {\r\n        navigateToNewQuote,\r\n        navigateToHistory,\r\n        errorMessage,\r\n        subErrorMessage,\r\n        phoneNumber,\r\n        isTexasDisclosureRequired,\r\n        isMarketing,\r\n    } = useUnsupportedProperty();\r\n\r\n    return (\r\n        <Step id='unsupported-property' title='Unsupported Property' className='error-view !max-w-prose mx-auto'>\r\n            <StepHeader\r\n                title={errorMessage}\r\n                description={\r\n                    <Paragraph>\r\n                        <span id='unsupported-property-error-description'>{subErrorMessage}</span>\r\n                    </Paragraph>\r\n                }\r\n            />\r\n\r\n            <div className='px-[25px]'>\r\n                {isTexasDisclosureRequired && (\r\n                    <a\r\n                        id='texas-cd1-link'\r\n                        className='important-document-link'\r\n                        href='/api/iso-forms/name/Texas CD-1'\r\n                        target='_blank'\r\n                        rel='noopener noreferrer'\r\n                    >\r\n                        View Texas Use of Credit Information Disclosure\r\n                    </a>\r\n                )}\r\n\r\n                <div className='inline-flex gap-2 items-center w-full mx-auto'>\r\n                    <Button id='new-quote' onClick={navigateToNewQuote}>\r\n                        New Quote\r\n                    </Button>\r\n\r\n                    <Button id='quote-history' onClick={navigateToHistory} isSecondary>\r\n                        Quote History\r\n                    </Button>\r\n                </div>\r\n            </div>\r\n\r\n            <div className='px-[25px]'>\r\n                <hr className='my-3 text-brand-gray-600' />\r\n                <Paragraph size='sm'>\r\n                    {isMarketing ? (\r\n                        <>\r\n                            Please contact our marketing department at{' '}\r\n                            <Link href={`tel:${phoneNumber}`}>{phoneNumber}</Link> for more information.\r\n                        </>\r\n                    ) : (\r\n                        <>\r\n                            See <Link href={pages.ContactUs}>options to contact us</Link> or call us at{' '}\r\n                            <Link href={`tel:${phoneNumber}`}>{phoneNumber}</Link>.\r\n                        </>\r\n                    )}\r\n                </Paragraph>\r\n            </div>\r\n        </Step>\r\n    );\r\n};\r\n","import { Row } from '@app/ProductComparison/Row';\r\nimport { TileCell } from '@app/ProductComparison/TileCell';\r\nimport { getRenewalTermFromPolicyNumber, getUpcomingRenewalEffectiveDateRange } from '@shared/Common';\r\nimport { useClassName } from '@shared/Hooks';\r\nimport { ComparisonQuoteModel } from '@shared/Models';\r\nimport './style.scss';\r\n\r\nexport type UrqOverviewProps = {\r\n    quote: ComparisonQuoteModel;\r\n    lastDayToChange: string;\r\n    isAfterLastDayToChange: boolean;\r\n};\r\n\r\nexport function UrqOverview({ quote, lastDayToChange, isAfterLastDayToChange }: UrqOverviewProps) {\r\n    const { UpcomingRenewalImsPolicyNumber, EffectiveDate } = quote,\r\n        urqPolicyTerm = UpcomingRenewalImsPolicyNumber\r\n            ? getRenewalTermFromPolicyNumber(UpcomingRenewalImsPolicyNumber)\r\n            : '-',\r\n        urqEffectiveDateRange = EffectiveDate ? getUpcomingRenewalEffectiveDateRange(new Date(EffectiveDate)) : '-';\r\n\r\n    const lastDayClassName = useClassName('last-day-to-change', [isAfterLastDayToChange ? 'warning' : '']);\r\n\r\n    return (\r\n        <>\r\n            <Row sidebar={'URQ Policy Term'}>\r\n                <TileCell tileIndex={0} className={'overview-cell'}>\r\n                    {urqPolicyTerm}\r\n                </TileCell>\r\n            </Row>\r\n            <Row sidebar={'Current Policy Number'}>\r\n                <TileCell tileIndex={0} className={'overview-cell'}>\r\n                    {UpcomingRenewalImsPolicyNumber || '-'}\r\n                </TileCell>\r\n            </Row>\r\n            <Row sidebar={'URQ Effective Date Range'}>\r\n                <TileCell tileIndex={0} className={'overview-cell'}>\r\n                    {urqEffectiveDateRange}\r\n                </TileCell>\r\n            </Row>\r\n            <Row sidebar={'URQ Last Day to Make Changes'}>\r\n                <TileCell tileIndex={0} className={'overview-cell'}>\r\n                    <div className={lastDayClassName}>{lastDayToChange}</div>\r\n                </TileCell>\r\n            </Row>\r\n        </>\r\n    );\r\n}\r\n","import { Logo } from '@app/ProductComparison/Logo';\r\nimport { Price } from '@app/ProductComparison/Price';\r\nimport { CarrierCode } from '@business/CommonSets';\r\nimport { ComparisonQuoteModel } from '@shared/Models';\r\nimport './style.scss';\r\n\r\nexport type UrqTileHeaderProps = {\r\n    quote: ComparisonQuoteModel;\r\n};\r\n\r\nexport function UrqTileHeader({ quote }: UrqTileHeaderProps) {\r\n    const { GrossAnnualPayment } = quote,\r\n        carrierCode = CarrierCode.parse(quote.CarrierCode);\r\n\r\n    return (\r\n        <>\r\n            <div className={'urq-tile-header'}>\r\n                <Logo src={carrierCode.logoPath} alt={carrierCode.displayName} />\r\n                <Price id={quote.QuoteId} amount={GrossAnnualPayment} />\r\n            </div>\r\n            <div id='urq-warning' className={'urq-warning'}>\r\n                <strong>Warning:</strong> This Upcoming Renewal Quote is for internal use only and used to track\r\n                property and/or policy changes for renewal. This quote is not to be shared with external parties, as\r\n                rates may fluctuate prior to issuance.\r\n            </div>\r\n        </>\r\n    );\r\n}\r\n","import { loadComparisonQuotes } from '@app/Api/ComparisonQuotes';\r\nimport { StateContext } from '@app/State';\r\nimport { ProductLine } from '@business/CommonSets';\r\nimport { simpleDateFormat } from '@shared/Constants';\r\nimport { useAsyncEffect } from '@shared/Hooks';\r\nimport { ComparisonQuotesModel } from '@shared/Models';\r\nimport dayjs from 'dayjs';\r\nimport { useContext, useState } from 'react';\r\nimport { useParams } from 'react-router-dom-v5-compat';\r\nimport { UrlParams } from '..';\r\n\r\nexport function useUpcomingRenewalQuote() {\r\n    const [isInitializing, setInitializing] = useState<boolean>(true),\r\n        application = useContext(StateContext),\r\n        params = useParams(),\r\n        { quoteId, product } = params,\r\n        productLine = ProductLine.parse(product),\r\n        { comparisonModel, elementDescriptions } = application.state,\r\n        urqQuote = comparisonModel?.Quotes.find(quote => quote.QuoteId === quoteId),\r\n        urqLastDayToChange = urqQuote?.UpcomingRenewalLastDayToMakeChanges || '',\r\n        isAfterLastDayToChange = urqQuote?.IsAfterUpcomingRenewalLastDayToMakeChanges || false;\r\n\r\n    const lastDayToChange = dayjs(urqLastDayToChange).utc(),\r\n        formattedLastDayToChange = lastDayToChange.format(simpleDateFormat),\r\n        quote = comparisonModel?.Quotes.find(({ QuoteId }) => QuoteId === quoteId);\r\n\r\n    useAsyncEffect(async () => {\r\n        try {\r\n            setInitializing(true);\r\n            await loadComparisonQuotes(application, params as UrlParams);\r\n        } catch (error) {\r\n            application.update(state => (state.error = error));\r\n        } finally {\r\n            setInitializing(false);\r\n        }\r\n    }, []);\r\n\r\n    return {\r\n        isInitializing,\r\n        application,\r\n        comparisonModel,\r\n        elementDescriptions,\r\n        formattedLastDayToChange,\r\n        isAfterLastDayToChange,\r\n        productLine,\r\n        updateComparisonModel,\r\n        quote,\r\n    };\r\n\r\n    function updateComparisonModel(comparisonModel: ComparisonQuotesModel) {\r\n        application.update(state => {\r\n            state.comparisonModel = comparisonModel;\r\n        });\r\n    }\r\n}\r\n","import { RouteLoadingSpinner } from '@app/Components/RouteLoadingSpinner';\r\nimport { ViewWrapper } from '@app/Components/ViewWrapper';\r\nimport { ColorScheme } from '@app/ProductComparison/ColorScheme';\r\nimport { ProductComparisonQuote } from '@app/ProductComparison/Quote';\r\nimport { Path } from '@app/Views';\r\nimport { UrqOverview } from '@app/Views/UpcomingRenewalQuote/UrqOverview';\r\nimport { UrqTileHeader } from '@app/Views/UpcomingRenewalQuote/UrqTileHeader';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport dayjs from 'dayjs';\r\nimport utc from 'dayjs/plugin/utc';\r\nimport { useUpcomingRenewalQuote } from './hook';\r\nimport './style.scss';\r\n\r\ndayjs.extend(utc);\r\n\r\nexport const UpcomingRenewalQuote = {\r\n    path: Path.UpcomingRenewalQuote,\r\n    auth: AccessRole.Admin,\r\n    element: <Component />,\r\n};\r\n\r\nexport function Component() {\r\n    const {\r\n        isInitializing,\r\n        application,\r\n        comparisonModel,\r\n        elementDescriptions,\r\n        formattedLastDayToChange,\r\n        isAfterLastDayToChange,\r\n        productLine,\r\n        updateComparisonModel,\r\n        quote,\r\n    } = useUpcomingRenewalQuote();\r\n\r\n    const { state } = application;\r\n\r\n    return (\r\n        <div className='urq-app'>\r\n            <ViewWrapper title='Upcoming Renewal Quote' colorScheme={ColorScheme.Urq} includeTopBuffer>\r\n                {isInitializing ? (\r\n                    <RouteLoadingSpinner />\r\n                ) : (\r\n                    <ProductComparisonQuote\r\n                        comparisonModel={comparisonModel}\r\n                        visibleQuoteIds={state.visibleQuoteIds}\r\n                        elementDescriptions={elementDescriptions}\r\n                        updateComparisonModel={updateComparisonModel}\r\n                        tileHeader={quote => <UrqTileHeader quote={quote} />}\r\n                        disableRatingTypeAlert\r\n                        overViewSection={getOverviewSection}\r\n                        disableElements={isAfterLastDayToChange}\r\n                        hideResetQuotes={isAfterLastDayToChange}\r\n                        isUrq\r\n                        isSingleQuote\r\n                        productLine={productLine}\r\n                    />\r\n                )}\r\n            </ViewWrapper>\r\n        </div>\r\n    );\r\n\r\n    function getOverviewSection() {\r\n        if (!quote) {\r\n            return <></>;\r\n        }\r\n\r\n        return (\r\n            <UrqOverview\r\n                quote={quote}\r\n                lastDayToChange={formattedLastDayToChange}\r\n                isAfterLastDayToChange={isAfterLastDayToChange}\r\n            />\r\n        );\r\n    }\r\n}\r\n","import { putProperty } from '@api/HOApi';\r\nimport { createProperty } from '@app/Api/Property';\r\nimport { StateContext } from '@app/State';\r\nimport { getMessageFromError, toKebabCase } from '@shared/Common';\r\nimport {\r\n    ToastContext,\r\n    useAsyncEffect,\r\n    useCreateOrGetQuotes,\r\n    usePersistentFormReducer,\r\n    useRedirect,\r\n} from '@shared/Hooks';\r\nimport { Address, PropertyData, QuoteCreateRequestModel } from '@shared/Models';\r\nimport { Rules, Value } from '@webkit/index';\r\nimport { FormEvent, useContext, useState } from 'react';\r\nimport { useNavigate, useParams } from 'react-router-dom-v5-compat';\r\nimport { Path, UrlParams } from '..';\r\n\r\ntype FormType = {\r\n    zip: Value<string>;\r\n};\r\n\r\nexport function useZipCodeSuggestions() {\r\n    const application = useContext(StateContext),\r\n        params = useParams() as UrlParams,\r\n        redirect = useRedirect(),\r\n        navigate = useNavigate(),\r\n        toast = useContext(ToastContext),\r\n        { createOrGetQuotes } = useCreateOrGetQuotes(),\r\n        [isLoading, setLoading] = useState<boolean>(false),\r\n        address = application.state.address,\r\n        suggestions = application.state.createAddress.zipCodeSuggestions;\r\n\r\n    const formReducer = usePersistentFormReducer<FormType>('zip-code-suggestions', {\r\n        zip: new Value<string>('zip code', '', [Rules.required()]),\r\n    });\r\n\r\n    useAsyncEffect(() => {\r\n        if (application.state.address && application.state.createAddress.zipCodeSuggestions) return;\r\n\r\n        if (params.product) redirect(Path.ProductLanding, { product: params.product || 'homeowner' });\r\n        else redirect(Path.AddressManagement);\r\n    }, []);\r\n\r\n    return {\r\n        isLoading,\r\n        formReducer,\r\n        submit,\r\n        state: application.state,\r\n        address,\r\n        suggestions,\r\n        navigate,\r\n    };\r\n\r\n    async function submit(e: FormEvent<HTMLFormElement>) {\r\n        e.preventDefault();\r\n\r\n        if (isLoading) return;\r\n\r\n        try {\r\n            setLoading(true);\r\n\r\n            const address = { ...application.state.address } as Address,\r\n                context = application.state.createAddress.context,\r\n                addressKey = application.state.createAddress.addressKey;\r\n\r\n            if (!address) throw new Error('Address is null.');\r\n\r\n            address.Zip = formReducer.form.zip.content;\r\n\r\n            let propertyData: PropertyData;\r\n            if (context === 'CreateAddress') {\r\n                propertyData = await createProperty(address);\r\n\r\n                const quoteRequest = { ...(application.state.quoteRequest || {}) } as QuoteCreateRequestModel;\r\n                quoteRequest.AddressKey = propertyData.AddressKey;\r\n                quoteRequest.Address = propertyData.FullAddress;\r\n                // Ensure the flag saying this was a flood quote created from the homeowner page is set to false.\r\n                quoteRequest.FromHomeowner = false;\r\n\r\n                await createOrGetQuotes(quoteRequest);\r\n\r\n                await application.update(state => {\r\n                    state.quoteRequest = quoteRequest;\r\n                    state.address = address;\r\n                });\r\n            } else {\r\n                if (context === 'EditAddress') {\r\n                    propertyData = {\r\n                        Street1: address.Street1,\r\n                        City: address.City,\r\n                        StateCode: address.StateCode,\r\n                        Zip: address.Zip,\r\n                        LivingSpace: address.LivingSpace,\r\n                        FullAddress: Address.toString(address),\r\n                        IsSingleFamilyResidence: false,\r\n                        AddressKey: addressKey,\r\n                    };\r\n\r\n                    await putProperty(propertyData);\r\n                } else {\r\n                    propertyData = await createProperty(address);\r\n\r\n                    await application.update(state => {\r\n                        state.createAddress.addressKey = propertyData.AddressKey;\r\n                        state.address = address;\r\n                    });\r\n                }\r\n\r\n                redirect(Path.PreciseLocationNoQuote, {\r\n                    address: encodeURIComponent(toKebabCase(propertyData.FullAddress, true)),\r\n                });\r\n            }\r\n        } catch (e) {\r\n            toast.error(await getMessageFromError(e));\r\n        } finally {\r\n            setLoading(false);\r\n        }\r\n    }\r\n}\r\n","import { PrimaryRouteButton, SecondaryBackButton, StepButtons } from '@app/Components/Buttons';\r\nimport { Step } from '@app/Components/Step';\r\nimport { StepHeader } from '@app/Components/StepHeader';\r\nimport { StepTileRow, StepTileRowSeparator, StepTileText } from '@app/Components/StepTile';\r\nimport { AccessRole } from '@shared/Constants';\r\nimport { Path } from '..';\r\nimport { useZipCodeSuggestions } from './hook';\r\nimport './style.scss';\r\n\r\nexport const ZipCodeSuggestions = {\r\n    path: Path.ZipCodeSuggestions,\r\n    element: <ZipCodeSuggestionsComponent />,\r\n    shouldRevalidate: () => false,\r\n};\r\n\r\nexport const ZipCodeSuggestionsNoQuote = {\r\n    path: Path.ZipCodeSuggestionsNoQuote,\r\n    auth: AccessRole.Agent,\r\n    element: <ZipCodeSuggestionsComponent />,\r\n};\r\n\r\nexport function ZipCodeSuggestionsComponent() {\r\n    const { isLoading, formReducer, submit, state, address, suggestions, navigate } = useZipCodeSuggestions();\r\n\r\n    const { form, set, valid } = formReducer;\r\n\r\n    return (\r\n        <Step id='zip-code-suggestions' title='Zip Code Confirmation' className='zip-code-suggestions'>\r\n            <form method='post' onSubmit={submit}>\r\n                <input type='hidden' value={form.zip.content || ''} name='zip' />\r\n\r\n                <StepHeader title='Zip Code Confirmation' />\r\n\r\n                <StepTileRow>\r\n                    <StepTileText>\r\n                        Our records indicate the provided zip code is outside {address?.City}, {address?.StateCode}. A\r\n                        quote against this property may still be bound, but any resulting policy will be subject to\r\n                        review.\r\n                    </StepTileText>\r\n                </StepTileRow>\r\n\r\n                <StepTileRow>\r\n                    <StepTileText>\r\n                        The zip codes below match {address?.City}, {address?.StateCode}. Please select one or continue\r\n                        with your original zip code.\r\n                    </StepTileText>\r\n                </StepTileRow>\r\n\r\n                <StepTileRow>\r\n                    <div className='suggested-zip-container'>\r\n                        <Zip\r\n                            zip={state.createAddress.originalZipCode || ''}\r\n                            isSelected={form.zip.content === state.createAddress.originalZipCode}\r\n                            onSelect={zip => set('zip', zip)}\r\n                        />\r\n                    </div>\r\n                </StepTileRow>\r\n\r\n                <StepTileRowSeparator />\r\n\r\n                <StepTileRow>\r\n                    <div className='suggested-zip-container'>\r\n                        {(suggestions?.SuggestedZips || []).map(zip => (\r\n                            <Zip\r\n                                key={zip}\r\n                                zip={zip}\r\n                                isSelected={form.zip.content === zip}\r\n                                onSelect={zip => set('zip', zip)}\r\n                            />\r\n                        ))}\r\n                    </div>\r\n                </StepTileRow>\r\n\r\n                <StepTileRowSeparator />\r\n\r\n                <StepButtons\r\n                    positive={\r\n                        <PrimaryRouteButton\r\n                            id='next'\r\n                            type='submit'\r\n                            label='Next'\r\n                            loading={isLoading}\r\n                            disabled={!valid()}\r\n                        />\r\n                    }\r\n                    negative={<SecondaryBackButton id='back' label='Back' onClick={() => navigate(-1)} />}\r\n                />\r\n            </form>\r\n        </Step>\r\n    );\r\n}\r\n\r\nconst Zip = ({ zip, isSelected, onSelect }: { zip: string; isSelected: boolean; onSelect: (zip: string) => void }) => (\r\n    <span className={`zip ${isSelected ? 'selected' : ''}`} onClick={() => onSelect(zip)}>\r\n        {zip}\r\n    </span>\r\n);\r\n","import { AddressManagement } from '@app/Views/AddressManagement';\r\nimport { AdjusterQueueManagement } from '@app/Views/AdjusterQueueManagement';\r\nimport { AgencyDashboard } from '@app/Views/AgencyDashboard';\r\nimport { BindingRequirements } from '@app/Views/BindingRequirements';\r\nimport { CatCodes } from '@app/Views/CatCodes/App';\r\nimport { ClaimsDashboard } from '@app/Views/ClaimsDashboard';\r\nimport { CommercialLanding } from '@app/Views/CommercialLanding';\r\nimport { CreateAddress, CreateAddressNoQuote, EditAddress } from '@app/Views/CreateAddress/routeConfig';\r\nimport { Hover } from '@app/Views/Hover/App';\r\nimport { IsoForms } from '@app/Views/IsoForms';\r\nimport { MakeAPayment } from '@app/Views/MakeAPayment';\r\nimport { RenewalEAndSOffer } from '@app/Views/RenewalEAndSOffer';\r\nimport { RequestEAndSQuote } from '@app/Views/RequestEAndSQuote';\r\nimport { UnderwritingGuidelines } from '@app/Views/UnderwritingGuidelines';\r\nimport { AuthorizeRedirectType } from '@shared/Hooks/AuthorizeRedirect';\r\nimport { ToastActions } from '@shared/Hooks/Toast';\r\nimport { ReactElement } from 'react';\r\nimport { ActionFunction, LoaderFunction, ShouldRevalidateFunction } from 'react-router-dom-v5-compat';\r\nimport { Path } from '.';\r\nimport { AppSettings } from '../Models';\r\nimport { ApplicationState } from '../State';\r\nimport { CompareCustomize } from './CompareCustomize';\r\nimport { ConfirmQuote } from './ConfirmQuote';\r\nimport { ConfirmSingleFamilyResidence } from './ConfirmSingleFamilyResidence';\r\nimport { Customize } from './Customize';\r\nimport { DeepLinkQuote } from './DeepLinkQuote';\r\nimport { Landing } from './Landing';\r\nimport { LoginAs } from './LoginAs';\r\nimport { MissingPropertyData } from './MissingPropertyData';\r\nimport { PreciseLocation, PreciseLocationNoQuote } from './PreciseLocation';\r\nimport { QuoteList } from './QuoteList';\r\nimport { Redirect } from './Redirect';\r\nimport { SignUp } from './SignUp/Base';\r\nimport { SignUpEntry } from './SignUp/Entry';\r\nimport { UnsupportedProperty } from './UnsupportedProperty';\r\nimport { UpcomingRenewalQuote } from './UpcomingRenewalQuote';\r\nimport { ZipCodeSuggestions, ZipCodeSuggestionsNoQuote } from './ZipCodeSuggestions';\r\n\r\nexport type SwyfftRouteLoaderFunction = (\r\n    application: ApplicationState,\r\n    toast: ToastActions,\r\n    appSettings: AppSettings | null\r\n) => LoaderFunction;\r\n\r\nexport type SwyfftRouteActionFunction = (\r\n    application: ApplicationState,\r\n    toast: ToastActions,\r\n    appSettings: AppSettings | null\r\n) => ActionFunction;\r\n\r\nexport type SwyfftRouteObject = {\r\n    // Required. The string used to generate a routable path. Can include parameters like \":product\" as placeholders.\r\n    path: string;\r\n\r\n    // Required. The element to render when this route is matched.\r\n    element: ReactElement | (() => ReactElement);\r\n\r\n    // Optional. An authorization method that returns true when the current user is allowed to view the element rendered by this route.\r\n    auth?: AuthorizeRedirectType;\r\n\r\n    // Optional. A function to call before rerunning a loader after an action has been performed. Return false to prevent calling loader again.\r\n    shouldRevalidate?: ShouldRevalidateFunction;\r\n\r\n    // Optional: Flag to indicate no transition wrapper should be used when rendering the element.\r\n    noTransition?: boolean;\r\n\r\n    // Optional: Flag to hide the site navbar.\r\n    hideNavbar?: boolean;\r\n\r\n    // Optional: Flag to hide the site footer.\r\n    hideFooter?: boolean;\r\n\r\n    // Optional. A list of child elements to render within the current route components `<Outlet />`.\r\n    children?: SwyfftRouteObject[];\r\n};\r\n\r\nexport const routes: SwyfftRouteObject[] = [\r\n    AddressManagement,\r\n    AdjusterQueueManagement,\r\n    AgencyDashboard,\r\n    BindingRequirements,\r\n    CatCodes,\r\n    ClaimsDashboard,\r\n    CommercialLanding,\r\n    CompareCustomize,\r\n    ConfirmQuote,\r\n    ConfirmSingleFamilyResidence,\r\n    Customize,\r\n    CreateAddress,\r\n    CreateAddressNoQuote,\r\n    DeepLinkQuote,\r\n    EditAddress,\r\n    Hover,\r\n    IsoForms,\r\n    Landing(Path.HomeownerLanding),\r\n    Landing(Path.ProductLanding),\r\n    LoginAs,\r\n    MakeAPayment,\r\n    MissingPropertyData,\r\n    PreciseLocation,\r\n    PreciseLocationNoQuote,\r\n    QuoteList,\r\n    RenewalEAndSOffer,\r\n    Redirect(Path.Shop, 'https://swyfft.axomo.com/'),\r\n    RequestEAndSQuote,\r\n    SignUp,\r\n    SignUpEntry,\r\n    UnderwritingGuidelines,\r\n    UnsupportedProperty,\r\n    UpcomingRenewalQuote,\r\n    ZipCodeSuggestions,\r\n    ZipCodeSuggestionsNoQuote,\r\n\r\n    {\r\n        path: '*',\r\n        element: <div style={{ color: 'white' }}>No route found.</div>,\r\n    },\r\n];\r\n","import { Route } from '@app/App/Route';\r\nimport { Transition } from '@app/App/transition';\r\nimport { AppUpdatePrompt } from '@app/Components/AppUpdatePrompt';\r\nimport { ErrorElement } from '@app/Error';\r\nimport { ApplicationState, StateContext, useApplicationState } from '@app/State';\r\nimport { routes, SwyfftRouteObject } from '@app/Views/routes';\r\nimport { HubChannel } from '@business/CommonSets/HubChannel';\r\nimport { useAsyncEffect } from '@shared/Hooks';\r\nimport { ToastContext, useToast } from '@shared/Hooks/Toast';\r\nimport Hub from '@shared/Hubs/Hub';\r\nimport { useEffect, useMemo, useRef, useState } from 'react';\r\nimport 'react-loading-skeleton/dist/skeleton.css';\r\nimport { createBrowserRouter, Outlet, RouteObject, RouterProvider } from 'react-router-dom-v5-compat';\r\nimport { AppSettings } from '../Models';\r\nimport { AppSettingsContext } from '../State/Context';\r\nimport './style.scss';\r\n\r\nexport const App = () => {\r\n    const reducer = useApplicationState(),\r\n        reducerRef = useRef<ApplicationState>(reducer),\r\n        toast = useToast(),\r\n        [appSettings, setAppSettings] = useState<AppSettings>(window.appSettings);\r\n\r\n    useAsyncEffect(async () => {\r\n        try {\r\n            await Hub.on<AppSettings>(HubChannel.AppSettings, setAppSettings);\r\n        } catch (e) {\r\n            console.error('Failed to connect to web socket.', e);\r\n        }\r\n    }, []);\r\n\r\n    const router = useMemo(\r\n        () =>\r\n            createBrowserRouter([\r\n                {\r\n                    path: '/',\r\n                    element: <Outlet />,\r\n                    errorElement: (\r\n                        <Route>\r\n                            <ErrorElement />\r\n                        </Route>\r\n                    ),\r\n                    children: routes.map(routeMapper),\r\n                },\r\n            ]),\r\n        []\r\n    );\r\n\r\n    // Keep the reducerRef up to date with the latest reducer state\r\n    useEffect(() => {\r\n        reducerRef.current = reducer;\r\n    }, [reducer.state]);\r\n\r\n    // Show any warnings that are pushed to the state in the toast component\r\n    useAsyncEffect(async () => {\r\n        if (reducer.state.warning) {\r\n            await toast.warning(reducer.state.warning);\r\n        }\r\n    }, [reducer.state.warning]);\r\n\r\n    // Do not save users scroll position when transitioning between routes (i.e. render with scroll at the top of the screen)\r\n    useEffect(() => {\r\n        history.scrollRestoration = 'manual';\r\n    }, []);\r\n\r\n    return (\r\n        <div className='root'>\r\n            <div className='root-content'>\r\n                <AppSettingsContext.Provider value={appSettings}>\r\n                    <StateContext.Provider value={reducer}>\r\n                        <ToastContext.Provider value={toast}>\r\n                            <AppUpdatePrompt />\r\n                            <RouterProvider router={router} />\r\n                        </ToastContext.Provider>\r\n                    </StateContext.Provider>\r\n                </AppSettingsContext.Provider>\r\n            </div>\r\n        </div>\r\n    );\r\n\r\n    function routeMapper(route: SwyfftRouteObject): RouteObject {\r\n        return {\r\n            ...route,\r\n            element: (\r\n                <Route authorizeRedirect={route.auth} hideNavbar={route.hideNavbar} hideFooter={route.hideFooter}>\r\n                    {/* The transition component needs to be inside createBrowserRouter (instead of RouteWithSettings component) for gsap animation context. */}\r\n                    {route.noTransition ? (\r\n                        <>{route.element instanceof Function ? route.element() : route.element}</>\r\n                    ) : (\r\n                        <Transition>{route.element}</Transition>\r\n                    )}\r\n                </Route>\r\n            ),\r\n            children: (route.children || []).map(routeMapper),\r\n        };\r\n    }\r\n};\r\n","'use strict';\r\nimport { renderComponent } from '@shared/Common';\r\nimport { App } from './App';\r\n\r\nrenderComponent(<App />);"],"names":["_ElementGroupName","name","displayName","__publicField","onFeatures","onPropertyCoverages","onDeductibles","onAdditionalCoverages","onConstructionRiskCharacteristics","onAgents","onAdmin","onDefault","ElementGroupName","all","parseOrDefault","value","normalized","e","parse","result","parsePhoneNumberWithError","_normalizeArguments","normalizeArguments","text","options","metadata","parsePhoneNumberWithError_","withMetadataArgument","_parsePhoneNumberWithError","dayjs","customParseFormat","isSameOrAfter","afterWithString","date","inclusive","error","valueAsDate","decimal","minSelected","minCount","item","$bb77f239b46e8c72$export$3274cf84b703fff","collator","$325a3faab7a68acd$export$a16aca283550c30d","startsWith","$21ck9$useCallback","string","substring","endsWith","contains","scan","sliceLen","slice","$21ck9$useMemo","$02cb4c75c506befe$exports","args","formatter","$568b8163f1e56faf$exports","$87581c0202d106b8$exports","$a10a0369f5433ed1$exports","$bfd288727d5cb166$exports","$ca177778f9a74e3c$exports","$9b5aa79ef84beb6c$exports","$57968e8209de2557$exports","$60690790bf4c1c6a$exports","$1101246e8c7d9357$exports","$6404b5cb5b241730$exports","$dfeafa702e92e31f$exports","$2d125e0b34676352$exports","$ea029611d7634059$exports","$77f075bb86ad7091$exports","$6e87462e84907983$exports","$9246f2c6edc6b232$exports","$e587accc6c0a434c$exports","$03a1900e7400b5ab$exports","$1387676441be6cf6$exports","$17e82ebf0f8ab91f$exports","$2f5377d3471630e5$exports","$dee9868b6fa95ffe$exports","$f8b2e63637cbb5a6$exports","$46a885db3b44ea95$exports","$50d8a8f0afa9dee5$exports","$2867ee6173245507$exports","$0631b65beeb09b50$exports","$65fc749265dcd686$exports","$69ba655c7853c08e$exports","$a79794784d61577c$exports","$c2845791417ebaf4$exports","$29b642d0025cc7a4$exports","$cd36dd33f9d46936$exports","$de5926a92e8ebc5b$exports","$hlgbr$arAEmodulejs","$hlgbr$bgBGmodulejs","$hlgbr$csCZmodulejs","$hlgbr$daDKmodulejs","$hlgbr$deDEmodulejs","$hlgbr$elGRmodulejs","$hlgbr$enUSmodulejs","$hlgbr$esESmodulejs","$hlgbr$etEEmodulejs","$hlgbr$fiFImodulejs","$hlgbr$frFRmodulejs","$hlgbr$heILmodulejs","$hlgbr$hrHRmodulejs","$hlgbr$huHUmodulejs","$hlgbr$itITmodulejs","$hlgbr$jaJPmodulejs","$hlgbr$koKRmodulejs","$hlgbr$ltLTmodulejs","$hlgbr$lvLVmodulejs","$hlgbr$nbNOmodulejs","$hlgbr$nlNLmodulejs","$hlgbr$plPLmodulejs","$hlgbr$ptBRmodulejs","$hlgbr$ptPTmodulejs","$hlgbr$roROmodulejs","$hlgbr$ruRUmodulejs","$hlgbr$skSKmodulejs","$hlgbr$slSImodulejs","$hlgbr$srSPmodulejs","$hlgbr$svSEmodulejs","$hlgbr$trTRmodulejs","$hlgbr$ukUAmodulejs","$hlgbr$zhCNmodulejs","$hlgbr$zhTWmodulejs","$c0398ad35c3639b7$exports","$7af657c4165927c3$exports","$d95d4da6d531ab81$exports","$24ebda9c775dca17$exports","$743e0dfca6cab1e9$exports","$a2f41026e05f1c84$exports","$43b800e97c901737$exports","$442f5f6ac211e29f$exports","$dff280acfeb2d8ac$exports","$51608325613944d7$exports","$c4a1b1eabeaa87be$exports","$8c74815cdee18d1b$exports","$fd0e9ef6a7fe0ec9$exports","$a89a74a39eba465a$exports","$edc7c66594a0ae8a$exports","$f1ab51510712db52$exports","$f9b672d9b82fa3d6$exports","$a385f3910feda499$exports","$4f1bde932c441789$exports","$914a51a8a594d5be$exports","$89aaf803103bb500$exports","$c685891476dbaaca$exports","$885879b9b10c2959$exports","$6b39616688a51692$exports","$f26362aed63f47e2$exports","$06cbade644558bf0$exports","$0a391ff68f9d59b1$exports","$8193cf0e649c7928$exports","$f398debcce5a5c55$exports","$9e9fef000aa4c013$exports","$c016c8183bbe3d68$exports","$ca4f6c8462244e62$exports","$2d9960c02ccac927$exports","$f1b682a4c8c5631c$exports","$2cbb7ca666678a14$exports","$5FSX7$arAEmodulejs","$5FSX7$bgBGmodulejs","$5FSX7$csCZmodulejs","$5FSX7$daDKmodulejs","$5FSX7$deDEmodulejs","$5FSX7$elGRmodulejs","$5FSX7$enUSmodulejs","$5FSX7$esESmodulejs","$5FSX7$etEEmodulejs","$5FSX7$fiFImodulejs","$5FSX7$frFRmodulejs","$5FSX7$heILmodulejs","$5FSX7$hrHRmodulejs","$5FSX7$huHUmodulejs","$5FSX7$itITmodulejs","$5FSX7$jaJPmodulejs","$5FSX7$koKRmodulejs","$5FSX7$ltLTmodulejs","$5FSX7$lvLVmodulejs","$5FSX7$nbNOmodulejs","$5FSX7$nlNLmodulejs","$5FSX7$plPLmodulejs","$5FSX7$ptBRmodulejs","$5FSX7$ptPTmodulejs","$5FSX7$roROmodulejs","$5FSX7$ruRUmodulejs","$5FSX7$skSKmodulejs","$5FSX7$slSImodulejs","$5FSX7$srSPmodulejs","$5FSX7$svSEmodulejs","$5FSX7$trTRmodulejs","$5FSX7$ukUAmodulejs","$5FSX7$zhCNmodulejs","$5FSX7$zhTWmodulejs","$parcel$interopDefault","a","$168583247155ddda$export$dc9c12ed27dd1b49","props","state","ref","type","isDisabled","trigger","menuTriggerId","$czs6v$useId","triggerProps","overlayProps","$czs6v$useOverlayTrigger","onKeyDown","stringFormatter","$czs6v$useLocalizedStringFormatter","$czs6v$intlStringsmodulejs","longPressProps","$czs6v$useLongPress","pressProps","$c350ade66beef0af$export$8c18d1b4f7232bbf","buttonRef","popoverRef","inputRef","listBoxRef","keyboardDelegate","layoutDelegate","shouldFocusWrap","isReadOnly","$dShfP$useLocalizedStringFormatter","$dShfP$intlStringsmodulejs","menuTriggerProps","menuProps","$dShfP$useMenuTrigger","$dShfP$listData","collection","disabledKeys","delegate","$dShfP$useMemo","$dShfP$ListKeyboardDelegate","collectionProps","$dShfP$useSelectableCollection","router","$dShfP$useRouter","collectionItem","onBlur","_popoverRef_current","blurFromButton","blurIntoPopover","onFocus","isInvalid","validationErrors","validationDetails","labelProps","inputProps","descriptionProps","errorMessageProps","$dShfP$useTextField","$dShfP$chain","$dShfP$privateValidationStateProp","onPress","onPressStart","triggerLabelProps","$dShfP$useLabels","listBoxProps","lastEventTime","$dShfP$useRef","onTouchEnd","rect","touch","centerX","centerY","focusedItem","_focusedItem_parentKey","sectionKey","_state_selectionManager_focusedKey","itemKey","lastSection","lastItem","$dShfP$useEffect","$dShfP$isAppleDevice","isSelected","section","sectionTitle","announcement","$dShfP$getChildNodes","$dShfP$announce","optionCount","$dShfP$getItemCount","lastSize","lastOpen","didOpenWithoutFocusedItem","lastSelectedKey","optionText","$dShfP$ariaHideOutside","$dShfP$mergeProps","$dShfP$getItemId","$884aeceb3d67f00f$export$37b65e5b5444d35c","$0d5c49892c1215da$export$37b0961d2f4751e2","children","ariaLabel","ariaLabelledby","hasChildren","hasAriaLabel","checked","onChange","isPressed","$5jJ3f$usePress","isLabelPressed","focusableProps","$5jJ3f$useFocusable","$5jJ3f$mergeProps","interactions","domProps","$5jJ3f$filterDOMProps","tabIndex","descriptionId","errorMessageId","validationBehavior","$5jJ3f$useFormReset","$5jJ3f$useFormValidation","$430f30ed08ec25fa$export$62b9571f283ff5c2","isRequired","orientation","direction","$czmJy$useLocale","fieldProps","$czmJy$useField","$czmJy$filterDOMProps","focusWithinProps","$czmJy$useFocusWithin","_props_onBlur","nextDir","walker","$czmJy$getFocusableTreeWalker","nextElem","groupName","$czmJy$useId","$czmJy$mergeProps","$a0d645289fe9b86b$export$e7f05e985daf4b5f","_props_defaultSelectedKey","selectedKey","setSelectedKey","$eBozH$useControlledState","selectedKeys","$eBozH$useMemo","selectionManager","$e72dd72e1c76a225$export$2f645645f7bca764","keys","_keys_values_next_value","key","selectedItem","$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e","_collection_getItem","_collection_getItem1","defaultFilter","menuTrigger","allowsEmptyCollection","allowsCustomValue","shouldCloseOnBlur","showAllItems","setShowAllItems","$49BJP$useState","isFocused","setFocusedState","focusStrategy","setFocusStrategy","onSelectionChange","resetInputValue","closeMenu","_props_items","$49BJP$useSingleSelectListState","_props_defaultInputValue","_ref","inputValue","setInputValue","$49BJP$useControlledState","originalCollection","filteredCollection","$49BJP$useMemo","$a9e7382a7d111cb5$var$filterCollection","lastCollection","setLastCollection","menuOpenTrigger","$49BJP$useRef","triggerState","$49BJP$useOverlayTriggerState","open","displayAllItems","toggle","toggleMenu","updateLastCollection","$49BJP$useCallback","lastValue","setLastValue","_collection_getItem_textValue","itemText","_props_selectedKey","_ref1","lastSelectedKeyText","$49BJP$useEffect","selectedItemText","validation","$49BJP$useFormValidationState","revert","commitCustomValue","commitSelection","commitValue","commit","valueOnFocus","setFocused","displayedCollection","filter","$49BJP$ListCollection","$a9e7382a7d111cb5$var$filterNodes","nodes","filteredNode","node","filtered","$49BJP$getChildNodes","$0d86e9c8f07f9a7b$export$79c0c687a5963b0a","opts","dispatch","cursor","getKey","filterText","index","values","$0d86e9c8f07f9a7b$var$insert","keySet","items","selection","toIndex","copy","indices","b","$0d86e9c8f07f9a7b$var$move","newValue","moves","from","i","j","move","$f86e6c1ec7da6ebb$var$reducer","data","action","_action_filterText","_action_sortDescriptor","_action_selectedKeys","_action_filterText1","_action_sortDescriptor1","_action_filterText2","_action_selectedKeys1","_action_sortDescriptor2","_action_filterText3","$f86e6c1ec7da6ebb$export$bc3384a35de93d66","load","sort","initialSelectedKeys","initialSortDescriptor","initialFilterText","$fh1mr$useReducer","dispatchFetch","fn","abortController","previousFilterText","response","_response_filterText","didDispatchInitialFetch","$fh1mr$useRef","$fh1mr$useEffect","sortDescriptor","$be2ea0343af54212$export$d14e1352e21f4a16","initialItems","getChildren","tree","setItems","$3pPTd$useState","buildTree","nodeMap","setSelectedKeys","map","parentKey","updateTree","update","originalMap","newNode","deleteNode","addNode","nextParent","c","child","newNodes","newMap","parentNode","newItems","prevMap","newTree","toParentKey","movedNode","oldKey","oldNode","$a54cdc5c1942b639$var$instance","$a54cdc5c1942b639$var$i","$a54cdc5c1942b639$export$bca9d026f8e704eb","$l55kx$useMemo","_props_defaultValue","selectedValue","setSelected","$l55kx$useControlledState","lastFocusedValue","setLastFocusedValue","$l55kx$useState","$l55kx$useFormValidationState","setSelectedValue","$05ca4cd7c4a5a999$export$863faf230ee2118a","idx","expandedKeys","visit","last","$875d6693e12af071$export$728d6ba534403756","onExpandedChange","setExpandedKeys","$75HV2$useControlledState","selectionState","$75HV2$useMultipleSelectionState","$75HV2$useMemo","$75HV2$useCollection","$75HV2$useCallback","$75HV2$useEffect","$875d6693e12af071$var$toggleKey","$75HV2$SelectionManager","set","res","$d01f2c01039c0eec$export$d414ccceff7063c3","$cP7hC$createContext","$d01f2c01039c0eec$export$c02625b26074192c","$d01f2c01039c0eec$var$ComboBox","$64fa3d84918910a7$export$29f1550f4b0d4415","content","$cP7hC$useMemo","$cP7hC$react","$eed445e0843c11d0$export$7ff8f37d2d81a48d","$cP7hC$CollectionBuilder","$d01f2c01039c0eec$var$ComboBoxInner","formValue","formValidationBehavior","$64fa3d84918910a7$export$fabf2dc03a41866e","$d3e0e05bdfcf66bd$export$c24727297075ec6a","_props_validationBehavior","$cP7hC$useFilter","$cP7hC$useComboBoxState","$cP7hC$useRef","labelRef","label","$64fa3d84918910a7$export$9d4c57ee4c6ffdd8","buttonProps","$cP7hC$useComboBox","$64fa3d84918910a7$export$ef03459518577ad4","menuWidth","setMenuWidth","$cP7hC$useState","onResize","$cP7hC$useCallback","_buttonRef_current","buttonRect","inputRect","minX","maxX","$cP7hC$useResizeObserver","renderPropsState","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","DOMProps","$cP7hC$filterDOMProps","_state_selectedKey","$64fa3d84918910a7$export$2881499e37b75b9a","$01b77f81d0f07f68$export$75b6ee27786ba447","$d2b4bc8c273e7be6$export$24d547caef80ccd1","$3985021b0ad6602f$export$37fb8590cf2c088c","$de32f1b87079253c$export$d2f961adcb0afbe","$07b14b47974efb58$export$9b9a0cd73afb7ca4","$eed445e0843c11d0$export$7c5906fe4f1f2af2","$514c0188e459b4c0$export$9afb8bc826b033ea","$a049562f99e7db0e$export$f9c6924e160136d1","$ee014567cb39d3f0$export$ff05c3ac10437e03","$d01f2c01039c0eec$export$72b9695b8216309a","$cP7hC$forwardRef","$b6c3ddc6086f204d$export$a79eda4ff50e30b6","$3sixo$createContext","$b6c3ddc6086f204d$export$b118023277d4a5c3","$b6c3ddc6086f204d$export$29d84393af70866c","$b6c3ddc6086f204d$var$RadioGroup","$3sixo$useRadioGroupState","radioGroupProps","$3sixo$useRadioGroup","$3sixo$react","$b6c3ddc6086f204d$var$Radio","userProvidedInputRef","otherProps","$3sixo$useObjectRef","$3sixo$mergeRefs","$3sixo$useRadio","isFocusVisible","focusProps","$3sixo$useFocusRing","interactionDisabled","hoverProps","isHovered","$3sixo$useHover","$3sixo$filterDOMProps","$3sixo$mergeProps","$3sixo$VisuallyHidden","$b6c3ddc6086f204d$export$a98f0dcb43a68a25","$3sixo$forwardRef","$b6c3ddc6086f204d$export$d7b12c4107be0d61","_interopRequireDefault","require$$0","Assignment","_createSvgIcon","_jsxRuntime","require$$2","BrowserUpdatedOutlined","ContentCopyOutlined","EditOutlined","Folder","HelpOutlineRounded","KeyboardArrowDownOutlined","KeyboardArrowRightOutlined","Person","SaveOutlined","SearchOutlined","Store","useAutoCompleteInternal","getItemId","suggestions","getItemText","onSelect","onTextChange","isComboBox","isAutoComplete","selectedRef","useRef","triggerRef","list","useAsyncList","signal","selectionMatchesFilterText","useEffect","blurInputOnEscapeKeyUp","clearComboBoxText","event","_a","AutoCompleteInternal","id","getItemComponent","placeholder","autoComplete","autoFocus","jsxs","ComboBox","jsx","FormLabel","TextInput","KeyboardArrowDownIcon","Popover","ListBox","ListBoxItemWithComponent","ListBoxItem","AutoComplete","styles","tv","ButtonText","CategoryItem","CloseIcon","useCategorySelect","design","useContext","DesignContext","listData","treeData","useTreeData","treeState","useTreeState","isOpen","setIsOpen","useState","triggerWidth","setTriggerWidth","isCategoryExpanded","toggleCategoryExpanded","isItemSelected","categoryKey","SelectItem","CheckCircleIcon","CategorySelect","DialogTrigger","ButtonInput","Section","Confirm","Modal","Paragraph","Button","Drawer","onClose","isDismissable","isKeyboardDismissable","anchor","modalBaseClasses","modalEnteringDirectionClass","modalExitingDirectionClass","modalClasses","handleOnClose","Overlay","Dialog","RadioGroup","AriaRadioGroup","Tooltip","PriorityHighIcon","Radio","Fragment","ViewProgressTrackerContext","createContext","ViewProgressTracker","location","delay","paths","useMemo","useViewProgressTracker","path","pathIndex","p","locationIndex","delayedPosition","setDelayedPosition","getPosition","ViewProgressItem","icon","position","isLast","CheckIcon","_leaveRenders","_enterRenders","areChildrenDifferent","oldChildren","newChildren","React","modes","callHook","element","cb","_element$props","leaveRenders","current","changeState","ENTERING","_ref2","enterRenders","_ref3","ENTERED","_ref4","SwitchTransition","_React$Component","_inheritsLoose","_this","_len","_key","status","_proto","EXITING","_this$props","mode","_this$state","component","TransitionGroupContext","useApplicationState","initial","InitialState","setState","useStateCallback","prev","setPrev","updater","resolve","newState","produce","draft","s","initialState","setStateCallback","useCallback","callback","useRedirect","navigate","useNavigateWithParams","params","reloadDocument","Common.navigate","getPath","useCreateOrGetQuotes","StateContext","useParams","redirect","createOrGetQuotes","quoteRequest","newQuoteRequest","productLine","ProductLine","product","quoteId","quoteCount","createOrGetQuotesByProduct","address","toKebabCase","code","isAtLeastAgent","Path","ErrorCodes","missingPropertyData","getQuotePath","useImmutableState","currentState","clearForm","usePersistentFormReducer","formKey","formReducer","useFormReducer","form","save","stored","useQueryString","search","query","acc","pair","buildYear","validateBuildYear","commercialValidationParameters","useAuthorizeRedirect","handleAuthorizeRedirect","isAuthorized","pages","AccessRole","isAdmin","isLimitedAgentUser","Auth","check","Route","authorizeRedirect","hideNavbar","hideFooter","appSettings","AppSettingsContext","Navbar","Footer","_assertThisInitialized","self","subClass","superClass","_config","_defaults","_suppressOverwrites","_reverting","_context","_bigNum","_tinyNum","_2PI","_HALF_PI","_gsID","_sqrt","_cos","_sin","_isString","_isFunction","_isNumber","_isUndefined","_isObject","_isNotFalse","_windowExists","_isFuncOrString","_isTypedArray","_isArray","_strictNumExp","_numExp","_numWithUnitExp","_complexStringNumExp","_relExp","_delimitedValueExp","_unitExp","_globalTimeline","_win","_coreInitted","_doc","_globals","_installScope","_coreReady","_install","scope","_merge","gsap","_missingPlugin","property","_warn","message","suppress","_addGlobal","obj","_emptyFunc","_startAtRevertConfig","_revertConfigNoKill","_revertConfig","_reservedProps","_lazyTweens","_lazyLookup","_lastRenderedFrame","_plugins","_effects","_nextGCFrame","_harnessPlugins","_callbackNames","_harness","targets","target","harnessPlugin","GSCache","_getCache","toArray","_getProperty","v","_forEachName","names","func","_round","_roundPrecise","_parseRelative","start","operator","end","_arrayContainsAny","toSearch","toFind","l","_lazyRender","tween","_lazySafeRender","animation","time","suppressEvents","force","_numericIfPossible","_passThrough","_setDefaults","defaults","_setKeyframeDefaults","excludeDuration","base","toMerge","_mergeDeep","_copyExcluding","excluding","_inheritDefaults","vars","parent","_arraysMatch","a1","a2","match","_addLinkedListItem","firstProp","lastProp","sortBy","t","_removeLinkedListItem","next","_removeFromParent","onlyIfParentHasAutoRemove","_uncache","_recacheAncestors","_rewindStartAt","totalTime","_hasNoPausedAncestors","_elapsedCycleDuration","_animationCycle","tTime","cycleDuration","whole","_parentToChildTotalTime","parentTime","_setEnd","_alignPlayhead","_postAddChecks","timeline","_clamp","_addToTimeline","skipChecks","_parsePosition","_isFromOrFromStart","_scrollTrigger","_attemptInitTween","_initTween","_ticker","_parentPlayheadIsBeforeStart","_renderZeroDurationTween","prevRatio","ratio","repeatDelay","pt","iteration","prevIteration","_callback","_findNextPauseTween","prevTime","_setDuration","duration","skipUncache","leavePlayhead","repeat","dur","totalProgress","_onUpdateTotalDuration","Timeline","_zeroPosition","percentAnimation","labels","recent","clippedDuration","offset","isPercent","_createTweenType","isLegacy","varsIndex","irVars","Tween","_conditionalReturn","min","max","getUnit","clamp","_slice","_isArrayLike","nonEmpty","_flatten","ar","leaveStrings","accumulator","_accumulator","_wake","selector","el","shuffle","distribute","ease","_parseEase","cache","isDecimal","ratios","axis","ratioX","ratioY","distances","originX","originY","x","y","d","wrapAt","_invertEase","_roundModifier","raw","n","snap","snapTo","isArray","radius","is2D","closest","dx","dy","random","roundingIncrement","returnFunction","pipe","functions","f","unitize","unit","normalize","mapRange","_wrapArray","wrapper","wrap","range","wrapYoyo","total","_replaceRandom","nums","inMin","inMax","outMin","outMax","inRange","outRange","interpolate","progress","mutate","isString","master","interpolators","il","_addPropTween","_renderPropTweens","_getLabelInDirection","fromTime","backward","distance","executeLazyFirst","prevContext","context","_interrupt","_quickTween","_registerPluginQueue","_createPlugin","config","isFunc","Plugin","instanceDefaults","_killPropTweensOf","_addPluginModifier","statics","_getSetter","PropTween","_255","_colorLookup","_hue","h","m1","m2","splitColor","toHSL","forceAlpha","g","wasHSL","_colorOrderData","_colorExp","_formatColors","orderMatchData","colors","shell","color","_hslExp","_colorStringFilter","combined","_tickerActive","_getTime","_lagThreshold","_adjustedLag","_startTime","_lastUpdate","_gap","_nextTime","_listeners","_id","_req","_raf","_self","_delta","_i","_tick","elapsed","manual","overlap","frame","fps","threshold","adjustedLag","_fps","once","prioritize","_easeMap","_customEaseExp","_quotesExp","_parseObjectInString","split","val","parsedVal","_valueInParentheses","close","nested","_configEaseFromString","_propagateYoyoEase","isYoyo","defaultEase","_insertEase","easeIn","easeOut","easeInOut","lowercaseName","_easeInOutFromOut","_configElastic","amplitude","period","p1","p2","p3","_configBack","overshoot","power","n1","n2","n3","steps","immediateStart","harness","Animation","_totalTime","includeRepeats","wrapRepeats","prevIsReverting","rawTime","includeDelay","atTime","onFulfilled","_resolve","_then","_Animation","_proto2","fromVars","toVars","stagger","onCompleteAll","onCompleteAllParams","tDur","crossingStart","prevPaused","pauseTween","timeScale","prevStart","yoyo","rewinding","doesWrap","adjustedTime","_this2","tweens","timelines","ignoreBeforeTime","animations","_totalTime2","onlyActive","_overwritingTween","parsedTargets","isGlobalTime","tl","endTime","_vars","startAt","_onStart","onStartParams","immediateRender","initted","fromPosition","toPosition","afterTime","beforeTime","amount","adjustLabels","soft","includeLabels","_addComplexStringPropTween","prop","setter","stringFilter","funcParam","_renderComplexString","matchIndex","startNums","endNum","chunk","startNum","hasRandom","modifier","optional","currentValue","parsedStart","_setterFuncWithParam","_setterFunc","_setterPlain","_forceAllPropTweens","_renderBoolean","_renderPlain","_processVars","_parseFuncOrString","_checkPlugin","plugin","ptLookup","lazy","onUpdate","runBackwards","yoyoEase","keyframes","autoRevert","prevStartAt","fullTargets","autoOverwrite","cleanVars","hasPriority","gsData","harnessVars","overwritten","_sortPropTweensByPriority","_updatePropTweens","startIsRelative","skipRecursion","ptCache","rootPT","lookup","_addAliasesToVars","propertyAliases","aliases","_parseKeyframe","allProps","easeEach","_staggerTweenProps","_staggerPropsToSkip","_Animation2","skipInherit","_this3","_this3$vars","overwrite","scrollTrigger","curTarget","staggerFunc","staggerVarsToMerge","kf","_proto3","isNegative","killingTargets","propTweenLookup","firstPT","overwrittenProps","curLookup","curOverwriteProps","_setterAttribute","hasNonDependentRemaining","_setterWithModifier","pt2","first","change","renderer","priority","_proto4","_media","_emptyArray","_lastMediaTime","_contextID","_dispatch","_onMediaChange","matches","queries","conditions","anyMatch","toggled","Context","_proto5","prevSelector","matchMedia","_this4","o","MatchMedia","_proto6","cond","mq","active","_gsap","_len2","_key2","uncache","getter","format","setters","_merge2","effect","plugins","extendTimeline","pluginName","includeDelayedCalls","found","toAdd","_getPluginPropTween","_addModifiers","modifiers","_buildModifierPlugin","temp","_docElement","_pluginInitted","_tempDiv","_recentSetterPlugin","_transformProps","_RAD2DEG","_DEG2RAD","_atan2","_capsExp","_horizontalExp","_complexExp","_propertyAliases","_renderCSSProp","_renderPropWithEnd","_renderCSSPropWithBeginning","_renderRoundedCSSProp","_renderNonTweeningValue","_renderNonTweeningValueOnlyAtEnd","_setterCSSStyle","_setterCSSProp","_setterTransform","_setterScale","_setterScaleWithRender","_setterTransformWithRender","_transformProp","_transformOriginProp","_saveStyle","isNotCSS","style","_get","_removeIndependentTransforms","_revertStyle","_getStyleSaver","properties","saver","_supports3D","_createElement","ns","_getComputedProperty","skipPrefixFallback","cs","_checkPropPrefix","_prefixes","preferPrefix","_initCore","_getBBoxHack","swapIfPossible","svg","oldParent","oldSibling","oldCSS","bbox","_getAttributeFallbacks","attributesArray","_getBBox","bounds","_isSVG","_removeProperty","first2Chars","_addNonTweeningPT","beginning","onlySetAtEnd","_nonConvertibleUnits","_nonStandardLayouts","_convertToUnit","curValue","curUnit","horizontal","isRootSVG","measureProperty","toPixels","toPercent","px","isSVG","_parseTransform","_firstTwoOnly","_specialProps","_tweenComplexCSSString","startValues","startValue","endValue","endUnit","startUnit","endValues","_keywordToPercent","_convertKeywordsToPercentages","_renderClearProps","clearTransforms","_identity2DMatrix","_rotationalProperties","_isNullTransform","_getComputedTransformMatrixAsArray","matrixString","_getMatrix","force2D","matrix","nextSibling","addedToDOM","_applySVGOrigin","origin","originIsAbsolute","smooth","matrixArray","pluginToAddPropTweensTo","xOriginOld","yOriginOld","xOffsetOld","yOffsetOld","tx","ty","originSplit","xOrigin","yOrigin","determinant","invertedScaleX","deg","z","scaleX","scaleY","rotation","rotationX","rotationY","skewX","skewY","perspective","angle","cos","sin","a12","a22","t1","t2","t3","a13","a23","a33","a42","a43","a32","_renderSVGTransforms","_renderCSSTransforms","_renderNon3DTransforms","_addPxTranslate","_zeroDeg","_zeroPx","_endParenthesis","xPercent","yPercent","transformPerspective","force3D","zOrigin","transforms","use3D","xOffset","yOffset","forceCSS","a11","a21","_addRotationalPropTween","cap","finalValue","_assign","source","_addRawTransformPTs","startCache","exclude","endCache","r","side","CSSPlugin","specialProp","relative","isTransformRelated","transformPropTween","inlineProps","positionAndScale","others","gsapWithCSS","transitionDuration","Transition","useLocation","className","InnerTransition","onComplete","useAppUpdatePrompt","visible","setVisible","useAsyncEffect","connectToAppVersion","useBeforeUnload","clearStoredAppVersion","onClick","Hub","HubChannel","checkAppVersionAndPromptIfNeeded","appVersion","localStoredVersion","getLocalData","APP_VERSION_STORAGE_KEY","isEmpty","saveLocalData","refresh","updatePromptStyle","AppUpdatePrompt","BrowserUpdatedIcon","StepButtons","positive","negative","PrimaryRouteButton","useNavigate","PrimaryButton","Svg","iconPaths","SecondaryBackButton","SecondaryButton","LayoutWrapper","forwardRef","withCover","fullWidth","useClassName","StepTile","StepTileRow","StepTileRowSeparator","StepTileText","loading","Skeleton","Step","title","isLoading","ViewWrapper","StepHeader","titleElement","description","ratingType","clsx","getRatingTypeColor","getTitleLockup","MAX_RESULTS","MINIMUM_REQUIRED_RESULTS","AddressManagementComponent","_","componentState","componentUpdate","Value","createRef","toast","useToast","useImperativeHandle","useDocumentClick","handleAddressFocus","handleChangeAddress","partialAddress","debounce","addresses","getProperties","handleSelectAddress","url","handleAddNewAddress","InlineError","AddressManagement","Table","initialData","useAsyncValue","noData","emptyLoaderData","createEmptyModels","lightGray2","customStyles","DataTable","Loader","ResultCountMessage","hasMore","getQueues","fetchAndLog","saveQueue","queue","AdjusterQueueType","ALL_STATES_KEY","useAdjusterQueueForm","queues","setIsLoading","ToastContext","reporterTypes","ContactType","second","reporterTypeGroups","array","reporterTypeOptions","typeName","selected","setWithoutValidation","valid","validate","Rules.required","Rules.minSelected","Rules.minLength","setAllReporterTypes","newReporterTypes","getUsers","results","MembershipApi.getUsers","isDuplicateQueue","findDuplicateQueues","newQueue","q","getCurrentNewQueue","selectedReporterTypes","stateCode","setReporterTypeRules","reporterTypeKeys","Rules.equals","handleChangeQueueType","queueType","handleChangeAllReporterTypes","typesSelected","handleChangeReporterType","handleAddAdjuster","Common.validateEmail","newAdjusters","handleSubmit","Common.handleApiError","duplicateQueues","AdjusterQueueForm","columns","row","DeleteIcon","Text","Checkbox","Select","option","StateCode","duplicate","NoData","SKELETON_HEIGHT","noDataElement","AdjusterQueueManagementComponent","setQueues","filteredQueues","setFilteredQueues","queueToEdit","setQueueToEdit","isQueueFormVisible","setIsQueueFormVisible","reloadToggle","setReloadToggle","buildColumns","getData","handleChangeSearchText","handleAddQueue","handleCloseQueueForm","handleApiError","newFilteredQueues","adjuster","handleEditQueue","selectedQueue","reload","EditIcon","AdjusterQueueManagement","ActivateLocationComponent","setLoading","Rules.integer","handleActivateLocation","activateProducerLocation","TextFormGroup","locationId","AgencyDashboardContext","InlineHeader","BoxedList","ProducerContact","contact","toPhoneNumber","ProducerLocation","Producer","producer","searchProducers","request","fetchAndLogWithResponse","searchDebounceMs","useProducerSearch","searchTerm","producers","setProducers","responseTime","setResponseTime","lastSearch","useTimeout","SearchInfo","responseTimeRef","SearchBar","setSearch","AgencyDashboard","AgencyDashboardComponent","searchOutput","Routes","usePolicyBindingRequirements","policyNumber","useBindingRequirementsContext","onError","exception","Severity","ManageBindingRequirementsLoadingSkeleton","ElementSkeleton","BindingRequirementsPolicyInfoSkeleton","BindingRequirementsFileManagerSkeleton","PolicyBindingRequirementsComponent","requirementsContext","BindingRequirementsContext","BindingRequirementsDueDate","BindingRequirementsPolicyInfo","BindingRequirementsFileManager","BindingRequirements","CatCode","Action","Action2","CatCodeModal","states","reset","Rules.maxLength","at","ModalRow","LabelFormGroup","HelpIcon","DatePicker","MultiSelect","accidentType","onSubmit","combineAccidentTypes","dateFormat","ClaimsApi.addCatCode","ClaimsApi.updateCatCode","Search","tableRef","TableFormGroup","get","buildAccidentTypesHeader","getCatCodes","model","CatCodes","Component","setAction","setCode","deleting","setDeleting","onAdd","onCancel","onDelete","deleteCatCode","Sidebar","agentName","getAgentName","agentNameParts","getUserInitials","Constants.iconPaths","handleNavigation","handleLogout","Common.logout","Constants.pages","IconButton","React.forwardRef","SAVED_TASK_SEARCH_STORAGE_KEY","TaskStatus","ActionType","ActionType2","ClaimsDashboardContext","getMockClaimTasks","skip","take","filters","mockTasks","claimNumberResults","policyNumberResults","getClaimTasks","queryParams","encodeQueryParam","addClaimTask","task","getTaskTypes","TaskForm","createdBy","resetForm","handleChangeDueDate","dueDate","Constants.dateFormatWithHyphens","Common.getErrorMessage","SavedSearchForm","handleSaveSearch","savedSearchesData","savedSearches","TaskSearchForm","initialLoad","setInitialLoad","isSaveSearchFormVisible","setIsSaveSearchFormVisible","searchParams","useSearchParams","dueDateParam","handleCopySearchParams","Common.copyText","handleSearch","ContentCopyIcon","SaveIcon","DATA_SET_SIZE","FRISS_SCORE_WARNING_THRESHOLD","ClaimTasks","claimTasks","setClaimTasks","createdByList","setCreatedByList","assignedToList","setAssignedToList","taskTypeList","setTaskTypeList","searchFormOpen","setSearchFormOpen","taskFormOpen","setTaskFormOpen","selectedTaskSearch","setSelectedTaskSearch","setSearchParams","skeletonHeight","tasks","getSavedSearches","savedSearchesObj","handleRunSavedSearch","SearchIcon","KeyboardArrowRightIcon","useClaimsDashboardReducer","useReducer","reducer","ClaimsDashboardComponent","mobileMenuOpen","setMobileMenuOpen","sidebarNodes","handleOpenMobileMenu","handleCloseMobileMenu","Burger","Navigate","ClaimsDashboard","HeroText","LandingContent","LandingLayout","LandingViewWrapper","backgroundImage","React.useMemo","Logo","ProductHeader","LandingFooter","useCommercialBuildingAddressInput","getSuggestions","existingQuotes","getExistingCommercialQuotes","getAddressMatches","quoteResults","toAddress","addressResults","CommercialBuildingAddressItem","React.useContext","Link","getQuoteUri","CommercialBuildingAddressInput","useSelectConstructionType","getConstructionTypes","SelectConstructionType","selectGeneralLiabilityOptions","commercialGeneralLiabilityTypes","useSelectGeneralLiability","SelectGeneralLiability","useLessorsRisk","SelectLessorsRisk","useSelectOccupancyType","setUnitCountVisible","getOccupancyTypes","occupancySupportsMultipleUnits","getOccupancyTypeValue","SelectOccupancyType","getCategoryData","selectSwimmingPoolCountOptions","useSelectSwimmingPoolCount","SelectSwimmingPoolCount","CommercialLandingFormComponent","setIsUnitCountVisible","setOccupancyTypeValue","isUnitCountVisible","formatNumber","ElementDisplayFormatTypes","Loading","step","setStep","interval","stop","prevStep","stepText","LoadingStep","highlighted","useCommercialLanding","occupancyTypeValue","alertRef","logNoQuoteAttempt","businessPersonalPropertyLimitRules","getBusinessPersonalPropertyLimitRules","businessIncomeLimitRules","getBusinessIncomeLimitRules","Rules.currency","Rules.min","Rules.range","onBeforeUnload","normalizeError","HttpStatusCodes","defaultMessage","getPertinentValidationKeys","validateForm","activeElement","handleValidQuote","quoteInstance","setQuoteId","setAddress","handleInvalidQuote","showModalHandler","commercialErrorSeverityTypes","logQuoteRequestSafe","validationKeys","addressMatches","matchedAddress","stripCommas","stripCountryCodeFromAddress","stripNumeralFormatting","RatingType","comparisonQuotesModel","getOrCreateComparisonQuote","getOrCreateQuote","formatType","addNumeralFormatting","validateAgainstBuildingValue","CommercialLanding","CommercialLandingComponent","Common.isAtLeastAgent","Portal","Alert","AlertFooterType","getAddressKey","parseAddress","createProperty","yearBuiltValidation","yearBuilt","yearBuiltAndRoofAgeValidation","roofAge","invalidRoofAgeOrYearBuilt","validateZipCode","city","zipCode","CreateAddressComponent","stepDescription","isInitializing","setInitializing","additionalRules","Rules.decimal","Rules.zip","livingSpace","getMessageFromError","submit","Form","addressKey","zipCodeSuggestions","encodedAddress","Address","propertyData","putProperty","DropdownFormGroup","statesByCode","DropdownItem","CreateAddress","CreateAddressNoQuote","EditAddress","Authorization","authorizationUri","clientId","redirectUri","PrimaryGreenButton","authorize","getWebhooks","deleteWebhook","webhook","createWebhook","uri","getJobs","Jobs","buildRow","job","dateTimeFormat","utc","Webhooks","webhookEndpoint","remove","setRemove","removing","setRemoving","create","setCreate","creating","setCreating","confirmDelete","ModalTitle","ModalText","PrimaryBlackButton","saveWebhook","simpleDateFormat","Hover","TabGroup","Tab","RouteLoadingSpinner","Spinner","getIsoForms","useIsoForms","forms","setForms","IsoForms","IsoFormsComponent","Divider","IsoFormList","Copyable","PaymentAction","PaymentForm","submitButtonLabel","setSubmitButtonLabel","getSubmitButtonLabel","formCredit","Rules.creditCard","Rules.afterWithString","Rules.regex","formECheck","setWithoutValidationECheck","validECheck","validateECheck","routingNumber","echeckAccountTypeOptions","paymentType","Common.formatCurrencyUS","PaymentTypes","handleChangePaymentType","expirationDateParts","bankName","AdminApi.getBankName","PaymentSummary","invoice","balanceDue","formatCurrencyUS","paymentFrequency","hideString","MakeAPaymentComponent","paymentStep","setPaymentStep","setInvoice","getEmptyInvoice","amountDue","setAmountDue","paymentInfo","setPaymentInfo","getEmptyPaymentModel","setPaymentFrequency","isPaymentConfirmationVisible","setIsPaymentConfirmationVisible","isProcessing","setIsProcessing","errorMessage","setErrorMessage","useKeyboardEvent","handleKeyDown","initialPolicyNumber","initialZipCode","loadInvoice","getInvoice","getStepDescription","desc","getStepContent","isEscrow","getPaymentInfoFromInvoice","feeNotice","handleSubmitPaymentForm","getBackButtonLabel","getErrorContent","React.Fragment","email","messageParts","HOApi.getPolicyPaymentInvoice","Constants.PaymentTypes","err","Common.getApiError","getAuthorizationScreen","canvasOptions","html2canvas","getPaymentInfo","newPaymentInfo","getPaymentAmount","changePaymentInfo","success","AdminApi.updatePaymentMethod","details","Common.isProblemDetail","ex","Common.handleGeneralError","makePayment","AdminApi.payFromExistingProfile","makeOneTimePayment","AdminApi.payOnce","handleGoBack","updatePaymentInfo","PaymentConfirmation","MakeAPayment","useRenewalEAndSOffer","comparisonModel","getEAndSFromAdmittedNonRenewal","offerQuoteId","RenewalEAndSOffer","useRequestEAndSQuote","application","createEAndSFromAdmittedAgentRequest","eAndSQuoteId","RequestEAndSQuote","RequestEAndSQuoteComponent","SubHeader","TwoColumnLayout","width","excludeHeader","useSelectedQuoteHeader","quote","carrierCode","CarrierCode","headerRef","SelectedQuoteHeader","quoteProperty","ProductName","Price","PriceSubtext","useQuoteStepTile","tileWidth","setTileWidth","updateTileWidth","useResize","QuoteStepTile","tileContainerRef","loadComparisonQuotes","isSingleQuote","isUrq","carriers","carrier","setData","getComparisonQuotesByProduct","elementDescriptions","getComparisonElementDescriptions","comparisonQuoteData","getComparisonImportantNotices","useUnderwritingGuidelines","importantNotices","TrackingEvent","_b","confirmationElementNames","importantNoticesForQuote","notice","UnderwritingGuidelines","UnderwritingGuidelinesComponent","RiskList","VaveUnderwritingGuidelines","guidelines","guideline","FinancialRating","getRef","scrollTo","visibleQuoteCount","tileIndex","rendered","useConditionalRender","QuoteId","tileCellRef","financialRating","TileCell","onClickToolTip","ToolTip","CarrierOverview","LloydsCoverholderLogo","LloydsLogo","CarrierName","localizedFormat","useQuoteOverviewSection","comparisonQuotes","visibleQuotes","getVisibleQuotes","useScrollTo","getGuaranteedUntilDate","expiresOn","QuoteOverviewSection","Row","getMepMaxPercentage","purchasedOn","getMepDisclaimer","Group","margin","Heading2","FontSizes","GroupRow","dataWidth","dataMinWidth","minWidth","TableRow","hasStubOrAdminElement","comparisonElement","elementDisplay","isStubElement","isAdminElement","ElementDisplayNames","adjustElementsForPrintedQuote","quotes","elementGroup","adjustedElements","onHomeowner","onFlood","onCommercial","doNothing","createHardCodedElement","onBenchmark","onTopaAndBenchmarkSpecialty","onDorchester","addRmpsElement","addRspsElement","onVave","lossAssessmentEarthquakeCoverage","getComparisonElementFromComparisonModel","ElementNames","toBoolean","comparisonElements","hasElementWithName","addDefaultFloodCoverageElements","getElementGroupsForQuote","eg","ElementGroupNames","ce","getCommercialCoverPageElementGroups","elementGroups","getCommercialSecondPageElementGroups","mapElementGroupToPrintedQuote","minWidthOverride","PrintQuoteContext","getElementGroupByName","getDataWidth","comparisonElementModel","childElementNames","formattedLabel","stripExtraQuoteElementLabelParts","formattedValue","ElementTemplateTypes","choice","lossOfUse","finalFormattedValue","formatElementValue","LogoBlock","Premium","textAlign","getTextAlignment","Heading1","Colors","formatGrossAnnualPayment","SubText","PageHeader","Column","CommercialSecondPage","pageCount","timeStamp","getSecondPageGroups","firstColumn","secondColumn","Page","group","CoverPageGroups","coverPageGroups","getCoverPageGroups","PageContent","Disclaimers","mepDisclaimer","quoteValidUntilDate","SidebarLockup","fontSize","TextLockup","FontWeights","PageSidebar","isAgent","loginDetails","getLoginDetails","createdOnDate","validUntilDate","producerLocationName","parsePhoneNumber","getEmailFontSize","getInsuredFullName","QuoteLinkAndQrCode","emailLength","QuoteQrCode","QuoteLink","PageLayout","currentPage","TaxesAndFeesGroup","mepMaxPercentage","quoteFees","getQuoteFees","quoteFee","FeeLabel","isFullyEarnedFee","feeNameNoCase","Name","QuoteFeeTypes","CoverPage","RiskCharacteristicsGroup","ResidentialSecondPage","PrintedQuote","getPageCount","quoteUrl","getQuoteUrl","getTimeStamp","currentDateTime","dateTimeLocalizedFormat","usePrintQuote","fileName","getFileName","printQuote","getMepDetails","useReactToPdf","insuredName","streetName","residentialFileName","PrintQuoteButton","iconLink","disabled","isLimitedAgent","hasOnlyMoratoriaError","QuotePremiumErrorHeaders","printDisabled","IconLink","useBindQuoteRedirect","bindQuoteRedirect","productName","getQuoteData","hasMissingConfirmations","navigateToConfirmationsView","navigateToResidentialPurchasePage","navigateToCommercialPurchasePage","useBindButton","isBindButtonDisabled","BindButton","GetUrqButton","useEmailQuote","Rules.email","Rules.phone","emailQuote","EmailQuoteForm","fetcher","useFetcher","useEmailButton","EmailButton","Event","CardInlineData","getQuoteDetails","productRoute","useQuoteHistoryModal","isVisible","setDetails","events","setEvents","setFilter","canViewAdminEvents","_c","_d","_e","_f","QuoteHistoryModal","ModalSeparator","HistoryButton","React.useState","QRGButton","qrgLink","getQrgLink","navigateOnNewTab","QrgLinks","ViewButton","viewQuote","trackingStep","TileHeader","totalTiles","columnClassName","revalidateWhenQuoteIdChanges","currentParams","nextParams","useCompareCustomize","isPurchasedQuote","isMaxLayoutRequired","CompareCustomize","ProductComparisonQuote","ConfirmationElement","patchQuoteHook","patch","patchFromRequest","patchClaims","patchLoading","getComparisonQuoteOrDefault","getComparisonElementByQuoteId","quoteElementDescriptions","getElementDescriptionByCarrierCode","elementDescriptionHtml","emptyElementError","getConfirmationElementValidationError","elementErrorMessage","getComparisonElementErrorMessage","Element","ElementName","ImportantNotices","getImportantNotices","ComparisonQuoteImportantNotice","useConfirmQuote","stateHook","usePatchQuote","updateComparisonModel","requiredComparisonElements","getComparisonElementsByConfirmationElementNames","totalRequiredConfirmations","isConfirmDisabled","getTitle","getDescription","onBack","navigateToResidentialQuote","navigateToCommercialQuote","QuotePremiumErrors","hasSoftDeclines","hasEmptyRequiredElements","Elements","ConfirmQuote","requests","useConfirmSingleFamilyResidence","ConfirmSingleFamilyResidence","SingleFamilyResidenceComponent","useCustomize","Customize","useDeepLinkQuote","firstName","lastName","fromKebabToTitleCase","DeepLinkQuote","DeepLinkQuoteComponent","AddressAutoComplete","searchHomeownerAddresses","InsuredName","useLanding","setAddressKey","addressRef","nameFieldLengthRules","Rules.rangeLength","formKeys","keysWithNoMiddleName","TermsCheckbox","isLinkHovered","setIsLinkHovered","CheckboxFormGroup","CheckboxLabel","setCheckbox","TermsLink","Landing","loginAs","LoginAs","loginAsSomeoneElse","setCookie","useMissingPropertyData","MissingPropertyData","setPropertyLocation","latitude","longitude","getStateBoundary","outer","inner","usePreciseLocation","boundaries","setBoundaries","setDisabled","lat","lng","createAddress","invalidArea","setSelectedLocation","truncate","extendStatics","__extends","__","__assign","__rest$1","__awaiter$1","thisArg","_arguments","P","generator","adopt","reject","fulfilled","rejected","__generator","body","verb","op","getDefaultExportFromCjs","invariant","condition","argIndex","invariant_1","invariant$1","MapContext","useGoogleMap","reduce","newAcc","forEach","applyUpdaterToNextProps","updaterMap","prevProps","nextProps","instance","iter","nextValue","registerEvents","eventMap","registeredList","googleEventName","onEventName","unregisterEvent","registered","unregisterEvents","applyUpdatersToPropsAndRegisterEvents","registeredEvents","eventMap$i","updaterMap$i","extra","it","center","clickable","heading","mapTypeId","streetView","tilt","zoom","GoogleMapFunctional","mapContainerStyle","mapContainerClassName","onDblClick","onDrag","onDragEnd","onDragStart","onMouseMove","onMouseOut","onMouseOver","onMouseDown","onMouseUp","onRightClick","onCenterChanged","onLoad","onUnmount","setMap","centerChangedListener","setCenterChangedListener","dblclickListener","setDblclickListener","dragendListener","setDragendListener","dragstartListener","setDragstartListener","_g","mousedownListener","setMousedownListener","_h","mousemoveListener","setMousemoveListener","_j","mouseoutListener","setMouseoutListener","_k","mouseoverListener","setMouseoverListener","_l","mouseupListener","setMouseupListener","_m","rightclickListener","setRightclickListener","_o","clickListener","setClickListener","_p","dragListener","setDragListener","memo","GoogleMap","_super","latLng","PureComponent","isBrowser","injectScript","nonce","existingScript","windowWithGoogleMap","dataStateAttribute","originalInitMap_1","originalErrorCallback_1","script","isGoogleFontStyle","href","preventGoogleFonts","head","trueInsertBefore_1","newElement","referenceElement","trueAppend_1","textNode","makeLoadScriptUrl","googleMapsApiKey","googleMapsClientId","version","language","region","libraries","channel","mapIds","authReferrerPolicy","cleaningUp","DefaultLoadingElement","defaultLoadScriptProps","LoadScript","promiseCallback","timer_1","link","injectScriptOptions","timeoutCallback","previouslyLoadedUrl","useLoadScript","preventGoogleFontsLoading","isMounted","isLoaded","setLoaded","loadError","setLoadError","setLoadedIfMounted","prevLibraries","defaultLoadingElement","LoadScriptNext","loadingElement","hookOptions","__awaiter","fastDeepEqual$1","equal","length","DEFAULT_ID","LoaderStatus","apiKey","client","retries","k","u","libraryPromises","library","defaultLibraries","useJsApiLoader","loader","eventMap$h","updaterMap$h","TrafficLayerFunctional","setInstance","trafficLayer","TrafficLayer","BicyclingLayerFunctional","bicyclingLayer","BicyclingLayer","TransitLayerFunctional","transitLayer","TransitLayer","eventMap$g","updaterMap$g","drawingMode","DrawingManagerFunctional","onCircleComplete","onMarkerComplete","onOverlayComplete","onPolygonComplete","onPolylineComplete","onRectangleComplete","circlecompleteListener","setCircleCompleteListener","markercompleteListener","setMarkerCompleteListener","overlaycompleteListener","setOverlayCompleteListener","polygoncompleteListener","setPolygonCompleteListener","polylinecompleteListener","setPolylineCompleteListener","rectanglecompleteListener","setRectangleCompleteListener","drawingManager","DrawingManager","eventMap$f","updaterMap$f","draggable","opacity","shape","zIndex","defaultOptions$5","MarkerFunctional","clusterer","noClustererRedraw","onClickableChanged","onCursorChanged","onAnimationChanged","onDraggableChanged","onFlatChanged","onIconChanged","onPositionChanged","onShapeChanged","onTitleChanged","onVisibleChanged","onZindexChanged","clickableChangedListener","setClickableChangedListener","cursorChangedListener","setCursorChangedListener","_q","animationChangedListener","setAnimationChangedListener","_r","draggableChangedListener","setDraggableChangedListener","_s","flatChangedListener","setFlatChangedListener","_t","iconChangedListener","setIconChangedListener","_u","positionChangedListener","setPositionChangedListener","_v","shapeChangedListener","setShapeChangedListener","_w","titleChangedListener","setTitleChangedListener","_x","visibleChangedListener","setVisibleChangedListener","_y","zIndexChangedListener","setZindexChangedListener","markerOptions","marker","chx","Children","isValidElement","elementChild","cloneElement","Marker","ClusterIcon","cluster","markerClusterer_1","maxZoom_1","bounds_1","pos","divTitle","bp","spriteH","spriteV","img","textElm","sums","latlng","Cluster$1","Cluster","markerClusterer","markers","markers_1","length_1","mCount","maxZoom","markerElement","CALCULATOR","numStyles","count","numberOfDigits","BATCH_SIZE","BATCH_SIZE_IE","IMAGE_PATH","IMAGE_EXTENSION","IMAGE_SIZES","CLUSTERER_CLASS","Clusterer","optMarkers","optOptions","listener","gridSize","minimumClusterSize","zoomOnClick","averageCenter","ignoreHidden","enableRetinaIcons","imageExtension","imagePath","imageSizes","calculator","batchSizeIE","clusterClass","optNoDraw","removed","markers_2","oldClusters","oldClusters_1","oldCluster","projection","trPix","blPix","point1","point2","optHide","R","dLat","dLon","clusterToAddTo","clusterElement","iFirst","mapBounds","extendedMapBounds","iLast","obj1","obj2","object","eventMap$e","updaterMap$e","defaultOptions$4","MarkerClustererFunctional","onClusteringBegin","onClusteringEnd","clusteringBeginListener","setClusteringBeginListener","clusteringEndListener","setClusteringEndListener","clustererOptions","ClustererComponent","cancelHandler","InfoBox","ignoreHandler","panes","bw","events_1","event_1","disablePan","mapDiv","mapWidth","mapHeight","iwOffsetX","iwOffsetY","iwWidth","iwHeight","padX","padY","pixPosition","boxStyle","ownerDocument","computedStyle","currentStyle","eventListener","eventMap$d","updaterMap$d","defaultOptions$3","InfoBoxFunctional","onCloseClick","onDomReady","onContentChanged","closeClickListener","setCloseClickListener","domReadyClickListener","setDomReadyClickListener","contentChangedClickListener","setContentChangedClickListener","positionChangedClickListener","setPositionChangedClickListener","zIndexChangedClickListener","setZindexChangedClickListener","containerElementRef","positionLatLng","position_1","infoBoxOptions","infoBox","createPortal","InfoBoxComponent","fastDeepEqual","ARRAY_TYPES","VERSION","HEADER_SIZE","KDBush","magic","versionAndType","ArrayType","nodeSize","numItems","arrayTypeIndex","coordsByteSize","idsByteSize","padCoords","numAdded","minY","maxY","ids","coords","stack","right","left","qx","qy","r2","sqDist","m","select","sd","newLeft","newRight","swapItem","swap","arr","tmp","ax","ay","bx","by","defaultOptions$2","fround","OFFSET_ZOOM","OFFSET_ID","OFFSET_PARENT","OFFSET_NUM","OFFSET_PROP","Supercluster","points","log","minZoom","timerId","lngX","latY","now","minLng","minLat","maxLng","maxLat","easternHem","westernHem","clusters","getClusterJSON","clusterId","originId","originZoom","errorMsg","limit","leaves","z2","extent","top","bottom","tile","expansionZoom","skipped","isCluster","tags","py","getClusterProperties","minPoints","nextData","stride","neighborIds","numPointsOrigin","numPoints","neighborId","wx","wy","clusterProperties","clusterPropIndex","numPoints2","clone","original","clusterProps","xLng","yLat","abbrev","propIndex","y2","__rest","MarkerUtils","AbstractAlgorithm","noop$1","SuperClusterAlgorithm","input","changed","feature","leaf","ClusterStats","clusterMarkerCounts","clusterMarkerSum","DefaultRenderer","stats","svgEl","clusterOptions","extend","type1","type2","OverlayViewSafe","MarkerClustererEvents","defaultOnClusterClickHandler","MarkerClusterer","algorithmOptions","algorithm","onClusterClick","noDraw","singleMarker","groupMarkers","useGoogleMarkerClusterer","setMarkerClusterer","markerCluster","GoogleMarkerClusterer","eventMap$c","updaterMap$c","InfoWindowFunctional","closeclickListener","domreadyclickListener","contentchangedclickListener","positionchangedclickListener","zindexchangedclickListener","infoWindow","InfoWindow","eventMap$b","updaterMap$b","editable","defaultOptions$1","PolylineFunctional","polyline","Polyline","eventMap$a","updaterMap$a","PolygonFunctional","onEdit","polygon","Polygon","eventMap$9","updaterMap$9","RectangleFunctional","onBoundsChanged","rightClickListener","setRightClickListener","boundsChangedListener","setBoundsChangedListener","rectangle","Rectangle","eventMap$8","updaterMap$8","defaultOptions","CircleFunctional","onRadiusChanged","radiusChangedListener","setRadiusChangedListener","circle","Circle","eventMap$7","updaterMap$7","geojson","controlPosition","controls","DataFunctional","onAddFeature","onRemoveFeature","onRemoveProperty","onSetGeometry","onSetProperty","addFeatureListener","setAddFeatureListener","removeFeatureListener","setRemoveFeatureListener","removePropertyListener","setRemovePropertyListener","setGeometryListener","setSetGeometryListener","setPropertyListener","setSetPropertyListener","Data","data_1","eventMap$6","updaterMap$6","KmlLayer","kmlLayer","getOffsetOverride","containerElement","getPixelPositionOffset","createLatLng","inst","Type","createLatLngBounds","ensureOfType","factory","ensureOfTypeBounds","getLayoutStylesByBounds","mapCanvasProjection","ne","sw","getLayoutStylesByPosition","point","getLayoutStyles","arePositionsEqual","currentPosition","previousPosition","createOverlay","container","pane","layoutStyles","convertToLatLngString","latLngLike","convertToLatLngBoundsString","latLngBoundsLike","latLngBounds","OverlayViewFunctional","mapPaneName","div","overlay","ReactDOM.createPortal","OverlayView","mapPanes","height","overlayView","prevPositionString","positionString","prevBoundsString","boundsString","paneEl","noop","eventMap$5","updaterMap$5","GroundOverlayFunctional","imageBounds","groundOverlay","newBounds","GroundOverlay","eventMap$4","updaterMap$4","HeatmapLayerFunctional","heatmapLayer","HeatmapLayer","eventMap$3","updaterMap$3","provider","links","motionTracking","pano","pov","StreetViewPanorama","streetViewPanorama","StreetViewService","streetViewService","DirectionsService","directionsService","eventMap$2","updaterMap$2","directions","panel","routeIndex","DirectionsRenderer","directionsRenderer","DistanceMatrixService","distanceMatrixService","eventMap$1","updaterMap$1","StandaloneSearchBox","searchBox_1","restrictions","fields","types","Autocomplete","autocomplete_1","overlayCoordinates","polygonOptions","Map","selectLocation","initialCenter","React.useRef","containsLocation","coordinate","PreciseLocation","PreciseLocationComponent","PreciseLocationNoQuote","useQuoteList","quoteValues","setQuoteValues","setError","selectedQuotes","toggleQuote","onCompareQuotes","qv","CarrierLogoLockup","VaveLloydsCoverholder","Default","LloydsPartner","defaultStyle","useCoveragePreview","elementNames","getElements","elementName","matchingComparisonElements","getComparisonQuoteElementsByElementName","displayValue","CoveragePreview","elements","useQuoteListTile","hasPremiumErrors","coveragePreviewElementNames","getCoveragePreviewElementNames","PremiumErrorInfo","ErrorIcon","usePremiumInfo","grossAnnualPayment","premiumRef","useCountUp","easeCountup","guaranteedUntilDate","getQuoteGuaranteedUntilDate","PremiumInfo","Title","QuoteActionLinks","useReviewButton","ReviewButton","TileWrapper","QuoteListTile","isToggled","onQuoteToggle","QuoteList","SidebarHeader","Redirect","to","accessRole","RedirectComponent","getAgencyData","agencyData","AGENCY_DATA","SignUpPaths","useOnboardingData","newData","parsed","useAgencyInformation","onboarding","cancel","AgencyInformation","useAgentInformation","AgentInformation","role","useOnboardingViewProgressTracker","OnboardingViewProgressTracker","StoreIcon","PersonIcon","ClipboardIcon","FolderIcon","SignUp","SignUpComponent","Outlet","useSignUp","SignUpEntry","REGEX_DATA","features","nativ","fixed","regexCache","patternCache","tokens","defaultScope","classScope","nativeTokens","replacementToken","correctExecNpcg","hasFlagsProp","toString","hasNativeFlag","flag","isSupported","hasNativeU","hasNativeY","registeredFlags","augment","regex","captureNames","xSource","xFlags","isInternalOnly","XRegExp","clipDuplicates","str","copyRegex","xData","flags","getNativeFlags","flagsToAdd","flagsToRemove","xregexpSource","xregexpFlags","hasNamedCapture","dec","hex","getContextualTokenSeparator","isPatternNext","indexOf","len","pattern","needlePattern","inlineCommentPattern","lineCommentPattern","patternsToIgnore","isType","pad4","prepareFlags","$0","$1","prepareOptions","registerFlag","runTokens","leadChar","setAstral","on","setNatives","toObject","output","applied","appliedPattern","appliedFlags","token","generated","handler","optionalFlags","cacheName","sticky","cacheKey","addY","fakeY","global","chain","recurseChain","level","addMatch","replacement","isRegex","s2","replacements","separator","patterns","conjunction","numCaptures","numPriorCaptures","rewrite","paren","backref","parts","origLastIndex","$2","lastLastIndex","lastLength","endIndex","xregexp","root","require","parser","Addr_Match","Directional","Street_Type","State_Code","Direction_Code","initialized","Normalize_Map","capitalize","each","invert","o1","flatten","lazyInit","curr","sep","exports","useUnsupportedProperty","parseLocation","supportPhone","isMarketing","rootNavigate","UnsupportedProperty","navigateToNewQuote","navigateToHistory","subErrorMessage","phoneNumber","isTexasDisclosureRequired","UrqOverview","lastDayToChange","isAfterLastDayToChange","UpcomingRenewalImsPolicyNumber","EffectiveDate","urqPolicyTerm","getRenewalTermFromPolicyNumber","urqEffectiveDateRange","getUpcomingRenewalEffectiveDateRange","lastDayClassName","UrqTileHeader","GrossAnnualPayment","useUpcomingRenewalQuote","urqQuote","urqLastDayToChange","formattedLastDayToChange","UpcomingRenewalQuote","ColorScheme","getOverviewSection","useZipCodeSuggestions","ZipCodeSuggestions","ZipCodeSuggestionsComponent","ZipCodeSuggestionsNoQuote","Zip","zip","routes","App","reducerRef","setAppSettings","createBrowserRouter","ErrorElement","routeMapper","RouterProvider","route","renderComponent"],"mappings":"4qQAAO,MAAMA,GAAN,MAAMA,EAAiB,CAIlB,YAAYC,EAAcC,EAAqB,CAH9CC,GAAA,aACAA,GAAA,oBAGL,KAAK,KAAOF,EACZ,KAAK,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AAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,sFACxB,ECHA,IAAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,yEACxB,ECHA,IAAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,sEACxB,ECHA,IAAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,2EACxB,ECHA,IAAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,0EACxB,ECHA,IAAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,uFACxB,ECHA,IAAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,gFACxB,ECHA,IAAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,2EACxB,ECHA,IAAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,mEACxB,ECHA,IAAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,+DACxB,ECHA,IAAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,sFACxB,ECHA,IAAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,uBACxB,ECHA,IAAIC,GAA4B,CAAE,EAClCA,GAA4B,CACxB,iBAAoB,oBACxB,ECgCA,IAAIC,GAA4B,CAAE,EAmClCA,GAA4B,CACxB,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,GACT,QAASC,EACb,EClGA,SA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,OACd,MAAc,MACd,OAAc,MACd,KAAc,MACd,MAAc,MACd,OAAc,MACd,QAAc,OACd,GAAc,MACd,MAAc,MACd,OAAc,OACd,KAAc,MACd,IAAc,KACd,MAAc,MACd,KAAc,MACd,KAAc,MACd,OAAc,MACd,QAAc,OACd,OAAc,MACd,QAAc,OACd,OAAc,OACd,MAAc,KACd,OAAc,MACd,KAAc,KACd,MAAc,MACd,GAAc,MACd,KAAc,MACd,MAAc,MACd,QAAc,OACd,MAAc,MACd,SAAc,OACd,QAAc,OACd,MAAc,OACd,SAAc,OACd,UAAc,MACd,WAAc,OACd,OAAc,OACd,OAAc,OACd,MAAc,OACd,QAAc,OACd,OAAc,OACd,IAAc,KACd,MAAc,OACd,KAAc,KACd,IAAc,KACd,IAAc,KACd,OAAc,KACd,KAAc,KACd,MAAc,KACd,OAAc,MACd,IAAc,KACd,IAAc,KACd,OAAc,MACd,QAAc,OACd,IAAc,OACd,KAAc,OACd,QAAc,OACd,WAAc,OACd,KAAc,OACd,UAAc,MACd,WAAc,OACd,KAAc,MACd,OAAc,MACd,KAAc,OACd,MAAc,MACd,MAAc,MACd,MAAc,MACd,OAAc,OACd,KAAc,MACd,MAAc,OACd,KAAc,MACd,MAAc,OACd,OAAc,OACd,QAAc,OACd,KAAc,MACd,MAAc,MACd,OAAc,OACd,KAAc,MACd,MAAc,OACd,KAAc,KACd,QAAc,MACd,OAAc,MACd,KAAc,MACd,IAAc,KACd,MAAc,MACd,KAAc,MACd,OAAc,MACd,QAAc,OACd,MAAc,MACd,QAAc,OACd,OAAc,OACd,OAAc,OACd,KAAc,MACd,MAAc,OACd,MAAc,MACd,KAAc,MACd,MAAc,OACd,MAAc,MACd,OAAc,OACd,KAAc,MACd,MAAc,MACd,OAAc,OACd,MAAc,OACd,KAAc,MACd,OAAc,MACd,QAAc,OACd,MAAc,MACd,MAAc,MACd,KAAc,MACd,OAAc,MACd,QAAc,MACd,KAAc,MACd,QAAc,MACd,OAAc,MACd,KAAc,KACd,MAAc,MACd,MAAc,MACd,KAAc,MACd,KAAc,OACd,OAAc,OACd,QAAc,OACd,MAAc,OACd,MAAc,MACd,GAAc,MACd,KAAc,MACd,MAAc,OACd,OAAc,KACd,QAAc,MACd,MAAc,OACd,MAAc,KACd,OAAc,MACd,OAAc,MACd,KAAc,MACd,MAAc,OACd,SAAc,MACd,UAAc,OACd,OAAc,MACd,QAAc,MACd,IAAc,KACd,KAAc,MACd,KAAc,MACd,MAAc,MACd,OAAc,OACd,GAAc,KACd,KAAc,KACd,MAAc,MACd,KAAc,OACd,QAAc,OACd,KAAc,KACd,MAAc,KACd,KAAc,MACd,MAAc,MACd,OAAc,OACd,MAAc,OACd,KAAc,KACd,KAAc,MACd,MAAc,OACd,KAAc,MACd,MAAc,MACd,MAAc,OACd,KAAc,OACd,MAAc,MACd,OAAc,OACd,OAAc,MACd,QAAc,OACd,OAAc,OACd,KAAc,OACd,KAAc,KACd,MAAc,MACd,QAAc,MACd,MAAc,MACd,IAAc,KACd,OAAc,MACd,KAAc,MACd,MAAc,OACd,SAAc,OACd,MAAc,KACd,SAAc,MACd,UAAc,OACd,QAAc,MACd,KAAc,MACd,KAAc,MACd,KAAc,MACd,QAAc,OACd,OAAc,OACd,SAAc,OACd,IAAc,OACd,MAAc,OACd,QAAc,OACd,SAAc,OACd,OAAc,OACd,KAAc,OACd,QAAc,OACd,MAAc,OACd,MAAc,OACd,KAAc,MACd,MAAc,OACd,GAAc,OACd,MAAc,OACd,MAAc,OACd,IAAc,OACd,MAAc,KACd,MAAc,MACd,QAAc,OACd,OAAc,OACd,MAAc,MACd,KAAc,MACd,MAAc,KACd,OAAc,MACd,KAAc,MACd,MAAc,OACd,QAAc,KACd,OAAc,KACd,IAAc,OACd,IAAc,KACd,IAAc,OACd,OAAc,OACd,OAAc,OACd,MAAc,OACd,QAAc,OACd,MAAc,MACd,OAAc,OACd,KAAc,MACd,KAAc,MACd,MAAc,MACd,OAAc,OACd,MAAc,MACd,KAAc,MACd,MAAc,OACd,KAAc,KACd,MAAc,MACd,MAAc,MACd,IAAc,MACd,IAAc,MACd,IAAc,MACd,IAAc,MACd,MAAc,MACd,OAAc,OACd,MAAc,MACd,OAAc,OACd,MAAc,MACd,OAAc,OACd,OAAc,OACd,KAAc,MACd,MAAc,OACd,OAAc,MACd,QAAc,OACd,MAAc,MACd,OAAc,OACd,MAAc,OACd,IAAc,KACd,KAAc,KACd,KAAc,MACd,IAAc,KACd,OAAc,KACd,QAAc,MACd,QAAc,MACd,MAAc,MACd,IAAc,MACd,IAAc,KACd,MAAc,OACd,OAAc,OACd,QAAc,OACd,UAAc,OACd,OAAc,OACd,OAAc,OACd,OAAc,KACd,QAAc,MACd,OAAc,OACd,KAAc,KACd,MAAc,OACd,QAAc,OACd,MAAc,MACd,OAAc,MACd,OAAc,MACd,KAAc,MACd,QAAc,MACd,WAAc,OACd,IAAc,OACd,GAAc,MACd,MAAc,OACd,OAAc,OACd,MAAc,OACd,OAAc,OACd,WAAc,OACd,MAAc,MACd,OAAc,MACd,IAAc,OACd,KAAc,OACd,KAAc,MACd,MAAc,OACd,KAAc,OACd,MAAc,OACd,MAAc,OACd,OAAc,OACd,QAAc,OACd,MAAc,OACd,SAAc,OACd,OAAc,OACd,UAAc,OACd,MAAc,KACd,OAAc,MACd,OAAc,MACd,QAAc,OACd,MAAc,MACd,KAAc,MACd,OAAc,MACd,QAAc,MACd,KAAc,KACd,MAAc,MACd,KAAc,MACd,OAAc,MACd,QAAc,MACd,SAAc,OACd,MAAc,KACd,MAAc,MACd,SAAc,MACd,KAAc,MACd,MAAc,MACd,KAAc,MACd,IAAc,MACd,KAAc,MACd,KAAc,OACd,MAAc,OACd,KAAc,KACd,MAAc,MACd,GAAc,KACf,EAEGC,EAAa,CACf,QAAY,KACZ,OAAW,KACX,iBAAmB,KACnB,QAAY,KACZ,SAAa,KACb,WAAe,KACf,SAAa,KACb,YAAgB,KAChB,SAAa,KACb,uBAAyB,KACzB,iCAAmC,KACnC,QAAY,KACZ,QAAY,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B,SAAWA,EAAM,QAAY,EAAAA,EAAM,OAAQ,CAAA,EAEtEzyF,EAAAA,IAAA84B,GAAA,CAAY,SAAM25D,EAAA,OAAQ,CAAA,EAEnC,EAEJ,UAAWA,EAAM,UAAY,CAAC,GAAG,IAAIF,CAAW,CACpD,CAAA,CAER,EC5FAG,GAAgB1yF,EAAA,IAACkyF,KAAI,CAAE","x_google_ignoreList":[1,2,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,119,130,131,132,301,333,334]}