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AM,SAAU1nD,GAId,MAHiB,MAAbA,EAAM,KACRA,EAAQA,EAAM09B,MAAM,GAAI,IAEnB19B,EAAMk8B,QAAQ,mBAAoBwwB,mBAC3C,EACA2d,MAAO,SAAUrqE,GACf,OAAOysD,mBAAmBzsD,GAAOk8B,QAC/B,2CACAwwB,mBAEJ,GAwG+B,CAAET,KAAM","sources":["webpack://puregym.site.join/./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/config/DecisionMode.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/enum/FSFetchReasons.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/enum/FSFetchStatus.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/enum/FSFlagStatus.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/enum/FSSdkStatus.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/enum/FlagshipConstant.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/enum/HitType.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/enum/LogLevel.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/flag/FSFlagCollection.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/flag/FSFlagMetadata.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/flag/forceVariation.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/flag/FsFlags.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/index.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/visitor/Visitor.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/enum/CacheStrategy.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/config/TrackingManagerConfig.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/config/FlagshipConfig.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/config/BucketingConfig.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/config/DecisionApiConfig.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/config/ConfigManager.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/types.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/enum/BatchTriggeredBy.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/HitAbstract.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/Diagnostic.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/Troubleshooting.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/decision/DecisionManager.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/decision/ApiManager.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/Event.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/Item.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/Page.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/Screen.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/Transaction.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/Segment.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/ActivateBatch.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/Batch.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/qaAssistant/type.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/qaAssistant/messages/index.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/api/BatchingCachingStrategyAbstract.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/api/BatchingContinuousCachingStrategy.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/api/BatchingPeriodicCachingStrategy.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/api/NoBatchingContinuousCachingStrategy.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/Activate.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/api/TrackingManagerAbstract.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/api/TrackingManager.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/utils/FlagshipLogManager.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/hit/UsageHit.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/cache/DefaultHitCache.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/cache/DefaultVisitorCache.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/visitor/StrategyAbstract.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/enum/FlagshipContext.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/visitor/DefaultStrategy.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/visitor/NotReadyStrategy.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/visitor/PanicStrategy.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/visitor/NoConsentStrategy.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/visitor/VisitorCache.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/utils/MurmurHash.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/visitor/VisitorAbstract.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/visitor/VisitorDelegate.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/decision/BucketingManager.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/utils/HttpError.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/depsNode.native.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/utils/HttpClient.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/decision/EdgeManager.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/config/EdgeConfig.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/qaAssistant/appendScript.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/qaAssistant/messages/iframeMessageActions.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/qaAssistant/messages/handleIframeMessage.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/qaAssistant/loadQaAssistant.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/qaAssistant/listenForKeyboardQaAssistant.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/main/Flagship.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/qaAssistant/index.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/sdkVersion.js","webpack://puregym.site.join/./node_modules/@flagship.io/js-sdk/dist/utils/utils.js","webpack://puregym.site.join/./node_modules/@flagship.io/react-sdk/dist/src/FlagshipContext.js","webpack://puregym.site.join/./node_modules/@flagship.io/react-sdk/dist/src/constants.js","webpack://puregym.site.join/./node_modules/@flagship.io/react-sdk/dist/src/FSFlag.js","webpack://puregym.site.join/./node_modules/@flagship.io/react-sdk/dist/src/FlagshipHooks.js","webpack://puregym.site.join/./node_modules/@flagship.io/react-sdk/dist/src/utils.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/_virtual/_rollupPluginBabelHelpers.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/constants/ui.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/constants/webStorage.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/constants/userAgents.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/hooks/useDeviceInfo.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/base/colors.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/base/layout.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/base/transitions.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/base/typography.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/base/misc.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/utils.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/base/index.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/pureGym/colors.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/pureGym/misc.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/pureGym/index.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/pureGym/typography.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/alert/constants.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/alert/index.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/banner/constants.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/banner/index.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/button/constants.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/button/styles.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/button/index.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/heading/constants.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/heading/index.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/icons/generated/ArrowRight.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/icons/generated/Close.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/list/constants.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/list/index.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/static/icons/check.svg.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/modal/index.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/utils/styleHelpers.js","webpack://puregym.site.join/./node_modules/dayjs/dayjs.min.js","webpack://puregym.site.join/./node_modules/dayjs/plugin/duration.js","webpack://puregym.site.join/./node_modules/dayjs/plugin/isBetween.js","webpack://puregym.site.join/./node_modules/dayjs/plugin/timezone.js","webpack://puregym.site.join/./node_modules/dayjs/plugin/utc.js","webpack://puregym.site.join/./node_modules/events/events.js","webpack://puregym.site.join/./node_modules/exenv/index.js","webpack://puregym.site.join/./node_modules/gatsby-page-utils/dist/apply-trailing-slash-option.js","webpack://puregym.site.join/./node_modules/gatsby-react-router-scroll/index.js","webpack://puregym.site.join/./node_modules/gatsby-react-router-scroll/scroll-handler.js","webpack://puregym.site.join/./node_modules/gatsby-react-router-scroll/session-storage.js","webpack://puregym.site.join/./node_modules/gatsby-react-router-scroll/use-scroll-restoration.js","webpack://puregym.site.join/./node_modules/gatsby/dist/internal-plugins/partytown/gatsby-browser.js","webpack://puregym.site.join/./node_modules/gatsby/dist/internal-plugins/partytown/utils/get-forwards.js","webpack://puregym.site.join/./node_modules/gatsby/dist/internal-plugins/partytown/utils/inject-partytown-snippet.js","webpack://puregym.site.join/./.cache/_this_is_virtual_fs_path_/$virtual/async-requires.js","webpack://puregym.site.join/./.cache/api-runner-browser-plugins.js","webpack://puregym.site.join/./.cache/api-runner-browser.js","webpack://puregym.site.join/./.cache/emitter.js","webpack://puregym.site.join/./node_modules/mitt/dist/mitt.es.js","webpack://puregym.site.join/./.cache/normalize-page-path.js","webpack://puregym.site.join/./.cache/find-path.js","webpack://puregym.site.join/./.cache/gatsby-browser-entry.js","webpack://puregym.site.join/./.cache/prefetch.js","webpack://puregym.site.join/./.cache/loader.js","webpack://puregym.site.join/./.cache/head/components/fire-callback-in-effect.js","webpack://puregym.site.join/./.cache/head/constants.js","webpack://puregym.site.join/./.cache/head/utils.js","webpack://puregym.site.join/./.cache/head/head-export-handler-for-browser.js","webpack://puregym.site.join/./.cache/page-renderer.js","webpack://puregym.site.join/./.cache/route-announcer-props.js","webpack://puregym.site.join/./.cache/navigation.js","webpack://puregym.site.join/./node_modules/shallow-compare/es/index.js","webpack://puregym.site.join/./.cache/ensure-resources.js","webpack://puregym.site.join/./.cache/production-app.js","webpack://puregym.site.join/./.cache/public-page-renderer-prod.js","webpack://puregym.site.join/./.cache/public-page-renderer.js","webpack://puregym.site.join/./.cache/react-dom-utils.js","webpack://puregym.site.join/./.cache/react-lifecycles-compat.js","webpack://puregym.site.join/./.cache/redirect-utils.js","webpack://puregym.site.join/./.cache/register-service-worker.js","webpack://puregym.site.join/./.cache/slice/context.js","webpack://puregym.site.join/./.cache/static-query.js","webpack://puregym.site.join/./.cache/context-utils.js","webpack://puregym.site.join/./.cache/strip-prefix.js","webpack://puregym.site.join/./node_modules/@puregym/gatsby-plugin-gtm/index.js","webpack://puregym.site.join/./node_modules/@puregym/react-hooks/useMediaQuery.ts","webpack://puregym.site.join/./node_modules/@puregym/react-hooks/useAuthentication.ts","webpack://puregym.site.join/./node_modules/@puregym/react-hooks/useHydration.ts","webpack://puregym.site.join/./node_modules/@puregym/utilities/currencyFormat.ts","webpack://puregym.site.join/./node_modules/@puregym/utilities/clientOnly.ts","webpack://puregym.site.join/./node_modules/@puregym/utilities/getDeviceInfo.ts","webpack://puregym.site.join/./node_modules/@puregym/utilities/http.ts","webpack://puregym.site.join/./node_modules/@puregym/utilities/interpolateTemplate.ts","webpack://puregym.site.join/./node_modules/gatsby-plugin-google-tagmanager/gatsby-browser.js","webpack://puregym.site.join/./node_modules/gatsby-plugin-styled-components/gatsby-browser.js","webpack://puregym.site.join/./node_modules/@puregym/cookieconsent/dist/index.js","webpack://puregym.site.join/./src/utilities/useCookieConsent.ts","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/tooltip/styles.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/tabs/styles.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/globalStyles.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/theme/themeProvider.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/page/index.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/skipLink/index.js","webpack://puregym.site.join/./node_modules/@puregym/gatsby-plugin-banner/index.js","webpack://puregym.site.join/./src/components/StraplineBannerContainer.tsx","webpack://puregym.site.join/./src/components/authenticatedRedirect.tsx","webpack://puregym.site.join/./src/components/dev/dev.ts","webpack://puregym.site.join/./src/components/flagshipDataLayer.tsx","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/page/pageFooter.js","webpack://puregym.site.join/./node_modules/@puregym/gatsby-plugin-footer/styles.ts","webpack://puregym.site.join/./node_modules/@puregym/gatsby-plugin-footer/FooterLegal.tsx","webpack://puregym.site.join/./node_modules/@puregym/gatsby-plugin-footer/FooterNav.tsx","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/icons/generated/Locale.js","webpack://puregym.site.join/./node_modules/@puregym/gatsby-plugin-footer/constants.ts","webpack://puregym.site.join/./node_modules/@puregym/gatsby-plugin-footer/LanguageSwitcher.tsx","webpack://puregym.site.join/./node_modules/@puregym/gatsby-plugin-footer/index.tsx","webpack://puregym.site.join/./src/components/layout/footer.tsx","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/icons/generated/CookieBite.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/page/pageHeader.js","webpack://puregym.site.join/./node_modules/tslib/tslib.es6.mjs","webpack://puregym.site.join/./node_modules/react-remove-scroll-bar/dist/es2015/constants.js","webpack://puregym.site.join/./node_modules/use-callback-ref/dist/es2015/assignRef.js","webpack://puregym.site.join/./node_modules/use-callback-ref/dist/es2015/useMergeRef.js","webpack://puregym.site.join/./node_modules/use-callback-ref/dist/es2015/useRef.js","webpack://puregym.site.join/./node_modules/use-sidecar/dist/es2015/medium.js","webpack://puregym.site.join/./node_modules/react-remove-scroll/dist/es2015/medium.js","webpack://puregym.site.join/./node_modules/react-remove-scroll/dist/es2015/UI.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/constants.js","webpack://puregym.site.join/./node_modules/react-focus-lock/dist/es2015/FocusGuard.js","webpack://puregym.site.join/./node_modules/react-focus-lock/dist/es2015/medium.js","webpack://puregym.site.join/./node_modules/react-focus-lock/dist/es2015/scope.js","webpack://puregym.site.join/./node_modules/react-focus-lock/dist/es2015/Lock.js","webpack://puregym.site.join/./node_modules/react-focus-lock/dist/es2015/UI.js","webpack://puregym.site.join/./node_modules/react-focus-on/dist/es2015/medium.js","webpack://puregym.site.join/./node_modules/react-focus-on/dist/es2015/UI.js","webpack://puregym.site.join/./node_modules/use-sidecar/dist/es2015/exports.js","webpack://puregym.site.join/./node_modules/react-clientside-effect/lib/index.es.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/array.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/is.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/tabOrder.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/tabUtils.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/tabbables.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/DOMutils.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/getActiveElement.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/safe.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/all-affected.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/focusInside.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/commands.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/correctFocus.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/firstFocus.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/solver.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/auto-focus.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/utils/parenting.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/focusSolver.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/moveFocusInside.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/sibling.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/return-focus.js","webpack://puregym.site.join/./node_modules/react-focus-lock/dist/es2015/util.js","webpack://puregym.site.join/./node_modules/react-focus-lock/dist/es2015/Trap.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/focusIsHidden.js","webpack://puregym.site.join/./node_modules/focus-lock/dist/es2015/focusables.js","webpack://puregym.site.join/./node_modules/get-nonce/dist/es2015/index.js","webpack://puregym.site.join/./node_modules/react-focus-lock/dist/es2015/sidecar.js","webpack://puregym.site.join/./node_modules/react-style-singleton/dist/es2015/singleton.js","webpack://puregym.site.join/./node_modules/react-style-singleton/dist/es2015/component.js","webpack://puregym.site.join/./node_modules/react-style-singleton/dist/es2015/hook.js","webpack://puregym.site.join/./node_modules/react-remove-scroll-bar/dist/es2015/utils.js","webpack://puregym.site.join/./node_modules/react-remove-scroll-bar/dist/es2015/component.js","webpack://puregym.site.join/./node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js","webpack://puregym.site.join/./node_modules/react-remove-scroll/dist/es2015/handleScroll.js","webpack://puregym.site.join/./node_modules/react-remove-scroll/dist/es2015/SideEffect.js","webpack://puregym.site.join/./node_modules/react-remove-scroll/dist/es2015/sidecar.js","webpack://puregym.site.join/./node_modules/aria-hidden/dist/es2015/index.js","webpack://puregym.site.join/./node_modules/react-focus-on/dist/es2015/InteractivityDisabler.js","webpack://puregym.site.join/./node_modules/react-focus-on/dist/es2015/Effect.js","webpack://puregym.site.join/./node_modules/react-focus-on/dist/es2015/sidecar.js","webpack://puregym.site.join/./node_modules/react-focus-on/dist/es2015/Combination.js","webpack://puregym.site.join/./node_modules/dom-helpers/esm/removeClass.js","webpack://puregym.site.join/./node_modules/react-transition-group/esm/CSSTransition.js","webpack://puregym.site.join/./node_modules/dom-helpers/esm/addClass.js","webpack://puregym.site.join/./node_modules/dom-helpers/esm/hasClass.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/hooks/useFocusable.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/hooks/usePrevious.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/nav/menuContext.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/nav/constants.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/dropdown/constants.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/nav/styles.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/icons/generated/ArrowLeft.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/arrow/index.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/nav/seoSubNav.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/nav/menuListItem.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/nav/menuPanel.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/nav/index.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/icons/generated/Menu.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/icons/generated/AccountCircle.js","webpack://puregym.site.join/./node_modules/@puregym/gatsby-plugin-header/index.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/static/images/logos/puregym/primary-inverted.svg","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/static/images/logos/puregymuae/primary-inverted.svg","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/static/images/logos/purefitness/primary-inverted.svg","webpack://puregym.site.join/./src/components/layout/header.tsx","webpack://puregym.site.join/./src/utilities/getPageHeading.ts","webpack://puregym.site.join/./src/components/layout/joinHeading.tsx","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/icons/generated/CheckCircle.js","webpack://puregym.site.join/./node_modules/@puregym/ui/dist/ui/progressBar/index.js","webpack://puregym.site.join/./src/components/layout/joinProgress/useProgressPercentage.ts","webpack://puregym.site.join/./src/components/layout/joinProgress/progressListItem.tsx","webpack://puregym.site.join/./src/components/layout/joinProgress/joinProgress.tsx","webpack://puregym.site.join/./src/styles/Layout.tsx","webpack://puregym.site.join/./src/components/layout/stickyProgress.tsx","webpack://puregym.site.join/./src/utilities/getPrefixPath.ts","webpack://puregym.site.join/./src/components/progressSummary/styles.tsx","webpack://puregym.site.join/./src/components/progressSummary/gymSummary.tsx","webpack://puregym.site.join/./src/components/progressSummary/termSummary.tsx","webpack://puregym.site.join/./src/components/progressSummary/progressSummary.tsx","webpack://puregym.site.join/./node_modules/@flagship.io/react-sdk/dist/src/internalType.js","webpack://puregym.site.join/./src/components/providers/wrappedFlagshipProvider.tsx","webpack://puregym.site.join/./wrapElement.tsx","webpack://puregym.site.join/./gatsby-browser.ts","webpack://puregym.site.join/./node_modules/@puregym/gatsby-plugin-hooks/useDate.ts","webpack://puregym.site.join/./node_modules/@puregym/gatsby-plugin-hooks/useFetch.ts","webpack://puregym.site.join/./src/components/common/errorMessage.tsx","webpack://puregym.site.join/./src/utilities/dataLayer.ts","webpack://puregym.site.join/./src/utilities/experiments/getItemId.ts","webpack://puregym.site.join/./src/utilities/experiments/sendABTastyTransaction.ts","webpack://puregym.site.join/./src/components/dataLayer.tsx","webpack://puregym.site.join/./src/utilities/experiments/useFlagshipTransaction.ts","webpack://puregym.site.join/./src/components/labels.ts","webpack://puregym.site.join/./src/components/packageLink.tsx","webpack://puregym.site.join/./src/components/providers/brandState.tsx","webpack://puregym.site.join/./src/components/providers/buddyState.tsx","webpack://puregym.site.join/./src/components/providers/joinState.tsx","webpack://puregym.site.join/./src/components/providers/pageContext.tsx","webpack://puregym.site.join/./src/components/providers/rejoinState.tsx","webpack://puregym.site.join/./src/components/providers/userState.tsx","webpack://puregym.site.join/./src/constants/page.ts","webpack://puregym.site.join/./src/utilities/dayjs.ts","webpack://puregym.site.join/./src/utilities/experiments/applyFlagshipPrefix.ts","webpack://puregym.site.join/./src/utilities/experiments/useFlagshipFlag.ts","webpack://puregym.site.join/./src/utilities/experiments/pushFlagshipDataAsync.ts","webpack://puregym.site.join/./src/utilities/formatSalesTax.ts","webpack://puregym.site.join/./src/utilities/getPathPrefix.ts","webpack://puregym.site.join/./src/utilities/getTermPath.ts","webpack://puregym.site.join/./src/utilities/intl.ts","webpack://puregym.site.join/./src/utilities/page.ts","webpack://puregym.site.join/./src/utilities/useCostBreakdown.ts","webpack://puregym.site.join/./src/utilities/useIsMounted.ts","webpack://puregym.site.join/./src/utilities/useStartDate.ts","webpack://puregym.site.join/./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack://puregym.site.join/./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","webpack://puregym.site.join/./node_modules/hoist-non-react-statics/node_modules/react-is/index.js","webpack://puregym.site.join/./node_modules/invariant/browser.js","webpack://puregym.site.join/./node_modules/polished/lib/color/darken.js","webpack://puregym.site.join/./node_modules/polished/lib/color/hsl.js","webpack://puregym.site.join/./node_modules/polished/lib/color/hsla.js","webpack://puregym.site.join/./node_modules/polished/lib/color/lighten.js","webpack://puregym.site.join/./node_modules/polished/lib/color/mix.js","webpack://puregym.site.join/./node_modules/polished/lib/color/parseToHsl.js","webpack://puregym.site.join/./node_modules/polished/lib/color/parseToRgb.js","webpack://puregym.site.join/./node_modules/polished/lib/color/rgb.js","webpack://puregym.site.join/./node_modules/polished/lib/color/rgba.js","webpack://puregym.site.join/./node_modules/polished/lib/color/shade.js","webpack://puregym.site.join/./node_modules/polished/lib/color/tint.js","webpack://puregym.site.join/./node_modules/polished/lib/color/toColorString.js","webpack://puregym.site.join/./node_modules/polished/lib/internalHelpers/_curry.js","webpack://puregym.site.join/./node_modules/polished/lib/internalHelpers/_errors.js","webpack://puregym.site.join/./node_modules/polished/lib/internalHelpers/_guard.js","webpack://puregym.site.join/./node_modules/polished/lib/internalHelpers/_hslToHex.js","webpack://puregym.site.join/./node_modules/polished/lib/internalHelpers/_hslToRgb.js","webpack://puregym.site.join/./node_modules/polished/lib/internalHelpers/_nameToHex.js","webpack://puregym.site.join/./node_modules/polished/lib/internalHelpers/_numberToHex.js","webpack://puregym.site.join/./node_modules/polished/lib/internalHelpers/_reduceHexValue.js","webpack://puregym.site.join/./node_modules/polished/lib/internalHelpers/_rgbToHsl.js","webpack://puregym.site.join/./node_modules/react-error-boundary/dist/react-error-boundary.umd.js","webpack://puregym.site.join/./node_modules/react-is/cjs/react-is.production.min.js","webpack://puregym.site.join/./node_modules/react-is/index.js","webpack://puregym.site.join/./node_modules/react-modal/lib/components/Modal.js","webpack://puregym.site.join/./node_modules/react-modal/lib/components/ModalPortal.js","webpack://puregym.site.join/./node_modules/react-modal/lib/helpers/ariaAppHider.js","webpack://puregym.site.join/./node_modules/react-modal/lib/helpers/bodyTrap.js","webpack://puregym.site.join/./node_modules/react-modal/lib/helpers/classList.js","webpack://puregym.site.join/./node_modules/react-modal/lib/helpers/focusManager.js","webpack://puregym.site.join/./node_modules/react-modal/lib/helpers/portalOpenInstances.js","webpack://puregym.site.join/./node_modules/react-modal/lib/helpers/safeHTMLElement.js","webpack://puregym.site.join/./node_modules/react-modal/lib/helpers/scopeTab.js","webpack://puregym.site.join/./node_modules/react-modal/lib/helpers/tabbable.js","webpack://puregym.site.join/./node_modules/react-modal/lib/index.js","webpack://puregym.site.join/./node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack.production.min.js","webpack://puregym.site.join/./node_modules/react-server-dom-webpack/index.js","webpack://puregym.site.join/./node_modules/react-transition-group/esm/config.js","webpack://puregym.site.join/./node_modules/react-transition-group/esm/TransitionGroupContext.js","webpack://puregym.site.join/./node_modules/react-transition-group/esm/Transition.js","webpack://puregym.site.join/./node_modules/react-transition-group/esm/utils/reflow.js","webpack://puregym.site.join/./node_modules/shallowequal/index.js","webpack://puregym.site.join/./node_modules/@emotion/stylis/dist/stylis.browser.esm.js","webpack://puregym.site.join/./node_modules/styled-components/node_modules/@emotion/unitless/dist/unitless.browser.esm.js","webpack://puregym.site.join/./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","webpack://puregym.site.join/./node_modules/styled-components/dist/styled-components.browser.esm.js","webpack://puregym.site.join/./node_modules/styled-normalize/dist/index.js","webpack://puregym.site.join/./node_modules/styled-theming/index.js","webpack://puregym.site.join/./node_modules/warning/warning.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/inheritsLoose.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://puregym.site.join/./node_modules/@builder.io/partytown/integration/index.cjs","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://puregym.site.join/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://puregym.site.join/./node_modules/@gatsbyjs/reach-router/dist/index.modern.mjs","webpack://puregym.site.join/./node_modules/gatsby-link/dist/index.modern.mjs","webpack://puregym.site.join/./node_modules/gatsby-script/dist/index.modern.mjs","webpack://puregym.site.join/./node_modules/js-cookie/dist/js.cookie.mjs"],"sourcesContent":["function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","export var DecisionMode;\n(function (DecisionMode) {\n /**\n * /**\n * Flagship SDK mode decision api\n */\n DecisionMode[\"DECISION_API\"] = \"DECISION-API\";\n /**\n * Flagship SDK mode bucketing\n */\n DecisionMode[\"BUCKETING\"] = \"BUCKETING\";\n DecisionMode[\"BUCKETING_EDGE\"] = \"BUCKETING_EDGE\";\n})(DecisionMode || (DecisionMode = {}));\n","/**\n * Enum representing the reasons for fetching Flags.\n */\nexport var FSFetchReasons;\n(function (FSFetchReasons) {\n /**\n * Indicates that a context has been updated or changed.\n */\n FSFetchReasons[\"UPDATE_CONTEXT\"] = \"UPDATE_CONTEXT\";\n /**\n * Indicates that the XPC method 'authenticate' has been called.\n */\n FSFetchReasons[\"AUTHENTICATE\"] = \"AUTHENTICATE\";\n /**\n * Indicates that the XPC method 'unauthenticate' has been called.\n */\n FSFetchReasons[\"UNAUTHENTICATE\"] = \"UNAUTHENTICATE\";\n /**\n * Indicates that fetching flags has failed.\n */\n FSFetchReasons[\"FETCH_ERROR\"] = \"FETCH_ERROR\";\n /**\n * Indicates that flags have been fetched from the cache.\n */\n FSFetchReasons[\"READ_FROM_CACHE\"] = \"READ_FROM_CACHE\";\n /**\n * Indicates that the visitor has been created.\n */\n FSFetchReasons[\"VISITOR_CREATED\"] = \"VISITOR_CREATED\";\n /**\n * Indicates that there is no specific reason for fetching flags.\n */\n FSFetchReasons[\"NONE\"] = \"NONE\";\n})(FSFetchReasons || (FSFetchReasons = {}));\n","/**\n * Represents the status of the flags in the Flagship SDK.\n */\nexport var FSFetchStatus;\n(function (FSFetchStatus) {\n /**\n * The flags have been successfully fetched from the API or re-evaluated in bucketing mode.\n */\n FSFetchStatus[\"FETCHED\"] = \"FETCHED\";\n /**\n * The flags are currently being fetched from the API or re-evaluated in bucketing mode.\n */\n FSFetchStatus[\"FETCHING\"] = \"FETCHING\";\n /**\n * The flags need to be re-fetched due to a change in context, or because the flags were loaded from cache or XPC.\n */\n FSFetchStatus[\"FETCH_REQUIRED\"] = \"FETCH_REQUIRED\";\n /**\n * The SDK is in PANIC mode: All features are disabled except for the one to fetch flags.\n */\n FSFetchStatus[\"PANIC\"] = \"PANIC\";\n})(FSFetchStatus || (FSFetchStatus = {}));\n","/**\n * Represents the status of the flags in the Flagship SDK.\n */\nexport var FSFlagStatus;\n(function (FSFlagStatus) {\n /**\n * The flags have been successfully fetched from the API or re-evaluated in bucketing mode.\n */\n FSFlagStatus[\"FETCHED\"] = \"FETCHED\";\n /**\n * The flags need to be re-fetched due to a change in context, or because the flags were loaded from cache or XPC.\n */\n FSFlagStatus[\"FETCH_REQUIRED\"] = \"FETCH_REQUIRED\";\n /**\n * The flag was not found or do not exist.\n */\n FSFlagStatus[\"NOT_FOUND\"] = \"NOT_FOUND\";\n /**\n * The SDK is in PANIC mode: All features are disabled except for the one to fetch flags.\n */\n FSFlagStatus[\"PANIC\"] = \"PANIC\";\n})(FSFlagStatus || (FSFlagStatus = {}));\n","/**\n * Enum representing the status of the Flagship SDK.\n */\nexport var FSSdkStatus;\n(function (FSSdkStatus) {\n /**\n * It is the default initial status. This status remains until the sdk has been initialized successfully.\n */\n FSSdkStatus[FSSdkStatus[\"SDK_NOT_INITIALIZED\"] = 0] = \"SDK_NOT_INITIALIZED\";\n /**\n * The SDK is currently initializing.\n */\n FSSdkStatus[FSSdkStatus[\"SDK_INITIALIZING\"] = 1] = \"SDK_INITIALIZING\";\n /**\n * Flagship SDK is ready but is running in Panic mode: All features are disabled except the one which refresh this status.\n */\n FSSdkStatus[FSSdkStatus[\"SDK_PANIC\"] = 2] = \"SDK_PANIC\";\n /**\n * The Initialization is done, and Flagship SDK is ready to use.\n */\n FSSdkStatus[FSSdkStatus[\"SDK_INITIALIZED\"] = 3] = \"SDK_INITIALIZED\";\n})(FSSdkStatus || (FSSdkStatus = {}));\n","import { version } from '../sdkVersion';\n/**\n * SDK language\n */\nexport const SDK_INFO = {\n name: 'TypeScript',\n version\n};\n/**\n * Default request timeout in second\n */\nexport const REQUEST_TIME_OUT = 2;\nexport const FETCH_FLAG_BUFFERING_DEFAULT_TIME = 2;\nexport const DEFAULT_DEDUPLICATION_TIME = 2.5;\nexport const DEFAULT_POLLING_INTERVAL = 5;\nexport const DEFAULT_SERVER_TIME_INTERVAL = 10;\nexport const DEFAULT_SERVER_POOL_MAX_SIZE = 100;\nexport const DEFAULT_BROWSER_TIME_INTERVAL = 5;\nexport const DEFAULT_BROWSER_POOL_MAX_SIZE = 10;\nexport const BATCH_MAX_SIZE = 2500000;\nexport const ANALYTIC_HIT_ALLOCATION = 1;\n/**\n * Decision api base url\n */\nexport const BASE_API_URL = 'https://decision.flagship.io/v2/';\nexport const HIT_API_URL = 'https://ariane.abtasty.com';\nexport const HIT_EVENT_URL = 'https://events.flagship.io';\nexport const TROUBLESHOOTING_HIT_URL = 'https://events.flagship.io/troubleshooting';\nexport const USAGE_HIT_URL = 'https://events.flagship.io/analytics';\nexport const BUCKETING_API_URL = 'https://cdn.flagship.io/{0}/bucketing.json';\nexport const BUCKETING_API_CONTEXT_URL = 'https://decision.flagship.io/v2/{0}/events';\nexport const THIRD_PARTY_SEGMENT_URL = 'https://api-data-connector.flagship.io/accounts/{0}/segments/{1}';\nexport const HIT_CONSENT_URL = 'https://ariane.abtasty.com';\nexport const URL_CAMPAIGNS = '/campaigns';\nexport const URL_ACTIVATE_MODIFICATION = 'activate';\nexport const QA_ASSISTANT_PROD_URL = 'https://qa-assistant.flagship.io/bundle.js';\nexport const QA_ASSISTANT_STAGING_URL = 'https://staging-qa-assistant.flagship.io/bundle.js';\nexport const QA_ASSISTANT_LOCAL_URL = 'https://local-qa-assistant.flagship.io/bundle.js';\nexport const FS_QA_ASSISTANT = 'fs_qa_assistant';\nexport const FS_QA_ASSISTANT_STAGING = 'fs_qa_assistant_staging';\nexport const FS_QA_ASSISTANT_LOCAL = 'fs_qa_assistant_local';\nexport const TAG_QA_ASSISTANT = 'abtasty_qa_assistant';\nexport const TAG_QA_ASSISTANT_STAGING = 'abtasty_qa_assistant_staging';\nexport const TAG_QA_ASSISTANT_LOCAL = 'abtasty_qa_assistant_local';\nexport const TAG_QA_URL = 'qa-assistant.abtasty.com';\nexport const FS_QA_URL = 'qa-assistant.flagship.io';\nexport const EXPOSE_ALL_KEYS = 'exposeAllKeys';\nexport const SEND_CONTEXT_EVENT = 'sendContextEvent';\nexport const FS_CONSENT = 'fs_consent';\nexport const FS_IS_QA_MODE_ENABLED = 'FS_IS_QA_MODE_ENABLED';\nexport const FS_FORCED_VARIATIONS = 'FS_FORCED_VARIATIONS';\nexport const FS_QA_ASSISTANT_SCRIPT_TAG_ID = 'FS_QA_ASSISTANT_SCRIPT_TAG_ID';\n/**\n * SDK version\n */\nexport const SDK_VERSION = version;\nexport const VISITOR_CACHE_VERSION = 1;\nexport const HIT_CACHE_VERSION = 1;\nexport const DEFAULT_HIT_CACHE_TIME_MS = 14400000;\n/**\n * Message Info\n */\nexport const SDK_STARTED_INFO = 'Flagship SDK (version: {0}) {1}';\nexport const FLAGSHIP_SDK = 'Flagship SDK';\nexport const EMIT_READY = 'ready';\nexport const EMIT_STATUS = 'status';\nexport const NO_BATCHING_WITH_CONTINUOUS_CACHING_STRATEGY = 3;\nexport const JS_DOC_URL = 'https://docs.developers.flagship.io/docs/js-v3';\nexport const PANIC_MODE_DOC_URL = 'https://docs.developers.flagship.io/docs/glossary#panic-mode';\n/**\n * Message Error\n */\nexport const INITIALIZATION_PARAM_ERROR = `Params 'envId' and 'apiKey' must not be null or empty.\n Learn more: ${JS_DOC_URL}#initialization`;\nexport const ERROR = 'error';\nexport const CONTEXT_NULL_ERROR = 'Context must not to be null';\nexport const CONTEXT_PARAM_ERROR = \"params {0} must be a non null String, and 'value' must be one of the following types , Number, Boolean\";\nexport const GET_MODIFICATION_CAST_ERROR = 'Modification for key {0} has a different type. Default value is returned.';\nexport const GET_MODIFICATION_MISSING_ERROR = 'No modification for key {0}. Default value is returned.';\nexport const GET_MODIFICATION_KEY_ERROR = 'Key {0} must not be null. Default value is returned.';\nexport const ACTIVATE_MODIFICATION_KEY_ERROR = 'Key {0} must not be null, no activate will be sent.';\nexport const GET_MODIFICATION_ERROR = 'No modification for key {0}.';\nexport const GET_FLAG_ERROR = 'No flag for key {0}.';\nexport const ACTIVATE_MODIFICATION_ERROR = 'No modification for key {0}, no activate will be sent.';\nexport const DECISION_MANAGER_MISSING_ERROR = 'decisionManager must not be null.';\nexport const TRACKER_MANAGER_MISSING_ERROR = 'trackerManager must not be null.';\nexport const CURL_LIBRARY_IS_NOT_LOADED = 'curl library is not loaded';\nexport const TYPE_ERROR = '{0} must be a {1}';\nexport const TYPE_INTEGER_ERROR = 'value of {0} is not an {1}, it will be truncated to {1}';\nexport const VISITOR_ID_ERROR = 'visitorId must not be null or empty';\nexport const PANIC_MODE_ERROR = '{0} deactivated while panic mode is on.';\nexport const METHOD_DEACTIVATED_CONSENT_ERROR = 'Method {0} is deactivated for visitor {1} : visitor did not consent.';\nexport const METHOD_DEACTIVATED_ERROR = 'Visitor {0}, method {1} is deactivated while SDK status is: {2}.';\nexport const METHOD_DEACTIVATED_SEND_CONSENT_ERROR = 'Send consent hit is deactivated while SDK status is: {1}.';\nexport const TROUBLESHOOTING_HIT_ADDED_IN_QUEUE = 'The TROUBLESHOOTING HIT has been added to the pool queue : {0}';\nexport const ANALYTICS_HIT_ADDED_IN_QUEUE = 'The USAGE HIT has been added to the pool queue : {0}';\nexport const ACTIVATE_ADDED_IN_QUEUE = 'The ACTIVATE has been added to the pool queue : {0}';\nexport const HIT_ADDED_IN_QUEUE = 'The HIT has been added into the pool queue : {0}';\nexport const ADD_HIT = 'ADD HIT';\nexport const ADD_TROUBLESHOOTING_HIT = 'ADD TROUBLESHOOTING HIT';\nexport const ADD_USAGE_HIT = 'ADD USAGE HIT';\nexport const ADD_ACTIVATE = 'ADD ACTIVATE';\nexport const BATCH_SENT_SUCCESS = 'Batch hit has been sent : {0}';\nexport const TROUBLESHOOTING_SENT_SUCCESS = 'Troubleshooting hit has been sent : {0}';\nexport const ANALYTICS_HIT_SENT_SUCCESS = 'Usage hit has been sent : {0}';\nexport const ACTIVATE_SENT_SUCCESS = 'Activate hit has been sent : {0}';\nexport const SEND_BATCH = 'SEND BATCH';\nexport const SEND_TROUBLESHOOTING = 'SEND TROUBLESHOOTING';\nexport const SEND_USAGE_HIT = 'SEND USAGE HIT';\nexport const SEND_ACTIVATE = 'SEND ACTIVATE';\nexport const SEND_SEGMENT_HIT = 'SEND SEGMENT HIT';\nexport const SEND_HIT = 'SEND HIT';\nexport const EVENT_SUFFIX = 'events';\nexport const FETCH_FLAGS_BUFFERING_MESSAGE = 'Visitor {0}, fetchFlags has been ignored and will continue to be ignored for the next {1}ms, this delay can be changed with `fetchFlagsBufferingTime` option in the SDK config';\nexport const VISITOR_SYNC_FLAGS_MESSAGE = 'without calling `fetchFlags` method afterwards. So, the value of the flag `{1}` might be outdated';\nexport const NEW_VISITOR_NOT_READY = `You can't create a new visitor without first calling the \"Flagship.start\" method.\nLearn more: ${JS_DOC_URL}#initialization\n`;\nexport const LOOKUP_HITS_JSON_OBJECT_ERROR = 'JSON DATA must fit the type HitCacheDTO';\nexport const ACTIVATE_BATCH_LENGTH = 5;\n// Process\nexport const PROCESS = 'process';\nexport const PROCESS_INITIALIZATION = 'INITIALIZATION';\nexport const PROCESS_UPDATE_CONTEXT = 'UPDATE CONTEXT';\nexport const PROCESS_GET_MODIFICATION = 'GET MODIFICATION';\nexport const PROCESS_GET_MODIFICATION_INFO = 'GET MODIFICATION INFO';\nexport const PROCESS_NEW_VISITOR = 'NEW VISITOR';\nexport const PROCESS_ACTIVE_MODIFICATION = 'ACTIVE MODIFICATION';\nexport const PROCESS_SYNCHRONIZED_MODIFICATION = 'SYNCHRONIZED MODIFICATION';\nexport const PROCESS_SEND_HIT = 'ADD HIT';\nexport const PROCESS_SEND_ACTIVATE = 'SEND ACTIVATE';\nexport const PROCESS_GET_CAMPAIGNS = 'GET CAMPAIGNS';\nexport const PROCESS_GET_ALL_MODIFICATION = 'GET ALL MODIFICATIONS';\nexport const PROCESS_MODIFICATIONS_FOR_CAMPAIGN = 'GET MODIFICATION FOR CAMPAIGN';\nexport const PROCESS_CACHE_HIT = 'CACHE HIT';\nexport const PROCESS_FLUSH_HIT = 'FLUSH HIT';\nexport const PROCESS_LOOKUP_HIT = 'LOOKUP HIT';\n// Api items\nexport const BATCH = 'batch';\nexport const CUSTOMER_ENV_ID_API_ITEM = 'cid';\nexport const CUSTOMER_ENV_ID_API_ACTIVATE = 'cid';\nexport const CUSTOMER_UID = 'cuid';\nexport const ANONYMOUS_ID = 'aid';\nexport const VISITOR_ID_API_ITEM = 'vid';\nexport const VARIATION_GROUP_ID_API_ITEM = 'caid';\nexport const VARIATION_GROUP_ID_API_ITEM_ACTIVATE = 'caid';\nexport const VISITOR_CONSENT = 'vc';\nexport const CAMPAIGN_ID = 'caid';\nexport const VARIATION_ID_API_ITEM = 'vaid';\nexport const DS_API_ITEM = 'ds';\nexport const T_API_ITEM = 't';\nexport const QT_API_ITEM = 'qt';\nexport const QA_MODE_API_ITEM = 'qa';\nexport const DL_API_ITEM = 'dl';\nexport const SL_ITEM = 'sl';\nexport const SDK_APP = 'APP';\nexport const TID_API_ITEM = 'tid';\nexport const TA_API_ITEM = 'ta';\nexport const TT_API_ITEM = 'tt';\nexport const TC_API_ITEM = 'tc';\nexport const TCC_API_ITEM = 'tcc';\nexport const ICN_API_ITEM = 'icn';\nexport const SM_API_ITEM = 'sm';\nexport const PM_API_ITEM = 'pm';\nexport const TR_API_ITEM = 'tr';\nexport const TS_API_ITEM = 'ts';\nexport const IN_API_ITEM = 'in';\nexport const IC_API_ITEM = 'ic';\nexport const IP_API_ITEM = 'ip';\nexport const IQ_API_ITEM = 'iq';\nexport const IV_API_ITEM = 'iv';\nexport const S_API_ITEM = 's';\nexport const EVENT_CATEGORY_API_ITEM = 'ec';\nexport const EVENT_ACTION_API_ITEM = 'ea';\nexport const EVENT_LABEL_API_ITEM = 'el';\nexport const EVENT_VALUE_API_ITEM = 'ev';\nexport const USER_IP_API_ITEM = 'uip';\nexport const SCREEN_RESOLUTION_API_ITEM = 'sr';\nexport const USER_LANGUAGE = 'ul';\nexport const SESSION_NUMBER = 'sn';\nexport const HEADER_X_API_KEY = 'x-api-key';\nexport const HEADER_X_ENV_ID = 'x-env-id';\nexport const HEADER_CONTENT_TYPE = 'Content-Type';\nexport const HEADER_X_SDK_CLIENT = 'x-sdk-client';\nexport const HEADER_X_SDK_VERSION = 'x-sdk-version';\nexport const HEADER_APPLICATION_JSON = 'application/json';\n// Log\nexport const INITIALIZATION_STARTING = 'Flagship SDK version {0} is starting in {1} mode with config {2}';\nexport const BUCKETING_POOLING_STARTED = 'Bucketing polling process has been started';\nexport const BUCKETING_POOLING_STOPPED = 'Bucketing polling process has been stopped';\nexport const PROCESS_BUCKETING = 'BUCKETING';\nexport const POLLING_EVENT_200 = 'Polling event with code status 200 : {0}';\nexport const POLLING_EVENT_300 = 'Polling event with code status 304';\nexport const POLLING_EVENT_FAILED = 'Polling event failed with error';\nexport const PROCESS_SDK_STATUS = 'SDK STATUS';\nexport const SDK_STATUS_CHANGED = 'SDK status has changed: {0}';\nexport const SAVE_VISITOR_INSTANCE = 'Visitor {0} has been saved in SDK instance';\nexport const VISITOR_CREATED = 'Visitor {0} has been created with context {1}, isAuthenticated:{2} and hasConsented {3}';\nexport const VISITOR_PROFILE_LOADED = 'Visitor profile has been loaded {0}';\nexport const VISITOR_ID_GENERATED = 'Visitor identifier is empty. A UUID {0} has been generated.';\nexport const PREDEFINED_CONTEXT_LOADED = 'Predefined Context have been loaded {0}';\nexport const CONTEXT_KEY_ERROR = `Visitor {0}, the key '{1}' must be a non null String.\nLearn more: ${JS_DOC_URL}#updating-the-visitor-context`;\nexport const CONTEXT_VALUE_ERROR = `Visitor {0}, 'value' for key '{1}[], must be one of the following types : String, Number, Boolean\nLearn more: ${JS_DOC_URL}#updating-the-visitor-context`;\nexport const PREDEFINED_CONTEXT_TYPE_ERROR = `visitor {0}, Predefined Context {0} must be of type {1}\nLearn more: ${JS_DOC_URL}#predefined-user-context-keys-`;\nexport const CONTEXT_KEY_VALUE_UPDATE = 'visitor `{0}`, context have been updated: key {1}, value {2}, Context {3}';\nexport const CONTEXT_OBJET_PARAM_UPDATE = 'visitor `{0}`, context have been updated: key/value {1}, Context {2}';\nexport const CLEAR_CONTEXT = 'visitor `{0}`, context has been cleared cleared `{1}`';\nexport const PROCESS_CLEAR_CONTEXT = 'CLEAR_CONTEXT';\nexport const CONSENT_CHANGED = 'Visitor `{0}` consent has been changed : {1}';\nexport const PROCESS_SET_CONSENT = 'SET_CONSENT';\nexport const FETCH_CAMPAIGNS_SUCCESS = 'Visitor {0}, anonymousId {1} with context {2} has just fetched campaigns {3} in {4} ms';\nexport const FETCH_CAMPAIGNS_FROM_CACHE = 'Visitor {0}, anonymousId {1} with context {2} has just fetched campaigns from cache {3} in {4} ms';\nexport const FETCH_FLAGS_FROM_CAMPAIGNS = 'Visitor {0}, anonymousId {1} with context {2} has just fetched flags {3} from Campaigns';\nexport const FETCH_FLAGS_STARTED = 'visitor `{0}` fetchFlags process is started';\nexport const FETCH_FLAGS_PANIC_MODE = 'Panic mode is enabled : all feature are disabled except fetchFlags.';\nexport const PROCESS_FETCHING_FLAGS = 'FETCH_FLAGS';\nexport const GET_FLAG_MISSING_ERROR = 'For the visitor \"{0}\", no flags were found with the key \"{1}\". Therefore, the default value \"{2}\" has been returned.';\nexport const GET_FLAG_NOT_FOUND = 'For the visitor \"{0}\", no flags were found with the key \"{1}\". Therefore, an empty flag has been returned.';\nexport const FETCH_FLAGS_MISSING = 'Visitor {0} has {1} without calling fetchFlags method, ';\nexport const FLAG_VALUE = 'FLAG_VALUE';\nexport const GET_FLAG = 'GET_FLAG';\nexport const GET_FLAG_CAST_ERROR = 'For the visitor \"{0}\", the flag with key \"{1}\" has a different type compared to the default value. Therefore, the default value \"{2}\" has been returned.';\nexport const GET_FLAG_VALUE = 'Visitor {0}, Flag for key {1} returns value {2}';\nexport const USER_EXPOSED_FLAG_ERROR = 'For the visitor \"{0}\", no flags were found with the key \"{1}\". As a result, user exposure will not be sent.';\nexport const VISITOR_EXPOSED_VALUE_NOT_CALLED = 'Visitor \"{0}\", the flag with the key \"{1}\" has been exposed without calling the `getValue` method first.';\nexport const FLAG_VISITOR_EXPOSED = 'FLAG_VISITOR_EXPOSED';\nexport const USER_EXPOSED_CAST_ERROR = 'For the visitor \"{0}\", the flag with key \"{1}\" has been exposed despite having a different type compared to the default value';\nexport const GET_METADATA_CAST_ERROR = 'Visitor {0}, Flag for key {1} has a different type with default value: Empty metadata object is returned {2}';\nexport const FLAG_METADATA = 'FLAG_METADATA';\nexport const NO_FLAG_METADATA = 'Visitor {0}, No Flags found for key {1}: Empty metadata object is returned';\nexport const METADATA_SDK_NOT_READY = `Visitor {0}, Flag for key {1} Method Flag.metadata is deactivated while SDK status is NOT_READY: Empty metadata object is returned {2}\nLearn more: ${JS_DOC_URL}#getting-flags-campaigns-metadata`;\nexport const METADATA_PANIC_MODE = `Visitor {0}, Flag for key {1} Method Flag.metadata is deactivated while SDK status is PANIC: Empty metadata object is returned {2}\nLearn more: ${PANIC_MODE_DOC_URL}`;\nexport const AUTHENTICATE = 'AUTHENTICATE';\nexport const VISITOR_AUTHENTICATE = 'The visitor is authenticated with new visitor ID {0} anonymous ID {1}';\nexport const VISITOR_ALREADY_AUTHENTICATE = 'The visitor is already authenticated with visitor ID {0}';\nexport const METHOD_DEACTIVATED_BUCKETING_ERROR = 'Visitor {0}, Method {1} is deactivated on Bucketing mode';\nexport const VISITOR_AUTHENTICATE_VISITOR_ID_ERROR = `Visitor {0}, visitorId must not be null or empty\nLearn more: ${JS_DOC_URL}#authenticate`;\nexport const VISITOR_UNAUTHENTICATE = 'The visitor is unauthenticated with visitor ID {0}';\nexport const UNAUTHENTICATE = 'UNAUTHENTICATE';\nexport const FLAGSHIP_VISITOR_NOT_AUTHENTICATE = 'Visitor {0} is not authenticated yet';\nexport const ALLOCATION = 'ALLOCATION';\nexport const BUCKETING_VARIATION_CACHE = 'Visitor {0}, Variation {1} selected from cache.';\nexport const BUCKETING_NEW_ALLOCATION = 'Visitor {0}, Variation {1} selected with allocation {2}.';\nexport const LOOKUP_VISITOR_JSON_OBJECT_ERROR = `lookupVisitor method has loaded a bad format version ({0}) for visitor {1}.\nLearn more: ${JS_DOC_URL}#managing-visitor-cache`;\nexport const PROCESS_CACHE = 'CACHE';\nexport const VISITOR_CACHE_ERROR = 'visitor {0}. {1} threw an exception {2}';\nexport const HIT_CACHE_ERROR = '{0} threw an exception {1}';\nexport const VISITOR_CACHE_LOADED = 'Visitor {0}, visitor cache has been loaded from database: {1}';\nexport const VISITOR_CACHE_SAVED = 'Visitor {0}, visitor cache has been saved into database : {0}';\nexport const VISITOR_CACHE_FLUSHED = 'Visitor {0}, visitor cache has been flushed from database.';\nexport const HIT_CACHE_LOADED = 'Hits cache has been loaded from database: {0}';\nexport const HIT_CACHE_SAVED = 'Hit cache has been saved into database : {0}';\nexport const HIT_DATA_FLUSHED = 'The following hit keys have been flushed from database : {0}';\nexport const ALL_HITS_FLUSHED = 'All hits cache has been flushed from database';\nexport const BATCH_LOOP_STARTED = 'The Batch Loop has been started with a time interval of {0} ms';\nexport const TRACKING_MANAGER = 'TRACKING_MANAGER';\nexport const BATCH_LOOP_STOPPED = 'The Batch Loop has been stopped';\nexport const TRACKING_MANAGER_ERROR = '{0} Unexpected Error occurred {1}';\nexport const HIT_SENT_SUCCESS = '{0} has been sent : {1}';\nexport const ACTIVATE_HIT = 'ACTIVATE HIT';\nexport const BATCH_HIT = 'BATCH HIT';\nexport const DIRECT_HIT = 'HIT';\nexport const GET_THIRD_PARTY_SEGMENT = 'GET_THIRD_PARTY_SEGMENT';\nexport const CONSENT_NOT_SPECIFY_WARNING = 'Consent has not been specified. By default, consent is set to false, which may result in some features being deactivated.';\n","export var HitType;\n(function (HitType) {\n /**\n * User has seen a URL\n *\n */\n HitType[\"PAGE_VIEW\"] = \"PAGEVIEW\";\n /**\n * User has seen a URL\n *\n */\n HitType[\"PAGE\"] = \"PAGEVIEW\";\n /**\n * User has seen a screen.\n *\n */\n HitType[\"SCREEN_VIEW\"] = \"SCREENVIEW\";\n /**\n * User has seen a screen.\n *\n */\n HitType[\"SCREEN\"] = \"SCREENVIEW\";\n /**\n * User has made a transaction.\n *\n */\n HitType[\"TRANSACTION\"] = \"TRANSACTION\";\n /**\n * Item bought in a transaction.\n *\n */\n HitType[\"ITEM\"] = \"ITEM\";\n /**\n * User has made a specific action.\n *\n */\n HitType[\"EVENT\"] = \"EVENT\";\n})(HitType || (HitType = {}));\n","export var LogLevel;\n(function (LogLevel) {\n /**\n * NONE = 0: Logging will be disabled.\n */\n LogLevel[LogLevel[\"NONE\"] = 0] = \"NONE\";\n /**\n * EMERGENCY = 1: Only emergencies will be logged.\n */\n LogLevel[LogLevel[\"EMERGENCY\"] = 1] = \"EMERGENCY\";\n /**\n * ALERT = 2: Only alerts and above will be logged.\n */\n LogLevel[LogLevel[\"ALERT\"] = 2] = \"ALERT\";\n /**\n * CRITICAL = 3: Only critical and above will be logged.\n */\n LogLevel[LogLevel[\"CRITICAL\"] = 3] = \"CRITICAL\";\n /**\n * ERROR = 4: Only errors and above will be logged.\n */\n LogLevel[LogLevel[\"ERROR\"] = 4] = \"ERROR\";\n /**\n * WARNING = 5: Only warnings and above will be logged.\n */\n LogLevel[LogLevel[\"WARNING\"] = 5] = \"WARNING\";\n /**\n * NOTICE = 6: Only notices and above will be logged.\n */\n LogLevel[LogLevel[\"NOTICE\"] = 6] = \"NOTICE\";\n /**\n * INFO = 7: Only info logs and above will be logged.\n */\n LogLevel[LogLevel[\"INFO\"] = 7] = \"INFO\";\n /**\n * DEBUG = 8: Only debug logs and above will be logged.\n */\n LogLevel[LogLevel[\"DEBUG\"] = 8] = \"DEBUG\";\n /**\n * ALL = 9: All logs will be logged.\n */\n LogLevel[LogLevel[\"ALL\"] = 9] = \"ALL\";\n})(LogLevel || (LogLevel = {}));\n","import { logWarningSprintf, valueToHex } from '../utils/utils';\nimport { FSFlag } from './FsFlags';\nimport { GET_FLAG, GET_FLAG_NOT_FOUND } from '../enum/FlagshipConstant';\n/**\n * Represents a collection of flags.\n */\nexport class FSFlagCollection {\n _visitor;\n _keys = new Set();\n _flags;\n /**\n * Creates a new instance of FSFlagCollection.\n * @param param - The parameter object.\n * @param param.visitor - The visitor delegate.\n * @param param.flags - The initial flags.\n */\n constructor(param) {\n const { visitor, flags } = param;\n this._visitor = visitor;\n this._flags = flags || new Map();\n if (this._flags.size === 0) {\n this._keys = new Set(visitor?.flagsData.keys());\n this._keys.forEach((key) => {\n this._flags.set(key, new FSFlag({ key, visitor }));\n });\n }\n else {\n this._keys = new Set(this._flags.keys());\n }\n }\n /**\n * @inheritdoc\n */\n get size() {\n return this._keys.size;\n }\n /**\n * @inheritdoc\n */\n get(key) {\n const flag = this._flags.get(key);\n if (!flag) {\n this._visitor?.config && logWarningSprintf(this._visitor?.config, GET_FLAG, GET_FLAG_NOT_FOUND, this._visitor?.visitorId, key);\n return new FSFlag({ key });\n }\n return flag;\n }\n /**\n * @inheritdoc\n */\n has(key) {\n return this._keys.has(key);\n }\n /**\n * @inheritdoc\n */\n keys() {\n return this._keys;\n }\n /**\n * @inheritdoc\n */\n [Symbol.iterator]() {\n let index = 0;\n const keysArray = Array.from(this._keys);\n return {\n next: () => {\n if (index < keysArray.length) {\n const key = keysArray[index++];\n return { value: [key, this._flags.get(key)], done: false };\n }\n else {\n return { value: null, done: true };\n }\n }\n };\n }\n /**\n * @inheritdoc\n */\n filter(predicate) {\n const flags = new Map();\n this._flags.forEach((flag, key) => {\n if (predicate(flag, key, this)) {\n flags.set(key, flag);\n }\n });\n return new FSFlagCollection({ visitor: this._visitor, flags });\n }\n /**\n * @inheritdoc\n */\n async exposeAll() {\n await Promise.all(Array.from(this._flags.values(), (flag) => flag.visitorExposed()));\n }\n /**\n * @inheritdoc\n */\n getMetadata() {\n const metadata = new Map();\n this._flags.forEach((flag, key) => {\n metadata.set(key, flag.metadata);\n });\n return metadata;\n }\n /**\n * @inheritdoc\n */\n toJSON() {\n const serializedData = [];\n this._flags.forEach((flag, key) => {\n const metadata = flag.metadata;\n serializedData.push({\n key,\n campaignId: metadata.campaignId,\n campaignName: metadata.campaignName,\n variationGroupId: metadata.variationGroupId,\n variationGroupName: metadata.variationGroupName,\n variationId: metadata.variationId,\n variationName: metadata.variationName,\n isReference: metadata.isReference,\n campaignType: metadata.campaignType,\n slug: metadata.slug,\n hex: valueToHex({ v: flag.getValue(null, false) })\n });\n });\n return serializedData;\n }\n forEach(callbackfn) {\n this._flags.forEach((flag, key) => {\n callbackfn(flag, key, this);\n });\n }\n}\n","export class FSFlagMetadata {\n campaignId;\n campaignName;\n variationGroupId;\n variationGroupName;\n variationId;\n variationName;\n isReference;\n campaignType;\n slug;\n constructor(flagMetadata) {\n const { campaignId, variationGroupId, variationId, isReference, campaignType, slug, variationGroupName, variationName, campaignName } = flagMetadata;\n this.campaignId = campaignId;\n this.variationGroupId = variationGroupId;\n this.variationId = variationId;\n this.isReference = isReference;\n this.campaignType = campaignType;\n this.campaignName = campaignName;\n this.variationGroupName = variationGroupName;\n this.variationName = variationName;\n this.slug = slug;\n }\n static Empty() {\n return new FSFlagMetadata({\n campaignId: '',\n campaignName: '',\n campaignType: '',\n variationId: '',\n variationName: '',\n variationGroupId: '',\n variationGroupName: '',\n isReference: false,\n slug: null\n });\n }\n}\n","import { isBrowser } from '../utils/utils';\nexport function forceVariation({ flagDTO, config }) {\n if (!config.isQAModeEnabled || !isBrowser() || !flagDTO || !window?.flagship?.forcedVariations) {\n return undefined;\n }\n const forcedVariation = window.flagship.forcedVariations[flagDTO.campaignId];\n if (!forcedVariation) {\n return undefined;\n }\n const { campaignId, campaignName, variationGroupId, variationGroupName, campaignType, CampaignSlug, variation } = forcedVariation;\n const value = variation.modifications.value[flagDTO.key];\n return {\n key: flagDTO.key,\n campaignId,\n campaignName,\n variationGroupId,\n variationGroupName: variationGroupName,\n variationId: variation.id,\n variationName: variation.name,\n isReference: !!variation.reference,\n campaignType,\n slug: CampaignSlug,\n value\n };\n}\n","import { FSFetchStatus } from '../enum/FSFetchStatus';\nimport { FSFlagStatus } from '../enum/FSFlagStatus';\nimport { FSFlagMetadata } from './FSFlagMetadata';\nimport { forceVariation } from './forceVariation';\nexport class FSFlag {\n _visitor;\n _key;\n _defaultValue;\n hasGetValueBeenCalled = false;\n constructor(param) {\n const { key, visitor } = param;\n this._key = key;\n this._visitor = visitor;\n }\n exists() {\n if (!this._visitor) {\n return false;\n }\n const flagDTO = this._visitor?.flagsData.get(this._key);\n const forcedFlagDTO = forceVariation({ flagDTO, config: this._visitor.config });\n const flag = forcedFlagDTO || flagDTO;\n return !!(flag?.campaignId && flag?.variationId && flag?.variationGroupId);\n }\n get metadata() {\n if (!this._visitor) {\n return FSFlagMetadata.Empty();\n }\n const flagDTO = this._visitor.flagsData.get(this._key);\n const forcedFlagDTO = forceVariation({ flagDTO, config: this._visitor.config });\n return this._visitor.getFlagMetadata({\n key: this._key,\n flag: forcedFlagDTO || flagDTO\n });\n }\n async visitorExposed() {\n if (!this._visitor) {\n return;\n }\n const flagDTO = this._visitor.flagsData.get(this._key);\n const forcedFlagDTO = forceVariation({ flagDTO, config: this._visitor.config });\n return this._visitor.visitorExposed({\n key: this._key,\n flag: forcedFlagDTO || flagDTO,\n defaultValue: this._defaultValue,\n hasGetValueBeenCalled: this.hasGetValueBeenCalled\n });\n }\n getValue(defaultValue, visitorExposed = true) {\n this._defaultValue = defaultValue;\n this.hasGetValueBeenCalled = true;\n if (!this._visitor) {\n return defaultValue;\n }\n const flagDTO = this._visitor.flagsData.get(this._key);\n const forcedFlagDTO = forceVariation({ flagDTO, config: this._visitor.config });\n const flag = forcedFlagDTO || flagDTO;\n this._visitor.sendExposedVariation(flag);\n return this._visitor.getFlagValue({\n key: this._key,\n defaultValue,\n flag,\n visitorExposed\n });\n }\n get status() {\n if (this._visitor?.fetchStatus?.status === FSFetchStatus.PANIC) {\n return FSFlagStatus.PANIC;\n }\n if (!this.exists()) {\n return FSFlagStatus.NOT_FOUND;\n }\n if (this._visitor?.fetchStatus?.status === FSFetchStatus.FETCH_REQUIRED || this._visitor?.fetchStatus?.status === FSFetchStatus.FETCHING) {\n return FSFlagStatus.FETCH_REQUIRED;\n }\n return FSFlagStatus.FETCHED;\n }\n}\n","import { Flagship } from './main/Flagship';\nexport { Flagship } from './main/Flagship';\nexport { DecisionApiConfig, DecisionMode } from './config/index';\nexport { Event, EventCategory, Item, Page, Screen, Transaction, HitAbstract } from './hit/index';\nexport { FSSdkStatus, LogLevel, HitType, CacheStrategy, FSFetchReasons, FSFetchStatus, FSFlagStatus } from './enum/index';\nexport * from './enum/FlagshipContext';\nexport * from './types';\nexport { Visitor } from './visitor/index';\nexport * from './flag/index';\nexport default Flagship;\n","import { EventEmitter } from '../depsNode.native';\nimport { EMIT_READY } from '../enum/index';\n/**\n * The `Visitor` class represents a unique user within your application. It aids in\n * managing the visitor's data and fetching the corresponding flags for the visitor\n * from the [Flagship platform](https://app.flagship.io/login) .\n */\nexport class Visitor extends EventEmitter {\n visitorDelegate;\n constructor(visitorDelegate) {\n super();\n this.visitorDelegate = visitorDelegate;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.visitorDelegate.on(EMIT_READY, (err) => {\n this.emit(EMIT_READY, err);\n });\n }\n /**\n * @inheritdoc\n */\n get visitorId() {\n return this.visitorDelegate.visitorId;\n }\n /**\n * @inheritdoc\n */\n set visitorId(v) {\n this.visitorDelegate.visitorId = v;\n }\n /**\n * @inheritdoc\n */\n get anonymousId() {\n return this.visitorDelegate.anonymousId;\n }\n /**\n * @inheritdoc\n */\n get config() {\n return this.visitorDelegate.config;\n }\n /**\n * @inheritdoc\n */\n get context() {\n return this.visitorDelegate.context;\n }\n /**\n * @inheritdoc\n */\n get fetchStatus() {\n return this.visitorDelegate.fetchStatus;\n }\n /**\n * @inheritdoc\n */\n get hasConsented() {\n return this.visitorDelegate.hasConsented;\n }\n /**\n * @inheritdoc\n */\n setConsent(hasConsented) {\n this.visitorDelegate.setConsent(hasConsented);\n }\n updateContext(context, value) {\n this.visitorDelegate.updateContext(context, value);\n }\n /**\n * @inheritdoc\n */\n clearContext() {\n this.visitorDelegate.clearContext();\n }\n /**\n * @inheritdoc\n */\n getFlag(key) {\n return this.visitorDelegate.getFlag(key);\n }\n /**\n * @inheritdoc\n */\n getFlags() {\n return this.visitorDelegate.getFlags();\n }\n /**\n * @inheritdoc\n */\n fetchFlags() {\n return this.visitorDelegate.fetchFlags();\n }\n sendHit(hit) {\n return this.visitorDelegate.sendHit(hit);\n }\n sendHits(hits) {\n return this.visitorDelegate.sendHits(hits);\n }\n /**\n * @inheritdoc\n */\n authenticate(visitorId) {\n this.visitorDelegate.authenticate(visitorId);\n }\n /**\n * @inheritdoc\n */\n unauthenticate() {\n this.visitorDelegate.unauthenticate();\n }\n}\n","/**\n * Define the strategy that will be used for hit caching\n */\nexport var CacheStrategy;\n(function (CacheStrategy) {\n /**\n * When a hit is emitted, it will be first cached in database using IHitCacheImplementation and added into the pool, then after batching and sending, it will also be flushed from database using IHitCacheImplementation.\n *\n * Note: the SDK has a default cache implementation for browser using localStorage\n */\n CacheStrategy[CacheStrategy[\"CONTINUOUS_CACHING\"] = 0] = \"CONTINUOUS_CACHING\";\n /**\n * When a hit is emitted, it will be added into the pool, then after batching and sending, all database hits will be flushed, then the entire pool will be cached using IHitCacheImplementation for both actions.\n */\n CacheStrategy[CacheStrategy[\"PERIODIC_CACHING\"] = 1] = \"PERIODIC_CACHING\";\n})(CacheStrategy || (CacheStrategy = {}));\n","import { CacheStrategy, DEFAULT_SERVER_TIME_INTERVAL, DEFAULT_BROWSER_TIME_INTERVAL, DEFAULT_BROWSER_POOL_MAX_SIZE, DEFAULT_SERVER_POOL_MAX_SIZE } from '../enum/index';\nimport { isBrowser } from '../utils/utils';\nexport class TrackingManagerConfig {\n _batchIntervals;\n _poolMaxSize;\n _batchStrategy;\n constructor(param) {\n this.batchIntervals = param?.batchIntervals;\n this.poolMaxSize = param?.poolMaxSize;\n this._batchStrategy = this.getCacheStrategy(param?.cacheStrategy);\n }\n getCacheStrategy(cacheStrategy) {\n if (typeof cacheStrategy === 'number') {\n return cacheStrategy;\n }\n return (isBrowser() ? CacheStrategy.CONTINUOUS_CACHING : CacheStrategy.PERIODIC_CACHING);\n }\n get batchIntervals() {\n return this._batchIntervals;\n }\n set batchIntervals(v) {\n if (typeof v !== 'number' || v < 1 || v > 10800) {\n v = isBrowser() ? DEFAULT_BROWSER_TIME_INTERVAL : DEFAULT_SERVER_TIME_INTERVAL;\n }\n this._batchIntervals = v;\n }\n get poolMaxSize() {\n return this._poolMaxSize;\n }\n set poolMaxSize(v) {\n if (typeof v !== 'number' || v < 5) {\n v = isBrowser() ? DEFAULT_BROWSER_POOL_MAX_SIZE : DEFAULT_SERVER_POOL_MAX_SIZE;\n }\n this._poolMaxSize = v;\n }\n get cacheStrategy() {\n return this._batchStrategy;\n }\n}\n","import { BASE_API_URL, DEFAULT_DEDUPLICATION_TIME, FS_IS_QA_MODE_ENABLED, FETCH_FLAG_BUFFERING_DEFAULT_TIME, LogLevel, REQUEST_TIME_OUT, SDK_INFO, TYPE_ERROR } from '../enum/index';\nimport { errorFormat, isBrowser, logError, sprintf } from '../utils/utils';\nimport { TrackingManagerConfig } from './TrackingManagerConfig';\nimport { version as SDK_VERSION } from '../sdkVersion';\nimport { DecisionMode } from './DecisionMode';\nexport const statusChangeError = 'statusChangedCallback must be a function';\nexport class FlagshipConfig {\n _envId;\n _apiKey;\n _decisionMode;\n _timeout;\n _logLevel;\n _onSdkStatusChanged;\n _logManager;\n _fetchNow;\n _pollingInterval;\n _onBucketingFail;\n _onBucketingSuccess;\n _onBucketingUpdated;\n _reuseVisitorIds;\n _initialBucketing;\n _decisionApiUrl;\n _hitDeduplicationTime;\n _visitorCacheImplementation;\n _hitCacheImplementation;\n _disableCache;\n _trackingManagerConfig;\n _onVisitorExposed;\n _fetchThirdPartyData;\n _nextFetchConfig;\n _fetchFlagsBufferingTime;\n _disableDeveloperUsageTracking;\n _onLog;\n _isQAModeEnabled;\n get isQAModeEnabled() {\n return this._isQAModeEnabled;\n }\n set isQAModeEnabled(v) {\n this._isQAModeEnabled = v;\n }\n _enableAnalytics;\n get disableDeveloperUsageTracking() {\n return this._disableDeveloperUsageTracking;\n }\n set disableDeveloperUsageTracking(v) {\n this._disableDeveloperUsageTracking = v;\n }\n get fetchFlagsBufferingTime() {\n return this._fetchFlagsBufferingTime;\n }\n set fetchFlagsBufferingTime(v) {\n this._fetchFlagsBufferingTime = v;\n }\n get nextFetchConfig() {\n return this._nextFetchConfig;\n }\n set nextFetchConfig(v) {\n this._nextFetchConfig = v;\n }\n get fetchThirdPartyData() {\n return this._fetchThirdPartyData;\n }\n set fetchThirdPartyData(v) {\n this._fetchThirdPartyData = v;\n }\n get trackingManagerConfig() {\n return this._trackingManagerConfig;\n }\n get onLog() {\n return this._onLog;\n }\n set onLog(v) {\n this._onLog = v;\n }\n get onVisitorExposed() {\n return this._onVisitorExposed;\n }\n constructor(param) {\n const { envId, apiKey, timeout, logLevel, logManager, onSdkStatusChanged, fetchNow, decisionMode, reuseVisitorIds, initialBucketing, decisionApiUrl, hitDeduplicationTime, visitorCacheImplementation, hitCacheImplementation, disableCache, language, sdkVersion, trackingManagerConfig, onLog, onVisitorExposed, nextFetchConfig, fetchFlagsBufferingTime, disableDeveloperUsageTracking } = param;\n this.initQaMode();\n this.initSDKInfo(language, sdkVersion);\n if (logManager) {\n this.logManager = logManager;\n }\n this.fetchFlagsBufferingTime = fetchFlagsBufferingTime ?? FETCH_FLAG_BUFFERING_DEFAULT_TIME;\n this.nextFetchConfig = nextFetchConfig || { revalidate: 20 };\n this._trackingManagerConfig = new TrackingManagerConfig(trackingManagerConfig || {});\n this.onLog = onLog;\n this.decisionApiUrl = decisionApiUrl || BASE_API_URL;\n this._envId = envId;\n this._apiKey = apiKey;\n this.logLevel = logLevel ?? LogLevel.ALL;\n this.timeout = timeout || REQUEST_TIME_OUT;\n this.fetchNow = typeof fetchNow === 'undefined' || fetchNow;\n this.reuseVisitorIds = typeof reuseVisitorIds === 'undefined' || reuseVisitorIds;\n this._decisionMode = decisionMode || DecisionMode.DECISION_API;\n this._initialBucketing = initialBucketing;\n this.hitDeduplicationTime = hitDeduplicationTime ?? DEFAULT_DEDUPLICATION_TIME;\n this.disableCache = !!disableCache;\n this.disableDeveloperUsageTracking = disableDeveloperUsageTracking || false;\n if (visitorCacheImplementation) {\n this.visitorCacheImplementation = visitorCacheImplementation;\n }\n if (hitCacheImplementation) {\n this.hitCacheImplementation = hitCacheImplementation;\n }\n this.onSdkStatusChanged = onSdkStatusChanged;\n this._onVisitorExposed = onVisitorExposed;\n }\n initQaMode() {\n if (!isBrowser()) {\n return;\n }\n try {\n const isQAModeEnabled = sessionStorage.getItem(FS_IS_QA_MODE_ENABLED);\n this.isQAModeEnabled = isQAModeEnabled ? JSON.parse(isQAModeEnabled) : undefined;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logError(this, errorFormat(error.message || error), 'initQaMode');\n this.isQAModeEnabled = false;\n }\n }\n initSDKInfo(language, sdkVersion) {\n switch (language) {\n case 1:\n SDK_INFO.name = 'ReactJS';\n SDK_INFO.version = sdkVersion ?? SDK_VERSION;\n break;\n case 2:\n SDK_INFO.name = 'React-Native';\n SDK_INFO.version = sdkVersion ?? SDK_VERSION;\n break;\n default:\n SDK_INFO.name = (typeof window !== 'undefined' && 'Deno' in window) ? 'Deno' : 'TypeScript';\n SDK_INFO.version = SDK_VERSION;\n break;\n }\n }\n get initialBucketing() {\n return this._initialBucketing;\n }\n set initialBucketing(v) {\n this._initialBucketing = v;\n }\n get reuseVisitorIds() {\n return this._reuseVisitorIds;\n }\n set reuseVisitorIds(v) {\n this._reuseVisitorIds = v;\n }\n get onBucketingSuccess() {\n return this._onBucketingSuccess;\n }\n set onBucketingSuccess(v) {\n this._onBucketingSuccess = v;\n }\n get onBucketingFail() {\n return this._onBucketingFail;\n }\n set onBucketingFail(v) {\n this._onBucketingFail = v;\n }\n get onBucketingUpdated() {\n return this._onBucketingUpdated;\n }\n set onBucketingUpdated(v) {\n this._onBucketingUpdated = v;\n }\n set envId(value) {\n this._envId = value;\n }\n get envId() {\n return this._envId;\n }\n set apiKey(value) {\n this._apiKey = value;\n }\n get apiKey() {\n return this._apiKey;\n }\n get decisionMode() {\n return this._decisionMode;\n }\n get timeout() {\n return this._timeout;\n }\n set timeout(value) {\n this._timeout = value;\n }\n get logLevel() {\n return this._logLevel;\n }\n set logLevel(value) {\n this._logLevel = value;\n }\n get fetchNow() {\n return this._fetchNow;\n }\n set fetchNow(v) {\n this._fetchNow = v;\n }\n get pollingInterval() {\n return this._pollingInterval;\n }\n set pollingInterval(v) {\n this._pollingInterval = v;\n }\n get hitDeduplicationTime() {\n return this._hitDeduplicationTime;\n }\n set hitDeduplicationTime(v) {\n if (typeof v !== 'number') {\n logError(this, sprintf(TYPE_ERROR, 'hitDeduplicationTime', 'number'), 'hitDeduplicationTime');\n return;\n }\n this._hitDeduplicationTime = v;\n }\n get visitorCacheImplementation() {\n return this._visitorCacheImplementation;\n }\n set visitorCacheImplementation(v) {\n this._visitorCacheImplementation = v;\n }\n get hitCacheImplementation() {\n return this._hitCacheImplementation;\n }\n set hitCacheImplementation(v) {\n this._hitCacheImplementation = v;\n }\n get disableCache() {\n return this._disableCache;\n }\n set disableCache(v) {\n this._disableCache = v;\n }\n get onSdkStatusChanged() {\n return this._onSdkStatusChanged;\n }\n set onSdkStatusChanged(fn) {\n if (fn && typeof fn !== 'function') {\n logError(this, statusChangeError, 'onSdkStatusChanged');\n return;\n }\n this._onSdkStatusChanged = fn;\n }\n get logManager() {\n return this._logManager;\n }\n set logManager(value) {\n this._logManager = value;\n }\n get decisionApiUrl() {\n return this._decisionApiUrl;\n }\n set decisionApiUrl(v) {\n if (typeof v !== 'string') {\n logError(this, sprintf(TYPE_ERROR, 'decisionApiUrl', 'string'), 'decisionApiUrl');\n return;\n }\n this._decisionApiUrl = v;\n }\n}\n","import { DEFAULT_POLLING_INTERVAL } from '../enum/index';\nimport { DecisionMode } from './DecisionMode';\nimport { FlagshipConfig } from './FlagshipConfig';\nexport class BucketingConfig extends FlagshipConfig {\n constructor(param) {\n super({ ...param, decisionMode: DecisionMode.BUCKETING });\n this.pollingInterval = param?.pollingInterval ?? DEFAULT_POLLING_INTERVAL;\n this.onBucketingFail = param?.onBucketingFail;\n this.onBucketingSuccess = param?.onBucketingSuccess;\n this.onBucketingUpdated = param?.onBucketingUpdated;\n this.fetchThirdPartyData = param?.fetchThirdPartyData;\n }\n}\n","import { DecisionMode } from './DecisionMode';\nimport { FlagshipConfig } from './FlagshipConfig';\nexport class DecisionApiConfig extends FlagshipConfig {\n constructor(param) {\n super({ ...param, decisionMode: DecisionMode.DECISION_API });\n }\n}\n","export class ConfigManager {\n _config;\n _decisionManager;\n _trackingManager;\n constructor(config, decisionManager, trackingManager) {\n this._config = config;\n this._decisionManager = decisionManager;\n this._trackingManager = trackingManager;\n }\n get config() {\n return this._config;\n }\n set config(value) {\n this._config = value;\n }\n get decisionManager() {\n return this._decisionManager;\n }\n set decisionManager(value) {\n this._decisionManager = value;\n }\n get trackingManager() {\n return this._trackingManager;\n }\n set trackingManager(value) {\n this._trackingManager = value;\n }\n}\n","export var TroubleshootingLabel;\n(function (TroubleshootingLabel) {\n TroubleshootingLabel[\"VISITOR_SEND_HIT\"] = \"VISITOR_SEND_HIT\";\n TroubleshootingLabel[\"VISITOR_FETCH_CAMPAIGNS_ERROR\"] = \"VISITOR_FETCH_CAMPAIGNS_ERROR\";\n TroubleshootingLabel[\"VISITOR_FETCH_CAMPAIGNS\"] = \"VISITOR_FETCH_CAMPAIGNS\";\n TroubleshootingLabel[\"VISITOR_AUTHENTICATE\"] = \"VISITOR_AUTHENTICATE\";\n TroubleshootingLabel[\"VISITOR_UNAUTHENTICATE\"] = \"VISITOR_UNAUTHENTICATE\";\n TroubleshootingLabel[\"VISITOR_EXPOSED_FLAG_NOT_FOUND\"] = \"VISITOR_EXPOSED_FLAG_NOT_FOUND\";\n TroubleshootingLabel[\"FLAG_VALUE_NOT_CALLED\"] = \"FLAG_VALUE_NOT_CALLED\";\n TroubleshootingLabel[\"GET_FLAG_VALUE_FLAG_NOT_FOUND\"] = \"GET_FLAG_VALUE_FLAG_NOT_FOUND\";\n TroubleshootingLabel[\"GET_FLAG_METADATA_TYPE_WARNING\"] = \"GET_FLAG_METADATA_TYPE_WARNING\";\n TroubleshootingLabel[\"GET_FLAG_VALUE_TYPE_WARNING\"] = \"GET_FLAG_VALUE_TYPE_WARNING\";\n TroubleshootingLabel[\"VISITOR_EXPOSED_TYPE_WARNING\"] = \"VISITOR_EXPOSED_TYPE_WARNING\";\n TroubleshootingLabel[\"VISITOR_SEND_ACTIVATE\"] = \"VISITOR_SEND_ACTIVATE\";\n TroubleshootingLabel[\"GET_CAMPAIGNS_ROUTE_RESPONSE_ERROR\"] = \"GET_CAMPAIGNS_ROUTE_RESPONSE_ERROR\";\n TroubleshootingLabel[\"GET_CAMPAIGNS_ROUTE_RESPONSE\"] = \"GET_CAMPAIGNS_ROUTE_RESPONSE\";\n TroubleshootingLabel[\"SDK_BUCKETING_FILE\"] = \"SDK_BUCKETING_FILE\";\n TroubleshootingLabel[\"SEND_ACTIVATE_HIT_ROUTE_ERROR\"] = \"SEND_ACTIVATE_HIT_ROUTE_ERROR\";\n TroubleshootingLabel[\"SEND_BATCH_HIT_ROUTE_RESPONSE_ERROR\"] = \"SEND_BATCH_HIT_ROUTE_RESPONSE_ERROR\";\n TroubleshootingLabel[\"SEND_HIT_ROUTE_ERROR\"] = \"SEND_HIT_ROUTE_ERROR\";\n TroubleshootingLabel[\"SDK_BUCKETING_FILE_ERROR\"] = \"SDK_BUCKETING_FILE_ERROR\";\n TroubleshootingLabel[\"SDK_CONFIG\"] = \"SDK_CONFIG\";\n})(TroubleshootingLabel || (TroubleshootingLabel = {}));\nexport var VisitorCacheStatus;\n(function (VisitorCacheStatus) {\n VisitorCacheStatus[\"NONE\"] = \"NONE\";\n VisitorCacheStatus[\"ANONYMOUS_ID_CACHE\"] = \"ANONYMOUS_ID_CACHE\";\n VisitorCacheStatus[\"VISITOR_ID_CACHE\"] = \"VISITOR_ID_CACHE\";\n VisitorCacheStatus[\"VISITOR_ID_CACHE_NOT_ANONYMOUS_ID_CACHE\"] = \"VISITOR_ID_CACHE_NOT_ANONYMOUS_ID_CACHE\";\n})(VisitorCacheStatus || (VisitorCacheStatus = {}));\n","export var BatchTriggeredBy;\n(function (BatchTriggeredBy) {\n BatchTriggeredBy[BatchTriggeredBy[\"Timer\"] = 0] = \"Timer\";\n BatchTriggeredBy[BatchTriggeredBy[\"BatchLength\"] = 1] = \"BatchLength\";\n BatchTriggeredBy[BatchTriggeredBy[\"Flush\"] = 2] = \"Flush\";\n BatchTriggeredBy[BatchTriggeredBy[\"ActivateLength\"] = 3] = \"ActivateLength\";\n BatchTriggeredBy[BatchTriggeredBy[\"DirectHit\"] = 4] = \"DirectHit\";\n BatchTriggeredBy[BatchTriggeredBy[\"DirectActivate\"] = 5] = \"DirectActivate\";\n})(BatchTriggeredBy || (BatchTriggeredBy = {}));\n","import { CUSTOMER_ENV_ID_API_ITEM, DS_API_ITEM, T_API_ITEM, TYPE_ERROR, VISITOR_ID_API_ITEM, CUSTOMER_UID, USER_IP_API_ITEM, SCREEN_RESOLUTION_API_ITEM, SESSION_NUMBER, USER_LANGUAGE, QT_API_ITEM, SDK_APP, QA_MODE_API_ITEM } from '../enum/FlagshipConstant';\nimport { logError, sprintf } from '../utils/utils';\nexport class HitAbstract {\n _visitorId;\n _config;\n _type;\n _ds;\n _anonymousId;\n _userIp;\n _screenResolution;\n _locale;\n _sessionNumber;\n _key;\n _createdAt;\n _qaMode;\n get key() {\n return this._key;\n }\n set key(v) {\n this._key = v;\n }\n get sessionNumber() {\n return this._sessionNumber;\n }\n set sessionNumber(v) {\n this._sessionNumber = v;\n }\n get locale() {\n return this._locale;\n }\n set locale(v) {\n this._locale = v;\n }\n get screenResolution() {\n return this._screenResolution;\n }\n set screenResolution(v) {\n this._screenResolution = v;\n }\n get userIp() {\n return this._userIp;\n }\n set userIp(v) {\n this._userIp = v;\n }\n get anonymousId() {\n return this._anonymousId;\n }\n set anonymousId(v) {\n this._anonymousId = v;\n }\n get visitorId() {\n return this._visitorId;\n }\n set visitorId(v) {\n this._visitorId = v;\n }\n get ds() {\n return this._ds;\n }\n set ds(v) {\n this._ds = v;\n }\n get type() {\n return this._type;\n }\n get config() {\n return this._config;\n }\n set config(v) {\n this._config = v;\n }\n get createdAt() {\n return this._createdAt;\n }\n set createdAt(v) {\n this._createdAt = v;\n }\n get qaMode() {\n return this._qaMode;\n }\n set qaMode(v) {\n this._qaMode = v;\n }\n constructor(hit) {\n const { type, userIp, screenResolution, locale, sessionNumber, visitorId, anonymousId, ds, qaMode } = hit;\n this._type = type;\n if (userIp) {\n this.userIp = userIp;\n }\n if (screenResolution) {\n this.screenResolution = screenResolution;\n }\n if (locale) {\n this.locale = locale;\n }\n if (sessionNumber) {\n this.sessionNumber = sessionNumber;\n }\n this.visitorId = visitorId;\n this._anonymousId = anonymousId || null;\n this.createdAt = Date.now();\n this.ds = ds || SDK_APP;\n this.qaMode = qaMode;\n }\n /**\n * Return true if value is a string and not empty, otherwise return false\n * @param value\n * @param itemName\n * @returns\n */\n isNotEmptyString(value, itemName) {\n if (!value || typeof value !== 'string') {\n logError(this.config, sprintf(TYPE_ERROR, itemName, 'string'), itemName);\n return false;\n }\n return true;\n }\n isNumeric(value, itemName) {\n if (!value || typeof value !== 'number') {\n logError(this.config, sprintf(TYPE_ERROR, itemName, 'number'), itemName);\n return false;\n }\n return true;\n }\n isInteger(value, itemName) {\n if (!Number.isInteger(value)) {\n logError(this.config, sprintf(TYPE_ERROR, itemName, 'integer'), itemName);\n return false;\n }\n return true;\n }\n /**\n * Return an object with Api parameters as keys\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n toApiKeys() {\n const apiKeys = {\n [VISITOR_ID_API_ITEM]: this.visitorId,\n [DS_API_ITEM]: this.ds,\n [CUSTOMER_ENV_ID_API_ITEM]: `${this.config?.envId}`,\n [T_API_ITEM]: this.type,\n [CUSTOMER_UID]: null,\n [QT_API_ITEM]: Date.now() - this._createdAt\n };\n if (this.qaMode) {\n apiKeys[QA_MODE_API_ITEM] = true;\n }\n if (this.userIp) {\n apiKeys[USER_IP_API_ITEM] = this.userIp;\n }\n if (this.screenResolution) {\n apiKeys[SCREEN_RESOLUTION_API_ITEM] = this.screenResolution;\n }\n if (this.locale) {\n apiKeys[USER_LANGUAGE] = this.locale;\n }\n if (this.sessionNumber) {\n apiKeys[SESSION_NUMBER] = this.sessionNumber;\n }\n if (this.visitorId && this.anonymousId) {\n apiKeys[VISITOR_ID_API_ITEM] = this.anonymousId;\n apiKeys[CUSTOMER_UID] = this.visitorId;\n }\n return apiKeys;\n }\n toObject() {\n return {\n key: this.key,\n visitorId: this.visitorId,\n ds: this.ds,\n type: this.type,\n userIp: this.userIp,\n screenResolution: this.screenResolution,\n locale: this.locale,\n sessionNumber: this.sessionNumber,\n anonymousId: this.anonymousId,\n createdAt: this.createdAt,\n qaMode: this.qaMode\n };\n }\n /**\n * Return true if all required attributes are given, otherwise return false\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n isReady(_checkParent = true) {\n return !!(this.visitorId &&\n this.ds &&\n this.config &&\n this.config.envId &&\n this.type);\n }\n}\n","import { CacheStrategy, FSSdkStatus, LogLevel } from '../enum/index';\nimport { CUSTOMER_ENV_ID_API_ITEM, DS_API_ITEM, SDK_APP, SDK_INFO, T_API_ITEM, VISITOR_ID_API_ITEM } from '../enum/FlagshipConstant';\nimport { HitAbstract } from './HitAbstract';\nimport { BatchTriggeredBy } from '../enum/BatchTriggeredBy';\nexport const ERROR_MESSAGE = 'event category and event action are required';\n/**\n * Represents a diagnostic hit.\n */\nexport class Diagnostic extends HitAbstract {\n _logVersion;\n _logLevel;\n _accountId;\n _envId;\n _timestamp;\n _label;\n _stackType;\n _stackName;\n _stackVersion;\n _stackOriginName;\n _stackOriginVersion;\n _sdkStatus;\n _sdkConfigMode;\n _sdkConfigCustomLogManager;\n _sdkConfigCustomCacheManager;\n _sdkConfigStatusListener;\n _sdkConfigTimeout;\n _sdkConfigPollingTime;\n _sdkConfigTrackingManagerConfigStrategy;\n _sdkConfigTrackingManagerConfigBatchIntervals;\n _sdkConfigTrackingManagerConfigBatchLength;\n _httpRequestUrl;\n _httpRequestMethod;\n _httpRequestHeaders;\n _httpRequestBody;\n _httpResponseUrl;\n _httpResponseMethod;\n _httpResponseHeaders;\n _httpResponseBody;\n _visitorStatus;\n _visitorInstanceType;\n _visitorContext;\n _visitorConsent;\n _visitorAssignmentHistory;\n _visitorFlags;\n _visitorIsAuthenticated;\n _flagKey;\n _flagValue;\n _flagDefault;\n _flagMetadataCampaignId;\n _flagMetadataVariationGroupId;\n _flagMetadataVariationId;\n _flagMetadataCampaignSlug;\n _flagMetadataCampaignType;\n _sdkConfigFetchNow;\n _sdkConfigReuseVisitorIds;\n _sdkConfigInitialBucketing;\n _sdkConfigDecisionApiUrl;\n _sdkConfigHitDeduplicationTime;\n _visitorInitialCampaigns;\n _visitorInitialFlagsData;\n _visitorCampaign;\n _httRequestTime;\n _hitContent;\n _httpInstanceId;\n _lastInitializationTimestamp;\n _lastBucketingTimestamp;\n _batchTriggeredBy;\n _visitorCampaignFromCache;\n _timeZone;\n _flagMetadataCampaignIsReference;\n _contextKey;\n _contextValue;\n _sdkBucketingFile;\n _flagMetadataCampaignName;\n _flagMetadataVariationGroupName;\n _flagMetadataVariationName;\n _sdkConfigUsingCustomHitCache;\n _sdkConfigUsingCustomVisitorCache;\n _sdkConfigUsingOnVisitorExposed;\n _sdkConfigFetchThirdPartyData;\n _sdkConfigFetchFlagsBufferingTime;\n _sdkConfigNextFetchConfig;\n _sdkConfigDisableDeveloperUsageTracking;\n _sdkConfigDisableCache;\n _sdkConfigLogLevel;\n get sdkConfigLogLevel() {\n return this._sdkConfigLogLevel;\n }\n set sdkConfigLogLevel(v) {\n this._sdkConfigLogLevel = v;\n }\n _visitorSessionId;\n _traffic;\n _flagshipInstanceId;\n get traffic() {\n return this._traffic;\n }\n set traffic(v) {\n this._traffic = v;\n }\n get flagshipInstanceId() {\n return this._flagshipInstanceId;\n }\n set flagshipInstanceId(v) {\n this._flagshipInstanceId = v;\n }\n get visitorSessionId() {\n return this._visitorSessionId;\n }\n set visitorSessionId(v) {\n this._visitorSessionId = v;\n }\n get sdkConfigDisableCache() {\n return this._sdkConfigDisableCache;\n }\n set sdkConfigDisableCache(v) {\n this._sdkConfigDisableCache = v;\n }\n get sdkConfigDisableDeveloperUsageTracking() {\n return this._sdkConfigDisableDeveloperUsageTracking;\n }\n set sdkConfigDisableDeveloperUsageTracking(v) {\n this._sdkConfigDisableDeveloperUsageTracking = v;\n }\n get sdkConfigNextFetchConfig() {\n return this._sdkConfigNextFetchConfig;\n }\n set sdkConfigNextFetchConfig(v) {\n this._sdkConfigNextFetchConfig = v;\n }\n get sdkConfigFetchFlagsBufferingTime() {\n return this._sdkConfigFetchFlagsBufferingTime;\n }\n set sdkConfigFetchFlagsBufferingTime(v) {\n this._sdkConfigFetchFlagsBufferingTime = v;\n }\n get sdkConfigFetchThirdPartyData() {\n return this._sdkConfigFetchThirdPartyData;\n }\n set sdkConfigFetchThirdPartyData(v) {\n this._sdkConfigFetchThirdPartyData = v;\n }\n get sdkConfigUsingOnVisitorExposed() {\n return this._sdkConfigUsingOnVisitorExposed;\n }\n set sdkConfigUsingOnVisitorExposed(v) {\n this._sdkConfigUsingOnVisitorExposed = v;\n }\n get sdkConfigUsingCustomVisitorCache() {\n return this._sdkConfigUsingCustomVisitorCache;\n }\n set sdkConfigUsingCustomVisitorCache(v) {\n this._sdkConfigUsingCustomVisitorCache = v;\n }\n get sdkConfigUsingCustomHitCache() {\n return this._sdkConfigUsingCustomHitCache;\n }\n set sdkConfigUsingCustomHitCache(v) {\n this._sdkConfigUsingCustomHitCache = v;\n }\n get flagMetadataVariationName() {\n return this._flagMetadataVariationName;\n }\n set flagMetadataVariationName(v) {\n this._flagMetadataVariationName = v;\n }\n get flagMetadataVariationGroupName() {\n return this._flagMetadataVariationGroupName;\n }\n set flagMetadataVariationGroupName(v) {\n this._flagMetadataVariationGroupName = v;\n }\n get flagMetadataCampaignName() {\n return this._flagMetadataCampaignName;\n }\n set flagMetadataCampaignName(v) {\n this._flagMetadataCampaignName = v;\n }\n get sdkBucketingFile() {\n return this._sdkBucketingFile;\n }\n set sdkBucketingFile(v) {\n this._sdkBucketingFile = v;\n }\n get contextValue() {\n return this._contextValue;\n }\n set contextValue(v) {\n this._contextValue = v;\n }\n get contextKey() {\n return this._contextKey;\n }\n set contextKey(v) {\n this._contextKey = v;\n }\n get flagMetadataCampaignIsReference() {\n return this._flagMetadataCampaignIsReference;\n }\n set flagMetadataCampaignIsReference(v) {\n this._flagMetadataCampaignIsReference = v;\n }\n get timeZone() {\n return this._timeZone;\n }\n set timeZone(v) {\n this._timeZone = v;\n }\n get visitorCampaignFromCache() {\n return this._visitorCampaignFromCache;\n }\n set visitorCampaignFromCache(v) {\n this._visitorCampaignFromCache = v;\n }\n get batchTriggeredBy() {\n return this._batchTriggeredBy;\n }\n set batchTriggeredBy(v) {\n this._batchTriggeredBy = v;\n }\n get lastBucketingTimestamp() {\n return this._lastBucketingTimestamp;\n }\n set lastBucketingTimestamp(v) {\n this._lastBucketingTimestamp = v;\n }\n get lastInitializationTimestamp() {\n return this._lastInitializationTimestamp;\n }\n set lastInitializationTimestamp(v) {\n this._lastInitializationTimestamp = v;\n }\n get hitContent() {\n return this._hitContent;\n }\n set hitContent(v) {\n this._hitContent = v;\n }\n get httpResponseTime() {\n return this._httRequestTime;\n }\n set httpResponseTime(v) {\n this._httRequestTime = v;\n }\n get visitorCampaigns() {\n return this._visitorCampaign;\n }\n set visitorCampaigns(v) {\n this._visitorCampaign = v;\n }\n get visitorInitialFlagsData() {\n return this._visitorInitialFlagsData;\n }\n set visitorInitialFlagsData(v) {\n this._visitorInitialFlagsData = v;\n }\n get visitorInitialCampaigns() {\n return this._visitorInitialCampaigns;\n }\n set visitorInitialCampaigns(v) {\n this._visitorInitialCampaigns = v;\n }\n get sdkConfigHitDeduplicationTime() {\n return this._sdkConfigHitDeduplicationTime;\n }\n set sdkConfigHitDeduplicationTime(v) {\n this._sdkConfigHitDeduplicationTime = v;\n }\n get sdkConfigDecisionApiUrl() {\n return this._sdkConfigDecisionApiUrl;\n }\n set sdkConfigDecisionApiUrl(v) {\n this._sdkConfigDecisionApiUrl = v;\n }\n get sdkConfigInitialBucketing() {\n return this._sdkConfigInitialBucketing;\n }\n set sdkConfigInitialBucketing(v) {\n this._sdkConfigInitialBucketing = v;\n }\n get sdkConfigReuseVisitorIds() {\n return this._sdkConfigReuseVisitorIds;\n }\n set sdkConfigReuseVisitorIds(v) {\n this._sdkConfigReuseVisitorIds = v;\n }\n get sdkConfigFetchNow() {\n return this._sdkConfigFetchNow;\n }\n set sdkConfigFetchNow(v) {\n this._sdkConfigFetchNow = v;\n }\n get flagMetadataCampaignType() {\n return this._flagMetadataCampaignType;\n }\n set flagMetadataCampaignType(v) {\n this._flagMetadataCampaignType = v;\n }\n get flagMetadataCampaignSlug() {\n return this._flagMetadataCampaignSlug;\n }\n set flagMetadataCampaignSlug(v) {\n this._flagMetadataCampaignSlug = v;\n }\n get flagMetadataVariationId() {\n return this._flagMetadataVariationId;\n }\n set flagMetadataVariationId(v) {\n this._flagMetadataVariationId = v;\n }\n get flagMetadataVariationGroupId() {\n return this._flagMetadataVariationGroupId;\n }\n set flagMetadataVariationGroupId(v) {\n this._flagMetadataVariationGroupId = v;\n }\n get flagMetadataCampaignId() {\n return this._flagMetadataCampaignId;\n }\n set flagMetadataCampaignId(v) {\n this._flagMetadataCampaignId = v;\n }\n get flagDefault() {\n return this._flagDefault;\n }\n set flagDefault(v) {\n this._flagDefault = v;\n }\n get flagValue() {\n return this._flagValue;\n }\n set flagValue(v) {\n this._flagValue = v;\n }\n get flagKey() {\n return this._flagKey;\n }\n set flagKey(v) {\n this._flagKey = v;\n }\n get visitorIsAuthenticated() {\n return this._visitorIsAuthenticated;\n }\n set visitorIsAuthenticated(v) {\n this._visitorIsAuthenticated = v;\n }\n get visitorFlags() {\n return this._visitorFlags;\n }\n set visitorFlags(v) {\n this._visitorFlags = v;\n }\n get visitorAssignmentHistory() {\n return this._visitorAssignmentHistory;\n }\n set visitorAssignmentHistory(v) {\n this._visitorAssignmentHistory = v;\n }\n get visitorConsent() {\n return this._visitorConsent;\n }\n set visitorConsent(v) {\n this._visitorConsent = v;\n }\n get visitorContext() {\n return this._visitorContext;\n }\n set visitorContext(v) {\n this._visitorContext = v;\n }\n get visitorInstanceType() {\n return this._visitorInstanceType;\n }\n set visitorInstanceType(v) {\n this._visitorInstanceType = v;\n }\n get visitorStatus() {\n return this._visitorStatus;\n }\n set visitorStatus(v) {\n this._visitorStatus = v;\n }\n get httpResponseBody() {\n return this._httpResponseBody;\n }\n set httpResponseBody(v) {\n this._httpResponseBody = v;\n }\n _httpResponseCode;\n get httpResponseCode() {\n return this._httpResponseCode;\n }\n set httpResponseCode(v) {\n this._httpResponseCode = v;\n }\n get httpResponseHeaders() {\n return this._httpResponseHeaders;\n }\n set httpResponseHeaders(v) {\n this._httpResponseHeaders = v;\n }\n get httpResponseMethod() {\n return this._httpResponseMethod;\n }\n set httpResponseMethod(v) {\n this._httpResponseMethod = v;\n }\n get httpResponseUrl() {\n return this._httpResponseUrl;\n }\n set httpResponseUrl(v) {\n this._httpResponseUrl = v;\n }\n get httpRequestBody() {\n return this._httpRequestBody;\n }\n set httpRequestBody(v) {\n this._httpRequestBody = v;\n }\n get httpRequestHeaders() {\n return this._httpRequestHeaders;\n }\n set httpRequestHeaders(v) {\n this._httpRequestHeaders = v;\n }\n get httpRequestMethod() {\n return this._httpRequestMethod;\n }\n set httpRequestMethod(v) {\n this._httpRequestMethod = v;\n }\n get httpRequestUrl() {\n return this._httpRequestUrl;\n }\n set httpRequestUrl(v) {\n this._httpRequestUrl = v;\n }\n get sdkConfigTrackingManagerPoolMaxSize() {\n return this._sdkConfigTrackingManagerConfigBatchLength;\n }\n set sdkConfigTrackingManagerPoolMaxSize(v) {\n this._sdkConfigTrackingManagerConfigBatchLength = v;\n }\n get sdkConfigTrackingManagerBatchIntervals() {\n return this._sdkConfigTrackingManagerConfigBatchIntervals;\n }\n set sdkConfigTrackingManagerBatchIntervals(v) {\n this._sdkConfigTrackingManagerConfigBatchIntervals = v;\n }\n get sdkConfigTrackingManagerStrategy() {\n return this._sdkConfigTrackingManagerConfigStrategy;\n }\n set sdkConfigTrackingManagerStrategy(v) {\n this._sdkConfigTrackingManagerConfigStrategy = v;\n }\n get sdkConfigPollingInterval() {\n return this._sdkConfigPollingTime;\n }\n set sdkConfigPollingInterval(v) {\n this._sdkConfigPollingTime = v;\n }\n get sdkConfigTimeout() {\n return this._sdkConfigTimeout;\n }\n set sdkConfigTimeout(v) {\n this._sdkConfigTimeout = v;\n }\n get sdkConfigStatusListener() {\n return this._sdkConfigStatusListener;\n }\n set sdkConfigStatusListener(v) {\n this._sdkConfigStatusListener = v;\n }\n get sdkConfigCustomCacheManager() {\n return this._sdkConfigCustomCacheManager;\n }\n set sdkConfigCustomCacheManager(v) {\n this._sdkConfigCustomCacheManager = v;\n }\n get sdkConfigCustomLogManager() {\n return this._sdkConfigCustomLogManager;\n }\n set sdkConfigCustomLogManager(v) {\n this._sdkConfigCustomLogManager = v;\n }\n get sdkConfigMode() {\n return this._sdkConfigMode;\n }\n set sdkConfigMode(v) {\n this._sdkConfigMode = v;\n }\n get sdkStatus() {\n return this._sdkStatus;\n }\n set sdkStatus(v) {\n this._sdkStatus = v;\n }\n get stackOriginVersion() {\n return this._stackOriginVersion;\n }\n set stackOriginVersion(v) {\n this._stackOriginVersion = v;\n }\n get stackOriginName() {\n return this._stackOriginName;\n }\n set stackOriginName(v) {\n this._stackOriginName = v;\n }\n get stackVersion() {\n return this._stackVersion;\n }\n set stackVersion(v) {\n this._stackVersion = v;\n }\n get stackName() {\n return this._stackName;\n }\n set stackName(v) {\n this._stackName = v;\n }\n get stackType() {\n return this._stackType;\n }\n set stackType(v) {\n this._stackType = v;\n }\n get label() {\n return this._label;\n }\n set label(v) {\n this._label = v;\n }\n get timestamp() {\n return this._timestamp;\n }\n set timestamp(v) {\n this._timestamp = v;\n }\n get envId() {\n return this._envId;\n }\n set envId(v) {\n this._envId = v;\n }\n get accountId() {\n return this._accountId;\n }\n set accountId(v) {\n this._accountId = v;\n }\n get logLevel() {\n return this._logLevel;\n }\n set logLevel(v) {\n this._logLevel = v;\n }\n get version() {\n return this._logVersion;\n }\n set version(v) {\n this._logVersion = v;\n }\n constructor(param) {\n super({\n type: param.type,\n userIp: param.userIp,\n screenResolution: param.screenResolution,\n locale: param.locale,\n sessionNumber: param.sessionNumber,\n visitorId: param.visitorId,\n anonymousId: param.anonymousId\n });\n const { version: logVersion, logLevel, accountId, envId, timestamp, label, stackType, stackName, stackVersion, stackOriginName, stackOriginVersion, sdkStatus, sdkConfigMode, sdkConfigCustomLogManager, sdkConfigCustomCacheManager, sdkConfigStatusListener, sdkConfigTimeout, sdkConfigPollingInterval, sdkConfigTrackingManagerStrategy: sdkConfigTrackingManagerConfigStrategy, sdkConfigTrackingManagerBatchIntervals: sdkConfigTrackingManagerConfigBatchIntervals, sdkConfigTrackingManagerPoolMaxSize: sdkConfigTrackingManagerConfigPoolMaxSize, httpRequestUrl, httpRequestMethod, httpRequestHeaders, httpRequestBody, httpResponseTime, httpResponseUrl, httpResponseMethod, httpResponseHeaders, httpResponseCode, httpResponseBody, visitorStatus, visitorInstanceType, visitorContext, visitorConsent, visitorAssignmentHistory, visitorFlags, visitorIsAuthenticated, config, flagKey, flagValue, flagDefault, flagMetadataCampaignId, flagMetadataVariationGroupId, flagMetadataVariationId, flagMetadataCampaignSlug, flagMetadataCampaignType, sdkConfigFetchNow, sdkConfigReuseVisitorIds, sdkConfigInitialBucketing, sdkConfigDecisionApiUrl, sdkConfigHitDeduplicationTime, flagshipInstanceId, hitContent, traffic, lastInitializationTimestamp, lastBucketingTimestamp, batchTriggeredBy, visitorCampaigns, visitorCampaignFromCache, visitorInitialCampaigns, visitorInitialFlagsData, flagMetadataCampaignIsReference, contextKey, contextValue, sdkBucketingFile, flagMetadataCampaignName, flagMetadataVariationGroupName, flagMetadataVariationName, sdkConfigUsingCustomHitCache, sdkConfigUsingCustomVisitorCache, sdkConfigUsingOnVisitorExposed, sdkConfigFetchThirdPartyData, sdkConfigFetchFlagsBufferingTime, sdkConfigDisableDeveloperUsageTracking, sdkConfigNextFetchConfig, sdkConfigDisableCache, visitorSessionId, sdkConfigLogLevel } = param;\n this.visitorSessionId = visitorSessionId;\n this.sdkConfigDisableCache = sdkConfigDisableCache;\n this.sdkConfigDisableDeveloperUsageTracking = sdkConfigDisableDeveloperUsageTracking;\n this.sdkConfigNextFetchConfig = sdkConfigNextFetchConfig;\n this.sdkConfigFetchFlagsBufferingTime = sdkConfigFetchFlagsBufferingTime;\n this.sdkConfigFetchThirdPartyData = sdkConfigFetchThirdPartyData;\n this.sdkConfigUsingCustomHitCache = sdkConfigUsingCustomHitCache;\n this.sdkConfigUsingCustomVisitorCache = sdkConfigUsingCustomVisitorCache;\n this.sdkConfigUsingOnVisitorExposed = sdkConfigUsingOnVisitorExposed;\n this.flagMetadataCampaignName = flagMetadataCampaignName;\n this.flagMetadataVariationGroupName = flagMetadataVariationGroupName;\n this.flagMetadataVariationName = flagMetadataVariationName;\n this.traffic = traffic;\n this.sdkBucketingFile = sdkBucketingFile;\n this.contextKey = contextKey;\n this.contextValue = contextValue;\n this.lastBucketingTimestamp = lastBucketingTimestamp;\n this.lastInitializationTimestamp = lastInitializationTimestamp;\n this.batchTriggeredBy = batchTriggeredBy;\n this.visitorCampaigns = visitorCampaigns;\n this.visitorAssignmentHistory = visitorAssignmentHistory;\n this.visitorInitialCampaigns = visitorInitialCampaigns;\n this.visitorInitialFlagsData = visitorInitialFlagsData;\n this.visitorCampaignFromCache = visitorCampaignFromCache;\n this.flagMetadataCampaignIsReference = flagMetadataCampaignIsReference;\n this.config = config;\n this.version = logVersion || '1';\n this.logLevel = logLevel;\n this.flagshipInstanceId = flagshipInstanceId;\n this.accountId = accountId;\n this.envId = envId || config.envId;\n this.timestamp = timestamp || new Date(Date.now()).toISOString();\n this.timeZone = this.getTimezone();\n this.label = label;\n this.stackType = stackType || 'SDK';\n this.stackName = stackName || SDK_INFO.name;\n this.stackVersion = stackVersion || SDK_INFO.version;\n this.stackOriginName = stackOriginName;\n this.stackOriginVersion = stackOriginVersion;\n this.sdkStatus = sdkStatus;\n this.sdkConfigMode = sdkConfigMode;\n this.sdkConfigCustomLogManager = sdkConfigCustomLogManager;\n this.sdkConfigCustomCacheManager = sdkConfigCustomCacheManager;\n this.sdkConfigStatusListener = sdkConfigStatusListener;\n this.sdkConfigTimeout = sdkConfigTimeout;\n this.sdkConfigPollingInterval = sdkConfigPollingInterval;\n this.sdkConfigTrackingManagerStrategy = sdkConfigTrackingManagerConfigStrategy;\n this.sdkConfigTrackingManagerBatchIntervals = sdkConfigTrackingManagerConfigBatchIntervals;\n this.sdkConfigTrackingManagerPoolMaxSize = sdkConfigTrackingManagerConfigPoolMaxSize;\n this.sdkConfigFetchNow = sdkConfigFetchNow;\n this.sdkConfigReuseVisitorIds = sdkConfigReuseVisitorIds;\n this.sdkConfigInitialBucketing = sdkConfigInitialBucketing;\n this.sdkConfigDecisionApiUrl = sdkConfigDecisionApiUrl;\n this.sdkConfigHitDeduplicationTime = sdkConfigHitDeduplicationTime;\n this.httpRequestUrl = httpRequestUrl;\n this.httpRequestMethod = httpRequestMethod;\n this.httpRequestHeaders = httpRequestHeaders;\n this.httpRequestBody = httpRequestBody;\n this.httpResponseUrl = httpResponseUrl;\n this.httpResponseMethod = httpResponseMethod;\n this.httpResponseHeaders = httpResponseHeaders;\n this.httpResponseCode = httpResponseCode;\n this.httpResponseBody = httpResponseBody;\n this.httpResponseTime = httpResponseTime;\n this.visitorStatus = visitorStatus;\n this.visitorInstanceType = visitorInstanceType;\n this.visitorContext = visitorContext;\n this.visitorConsent = visitorConsent;\n this.visitorAssignmentHistory = visitorAssignmentHistory;\n this.visitorFlags = visitorFlags;\n this.visitorIsAuthenticated = visitorIsAuthenticated;\n this.flagKey = flagKey;\n this.flagValue = flagValue;\n this.flagDefault = flagDefault;\n this.flagMetadataCampaignId = flagMetadataCampaignId;\n this.flagMetadataVariationGroupId = flagMetadataVariationGroupId;\n this.flagMetadataVariationId = flagMetadataVariationId;\n this.flagMetadataCampaignSlug = flagMetadataCampaignSlug;\n this.flagMetadataCampaignType = flagMetadataCampaignType;\n this.hitContent = hitContent;\n this.ds = SDK_APP;\n this.sdkConfigLogLevel = sdkConfigLogLevel;\n }\n /**\n * Gets the timezone of the user.\n * @returns The timezone as a string. If the timezone cannot be determined, it returns the offset from UTC in hours.\n */\n getTimezone() {\n const timezone = typeof Intl === 'object' ? Intl.DateTimeFormat()?.resolvedOptions()?.timeZone : undefined;\n return timezone || `${new Date().getTimezoneOffset() / 60}`;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, complexity\n toApiKeys() {\n const apiKeys = {\n [VISITOR_ID_API_ITEM]: this.visitorId,\n [DS_API_ITEM]: this.ds,\n [CUSTOMER_ENV_ID_API_ITEM]: `${this.config?.envId}`,\n [T_API_ITEM]: this.type,\n cv: {}\n };\n const customVariable = {\n version: `${this.version}`,\n logLevel: `${LogLevel[this.logLevel]}`,\n timestamp: `${this.timestamp}`,\n timeZone: `${this.timeZone}`,\n label: `${this.label}`,\n 'stack.type': `${this.stackType}`,\n 'stack.name': `${this.stackName}`,\n 'stack.version': `${this.stackVersion}`\n };\n if (this.lastBucketingTimestamp !== undefined) {\n customVariable.lastBucketingTimestamp = `${this.lastBucketingTimestamp}`;\n }\n if (this.lastInitializationTimestamp !== undefined) {\n customVariable.lastInitializationTimestamp = `${this.lastInitializationTimestamp}`;\n }\n if (this.flagshipInstanceId !== undefined) {\n customVariable.flagshipInstanceId = `${this.flagshipInstanceId}`;\n }\n if (this.accountId) {\n customVariable.accountId = `${this.accountId}`;\n }\n if (this.envId) {\n customVariable.envId = `${this.envId}`;\n }\n if (this.sdkBucketingFile !== undefined) {\n customVariable.sdkBucketingFile = JSON.stringify(this.sdkBucketingFile);\n }\n if (this.stackOriginName !== undefined) {\n customVariable['stack.origin.name'] = `${this.stackOriginName}`;\n }\n if (this.stackOriginVersion !== undefined) {\n customVariable['stack.origin.version'] = `${this.stackOriginVersion}`;\n }\n if (this.sdkStatus !== undefined) {\n customVariable['sdk.status'] = `${FSSdkStatus[this.sdkStatus]}`;\n }\n if (this.sdkConfigLogLevel !== undefined) {\n customVariable['sdk.config.logLevel'] = `${LogLevel[this.sdkConfigLogLevel]}`;\n }\n if (this.sdkConfigMode !== undefined) {\n customVariable['sdk.config.mode'] = `${this.sdkConfigMode}`;\n }\n if (this.sdkConfigCustomLogManager !== undefined) {\n customVariable['sdk.config.customLogManager'] = `${this.sdkConfigCustomLogManager}`;\n }\n if (this.sdkConfigCustomCacheManager !== undefined) {\n customVariable['sdk.config.customCacheManager'] = `${this.sdkConfigCustomCacheManager}`;\n }\n if (this.sdkConfigStatusListener !== undefined) {\n customVariable['sdk.config.custom.StatusListener'] = `${this.sdkConfigStatusListener}`;\n }\n if (this.sdkConfigTimeout !== undefined) {\n customVariable['sdk.config.timeout'] = `${this.sdkConfigTimeout * 1000}`;\n }\n if (this.sdkConfigPollingInterval !== undefined) {\n customVariable['sdk.config.pollingTime'] = `${this.sdkConfigPollingInterval * 1000}`;\n }\n if (this.sdkConfigTrackingManagerStrategy !== undefined) {\n customVariable['sdk.config.trackingManager.strategy'] = `${CacheStrategy[this.sdkConfigTrackingManagerStrategy]}`;\n }\n if (this.sdkConfigTrackingManagerBatchIntervals !== undefined) {\n customVariable['sdk.config.trackingManager.batchIntervals'] = `${this.sdkConfigTrackingManagerBatchIntervals * 1000}`;\n }\n if (this.sdkConfigTrackingManagerPoolMaxSize !== undefined) {\n customVariable['sdk.config.trackingManager.poolMaxSize'] = `${this.sdkConfigTrackingManagerPoolMaxSize}`;\n }\n if (this.sdkConfigFetchNow !== undefined) {\n customVariable['sdk.config.fetchNow'] = `${this.sdkConfigFetchNow}`;\n }\n if (this.sdkConfigReuseVisitorIds !== undefined) {\n customVariable['sdk.config.reuseVisitorIds'] = `${this.sdkConfigReuseVisitorIds}`;\n }\n if (this.sdkConfigInitialBucketing !== undefined) {\n customVariable['sdk.config.initialBucketing'] = JSON.stringify(this.sdkConfigInitialBucketing);\n }\n if (this.sdkConfigDecisionApiUrl !== undefined) {\n customVariable['sdk.config.decisionApiUrl'] = `${this.sdkConfigDecisionApiUrl}`;\n }\n if (this.sdkConfigHitDeduplicationTime !== undefined) {\n customVariable['sdk.config.hitDeduplicationTime'] = `${this.sdkConfigHitDeduplicationTime * 1000}`;\n }\n if (this.sdkConfigUsingCustomHitCache !== undefined) {\n customVariable['sdk.config.usingCustomHitCache'] = JSON.stringify(this.sdkConfigUsingCustomHitCache);\n }\n if (this.sdkConfigUsingCustomVisitorCache !== undefined) {\n customVariable['sdk.config.usingCustomVisitorCache'] = JSON.stringify(this.sdkConfigUsingCustomVisitorCache);\n }\n if (this.sdkConfigUsingOnVisitorExposed !== undefined) {\n customVariable['sdk.config.usingOnVisitorExposed'] = JSON.stringify(this.sdkConfigUsingOnVisitorExposed);\n }\n if (this.sdkConfigFetchThirdPartyData !== undefined) {\n customVariable['sdk.config.fetchThirdPartyData'] = JSON.stringify(this.sdkConfigFetchThirdPartyData);\n }\n if (this.sdkConfigFetchFlagsBufferingTime !== undefined) {\n customVariable['sdk.config.fetchFlagsBufferingTime'] = JSON.stringify(this.sdkConfigFetchFlagsBufferingTime * 1000);\n }\n if (this.sdkConfigNextFetchConfig !== undefined) {\n customVariable['sdk.config.nextFetchConfig'] = JSON.stringify(this.sdkConfigNextFetchConfig);\n }\n if (this.sdkConfigDisableDeveloperUsageTracking !== undefined) {\n customVariable['sdk.config.disableDeveloperUsageTracking'] = JSON.stringify(this.sdkConfigDisableDeveloperUsageTracking);\n }\n if (this.sdkConfigDisableCache !== undefined) {\n customVariable['sdk.config.disableCache'] = JSON.stringify(this.sdkConfigDisableCache);\n }\n if (this.httpRequestUrl !== undefined) {\n customVariable['http.request.url'] = `${this.httpRequestUrl}`;\n }\n if (this.httpRequestMethod !== undefined) {\n customVariable['http.request.method'] = `${this.httpRequestMethod}`;\n }\n if (this.httpRequestHeaders !== undefined) {\n customVariable['http.request.headers'] = JSON.stringify(this.httpRequestHeaders);\n }\n if (this.httpRequestBody !== undefined) {\n customVariable['http.request.body'] = JSON.stringify(this.httpRequestBody);\n }\n if (this.httpResponseUrl !== undefined) {\n customVariable['http.response.url'] = `${this.httpResponseUrl}`;\n }\n if (this.httpResponseMethod !== undefined) {\n customVariable['http.response.method'] = `${this.httpResponseMethod}`;\n }\n if (this.httpResponseHeaders !== undefined) {\n customVariable['http.response.headers'] = JSON.stringify(this.httpResponseHeaders);\n }\n if (this.httpResponseCode !== undefined) {\n customVariable['http.response.code'] = `${this.httpResponseCode}`;\n }\n if (this.httpResponseBody !== undefined) {\n customVariable['http.response.body'] = JSON.stringify(this.httpResponseBody);\n }\n if (this.httpResponseTime !== undefined) {\n customVariable['http.response.time'] = `${this.httpResponseTime}`;\n }\n if (this.visitorId !== undefined) {\n customVariable['visitor.visitorId'] = `${this.visitorId}`;\n }\n if (this.anonymousId !== undefined) {\n customVariable['visitor.anonymousId'] = `${this.anonymousId}`;\n }\n if (this.visitorSessionId !== undefined) {\n customVariable['visitor.sessionId'] = `${this.visitorSessionId}`;\n }\n if (this.visitorStatus !== undefined) {\n customVariable['visitor.status'] = `${this.visitorStatus}`;\n }\n if (this.visitorInstanceType !== undefined) {\n customVariable['visitor.instanceType'] = `${this.visitorInstanceType}`;\n }\n if (this.visitorContext !== undefined) {\n for (const key in this.visitorContext) {\n const element = this.visitorContext[key];\n customVariable[`visitor.context.[${key}]`] = `${element}`;\n }\n }\n if (this.visitorConsent !== undefined) {\n customVariable['visitor.consent'] = `${this.visitorConsent}`;\n }\n if (this.visitorAssignmentHistory !== undefined) {\n for (const key in this.visitorAssignmentHistory) {\n const element = this.visitorAssignmentHistory[key];\n customVariable[`visitor.assignments.[${key}]`] = element;\n }\n }\n if (this.visitorFlags !== undefined) {\n this.visitorFlags.forEach((item, flagKey) => {\n for (const itemKey in item) {\n const itemValue = item[itemKey];\n const hasMetadataKey = itemKey === 'value' || itemKey === 'key';\n const value = typeof itemValue === 'string' ? itemValue : JSON.stringify(itemValue);\n customVariable[`visitor.flags.[${flagKey}]${hasMetadataKey ? '' : '.metadata'}.${itemKey}`] = value;\n }\n });\n }\n if (this.visitorIsAuthenticated !== undefined) {\n customVariable['visitor.isAuthenticated'] = `${this.visitorIsAuthenticated}`;\n }\n if (this.visitorInitialCampaigns !== undefined) {\n customVariable['visitor.initialCampaigns'] = JSON.stringify(this.visitorInitialCampaigns);\n }\n if (this.visitorInitialFlagsData !== undefined) {\n customVariable['visitor.initialFlagsData'] = JSON.stringify(Array.isArray(this.visitorInitialFlagsData) ? this.visitorInitialFlagsData : Array.from(this.visitorInitialFlagsData));\n }\n if (this.visitorCampaigns !== undefined) {\n customVariable['visitor.campaigns'] = JSON.stringify(this.visitorCampaigns);\n }\n if (this.visitorCampaignFromCache !== undefined) {\n customVariable['visitor.campaignFromCache'] = JSON.stringify(this.visitorCampaignFromCache);\n }\n if (this.contextKey !== undefined) {\n customVariable.contextKey = `${this.contextKey}`;\n }\n if (this.contextValue !== undefined) {\n customVariable.contextValue = `${this.contextValue}`;\n }\n if (this.flagKey !== undefined) {\n customVariable['flag.key'] = `${this.flagKey}`;\n }\n if (this.flagValue !== undefined) {\n customVariable['flag.value'] = `${this.flagValue}`;\n }\n if (this.flagDefault !== undefined) {\n customVariable['flag.default'] = JSON.stringify(this.flagDefault);\n }\n if (this.flagMetadataCampaignId !== undefined) {\n customVariable['flag.metadata.campaignId'] = `${this.flagMetadataCampaignId}`;\n }\n if (this.flagMetadataCampaignName !== undefined) {\n customVariable['flag.metadata.campaignName'] = `${this.flagMetadataCampaignName}`;\n }\n if (this.flagMetadataVariationGroupId !== undefined) {\n customVariable['flag.metadata.variationGroupId'] = `${this.flagMetadataVariationGroupId}`;\n }\n if (this.flagMetadataVariationGroupName !== undefined) {\n customVariable['flag.metadata.variationGroupName'] = `${this.flagMetadataVariationGroupName}`;\n }\n if (this.flagMetadataVariationId !== undefined) {\n customVariable['flag.metadata.variationId'] = `${this.flagMetadataVariationId}`;\n }\n if (this.flagMetadataVariationName !== undefined) {\n customVariable['flag.metadata.variationName'] = `${this.flagMetadataVariationName}`;\n }\n if (this.flagMetadataCampaignSlug !== undefined) {\n customVariable['flag.metadata.campaignSlug'] = `${this.flagMetadataCampaignSlug}`;\n }\n if (this.flagMetadataCampaignType !== undefined) {\n customVariable['flag.metadata.campaignType'] = `${this.flagMetadataCampaignType}`;\n }\n if (this.flagMetadataCampaignIsReference !== undefined) {\n customVariable['flag.metadata.isReference'] = `${this.flagMetadataCampaignIsReference}`;\n }\n if (this.hitContent !== undefined) {\n for (const key in this.hitContent) {\n const element = this.hitContent[key];\n customVariable[`hit.${key}`] = typeof element === 'string' ? element : JSON.stringify(element);\n }\n }\n if (this.batchTriggeredBy !== undefined) {\n customVariable.batchTriggeredBy = `${BatchTriggeredBy[this.batchTriggeredBy]}`;\n }\n apiKeys.cv = customVariable;\n return apiKeys;\n }\n isReady(checkParent = true) {\n return !!((!checkParent || super.isReady()));\n }\n getErrorMessage() {\n return ERROR_MESSAGE;\n }\n}\n","import { Diagnostic } from './Diagnostic';\nexport class Troubleshooting extends Diagnostic {\n constructor(param) {\n super({ ...param, type: 'TROUBLESHOOTING' });\n }\n}\n","import { BASE_API_URL, EXPOSE_ALL_KEYS, FETCH_FLAGS_PANIC_MODE, FSSdkStatus, HEADER_APPLICATION_JSON, HEADER_CONTENT_TYPE, HEADER_X_API_KEY, HEADER_X_SDK_CLIENT, HEADER_X_SDK_VERSION, LogLevel, PROCESS_FETCHING_FLAGS, SDK_INFO, URL_CAMPAIGNS } from '../enum/index';\nimport { TroubleshootingLabel } from '../types';\nimport { errorFormat, logDebug } from '../utils/utils';\nimport { Troubleshooting } from '../hit/Troubleshooting';\nexport class DecisionManager {\n _bucketingContent;\n _config;\n _panic = false;\n _httpClient;\n _statusChangedCallback;\n _troubleshooting;\n _lastBucketingTimestamp;\n _trackingManager;\n _flagshipInstanceId;\n get trackingManager() {\n return this._trackingManager;\n }\n set trackingManager(v) {\n this._trackingManager = v;\n }\n get flagshipInstanceId() {\n return this._flagshipInstanceId;\n }\n set flagshipInstanceId(v) {\n this._flagshipInstanceId = v;\n }\n get lastBucketingTimestamp() {\n return this._lastBucketingTimestamp;\n }\n get troubleshooting() {\n return this._troubleshooting;\n }\n set troubleshooting(v) {\n this._troubleshooting = v;\n }\n get config() {\n return this._config;\n }\n // eslint-disable-next-line accessor-pairs\n set panic(v) {\n this.updateFlagshipStatus(v ? FSSdkStatus.SDK_PANIC : FSSdkStatus.SDK_INITIALIZED);\n this._panic = v;\n if (v) {\n logDebug(this.config, FETCH_FLAGS_PANIC_MODE, PROCESS_FETCHING_FLAGS);\n }\n }\n statusChangedCallback(v) {\n this._statusChangedCallback = v;\n }\n constructor(httpClient, config) {\n this._config = config;\n this._httpClient = httpClient;\n }\n updateFlagshipStatus(v) {\n if (typeof this._statusChangedCallback === 'function' && this._statusChangedCallback) {\n this._statusChangedCallback(v);\n }\n }\n getModifications(campaigns) {\n const modifications = new Map();\n campaigns.forEach((campaign) => {\n const object = campaign.variation.modifications.value;\n for (const key in object) {\n const value = object[key];\n modifications.set(key, {\n key,\n campaignId: campaign.id,\n campaignName: campaign.name || '',\n variationGroupId: campaign.variationGroupId,\n variationGroupName: campaign.variationGroupName || '',\n variationId: campaign.variation.id,\n variationName: campaign.variation.name || '',\n isReference: !!campaign.variation.reference,\n campaignType: campaign.type,\n slug: campaign.slug,\n value\n });\n }\n });\n return modifications;\n }\n isPanic() {\n return this._panic;\n }\n async getDecisionApiCampaignsAsync(visitor) {\n const headers = {\n [HEADER_X_API_KEY]: `${this.config.apiKey}`,\n [HEADER_X_SDK_CLIENT]: SDK_INFO.name,\n [HEADER_X_SDK_VERSION]: SDK_INFO.version,\n [HEADER_CONTENT_TYPE]: HEADER_APPLICATION_JSON\n };\n const requestBody = {\n visitorId: visitor.visitorId,\n anonymousId: visitor.anonymousId,\n trigger_hit: false,\n context: visitor.context,\n visitor_consent: visitor.hasConsented\n };\n const url = `${this.config.decisionApiUrl || BASE_API_URL}${this.config.envId}${URL_CAMPAIGNS}?${EXPOSE_ALL_KEYS}=true&extras[]=accountSettings`;\n const now = Date.now();\n try {\n const response = await this._httpClient.postAsync(url, {\n headers,\n timeout: this.config.timeout,\n body: requestBody,\n nextFetchConfig: this.config.nextFetchConfig\n });\n this.panic = !!response?.body?.panic;\n let campaigns = null;\n if (response?.body?.campaigns) {\n campaigns = response.body.campaigns;\n }\n const troubleshooting = response?.body?.extras?.accountSettings?.troubleshooting;\n if (troubleshooting) {\n this.troubleshooting = {\n startDate: new Date(troubleshooting.startDate),\n endDate: new Date(troubleshooting.endDate),\n timezone: troubleshooting.timezone,\n traffic: troubleshooting.traffic\n };\n }\n return campaigns;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n const troubleshooting = new Troubleshooting({\n label: TroubleshootingLabel.GET_CAMPAIGNS_ROUTE_RESPONSE_ERROR,\n logLevel: LogLevel.ERROR,\n visitorId: visitor.visitorId,\n anonymousId: visitor.anonymousId,\n visitorSessionId: visitor.instanceId,\n traffic: 100,\n config: this.config,\n visitorContext: visitor.context,\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: url,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseCode: error?.statusCode,\n httpResponseTime: Date.now() - now\n });\n await this.trackingManager.addTroubleshootingHit(troubleshooting);\n const errorMessage = errorFormat(error.message || error, {\n url,\n headers,\n body: requestBody,\n duration: Date.now() - now\n });\n throw new Error(errorMessage);\n }\n }\n}\n","import { DecisionManager } from './DecisionManager';\nexport class ApiManager extends DecisionManager {\n async getCampaignsAsync(visitor) {\n return this.getDecisionApiCampaignsAsync(visitor);\n }\n}\n","import { EVENT_ACTION_API_ITEM, EVENT_CATEGORY_API_ITEM, EVENT_LABEL_API_ITEM, EVENT_VALUE_API_ITEM } from '../enum/FlagshipConstant';\nimport { HitType } from '../enum/HitType';\nimport { logError } from '../utils/utils';\nimport { HitAbstract } from './HitAbstract';\nexport const ERROR_MESSAGE = 'event category and event action are required';\nexport const CATEGORY_ERROR = 'The category value must be either EventCategory::ACTION_TRACKING or EventCategory::ACTION_TRACKING';\nexport const VALUE_FIELD_ERROR = 'value must be an integer and be >= 0';\nexport var EventCategory;\n(function (EventCategory) {\n EventCategory[\"ACTION_TRACKING\"] = \"Action Tracking\";\n EventCategory[\"USER_ENGAGEMENT\"] = \"User Engagement\";\n})(EventCategory || (EventCategory = {}));\nexport class Event extends HitAbstract {\n _category;\n _action;\n _label;\n _value;\n get category() {\n return this._category;\n }\n /**\n * Specify Action Tracking or User Engagement.\n */\n set category(v) {\n if (!(Object.values(EventCategory).includes(v))) {\n logError(this.config, CATEGORY_ERROR, 'category');\n return;\n }\n this._category = v;\n }\n get action() {\n return this._action;\n }\n /**\n * Specify Event name that will also serve as the KPI\n * that you will have inside your reporting\n */\n set action(v) {\n if (!this.isNotEmptyString(v, 'action')) {\n return;\n }\n this._action = v;\n }\n get label() {\n return this._label;\n }\n /**\n * Specify additional description of event.\n */\n set label(v) {\n if (!this.isNotEmptyString(v, 'label')) {\n return;\n }\n this._label = v;\n }\n get value() {\n return this._value;\n }\n /**\n * Specify the monetary value associated with an event\n * (e.g. you earn 10 to 100 euros depending on the quality of lead generated).\n *\n *
NOTE: this value must be non-negative.\n */\n set value(v) {\n if (!Number.isInteger(v) || v < 0) {\n logError(this.config, VALUE_FIELD_ERROR, 'value');\n return;\n }\n this._value = v;\n }\n constructor(param) {\n super({\n type: HitType.EVENT,\n userIp: param.userIp,\n screenResolution: param.screenResolution,\n locale: param.locale,\n sessionNumber: param.sessionNumber,\n visitorId: param.visitorId,\n anonymousId: param.anonymousId,\n qaMode: param.qaMode\n });\n const { category, action, label, value } = param;\n this.category = category;\n this.action = action;\n if (label) {\n this.label = label;\n }\n if (value) {\n this.value = value;\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n toApiKeys() {\n const apiKeys = super.toApiKeys();\n apiKeys[EVENT_CATEGORY_API_ITEM] = this.category;\n apiKeys[EVENT_ACTION_API_ITEM] = this.action;\n if (this.label) {\n apiKeys[EVENT_LABEL_API_ITEM] = this.label;\n }\n if (this.value) {\n apiKeys[EVENT_VALUE_API_ITEM] = this.value;\n }\n return apiKeys;\n }\n toObject() {\n return {\n ...super.toObject(),\n category: this.category,\n action: this.action,\n label: this.label,\n value: this.value\n };\n }\n isReady(checkParent = true) {\n return !!((!checkParent || super.isReady()) && this.category && this.action);\n }\n getErrorMessage() {\n return ERROR_MESSAGE;\n }\n}\n","import { IC_API_ITEM, IN_API_ITEM, IP_API_ITEM, IQ_API_ITEM, IV_API_ITEM, TID_API_ITEM } from '../enum/FlagshipConstant';\nimport { HitType } from '../enum/HitType';\nimport { HitAbstract } from './HitAbstract';\nexport const ERROR_MESSAGE = 'Transaction Id, Item name and item code are required';\nexport class Item extends HitAbstract {\n _transactionId;\n _productName;\n _productSku;\n _itemPrice;\n _itemQuantity;\n _itemCategory;\n get transactionId() {\n return this._transactionId;\n }\n /**\n * Specify transaction unique identifier.\n */\n set transactionId(v) {\n if (!this.isNotEmptyString(v, 'transactionId')) {\n return;\n }\n this._transactionId = v;\n }\n get productName() {\n return this._productName;\n }\n /**\n * Specify name of the item product.\n */\n set productName(v) {\n if (!this.isNotEmptyString(v, 'productName')) {\n return;\n }\n this._productName = v;\n }\n get productSku() {\n return this._productSku;\n }\n /**\n * Specify the SKU or item code.\n */\n set productSku(v) {\n if (!this.isNotEmptyString(v, 'productSku')) {\n return;\n }\n this._productSku = v;\n }\n get itemPrice() {\n return this._itemPrice;\n }\n /**\n * Specify the price for a single item\n */\n set itemPrice(v) {\n if (!this.isNumeric(v, 'itemPrice')) {\n return;\n }\n this._itemPrice = v;\n }\n get itemQuantity() {\n return this._itemQuantity;\n }\n /**\n * Specify the number of items purchased.\n */\n set itemQuantity(v) {\n if (!this.isInteger(v, 'itemQuantity')) {\n return;\n }\n this._itemQuantity = Math.trunc(v);\n }\n get itemCategory() {\n return this._itemCategory;\n }\n /**\n * Specify the category that the item belongs to\n */\n set itemCategory(v) {\n if (!this.isNotEmptyString(v, 'itemCategory')) {\n return;\n }\n this._itemCategory = v;\n }\n /**\n *Item constructor.\n * @param transactionId : Transaction unique identifier.\n * @param productName : Name of the item product.\n * @param productSku : The SKU or item code.\n */\n constructor(param) {\n super({\n type: HitType.ITEM,\n userIp: param.userIp,\n screenResolution: param.screenResolution,\n locale: param.locale,\n sessionNumber: param.sessionNumber,\n visitorId: param.visitorId,\n anonymousId: param.anonymousId,\n qaMode: param.qaMode\n });\n const { transactionId, productName, productSku, itemCategory, itemPrice, itemQuantity } = param;\n this.transactionId = transactionId;\n this.productName = productName;\n this.productSku = productSku;\n if (itemCategory) {\n this.itemCategory = itemCategory;\n }\n if (itemPrice) {\n this.itemPrice = itemPrice;\n }\n if (itemQuantity) {\n this.itemQuantity = itemQuantity;\n }\n }\n isReady(checkParent = true) {\n return !!((!checkParent || super.isReady()) &&\n this.transactionId &&\n this.productName &&\n this.productSku);\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n toApiKeys() {\n const apiKeys = super.toApiKeys();\n apiKeys[TID_API_ITEM] = this.transactionId;\n apiKeys[IN_API_ITEM] = this.productName;\n apiKeys[IC_API_ITEM] = this.productSku;\n if (this.itemPrice) {\n apiKeys[IP_API_ITEM] = this.itemPrice;\n }\n if (this.itemQuantity) {\n apiKeys[IQ_API_ITEM] = this.itemQuantity;\n }\n if (this.itemCategory) {\n apiKeys[IV_API_ITEM] = this.itemCategory;\n }\n return apiKeys;\n }\n toObject() {\n return {\n ...super.toObject(),\n transactionId: this.transactionId,\n productName: this.productName,\n productSku: this.productSku,\n itemPrice: this.itemPrice,\n itemQuantity: this.itemQuantity,\n itemCategory: this.itemCategory\n };\n }\n getErrorMessage() {\n return ERROR_MESSAGE;\n }\n}\n","import { DL_API_ITEM } from '../enum/FlagshipConstant';\nimport { HitType } from '../enum/HitType';\nimport { HitAbstract } from './HitAbstract';\nexport const ERROR_MESSAGE = 'documentLocation url is required';\nexport class Page extends HitAbstract {\n _documentLocation;\n get documentLocation() {\n return this._documentLocation;\n }\n set documentLocation(v) {\n if (!this.isNotEmptyString(v, 'documentLocation')) {\n return;\n }\n this._documentLocation = v;\n }\n constructor(page) {\n super({\n type: HitType.PAGE_VIEW,\n userIp: page.userIp,\n screenResolution: page.screenResolution,\n locale: page.locale,\n sessionNumber: page.sessionNumber,\n visitorId: page.visitorId,\n anonymousId: page.anonymousId,\n qaMode: page.qaMode\n });\n this.documentLocation = page.documentLocation;\n }\n isReady(checkParent = true) {\n return !!((!checkParent || super.isReady()) && this.documentLocation);\n }\n toApiKeys() {\n const apiKeys = super.toApiKeys();\n apiKeys[DL_API_ITEM] = this.documentLocation;\n return apiKeys;\n }\n toObject() {\n return {\n ...super.toObject(),\n documentLocation: this.documentLocation\n };\n }\n getErrorMessage() {\n return ERROR_MESSAGE;\n }\n}\n","import { DL_API_ITEM } from '../enum/FlagshipConstant';\nimport { HitType } from '../enum/HitType';\nimport { HitAbstract } from './HitAbstract';\nexport const ERROR_MESSAGE = 'Screen name is required';\nexport class Screen extends HitAbstract {\n _documentLocation;\n get documentLocation() {\n return this._documentLocation;\n }\n set documentLocation(v) {\n if (!this.isNotEmptyString(v, 'documentLocation')) {\n return;\n }\n this._documentLocation = v;\n }\n constructor(param) {\n super({\n type: HitType.SCREEN_VIEW,\n userIp: param.userIp,\n screenResolution: param.screenResolution,\n locale: param.locale,\n sessionNumber: param.sessionNumber,\n visitorId: param.visitorId,\n anonymousId: param.anonymousId,\n qaMode: param.qaMode\n });\n this.documentLocation = param.documentLocation;\n }\n isReady(checkParent = true) {\n return !!((!checkParent || super.isReady()) && this.documentLocation);\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n toApiKeys() {\n const apiKeys = super.toApiKeys();\n apiKeys[DL_API_ITEM] = this.documentLocation;\n return apiKeys;\n }\n toObject() {\n return {\n ...super.toObject(),\n documentLocation: this.documentLocation\n };\n }\n getErrorMessage() {\n return ERROR_MESSAGE;\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ICN_API_ITEM, PM_API_ITEM, SM_API_ITEM, TA_API_ITEM, TC_API_ITEM, TCC_API_ITEM, TID_API_ITEM, TR_API_ITEM, TS_API_ITEM, TT_API_ITEM } from '../enum/FlagshipConstant';\nimport { HitType } from '../enum/HitType';\nimport { logError, sprintf } from '../utils/utils';\nimport { HitAbstract } from './HitAbstract';\nexport const CURRENCY_ERROR = '{0} must be a string and have exactly 3 letters';\nexport const ERROR_MESSAGE = 'Transaction Id and Transaction affiliation are required';\nexport class Transaction extends HitAbstract {\n _transactionId;\n _affiliation;\n _taxes;\n _currency;\n _couponCode;\n _itemCount;\n _shippingMethod;\n _paymentMethod;\n _totalRevenue;\n _shippingCosts;\n get transactionId() {\n return this._transactionId;\n }\n set transactionId(v) {\n if (!this.isNotEmptyString(v, 'transactionId')) {\n return;\n }\n this._transactionId = v;\n }\n get affiliation() {\n return this._affiliation;\n }\n set affiliation(v) {\n if (!this.isNotEmptyString(v, 'affiliation')) {\n return;\n }\n this._affiliation = v;\n }\n get taxes() {\n return this._taxes;\n }\n set taxes(v) {\n if (!this.isNumeric(v, 'taxes')) {\n return;\n }\n this._taxes = v;\n }\n get currency() {\n return this._currency;\n }\n set currency(v) {\n if (!v || typeof v !== 'string' || v.length !== 3) {\n logError(this.config, sprintf(CURRENCY_ERROR, 'currency'), 'currency');\n return;\n }\n this._currency = v;\n }\n get couponCode() {\n return this._couponCode;\n }\n set couponCode(v) {\n if (!this.isNotEmptyString(v, 'couponCode')) {\n return;\n }\n this._couponCode = v;\n }\n get itemCount() {\n return this._itemCount;\n }\n set itemCount(v) {\n if (!this.isInteger(v, 'itemCount')) {\n return;\n }\n this._itemCount = Math.trunc(v);\n }\n get shippingMethod() {\n return this._shippingMethod;\n }\n set shippingMethod(v) {\n if (!this.isNotEmptyString(v, 'shippingMethod')) {\n return;\n }\n this._shippingMethod = v;\n }\n get paymentMethod() {\n return this._paymentMethod;\n }\n set paymentMethod(v) {\n if (!this.isNotEmptyString(v, 'paymentMethod')) {\n return;\n }\n this._paymentMethod = v;\n }\n get totalRevenue() {\n return this._totalRevenue;\n }\n set totalRevenue(v) {\n if (!this.isNumeric(v, 'totalRevenue')) {\n return;\n }\n this._totalRevenue = v;\n }\n get shippingCosts() {\n return this._shippingCosts;\n }\n set shippingCosts(v) {\n if (!this.isNumeric(v, 'shippingCosts')) {\n return;\n }\n this._shippingCosts = v;\n }\n constructor(param) {\n super({\n type: HitType.TRANSACTION,\n userIp: param.userIp,\n screenResolution: param.screenResolution,\n locale: param.locale,\n sessionNumber: param.sessionNumber,\n visitorId: param.visitorId,\n anonymousId: param.anonymousId,\n qaMode: param.qaMode\n });\n const { transactionId, affiliation, taxes, currency, couponCode, itemCount, shippingMethod, paymentMethod, totalRevenue, shippingCosts } = param;\n this.transactionId = transactionId;\n this.affiliation = affiliation;\n if (taxes) {\n this.taxes = taxes;\n }\n if (currency) {\n this.currency = currency;\n }\n if (couponCode) {\n this.couponCode = couponCode;\n }\n if (itemCount) {\n this.itemCount = itemCount;\n }\n if (shippingMethod) {\n this.shippingMethod = shippingMethod;\n }\n if (paymentMethod) {\n this.paymentMethod = paymentMethod;\n }\n if (totalRevenue) {\n this.totalRevenue = totalRevenue;\n }\n if (shippingCosts) {\n this.shippingCosts = shippingCosts;\n }\n }\n isReady(checkParent = true) {\n return !!((!checkParent || super.isReady()) && this.transactionId && this.affiliation);\n }\n toApiKeys() {\n const apiKeys = super.toApiKeys();\n apiKeys[TID_API_ITEM] = this.transactionId;\n apiKeys[TA_API_ITEM] = this.affiliation;\n if (this.taxes) {\n apiKeys[TT_API_ITEM] = this.taxes;\n }\n if (this.currency) {\n apiKeys[TC_API_ITEM] = this.currency;\n }\n if (this.couponCode) {\n apiKeys[TCC_API_ITEM] = this.couponCode;\n }\n if (this.itemCount) {\n apiKeys[ICN_API_ITEM] = this.itemCount;\n }\n if (this.shippingMethod) {\n apiKeys[SM_API_ITEM] = this.shippingMethod;\n }\n if (this.paymentMethod) {\n apiKeys[PM_API_ITEM] = this.paymentMethod;\n }\n if (this.totalRevenue) {\n apiKeys[TR_API_ITEM] = this.totalRevenue;\n }\n if (this.shippingCosts) {\n apiKeys[TS_API_ITEM] = this.shippingCosts;\n }\n return apiKeys;\n }\n toObject() {\n return {\n ...super.toObject(),\n transactionId: this.transactionId,\n affiliation: this.affiliation,\n taxes: this.taxes,\n currency: this.currency,\n couponCode: this.couponCode,\n itemCount: this.itemCount,\n shippingMethod: this.shippingMethod,\n paymentMethod: this.paymentMethod,\n totalRevenue: this.totalRevenue,\n shippingCosts: this.shippingCosts\n };\n }\n getErrorMessage() {\n return ERROR_MESSAGE;\n }\n}\n","import { S_API_ITEM } from '../enum/index';\nimport { HitAbstract } from './HitAbstract';\nexport const ERROR_MESSAGE = 'data property is required';\nexport class Segment extends HitAbstract {\n _context;\n get context() {\n return this._context;\n }\n set context(v) {\n this._context = v;\n }\n constructor(param) {\n super({\n type: 'SEGMENT',\n userIp: param.userIp,\n screenResolution: param.screenResolution,\n locale: param.locale,\n sessionNumber: param.sessionNumber,\n visitorId: param.visitorId,\n anonymousId: param.anonymousId,\n qaMode: param.qaMode\n });\n this.context = param.context;\n }\n isReady(checkParent = true) {\n return !!((!checkParent || super.isReady()) && this.context);\n }\n toApiKeys() {\n const apiKeys = super.toApiKeys();\n apiKeys[S_API_ITEM] = this.context;\n return apiKeys;\n }\n toObject() {\n return {\n ...super.toObject(),\n context: this.context\n };\n }\n getErrorMessage() {\n return ERROR_MESSAGE;\n }\n}\n","import { BATCH, CUSTOMER_ENV_ID_API_ITEM } from '../enum/index';\nexport class ActivateBatch {\n _hits;\n _config;\n get hits() {\n return this._hits;\n }\n get config() {\n return this._config;\n }\n constructor(hits, config) {\n this._config = config;\n this._hits = hits;\n }\n toApiKeys() {\n return {\n [CUSTOMER_ENV_ID_API_ITEM]: `${this.config?.envId}`,\n [BATCH]: this.hits.map(x => {\n const apiKeys = x.toApiKeys();\n delete apiKeys[CUSTOMER_ENV_ID_API_ITEM];\n return apiKeys;\n })\n };\n }\n}\n","import { CUSTOMER_ENV_ID_API_ITEM, DS_API_ITEM, QT_API_ITEM, T_API_ITEM } from '../enum/FlagshipConstant';\nimport { HitAbstract } from './HitAbstract';\nexport const BATCH = 'BATCH';\nexport const ERROR_MESSAGE = 'Please check required fields';\nexport class Batch extends HitAbstract {\n _hits;\n get hits() {\n return this._hits;\n }\n set hits(v) {\n this._hits = v;\n }\n constructor(params) {\n super({ ...params, visitorId: '', anonymousId: '', type: BATCH });\n this.hits = params.hits;\n }\n isReady() {\n return !!(super.isReady() &&\n this.hits &&\n this.hits.length > 0 &&\n this.hits.every(hit => hit.isReady(false)));\n }\n toApiKeys() {\n const apiKeys = {\n [DS_API_ITEM]: this.ds,\n [CUSTOMER_ENV_ID_API_ITEM]: `${this.config?.envId}`,\n [T_API_ITEM]: this.type,\n [QT_API_ITEM]: Date.now() - this.createdAt\n };\n apiKeys.h = this.hits.map(hit => {\n const hitKeys = hit.toApiKeys();\n delete hitKeys[DS_API_ITEM];\n delete hitKeys[CUSTOMER_ENV_ID_API_ITEM];\n return hitKeys;\n });\n return apiKeys;\n }\n getErrorMessage() {\n return ERROR_MESSAGE;\n }\n}\n","/**\n * All events posted from iframe\n */\nexport var MSG_NAME_FROM_IFRAME;\n(function (MSG_NAME_FROM_IFRAME) {\n MSG_NAME_FROM_IFRAME[\"QaAssistantClose\"] = \"ABTASTY_QA_ASSISTANT_CLOSE\";\n MSG_NAME_FROM_IFRAME[\"FsApplyForcedVariations\"] = \"FS_APPLY_FORCED_VARIATIONS\";\n MSG_NAME_FROM_IFRAME[\"FsResetForcedVariations\"] = \"FS_RESET_FORCED_VARIATIONS\";\n MSG_NAME_FROM_IFRAME[\"FsQaAssistantReady\"] = \"FS_QA_ASSISTANT_READY\";\n MSG_NAME_FROM_IFRAME[\"MinimizeQaAssistantClose\"] = \"ABTASTY_QA_MINIMIZE_QA_ASSISTANT_CLOSE\";\n MSG_NAME_FROM_IFRAME[\"FsTriggerRender\"] = \"FS_TRIGGER_RENDER\";\n})(MSG_NAME_FROM_IFRAME || (MSG_NAME_FROM_IFRAME = {}));\n/**\n * All events posted to iframe\n */\nexport var MSG_NAME_TO_IFRAME;\n(function (MSG_NAME_TO_IFRAME) {\n MSG_NAME_TO_IFRAME[\"FsUpdateVisitorAllocatedVariation\"] = \"FS_UPDATE_VISITOR_ALLOCATED_VARIATION\";\n MSG_NAME_TO_IFRAME[\"FsVisitorExposedVariation\"] = \"FS_VISITOR_EXPOSED_VARIATION\";\n MSG_NAME_TO_IFRAME[\"FsHIT\"] = \"FS_HIT\";\n})(MSG_NAME_TO_IFRAME || (MSG_NAME_TO_IFRAME = {}));\nexport var INTERNAL_EVENTS;\n(function (INTERNAL_EVENTS) {\n INTERNAL_EVENTS[\"FsTriggerRendering\"] = \"FS_TRIGGER_RENDERING\";\n})(INTERNAL_EVENTS || (INTERNAL_EVENTS = {}));\n","import { isBrowser } from '../../utils/utils';\nimport { MSG_NAME_TO_IFRAME } from '../type';\nexport function sendMessageToIframe(data) {\n if (!window?.frames?.ABTastyQaAssistant || !isBrowser()) {\n return;\n }\n window.frames.ABTastyQaAssistant.postMessage(data, '*');\n}\nexport function sendVisitorAllocatedVariations(visitorVariations) {\n if (!isBrowser()) {\n return;\n }\n window.flagship = {\n ...window.flagship,\n visitorVariations\n };\n sendMessageToIframe({ name: MSG_NAME_TO_IFRAME.FsUpdateVisitorAllocatedVariation, value: visitorVariations });\n}\nexport function sendVisitorExposedVariations(visitorVariations) {\n sendMessageToIframe({ name: MSG_NAME_TO_IFRAME.FsVisitorExposedVariation, value: visitorVariations });\n}\nexport function sendFsHitToQA(hit) {\n sendMessageToIframe({\n name: MSG_NAME_TO_IFRAME.FsHIT,\n value: hit.map(item => {\n return { ...item, timestamp: Date.now() - item.qt };\n })\n });\n}\n","import { DecisionMode } from '../config/index';\nimport { BatchTriggeredBy } from '../enum/BatchTriggeredBy';\nimport { ACTIVATE_ADDED_IN_QUEUE, ADD_ACTIVATE, BATCH_MAX_SIZE, DEFAULT_HIT_CACHE_TIME_MS, FS_CONSENT, HEADER_APPLICATION_JSON, HEADER_CONTENT_TYPE, HitType, HIT_ADDED_IN_QUEUE, HIT_CACHE_VERSION, HIT_DATA_FLUSHED, HIT_EVENT_URL, LogLevel, PROCESS_CACHE_HIT, PROCESS_FLUSH_HIT, SDK_APP, SDK_INFO, SEND_BATCH, TROUBLESHOOTING_HIT_URL, TROUBLESHOOTING_HIT_ADDED_IN_QUEUE, ADD_TROUBLESHOOTING_HIT, TROUBLESHOOTING_SENT_SUCCESS, SEND_TROUBLESHOOTING, ALL_HITS_FLUSHED, HIT_CACHE_ERROR, HIT_CACHE_SAVED, PROCESS_CACHE, TRACKING_MANAGER, HIT_SENT_SUCCESS, BATCH_HIT, TRACKING_MANAGER_ERROR, USAGE_HIT_URL, ANALYTICS_HIT_SENT_SUCCESS as USAGE_HIT_SENT_SUCCESS, SEND_USAGE_HIT, ANALYTICS_HIT_ADDED_IN_QUEUE as USAGE_HIT_ADDED_IN_QUEUE, ADD_USAGE_HIT } from '../enum/index';\nimport { Batch } from '../hit/Batch';\nimport { Troubleshooting } from '../hit/Troubleshooting';\nimport { TroubleshootingLabel } from '../types';\nimport { errorFormat, isBrowser, logDebug, logDebugSprintf, logError, logErrorSprintf, sprintf, uuidV4 } from '../utils/utils';\nimport { sendFsHitToQA } from '../qaAssistant/messages/index';\nexport class BatchingCachingStrategyAbstract {\n _config;\n _hitsPoolQueue;\n _activatePoolQueue;\n _httpClient;\n _troubleshootingQueue;\n _usageHitQueue;\n _flagshipInstanceId;\n _isUsageHitQueueSending;\n _isTroubleshootingQueueSending;\n _HitsToFsQa;\n _sendFsHitToQATimeoutId;\n _troubleshootingData;\n get flagshipInstanceId() {\n return this._flagshipInstanceId;\n }\n get troubleshootingData() {\n return this._troubleshootingData;\n }\n set troubleshootingData(v) {\n this._troubleshootingData = v;\n }\n get config() {\n return this._config;\n }\n constructor(param) {\n const { config, hitsPoolQueue, httpClient, activatePoolQueue, troubleshootingQueue, flagshipInstanceId, analyticHitQueue } = param;\n this._HitsToFsQa = [];\n this._config = config;\n this._hitsPoolQueue = hitsPoolQueue;\n this._httpClient = httpClient;\n this._activatePoolQueue = activatePoolQueue;\n this._troubleshootingQueue = troubleshootingQueue;\n this._flagshipInstanceId = flagshipInstanceId;\n this._usageHitQueue = analyticHitQueue;\n this._isUsageHitQueueSending = false;\n this._isTroubleshootingQueueSending = false;\n }\n sendHitsToFsQa(hits) {\n if (!isBrowser() || !this.config.isQAModeEnabled) {\n return;\n }\n this._HitsToFsQa.push(...hits);\n const BATCH_SIZE = 10;\n const DELAY = 3000;\n if (this._HitsToFsQa.length >= BATCH_SIZE) {\n sendFsHitToQA(this._HitsToFsQa.map(item => item.toApiKeys()));\n this._HitsToFsQa = [];\n }\n if (this._sendFsHitToQATimeoutId) {\n clearTimeout(this._sendFsHitToQATimeoutId);\n }\n if (!this._HitsToFsQa.length) {\n return;\n }\n this._sendFsHitToQATimeoutId = setTimeout(() => {\n sendFsHitToQA(this._HitsToFsQa.map(item => item.toApiKeys()));\n this._HitsToFsQa = [];\n }, DELAY);\n }\n async addHit(hit) {\n const hitKey = `${hit.visitorId}:${uuidV4()}`;\n hit.key = hitKey;\n await this.addHitInPoolQueue(hit);\n if (hit.type === HitType.EVENT && hit.action === FS_CONSENT && hit.label === `${SDK_INFO.name}:false`) {\n await this.notConsent(hit.visitorId);\n }\n logDebugSprintf(this.config, TRACKING_MANAGER, HIT_ADDED_IN_QUEUE, hit.toApiKeys());\n if (this.config.trackingManagerConfig?.poolMaxSize &&\n this._hitsPoolQueue.size >= this.config.trackingManagerConfig.poolMaxSize &&\n this.config.decisionMode !== DecisionMode.BUCKETING_EDGE) {\n this.sendBatch();\n }\n }\n async activateFlag(hit) {\n const hitKey = `${hit.visitorId}:${uuidV4()}`;\n hit.key = hitKey;\n if (this.config.decisionMode === DecisionMode.BUCKETING_EDGE) {\n await this.activateFlagEdgeMode(hit);\n logDebug(this.config, sprintf(ACTIVATE_ADDED_IN_QUEUE, JSON.stringify(hit.toApiKeys())), ADD_ACTIVATE);\n return;\n }\n let activateHitsPool = [];\n if (this._activatePoolQueue.size) {\n activateHitsPool = Array.from(this._activatePoolQueue.values());\n }\n this._activatePoolQueue.clear();\n await this.sendActivate({ activateHitsPool, currentActivate: hit, batchTriggeredBy: BatchTriggeredBy.ActivateLength });\n }\n async activateFlagEdgeMode(hit) {\n this._activatePoolQueue.set(hit.key, hit);\n await this.cacheHit(new Map([[hit.key, hit]]));\n }\n onVisitorExposed(activate) {\n const onVisitorExposed = this.config.onVisitorExposed;\n if (typeof onVisitorExposed !== 'function') {\n return;\n }\n const fromFlag = {\n key: activate.flagKey,\n value: activate.flagValue,\n defaultValue: activate.flagDefaultValue,\n metadata: activate.flagMetadata\n };\n const exposedVisitor = {\n id: activate.visitorId,\n anonymousId: activate.anonymousId,\n context: activate.visitorContext\n };\n onVisitorExposed({ exposedVisitor, fromFlag });\n }\n async sendBatch(batchTriggeredBy = BatchTriggeredBy.BatchLength) {\n if (this._activatePoolQueue.size) {\n const activateHits = Array.from(this._activatePoolQueue.values());\n this._activatePoolQueue.clear();\n await this.sendActivate({ activateHitsPool: activateHits, batchTriggeredBy });\n }\n const batch = new Batch({ hits: [], ds: SDK_APP });\n batch.config = this.config;\n const hitKeysToRemove = [];\n for (const [key, item] of this._hitsPoolQueue) {\n if ((Date.now() - item.createdAt) >= DEFAULT_HIT_CACHE_TIME_MS) {\n hitKeysToRemove.push(key);\n continue;\n }\n const batchSize = JSON.stringify(batch).length;\n if (batchSize > BATCH_MAX_SIZE) {\n break;\n }\n batch.hits.push(item);\n hitKeysToRemove.push(key);\n }\n hitKeysToRemove.forEach(key => {\n this._hitsPoolQueue.delete(key);\n });\n if (!batch.hits.length) {\n return;\n }\n const headers = {\n [HEADER_CONTENT_TYPE]: HEADER_APPLICATION_JSON\n };\n const requestBody = batch.toApiKeys();\n const now = Date.now();\n try {\n await this._httpClient.postAsync(HIT_EVENT_URL, {\n headers,\n body: requestBody,\n timeout: this.config.timeout,\n nextFetchConfig: this.config.nextFetchConfig\n });\n logDebugSprintf(this.config, TRACKING_MANAGER, HIT_SENT_SUCCESS, BATCH_HIT, {\n url: HIT_EVENT_URL,\n body: requestBody,\n headers,\n nextFetchConfig: this.config.nextFetchConfig,\n duration: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy[batchTriggeredBy]\n });\n await this.flushHits(hitKeysToRemove);\n this.sendHitsToFsQa(batch.hits);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n batch.hits.forEach((hit) => {\n this._hitsPoolQueue.set(hit.key, hit);\n });\n logErrorSprintf(this.config, TRACKING_MANAGER, TRACKING_MANAGER_ERROR, BATCH_HIT, {\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: HIT_EVENT_URL,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseCode: error?.statusCode,\n duration: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy[batchTriggeredBy]\n });\n const monitoringHttpResponse = new Troubleshooting({\n label: TroubleshootingLabel.SEND_BATCH_HIT_ROUTE_RESPONSE_ERROR,\n logLevel: LogLevel.ERROR,\n visitorId: `${this._flagshipInstanceId}`,\n flagshipInstanceId: this._flagshipInstanceId,\n traffic: 0,\n config: this.config,\n httpRequestBody: batch.hits,\n httpRequestHeaders: headers,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseMethod: 'POST',\n httpResponseUrl: HIT_EVENT_URL,\n httpResponseCode: error?.statusCode,\n httpResponseTime: Date.now() - now,\n batchTriggeredBy\n });\n await this.sendTroubleshootingHit(monitoringHttpResponse);\n }\n }\n async notConsent(visitorId) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const hitKeys = Array.from(this._hitsPoolQueue).filter(([_, item]) => {\n return (item?.type !== HitType.EVENT || item?.action !== FS_CONSENT) && (item.visitorId === visitorId || item.anonymousId === visitorId);\n });\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const activateKeys = Array.from(this._activatePoolQueue).filter(([_, item]) => {\n return item.visitorId === visitorId || item.anonymousId === visitorId;\n });\n const keysToFlush = [];\n hitKeys.forEach(([key]) => {\n this._hitsPoolQueue.delete(key);\n keysToFlush.push(key);\n });\n activateKeys.forEach(([key]) => {\n this._activatePoolQueue.delete(key);\n keysToFlush.push(key);\n });\n if (!keysToFlush.length) {\n return;\n }\n await this.flushHits(keysToFlush);\n }\n async cacheHit(hits) {\n try {\n const hitCacheImplementation = this.config.hitCacheImplementation;\n if (this.config.disableCache || !hitCacheImplementation || typeof hitCacheImplementation.cacheHit !== 'function') {\n return;\n }\n const data = {};\n hits.forEach((item, key) => {\n const hitData = {\n version: HIT_CACHE_VERSION,\n data: {\n visitorId: item.visitorId,\n anonymousId: item.anonymousId,\n type: item.type,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n content: item.toObject(),\n time: Date.now()\n }\n };\n data[key] = hitData;\n });\n await hitCacheImplementation.cacheHit(data);\n logDebugSprintf(this.config, PROCESS_CACHE_HIT, HIT_CACHE_SAVED, data);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logErrorSprintf(this.config, PROCESS_CACHE, HIT_CACHE_ERROR, 'cacheHit', error.message || error);\n }\n }\n async flushHits(hitKeys) {\n try {\n const hitCacheImplementation = this.config.hitCacheImplementation;\n if (this.config.disableCache || !hitCacheImplementation || typeof hitCacheImplementation.flushHits !== 'function') {\n return;\n }\n await hitCacheImplementation.flushHits(hitKeys);\n logDebugSprintf(this.config, PROCESS_CACHE, HIT_DATA_FLUSHED, hitKeys);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logErrorSprintf(this.config, PROCESS_CACHE, HIT_CACHE_ERROR, 'flushHits', error.message || error);\n }\n }\n async flushAllHits() {\n try {\n const hitCacheImplementation = this.config.hitCacheImplementation;\n if (this.config.disableCache || !hitCacheImplementation || typeof hitCacheImplementation.flushAllHits !== 'function') {\n return;\n }\n await hitCacheImplementation.flushAllHits();\n logDebug(this.config, ALL_HITS_FLUSHED, PROCESS_FLUSH_HIT);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logErrorSprintf(this.config, PROCESS_CACHE, HIT_CACHE_ERROR, 'flushAllHits', error.message || error);\n }\n }\n // #region Troubleshooting\n isTroubleshootingActivated() {\n if (!this.troubleshootingData) {\n return false;\n }\n const now = new Date();\n const isStarted = now >= this.troubleshootingData.startDate;\n if (!isStarted) {\n return false;\n }\n const isFinished = now > this.troubleshootingData.endDate;\n if (isFinished) {\n return false;\n }\n return true;\n }\n async addTroubleshootingHit(hit) {\n if (!hit.key) {\n const hitKey = `${hit.visitorId}:${uuidV4()}`;\n hit.key = hitKey;\n }\n this._troubleshootingQueue.set(hit.key, hit);\n logDebug(this.config, sprintf(TROUBLESHOOTING_HIT_ADDED_IN_QUEUE, JSON.stringify(hit.toApiKeys())), ADD_TROUBLESHOOTING_HIT);\n }\n async sendTroubleshootingHit(hit) {\n if (!this.isTroubleshootingActivated() || hit.traffic === undefined || this.troubleshootingData.traffic < hit.traffic) {\n return;\n }\n const requestBody = hit.toApiKeys();\n const now = Date.now();\n try {\n await this._httpClient.postAsync(TROUBLESHOOTING_HIT_URL, {\n body: requestBody\n });\n logDebug(this.config, sprintf(TROUBLESHOOTING_SENT_SUCCESS, JSON.stringify({\n ...requestBody,\n duration: Date.now() - now\n })), SEND_TROUBLESHOOTING);\n if (hit.key) {\n this._troubleshootingQueue.delete(hit.key);\n await this.flushHits([hit.key]);\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n if (this.isTroubleshootingActivated()) {\n await this.addTroubleshootingHit(hit);\n }\n logError(this.config, errorFormat(error.message || error, {\n url: TROUBLESHOOTING_HIT_URL,\n headers: {},\n body: requestBody,\n duration: Date.now() - now\n }), SEND_BATCH);\n }\n }\n async sendTroubleshootingQueue() {\n if (!this.isTroubleshootingActivated() || this._isTroubleshootingQueueSending || this._troubleshootingQueue.size === 0) {\n return;\n }\n this._isTroubleshootingQueueSending = true;\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n for (const [_, item] of Array.from(this._troubleshootingQueue)) {\n await this.sendTroubleshootingHit(item);\n }\n this._isTroubleshootingQueueSending = false;\n }\n // #endregion\n // #region Analytic hit\n async addUsageHit(hit) {\n if (!hit.key) {\n const hitKey = `${hit.visitorId}:${uuidV4()}`;\n hit.key = hitKey;\n }\n this._usageHitQueue.set(hit.key, hit);\n logDebug(this.config, sprintf(USAGE_HIT_ADDED_IN_QUEUE, JSON.stringify(hit.toApiKeys())), ADD_USAGE_HIT);\n }\n async sendUsageHit(hit) {\n const requestBody = hit.toApiKeys();\n const now = Date.now();\n try {\n await this._httpClient.postAsync(USAGE_HIT_URL, {\n body: requestBody\n });\n logDebug(this.config, sprintf(USAGE_HIT_SENT_SUCCESS, JSON.stringify({\n ...requestBody,\n duration: Date.now() - now\n })), SEND_USAGE_HIT);\n if (hit.key) {\n this._usageHitQueue.delete(hit.key);\n await this.flushHits([hit.key]);\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n await this.addUsageHit(hit);\n logError(this.config, errorFormat(error.message || error, {\n url: USAGE_HIT_URL,\n headers: {},\n body: requestBody,\n duration: Date.now() - now\n }), SEND_BATCH);\n }\n }\n async sendUsageHitQueue() {\n if (this._isUsageHitQueueSending || this._usageHitQueue.size === 0) {\n return;\n }\n this._isUsageHitQueueSending = true;\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n for (const [_, item] of Array.from(this._usageHitQueue)) {\n await this.sendUsageHit(item);\n }\n this._isUsageHitQueueSending = false;\n }\n}\n","import { ACTIVATE_HIT, DEFAULT_HIT_CACHE_TIME_MS, HIT_SENT_SUCCESS, TRACKING_MANAGER, TRACKING_MANAGER_ERROR } from '../enum/FlagshipConstant';\nimport { BatchTriggeredBy } from '../enum/BatchTriggeredBy';\nimport { BASE_API_URL, HEADER_APPLICATION_JSON, HEADER_CONTENT_TYPE, HEADER_X_API_KEY, HEADER_X_SDK_CLIENT, HEADER_X_SDK_VERSION, LogLevel, SDK_INFO, URL_ACTIVATE_MODIFICATION } from '../enum/index';\nimport { ActivateBatch } from '../hit/ActivateBatch';\nimport { Troubleshooting } from '../hit/Troubleshooting';\nimport { logDebugSprintf, logErrorSprintf } from '../utils/utils';\nimport { BatchingCachingStrategyAbstract } from './BatchingCachingStrategyAbstract';\nimport { TroubleshootingLabel } from '../types';\nexport class BatchingContinuousCachingStrategy extends BatchingCachingStrategyAbstract {\n async addHitInPoolQueue(hit) {\n this._hitsPoolQueue.set(hit.key, hit);\n await this.cacheHit(new Map([[hit.key, hit]]));\n }\n async sendActivate({ activateHitsPool, currentActivate, batchTriggeredBy }) {\n const headers = {\n [HEADER_X_API_KEY]: this.config.apiKey,\n [HEADER_X_SDK_CLIENT]: SDK_INFO.name,\n [HEADER_X_SDK_VERSION]: SDK_INFO.version,\n [HEADER_CONTENT_TYPE]: HEADER_APPLICATION_JSON\n };\n const activateBatch = new ActivateBatch(Array.from(activateHitsPool.filter(item => (Date.now() - item.createdAt) < DEFAULT_HIT_CACHE_TIME_MS)), this.config);\n if (currentActivate) {\n activateBatch.hits.push(currentActivate);\n }\n const requestBody = activateBatch.toApiKeys();\n const url = BASE_API_URL + URL_ACTIVATE_MODIFICATION;\n const now = Date.now();\n try {\n await this._httpClient.postAsync(url, {\n headers,\n body: requestBody,\n timeout: this.config.timeout,\n nextFetchConfig: this.config.nextFetchConfig\n });\n logDebugSprintf(this.config, TRACKING_MANAGER, HIT_SENT_SUCCESS, ACTIVATE_HIT, {\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: url,\n duration: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy[batchTriggeredBy]\n });\n const hitKeysToRemove = activateHitsPool.map(item => item.key);\n activateBatch.hits.forEach(item => {\n this.onVisitorExposed(item);\n });\n if (hitKeysToRemove.length) {\n await this.flushHits(hitKeysToRemove);\n }\n this.sendHitsToFsQa(activateBatch.hits);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n activateBatch.hits.forEach(item => {\n this._activatePoolQueue.set(item.key, item);\n });\n if (currentActivate) {\n await this.cacheHit(new Map([[currentActivate.key, currentActivate]]));\n }\n logErrorSprintf(this.config, TRACKING_MANAGER, TRACKING_MANAGER_ERROR, ACTIVATE_HIT, {\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: url,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseCode: error?.statusCode,\n duration: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy[batchTriggeredBy]\n });\n const monitoringHttpResponse = new Troubleshooting({\n label: TroubleshootingLabel.SEND_ACTIVATE_HIT_ROUTE_ERROR,\n logLevel: LogLevel.ERROR,\n visitorId: `${this._flagshipInstanceId}`,\n traffic: 0,\n config: this.config,\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: url,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseCode: error?.statusCode,\n httpResponseTime: Date.now() - now,\n batchTriggeredBy\n });\n await this.sendTroubleshootingHit(monitoringHttpResponse);\n }\n }\n}\n","import { BatchTriggeredBy } from '../enum/BatchTriggeredBy';\nimport { BASE_API_URL, BATCH_MAX_SIZE, DEFAULT_HIT_CACHE_TIME_MS, HEADER_APPLICATION_JSON, HEADER_CONTENT_TYPE, HEADER_X_API_KEY, HEADER_X_SDK_CLIENT, HEADER_X_SDK_VERSION, HIT_EVENT_URL, HIT_SENT_SUCCESS, LogLevel, SDK_INFO, URL_ACTIVATE_MODIFICATION, BATCH_HIT, TRACKING_MANAGER, TRACKING_MANAGER_ERROR, ACTIVATE_HIT } from '../enum/index';\nimport { ActivateBatch } from '../hit/ActivateBatch';\nimport { Batch } from '../hit/Batch';\nimport { Troubleshooting } from '../hit/Troubleshooting';\nimport { TroubleshootingLabel } from '../types';\nimport { logDebugSprintf, logErrorSprintf } from '../utils/utils';\nimport { BatchingCachingStrategyAbstract } from './BatchingCachingStrategyAbstract';\nexport class BatchingPeriodicCachingStrategy extends BatchingCachingStrategyAbstract {\n async addHitInPoolQueue(hit) {\n this._hitsPoolQueue.set(hit.key, hit);\n }\n async sendActivate({ activateHitsPool, currentActivate, batchTriggeredBy }) {\n const headers = {\n [HEADER_X_API_KEY]: this.config.apiKey,\n [HEADER_X_SDK_CLIENT]: SDK_INFO.name,\n [HEADER_X_SDK_VERSION]: SDK_INFO.version,\n [HEADER_CONTENT_TYPE]: HEADER_APPLICATION_JSON\n };\n const activateBatch = new ActivateBatch(Array.from(activateHitsPool.filter(item => (Date.now() - item.createdAt) < DEFAULT_HIT_CACHE_TIME_MS)), this.config);\n if (currentActivate) {\n activateBatch.hits.push(currentActivate);\n }\n const requestBody = activateBatch.toApiKeys();\n const url = BASE_API_URL + URL_ACTIVATE_MODIFICATION;\n const now = Date.now();\n try {\n await this._httpClient.postAsync(url, {\n headers,\n body: requestBody,\n timeout: this.config.timeout,\n nextFetchConfig: this.config.nextFetchConfig\n });\n logDebugSprintf(this.config, TRACKING_MANAGER, HIT_SENT_SUCCESS, ACTIVATE_HIT, {\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: url,\n duration: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy[batchTriggeredBy]\n });\n activateBatch.hits.forEach(item => {\n this.onVisitorExposed(item);\n });\n this.sendHitsToFsQa(activateBatch.hits);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n activateBatch.hits.forEach(item => {\n this._activatePoolQueue.set(item.key, item);\n });\n logErrorSprintf(this.config, TRACKING_MANAGER, TRACKING_MANAGER_ERROR, ACTIVATE_HIT, {\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: url,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseCode: error?.statusCode,\n duration: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy[batchTriggeredBy]\n });\n const monitoringHttpResponse = new Troubleshooting({\n label: TroubleshootingLabel.SEND_ACTIVATE_HIT_ROUTE_ERROR,\n logLevel: LogLevel.ERROR,\n visitorId: `${this._flagshipInstanceId}`,\n traffic: 0,\n config: this.config,\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: url,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseCode: error?.statusCode,\n httpResponseTime: Date.now() - now,\n batchTriggeredBy\n });\n await this.sendTroubleshootingHit(monitoringHttpResponse);\n }\n }\n async sendBatch(batchTriggeredBy = BatchTriggeredBy.BatchLength) {\n let hasActivateHit = false;\n if (this._activatePoolQueue.size) {\n const activateHits = Array.from(this._activatePoolQueue.values());\n this._activatePoolQueue.clear();\n await this.sendActivate({ activateHitsPool: activateHits, batchTriggeredBy });\n hasActivateHit = true;\n }\n const headers = {\n [HEADER_CONTENT_TYPE]: HEADER_APPLICATION_JSON\n };\n const batch = new Batch({ hits: [] });\n batch.config = this.config;\n let batchSize = 0;\n const hitKeysToRemove = [];\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n for (const [key, item] of this._hitsPoolQueue) {\n if ((Date.now() - item.createdAt) >= DEFAULT_HIT_CACHE_TIME_MS) {\n hitKeysToRemove.push(key);\n continue;\n }\n batchSize = JSON.stringify(batch).length;\n if (batchSize > BATCH_MAX_SIZE) {\n break;\n }\n batch.hits.push(item);\n hitKeysToRemove.push(key);\n }\n hitKeysToRemove.forEach(key => {\n this._hitsPoolQueue.delete(key);\n });\n if (!batch.hits.length) {\n if (hasActivateHit) {\n await this.cacheHit(this._activatePoolQueue);\n }\n return;\n }\n const requestBody = batch.toApiKeys();\n const now = Date.now();\n try {\n await this._httpClient.postAsync(HIT_EVENT_URL, {\n headers,\n body: requestBody,\n timeout: this.config.timeout,\n nextFetchConfig: this.config.nextFetchConfig\n });\n logDebugSprintf(this.config, TRACKING_MANAGER, HIT_SENT_SUCCESS, BATCH_HIT, {\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: HIT_EVENT_URL,\n duration: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy[batchTriggeredBy]\n });\n this.sendHitsToFsQa(batch.hits);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n batch.hits.forEach((hit) => {\n this._hitsPoolQueue.set(hit.key, hit);\n });\n logErrorSprintf(this.config, TRACKING_MANAGER, TRACKING_MANAGER_ERROR, BATCH_HIT, {\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: HIT_EVENT_URL,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseCode: error?.statusCode,\n duration: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy[batchTriggeredBy]\n });\n const monitoringHttpResponse = new Troubleshooting({\n label: TroubleshootingLabel.SEND_BATCH_HIT_ROUTE_RESPONSE_ERROR,\n logLevel: LogLevel.ERROR,\n visitorId: `${this._flagshipInstanceId}`,\n traffic: 0,\n config: this.config,\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseMethod: 'POST',\n httpResponseUrl: HIT_EVENT_URL,\n httpResponseCode: error?.statusCode,\n httpResponseTime: Date.now() - now\n });\n this.addTroubleshootingHit(monitoringHttpResponse);\n }\n const mergedQueue = new Map([...this._hitsPoolQueue, ...this._activatePoolQueue]);\n await this.flushAllHits();\n await this.cacheHit(mergedQueue);\n }\n}\n","import { BatchTriggeredBy } from '../enum/BatchTriggeredBy';\nimport { HEADER_CONTENT_TYPE, HEADER_APPLICATION_JSON, HIT_EVENT_URL, HitType, HIT_SENT_SUCCESS, FS_CONSENT, SDK_INFO, BASE_API_URL, HEADER_X_API_KEY, HEADER_X_SDK_CLIENT, HEADER_X_SDK_VERSION, URL_ACTIVATE_MODIFICATION, LogLevel, ACTIVATE_HIT, DIRECT_HIT, TRACKING_MANAGER, TRACKING_MANAGER_ERROR, DEFAULT_HIT_CACHE_TIME_MS } from '../enum/index';\nimport { ActivateBatch } from '../hit/ActivateBatch';\nimport { Troubleshooting } from '../hit/Troubleshooting';\nimport { TroubleshootingLabel } from '../types';\nimport { logDebugSprintf, logErrorSprintf, uuidV4 } from '../utils/utils';\nimport { BatchingCachingStrategyAbstract } from './BatchingCachingStrategyAbstract';\nexport class NoBatchingContinuousCachingStrategy extends BatchingCachingStrategyAbstract {\n cacheHitKeys;\n constructor(param) {\n super(param);\n this.cacheHitKeys = {};\n }\n async activateFlag(hit) {\n const hitKey = `${hit.visitorId}:${uuidV4()}`;\n hit.key = hitKey;\n await this.sendActivate({ activateHitsPool: [], currentActivate: hit, batchTriggeredBy: BatchTriggeredBy.ActivateLength });\n }\n async addHit(hit) {\n const hitKey = `${hit.visitorId}:${uuidV4()}`;\n hit.key = hitKey;\n if (hit.type === HitType.EVENT && hit.action === FS_CONSENT && hit.label === `${SDK_INFO.name}:false`) {\n await this.notConsent(hit.visitorId);\n }\n await this.sendHit(hit);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n addHitInPoolQueue(_hit) {\n return Promise.resolve();\n }\n async sendHit(hit) {\n const headers = {\n [HEADER_CONTENT_TYPE]: HEADER_APPLICATION_JSON\n };\n const requestBody = hit.toApiKeys();\n const now = Date.now();\n try {\n await this._httpClient.postAsync(HIT_EVENT_URL, {\n headers,\n body: requestBody,\n timeout: this.config.timeout,\n nextFetchConfig: this.config.nextFetchConfig\n });\n logDebugSprintf(this.config, TRACKING_MANAGER, HIT_SENT_SUCCESS, DIRECT_HIT, {\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: HIT_EVENT_URL,\n duration: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy[BatchTriggeredBy.DirectHit]\n });\n this.sendHitsToFsQa([hit]);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n if (hit.type !== HitType.EVENT || hit.action !== FS_CONSENT) {\n this.cacheHitKeys[hit.key] = hit.visitorId;\n }\n await this.cacheHit(new Map().set(hit.key, hit));\n logErrorSprintf(this.config, TRACKING_MANAGER, TRACKING_MANAGER_ERROR, DIRECT_HIT, {\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: HIT_EVENT_URL,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseCode: error?.statusCode,\n duration: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy[BatchTriggeredBy.DirectHit]\n });\n const monitoringHttpResponse = new Troubleshooting({\n label: TroubleshootingLabel.SEND_HIT_ROUTE_ERROR,\n logLevel: LogLevel.ERROR,\n visitorId: `${this._flagshipInstanceId}`,\n traffic: 0,\n config: this.config,\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: HIT_EVENT_URL,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseCode: error?.statusCode,\n httpResponseTime: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy.DirectHit\n });\n await this.sendTroubleshootingHit(monitoringHttpResponse);\n }\n }\n async notConsent(visitorId) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const cacheHitKeysEntries = Object.entries(this.cacheHitKeys).filter(([_, value]) => value === visitorId);\n const keys = [];\n for (const [key] of cacheHitKeysEntries) {\n keys.push(key);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const hitsKeys = Array.from(this._hitsPoolQueue).filter(([_, item]) => {\n return (item?.type !== HitType.EVENT || item?.action !== FS_CONSENT) && (item.visitorId === visitorId || item.anonymousId === visitorId);\n });\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const activateKeys = Array.from(this._activatePoolQueue).filter(([_, item]) => {\n return item.visitorId === visitorId || item.anonymousId === visitorId;\n });\n const keysToFlush = [];\n hitsKeys.forEach(([key]) => {\n this._hitsPoolQueue.delete(key);\n keysToFlush.push(key);\n });\n activateKeys.forEach(([key]) => {\n this._activatePoolQueue.delete(key);\n keysToFlush.push(key);\n });\n const mergedKeys = [...keys, ...keysToFlush];\n if (!mergedKeys.length) {\n return;\n }\n await this.flushHits(mergedKeys);\n this.cacheHitKeys = {};\n }\n async sendActivate({ activateHitsPool, currentActivate, batchTriggeredBy }) {\n const headers = {\n [HEADER_X_API_KEY]: this.config.apiKey,\n [HEADER_X_SDK_CLIENT]: SDK_INFO.name,\n [HEADER_X_SDK_VERSION]: SDK_INFO.version,\n [HEADER_CONTENT_TYPE]: HEADER_APPLICATION_JSON\n };\n const activateBatch = new ActivateBatch(Array.from(activateHitsPool.filter(item => (Date.now() - item.createdAt) < DEFAULT_HIT_CACHE_TIME_MS)), this.config);\n if (currentActivate) {\n activateBatch.hits.push(currentActivate);\n }\n const requestBody = activateBatch.toApiKeys();\n const url = BASE_API_URL + URL_ACTIVATE_MODIFICATION;\n const now = Date.now();\n try {\n await this._httpClient.postAsync(url, {\n headers,\n body: requestBody,\n timeout: this.config.timeout,\n nextFetchConfig: this.config.nextFetchConfig\n });\n logDebugSprintf(this.config, TRACKING_MANAGER, HIT_SENT_SUCCESS, ACTIVATE_HIT, {\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: url,\n duration: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy[batchTriggeredBy]\n });\n const hitKeysToRemove = activateHitsPool.map(item => item.key);\n activateBatch.hits.forEach(item => {\n this.onVisitorExposed(item);\n });\n if (hitKeysToRemove.length) {\n await this.flushHits(hitKeysToRemove);\n }\n this.sendHitsToFsQa(activateBatch.hits);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n activateBatch.hits.forEach((item) => {\n this.cacheHitKeys[item.key] = item.visitorId;\n });\n if (currentActivate) {\n await this.cacheHit(new Map([[currentActivate.key, currentActivate]]));\n }\n logErrorSprintf(this.config, TRACKING_MANAGER, TRACKING_MANAGER_ERROR, ACTIVATE_HIT, {\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: url,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseCode: error?.statusCode,\n duration: Date.now() - now,\n batchTriggeredBy: BatchTriggeredBy[batchTriggeredBy]\n });\n const monitoringHttpResponse = new Troubleshooting({\n label: TroubleshootingLabel.SEND_ACTIVATE_HIT_ROUTE_ERROR,\n logLevel: LogLevel.ERROR,\n visitorId: `${this._flagshipInstanceId}`,\n traffic: 0,\n config: this.config,\n httpRequestBody: requestBody,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: url,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseMethod: 'POST',\n httpResponseUrl: url,\n httpResponseCode: error?.statusCode,\n httpResponseTime: Date.now() - now,\n batchTriggeredBy\n });\n await this.sendTroubleshootingHit(monitoringHttpResponse);\n }\n }\n}\n","import { ANONYMOUS_ID, CUSTOMER_ENV_ID_API_ACTIVATE, QA_MODE_API_ITEM, QT_API_ITEM, VARIATION_GROUP_ID_API_ITEM_ACTIVATE, VARIATION_ID_API_ITEM, VISITOR_ID_API_ITEM } from '../enum/index';\nimport { HitAbstract } from './HitAbstract';\nexport const ERROR_MESSAGE = 'variationGroupId and variationId are required';\nexport class Activate extends HitAbstract {\n _variationGroupId;\n _variationId;\n _flagKey;\n _flagValue;\n _flagDefaultValue;\n _flagMetadata;\n _visitorContext;\n constructor(param) {\n super({\n type: 'ACTIVATE',\n userIp: param.userIp,\n screenResolution: param.screenResolution,\n locale: param.locale,\n sessionNumber: param.sessionNumber,\n visitorId: param.visitorId,\n anonymousId: param.anonymousId,\n qaMode: param.qaMode\n });\n const { variationGroupId, variationId, flagKey, flagValue, flagDefaultValue, flagMetadata, visitorContext } = param;\n this.variationGroupId = variationGroupId;\n this.variationId = variationId;\n this.flagKey = flagKey;\n this.flagValue = flagValue;\n this.flagDefaultValue = flagDefaultValue;\n this.flagMetadata = flagMetadata;\n this.visitorContext = visitorContext;\n }\n get variationGroupId() {\n return this._variationGroupId;\n }\n set variationGroupId(v) {\n this._variationGroupId = v;\n }\n get variationId() {\n return this._variationId;\n }\n set variationId(v) {\n this._variationId = v;\n }\n get flagKey() {\n return this._flagKey;\n }\n set flagKey(v) {\n this._flagKey = v;\n }\n get flagValue() {\n return this._flagValue;\n }\n set flagValue(v) {\n this._flagValue = v;\n }\n get flagDefaultValue() {\n return this._flagDefaultValue;\n }\n set flagDefaultValue(v) {\n this._flagDefaultValue = v;\n }\n get flagMetadata() {\n return this._flagMetadata;\n }\n set flagMetadata(v) {\n this._flagMetadata = v;\n }\n get visitorContext() {\n return this._visitorContext;\n }\n set visitorContext(v) {\n this._visitorContext = v;\n }\n isReady(checkParent = true) {\n return !!((!checkParent || super.isReady()) && this.variationGroupId && this.variationId);\n }\n toApiKeys() {\n const apiKeys = {\n [VISITOR_ID_API_ITEM]: this.anonymousId || this.visitorId,\n [VARIATION_ID_API_ITEM]: this.variationId,\n [VARIATION_GROUP_ID_API_ITEM_ACTIVATE]: this.variationGroupId,\n [CUSTOMER_ENV_ID_API_ACTIVATE]: this.config.envId,\n [ANONYMOUS_ID]: null,\n [QT_API_ITEM]: Date.now() - this.createdAt\n };\n if (this.visitorId && this.anonymousId) {\n apiKeys[VISITOR_ID_API_ITEM] = this.visitorId;\n apiKeys[ANONYMOUS_ID] = this.anonymousId;\n }\n if (this.qaMode) {\n apiKeys[QA_MODE_API_ITEM] = this.qaMode;\n }\n return apiKeys;\n }\n toObject() {\n return {\n ...super.toObject(),\n variationGroupId: this.variationGroupId,\n variationId: this.variationId\n };\n }\n getErrorMessage() {\n return ERROR_MESSAGE;\n }\n}\n","import { BATCH_LOOP_STARTED, BATCH_LOOP_STOPPED, DEFAULT_HIT_CACHE_TIME_MS, HitType, HIT_CACHE_ERROR, HIT_CACHE_LOADED, PROCESS_CACHE, PROCESS_LOOKUP_HIT, TRACKING_MANAGER } from '../enum/index';\nimport { CacheStrategy } from '../enum/CacheStrategy';\nimport { Transaction, Event, Item, Page, Screen } from '../hit/index';\nimport { Segment } from '../hit/Segment';\nimport { logDebugSprintf, logError, logErrorSprintf, logInfo, logInfoSprintf } from '../utils/utils';\nimport { BatchingContinuousCachingStrategy } from './BatchingContinuousCachingStrategy';\nimport { BatchingPeriodicCachingStrategy } from './BatchingPeriodicCachingStrategy';\nimport { NoBatchingContinuousCachingStrategy } from './NoBatchingContinuousCachingStrategy';\nimport { Activate } from '../hit/Activate';\nimport { BatchTriggeredBy } from '../enum/BatchTriggeredBy';\nexport const LOOKUP_HITS_JSON_ERROR = 'JSON DATA must be an array of object';\nexport const LOOKUP_HITS_JSON_OBJECT_ERROR = 'JSON DATA must fit the type HitCacheDTO';\nexport class TrackingManagerAbstract {\n _httpClient;\n _config;\n _hitsPoolQueue;\n _activatePoolQueue;\n _troubleshootingQueue;\n _analyticHitQueue;\n strategy;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n _intervalID;\n _isPooling = false;\n _flagshipInstanceId;\n get flagshipInstanceId() {\n return this._flagshipInstanceId;\n }\n get troubleshootingData() {\n return this.strategy.troubleshootingData;\n }\n set troubleshootingData(v) {\n this.strategy.troubleshootingData = v;\n }\n constructor(httpClient, config, flagshipInstanceId) {\n this._flagshipInstanceId = flagshipInstanceId;\n this._hitsPoolQueue = new Map();\n this._activatePoolQueue = new Map();\n this._troubleshootingQueue = new Map();\n this._analyticHitQueue = new Map();\n this._httpClient = httpClient;\n this._config = config;\n this.strategy = this.initStrategy();\n this.lookupHits();\n }\n initStrategy() {\n let strategy;\n const argument = {\n config: this.config,\n httpClient: this.httpClient,\n hitsPoolQueue: this._hitsPoolQueue,\n activatePoolQueue: this._activatePoolQueue,\n troubleshootingQueue: this._troubleshootingQueue,\n analyticHitQueue: this._analyticHitQueue,\n flagshipInstanceId: this.flagshipInstanceId\n };\n switch (this.config.trackingManagerConfig?.cacheStrategy) {\n case CacheStrategy.PERIODIC_CACHING:\n strategy = new BatchingPeriodicCachingStrategy(argument);\n break;\n case CacheStrategy.CONTINUOUS_CACHING:\n strategy = new BatchingContinuousCachingStrategy(argument);\n break;\n default:\n strategy = new NoBatchingContinuousCachingStrategy(argument);\n break;\n }\n return strategy;\n }\n get httpClient() {\n return this._httpClient;\n }\n get config() {\n return this._config;\n }\n async sendTroubleshootingHit(hit) {\n await this.strategy.sendTroubleshootingHit(hit);\n }\n startBatchingLoop() {\n const timeInterval = (this.config.trackingManagerConfig?.batchIntervals) * 1000;\n logInfoSprintf(this.config, TRACKING_MANAGER, BATCH_LOOP_STARTED, timeInterval);\n this._intervalID = setInterval(() => {\n this.batchingLoop();\n }, timeInterval);\n }\n stopBatchingLoop() {\n clearInterval(this._intervalID);\n this._isPooling = false;\n logInfo(this.config, BATCH_LOOP_STOPPED, TRACKING_MANAGER);\n }\n async batchingLoop() {\n if (this._isPooling) {\n return;\n }\n this._isPooling = true;\n await this.strategy.sendBatch(BatchTriggeredBy.Timer);\n await this.strategy.sendTroubleshootingQueue();\n await this.strategy.sendUsageHitQueue();\n this._isPooling = false;\n }\n checkLookupHitData(item) {\n if (item?.version === 1 && item?.data?.type && item?.data?.content) {\n return true;\n }\n logError(this.config, LOOKUP_HITS_JSON_OBJECT_ERROR, PROCESS_LOOKUP_HIT);\n return false;\n }\n async lookupHits() {\n try {\n const hitCacheImplementation = this.config.hitCacheImplementation;\n if (this.config.disableCache || !hitCacheImplementation || typeof hitCacheImplementation.lookupHits !== 'function') {\n return;\n }\n const hitsCache = await hitCacheImplementation.lookupHits();\n logDebugSprintf(this.config, PROCESS_CACHE, HIT_CACHE_LOADED, hitsCache);\n if (!hitsCache || !Object.keys(hitsCache).length) {\n return;\n }\n const checkHitTime = (time) => (((Date.now() - time)) <= DEFAULT_HIT_CACHE_TIME_MS);\n const wrongHitKeys = [];\n Object.entries(hitsCache).forEach(([key, item]) => {\n if (!this.checkLookupHitData(item) || !checkHitTime(item.data.time)) {\n wrongHitKeys.push(key);\n return;\n }\n let hit;\n switch (item.data.type) {\n case HitType.EVENT:\n hit = new Event(item.data.content);\n break;\n case HitType.ITEM:\n hit = new Item(item.data.content);\n break;\n case HitType.PAGE:\n hit = new Page(item.data.content);\n break;\n case HitType.SCREEN:\n hit = new Screen(item.data.content);\n break;\n case 'SEGMENT':\n hit = new Segment(item.data.content);\n break;\n case 'ACTIVATE':\n hit = new Activate(item.data.content);\n hit.key = key;\n hit.createdAt = item.data.content.createdAt;\n hit.config = this.config;\n this._activatePoolQueue.set(key, hit);\n return;\n case HitType.TRANSACTION:\n hit = new Transaction(item.data.content);\n break;\n default:\n return;\n }\n hit.key = key;\n hit.createdAt = item.data.content.createdAt;\n hit.config = this.config;\n this._hitsPoolQueue.set(key, hit);\n });\n if (wrongHitKeys.length) {\n await this.strategy.flushHits(wrongHitKeys);\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logErrorSprintf(this.config, PROCESS_CACHE, HIT_CACHE_ERROR, 'lookupHits', error.message || error);\n }\n }\n async sendUsageHit(hit) {\n await this.strategy.sendUsageHit(hit);\n }\n async addTroubleshootingHit(hit) {\n await this.strategy.addTroubleshootingHit(hit);\n }\n}\n","import { BatchTriggeredBy } from '../enum/BatchTriggeredBy';\nimport { TrackingManagerAbstract } from './TrackingManagerAbstract';\nexport class TrackingManager extends TrackingManagerAbstract {\n async activateFlag(hit) {\n await this.strategy.activateFlag(hit);\n }\n async addHit(hit) {\n await this.strategy.addHit(hit);\n }\n async sendBatch() {\n await this.strategy.sendBatch(BatchTriggeredBy.Flush);\n }\n}\n","/* eslint-disable no-console */\nimport { FLAGSHIP_SDK, LogLevel } from '../enum/index';\nexport class FlagshipLogManager {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n consoleError;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n consoleWarn;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n consoleDebug;\n constructor() {\n this.consoleError = console.error ?? console.log;\n this.consoleWarn = console.warn ?? console.log;\n this.consoleDebug = console.debug ?? console.log;\n }\n emergency(message, tag) {\n this.consoleError(this.formatOutput(LogLevel.EMERGENCY, message, tag));\n }\n alert(message, tag) {\n this.consoleError(this.formatOutput(LogLevel.ALERT, message, tag));\n }\n critical(message, tag) {\n this.consoleError(this.formatOutput(LogLevel.CRITICAL, message, tag));\n }\n error(message, tag) {\n this.consoleError(this.formatOutput(LogLevel.ERROR, message, tag));\n }\n warning(message, tag) {\n this.consoleWarn(this.formatOutput(LogLevel.WARNING, message, tag));\n }\n notice(message, tag) {\n this.log(LogLevel.NOTICE, message, tag);\n }\n info(message, tag) {\n console.info(this.formatOutput(LogLevel.INFO, message, tag));\n }\n debug(message, tag) {\n this.consoleDebug(this.formatOutput(LogLevel.DEBUG, message, tag));\n }\n log(level, message, tag) {\n console.log(this.formatOutput(level, message, tag));\n }\n formatOutput(level, message, tag) {\n const now = new Date(Date.now());\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const getTwoDigit = (value) => {\n return value.toString().length === 1 ? `0${value}` : value;\n };\n return `[${getTwoDigit(now.getFullYear())}-${getTwoDigit(now.getMonth() + 1)}-${getTwoDigit(now.getDate())} ${getTwoDigit(now.getHours())}:${getTwoDigit(now.getMinutes())}:${getTwoDigit(now.getSeconds())}.${getTwoDigit(now.getMilliseconds())}] [${FLAGSHIP_SDK}] [${LogLevel[level]}] [${tag}] : ${message}`;\n }\n}\n","import { Diagnostic } from './Diagnostic';\nexport class UsageHit extends Diagnostic {\n constructor(param) {\n super({ ...param, type: 'USAGE' });\n }\n}\n","export const FS_HIT_PREFIX = 'FS_DEFAULT_HIT_CACHE';\nexport class DefaultHitCache {\n cacheHit(hits) {\n const localDatabaseJson = localStorage.getItem(FS_HIT_PREFIX) || '{}';\n const localDatabase = JSON.parse(localDatabaseJson);\n const newLocalDatabase = {\n ...localDatabase,\n ...hits\n };\n localStorage.setItem(FS_HIT_PREFIX, JSON.stringify(newLocalDatabase));\n return Promise.resolve();\n }\n lookupHits() {\n const localDatabaseJson = localStorage.getItem(FS_HIT_PREFIX) || '{}';\n const localDatabase = JSON.parse(localDatabaseJson);\n return Promise.resolve(localDatabase);\n }\n flushHits(hitKeys) {\n const localDatabaseJson = localStorage.getItem(FS_HIT_PREFIX) || '{}';\n const localDatabase = JSON.parse(localDatabaseJson);\n hitKeys.forEach(key => {\n delete localDatabase[key];\n });\n localStorage.setItem(FS_HIT_PREFIX, JSON.stringify(localDatabase));\n return Promise.resolve();\n }\n flushAllHits() {\n localStorage.removeItem(FS_HIT_PREFIX);\n return Promise.resolve();\n }\n}\n","export const VISITOR_PREFIX = 'FS_VISITOR_CACHE_';\nexport class DefaultVisitorCache {\n cacheVisitor(visitorId, data) {\n localStorage.setItem(VISITOR_PREFIX + visitorId, JSON.stringify(data));\n return Promise.resolve();\n }\n lookupVisitor(visitorId) {\n const data = localStorage.getItem(VISITOR_PREFIX + visitorId);\n return Promise.resolve(data ? JSON.parse(data) : null);\n }\n flushVisitor(visitorId) {\n localStorage.removeItem(VISITOR_PREFIX + visitorId);\n return Promise.resolve();\n }\n}\n","import { Event, EventCategory } from '../hit/index';\nimport { TroubleshootingLabel, VisitorCacheStatus } from '../types';\nimport { DecisionMode } from '../config/index';\nimport { logDebugSprintf, logError, logErrorSprintf, logInfoSprintf, sprintf } from '../utils/utils';\nimport { VISITOR_CACHE_ERROR, CONSENT_CHANGED, FS_CONSENT, LOOKUP_VISITOR_JSON_OBJECT_ERROR, PROCESS_CACHE, PROCESS_SET_CONSENT, SDK_APP, SDK_INFO, TRACKER_MANAGER_MISSING_ERROR, VISITOR_CACHE_VERSION, VISITOR_CACHE_FLUSHED, VISITOR_CACHE_LOADED, VISITOR_CACHE_SAVED, LogLevel, ANALYTIC_HIT_ALLOCATION } from '../enum/index';\nimport { Troubleshooting } from '../hit/Troubleshooting';\nimport { UsageHit } from '../hit/UsageHit';\nimport { DefaultHitCache } from '../cache/DefaultHitCache';\nimport { DefaultVisitorCache } from '../cache/DefaultVisitorCache';\nexport const LOOKUP_HITS_JSON_ERROR = 'JSON DATA must be an array of object';\nexport const LOOKUP_HITS_JSON_OBJECT_ERROR = 'JSON DATA must fit the type HitCacheDTO';\nexport const VISITOR_ID_MISMATCH_ERROR = 'Visitor ID mismatch: {0} vs {1}';\nexport class StrategyAbstract {\n visitor;\n get configManager() {\n return this.visitor.configManager;\n }\n get trackingManager() {\n return this.configManager.trackingManager;\n }\n get decisionManager() {\n return this.configManager.decisionManager;\n }\n get config() {\n return this.visitor.config;\n }\n _murmurHash;\n constructor(param) {\n const { visitor, murmurHash } = param;\n this.visitor = visitor;\n this._murmurHash = murmurHash;\n }\n updateCampaigns(campaigns) {\n try {\n this.visitor.campaigns = campaigns;\n this.visitor.flagsData = this.decisionManager.getModifications(campaigns);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logError(this.config, error.message || error, 'updateCampaigns');\n }\n }\n hasTrackingManager(process) {\n const check = this.trackingManager;\n if (!check) {\n logError(this.config, sprintf(TRACKER_MANAGER_MISSING_ERROR), process);\n }\n return !!check;\n }\n setConsent(hasConsented) {\n const method = 'setConsent';\n this.visitor.hasConsented = hasConsented;\n if (!hasConsented) {\n this.flushVisitor();\n }\n if (!this.hasTrackingManager(method)) {\n return;\n }\n const consentHit = new Event({\n visitorId: this.visitor.visitorId,\n anonymousId: this.visitor.anonymousId,\n label: `${SDK_INFO.name}:${this.visitor.hasConsented}`,\n action: FS_CONSENT,\n category: EventCategory.USER_ENGAGEMENT\n });\n consentHit.qaMode = this.config.isQAModeEnabled;\n consentHit.ds = SDK_APP;\n consentHit.config = this.config;\n const hitTroubleshooting = new Troubleshooting({\n label: TroubleshootingLabel.VISITOR_SEND_HIT,\n logLevel: LogLevel.INFO,\n traffic: this.visitor.traffic || 0,\n visitorId: this.visitor.visitorId,\n visitorSessionId: this.visitor.instanceId,\n flagshipInstanceId: this.visitor.sdkInitialData?.instanceId,\n anonymousId: this.visitor.anonymousId,\n config: this.config,\n hitContent: consentHit.toApiKeys()\n });\n this.trackingManager.addHit(consentHit);\n logDebugSprintf(this.config, PROCESS_SET_CONSENT, CONSENT_CHANGED, this.visitor.visitorId, hasConsented);\n if (this.decisionManager.troubleshooting) {\n this.trackingManager.sendTroubleshootingHit(hitTroubleshooting);\n return;\n }\n this.visitor.consentHitTroubleshooting = hitTroubleshooting;\n }\n checKLookupVisitorDataV1(item) {\n if (!item || !item.data || !item.data.visitorId) {\n return false;\n }\n const campaigns = item.data.campaigns;\n if (!campaigns) {\n return true;\n }\n if (!Array.isArray(campaigns)) {\n return false;\n }\n if ((this.visitor.visitorCacheStatus === VisitorCacheStatus.VISITOR_ID_CACHE || this.visitor.visitorCacheStatus === VisitorCacheStatus.VISITOR_ID_CACHE_NOT_ANONYMOUS_ID_CACHE) && item.data.visitorId !== this.visitor.visitorId) {\n logInfoSprintf(this.config, PROCESS_CACHE, VISITOR_ID_MISMATCH_ERROR, item.data.visitorId, this.visitor.visitorId);\n return false;\n }\n if (this.visitor.visitorCacheStatus === VisitorCacheStatus.ANONYMOUS_ID_CACHE && item.data.visitorId !== this.visitor.anonymousId) {\n logInfoSprintf(this.config, PROCESS_CACHE, VISITOR_ID_MISMATCH_ERROR, item.data.visitorId, this.visitor.anonymousId);\n return false;\n }\n return campaigns.every(x => x.campaignId && x.type && x.variationGroupId && x.variationId);\n }\n checKLookupVisitorData(item) {\n if (item.version === 1) {\n return this.checKLookupVisitorDataV1(item);\n }\n return false;\n }\n async lookupVisitor() {\n try {\n const visitorCacheInstance = this.config.visitorCacheImplementation;\n if (this.config.disableCache || !visitorCacheInstance || !visitorCacheInstance.lookupVisitor || typeof visitorCacheInstance.lookupVisitor !== 'function') {\n return;\n }\n this.visitor.visitorCacheStatus = VisitorCacheStatus.NONE;\n let visitorCache = await visitorCacheInstance.lookupVisitor(this.visitor.visitorId);\n if (visitorCache) {\n this.visitor.visitorCacheStatus = VisitorCacheStatus.VISITOR_ID_CACHE;\n }\n if (this.visitor.anonymousId) {\n const anonymousVisitorCache = await visitorCacheInstance.lookupVisitor(this.visitor.anonymousId);\n if (anonymousVisitorCache && !visitorCache) {\n visitorCache = anonymousVisitorCache;\n this.visitor.visitorCacheStatus = VisitorCacheStatus.ANONYMOUS_ID_CACHE;\n }\n else if (!anonymousVisitorCache && visitorCache) {\n this.visitor.visitorCacheStatus = VisitorCacheStatus.VISITOR_ID_CACHE_NOT_ANONYMOUS_ID_CACHE;\n }\n }\n logDebugSprintf(this.config, PROCESS_CACHE, VISITOR_CACHE_LOADED, this.visitor.visitorId, visitorCache);\n if (!visitorCache) {\n return;\n }\n if (!this.checKLookupVisitorData(visitorCache)) {\n logErrorSprintf(this.config, PROCESS_CACHE, LOOKUP_VISITOR_JSON_OBJECT_ERROR, VISITOR_CACHE_VERSION, this.visitor.visitorId);\n return;\n }\n this.visitor.visitorCache = visitorCache;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logErrorSprintf(this.config, PROCESS_CACHE, VISITOR_CACHE_ERROR, this.visitor.visitorId, 'lookupVisitor', error.message || error);\n }\n }\n async cacheVisitor() {\n try {\n const visitorCacheInstance = this.config.visitorCacheImplementation;\n if (this.config.disableCache || !visitorCacheInstance || typeof visitorCacheInstance.cacheVisitor !== 'function') {\n return;\n }\n const assignmentsHistory = {};\n const visitorCacheDTO = {\n version: VISITOR_CACHE_VERSION,\n data: {\n visitorId: this.visitor.visitorId,\n anonymousId: this.visitor.anonymousId,\n consent: this.visitor.hasConsented,\n context: this.visitor.context,\n campaigns: this.visitor.campaigns.map(campaign => {\n assignmentsHistory[campaign.variationGroupId] = campaign.variation.id;\n return {\n campaignId: campaign.id,\n slug: campaign.slug,\n variationGroupId: campaign.variationGroupId,\n variationId: campaign.variation.id,\n isReference: campaign.variation.reference,\n type: campaign.variation.modifications.type,\n activated: false,\n flags: campaign.variation.modifications.value\n };\n })\n }\n };\n visitorCacheDTO.data.assignmentsHistory = { ...this.visitor.visitorCache?.data?.assignmentsHistory, ...assignmentsHistory };\n await visitorCacheInstance.cacheVisitor(this.visitor.visitorId, visitorCacheDTO);\n const visitorCacheStatus = this.visitor.visitorCacheStatus;\n if (!visitorCacheStatus || visitorCacheStatus === VisitorCacheStatus.NONE || visitorCacheStatus === VisitorCacheStatus.VISITOR_ID_CACHE_NOT_ANONYMOUS_ID_CACHE) {\n if (this.visitor.anonymousId) {\n const anonymousVisitorCacheDTO = {\n ...visitorCacheDTO,\n data: {\n ...visitorCacheDTO.data,\n visitorId: this.visitor.anonymousId,\n anonymousId: null\n }\n };\n await visitorCacheInstance.cacheVisitor(this.visitor.anonymousId, anonymousVisitorCacheDTO);\n }\n }\n logDebugSprintf(this.config, PROCESS_CACHE, VISITOR_CACHE_SAVED, this.visitor.visitorId, visitorCacheDTO);\n this.visitor.visitorCache = visitorCacheDTO;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logErrorSprintf(this.config, PROCESS_CACHE, VISITOR_CACHE_ERROR, this.visitor.visitorId, 'cacheVisitor', error.message || error);\n }\n }\n async flushVisitor() {\n try {\n const visitorCacheInstance = this.config.visitorCacheImplementation;\n if (this.config.disableCache || !visitorCacheInstance || typeof visitorCacheInstance.flushVisitor !== 'function') {\n return;\n }\n await visitorCacheInstance.flushVisitor(this.visitor.visitorId);\n logDebugSprintf(this.config, PROCESS_CACHE, VISITOR_CACHE_FLUSHED, this.visitor.visitorId);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logErrorSprintf(this.config, PROCESS_CACHE, VISITOR_CACHE_ERROR, this.visitor.visitorId, 'flushVisitor', error.message || error);\n }\n }\n async sendTroubleshootingHit(hit) {\n await this.trackingManager.sendTroubleshootingHit(hit);\n }\n getCurrentDateTime() {\n return new Date();\n }\n getSdkConfigDecisionMode() {\n return this.config.decisionMode === DecisionMode.DECISION_API ? 'DECISION_API' : this.config.decisionMode;\n }\n async sendSdkConfigAnalyticHit() {\n if (this.config.disableDeveloperUsageTracking) {\n return;\n }\n const uniqueId = this.visitor.visitorId + this.getCurrentDateTime().toDateString();\n const hash = this._murmurHash.murmurHash3Int32(uniqueId);\n const traffic = hash % 1000;\n if (traffic > ANALYTIC_HIT_ALLOCATION) {\n return;\n }\n const hitCacheImplementation = this.config.hitCacheImplementation;\n const visitorCacheImplementation = this.config.visitorCacheImplementation;\n const sdkConfigUsingCustomHitCache = hitCacheImplementation && !(hitCacheImplementation instanceof DefaultHitCache);\n const sdkConfigUsingCustomVisitorCache = visitorCacheImplementation && !(visitorCacheImplementation instanceof DefaultVisitorCache);\n const analyticData = new UsageHit({\n label: TroubleshootingLabel.SDK_CONFIG,\n logLevel: LogLevel.INFO,\n visitorId: this.visitor.sdkInitialData?.instanceId,\n flagshipInstanceId: this.visitor.sdkInitialData?.instanceId,\n config: this.config,\n sdkStatus: this.visitor.getSdkStatus(),\n lastBucketingTimestamp: this.configManager.decisionManager.lastBucketingTimestamp,\n lastInitializationTimestamp: this.visitor.sdkInitialData?.lastInitializationTimestamp,\n sdkConfigMode: this.getSdkConfigDecisionMode(),\n sdkConfigLogLevel: this.config.logLevel,\n sdkConfigTimeout: this.config.timeout,\n sdkConfigPollingInterval: this.config.pollingInterval,\n sdkConfigTrackingManagerStrategy: this.config.trackingManagerConfig?.cacheStrategy,\n sdkConfigTrackingManagerBatchIntervals: this.config.trackingManagerConfig?.batchIntervals,\n sdkConfigTrackingManagerPoolMaxSize: this.config.trackingManagerConfig?.poolMaxSize,\n sdkConfigFetchNow: this.config.fetchNow,\n sdkConfigReuseVisitorIds: this.config.reuseVisitorIds,\n sdkConfigInitialBucketing: this.config.initialBucketing,\n sdkConfigDecisionApiUrl: this.config.decisionApiUrl,\n sdkConfigHitDeduplicationTime: this.config.hitDeduplicationTime,\n sdkConfigUsingOnVisitorExposed: !!this.config.onVisitorExposed,\n sdkConfigUsingCustomHitCache: !!sdkConfigUsingCustomHitCache,\n sdkConfigUsingCustomVisitorCache: !!sdkConfigUsingCustomVisitorCache,\n sdkConfigFetchThirdPartyData: this.config.fetchThirdPartyData,\n sdkConfigFetchFlagsBufferingTime: this.config.fetchFlagsBufferingTime,\n sdkConfigDisableDeveloperUsageTracking: this.config.disableDeveloperUsageTracking,\n sdkConfigNextFetchConfig: this.config.nextFetchConfig,\n sdkConfigDisableCache: this.config.disableCache\n });\n await this.trackingManager.sendUsageHit(analyticData);\n }\n sendFetchFlagsTroubleshooting({ isFromCache, campaigns, now }) {\n const assignmentHistory = {};\n this.visitor.flagsData.forEach(item => {\n assignmentHistory[item.variationGroupId] = item.variationId;\n });\n const uniqueId = this.visitor.visitorId + this.decisionManager.troubleshooting?.endDate.toUTCString();\n const hash = this._murmurHash.murmurHash3Int32(uniqueId);\n const traffic = hash % 100;\n this.visitor.traffic = traffic;\n const hitCacheImplementation = this.config.hitCacheImplementation;\n const visitorCacheImplementation = this.config.visitorCacheImplementation;\n const sdkConfigUsingCustomHitCache = hitCacheImplementation && !(hitCacheImplementation instanceof DefaultHitCache);\n const sdkConfigUsingCustomVisitorCache = visitorCacheImplementation && !(visitorCacheImplementation instanceof DefaultVisitorCache);\n const fetchFlagTroubleshooting = new Troubleshooting({\n label: TroubleshootingLabel.VISITOR_FETCH_CAMPAIGNS,\n logLevel: LogLevel.INFO,\n visitorId: this.visitor.visitorId,\n anonymousId: this.visitor.anonymousId,\n visitorSessionId: this.visitor.instanceId,\n flagshipInstanceId: this.visitor.sdkInitialData?.instanceId,\n traffic,\n config: this.config,\n sdkStatus: this.visitor.getSdkStatus(),\n visitorContext: this.visitor.context,\n visitorCampaigns: campaigns,\n visitorCampaignFromCache: isFromCache ? campaigns : undefined,\n visitorConsent: this.visitor.hasConsented,\n visitorIsAuthenticated: !!this.visitor.anonymousId,\n visitorFlags: this.visitor.flagsData,\n visitorAssignmentHistory: assignmentHistory,\n visitorInitialCampaigns: this.visitor.sdkInitialData?.initialCampaigns,\n visitorInitialFlagsData: this.visitor.sdkInitialData?.initialFlagsData,\n lastBucketingTimestamp: this.configManager.decisionManager.lastBucketingTimestamp,\n lastInitializationTimestamp: this.visitor.sdkInitialData?.lastInitializationTimestamp,\n httpResponseTime: Date.now() - now,\n sdkConfigLogLevel: this.config.logLevel,\n sdkConfigMode: this.getSdkConfigDecisionMode(),\n sdkConfigTimeout: this.config.timeout,\n sdkConfigPollingInterval: this.config.pollingInterval,\n sdkConfigTrackingManagerStrategy: this.config.trackingManagerConfig?.cacheStrategy,\n sdkConfigTrackingManagerBatchIntervals: this.config.trackingManagerConfig?.batchIntervals,\n sdkConfigTrackingManagerPoolMaxSize: this.config.trackingManagerConfig?.poolMaxSize,\n sdkConfigFetchNow: this.config.fetchNow,\n sdkConfigReuseVisitorIds: this.config.reuseVisitorIds,\n sdkConfigInitialBucketing: this.config.initialBucketing,\n sdkConfigDecisionApiUrl: this.config.decisionApiUrl,\n sdkConfigHitDeduplicationTime: this.config.hitDeduplicationTime,\n sdkConfigUsingOnVisitorExposed: !!this.config.onVisitorExposed,\n sdkConfigUsingCustomHitCache: !!sdkConfigUsingCustomHitCache,\n sdkConfigUsingCustomVisitorCache: !!sdkConfigUsingCustomVisitorCache,\n sdkConfigFetchThirdPartyData: this.config.fetchThirdPartyData,\n sdkConfigFetchFlagsBufferingTime: this.config.fetchFlagsBufferingTime,\n sdkConfigDisableDeveloperUsageTracking: this.config.disableDeveloperUsageTracking,\n sdkConfigNextFetchConfig: this.config.nextFetchConfig,\n sdkConfigDisableCache: this.config.disableCache\n });\n this.sendTroubleshootingHit(fetchFlagTroubleshooting);\n }\n sendConsentHitTroubleshooting() {\n const consentHitTroubleshooting = this.visitor.consentHitTroubleshooting;\n if (!consentHitTroubleshooting) {\n return;\n }\n consentHitTroubleshooting.traffic = this.visitor.traffic;\n this.trackingManager.sendTroubleshootingHit(consentHitTroubleshooting);\n this.visitor.consentHitTroubleshooting = undefined;\n }\n sendSegmentHitTroubleshooting() {\n const segmentHitTroubleshooting = this.visitor.segmentHitTroubleshooting;\n if (!segmentHitTroubleshooting) {\n return;\n }\n segmentHitTroubleshooting.traffic = this.visitor.traffic;\n this.trackingManager.sendTroubleshootingHit(segmentHitTroubleshooting);\n this.visitor.segmentHitTroubleshooting = undefined;\n }\n}\n","/**\n * Current device locale\n */\nexport const DEVICE_LOCALE = 'sdk_deviceLanguage';\n/**\n * Current device type tablet, pc, server, iot, other\n\n */\nexport const DEVICE_TYPE = 'sdk_deviceType';\n/**\n * Current device model\n */\nexport const DEVICE_MODEL = 'sdk_deviceModel';\n/**\n * Current visitor city\n\n */\nexport const LOCATION_CITY = 'sdk_city';\n/**\n * Current visitor region\n\n */\nexport const LOCATION_REGION = 'sdk_region';\n/**\n * Current visitor country\n\n */\nexport const LOCATION_COUNTRY = 'sdk_country';\n/**\n * Current visitor latitude\n\n */\nexport const LOCATION_LAT = 'sdk_lat';\n/**\n * Current visitor longitude\n\n */\nexport const LOCATION_LONG = 'sdk_long';\n/**\n * Device public ip\n\n */\nexport const IP = 'sdk_ip';\n/**\n * OS name\n\n */\nexport const OS_NAME = 'sdk_osName';\n/**\n * OS version name\n\n */\nexport const OS_VERSION_NAME = 'sdk_osVersionName';\n/**\n * OS version code\n\n */\nexport const OS_VERSION_CODE = 'sdk_osVersionCode';\n/**\n * Carrier operator\n */\nexport const CARRIER_NAME = 'sdk_carrierName';\n/**\n * Internet connection type : 4G, 5G, Fiber\n\n */\nexport const INTERNET_CONNECTION = 'sdk_internetConnection';\n/**\n * Customer app version name\n\n */\nexport const APP_VERSION_NAME = 'sdk_versionName';\n/**\n * Customer app version code\n\n */\nexport const APP_VERSION_CODE = 'sdk_versionCode';\n/**\n * Current customer app interface name\n\n */\nexport const INTERFACE_NAME = 'sdk_interfaceName';\n/**\n * Flagship SDK client name\n\n */\nexport const FLAGSHIP_CLIENT = 'fs_client';\n/**\n * Flagship SDK version name\n\n */\nexport const FLAGSHIP_VERSION = 'fs_version';\n/**\n * Current visitor id\n\n */\nexport const FLAGSHIP_VISITOR = 'fs_users';\nexport const FLAGSHIP_CONTEXT = {\n [DEVICE_LOCALE]: 'string',\n [DEVICE_TYPE]: 'string',\n [DEVICE_MODEL]: 'string',\n [LOCATION_CITY]: 'string',\n [LOCATION_REGION]: 'string',\n [LOCATION_COUNTRY]: 'string',\n [LOCATION_LAT]: 'number',\n [LOCATION_LONG]: 'number',\n [IP]: 'string',\n [OS_NAME]: 'string',\n [OS_VERSION_NAME]: 'string',\n [OS_VERSION_CODE]: 'string',\n [CARRIER_NAME]: 'string',\n [INTERNET_CONNECTION]: 'string',\n [APP_VERSION_NAME]: 'string',\n [APP_VERSION_CODE]: 'string',\n [INTERFACE_NAME]: 'string',\n [FLAGSHIP_CLIENT]: 'string',\n [FLAGSHIP_VERSION]: 'string',\n [FLAGSHIP_VISITOR]: 'string'\n};\n","import { AUTHENTICATE, CLEAR_CONTEXT, CONTEXT_KEY_ERROR, CONTEXT_KEY_VALUE_UPDATE, CONTEXT_NULL_ERROR, CONTEXT_OBJET_PARAM_UPDATE, CONTEXT_VALUE_ERROR, EMIT_READY, FETCH_CAMPAIGNS_FROM_CACHE, FETCH_CAMPAIGNS_SUCCESS, FETCH_FLAGS_BUFFERING_MESSAGE, FETCH_FLAGS_FROM_CAMPAIGNS, FETCH_FLAGS_STARTED, FLAGSHIP_VISITOR_NOT_AUTHENTICATE, FLAG_METADATA, FLAG_VISITOR_EXPOSED, FLAG_VALUE, GET_FLAG_CAST_ERROR, GET_FLAG_MISSING_ERROR, GET_FLAG_VALUE, HitType, LogLevel, NO_FLAG_METADATA, PREDEFINED_CONTEXT_TYPE_ERROR, PROCESS_CLEAR_CONTEXT, PROCESS_FETCHING_FLAGS, PROCESS_SEND_HIT, PROCESS_UPDATE_CONTEXT, SDK_APP, UNAUTHENTICATE, USER_EXPOSED_CAST_ERROR, USER_EXPOSED_FLAG_ERROR, VISITOR_AUTHENTICATE, VISITOR_AUTHENTICATE_VISITOR_ID_ERROR, VISITOR_EXPOSED_VALUE_NOT_CALLED, VISITOR_UNAUTHENTICATE, VISITOR_ALREADY_AUTHENTICATE } from '../enum/index';\nimport { HitAbstract, Event, Screen, Item, Page, Transaction } from '../hit/index';\nimport { TroubleshootingLabel } from '../types';\nimport { errorFormat, hasSameType, logDebug, logDebugSprintf, logError, logErrorSprintf, logInfoSprintf, logWarningSprintf, sprintf } from '../utils/utils';\nimport { StrategyAbstract } from './StrategyAbstract';\nimport { FLAGSHIP_CLIENT, FLAGSHIP_CONTEXT, FLAGSHIP_VERSION, FLAGSHIP_VISITOR } from '../enum/FlagshipContext';\nimport { FSFlagMetadata } from '../flag/FSFlagMetadata';\nimport { Activate } from '../hit/Activate';\nimport { Troubleshooting } from '../hit/Troubleshooting';\nimport { FSFetchStatus } from '../enum/FSFetchStatus';\nimport { FSFetchReasons } from '../enum/FSFetchReasons';\nimport { sendVisitorAllocatedVariations } from '../qaAssistant/messages/index';\nexport const TYPE_HIT_REQUIRED_ERROR = 'property type is required and must ';\nexport const HIT_NULL_ERROR = 'Hit must not be null';\nexport class DefaultStrategy extends StrategyAbstract {\n checkPredefinedContext(key, value) {\n const type = FLAGSHIP_CONTEXT[key];\n if (!type) {\n return null;\n }\n let check = false;\n if (type === 'string') {\n check = typeof value === 'string';\n }\n else if (type === 'number') {\n check = typeof value === 'number';\n }\n if (!check) {\n logErrorSprintf(this.config, PROCESS_UPDATE_CONTEXT, PREDEFINED_CONTEXT_TYPE_ERROR, this.visitor.visitorId, key, type);\n }\n return check;\n }\n updateContextKeyValue(key, value) {\n const valueType = typeof value;\n if (typeof key !== 'string' || key === '') {\n logErrorSprintf(this.config, PROCESS_UPDATE_CONTEXT, CONTEXT_KEY_ERROR, this.visitor.visitorId, key);\n return;\n }\n if (valueType !== 'string' && valueType !== 'number' && valueType !== 'boolean') {\n logErrorSprintf(this.config, PROCESS_UPDATE_CONTEXT, CONTEXT_VALUE_ERROR, this.visitor.visitorId, key);\n return;\n }\n if (key === FLAGSHIP_CLIENT || key === FLAGSHIP_VERSION || key === FLAGSHIP_VISITOR) {\n return;\n }\n const predefinedContext = this.checkPredefinedContext(key, value);\n if (typeof predefinedContext === 'boolean' && !predefinedContext) {\n return;\n }\n this.visitor.context[key] = value;\n }\n updateContext(context, value) {\n if (typeof context === 'string') {\n this.updateContextKeyValue(context, value);\n logDebugSprintf(this.config, PROCESS_UPDATE_CONTEXT, CONTEXT_KEY_VALUE_UPDATE, this.visitor.visitorId, context, value, this.visitor.context);\n this.visitor.fetchStatus = {\n status: FSFetchStatus.FETCH_REQUIRED,\n reason: FSFetchReasons.UPDATE_CONTEXT\n };\n return;\n }\n if (!context) {\n logError(this.visitor.config, CONTEXT_NULL_ERROR, PROCESS_UPDATE_CONTEXT);\n return;\n }\n for (const key in context) {\n const value = context[key];\n this.updateContextKeyValue(key, value);\n }\n this.visitor.fetchStatus = {\n status: FSFetchStatus.FETCH_REQUIRED,\n reason: FSFetchReasons.UPDATE_CONTEXT\n };\n logDebugSprintf(this.config, PROCESS_UPDATE_CONTEXT, CONTEXT_OBJET_PARAM_UPDATE, this.visitor.visitorId, context, this.visitor.context);\n }\n clearContext() {\n this.visitor.context = {};\n this.visitor.loadPredefinedContext();\n this.visitor.fetchStatus = {\n status: FSFetchStatus.FETCH_REQUIRED,\n reason: FSFetchReasons.UPDATE_CONTEXT\n };\n logDebugSprintf(this.config, PROCESS_CLEAR_CONTEXT, CLEAR_CONTEXT, this.visitor.visitorId, this.visitor.context);\n }\n fetchVisitorCampaigns(visitor) {\n if (!Array.isArray(visitor?.visitorCache?.data.campaigns)) {\n return null;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return visitor.visitorCache.data.campaigns.map((campaign) => {\n return {\n id: campaign.campaignId,\n variationGroupId: campaign.variationGroupId,\n slug: campaign.slug,\n variation: {\n id: campaign.variationId,\n reference: !!campaign.isReference,\n modifications: {\n type: campaign.type,\n value: campaign.flags\n }\n }\n };\n });\n }\n isDeDuplicated(key, deDuplicationTime) {\n if (deDuplicationTime === 0) {\n return false;\n }\n const deDuplicationCache = this.visitor.deDuplicationCache[key];\n if (deDuplicationCache && (Date.now() - deDuplicationCache) <= (deDuplicationTime * 1000)) {\n return true;\n }\n this.visitor.deDuplicationCache[key] = Date.now();\n this.visitor.clearDeDuplicationCache(deDuplicationTime);\n return false;\n }\n async sendActivate(flagDto, defaultValue) {\n const activateHit = new Activate({\n variationGroupId: flagDto.variationGroupId,\n variationId: flagDto.variationId,\n visitorId: this.visitor.visitorId,\n anonymousId: this.visitor.anonymousId,\n flagKey: flagDto.key,\n flagValue: flagDto.value,\n flagDefaultValue: defaultValue,\n visitorContext: this.visitor.context,\n flagMetadata: {\n campaignName: flagDto.campaignName,\n campaignId: flagDto.campaignId,\n campaignType: flagDto.campaignType,\n variationGroupId: flagDto.variationGroupId,\n variationGroupName: flagDto.variationGroupName,\n variationId: flagDto.variationId,\n variationName: flagDto.variationName,\n slug: flagDto.slug,\n isReference: flagDto.isReference\n }\n });\n activateHit.config = this.config;\n activateHit.qaMode = this.config.isQAModeEnabled;\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { createdAt, ...hitInstanceItem } = activateHit.toObject();\n if (this.isDeDuplicated(JSON.stringify(hitInstanceItem), this.config.hitDeduplicationTime)) {\n const logData = {\n visitorId: this.visitor.visitorId,\n anonymousId: this.visitor.anonymousId,\n flag: flagDto,\n delay: 0\n };\n logDebug(this.config, sprintf('Activate {0} is deduplicated', JSON.stringify(logData)), PROCESS_SEND_HIT);\n return;\n }\n await this.trackingManager.activateFlag(activateHit);\n const activateTroubleshooting = new Troubleshooting({\n label: TroubleshootingLabel.VISITOR_SEND_ACTIVATE,\n logLevel: LogLevel.INFO,\n traffic: this.visitor.traffic,\n visitorId: activateHit.visitorId,\n flagshipInstanceId: this.visitor.sdkInitialData?.instanceId,\n visitorSessionId: this.visitor.instanceId,\n anonymousId: activateHit.anonymousId,\n config: this.config,\n hitContent: activateHit.toApiKeys()\n });\n this.sendTroubleshootingHit(activateTroubleshooting);\n }\n async sendHit(hit) {\n if (!this.hasTrackingManager(PROCESS_SEND_HIT)) {\n return;\n }\n await this.prepareAndSendHit(hit);\n }\n async sendHits(hits) {\n if (!this.hasTrackingManager(PROCESS_SEND_HIT)) {\n return;\n }\n for (const hit of hits) {\n await this.prepareAndSendHit(hit);\n }\n }\n getHit(hit) {\n let newHit = null;\n switch (hit.type.toUpperCase()) {\n case HitType.EVENT:\n newHit = new Event(hit);\n break;\n case HitType.ITEM:\n newHit = new Item(hit);\n break;\n case HitType.PAGE_VIEW:\n newHit = new Page(hit);\n break;\n case HitType.SCREEN_VIEW:\n newHit = new Screen(hit);\n break;\n case HitType.TRANSACTION:\n newHit = new Transaction(hit);\n break;\n }\n return newHit;\n }\n async prepareAndSendHit(hit, functionName = PROCESS_SEND_HIT) {\n let hitInstance;\n if (!hit?.type) {\n logError(this.config, HIT_NULL_ERROR, functionName);\n return;\n }\n if (hit instanceof HitAbstract) {\n hitInstance = hit;\n }\n else {\n const hitFromInt = this.getHit(hit);\n if (!hitFromInt) {\n logError(this.config, TYPE_HIT_REQUIRED_ERROR, functionName);\n return;\n }\n hitInstance = hitFromInt;\n }\n hitInstance.visitorId = this.visitor.visitorId;\n hitInstance.ds = SDK_APP;\n hitInstance.config = this.config;\n hitInstance.anonymousId = this.visitor.anonymousId;\n hitInstance.qaMode = this.config.isQAModeEnabled;\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { createdAt, ...hitInstanceItem } = hitInstance.toObject();\n if (this.isDeDuplicated(JSON.stringify(hitInstanceItem), this.config.hitDeduplicationTime)) {\n return;\n }\n if (!hitInstance.isReady()) {\n logError(this.config, hitInstance.getErrorMessage(), functionName);\n return;\n }\n try {\n await this.trackingManager.addHit(hitInstance);\n if (hitInstance.type === 'SEGMENT') {\n return;\n }\n const sendHitTroubleshooting = new Troubleshooting({\n label: TroubleshootingLabel.VISITOR_SEND_HIT,\n logLevel: LogLevel.INFO,\n traffic: this.visitor.traffic,\n visitorId: hitInstance.visitorId,\n flagshipInstanceId: this.visitor.sdkInitialData?.instanceId,\n visitorSessionId: this.visitor.instanceId,\n anonymousId: hitInstance.anonymousId,\n config: this.config,\n hitContent: hitInstance.toApiKeys()\n });\n this.sendTroubleshootingHit(sendHitTroubleshooting);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logError(this.config, error.message || error, functionName);\n }\n }\n authenticate(visitorId) {\n if (!visitorId) {\n logErrorSprintf(this.config, AUTHENTICATE, VISITOR_AUTHENTICATE_VISITOR_ID_ERROR, this.visitor.visitorId);\n return;\n }\n if (this.visitor.anonymousId) {\n logWarningSprintf(this.config, AUTHENTICATE, VISITOR_ALREADY_AUTHENTICATE, this.visitor.visitorId, this.visitor.anonymousId);\n return;\n }\n this.visitor.anonymousId = this.visitor.visitorId;\n this.visitor.visitorId = visitorId;\n const monitoring = new Troubleshooting({\n label: TroubleshootingLabel.VISITOR_AUTHENTICATE,\n logLevel: LogLevel.INFO,\n flagshipInstanceId: this.visitor.sdkInitialData?.instanceId,\n visitorId: this.visitor.visitorId,\n anonymousId: this.visitor.anonymousId,\n visitorContext: this.visitor.context,\n traffic: this.visitor.traffic,\n config: this.config\n });\n this.sendTroubleshootingHit(monitoring);\n this.visitor.fetchStatus = {\n status: FSFetchStatus.FETCH_REQUIRED,\n reason: FSFetchReasons.AUTHENTICATE\n };\n logDebugSprintf(this.config, AUTHENTICATE, VISITOR_AUTHENTICATE, this.visitor.visitorId, this.visitor.anonymousId);\n }\n unauthenticate() {\n if (!this.visitor.anonymousId) {\n logErrorSprintf(this.config, UNAUTHENTICATE, FLAGSHIP_VISITOR_NOT_AUTHENTICATE, this.visitor.visitorId);\n return;\n }\n this.visitor.visitorId = this.visitor.anonymousId;\n this.visitor.anonymousId = null;\n const monitoring = new Troubleshooting({\n label: TroubleshootingLabel.VISITOR_UNAUTHENTICATE,\n logLevel: LogLevel.INFO,\n visitorId: this.visitor.visitorId,\n anonymousId: this.visitor.anonymousId,\n flagshipInstanceId: this.visitor.sdkInitialData?.instanceId,\n visitorContext: this.visitor.context,\n traffic: this.visitor.traffic,\n config: this.config\n });\n this.sendTroubleshootingHit(monitoring);\n this.visitor.fetchStatus = {\n status: FSFetchStatus.FETCH_REQUIRED,\n reason: FSFetchReasons.UNAUTHENTICATE\n };\n logDebugSprintf(this.config, UNAUTHENTICATE, VISITOR_UNAUTHENTICATE, this.visitor.visitorId);\n }\n async fetchFlags() {\n const functionName = PROCESS_FETCHING_FLAGS;\n const now = Date.now();\n const logData = {\n visitorId: this.visitor.visitorId,\n anonymousId: this.visitor.anonymousId,\n context: this.visitor.context,\n isFromCache: false,\n duration: 0\n };\n let campaigns = null;\n let fetchCampaignError;\n try {\n const time = Date.now() - this.visitor.lastFetchFlagsTimestamp;\n const fetchStatus = this.visitor.fetchStatus.status;\n if (fetchStatus === FSFetchStatus.FETCHING) {\n await this.visitor.getCampaignsPromise;\n return;\n }\n const fetchFlagBufferingTime = (this.config.fetchFlagsBufferingTime * 1000);\n if (fetchStatus === FSFetchStatus.FETCHED && time < fetchFlagBufferingTime) {\n logInfoSprintf(this.config, functionName, FETCH_FLAGS_BUFFERING_MESSAGE, this.visitor.visitorId, fetchFlagBufferingTime - time);\n return;\n }\n logDebugSprintf(this.config, functionName, FETCH_FLAGS_STARTED, this.visitor.visitorId);\n this.visitor.fetchStatus = {\n status: FSFetchStatus.FETCHING,\n reason: FSFetchReasons.NONE\n };\n this.visitor.getCampaignsPromise = this.decisionManager.getCampaignsAsync(this.visitor);\n campaigns = await this.visitor.getCampaignsPromise;\n this.visitor.lastFetchFlagsTimestamp = Date.now();\n if (this.decisionManager.isPanic()) {\n this.visitor.fetchStatus = {\n status: FSFetchStatus.PANIC,\n reason: FSFetchReasons.NONE\n };\n }\n this.configManager.trackingManager.troubleshootingData = this.decisionManager.troubleshooting;\n logDebugSprintf(this.config, functionName, FETCH_CAMPAIGNS_SUCCESS, this.visitor.visitorId, this.visitor.anonymousId, this.visitor.context, campaigns, (Date.now() - now));\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logError(this.config, error.message, functionName);\n fetchCampaignError = error;\n this.visitor.fetchStatus = {\n status: FSFetchStatus.FETCH_REQUIRED,\n reason: FSFetchReasons.FETCH_ERROR\n };\n }\n try {\n if (!campaigns) {\n campaigns = this.fetchVisitorCampaigns(this.visitor);\n logData.isFromCache = true;\n if (campaigns) {\n this.visitor.fetchStatus = {\n status: FSFetchStatus.FETCH_REQUIRED,\n reason: FSFetchReasons.READ_FROM_CACHE\n };\n logDebugSprintf(this.config, functionName, FETCH_CAMPAIGNS_FROM_CACHE, this.visitor.visitorId, this.visitor.anonymousId, this.visitor.context, campaigns, (Date.now() - now));\n }\n }\n campaigns = campaigns || [];\n this.visitor.campaigns = campaigns;\n this.visitor.flagsData = this.decisionManager.getModifications(this.visitor.campaigns);\n this.visitor.emit(EMIT_READY, fetchCampaignError);\n if (this.visitor.fetchStatus.status === FSFetchStatus.FETCHING) {\n this.visitor.fetchStatus = {\n status: FSFetchStatus.FETCHED,\n reason: FSFetchReasons.NONE\n };\n }\n const visitorAllocatedVariations = {};\n this.visitor.flagsData.forEach(item => {\n visitorAllocatedVariations[item.campaignId] = {\n variationId: item.variationId,\n variationGroupId: item.variationGroupId,\n campaignId: item.campaignId\n };\n });\n sendVisitorAllocatedVariations(visitorAllocatedVariations);\n logDebugSprintf(this.config, functionName, FETCH_FLAGS_FROM_CAMPAIGNS, this.visitor.visitorId, this.visitor.anonymousId, this.visitor.context, this.visitor.flagsData);\n if (this.decisionManager.troubleshooting) {\n this.sendFetchFlagsTroubleshooting({ campaigns, now, isFromCache: logData.isFromCache });\n this.sendConsentHitTroubleshooting();\n this.sendSegmentHitTroubleshooting();\n }\n this.sendSdkConfigAnalyticHit();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n this.visitor.emit(EMIT_READY, error);\n logData.duration = Date.now() - now;\n logError(this.config, errorFormat(error.message || error, logData), functionName);\n this.visitor.fetchStatus = {\n status: FSFetchStatus.FETCH_REQUIRED,\n reason: FSFetchReasons.FETCH_ERROR\n };\n const troubleshootingHit = new Troubleshooting({\n label: TroubleshootingLabel.VISITOR_FETCH_CAMPAIGNS_ERROR,\n logLevel: LogLevel.INFO,\n visitorId: this.visitor.visitorId,\n anonymousId: this.visitor.anonymousId,\n visitorSessionId: this.visitor.instanceId,\n flagshipInstanceId: this.visitor.sdkInitialData?.instanceId,\n traffic: this.visitor.traffic,\n config: this.config,\n visitorContext: this.visitor.context,\n sdkStatus: this.visitor.getSdkStatus(),\n visitorCampaigns: campaigns,\n visitorCampaignFromCache: logData.isFromCache ? campaigns : undefined,\n visitorConsent: this.visitor.hasConsented,\n visitorIsAuthenticated: !!this.visitor.anonymousId,\n visitorFlags: this.visitor.flagsData,\n visitorInitialCampaigns: this.visitor.sdkInitialData?.initialCampaigns,\n visitorInitialFlagsData: this.visitor.sdkInitialData?.initialFlagsData,\n lastBucketingTimestamp: this.configManager.decisionManager.lastBucketingTimestamp,\n lastInitializationTimestamp: this.visitor.sdkInitialData?.lastInitializationTimestamp,\n httpResponseTime: Date.now() - now,\n sdkConfigMode: this.getSdkConfigDecisionMode(),\n sdkConfigTimeout: this.config.timeout,\n sdkConfigPollingInterval: this.config.pollingInterval,\n sdkConfigTrackingManagerStrategy: this.config.trackingManagerConfig?.cacheStrategy,\n sdkConfigTrackingManagerBatchIntervals: this.config.trackingManagerConfig?.batchIntervals,\n sdkConfigTrackingManagerPoolMaxSize: this.config.trackingManagerConfig?.poolMaxSize,\n sdkConfigFetchNow: this.config.fetchNow,\n sdkConfigReuseVisitorIds: this.config.reuseVisitorIds,\n sdkConfigInitialBucketing: this.config.initialBucketing,\n sdkConfigDecisionApiUrl: this.config.decisionApiUrl,\n sdkConfigHitDeduplicationTime: this.config.hitDeduplicationTime\n });\n this.trackingManager.addTroubleshootingHit(troubleshootingHit);\n }\n }\n async visitorExposed(param) {\n const { key, flag, defaultValue, hasGetValueBeenCalled } = param;\n if (!flag) {\n logWarningSprintf(this.visitor.config, FLAG_VISITOR_EXPOSED, USER_EXPOSED_FLAG_ERROR, this.visitor.visitorId, key);\n this.sendFlagTroubleshooting(TroubleshootingLabel.VISITOR_EXPOSED_FLAG_NOT_FOUND, key, defaultValue);\n return;\n }\n if (!hasGetValueBeenCalled) {\n logWarningSprintf(this.visitor.config, FLAG_VISITOR_EXPOSED, VISITOR_EXPOSED_VALUE_NOT_CALLED, this.visitor.visitorId, key);\n this.sendFlagTroubleshooting(TroubleshootingLabel.FLAG_VALUE_NOT_CALLED, key, defaultValue, true);\n }\n if (defaultValue !== null && defaultValue !== undefined && flag.value !== null && !hasSameType(flag.value, defaultValue)) {\n logWarningSprintf(this.visitor.config, FLAG_VISITOR_EXPOSED, USER_EXPOSED_CAST_ERROR, this.visitor.visitorId, key);\n this.sendFlagTroubleshooting(TroubleshootingLabel.VISITOR_EXPOSED_TYPE_WARNING, key, defaultValue);\n }\n await this.sendActivate(flag, defaultValue);\n }\n sendFlagTroubleshooting(label, key, defaultValue, visitorExposed) {\n const troubleshooting = new Troubleshooting({\n label,\n logLevel: LogLevel.WARNING,\n visitorId: this.visitor.visitorId,\n anonymousId: this.visitor.anonymousId,\n visitorSessionId: this.visitor.instanceId,\n flagshipInstanceId: this.visitor.sdkInitialData?.instanceId,\n traffic: this.visitor.traffic,\n config: this.config,\n visitorContext: this.visitor.context,\n flagKey: key,\n flagDefault: defaultValue,\n visitorExposed\n });\n this.sendTroubleshootingHit(troubleshooting);\n }\n getFlagValue(param) {\n const { key, defaultValue, flag, visitorExposed } = param;\n if (!flag) {\n logWarningSprintf(this.config, FLAG_VALUE, GET_FLAG_MISSING_ERROR, this.visitor.visitorId, key, defaultValue);\n this.sendFlagTroubleshooting(TroubleshootingLabel.GET_FLAG_VALUE_FLAG_NOT_FOUND, key, defaultValue, visitorExposed);\n return defaultValue;\n }\n if (visitorExposed) {\n this.sendActivate(flag, defaultValue);\n }\n if (flag.value === null) {\n return defaultValue;\n }\n if (defaultValue !== null && defaultValue !== undefined && !hasSameType(flag.value, defaultValue)) {\n logWarningSprintf(this.config, FLAG_VALUE, GET_FLAG_CAST_ERROR, this.visitor.visitorId, key, defaultValue);\n this.sendFlagTroubleshooting(TroubleshootingLabel.GET_FLAG_VALUE_TYPE_WARNING, key, defaultValue, visitorExposed);\n return defaultValue;\n }\n logDebugSprintf(this.config, FLAG_VALUE, GET_FLAG_VALUE, this.visitor.visitorId, key, flag.value);\n return flag.value;\n }\n SendFlagMetadataTroubleshooting(key) {\n logWarningSprintf(this.config, FLAG_METADATA, NO_FLAG_METADATA, this.visitor.visitorId, key);\n const monitoring = new Troubleshooting({\n label: TroubleshootingLabel.GET_FLAG_METADATA_TYPE_WARNING,\n logLevel: LogLevel.WARNING,\n visitorId: this.visitor.visitorId,\n anonymousId: this.visitor.anonymousId,\n visitorSessionId: this.visitor.instanceId,\n flagshipInstanceId: this.visitor.sdkInitialData?.instanceId,\n traffic: this.visitor.traffic,\n config: this.config,\n visitorContext: this.visitor.context,\n flagKey: key\n });\n this.sendTroubleshootingHit(monitoring);\n }\n getFlagMetadata(param) {\n const { key, flag } = param;\n if (!flag) {\n logWarningSprintf(this.config, FLAG_METADATA, NO_FLAG_METADATA, this.visitor.visitorId, key);\n this.SendFlagMetadataTroubleshooting(key);\n return FSFlagMetadata.Empty();\n }\n const metadata = new FSFlagMetadata({\n campaignId: flag.campaignId,\n campaignName: flag.campaignName,\n variationGroupId: flag.variationGroupId,\n variationGroupName: flag.variationGroupName,\n variationId: flag.variationId,\n variationName: flag.variationName,\n isReference: !!flag.isReference,\n campaignType: flag.campaignType,\n slug: flag.slug\n });\n return metadata;\n }\n}\n","import { FSSdkStatus, FLAG_VISITOR_EXPOSED, METHOD_DEACTIVATED_ERROR, FLAG_METADATA, METADATA_SDK_NOT_READY } from '../enum/index';\nimport { logErrorSprintf } from '../utils/utils';\nimport { DefaultStrategy } from './DefaultStrategy';\nimport { FSFlagMetadata } from '../flag/FSFlagMetadata';\nexport class NotReadyStrategy extends DefaultStrategy {\n async lookupHits() {\n //\n }\n async lookupVisitor() {\n //\n }\n async cacheVisitor() {\n //\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async sendHit(_hit) {\n this.log('sendHit');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async sendHits(_hits) {\n this.log('sendHits');\n }\n async fetchFlags() {\n this.log('fetchFlags');\n }\n getFlagValue(param) {\n this.log('Flag.value');\n return param.defaultValue;\n }\n async visitorExposed() {\n this.log(FLAG_VISITOR_EXPOSED);\n }\n getFlagMetadata(param) {\n const emptyMetaData = FSFlagMetadata.Empty();\n logErrorSprintf(this.config, FLAG_METADATA, METADATA_SDK_NOT_READY, this.visitor.visitorId, param.key, emptyMetaData);\n return emptyMetaData;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async sendTroubleshootingHit(_hit) {\n //\n }\n async sendSdkConfigAnalyticHit() {\n //\n }\n log(methodName) {\n logErrorSprintf(this.config, methodName, METHOD_DEACTIVATED_ERROR, this.visitor.visitorId, methodName, FSSdkStatus[FSSdkStatus.SDK_NOT_INITIALIZED]);\n }\n}\n","import { FSSdkStatus, FLAG_VISITOR_EXPOSED, METHOD_DEACTIVATED_ERROR, FLAG_METADATA, METADATA_PANIC_MODE } from '../enum/index';\nimport { logInfoSprintf } from '../utils/utils';\nimport { DefaultStrategy } from './DefaultStrategy';\nimport { FSFlagMetadata } from '../flag/FSFlagMetadata';\nexport class PanicStrategy extends DefaultStrategy {\n setConsent(hasConsented) {\n this.visitor.hasConsented = hasConsented;\n }\n updateContext() {\n this.log('updateContext');\n }\n clearContext() {\n this.log('clearContext');\n }\n async lookupHits() {\n //\n }\n async lookupVisitor() {\n //\n }\n async cacheVisitor() {\n //\n }\n async cacheHit() {\n //\n }\n fetchVisitorCampaigns() {\n return [];\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async sendHit(_hit) {\n this.log('sendHit');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async sendHits(_hits) {\n this.log('sendHits');\n }\n getFlagValue(param) {\n this.log('Flag.value');\n return param.defaultValue;\n }\n async visitorExposed() {\n this.log(FLAG_VISITOR_EXPOSED);\n }\n getFlagMetadata(param) {\n const emptyMetaData = FSFlagMetadata.Empty();\n logInfoSprintf(this.config, FLAG_METADATA, METADATA_PANIC_MODE, this.visitor.visitorId, param.key, emptyMetaData);\n return emptyMetaData;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async sendTroubleshootingHit(_hit) {\n //\n }\n async sendSdkConfigAnalyticHit() {\n //\n }\n log(methodName) {\n logInfoSprintf(this.config, methodName, METHOD_DEACTIVATED_ERROR, this.visitor.visitorId, methodName, FSSdkStatus[FSSdkStatus.SDK_PANIC]);\n }\n}\n","import { FLAG_VISITOR_EXPOSED, METHOD_DEACTIVATED_CONSENT_ERROR } from '../enum/index';\nimport { logInfo, sprintf } from '../utils/utils';\nimport { DefaultStrategy } from './DefaultStrategy';\nexport class NoConsentStrategy extends DefaultStrategy {\n async lookupHits() {\n //\n }\n async lookupVisitor() {\n //\n }\n async cacheVisitor() {\n //\n }\n async cacheHit() {\n //\n }\n fetchVisitorCampaigns() {\n return [];\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async sendHit(_hit) {\n this.log('sendHit');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async sendHits(_hits) {\n this.log('sendHits');\n }\n async visitorExposed() {\n this.log(FLAG_VISITOR_EXPOSED);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async sendTroubleshootingHit(_hit) {\n //\n }\n log(methodName) {\n logInfo(this.config, sprintf(METHOD_DEACTIVATED_CONSENT_ERROR, methodName, this.visitor.visitorId), methodName);\n }\n}\n","export const CLIENT_CACHE_KEY = 'FS_CLIENT_VISITOR';\nexport const cacheVisitor = {\n saveVisitorProfile(visitorProfile) {\n try {\n localStorage.setItem(CLIENT_CACHE_KEY, JSON.stringify(visitorProfile));\n }\n catch (error) {\n }\n },\n loadVisitorProfile() {\n let data = null;\n try {\n data = localStorage.getItem(CLIENT_CACHE_KEY);\n }\n catch (error) {\n }\n return data ? JSON.parse(data) : null;\n }\n};\n","/* eslint-disable no-fallthrough */\nexport class MurmurHash {\n murmurHash3Int32(key, seed = 0) {\n let h1, h1b, k1, i;\n const remainder = key.length & 3; // key.length % 4\n const bytes = key.length - remainder;\n h1 = seed;\n const c1 = 0xcc9e2d51;\n const c2 = 0x1b873593;\n i = 0;\n while (i < bytes) {\n k1 = (key.charCodeAt(i) & 0xff) | ((key.charCodeAt(++i) & 0xff) << 8) | ((key.charCodeAt(++i) & 0xff) << 16) | ((key.charCodeAt(++i) & 0xff) << 24);\n ++i;\n k1 = (((k1 & 0xffff) * c1) + ((((k1 >>> 16) * c1) & 0xffff) << 16)) & 0xffffffff;\n k1 = (k1 << 15) | (k1 >>> 17);\n k1 = (((k1 & 0xffff) * c2) + ((((k1 >>> 16) * c2) & 0xffff) << 16)) & 0xffffffff;\n h1 ^= k1;\n h1 = (h1 << 13) | (h1 >>> 19);\n h1b = (((h1 & 0xffff) * 5) + ((((h1 >>> 16) * 5) & 0xffff) << 16)) & 0xffffffff;\n h1 = (((h1b & 0xffff) + 0x6b64) + ((((h1b >>> 16) + 0xe654) & 0xffff) << 16));\n }\n k1 = 0;\n switch (remainder) {\n case 3: k1 ^= (key.charCodeAt(i + 2) & 0xff) << 16;\n case 2: k1 ^= (key.charCodeAt(i + 1) & 0xff) << 8;\n case 1:\n k1 ^= (key.charCodeAt(i) & 0xff);\n k1 = (((k1 & 0xffff) * c1) + ((((k1 >>> 16) * c1) & 0xffff) << 16)) & 0xffffffff;\n k1 = (k1 << 15) | (k1 >>> 17);\n k1 = (((k1 & 0xffff) * c2) + ((((k1 >>> 16) * c2) & 0xffff) << 16)) & 0xffffffff;\n h1 ^= k1;\n }\n h1 ^= key.length;\n h1 ^= h1 >>> 16;\n h1 = (((h1 & 0xffff) * 0x85ebca6b) + ((((h1 >>> 16) * 0x85ebca6b) & 0xffff) << 16)) & 0xffffffff;\n h1 ^= h1 >>> 13;\n h1 = (((h1 & 0xffff) * 0xc2b2ae35) + ((((h1 >>> 16) * 0xc2b2ae35) & 0xffff) << 16)) & 0xffffffff;\n h1 ^= h1 >>> 16;\n return h1 >>> 0;\n }\n}\n","import { PREDEFINED_CONTEXT_LOADED, PROCESS_NEW_VISITOR, VISITOR_CREATED, VISITOR_ID_GENERATED, VISITOR_PROFILE_LOADED } from './../enum/FlagshipConstant';\nimport { FSSdkStatus, SDK_INFO, VISITOR_ID_ERROR } from '../enum/index';\nimport { hexToValue, isBrowser, logDebugSprintf, logError, uuidV4 } from '../utils/utils';\nimport { DefaultStrategy } from './DefaultStrategy';\nimport { EventEmitter } from '../depsNode.native';\nimport { NotReadyStrategy } from './NotReadyStrategy';\nimport { PanicStrategy } from './PanicStrategy';\nimport { NoConsentStrategy } from './NoConsentStrategy';\nimport { cacheVisitor } from './VisitorCache';\nimport { MurmurHash } from '../utils/MurmurHash';\nimport { FSFetchStatus } from '../enum/FSFetchStatus';\nimport { FSFetchReasons } from '../enum/FSFetchReasons';\nimport { sendVisitorExposedVariations } from '../qaAssistant/messages/index';\nexport class VisitorAbstract extends EventEmitter {\n _visitorId;\n _context;\n _flags;\n _configManager;\n _campaigns;\n _hasConsented;\n _anonymousId;\n deDuplicationCache;\n _isCleaningDeDuplicationCache;\n visitorCache;\n _exposedVariations;\n _sendExposedVariationTimeoutId;\n _instanceId;\n _traffic;\n _sdkInitialData;\n _consentHitTroubleshooting;\n _segmentHitTroubleshooting;\n _fetchStatus;\n _onFetchFlagsStatusChanged;\n _getCampaignsPromise;\n get getCampaignsPromise() {\n return this._getCampaignsPromise;\n }\n set getCampaignsPromise(v) {\n this._getCampaignsPromise = v;\n }\n get onFetchFlagsStatusChanged() {\n return this._onFetchFlagsStatusChanged;\n }\n set onFetchFlagsStatusChanged(v) {\n this._onFetchFlagsStatusChanged = v;\n }\n get fetchStatus() {\n return this._fetchStatus;\n }\n set fetchStatus(v) {\n this._fetchStatus = v;\n if (this.onFetchFlagsStatusChanged) {\n this.onFetchFlagsStatusChanged(v);\n }\n }\n get segmentHitTroubleshooting() {\n return this._segmentHitTroubleshooting;\n }\n set segmentHitTroubleshooting(v) {\n this._segmentHitTroubleshooting = v;\n }\n get consentHitTroubleshooting() {\n return this._consentHitTroubleshooting;\n }\n set consentHitTroubleshooting(v) {\n this._consentHitTroubleshooting = v;\n }\n get sdkInitialData() {\n return this._sdkInitialData;\n }\n static SdkStatus;\n getSdkStatus() {\n return VisitorAbstract.SdkStatus;\n }\n lastFetchFlagsTimestamp = 0;\n _visitorCacheStatus;\n get visitorCacheStatus() {\n return this._visitorCacheStatus;\n }\n set visitorCacheStatus(v) {\n this._visitorCacheStatus = v;\n }\n constructor(param) {\n const { visitorId, configManager, context, isAuthenticated, hasConsented, initialFlagsData, initialCampaigns, monitoringData, onFetchFlagsStatusChanged } = param;\n super();\n this._exposedVariations = {};\n this._sdkInitialData = monitoringData;\n this._instanceId = uuidV4();\n this._isCleaningDeDuplicationCache = false;\n this.deDuplicationCache = {};\n this._context = {};\n this._configManager = configManager;\n const visitorCache = this.config.reuseVisitorIds ? cacheVisitor.loadVisitorProfile() : null;\n if (visitorCache) {\n logDebugSprintf(this.config, PROCESS_NEW_VISITOR, VISITOR_PROFILE_LOADED, visitorCache);\n }\n this.visitorId = visitorId || (!isAuthenticated && visitorCache?.anonymousId ? visitorCache?.anonymousId : visitorCache?.visitorId) || this.generateVisitorId();\n this.campaigns = [];\n this._anonymousId = null;\n if (isAuthenticated) {\n this._anonymousId = visitorCache?.anonymousId || uuidV4();\n }\n this.setConsent(hasConsented || false);\n this.updateContext(context);\n this.loadPredefinedContext();\n logDebugSprintf(this.config, PROCESS_NEW_VISITOR, PREDEFINED_CONTEXT_LOADED, {\n fs_client: SDK_INFO.name,\n fs_version: SDK_INFO.version,\n fs_users: this.visitorId\n });\n this.updateCache();\n this.setInitialFlags(initialFlagsData);\n this.setInitializeCampaigns(initialCampaigns, !!initialFlagsData);\n this.onFetchFlagsStatusChanged = onFetchFlagsStatusChanged;\n this.fetchStatus = {\n status: FSFetchStatus.FETCH_REQUIRED,\n reason: FSFetchReasons.VISITOR_CREATED\n };\n logDebugSprintf(this.config, PROCESS_NEW_VISITOR, VISITOR_CREATED, this.visitorId, this.context, !!isAuthenticated, !!this.hasConsented);\n }\n get traffic() {\n return this._traffic;\n }\n set traffic(v) {\n this._traffic = v;\n }\n get instanceId() {\n return this._instanceId;\n }\n generateVisitorId() {\n const visitorId = uuidV4();\n logDebugSprintf(this.config, PROCESS_NEW_VISITOR, VISITOR_ID_GENERATED, visitorId);\n return visitorId;\n }\n clearDeDuplicationCache(deDuplicationTime) {\n if (this._isCleaningDeDuplicationCache) {\n return;\n }\n this._isCleaningDeDuplicationCache = true;\n const entries = Object.entries(this.deDuplicationCache);\n for (const [key, value] of entries) {\n if ((Date.now() - value) > (deDuplicationTime * 1000)) {\n delete this.deDuplicationCache[key];\n }\n }\n this._isCleaningDeDuplicationCache = false;\n }\n setInitialFlags(flags) {\n this._flags = new Map();\n if (!Array.isArray(flags)) {\n return;\n }\n flags.forEach((item) => {\n this._flags.set(item.key, {\n key: item.key,\n campaignId: item.campaignId,\n campaignName: item.campaignName,\n variationGroupId: item.variationGroupId,\n variationGroupName: item.variationGroupName,\n variationId: item.variationId,\n variationName: item.variationName,\n isReference: item.isReference,\n value: hexToValue(item.hex, this.config)?.v,\n slug: item.slug,\n campaignType: item.campaignType\n });\n });\n }\n setInitializeCampaigns(campaigns, hasInitialFlags) {\n if (campaigns && Array.isArray(campaigns) && !hasInitialFlags) {\n this.getStrategy().updateCampaigns(campaigns);\n }\n }\n updateCache() {\n const visitorProfile = {\n visitorId: this.visitorId,\n anonymousId: this.anonymousId\n };\n cacheVisitor.saveVisitorProfile(visitorProfile);\n }\n loadPredefinedContext() {\n this.context.fs_client = SDK_INFO.name;\n this.context.fs_version = SDK_INFO.version;\n this.context.fs_users = this.visitorId;\n }\n get visitorId() {\n return this._visitorId;\n }\n set visitorId(v) {\n if (!v || typeof v !== 'string') {\n logError(this.config, VISITOR_ID_ERROR, 'VISITOR ID');\n return;\n }\n this._visitorId = v;\n this.loadPredefinedContext();\n this.visitorCache = undefined;\n }\n get hasConsented() {\n return this._hasConsented;\n }\n set hasConsented(v) {\n this._hasConsented = v;\n }\n setConsent(hasConsented) {\n this.hasConsented = hasConsented;\n this.getStrategy().setConsent(hasConsented);\n }\n get context() {\n return this._context;\n }\n set context(v) {\n this._context = {};\n this.updateContext(v);\n }\n get flagsData() {\n return this._flags;\n }\n set flagsData(v) {\n this._flags = v;\n }\n get configManager() {\n return this._configManager;\n }\n get config() {\n return this.configManager.config;\n }\n get campaigns() {\n return this._campaigns;\n }\n set campaigns(v) {\n this._campaigns = v;\n }\n get anonymousId() {\n return this._anonymousId;\n }\n set anonymousId(v) {\n this._anonymousId = v;\n }\n getStrategy() {\n let strategy;\n const params = {\n visitor: this,\n murmurHash: new MurmurHash()\n };\n const status = this.getSdkStatus();\n if (status === undefined || status === FSSdkStatus.SDK_NOT_INITIALIZED) {\n strategy = new NotReadyStrategy(params);\n }\n else if (status === FSSdkStatus.SDK_PANIC) {\n strategy = new PanicStrategy(params);\n }\n else if (!this.hasConsented) {\n strategy = new NoConsentStrategy(params);\n }\n else {\n strategy = new DefaultStrategy(params);\n }\n return strategy;\n }\n sendExposedVariation(flag) {\n if (!flag || !isBrowser()) {\n return;\n }\n this._exposedVariations[flag.campaignId] = {\n campaignId: flag.campaignId,\n variationGroupId: flag.variationGroupId,\n variationId: flag.variationId\n };\n window.flagship = {\n ...window.flagship,\n exposedVariations: this._exposedVariations\n };\n if (!this.config.isQAModeEnabled) {\n return;\n }\n const BATCH_SIZE = 10;\n const DELAY = 100;\n if (Object.keys(this._exposedVariations).length >= BATCH_SIZE) {\n sendVisitorExposedVariations(this._exposedVariations);\n this._exposedVariations = {};\n }\n if (this._sendExposedVariationTimeoutId) {\n clearTimeout(this._sendExposedVariationTimeoutId);\n }\n if (Object.keys(this._exposedVariations).length === 0) {\n return;\n }\n this._sendExposedVariationTimeoutId = setTimeout(() => {\n sendVisitorExposedVariations(this._exposedVariations);\n this._exposedVariations = {};\n }, DELAY);\n }\n}\n","import { VisitorAbstract } from './VisitorAbstract';\nimport { FSFlag } from '../flag/FsFlags';\nimport { logWarningSprintf, visitorFlagSyncStatusMessage } from '../utils/utils';\nimport { GET_FLAG } from '../enum/FlagshipConstant';\nimport { FSFetchStatus } from '../enum/FSFetchStatus';\nimport { FSFlagCollection } from '../flag/FSFlagCollection';\nexport class VisitorDelegate extends VisitorAbstract {\n updateContext(context, value) {\n this.getStrategy().updateContext(context, value);\n this.loadPredefinedContext();\n }\n clearContext() {\n this.getStrategy().clearContext();\n }\n getFlag(key) {\n if (this.fetchStatus.status !== FSFetchStatus.FETCHED && this.fetchStatus.status !== FSFetchStatus.FETCHING) {\n logWarningSprintf(this.config, GET_FLAG, visitorFlagSyncStatusMessage(this.fetchStatus.reason), this.visitorId, key);\n }\n return new FSFlag({ key, visitor: this });\n }\n getFlags() {\n return new FSFlagCollection({ visitor: this });\n }\n sendHit(hit) {\n return this.getStrategy().sendHit(hit);\n }\n sendHits(hits) {\n return this.getStrategy().sendHits(hits);\n }\n authenticate(visitorId) {\n this.getStrategy().authenticate(visitorId);\n this.updateCache();\n }\n unauthenticate() {\n this.getStrategy().unauthenticate();\n this.updateCache();\n }\n async fetchFlags() {\n await this.getStrategy().lookupVisitor();\n await this.getStrategy().fetchFlags();\n await this.getStrategy().cacheVisitor();\n }\n visitorExposed(param) {\n return this.getStrategy().visitorExposed(param);\n }\n getFlagValue(param) {\n return this.getStrategy().getFlagValue(param);\n }\n getFlagMetadata(param) {\n return this.getStrategy().getFlagMetadata(param);\n }\n}\n","import { ALLOCATION, BUCKETING_NEW_ALLOCATION, BUCKETING_VARIATION_CACHE, GET_THIRD_PARTY_SEGMENT, POLLING_EVENT_300, POLLING_EVENT_FAILED, THIRD_PARTY_SEGMENT_URL } from '../enum/FlagshipConstant';\nimport { BUCKETING_API_URL, BUCKETING_POOLING_STARTED, BUCKETING_POOLING_STOPPED, FSSdkStatus, HEADER_APPLICATION_JSON, HEADER_CONTENT_TYPE, HEADER_X_API_KEY, HEADER_X_SDK_CLIENT, HEADER_X_SDK_VERSION, LogLevel, POLLING_EVENT_200, PROCESS_BUCKETING, SDK_INFO } from '../enum/index';\nimport { Segment } from '../hit/Segment';\nimport { TroubleshootingLabel } from '../types';\nimport { errorFormat, logDebug, logDebugSprintf, logError, logInfo, sprintf } from '../utils/utils';\nimport { DecisionManager } from './DecisionManager';\nimport { Troubleshooting } from '../hit/Troubleshooting';\nexport class BucketingManager extends DecisionManager {\n _lastModified;\n _isPooling;\n _murmurHash;\n _isFirstPooling;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n _intervalID;\n constructor(httpClient, config, murmurHash) {\n super(httpClient, config);\n this._murmurHash = murmurHash;\n this._isFirstPooling = true;\n if (config.initialBucketing) {\n this._bucketingContent = config.initialBucketing;\n }\n }\n finishLoop(params) {\n const { response, headers, url, now } = params;\n if (response.status === 200) {\n logDebugSprintf(this.config, PROCESS_BUCKETING, POLLING_EVENT_200, response.body);\n this._bucketingContent = response.body;\n this._lastBucketingTimestamp = new Date().toISOString();\n const troubleshootingHit = new Troubleshooting({\n visitorId: this.flagshipInstanceId,\n flagshipInstanceId: this.flagshipInstanceId,\n label: TroubleshootingLabel.SDK_BUCKETING_FILE,\n traffic: 0,\n logLevel: LogLevel.INFO,\n config: this.config,\n httpRequestHeaders: headers,\n httpRequestMethod: 'POST',\n httpRequestUrl: url,\n httpResponseBody: response?.body,\n httpResponseHeaders: response?.headers,\n httpResponseCode: response?.status,\n httpResponseTime: Date.now() - now\n });\n this.trackingManager.sendTroubleshootingHit(troubleshootingHit);\n }\n else if (response.status === 304) {\n logDebug(this.config, POLLING_EVENT_300, PROCESS_BUCKETING);\n }\n if (response.headers && response.headers['last-modified']) {\n const lastModified = response.headers['last-modified'];\n if (this._lastModified !== lastModified && this.config.onBucketingUpdated) {\n this.config.onBucketingUpdated(new Date(lastModified));\n }\n this._lastModified = lastModified;\n }\n if (this._isFirstPooling) {\n this._isFirstPooling = false;\n this.updateFlagshipStatus(FSSdkStatus.SDK_INITIALIZED);\n }\n if (typeof this.config.onBucketingSuccess === 'function') {\n this.config.onBucketingSuccess({ status: response.status, payload: this._bucketingContent });\n }\n this._isPooling = false;\n }\n async startPolling() {\n const timeout = this.config.pollingInterval * 1000;\n logInfo(this.config, BUCKETING_POOLING_STARTED, PROCESS_BUCKETING);\n await this.polling();\n if (timeout === 0) {\n return;\n }\n this._intervalID = setInterval(() => {\n this.polling();\n }, timeout);\n }\n async polling() {\n if (this._isPooling) {\n return;\n }\n this._isPooling = true;\n if (this._isFirstPooling) {\n this.updateFlagshipStatus(FSSdkStatus.SDK_INITIALIZING);\n }\n const url = sprintf(BUCKETING_API_URL, this.config.envId);\n const headers = {\n [HEADER_X_API_KEY]: `${this.config.apiKey}`,\n [HEADER_X_SDK_CLIENT]: SDK_INFO.name,\n [HEADER_X_SDK_VERSION]: SDK_INFO.version,\n [HEADER_CONTENT_TYPE]: HEADER_APPLICATION_JSON\n };\n const now = Date.now();\n try {\n if (this._lastModified) {\n headers['if-modified-since'] = this._lastModified;\n }\n const response = await this._httpClient.getAsync(url, {\n headers,\n timeout: this.config.timeout,\n nextFetchConfig: this.config.nextFetchConfig\n });\n this.finishLoop({ response, headers, url, now });\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n this._isPooling = false;\n logError(this.config, errorFormat(POLLING_EVENT_FAILED, {\n url,\n headers,\n nextFetchConfig: this.config.nextFetchConfig,\n method: 'GET',\n duration: Date.now() - now\n }), PROCESS_BUCKETING);\n if (this._isFirstPooling) {\n this.updateFlagshipStatus(FSSdkStatus.SDK_NOT_INITIALIZED);\n }\n if (typeof this.config.onBucketingFail === 'function') {\n this.config.onBucketingFail(new Error(error));\n }\n const troubleshootingHit = new Troubleshooting({\n visitorId: this.flagshipInstanceId,\n flagshipInstanceId: this.flagshipInstanceId,\n label: TroubleshootingLabel.SDK_BUCKETING_FILE_ERROR,\n traffic: 0,\n logLevel: LogLevel.INFO,\n config: this.config,\n httpRequestHeaders: headers,\n httpRequestMethod: 'GET',\n httpRequestUrl: url,\n httpResponseBody: error?.message,\n httpResponseHeaders: error?.headers,\n httpResponseCode: error?.statusCode,\n httpResponseTime: Date.now() - now\n });\n this.trackingManager.sendTroubleshootingHit(troubleshootingHit);\n }\n }\n stopPolling() {\n clearInterval(this._intervalID);\n this._isPooling = false;\n logInfo(this.config, BUCKETING_POOLING_STOPPED, PROCESS_BUCKETING);\n }\n async sendContext(visitor) {\n try {\n if (Object.keys(visitor.context).length <= 3 || !visitor.hasConsented) {\n return;\n }\n const SegmentHit = new Segment({\n context: visitor.context,\n visitorId: visitor.visitorId,\n anonymousId: visitor.anonymousId\n });\n await visitor.sendHit(SegmentHit);\n const hitTroubleshooting = new Troubleshooting({\n label: TroubleshootingLabel.VISITOR_SEND_HIT,\n logLevel: LogLevel.INFO,\n traffic: visitor.traffic || 0,\n visitorId: visitor.visitorId,\n visitorSessionId: visitor.instanceId,\n flagshipInstanceId: visitor.sdkInitialData?.instanceId,\n anonymousId: visitor.anonymousId,\n config: this.config,\n hitContent: SegmentHit.toApiKeys()\n });\n visitor.segmentHitTroubleshooting = hitTroubleshooting;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logError(this.config, error.message || error, 'sendContext');\n }\n }\n async getThirdPartySegment(visitorId) {\n const url = sprintf(THIRD_PARTY_SEGMENT_URL, this.config.envId, visitorId);\n const now = Date.now();\n const contexts = {};\n try {\n const response = await this._httpClient.getAsync(url, {\n nextFetchConfig: this.config.nextFetchConfig\n });\n const content = response.body;\n if (Array.isArray(content)) {\n for (const item of content) {\n contexts[`${item.partner}::${item.segment}`] = item.value;\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logError(this.config, errorFormat(error.message || error, {\n url,\n nextFetchConfig: this.config.nextFetchConfig,\n duration: Date.now() - now\n }), GET_THIRD_PARTY_SEGMENT);\n }\n return contexts;\n }\n async getCampaignsAsync(visitor) {\n if (!this._bucketingContent) {\n return null;\n }\n const troubleshooting = this._bucketingContent?.accountSettings?.troubleshooting;\n this.troubleshooting = undefined;\n if (troubleshooting) {\n this.troubleshooting = {\n startDate: new Date(troubleshooting.startDate),\n endDate: new Date(troubleshooting.endDate),\n timezone: troubleshooting.timezone,\n traffic: troubleshooting.traffic\n };\n }\n if (this._bucketingContent.panic) {\n this.panic = true;\n return [];\n }\n this.panic = false;\n if (!this._bucketingContent.campaigns) {\n return null;\n }\n if (this.config.fetchThirdPartyData) {\n const thirdPartySegments = await this.getThirdPartySegment(visitor.visitorId);\n visitor.updateContext(thirdPartySegments);\n }\n await this.sendContext(visitor);\n const visitorCampaigns = [];\n this._bucketingContent.campaigns.forEach(campaign => {\n const currentCampaigns = this.getVisitorCampaigns(campaign.variationGroups, campaign.id, campaign.type, visitor);\n if (currentCampaigns) {\n currentCampaigns.slug = campaign.slug ?? null;\n currentCampaigns.name = campaign.name;\n visitorCampaigns.push(currentCampaigns);\n }\n });\n return visitorCampaigns;\n }\n getVisitorCampaigns(variationGroups, campaignId, campaignType, visitor) {\n for (const variationGroup of variationGroups) {\n const check = this.isMatchTargeting(variationGroup, visitor);\n if (check) {\n const variation = this.getVariation(variationGroup, visitor);\n if (!variation) {\n return null;\n }\n return {\n id: campaignId,\n variation,\n variationGroupId: variationGroup.id,\n variationGroupName: variationGroup.name,\n type: campaignType\n };\n }\n }\n return null;\n }\n getVariation(variationGroup, visitor) {\n const hash = this._murmurHash.murmurHash3Int32(variationGroup.id + visitor.visitorId);\n const hashAllocation = hash % 100;\n let totalAllocation = 0;\n for (const variation of variationGroup.variations) {\n const assignmentsHistory = visitor.visitorCache?.data?.assignmentsHistory;\n const cacheVariationId = assignmentsHistory ? assignmentsHistory[variationGroup.id] : null;\n if (cacheVariationId) {\n const newVariation = variationGroup.variations.find(x => x.id === cacheVariationId);\n if (!newVariation) {\n continue;\n }\n logDebugSprintf(this.config, ALLOCATION, BUCKETING_VARIATION_CACHE, visitor.visitorId, newVariation.id);\n return {\n id: newVariation.id,\n name: newVariation.name,\n modifications: newVariation.modifications,\n reference: newVariation.reference\n };\n }\n if (variation.allocation === undefined) {\n continue;\n }\n totalAllocation += variation.allocation;\n if (hashAllocation <= totalAllocation) {\n logDebugSprintf(this.config, ALLOCATION, BUCKETING_NEW_ALLOCATION, visitor.visitorId, variation.id, totalAllocation);\n return {\n id: variation.id,\n modifications: variation.modifications,\n reference: variation.reference,\n name: variation.name\n };\n }\n }\n return null;\n }\n isMatchTargeting(variationGroup, visitor) {\n if (!variationGroup || !variationGroup.targeting || !variationGroup.targeting.targetingGroups) {\n return false;\n }\n return variationGroup.targeting.targetingGroups.some(targetingGroup => this.checkAndTargeting(targetingGroup.targetings, visitor));\n }\n isANDListOperator(operator) {\n return ['NOT_EQUALS', 'NOT_CONTAINS'].includes(operator);\n }\n checkAndTargeting(targetings, visitor) {\n let contextValue;\n let check = false;\n for (const { key, value, operator } of targetings) {\n if (operator === 'EXISTS') {\n if (key in visitor.context) {\n check = true;\n continue;\n }\n check = false;\n break;\n }\n if (operator === 'NOT_EXISTS') {\n if (key in visitor.context) {\n check = false;\n break;\n }\n check = true;\n continue;\n }\n if (key === 'fs_all_users') {\n check = true;\n continue;\n }\n if (key === 'fs_users') {\n contextValue = visitor.visitorId;\n }\n else {\n if (!(key in visitor.context)) {\n check = false;\n break;\n }\n contextValue = visitor.context[key];\n }\n check = this.testOperator(operator, contextValue, value);\n if (!check) {\n break;\n }\n }\n return check;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n testListOperatorLoop(operator, contextValue, value, initialCheck) {\n let check = initialCheck;\n for (const v of value) {\n check = this.testOperator(operator, contextValue, v);\n if (check !== initialCheck) {\n break;\n }\n }\n return check;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n testListOperator(operator, contextValue, value) {\n const andOperator = this.isANDListOperator(operator);\n if (andOperator) {\n return this.testListOperatorLoop(operator, contextValue, value, true);\n }\n return this.testListOperatorLoop(operator, contextValue, value, false);\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n testOperator(operator, contextValue, value) {\n let check;\n if (Array.isArray(value)) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return this.testListOperator(operator, contextValue, value);\n }\n switch (operator) {\n case 'EQUALS':\n check = contextValue === value;\n break;\n case 'NOT_EQUALS':\n check = contextValue !== value;\n break;\n case 'CONTAINS':\n check = contextValue.toString().includes(value.toString());\n break;\n case 'NOT_CONTAINS':\n check = !contextValue.toString().includes(value.toString());\n break;\n case 'GREATER_THAN':\n check = contextValue > value;\n break;\n case 'LOWER_THAN':\n check = contextValue < value;\n break;\n case 'GREATER_THAN_OR_EQUALS':\n check = contextValue >= value;\n break;\n case 'LOWER_THAN_OR_EQUALS':\n check = contextValue <= value;\n break;\n case 'STARTS_WITH':\n check = contextValue.toString().startsWith(value.toString());\n break;\n case 'ENDS_WITH':\n check = contextValue.toString().endsWith(value.toString());\n break;\n default:\n check = false;\n break;\n }\n return check;\n }\n}\n","export class HttpError extends Error {\n _statusCode;\n _headers;\n get headers() {\n return this._headers;\n }\n get statusCode() {\n return this._statusCode;\n }\n constructor(statusCode, message, headers) {\n super(message);\n this._statusCode = statusCode;\n this._headers = headers;\n }\n}\n","export const myFetch = (input, init) => fetch(input, init);\nexport { EventEmitter } from 'events';\nexport const LocalAbortController = AbortController;\n","import { HttpError } from './HttpError';\nimport { REQUEST_TIME_OUT } from '../enum/index';\nimport { myFetch, LocalAbortController } from '../depsNode.native';\nexport class HttpClient {\n async getResponse(response) {\n const applicationType = response.headers.get('Content-Type');\n const checkJson = applicationType === 'application/json';\n let body;\n const headers = {};\n response.headers.forEach((value, key) => {\n headers[key] = value;\n });\n if (checkJson && response.ok && response.status !== 204) {\n body = await response.json();\n }\n if (response.status >= 400) {\n const bodyString = await response.text();\n throw new HttpError(response.status, bodyString || response.statusText, headers);\n }\n return {\n status: response.status,\n body,\n headers\n };\n }\n async getAsync(url, options) {\n const c = new LocalAbortController();\n const id = setTimeout(() => c.abort(), (options?.timeout ? options.timeout : REQUEST_TIME_OUT) * 1000);\n try {\n const response = await myFetch(url, {\n method: 'GET',\n headers: options?.headers,\n signal: c.signal,\n keepalive: true,\n next: options?.nextFetchConfig\n });\n return this.getResponse(response);\n }\n finally {\n clearTimeout(id);\n }\n }\n async postAsync(url, options) {\n const c = new LocalAbortController();\n const id = setTimeout(() => c.abort(), options.timeout ? options.timeout * 1000 : REQUEST_TIME_OUT * 1000);\n try {\n const response = await myFetch(url, {\n method: 'POST',\n headers: options.headers,\n body: JSON.stringify(options.body),\n signal: c.signal,\n keepalive: true,\n next: options?.nextFetchConfig\n });\n return this.getResponse(response);\n }\n finally {\n clearTimeout(id);\n }\n }\n}\n","import { BucketingManager } from './BucketingManager';\nexport class EdgeManager extends BucketingManager {\n getCampaignsAsync(visitor) {\n return super.getCampaignsAsync(visitor);\n }\n}\n","import { DecisionMode } from './DecisionMode';\nimport { FlagshipConfig } from './FlagshipConfig';\nexport class EdgeConfig extends FlagshipConfig {\n constructor(param) {\n super({ ...param, decisionMode: DecisionMode.BUCKETING_EDGE });\n }\n}\n","import { FS_QA_ASSISTANT_SCRIPT_TAG_ID, FS_QA_URL, TAG_QA_URL } from '../enum/FlagshipConstant';\nconst getScriptElement = (src) => document.querySelector(`script[src*=\"${src}\"]`);\n/**\n *\n * @param bundleFileUrl\n */\nexport function appendScript(bundleFileUrl) {\n if (getScriptElement(TAG_QA_URL) || getScriptElement(FS_QA_URL)) {\n return;\n }\n const script = document.createElement('script');\n script.src = bundleFileUrl;\n script.id = FS_QA_ASSISTANT_SCRIPT_TAG_ID;\n document.body.append(script);\n}\n","import { sendVisitorAllocatedVariations, sendVisitorExposedVariations } from './index';\nimport { FS_FORCED_VARIATIONS, FS_IS_QA_MODE_ENABLED, FS_QA_ASSISTANT_SCRIPT_TAG_ID, SDK_INFO } from '../../enum/FlagshipConstant';\nimport { INTERNAL_EVENTS } from '../type';\nexport function onQaAssistantReady() {\n if (window.flagship?.visitorVariations) {\n sendVisitorAllocatedVariations(window.flagship?.visitorVariations);\n }\n if (window.flagship?.exposedVariations) {\n sendVisitorExposedVariations(window.flagship?.exposedVariations);\n }\n}\nexport function render(forcedReFetchFlags = false) {\n if (SDK_INFO.name === 'TypeScript') {\n document.location.reload();\n }\n const triggerRenderEvent = new CustomEvent(INTERNAL_EVENTS.FsTriggerRendering, {\n detail: {\n forcedReFetchFlags\n }\n });\n window.dispatchEvent(triggerRenderEvent);\n}\nexport function onQaAssistantClose({ config, func }) {\n config.isQAModeEnabled = false;\n sessionStorage.removeItem(FS_IS_QA_MODE_ENABLED);\n if (func) {\n window.removeEventListener('message', func);\n }\n document.getElementById(FS_QA_ASSISTANT_SCRIPT_TAG_ID)?.remove();\n window.flagship = {\n ...window.flagship,\n forcedVariations: {}\n };\n render();\n}\nexport function onApplyForcedVariations({ value }) {\n const sessionForcedVariations = sessionStorage.getItem(FS_FORCED_VARIATIONS);\n let forcedVariations = {};\n try {\n forcedVariations = JSON.parse(sessionForcedVariations || '{}');\n }\n catch (error) {\n // eslint-disable-next-line no-console\n console.error('Error parsing sessionForcedVariations', error);\n }\n forcedVariations = { ...forcedVariations, ...value };\n sessionStorage.setItem(FS_FORCED_VARIATIONS, JSON.stringify(forcedVariations));\n window.flagship = {\n ...window.flagship,\n forcedVariations\n };\n render();\n}\nexport function onResetForcedVariations() {\n sessionStorage.removeItem(FS_FORCED_VARIATIONS);\n window.flagship = {\n ...window.flagship,\n forcedVariations: {}\n };\n render();\n}\n","import { isBrowser } from '../../utils/utils';\nimport { MSG_NAME_FROM_IFRAME } from '../type';\nimport { onApplyForcedVariations, onQaAssistantClose, onQaAssistantReady, onResetForcedVariations, render } from './iframeMessageActions';\nexport function handleIframeMessage({ event, config, func }) {\n if (!config.isQAModeEnabled || !isBrowser()) {\n return;\n }\n switch (event.data.name) {\n case MSG_NAME_FROM_IFRAME.FsQaAssistantReady:\n onQaAssistantReady();\n break;\n case MSG_NAME_FROM_IFRAME.MinimizeQaAssistantClose:\n case MSG_NAME_FROM_IFRAME.QaAssistantClose:\n onQaAssistantClose({ config, func });\n break;\n case MSG_NAME_FROM_IFRAME.FsApplyForcedVariations:\n onApplyForcedVariations({ value: event.data.value });\n break;\n case MSG_NAME_FROM_IFRAME.FsResetForcedVariations:\n onResetForcedVariations();\n break;\n case MSG_NAME_FROM_IFRAME.FsTriggerRender:\n render(true);\n break;\n }\n}\n","import { FS_FORCED_VARIATIONS, FS_IS_QA_MODE_ENABLED, QA_ASSISTANT_PROD_URL } from '../enum/FlagshipConstant';\nimport { logInfoSprintf } from '../utils/utils';\nimport { appendScript } from './appendScript';\nimport { handleIframeMessage } from './messages/handleIframeMessage';\n/**\n *\n * @param config\n * @returns\n */\nexport function loadQaAssistant(config, bundleUrl = null) {\n if (window?.frames?.ABTastyQaAssistant) {\n return;\n }\n let forcedVariations = {};\n const sessionForcedVariations = sessionStorage.getItem(FS_FORCED_VARIATIONS);\n try {\n forcedVariations = JSON.parse(sessionForcedVariations || '{}');\n }\n catch (error) {\n // eslint-disable-next-line no-console\n console.error('Error parsing sessionForcedVariations', error);\n }\n window.flagship = {\n ...window.flagship,\n envId: config.envId,\n forcedVariations\n };\n const eventListenerMessage = (event) => {\n handleIframeMessage({ event, config, func: eventListenerMessage });\n };\n window.addEventListener('message', eventListenerMessage);\n logInfoSprintf(config, 'QA assistant', 'Loading QA Assistant');\n appendScript(bundleUrl || QA_ASSISTANT_PROD_URL);\n config.isQAModeEnabled = true;\n sessionStorage.setItem(FS_IS_QA_MODE_ENABLED, 'true');\n}\n","import { FS_FORCED_VARIATIONS } from '../enum/FlagshipConstant';\nimport { logInfoSprintf } from '../utils/utils';\nimport { loadQaAssistant } from './loadQaAssistant';\n/**\n *\n * @param config\n */\nexport function listenForKeyboardQaAssistant(config) {\n logInfoSprintf(config, 'QA assistant', 'Listening for keyboard events to launch QA Assistant');\n const keysPressed = {};\n const keyCombinationPressed = () => {\n return (keysPressed.Control || keysPressed.Alt) && keysPressed.q && keysPressed.a;\n };\n document.addEventListener('keydown', (event) => {\n keysPressed[event.key] = true;\n sessionStorage.removeItem(FS_FORCED_VARIATIONS);\n if (keyCombinationPressed()) {\n loadQaAssistant(config);\n }\n });\n document.addEventListener('keyup', (event) => {\n delete keysPressed[event.key];\n });\n}\n","import { Visitor } from '../visitor/Visitor';\nimport { FSSdkStatus } from '../enum/FSSdkStatus';\nimport { DecisionMode, BucketingConfig, DecisionApiConfig } from '../config/index';\nimport { ConfigManager } from '../config/ConfigManager';\nimport { ApiManager } from '../decision/ApiManager';\nimport { TrackingManager } from '../api/TrackingManager';\nimport { FlagshipLogManager } from '../utils/FlagshipLogManager';\nimport { isBrowser, logDebugSprintf, logError, logInfo, logInfoSprintf, logWarning, sprintf, uuidV4 } from '../utils/utils';\nimport { INITIALIZATION_PARAM_ERROR, INITIALIZATION_STARTING, NEW_VISITOR_NOT_READY, PROCESS_INITIALIZATION, PROCESS_NEW_VISITOR, SDK_INFO, SDK_STARTED_INFO, PROCESS_SDK_STATUS, SDK_STATUS_CHANGED, SAVE_VISITOR_INSTANCE, CONSENT_NOT_SPECIFY_WARNING } from '../enum/index';\nimport { VisitorDelegate } from '../visitor/VisitorDelegate';\nimport { BucketingManager } from '../decision/BucketingManager';\nimport { MurmurHash } from '../utils/MurmurHash';\nimport { HttpClient } from '../utils/HttpClient';\nimport { DefaultHitCache } from '../cache/DefaultHitCache';\nimport { DefaultVisitorCache } from '../cache/DefaultVisitorCache';\nimport { EdgeManager } from '../decision/EdgeManager';\nimport { EdgeConfig } from '../config/EdgeConfig';\nimport { VisitorAbstract } from '../visitor/VisitorAbstract';\nimport { launchQaAssistant } from '../qaAssistant/index';\n/**\n * The `Flagship` class represents the SDK. It facilitates the initialization process and creation of new visitors.\n */\nexport class Flagship {\n // eslint-disable-next-line no-use-before-define\n static _instance;\n _configManager;\n _config;\n _status;\n _visitorInstance;\n instanceId;\n lastInitializationTimestamp;\n set configManager(value) {\n this._configManager = value;\n }\n get configManager() {\n return this._configManager;\n }\n constructor() {\n this.instanceId = uuidV4();\n this._status = FSSdkStatus.SDK_NOT_INITIALIZED;\n }\n static getInstance() {\n if (!this._instance) {\n this._instance = new this();\n }\n return this._instance;\n }\n setStatus(status) {\n if (this._status === status) {\n return;\n }\n this._status = status;\n VisitorAbstract.SdkStatus = status;\n const statusChanged = this.getConfig()?.onSdkStatusChanged;\n logInfoSprintf(this._config, PROCESS_SDK_STATUS, SDK_STATUS_CHANGED, FSSdkStatus[status]);\n if (this.getConfig().decisionMode !== DecisionMode.BUCKETING_EDGE) {\n if (status === FSSdkStatus.SDK_INITIALIZED) {\n this.configManager?.trackingManager?.startBatchingLoop();\n }\n if (status === FSSdkStatus.SDK_NOT_INITIALIZED) {\n this.configManager?.trackingManager?.stopBatchingLoop();\n }\n }\n if (statusChanged) {\n statusChanged(status);\n }\n }\n /**\n * Return current status of Flagship SDK.\n */\n static getStatus() {\n return this.getInstance()._status;\n }\n /**\n * Return current status of Flagship SDK.\n */\n getStatus() {\n return this._status;\n }\n /**\n * Return the current config set by the customer and used by the SDK.\n */\n static getConfig() {\n return this.getInstance()._config;\n }\n /**\n * Return the current config set by the customer and used by the SDK.\n */\n getConfig() {\n return this._config;\n }\n /**\n * Return the last visitor created if isNewInstance key is false. Return undefined otherwise.\n */\n getVisitor() {\n return this._visitorInstance;\n }\n /**\n * Return the last visitor created if isNewInstance key is false. Return undefined otherwise.\n */\n static getVisitor() {\n return this.getInstance().getVisitor();\n }\n buildConfig(config) {\n let newConfig;\n switch (config?.decisionMode) {\n case DecisionMode.BUCKETING:\n newConfig = new BucketingConfig(config);\n break;\n case DecisionMode.BUCKETING_EDGE:\n newConfig = new EdgeConfig(config);\n break;\n default:\n newConfig = new DecisionApiConfig(config);\n break;\n }\n return newConfig;\n }\n buildDecisionManager(flagship, config, httpClient) {\n let decisionManager;\n const setStatus = (status) => {\n flagship.setStatus(status);\n };\n switch (config.decisionMode) {\n case DecisionMode.BUCKETING:\n decisionManager = new BucketingManager(httpClient, config, new MurmurHash());\n decisionManager.statusChangedCallback(setStatus);\n decisionManager.startPolling();\n break;\n case DecisionMode.BUCKETING_EDGE:\n decisionManager = new EdgeManager(httpClient, config, new MurmurHash());\n decisionManager.statusChangedCallback(setStatus);\n break;\n default:\n decisionManager = new ApiManager(httpClient, config);\n decisionManager.statusChangedCallback(setStatus);\n break;\n }\n return decisionManager;\n }\n /**\n * Start the flagship SDK, with a custom configuration implementation\n * @param {string} envId : Environment id provided by Flagship.\n * @param {string} apiKey : Secure api key provided by Flagship.\n * @param {IFlagshipConfig} config : (optional) SDK configuration.\n */\n static start(envId, apiKey, config) {\n const flagship = this.getInstance();\n const localConfig = flagship.buildConfig(config);\n localConfig.envId = envId;\n localConfig.apiKey = apiKey;\n flagship._config = localConfig;\n // check custom logger\n if (!localConfig.onLog && !localConfig.logManager) {\n localConfig.logManager = new FlagshipLogManager();\n }\n if (!envId || !apiKey) {\n flagship.setStatus(FSSdkStatus.SDK_NOT_INITIALIZED);\n logError(localConfig, INITIALIZATION_PARAM_ERROR, PROCESS_INITIALIZATION);\n return flagship;\n }\n logDebugSprintf(localConfig, PROCESS_INITIALIZATION, INITIALIZATION_STARTING, SDK_INFO.version, localConfig.decisionMode, localConfig);\n if (!localConfig.hitCacheImplementation && isBrowser()) {\n localConfig.hitCacheImplementation = new DefaultHitCache();\n }\n if (!localConfig.visitorCacheImplementation && isBrowser()) {\n localConfig.visitorCacheImplementation = new DefaultVisitorCache();\n }\n const httpClient = new HttpClient();\n const decisionManager = flagship.configManager?.decisionManager;\n if (decisionManager instanceof BucketingManager && localConfig.decisionMode !== DecisionMode.BUCKETING_EDGE) {\n decisionManager.stopPolling();\n }\n let trackingManager = flagship.configManager?.trackingManager;\n if (!trackingManager) {\n trackingManager = new TrackingManager(httpClient, localConfig, flagship.instanceId);\n }\n flagship.configManager = new ConfigManager(localConfig, decisionManager, trackingManager);\n flagship.configManager.decisionManager = flagship.buildDecisionManager(flagship, localConfig, httpClient);\n flagship.configManager.decisionManager.trackingManager = trackingManager;\n flagship.configManager.decisionManager.flagshipInstanceId = flagship.instanceId;\n if (flagship._status !== FSSdkStatus.SDK_INITIALIZING) {\n flagship.setStatus(FSSdkStatus.SDK_INITIALIZED);\n }\n logInfo(localConfig, sprintf(SDK_STARTED_INFO, SDK_INFO.version, FSSdkStatus[flagship._status]), PROCESS_INITIALIZATION);\n launchQaAssistant(localConfig);\n flagship.lastInitializationTimestamp = new Date().toISOString();\n return flagship;\n }\n /**\n * When called, it will batch and send all hits that are in the pool before the application is closed\n */\n async close() {\n await Flagship.close();\n }\n /**\n * When called, it will batch and send all hits that are in the pool before the application is closed\n */\n static async close() {\n await this._instance?.configManager?.trackingManager?.sendBatch();\n }\n /**\n * Creates a new Visitor instance.\n *\n * @param params - The parameters for creating the new Visitor.\n * @returns A new Visitor instance.\n */\n newVisitor(params) {\n return Flagship.newVisitor(params);\n }\n /**\n * Creates a new Visitor instance.\n *\n * @param params - The parameters for creating the new Visitor.\n * @returns A new Visitor instance.\n */\n static newVisitor({ visitorId, context, isAuthenticated, hasConsented, initialCampaigns, initialFlagsData, shouldSaveInstance, onFetchFlagsStatusChanged }) {\n const saveInstance = shouldSaveInstance ?? isBrowser();\n if (!this._instance?.configManager) {\n const flagship = this.getInstance();\n const config = new DecisionApiConfig();\n config.logManager = new FlagshipLogManager();\n flagship._config = config;\n const httpClient = new HttpClient();\n const trackingManager = new TrackingManager(httpClient, config);\n const decisionManager = new ApiManager(httpClient, config);\n flagship.configManager = new ConfigManager(config, decisionManager, trackingManager);\n logError(this.getConfig(), NEW_VISITOR_NOT_READY, PROCESS_NEW_VISITOR);\n }\n if (hasConsented === undefined) {\n logWarning(this.getConfig(), CONSENT_NOT_SPECIFY_WARNING, PROCESS_NEW_VISITOR);\n }\n const visitorDelegate = new VisitorDelegate({\n visitorId,\n context: context || {},\n isAuthenticated: isAuthenticated ?? false,\n hasConsented: hasConsented ?? false,\n configManager: this.getInstance().configManager,\n initialCampaigns,\n initialFlagsData,\n onFetchFlagsStatusChanged,\n monitoringData: {\n instanceId: this.getInstance().instanceId,\n lastInitializationTimestamp: this.getInstance().lastInitializationTimestamp,\n initialCampaigns,\n initialFlagsData\n }\n });\n const visitor = new Visitor(visitorDelegate);\n this.getInstance()._visitorInstance = saveInstance ? visitor : undefined;\n if (saveInstance) {\n logDebugSprintf(this.getConfig(), PROCESS_NEW_VISITOR, SAVE_VISITOR_INSTANCE, visitor.visitorId);\n }\n if (this.getConfig().fetchNow && this.getConfig().decisionMode !== DecisionMode.BUCKETING_EDGE) {\n visitor.fetchFlags();\n }\n return visitor;\n }\n}\n","import { FS_QA_ASSISTANT, FS_QA_ASSISTANT_LOCAL, FS_QA_ASSISTANT_STAGING, QA_ASSISTANT_LOCAL_URL, QA_ASSISTANT_PROD_URL, QA_ASSISTANT_STAGING_URL, TAG_QA_ASSISTANT, TAG_QA_ASSISTANT_LOCAL, TAG_QA_ASSISTANT_STAGING } from '../enum/FlagshipConstant';\nimport { isBrowser } from '../utils/utils';\nimport { listenForKeyboardQaAssistant } from './listenForKeyboardQaAssistant';\nimport { loadQaAssistant } from './loadQaAssistant';\n/**\n *\n * @param config\n * @returns\n */\nexport function launchQaAssistant(config) {\n if (!isBrowser()) {\n return;\n }\n const urlMap = {\n [FS_QA_ASSISTANT]: QA_ASSISTANT_PROD_URL,\n [TAG_QA_ASSISTANT]: QA_ASSISTANT_PROD_URL,\n [FS_QA_ASSISTANT_STAGING]: QA_ASSISTANT_STAGING_URL,\n [TAG_QA_ASSISTANT_STAGING]: QA_ASSISTANT_STAGING_URL,\n [FS_QA_ASSISTANT_LOCAL]: QA_ASSISTANT_LOCAL_URL,\n [TAG_QA_ASSISTANT_LOCAL]: QA_ASSISTANT_LOCAL_URL\n };\n const queryParam = new URLSearchParams(window.location.search);\n const urlKey = Object.keys(urlMap).find(key => queryParam.get(key) === 'true') || '';\n if (config.isQAModeEnabled || urlKey) {\n loadQaAssistant(config, urlMap[urlKey]);\n return;\n }\n listenForKeyboardQaAssistant(config);\n}\n","// Generated by genversion.\nexport const version = '4.0.2';\n","import { FSFetchReasons } from '../enum/FSFetchReasons';\nimport { LogLevel, VISITOR_SYNC_FLAGS_MESSAGE } from '../enum/index';\n/**\n * Return a formatted string\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function sprintf(format, ...value) {\n let formatted = format;\n for (let i = 0; i < value.length; i++) {\n const item = value[i];\n const element = typeof item === 'string' ? item : JSON.stringify(item instanceof Map ? Array.from(item.values()) : item);\n formatted = formatted.replace(new RegExp(`\\\\{${i}\\\\}`, 'g'), element);\n }\n return formatted;\n}\nexport function logErrorSprintf(config, tag, message, ...arg) {\n if (!config || !config.logLevel || config.logLevel < LogLevel.ERROR) {\n return;\n }\n const customMessage = sprintf(message, ...arg);\n logError(config, customMessage, tag);\n}\nexport function logError(config, message, tag) {\n if (!config || !config.logLevel || config.logLevel < LogLevel.ERROR) {\n return;\n }\n if (typeof config.onLog === 'function') {\n config.onLog(LogLevel.ERROR, tag, message);\n }\n if (config.logManager && typeof config.logManager.error === 'function') {\n config.logManager.error(message, tag);\n }\n}\nexport function logWarningSprintf(config, tag, message, ...arg) {\n if (!config || !config.logLevel || config.logLevel < LogLevel.WARNING) {\n return;\n }\n const customMessage = sprintf(message, ...arg);\n logWarning(config, customMessage, tag);\n}\nexport function logWarning(config, message, tag) {\n if (!config || !config.logLevel || config.logLevel < LogLevel.WARNING) {\n return;\n }\n if (typeof config.onLog === 'function') {\n config.onLog(LogLevel.WARNING, tag, message);\n }\n if (config.logManager && typeof config.logManager.warning === 'function') {\n config.logManager.warning(message, tag);\n }\n}\nexport function logInfoSprintf(config, tag, message, ...arg) {\n if (!config || !config.logLevel || config.logLevel < LogLevel.INFO) {\n return;\n }\n const customMessage = sprintf(message, ...arg);\n logInfo(config, customMessage, tag);\n}\nexport function logInfo(config, message, tag) {\n if (!config || !config.logLevel || config.logLevel < LogLevel.INFO) {\n return;\n }\n if (typeof config.onLog === 'function') {\n config.onLog(LogLevel.INFO, tag, message);\n }\n if (config.logManager && typeof config.logManager.info === 'function') {\n config.logManager.info(message, tag);\n }\n}\nexport function logDebugSprintf(config, tag, message, ...arg) {\n if (!config || !config.logLevel || config.logLevel < LogLevel.DEBUG) {\n return;\n }\n const customMessage = sprintf(message, ...arg);\n logDebug(config, customMessage, tag);\n}\nexport function logDebug(config, message, tag) {\n if (!config || !config.logLevel || config.logLevel < LogLevel.DEBUG) {\n return;\n }\n if (typeof config.onLog === 'function') {\n config.onLog(LogLevel.DEBUG, tag, message);\n }\n if (config.logManager && typeof config.logManager.debug === 'function') {\n config.logManager.debug(message, tag);\n }\n}\nexport function sleep(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n}\nexport function isBrowser() {\n return typeof window !== 'undefined' && typeof window.document !== 'undefined';\n}\nexport function hasSameType(flagValue, defaultValue) {\n if (typeof flagValue !== typeof defaultValue) {\n return false;\n }\n if (typeof flagValue === 'object' && typeof defaultValue === 'object' &&\n Array.isArray(flagValue) !== Array.isArray(defaultValue)) {\n return false;\n }\n return true;\n}\nexport function uuidV4() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (char) {\n const rand = Math.random() * 16 | 0;\n const value = char === 'x' ? rand : (rand & 0x3 | 0x8);\n return value.toString(16);\n });\n}\nexport function errorFormat(message, errorData) {\n return JSON.stringify({\n message,\n data: errorData\n });\n}\nexport function visitorFlagSyncStatusMessage(reason) {\n let message = '';\n switch (reason) {\n case FSFetchReasons.VISITOR_CREATED:\n message = `Visitor \\`{0}\\` has been created ${VISITOR_SYNC_FLAGS_MESSAGE}`;\n break;\n case FSFetchReasons.UPDATE_CONTEXT:\n message = `Visitor context for visitor \\`{0}\\` has been updated ${VISITOR_SYNC_FLAGS_MESSAGE}`;\n break;\n case FSFetchReasons.AUTHENTICATE:\n message = `Visitor \\`{0}\\` has been authenticated ${VISITOR_SYNC_FLAGS_MESSAGE}`;\n break;\n case FSFetchReasons.UNAUTHENTICATE:\n message = `Visitor \\`{0}\\` has been unauthenticated ${VISITOR_SYNC_FLAGS_MESSAGE}`;\n break;\n case FSFetchReasons.FETCH_ERROR:\n message = 'There was an error while fetching flags for visitor `{0}`. So the value of the flag `{1}` may be outdated\"';\n break;\n case FSFetchReasons.READ_FROM_CACHE:\n message = 'Flags for visitor `{0}` have been fetched from cache';\n break;\n default:\n break;\n }\n return message;\n}\nexport function valueToHex(value) {\n const jsonString = JSON.stringify(value);\n const hex = Array.from(jsonString, char => char.charCodeAt(0).toString(16)).join('');\n return hex;\n}\nexport function hexToValue(hex, config) {\n if (typeof hex !== 'string') {\n logErrorSprintf(config, 'hexToValue', 'Invalid hex string: {0}', hex);\n return null;\n }\n let jsonString = '';\n for (let i = 0; i < hex.length; i += 2) {\n const hexChar = hex.slice(i, i + 2);\n const charCode = parseInt(hexChar, 16);\n if (isNaN(charCode)) {\n logErrorSprintf(config, 'hexToValue', 'Invalid hex character: {0}', hexChar);\n return null;\n }\n jsonString += String.fromCharCode(charCode);\n }\n try {\n const value = JSON.parse(jsonString);\n return value;\n }\n catch (error) {\n logErrorSprintf(config, 'hexToValue', 'Error while parsing JSON: {0}', error);\n return null;\n }\n}\n","'use client';\nimport { createContext } from 'react';\nexport const initStat = {\n isInitializing: true\n};\nexport const FlagshipContext = createContext({\n state: { ...initStat }\n});\n","export const noVisitorMessage = 'flagship Visitor not initialized.';\nexport const noVisitorDefault = 'fsVisitor not initialized, returns default value';\nexport const GET_FLAG_CAST_ERROR = 'Flag for key {0} has a different type. Default value is returned.';\nexport const GET_METADATA_CAST_ERROR = 'Flag for key {0} has a different type with defaultValue, an empty metadata object is returned';\n","import { Flagship, FSFlagMetadata, FSFlagStatus } from '@flagship.io/js-sdk';\nimport { GET_FLAG_CAST_ERROR, noVisitorMessage } from './constants';\nimport { hasSameType, logInfo, logWarn, sprintf } from './utils';\nexport class FSFlag {\n key;\n flag;\n constructor(key, state) {\n const flagsData = state.flags;\n if (!state.hasVisitorData) {\n logWarn(Flagship.getConfig(), noVisitorMessage, 'GetFlag');\n }\n this.key = key;\n this.flag = flagsData?.get(key);\n }\n getValue(defaultValue) {\n if (!this.flag) {\n return defaultValue;\n }\n if (this.flag.value === null || this.flag.value === undefined) {\n return defaultValue;\n }\n if (defaultValue !== null && defaultValue !== undefined && !hasSameType(this.flag.value, defaultValue)) {\n logInfo(Flagship.getConfig(), sprintf(GET_FLAG_CAST_ERROR, this.key), 'getValue');\n return defaultValue;\n }\n return this.flag.value;\n }\n exists() {\n if (!this.flag) {\n return false;\n }\n return !!(this.flag.campaignId && this.flag.variationId && this.flag.variationGroupId);\n }\n async visitorExposed() {\n // do nothing\n }\n get metadata() {\n if (!this.flag) {\n return FSFlagMetadata.Empty();\n }\n return new FSFlagMetadata({\n campaignId: this.flag.campaignId,\n campaignName: this.flag.campaignName,\n variationGroupId: this.flag.variationGroupId,\n variationGroupName: this.flag.variationGroupName,\n variationId: this.flag.variationId,\n variationName: this.flag.variationName,\n isReference: !!this.flag.isReference,\n campaignType: this.flag.campaignType,\n slug: this.flag.slug\n });\n }\n get status() {\n if (!this.exists()) {\n return FSFlagStatus.NOT_FOUND;\n }\n return FSFlagStatus.FETCHED;\n }\n}\n","'use client';\nimport { useContext } from 'react';\nimport { Flagship, FSFlagCollection } from '@flagship.io/js-sdk';\nimport { noVisitorMessage } from './constants';\nimport { FlagshipContext } from './FlagshipContext';\nimport { FSFlag } from './FSFlag';\nimport { deepClone, hasContextChanged, logError, logWarn } from './utils';\n/**\n * This hook returns a flag object by its key. If no flag match the given key an empty flag will be returned.\n * @param key\n * @param defaultValue\n * @returns\n */\nexport const useFsFlag = (key) => {\n const { state } = useContext(FlagshipContext);\n const { visitor } = state;\n if (!visitor) {\n return new FSFlag(key, state);\n }\n return visitor.getFlag(key);\n};\nconst handleContextChange = (param) => {\n const { updateFunction, functionName, visitor, config } = param;\n if (!visitor) {\n logError(config, noVisitorMessage, functionName);\n return;\n }\n const originalContextClone = deepClone(visitor.context);\n updateFunction();\n const updatedContext = visitor.context;\n if (hasContextChanged(originalContextClone, updatedContext)) {\n visitor.fetchFlags();\n }\n};\nexport const useFlagship = () => {\n const { state } = useContext(FlagshipContext);\n const { visitor, config } = state;\n const fsUpdateContext = (context) => {\n handleContextChange({\n config,\n visitor,\n updateFunction: () => visitor?.updateContext(context),\n functionName: 'updateContext'\n });\n };\n const fsClearContext = () => {\n handleContextChange({\n config,\n visitor,\n updateFunction: () => visitor?.clearContext(),\n functionName: 'cleanContext'\n });\n };\n const fsAuthenticate = (visitorId) => {\n const functionName = 'authenticate';\n if (!visitor) {\n logError(config, noVisitorMessage, functionName);\n return;\n }\n const originalVisitorId = visitor.visitorId;\n visitor.authenticate(visitorId);\n if (originalVisitorId !== visitorId) {\n visitor.fetchFlags();\n }\n };\n const fsUnauthenticate = () => {\n const functionName = 'unauthenticate';\n if (!visitor) {\n logError(config, noVisitorMessage, functionName);\n return;\n }\n const originalVisitorId = visitor.visitorId;\n visitor.unauthenticate();\n if (originalVisitorId !== visitor.visitorId) {\n visitor.fetchFlags();\n }\n };\n /**\n * Send a Hit to Flagship servers for reporting.\n */\n const fsSendHit = (hit) => {\n const functionName = 'sendHit';\n if (!visitor) {\n logError(config, noVisitorMessage, functionName);\n return Promise.resolve();\n }\n if (Array.isArray(hit)) {\n return visitor.sendHits(hit);\n }\n return visitor.sendHit(hit);\n };\n function getFlag(key) {\n if (!visitor) {\n return new FSFlag(key, state);\n }\n return visitor.getFlag(key);\n }\n function fetchFlags() {\n if (!visitor) {\n logWarn(config, noVisitorMessage, 'fetchFlags');\n return Promise.resolve();\n }\n return visitor.fetchFlags();\n }\n function setConsent(hasConsented) {\n if (!visitor) {\n logWarn(config, noVisitorMessage, 'setConsent');\n return;\n }\n visitor.setConsent(hasConsented);\n }\n async function close() {\n await Flagship.close();\n }\n function getFlags() {\n if (!visitor) {\n const flags = new Map();\n state.flags?.forEach((flag, key) => {\n flags.set(key, new FSFlag(key, state));\n });\n return new FSFlagCollection({ flags });\n }\n return visitor.getFlags();\n }\n return {\n visitorId: visitor?.visitorId,\n anonymousId: visitor?.anonymousId,\n context: { ...visitor?.context },\n hasConsented: visitor?.hasConsented,\n sdkStatus: Flagship.getStatus(),\n fetchStatus: visitor?.fetchStatus,\n setConsent,\n updateContext: fsUpdateContext,\n clearContext: fsClearContext,\n authenticate: fsAuthenticate,\n unauthenticate: fsUnauthenticate,\n sendHits: fsSendHit,\n getFlag,\n fetchFlags,\n close,\n getFlags\n };\n};\n","'use client';\nimport { useEffect, useRef } from 'react';\nimport Flagship, { LogLevel } from '@flagship.io/js-sdk';\nexport function logError(config, message, tag) {\n if (!config || !config.logLevel || config.logLevel < LogLevel.ERROR) {\n return;\n }\n if (typeof config.onLog === 'function') {\n config.onLog(LogLevel.ERROR, tag, message);\n }\n if (config.logManager && typeof config.logManager.error === 'function') {\n config.logManager.error(message, tag);\n }\n}\nexport function logInfo(config, message, tag) {\n if (!config || !config.logLevel || config.logLevel < LogLevel.INFO) {\n return;\n }\n if (typeof config.onLog === 'function') {\n config.onLog(LogLevel.INFO, tag, message);\n }\n if (config.logManager && typeof config.logManager.info === 'function') {\n config.logManager.info(message, tag);\n }\n}\nexport function logWarn(config, message, tag) {\n if (!config || !config.logLevel || config.logLevel < LogLevel.WARNING) {\n return;\n }\n if (typeof config.onLog === 'function') {\n config.onLog(LogLevel.WARNING, tag, message);\n }\n if (config.logManager && typeof config.logManager.warning === 'function') {\n config.logManager.warning(message, tag);\n }\n}\nexport const getFlagsFromCampaigns = (campaigns) => {\n const flags = new Map();\n if (!campaigns || !Array.isArray(campaigns)) {\n return flags;\n }\n campaigns.forEach((campaign) => {\n const object = campaign.variation.modifications.value;\n for (const key in object) {\n const value = object[key];\n flags.set(key, {\n key,\n campaignId: campaign.id,\n campaignName: campaign.name || '',\n variationGroupId: campaign.variationGroupId,\n variationGroupName: campaign.variationGroupName || '',\n variationId: campaign.variation.id,\n variationName: campaign.variation.name || '',\n isReference: campaign.variation.reference,\n slug: campaign.slug || '',\n value\n });\n }\n });\n return flags;\n};\nexport function uuidV4() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (char) {\n const rand = (Math.random() * 16) | 0;\n const value = char === 'x' ? rand : (rand & 0x3) | 0x8;\n return value.toString(16);\n });\n}\nexport function useNonInitialEffect(effect, deps) {\n const initialRender = useRef(true);\n useEffect(() => {\n if (initialRender.current) {\n initialRender.current = false;\n return;\n }\n if (typeof effect === 'function') {\n return effect();\n }\n }, deps);\n}\nexport function hasSameType(flagValue, defaultValue) {\n if (typeof flagValue !== typeof defaultValue) {\n return false;\n }\n if (typeof flagValue === 'object' && typeof defaultValue === 'object' &&\n Array.isArray(flagValue) !== Array.isArray(defaultValue)) {\n return false;\n }\n return true;\n}\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function sprintf(format, ...value) {\n let formatted = format;\n for (let i = 0; i < value.length; i++) {\n const element = value[i];\n formatted = formatted.replace(new RegExp(`\\\\{${i}\\\\}`, 'g'), element);\n }\n return formatted;\n}\nexport function hexToValue(hex, config) {\n if (typeof hex !== 'string') {\n logError(config, `Invalid hex string: ${hex}`, 'hexToValue');\n return null;\n }\n let jsonString = '';\n for (let i = 0; i < hex.length; i += 2) {\n const hexChar = hex.slice(i, i + 2);\n const charCode = parseInt(hexChar, 16);\n if (isNaN(charCode)) {\n logError(config, `Invalid hex character: ${hexChar}`, 'hexToValue');\n return null;\n }\n jsonString += String.fromCharCode(charCode);\n }\n try {\n const value = JSON.parse(jsonString);\n return value;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n }\n catch (error) {\n logError(config, `Error while parsing JSON: ${error?.message}`, 'hexToValue');\n return null;\n }\n}\nexport function extractFlagsMap(initialFlagsData, initialCampaigns) {\n let flags = new Map();\n if (Array.isArray(initialFlagsData)) {\n initialFlagsData.forEach((flag) => {\n flags.set(flag.key, {\n key: flag.key,\n campaignId: flag.campaignId,\n campaignName: flag.campaignName,\n variationGroupId: flag.variationGroupId,\n variationGroupName: flag.variationGroupName,\n variationId: flag.variationId,\n variationName: flag.variationName,\n isReference: flag.isReference,\n campaignType: flag.campaignType,\n slug: flag.slug,\n value: hexToValue(flag.hex, Flagship.getConfig())?.v\n });\n });\n }\n else if (initialCampaigns) {\n flags = getFlagsFromCampaigns(initialCampaigns);\n }\n return flags;\n}\nexport function deepClone(obj) {\n return JSON.parse(JSON.stringify(obj));\n}\nexport function hasContextChanged(original, updated) {\n return JSON.stringify(original) !== JSON.stringify(updated);\n}\n","function _taggedTemplateLiteral(strings, raw) {\n if (!raw) {\n raw = strings.slice(0);\n }\n return Object.freeze(Object.defineProperties(strings, {\n raw: {\n value: Object.freeze(raw)\n }\n }));\n}\n\nexport { _taggedTemplateLiteral as taggedTemplateLiteral };\n","const LOGO_HEIGHT = 50;\n\nexport { LOGO_HEIGHT };\n","/**\n * Web Storage API values set by the UI\n *\n * `localStorage` is used for data which we want to persist even when the\n * browser is closed, `sessionStorage` items will last only as long as the\n * browser remains open\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/Storage\n */\n\nconst COOKIES = {\n AUTH_HINT: 'auth.hint',\n CONSENT: 'pgCookieConsent',\n BROWSER_WARNING_DISMISSED: 'browserWarningDismissed',\n LANGUAGE: 'language',\n STUDENT_PROMO: 'PgStudentCookie',\n STUDENT_VISIT: 'PgStudentVisitCookie'\n};\nconst LOCAL_STORAGE = {\n WEB_STORAGE_BANNER_SHOWN: 'web_storage_banner_shown',\n THEME: 'theme',\n THEME_MODE: 'theme_mode'\n};\n\nexport { COOKIES, LOCAL_STORAGE };\n","const KIOSK = 'kiosk'; // Registration kiosks, outside gyms\nconst MEMBER_APP = 'PureGymMemberApp'; // Our internal iOS/Android apps\nconst VENDOR_APP = 'puregym-vendor-app'; // Yanga water\n\nconst EMBEDDED_USER_AGENTS = {\n KIOSK,\n MEMBER_APP,\n VENDOR_APP\n};\n\nexport { EMBEDDED_USER_AGENTS };\n","import '../constants/culture.js';\nimport { EMBEDDED_USER_AGENTS } from '../constants/userAgents.js';\nimport { useState, useEffect } from 'react';\n\nconst devices = {\n browser: 'browser',\n server: 'server',\n native: 'native'\n};\nconst {\n browser,\n server,\n native\n} = devices;\nconst canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);\nconst canUseNative = typeof navigator !== 'undefined' && navigator.product === 'ReactNative';\nconst device = canUseNative ? native : canUseDOM ? browser : server;\nconst useDeviceInfo = () => {\n const [userAgent, setUserAgent] = useState('');\n const [isEmbeddedBrowser, setIsEmbeddedBrowser] = useState(false);\n useEffect(() => {\n setUserAgent(navigator.userAgent);\n setIsEmbeddedBrowser(Object.values(EMBEDDED_USER_AGENTS).some(ua => navigator.userAgent.includes(ua)));\n }, []);\n return {\n isBrowser: device === browser,\n isServer: device === server,\n isNative: device === native,\n isEmbeddedBrowser,\n device,\n userAgent\n };\n};\n\nexport { useDeviceInfo };\n","import lighten from 'polished/lib/color/lighten';\nimport shade from 'polished/lib/color/shade';\nimport tint from 'polished/lib/color/tint';\n\n/**\n * Brands can provide as many colours as required. Each key should be a\n * color name (e.g. 'red' or 'mySpecialRed').\n *\n * \"dark\" and \"light\" are special keys: they are not used to generate\n * UI variants (e.g. primary/secondary buttons), but as accent/background\n * alongside the other named colors. They will default to black and white.\n */\nconst brandColors = {\n pink: '#E91E63',\n blue: '#039BE5',\n dark: '#000',\n light: '#fff'\n};\n\n/**\n * Each brand can provide optional accent colors. These should be used\n * sparingly, and only in brand-specific component variants.\n **/\nconst brandAccents = {\n lime: '#93F811'\n};\nconst alerts = {\n info: '#e8f4fd',\n error: '#fdecea',\n warning: '#fff4e5',\n success: '#edf7ed'\n};\nconst palette = {\n primary: {\n light: lighten(0.08, brandColors.pink),\n main: brandColors.pink,\n dark: shade(0.16, brandColors.pink),\n contrastText: '#fff',\n contrastTextLight: brandColors.dark\n },\n secondary: {\n light: tint(0.16, brandColors.blue),\n main: brandColors.blue,\n dark: shade(0.16, brandColors.blue),\n contrastText: '#fff',\n contrastTextLight: brandColors.dark\n }\n};\nconst opacities = {\n default: 'rgba(255,255,255,0.33)',\n subtle: 'rgba(255,255,255,0.16)',\n strong: 'rgba(255,255,255,0.66)',\n inverted: 'rgba(0,0,0,0.16)',\n invertedSubtle: 'rgba(0,0,0,0.06)',\n invertedStrong: 'rgba(0,0,0,0.33)'\n};\nconst darkOpacities = {\n default: 'rgba(0,0,0,0.16)',\n subtle: 'rgba(0,0,0,0.06)',\n strong: 'rgba(0,0,0,0.33)',\n inverted: 'rgba(255,255,255,0.33)',\n invertedSubtle: 'rgba(255,255,255,0.16)',\n invertedStrong: 'rgba(255,255,255,0.66)'\n};\nconst text = {\n text: brandColors.dark,\n textMuted: '#707070',\n contrastText: brandColors.light\n};\nconst darkText = {\n text: brandColors.light,\n textMuted: '#ececec',\n contrastText: brandColors.dark\n};\n\n/** Neutral shades for borders etc. */\nconst accents = {\n light: tint(0.85, brandColors.pink),\n dark: brandColors.dark,\n muted: '#ececec'\n};\nconst darkAccents = {\n light: '#efefef',\n dark: '#000',\n muted: '#484848'\n};\nconst colors = {\n ...palette,\n ...text,\n brandAccents,\n accents,\n alerts,\n opacities,\n background: brandColors.light,\n surface: '#f7f7f7'\n};\nconst darkColors = {\n ...colors,\n ...darkText,\n opacities: darkOpacities,\n accents: darkAccents,\n background: brandColors.dark,\n surface: '#343434'\n};\n\nexport { colors, darkColors, palette };\n","const BASE_SPACING = 12;\n\n/** @todo look at tailwind's implementations; this needs improving */\nconst spacing = {\n baseSpacing: \"\".concat(BASE_SPACING, \"px\"),\n quarterSpacing: \"\".concat(BASE_SPACING / 4, \"px\"),\n halfSpacing: \"\".concat(BASE_SPACING / 2, \"px\"),\n threeQuarterSpacing: \"\".concat(BASE_SPACING * 1.5, \"px\"),\n doubleSpacing: \"\".concat(BASE_SPACING * 2, \"px\")\n};\nconst stripUnit = unit => breakpoints.map(bp => bp.replace(unit, ''));\nconst breakpoints = ['576px', '768px', '992px', '1200px'];\nconst unitlessBreakpoints = stripUnit('px');\nconst mediaQueries = {\n sm: \"@media screen and (min-width: \".concat(unitlessBreakpoints[0], \"px)\"),\n md: \"@media screen and (min-width: \".concat(unitlessBreakpoints[1], \"px)\"),\n lg: \"@media screen and (min-width: \".concat(unitlessBreakpoints[2], \"px)\"),\n xl: \"@media screen and (min-width: \".concat(unitlessBreakpoints[3], \"px)\"),\n smMax: \"@media screen and (max-width: \".concat(unitlessBreakpoints[0] - 1, \"px)\"),\n mdMax: \"@media screen and (max-width: \".concat(unitlessBreakpoints[1] - 1, \"px)\"),\n lgMax: \"@media screen and (max-width: \".concat(unitlessBreakpoints[2] - 1, \"px)\"),\n xlMax: \"@media screen and (max-width: \".concat(unitlessBreakpoints[3] - 1, \"px)\")\n};\nconst page = {\n maxWidth: '1170px'\n};\nconst layout = {\n breakpoints,\n mediaQueries,\n page,\n spacing,\n BASE_SPACING\n};\n\nexport { BASE_SPACING, layout };\n","const transitionsRaw = {\n default: 330,\n fast: 100,\n medium: 250,\n slow: 660\n};\nconst transitionsMs = {\n default: \"\".concat(transitionsRaw.default, \"ms\"),\n fast: \"\".concat(transitionsRaw.fast, \"ms\"),\n medium: \"\".concat(transitionsRaw.medium, \"ms\"),\n slow: \"\".concat(transitionsRaw.slow, \"ms\")\n};\nconst transitions = {\n transitions: transitionsRaw,\n transitionsMs\n};\n\nexport { transitions };\n","import { colors } from './colors.js';\n\nconst typography = {\n fonts: {\n body: 'Helvetica Neue, Helvetica, Arial, system-ui, sans-serif',\n heading: 'Gill Sans, Gill Sans MT, Calibri, sans-serif;',\n monospace: 'Menlo, monospace'\n },\n rtlFonts: {\n body: 'Almarai, system-ui, sans-serif',\n heading: 'CairoBlack, sans-serif'\n },\n fontWeights: {\n body: 400,\n heading: 700\n },\n fontSizes: {\n xxsmall: '1.2rem',\n xsmall: '1.4rem',\n small: '1.6rem',\n standard: '1.8rem',\n large: '2rem',\n xlarge: '2.2rem',\n xxlarge: '2.4rem'\n },\n lineHeights: {\n body: 1.5,\n heading: 1.125\n },\n rtlLineHeights: {\n body: 1.8,\n heading: 1.4\n },\n textShadows: {\n default: \"1px 1px 0 \".concat(colors.opacities.invertedSubtle),\n // Used to help increase contrast against the palette colors\n light: \"1px 1px 0 \".concat(colors.opacities.subtle)\n }\n};\n\nexport { typography };\n","import { generateVariants } from '../utils.js';\nimport { colors } from './colors.js';\n\nconst boxShadows = {\n default: '0 1px 3px 0 rgba(0,0,0,0.2)',\n focus: \"0 0 0 2px \".concat(colors.primary.dark),\n active: '0 1px 4px 0 rgba(0,0,0,.33)',\n selected: 'inset 0 0 4px 0 rgba(0,0,0,0.2)',\n subtle: '0 1px 1px 0 rgba(0,0,0,0.1)'\n};\nconst opacities = {\n disabled: '0.66',\n selected: '0.8'\n};\nconst radii = generateVariants(4);\nconst misc = {\n boxShadows,\n opacities,\n radii\n};\n\nexport { misc };\n","const generateVariants = function () {\n let base = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 6;\n let suffix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'px';\n return {\n default: \"\".concat(base).concat(suffix),\n double: \"\".concat(base * 2).concat(suffix),\n half: \"\".concat(base / 2).concat(suffix),\n quarter: \"\".concat(base / 4).concat(suffix)\n };\n};\n\nexport { generateVariants };\n","import { colors, darkColors } from './colors.js';\nimport { layout } from './layout.js';\nimport { transitions } from './transitions.js';\nimport { typography } from './typography.js';\nimport { misc } from './misc.js';\n\nconst baseTheme = {\n name: 'base',\n mode: 'light',\n colors,\n ...layout,\n ...transitions,\n ...typography,\n ...misc\n};\nconst baseDarkTheme = {\n ...baseTheme,\n mode: 'dark',\n colors: darkColors\n};\n\nexport { baseDarkTheme, baseTheme };\n","import lighten from 'polished/lib/color/lighten';\nimport shade from 'polished/lib/color/shade';\nimport tint from 'polished/lib/color/tint';\nimport { colors as colors$1, darkColors as darkColors$1 } from '../base/colors.js';\n\nconst brandColors = {\n orange: '#ec6730',\n // #ED6B3C / #FF6129 - app and current web colours\n teal: '#00999d',\n dark: '#212121',\n light: '#fff'\n};\nconst brandAccents = {\n red: 'red',\n purple: '#2f1681',\n lightTeal: lighten(0.12, brandColors.teal),\n softOrange: '#ffb13d'\n};\nconst palette = {\n primary: {\n light: lighten(0.08, brandColors.teal),\n main: brandColors.teal,\n dark: shade(0.16, brandColors.teal),\n contrastText: brandColors.light,\n contrastTextLight: brandColors.dark\n },\n secondary: {\n light: tint(0.16, brandColors.orange),\n main: brandColors.orange,\n dark: shade(0.16, brandColors.orange),\n contrastText: brandColors.light,\n contrastTextLight: brandColors.dark\n }\n};\nconst text = {\n text: brandColors.dark,\n textMuted: '#707070',\n contrastText: brandColors.light\n};\nconst darkText = {\n text: brandColors.light,\n textMuted: '#ececec',\n contrastText: brandColors.dark\n};\n\n/** Neutral shades for borders etc. */\nconst accents = {\n light: tint(0.85, brandColors.teal),\n // #DBEFEF\n dark: brandColors.dark,\n muted: '#ececec'\n};\nconst darkAccents = {\n ...accents,\n muted: '#707070'\n};\n\n/** The main colors are used in all parts of the app, regardless of palette. */\nconst overRides = {\n ...palette,\n ...text,\n brandAccents,\n accents,\n background: brandColors.light,\n surface: '#f7f7f7'\n};\nconst colors = {\n ...colors$1,\n ...overRides\n};\nconst darkColors = {\n ...darkColors$1,\n ...overRides,\n ...darkText,\n accents: darkAccents,\n background: brandColors.dark,\n surface: '#343434'\n};\n\nexport { colors, darkColors, palette };\n","import darken from 'polished/lib/color/darken';\nimport { colors } from './colors.js';\n\nconst boxShadows = {\n default: '0 1px 3px 0 rgba(0,0,0,0.2)',\n focus: \"0 0 0 2px \".concat(darken(0.2, colors.primary.main)),\n active: '0 1px 4px 0 rgba(0,0,0,.33)',\n selected: 'inset 0 0 4px 0 rgba(0,0,0,0.2)',\n subtle: '0 1px 1px 0 rgba(0,0,0,0.1)'\n};\nconst boxShadowsDark = {\n ...boxShadows,\n focus: \"0 0 0 2px \".concat(colors.primary.light),\n subtle: '0 1px 1px 0 rgba(255,255,255,0.1)'\n};\n\nexport { boxShadows, boxShadowsDark };\n","import { baseTheme } from '../base/index.js';\nimport { colors, darkColors } from './colors.js';\nimport { typography } from './typography.js';\nimport { boxShadows, boxShadowsDark } from './misc.js';\n\nconst pureGymTheme = {\n ...baseTheme,\n name: 'pureGym',\n mode: 'light',\n colors,\n boxShadows,\n ...typography\n};\nconst pureGymDarkTheme = {\n ...pureGymTheme,\n mode: 'dark',\n colors: darkColors,\n boxShadows: boxShadowsDark\n};\n\nexport { pureGymDarkTheme, pureGymTheme };\n","const typography = {\n fonts: {\n body: 'AbelPro, AbelProLocalFallback, system-ui, sans-serif',\n heading: 'URWDINCondensed, URWDINCondensedLocalFallback, sans-serif',\n monospace: 'Menlo, monospace'\n },\n rtlFonts: {\n body: 'Almarai, AlmaraiLocalFallback, system-ui, sans-serif',\n heading: 'Cairo, CairoLocalFallback, sans-serif'\n }\n};\n\nexport { typography };\n","const ALERT_VARIANTS = {\n ERROR: 'error',\n WARNING: 'warning',\n INFO: 'info',\n SUCCESS: 'success'\n};\n\nexport { ALERT_VARIANTS };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport { forwardRef } from 'react';\nimport styled, { css } from 'styled-components';\nimport darken from 'polished/lib/color/darken';\nimport { visuallyHiddenStyles } from '../../utils/styleHelpers.js';\nimport { Button } from '../button/index.js';\nimport { IconClose } from '../icons/generated/Close.js';\nimport { ALERT_VARIANTS } from './constants.js';\nexport { ALERT_VARIANTS } from './constants.js';\nimport { jsx, jsxs } from 'react/jsx-runtime';\nimport { BUTTON_VARIANTS } from '../button/constants.js';\n\nvar _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;\nconst Wrapper = /*#__PURE__*/styled.div.withConfig({\n displayName: \"alert__Wrapper\",\n componentId: \"sc-1nd57i9-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n display: flex;\\n justify-content: space-between;\\n align-items: flex-start;\\n gap: \", \";\\n padding: \", \";\\n border-radius: \", \";\\n\\n line-height: 1.33;\\n color: \", \";\\n text-shadow: \", \";\\n\\n > div {\\n align-self: center;\\n }\\n\\n a {\\n text-decoration: none;\\n &:hover,\\n &:focus,\\n &:active {\\n text-decoration: underline;\\n }\\n }\\n\\n \", \";\\n\"])), _ref => {\n let {\n theme\n } = _ref;\n return theme.spacing.halfSpacing;\n}, _ref2 => {\n let {\n theme\n } = _ref2;\n return \"\".concat(theme.spacing.halfSpacing, \" \").concat(theme.spacing.baseSpacing);\n}, _ref3 => {\n let {\n theme\n } = _ref3;\n return theme.radii.default;\n}, _ref4 => {\n let {\n theme\n } = _ref4;\n return theme.colors.primary.contrastTextLight;\n}, _ref5 => {\n let {\n theme\n } = _ref5;\n return theme.textShadows.default;\n}, _ref6 => {\n let {\n theme: {\n colors\n },\n variant\n } = _ref6;\n switch (variant) {\n case ALERT_VARIANTS.ERROR:\n {\n return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n color: \", \";\\n a {\\n color: \", \";\\n &:hover,\\n &:focus,\\n &:active {\\n color: \", \";\\n }\\n }\\n \"])), colors.alerts.error, darken(0.7, colors.alerts.error), darken(0.7, colors.alerts.error), darken(0.6, colors.alerts.error));\n }\n case ALERT_VARIANTS.WARNING:\n {\n return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n color: \", \";\\n a {\\n color: \", \";\\n &:hover,\\n &:focus,\\n &:active {\\n color: \", \";\\n }\\n }\\n \"])), colors.alerts.warning, darken(0.7, colors.alerts.warning), darken(0.7, colors.alerts.warning), darken(0.6, colors.alerts.warning));\n }\n case ALERT_VARIANTS.INFO:\n {\n return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n color: \", \";\\n a {\\n color: \", \";\\n &:hover,\\n &:focus,\\n &:active {\\n color: \", \";\\n }\\n }\\n \"])), colors.alerts.info, darken(0.7, colors.alerts.info), darken(0.7, colors.alerts.info), darken(0.6, colors.alerts.info));\n }\n case ALERT_VARIANTS.SUCCESS:\n {\n return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n color: \", \";\\n a {\\n color: \", \";\\n &:hover,\\n &:focus,\\n &:active {\\n color: \", \";\\n }\\n }\\n \"])), colors.alerts.success, darken(0.7, colors.alerts.success), darken(0.7, colors.alerts.success), darken(0.6, colors.alerts.success));\n }\n // no default\n }\n});\n\nconst InnerContent = /*#__PURE__*/styled.div.withConfig({\n displayName: \"alert__InnerContent\",\n componentId: \"sc-1nd57i9-1\"\n})(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral([\"\\n display: flex;\\n justify-content: space-between;\\n align-items: center;\\n flex-basis: 100%;\\n\"])));\nconst CloseButton = /*#__PURE__*/styled(Button).withConfig({\n displayName: \"alert__CloseButton\",\n componentId: \"sc-1nd57i9-2\"\n})(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([\"\\n align-self: flex-start;\\n\\n :not(:hover),\\n :not(:active) {\\n &:focus {\\n box-shadow: \", \";\\n }\\n }\\n\\n &:not(:disabled) {\\n &:hover,\\n &:focus,\\n &:active {\\n background: transparent;\\n color: \", \" !important;\\n }\\n }\\n\"])), _ref7 => {\n let {\n theme\n } = _ref7;\n return \"0 0 0 2px \".concat(theme.colors.primary.contrastText);\n}, _ref8 => {\n let {\n theme\n } = _ref8;\n return theme.colors.opacities.darkStrong;\n});\nconst ButtonText = /*#__PURE__*/styled.span.withConfig({\n displayName: \"alert__ButtonText\",\n componentId: \"sc-1nd57i9-3\"\n})(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral([\"\\n \", \"\\n\"])), visuallyHiddenStyles);\nconst Alert = /*#__PURE__*/forwardRef(function Alert(_ref9, ref) {\n let {\n children,\n closeButtonText,\n onClose,\n variant = ALERT_VARIANTS.NEUTRAL,\n ...rest\n } = _ref9;\n return /*#__PURE__*/jsx(Wrapper, {\n ref: ref,\n variant: variant,\n ...rest,\n children: /*#__PURE__*/jsxs(InnerContent, {\n children: [/*#__PURE__*/jsx(\"div\", {\n children: children\n }), onClose && /*#__PURE__*/jsxs(CloseButton, {\n variant: BUTTON_VARIANTS.PLAIN,\n onClick: onClose,\n children: [/*#__PURE__*/jsx(IconClose, {\n title: closeButtonText,\n \"aria-hidden\": true\n }), /*#__PURE__*/jsx(ButtonText, {\n children: closeButtonText\n })]\n })]\n })\n });\n});\n\nexport { Alert };\n","const BANNER_VARIANTS = {\n HIGHLIGHT: 'highlight',\n PRIMARY: 'primary',\n SECONDARY: 'secondary',\n PREMIUM: 'premium',\n PROMO: 'promo'\n};\n\nexport { BANNER_VARIANTS };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport { forwardRef } from 'react';\nimport styled, { css } from 'styled-components';\nimport theme from 'styled-theming';\nimport { maxWidthLayoutStyles } from '../../utils/styleHelpers.js';\nimport { BANNER_VARIANTS } from './constants.js';\nexport { BANNER_VARIANTS } from './constants.js';\nimport { jsx, jsxs } from 'react/jsx-runtime';\n\nvar _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;\nconst Wrapper = /*#__PURE__*/styled.div.withConfig({\n displayName: \"banner__Wrapper\",\n componentId: \"sc-oe03ar-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n position: relative;\\n flex-shrink: 0;\\n display: flex;\\n z-index: 1;\\n\\n text-shadow: \", \";\\n box-shadow: 0 3px 4px -3px rgba(0, 0, 0, 0.2),\\n 0 -3px 4px -3px rgba(0, 0, 0, 0.2);\\n\\n background-color: \", \";\\n color: \", \";\\n\\n a {\\n color: \", \";\\n\\n &:hover,\\n &:focus,\\n &:active {\\n color: \", \";\\n }\\n }\\n\\n \", \"\\n\"])), _ref => {\n let {\n theme\n } = _ref;\n return theme.textShadows.default;\n}, _ref2 => {\n let {\n theme\n } = _ref2;\n return theme.colors.accents.dark;\n}, _ref3 => {\n let {\n theme\n } = _ref3;\n return theme.colors.contrastText;\n}, _ref4 => {\n let {\n theme\n } = _ref4;\n return theme.colors.contrastText;\n}, _ref5 => {\n let {\n theme\n } = _ref5;\n return theme.colors.contrastText;\n}, _ref6 => {\n let {\n theme: {\n colors\n },\n variant\n } = _ref6;\n switch (variant) {\n case BANNER_VARIANTS.HIGHLIGHT:\n return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n color: \", \";\\n text-shadow: none;\\n\\n a {\\n color: \", \";\\n\\n &:hover,\\n &:focus,\\n &:active {\\n color: \", \";\\n }\\n }\\n \"])), colors.brandAccents.lightTeal, colors.text, colors.text, colors.text);\n case BANNER_VARIANTS.PRIMARY:\n return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n \"])), colors.primary.main);\n case BANNER_VARIANTS.SECONDARY:\n return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n \"])), colors.secondary.main);\n case BANNER_VARIANTS.PREMIUM:\n return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n color: \", \";\\n\\n a {\\n color: \", \";\\n\\n &:hover,\\n &:focus,\\n &:active {\\n color: \", \";\\n }\\n }\\n \"])), colors.brandAccents.purple, colors.brandAccents.lightTeal, colors.brandAccents.lightTeal, colors.brandAccents.lightTeal);\n case BANNER_VARIANTS.PROMO:\n return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n \"])), colors.brandAccents.red);\n\n // no default\n }\n});\n\nconst DefaultBannerTextStyles = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([\"\\n font-family: \", \";\\n text-align: center;\\n\\n [dir='rtl'] & {\\n font-family: \", \";\\n font-weight: bold;\\n text-transform: none;\\n }\\n\\n \", \"\\n\"])), _ref7 => {\n let {\n theme\n } = _ref7;\n return theme.fonts.heading;\n}, _ref8 => {\n let {\n theme\n } = _ref8;\n return theme.rtlFonts.heading;\n}, theme('name', {\n pureGym: \"\\n text-transform: uppercase;\\n \"\n}));\nconst PrimaryText = /*#__PURE__*/styled.span.withConfig({\n displayName: \"banner__PrimaryText\",\n componentId: \"sc-oe03ar-1\"\n})(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral([\"\\n \", \"\\n\\n \", \" {\\n font-size: \", \";\\n }\\n\"])), DefaultBannerTextStyles, _ref9 => {\n let {\n theme\n } = _ref9;\n return theme.mediaQueries.md;\n}, _ref10 => {\n let {\n theme\n } = _ref10;\n return theme.fontSizes.large;\n});\nconst SecondaryText = /*#__PURE__*/styled.span.withConfig({\n displayName: \"banner__SecondaryText\",\n componentId: \"sc-oe03ar-2\"\n})(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral([\"\\n \", \"\\n\\n margin-inline-start: \", \";\\n font-size: \", \";\\n\\n \", \" {\\n font-size: \", \";\\n }\\n\"])), DefaultBannerTextStyles, _ref11 => {\n let {\n theme\n } = _ref11;\n return theme.spacing.baseSpacing;\n}, _ref12 => {\n let {\n theme\n } = _ref12;\n return theme.fontSizes.small;\n}, _ref13 => {\n let {\n theme\n } = _ref13;\n return theme.mediaQueries.md;\n}, _ref14 => {\n let {\n theme\n } = _ref14;\n return theme.fontSizes.standard;\n});\nconst ContentWrapper = /*#__PURE__*/styled.div.withConfig({\n displayName: \"banner__ContentWrapper\",\n componentId: \"sc-oe03ar-3\"\n})(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral([\"\\n width: 100%;\\n padding: \", \";\\n text-decoration: none;\\n\\n \", \"\\n\"])), _ref15 => {\n let {\n theme\n } = _ref15;\n return \"\".concat(theme.spacing.halfSpacing, \" \").concat(theme.spacing.baseSpacing);\n}, _ref16 => {\n let {\n theme,\n href\n } = _ref16;\n return href && css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral([\"\\n &:hover,\\n &:focus,\\n &:active {\\n background-color: \", \";\\n\\n \", \",\\n \", \" {\\n text-decoration: underline;\\n }\\n }\\n \"])), theme.colors.opacities.subtle, PrimaryText, SecondaryText);\n});\nconst BannerContent = /*#__PURE__*/styled.div.withConfig({\n displayName: \"banner__BannerContent\",\n componentId: \"sc-oe03ar-4\"\n})(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral([\"\\n display: flex;\\n flex-direction: row;\\n align-items: baseline;\\n justify-content: center;\\n\\n \", \"\\n\"])), maxWidthLayoutStyles);\nconst Banner = /*#__PURE__*/forwardRef(function Banner(_ref17, ref) {\n let {\n children,\n linkProps,\n offerCode,\n primaryText,\n secondaryText,\n to,\n variant = BANNER_VARIANTS.PRIMARY,\n ...rest\n } = _ref17;\n return /*#__PURE__*/jsx(Wrapper, {\n ref: ref,\n variant: variant,\n ...rest,\n children: /*#__PURE__*/jsx(ContentWrapper, {\n href: to,\n as: to ? 'a' : 'div',\n ...linkProps,\n children: /*#__PURE__*/jsxs(BannerContent, {\n children: [primaryText ? /*#__PURE__*/jsx(PrimaryText, {\n children: primaryText\n }) : null, secondaryText || offerCode ? /*#__PURE__*/jsxs(SecondaryText, {\n children: [secondaryText, \" \", offerCode]\n }) : null, children]\n })\n })\n });\n});\n\nexport { Banner };\n","const BUTTON_VARIANTS = {\n PRIMARY: 'primary',\n SECONDARY: 'secondary',\n SUBDUED: 'subdued',\n OUTLINE: 'outline',\n PLAIN: 'plain',\n LINK: 'link'\n};\nconst BUTTON_SIZES = {\n SMALL: 'small',\n MEDIUM: 'medium',\n LARGE: 'large'\n};\n\nexport { BUTTON_SIZES, BUTTON_VARIANTS };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport { css } from 'styled-components';\nimport theme from 'styled-theming';\nimport darken from 'polished/lib/color/darken';\nimport lighten from 'polished/lib/color/lighten';\nimport { BUTTON_VARIANTS, BUTTON_SIZES } from './constants.js';\n\nvar _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;\nconst baseStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n display: inline-flex;\\n align-items: center;\\n justify-content: center;\\n gap: \", \";\\n\\n border: none;\\n border-radius: \", \";\\n box-shadow: \", \";\\n\\n color: \", \";\\n font-family: \", \";\\n line-height: 1;\\n font-weight: bold;\\n text-decoration: none;\\n\\n transition: \", \";\\n cursor: pointer;\\n\\n [dir='rtl'] & {\\n font-family: \", \";\\n text-transform: none;\\n }\\n\\n \", \"\\n\\n &:not(:disabled) {\\n &:hover,\\n &:focus,\\n &:active {\\n background-color: \", \";\\n border-color: \", \";\\n }\\n &:active {\\n box-shadow: \", \";\\n }\\n }\\n\\n &:focus-visible {\\n box-shadow: \", \";\\n }\\n\\n &:disabled {\\n cursor: not-allowed;\\n opacity: \", \";\\n }\\n\"])), _ref => {\n let {\n theme\n } = _ref;\n return theme.spacing.halfSpacing;\n}, _ref2 => {\n let {\n theme\n } = _ref2;\n return theme.radii.default;\n}, _ref3 => {\n let {\n theme\n } = _ref3;\n return theme.boxShadows.default;\n}, _ref4 => {\n let {\n theme\n } = _ref4;\n return theme.colors.contrastText;\n}, _ref5 => {\n let {\n theme\n } = _ref5;\n return theme.fonts.heading;\n}, _ref6 => {\n let {\n theme\n } = _ref6;\n return theme.transitionsMs.default;\n}, _ref7 => {\n let {\n theme\n } = _ref7;\n return theme.rtlFonts.heading;\n}, _ref8 => {\n let {\n theme: {\n colors\n }\n } = _ref8;\n return theme('name', {\n pureGym: \"\\n border: 1px solid \".concat(colors.opacities.invertedSubtle, \";\\n text-transform: uppercase;\\n \")\n });\n}, _ref9 => {\n let {\n theme\n } = _ref9;\n return theme.colors.accents.muted;\n}, _ref10 => {\n let {\n theme\n } = _ref10;\n return theme.colors.opacities.invertedSubtle;\n}, _ref11 => {\n let {\n theme\n } = _ref11;\n return theme.boxShadows.selected;\n}, _ref12 => {\n let {\n theme\n } = _ref12;\n return theme.boxShadows.focus;\n}, _ref13 => {\n let {\n theme\n } = _ref13;\n return theme.opacities.disabled;\n});\nconst menuItemStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n width: 100%;\\n display: flex;\\n justify-content: flex-start;\\n text-align: left;\\n\\n > svg {\\n font-size: 1em;\\n flex-shrink: 0;\\n\\n &:last-child:not(:only-child) {\\n margin-inline-start: auto;\\n }\\n }\\n\"])));\nconst primaryVariant = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n color: \", \";\\n\\n &:not(:disabled) {\\n &:hover,\\n &:focus,\\n &:active {\\n color: \", \";\\n background-color: \", \";\\n }\\n }\\n\"])), _ref14 => {\n let {\n theme\n } = _ref14;\n return theme.colors.primary.main;\n}, _ref15 => {\n let {\n theme\n } = _ref15;\n return theme.colors.primary.contrastText;\n}, _ref16 => {\n let {\n theme\n } = _ref16;\n return theme.colors.primary.contrastText;\n}, _ref17 => {\n let {\n theme\n } = _ref17;\n return theme.colors.primary.light;\n});\nconst secondaryVariant = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n color: \", \";\\n\\n &:not(:disabled) {\\n &:hover,\\n &:focus,\\n &:active {\\n color: \", \";\\n background-color: \", \";\\n }\\n }\\n\"])), _ref18 => {\n let {\n theme\n } = _ref18;\n return theme.colors.secondary.main;\n}, _ref19 => {\n let {\n theme\n } = _ref19;\n return theme.colors.secondary.contrastText;\n}, _ref20 => {\n let {\n theme\n } = _ref20;\n return theme.colors.secondary.contrastTextLight;\n}, _ref21 => {\n let {\n theme\n } = _ref21;\n return theme.colors.secondary.light;\n});\nconst outlineVariant = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral([\"\\n background-color: transparent;\\n color: currentColor;\\n border: 1px solid currentColor;\\n\\n &:not(:disabled) {\\n &:hover,\\n &:focus,\\n &:active {\\n border-color: currentColor;\\n color: \", \";\\n background: \", \";\\n }\\n }\\n\"])), _ref22 => {\n let {\n theme\n } = _ref22;\n return theme.colors.text;\n}, _ref23 => {\n let {\n theme\n } = _ref23;\n return theme.colors.accents.muted;\n});\nconst premiumVariant = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n color: \", \";\\n\\n &:not(:disabled) {\\n &:hover,\\n &:focus,\\n &:active {\\n color: \", \";\\n background-color: \", \";\\n }\\n }\\n\"])), _ref24 => {\n let {\n theme\n } = _ref24;\n return theme.colors.brandAccents.purple;\n}, _ref25 => {\n let {\n theme\n } = _ref25;\n return theme.colors.brandAccents.lightTeal;\n}, _ref26 => {\n let {\n theme\n } = _ref26;\n return theme.colors.brandAccents.lightTeal;\n}, _ref27 => {\n let {\n theme\n } = _ref27;\n return lighten(0.1, theme.colors.brandAccents.purple);\n});\nconst linkVariant = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([\"\\n padding: 0;\\n background: transparent;\\n border: none;\\n box-shadow: none;\\n font-family: \", \";\\n font-weight: normal;\\n text-decoration: underline;\\n text-transform: none;\\n color: \", \";\\n\\n > svg {\\n font-size: 1em;\\n }\\n\\n &:not(:disabled) {\\n &:hover,\\n &:focus,\\n &:active {\\n background-color: transparent;\\n box-shadow: none;\\n text-decoration: none;\\n color: \", \";\\n }\\n }\\n\\n &:disabled {\\n cursor: default;\\n text-decoration: none;\\n color: \", \";\\n }\\n\\n [dir='rtl'] & {\\n font-family: \", \";\\n }\\n\"])), _ref28 => {\n let {\n theme\n } = _ref28;\n return theme.fonts.body;\n}, _ref29 => {\n let {\n theme: {\n colors\n }\n } = _ref29;\n return theme('mode', {\n light: colors.primary.main,\n dark: colors.primary.light\n });\n}, _ref30 => {\n let {\n theme: {\n colors\n }\n } = _ref30;\n return theme('mode', {\n light: colors.primary.dark,\n dark: colors.primary.main\n });\n}, _ref31 => {\n let {\n theme\n } = _ref31;\n return theme.colors.text;\n}, _ref32 => {\n let {\n theme\n } = _ref32;\n return theme.rtlFonts.body;\n});\nconst plainVariant = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral([\"\\n padding: \", \";\\n background: transparent;\\n border: none;\\n box-shadow: none;\\n color: currentColor;\\n\\n > svg {\\n font-size: 1.2em;\\n }\\n\\n &:not(:disabled) {\\n &:hover,\\n &:focus,\\n &:active {\\n background: transparent;\\n color: \", \";\\n\\n \", \"\\n }\\n }\\n\\n &:disabled {\\n color: currentColor;\\n opacity: \", \";\\n }\\n\"])), _ref33 => {\n let {\n theme\n } = _ref33;\n return theme.spacing.halfSpacing;\n}, _ref34 => {\n let {\n theme\n } = _ref34;\n return theme.colors.primary.main;\n}, _ref35 => {\n let {\n theme: {\n colors\n }\n } = _ref35;\n return theme('name', {\n pureGym: \"\\n color: \".concat(colors.secondary.main, \";\\n \")\n });\n}, _ref36 => {\n let {\n theme\n } = _ref36;\n return theme.opacities.disabled;\n});\nconst subduedVariant = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n color: \", \";\\n\\n &:not(:disabled) {\\n &:hover,\\n &:focus,\\n &:active {\\n color: \", \";\\n background: \", \";\\n }\\n }\\n\"])), _ref37 => {\n let {\n theme\n } = _ref37;\n return theme.colors.accents.muted;\n}, _ref38 => {\n let {\n theme\n } = _ref38;\n return theme.colors.text;\n}, _ref39 => {\n let {\n theme\n } = _ref39;\n return theme.colors.text;\n}, _ref40 => {\n let {\n theme\n } = _ref40;\n return darken(0.1, theme.colors.accents.muted);\n});\nconst variants = {\n [BUTTON_VARIANTS.PRIMARY]: primaryVariant,\n [BUTTON_VARIANTS.SECONDARY]: secondaryVariant,\n [BUTTON_VARIANTS.PREMIUM]: premiumVariant,\n [BUTTON_VARIANTS.OUTLINE]: outlineVariant,\n [BUTTON_VARIANTS.LINK]: linkVariant,\n [BUTTON_VARIANTS.PLAIN]: plainVariant,\n [BUTTON_VARIANTS.SUBDUED]: subduedVariant\n};\nconst smallSize = css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral([\"\\n font-size: \", \";\\n padding: 4px 9px;\\n\"])), _ref41 => {\n let {\n theme\n } = _ref41;\n return theme.fontSizes.small;\n});\nconst mediumSize = css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral([\"\\n font-size: \", \";\\n padding: \", \";\\n\"])), _ref42 => {\n let {\n theme\n } = _ref42;\n return theme.fontSizes.standard;\n}, _ref43 => {\n let {\n theme\n } = _ref43;\n return \"\".concat(theme.spacing.halfSpacing, \" \").concat(theme.spacing.baseSpacing);\n});\nconst largeSize = css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral([\"\\n font-size: \", \";\\n padding: \", \";\\n\"])), _ref44 => {\n let {\n theme\n } = _ref44;\n return theme.fontSizes.large;\n}, _ref45 => {\n let {\n theme\n } = _ref45;\n return \"9px \".concat(theme.spacing.baseSpacing);\n});\nconst sizes = {\n [BUTTON_SIZES.SMALL]: smallSize,\n [BUTTON_SIZES.MEDIUM]: mediumSize,\n [BUTTON_SIZES.LARGE]: largeSize\n};\n\nexport { baseStyles, menuItemStyles, sizes, variants };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport { oneOfType, arrayOf, node, func, oneOf, bool } from 'prop-types';\nimport styled from 'styled-components';\nimport 'react';\nimport { stretchClickableStyles } from '../../utils/styleHelpers.js';\nimport { BUTTON_VARIANTS, BUTTON_SIZES } from './constants.js';\nexport { BUTTON_SIZES, BUTTON_VARIANTS } from './constants.js';\nimport { baseStyles, menuItemStyles, sizes, variants } from './styles.js';\n\nvar _templateObject;\nconst Button = /*#__PURE__*/styled.button.withConfig({\n displayName: \"button__Button\",\n componentId: \"sc-1r1hgy4-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n \", \";\\n \", \";\\n \", \";\\n \", \";\\n \", \";\\n \", \";\\n\"])), baseStyles, _ref => {\n let {\n fullWidth\n } = _ref;\n return fullWidth && \"width: 100%;\";\n}, _ref2 => {\n let {\n $stretch\n } = _ref2;\n return $stretch && stretchClickableStyles;\n}, _ref3 => {\n let {\n isMenuItem\n } = _ref3;\n return isMenuItem && menuItemStyles;\n}, _ref4 => {\n let {\n size\n } = _ref4;\n return size && sizes[size];\n}, _ref5 => {\n let {\n variant\n } = _ref5;\n return variant && variants[variant];\n});\nconst ButtonProps = {\n children: oneOfType([arrayOf(node), node]).isRequired,\n onClick: func,\n variant: oneOf(Object.values(BUTTON_VARIANTS)),\n size: oneOf(Object.values(BUTTON_SIZES)),\n isMenuItem: bool\n};\nButton.propTypes = ButtonProps;\nButton.defaultProps = {\n variant: BUTTON_VARIANTS.SECONDARY,\n size: BUTTON_SIZES.MEDIUM\n};\n\nexport { Button };\n","const HEADING_LEVELS = {\n H1: 'h1',\n H2: 'h2',\n H3: 'h3',\n H4: 'h4',\n H5: 'h5',\n H6: 'h6',\n LABEL: 'label'\n};\nconst HEADING_VARIANTS = {\n ALPHA: 'alpha',\n BETA: 'beta',\n GAMMA: 'gamma',\n DELTA: 'delta',\n EPSILON: 'epsilon',\n ZETA: 'zeta'\n};\n\nexport { HEADING_LEVELS, HEADING_VARIANTS };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport { oneOf, oneOfType, arrayOf, node } from 'prop-types';\nimport styled, { css } from 'styled-components';\nimport theme from 'styled-theming';\nimport { HEADING_VARIANTS, HEADING_LEVELS } from './constants.js';\nexport { HEADING_LEVELS, HEADING_VARIANTS } from './constants.js';\n\nvar _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;\nconst Heading = /*#__PURE__*/styled.h1.withConfig({\n displayName: \"heading__Heading\",\n componentId: \"sc-5w1f6q-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n // For consistency since all headings have a default display block but label doesn't\\n display: block;\\n margin: 0;\\n margin-block-end: \", \";\\n font-family: \", \";\\n line-height: \", \";\\n font-weight: bold;\\n\\n [dir='rtl'] & {\\n font-family: \", \";\\n line-height: \", \";\\n text-transform: none;\\n }\\n\\n color: \", \";\\n\\n \", \"\\n\\n \", \"\\n\"])), _ref => {\n let {\n theme\n } = _ref;\n return theme.spacing.threeQuarterSpacing;\n}, _ref2 => {\n let {\n theme\n } = _ref2;\n return theme.fonts.heading;\n}, _ref3 => {\n let {\n theme\n } = _ref3;\n return theme.lineHeights.heading;\n}, _ref4 => {\n let {\n theme\n } = _ref4;\n return theme.rtlFonts.heading;\n}, _ref5 => {\n let {\n theme\n } = _ref5;\n return theme.rtlLineHeights.heading;\n}, _ref6 => {\n let {\n theme: {\n colors\n }\n } = _ref6;\n return theme('mode', {\n light: colors.primary.dark,\n dark: colors.primary.main\n });\n}, _ref7 => {\n let {\n theme: {\n colors\n }\n } = _ref7;\n return theme('name', {\n pureGym: \"text-transform: uppercase;\",\n fitnessWorld: \"color: \".concat(colors.text, \";\")\n });\n}, _ref8 => {\n let {\n theme: {\n mediaQueries\n },\n variant\n } = _ref8;\n switch (variant) {\n case HEADING_VARIANTS.ALPHA:\n {\n return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n font-size: 2.8rem;\\n\\n \", \" {\\n font-size: 3.8rem;\\n }\\n \"])), mediaQueries.md);\n }\n case HEADING_VARIANTS.BETA:\n {\n return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([\"\\n font-size: 2.4rem;\\n\\n \", \" {\\n font-size: 2.8rem;\\n }\\n \"])), mediaQueries.md);\n }\n case HEADING_VARIANTS.GAMMA:\n {\n return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([\"\\n font-size: 2.1rem;\\n\\n \", \" {\\n font-size: 2.4rem;\\n }\\n \"])), mediaQueries.md);\n }\n case HEADING_VARIANTS.DELTA:\n {\n return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral([\"\\n font-size: 1.6rem;\\n\\n \", \" {\\n font-size: 2.1rem;\\n }\\n \"])), mediaQueries.md);\n }\n case HEADING_VARIANTS.EPSILON:\n {\n return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral([\"\\n font-size: 1.6rem;\\n font-style: normal;\\n text-transform: none;\\n \"])));\n }\n case HEADING_VARIANTS.ZETA:\n {\n return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([\"\\n font-size: 1.4rem;\\n font-style: normal;\\n text-transform: none;\\n \"])));\n }\n // no default\n }\n});\n\nHeading.propTypes = {\n as: oneOf(Object.values(HEADING_LEVELS)),\n variant: oneOf(Object.values(HEADING_VARIANTS)),\n children: oneOfType([arrayOf(node), node]).isRequired\n};\nHeading.defaultProps = {\n variant: HEADING_VARIANTS.ALPHA\n};\n\nexport { Heading };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../../_virtual/_rollupPluginBabelHelpers.js';\nimport styled from 'styled-components';\nimport { jsxs, jsx } from 'react/jsx-runtime';\n\nvar _templateObject;\nconst SvgComponent = _ref => {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/jsxs(\"svg\", {\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: 0,\n viewBox: \"0 0 320 512\",\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"1em\",\n height: \"1em\",\n \"aria-labelledby\": titleId,\n ...props,\n children: [title ? /*#__PURE__*/jsx(\"title\", {\n id: titleId,\n children: title\n }) : null, /*#__PURE__*/jsx(\"path\", {\n d: \"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z\",\n stroke: \"none\"\n })]\n });\n};\nconst IconArrowRight = /*#__PURE__*/styled(SvgComponent).withConfig({\n displayName: \"ArrowRight__IconArrowRight\",\n componentId: \"sc-7r82a-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n display: inline-flex;\\n vertical-align: middle;\\n\"])));\n\nexport { IconArrowRight };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../../_virtual/_rollupPluginBabelHelpers.js';\nimport styled from 'styled-components';\nimport { jsxs, jsx } from 'react/jsx-runtime';\n\nvar _templateObject;\nconst SvgComponent = _ref => {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/jsxs(\"svg\", {\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: 0,\n viewBox: \"0 0 124 124\",\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"1em\",\n height: \"1em\",\n \"aria-labelledby\": titleId,\n ...props,\n children: [title ? /*#__PURE__*/jsx(\"title\", {\n id: titleId,\n children: title\n }) : null, /*#__PURE__*/jsx(\"path\", {\n d: \"M62 74.63l34.735 34.77c3.563 3.467 9.105 3.467 12.568 0 3.464-3.467 3.464-9.114 0-12.58L74.568 62.05l34.834-34.87c3.464-3.565 3.464-9.113 0-12.58-3.463-3.467-9.104-3.467-12.568 0L62 49.47 27.166 14.6c-3.464-3.467-9.105-3.467-12.568 0-3.464 3.467-3.464 9.114 0 12.58l34.834 34.87-34.735 34.77c-3.464 3.466-3.464 9.113 0 12.58 3.463 3.467 9.104 3.467 12.568 0L62 74.63z\",\n stroke: \"none\"\n })]\n });\n};\nconst IconClose = /*#__PURE__*/styled(SvgComponent).withConfig({\n displayName: \"Close__IconClose\",\n componentId: \"sc-ytwg6w-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n display: inline-flex;\\n vertical-align: middle;\\n\"])));\n\nexport { IconClose };\n","const LIST_TYPES = {\n DEFAULT: 'ul',\n ORDERED: 'ol'\n};\nconst LIST_VARIANTS = {\n CHECK: 'check',\n PLAIN: 'plain',\n SIMPLE: 'simple',\n STANDARD: 'standard'\n};\n\nexport { LIST_TYPES, LIST_VARIANTS };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport { oneOf, oneOfType, arrayOf, node } from 'prop-types';\nimport styled, { css } from 'styled-components';\nimport checkSvg from '../../static/icons/check.svg.js';\nimport { LIST_VARIANTS, LIST_TYPES } from './constants.js';\nexport { LIST_TYPES, LIST_VARIANTS } from './constants.js';\n\nvar _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;\nconst List = /*#__PURE__*/styled.ul.withConfig({\n displayName: \"list__List\",\n componentId: \"sc-ysyucw-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n width: 100%;\\n margin: 0;\\n padding-inline-start: 1.5em;\\n\\n \", \"\\n\"])), _ref => {\n let {\n theme,\n variant\n } = _ref;\n switch (variant) {\n case LIST_VARIANTS.CHECK:\n {\n return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n list-style: none;\\n\\n > li {\\n position: relative;\\n\\n ::before {\\n content: '';\\n position: absolute;\\n top: 0.33em;\\n left: -1.5em;\\n display: inline-block;\\n height: 1em;\\n width: 1em;\\n background-image: url(\", \");\\n background-size: contain;\\n background-repeat: no-repeat;\\n\\n [dir='rtl'] & {\\n left: auto;\\n right: -1.5em;\\n }\\n }\\n }\\n \"])), checkSvg);\n }\n case LIST_VARIANTS.PLAIN:\n {\n return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([\"\\n list-style: none;\\n margin: 0;\\n padding: 0;\\n \"])));\n }\n case LIST_VARIANTS.SIMPLE:\n {\n return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([\"\\n list-style: none;\\n margin: 0;\\n padding: 0;\\n & > li {\\n display: flex;\\n justify-content: space-between;\\n border-bottom: 1px solid \", \";\\n\\n &:last-child {\\n border-bottom: none;\\n }\\n\\n & > a {\\n display: flex;\\n align-items: center;\\n justify-content: space-between;\\n width: 100%;\\n padding: \", \"\\n \", \";\\n text-decoration: none;\\n\\n &:hover,\\n &:active,\\n &:focus {\\n background-color: \", \";\\n }\\n }\\n }\\n \"])), theme.colors.accents.muted, theme.spacing.quarterSpacing, theme.spacing.halfSpacing, theme.colors.opacities.invertedSubtle);\n }\n // no default\n }\n});\n\nconst ListItem = /*#__PURE__*/styled.li.withConfig({\n displayName: \"list__ListItem\",\n componentId: \"sc-ysyucw-1\"\n})(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral([\"\\n padding: 0;\\n\"])));\nList.propTypes = {\n as: oneOf(Object.values(LIST_TYPES)),\n children: oneOfType([arrayOf(node), node]).isRequired,\n variant: oneOf(Object.values(LIST_VARIANTS))\n};\nList.defaultProps = {\n as: LIST_TYPES.DEFAULT,\n variant: LIST_VARIANTS.STANDARD\n};\n\nexport { List, ListItem };\n","var checkSvg = \"data:image/svg+xml,%3Csvg%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-width%3D%220%22%20viewBox%3D%220%200%20127%2096%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3ECheck%3C%2Ftitle%3E%3Cpath%20d%3D%22M19.458%2039.177L44.914%2064.633L107.139%202.40802C112.557%20-3.00998%20118.453%202.40802%20118.453%202.40802L124.11%208.065C124.11%208.065%20129.581%2013.908%20124.11%2019.379L50.574%2092.917C46.749%2096.742%2042.259%2095.788%2039.26%2092.917C36.261%2090.046%208.08798%2061.745%202.48998%2056.147C-3.10802%2050.549%202.48998%2044.833%202.48998%2044.833L8.14699%2039.176C8.14699%2039.176%2013.902%2033.62%2019.458%2039.177Z%22%2F%3E%3C%2Fsvg%3E\";\n\nexport { checkSvg as default };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport { forwardRef } from 'react';\nimport styled, { useTheme } from 'styled-components';\nimport ReactModal from 'react-modal';\nimport 'react-error-boundary';\nimport '../../theme/globalStyles.js';\nimport { jsx, jsxs } from 'react/jsx-runtime';\nimport '../../theme/base/index.js';\nimport '../../theme/baseFit/index.js';\nimport '../../theme/pureGym/index.js';\nimport '../../theme/fitnessWorld/index.js';\nimport { Button } from '../button/index.js';\nimport { Heading } from '../heading/index.js';\nimport { IconClose } from '../icons/generated/Close.js';\nimport { BUTTON_VARIANTS } from '../button/constants.js';\n\nvar _templateObject, _templateObject2, _templateObject3;\nconst ModalContent = /*#__PURE__*/styled.section.withConfig({\n displayName: \"modal__ModalContent\",\n componentId: \"sc-sr33ty-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n height: 100%;\\n display: flex;\\n flex-direction: column;\\n\"])));\nconst ModalHeader = /*#__PURE__*/styled.div.withConfig({\n displayName: \"modal__ModalHeader\",\n componentId: \"sc-sr33ty-1\"\n})(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n display: flex;\\n justify-content: space-between;\\n align-items: center;\\n gap: \", \";\\n margin-bottom: \", \";\\n\\n \", \" {\\n margin-block-end: 0;\\n }\\n\"])), _ref => {\n let {\n theme\n } = _ref;\n return theme.spacing.threeQuarterSpacing;\n}, _ref2 => {\n let {\n theme\n } = _ref2;\n return theme.spacing.threeQuarterSpacing;\n}, Heading);\nconst ModalBody = /*#__PURE__*/styled.div.withConfig({\n displayName: \"modal__ModalBody\",\n componentId: \"sc-sr33ty-2\"\n})(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([\"\\n flex-grow: 1;\\n overflow: auto;\\n\"])));\n\n/**\n *\n * To enable the Modal to correctly hide the rest of the page content (using\n * `aria-hidden`), you must call `updateAppElement` with a query selector\n * identifying the root of your app.\n *\n * @example for a Gatsby site:\n * updateAppElement('#___gatsby');\n *\n * @see https://reactcommunity.org/react-modal/accessibility/\n */\nconst Modal = /*#__PURE__*/forwardRef(function Modal(_ref3, ref) {\n let {\n children,\n closeText,\n headingText,\n isOpen,\n modalWide,\n onAfterClose,\n onAfterOpen,\n onClose,\n showCloseButton = true,\n ...rest\n } = _ref3;\n const {\n colors,\n page,\n radii,\n spacing\n } = useTheme();\n return /*#__PURE__*/jsx(ReactModal, {\n ref: ref,\n isOpen: isOpen,\n onAfterOpen: onAfterOpen,\n onAfterClose: onAfterClose,\n onRequestClose: onClose,\n defaultStyles: {\n overlay: {\n position: 'fixed',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n display: 'flex',\n justifyContent: 'center',\n zIndex: '1000',\n backgroundColor: colors.opacities.invertedStrong,\n padding: spacing.doubleSpacing\n },\n content: {\n position: 'relative',\n maxHeight: '100%',\n margin: 'auto',\n overflow: 'auto',\n WebkitOverflowScrolling: 'touch',\n padding: spacing.doubleSpacing,\n border: \"1px solid \".concat(colors.accents.muted),\n borderRadius: radii.default,\n background: colors.background,\n maxWidth: modalWide ? page.maxWidth : '690px'\n }\n },\n ...rest,\n children: /*#__PURE__*/jsxs(ModalContent, {\n children: [/*#__PURE__*/jsxs(ModalHeader, {\n children: [/*#__PURE__*/jsx(Heading, {\n as: \"h1\",\n variant: \"beta\",\n children: headingText\n }), showCloseButton && /*#__PURE__*/jsx(Button, {\n variant: BUTTON_VARIANTS.PLAIN,\n \"aria-label\": closeText,\n onClick: onClose,\n children: /*#__PURE__*/jsx(IconClose, {\n title: closeText\n })\n })]\n }), /*#__PURE__*/jsx(ModalBody, {\n children: children\n })]\n })\n });\n});\nconst updateAppElement = element => ReactModal.setAppElement(element);\nModal.defaultProps = {\n modalWide: false\n};\n\nexport { Modal, updateAppElement };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport styled, { css } from 'styled-components';\n\nvar _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;\nconst visuallyHiddenStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n position: absolute !important;\\n height: 1px;\\n width: 1px;\\n overflow: hidden;\\n clip: rect(1px, 1px, 1px, 1px);\\n white-space: nowrap;\\n\"])));\nconst VisuallyHidden = /*#__PURE__*/styled.div.withConfig({\n displayName: \"styleHelpers__VisuallyHidden\",\n componentId: \"sc-1bywdqp-0\"\n})(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n \", \"\\n\"])), visuallyHiddenStyles);\nconst stretchClickableStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([\"\\n cursor: pointer;\\n\\n &::after {\\n content: '';\\n position: absolute;\\n z-index: 1;\\n top: 0;\\n right: 0;\\n bottom: 0;\\n left: 0;\\n background-color: rgba(0, 0, 0, 0);\\n }\\n\"])));\nconst Grow = /*#__PURE__*/styled.div.withConfig({\n displayName: \"styleHelpers__Grow\",\n componentId: \"sc-1bywdqp-1\"\n})(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([\"\\n flex-grow: 1;\\n\"])));\nconst maxWidthLayoutStyles = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral([\"\\n width: 100%;\\n max-width: \", \";\\n margin-left: auto;\\n margin-right: auto;\\n\"])), _ref => {\n let {\n theme\n } = _ref;\n return theme.page.maxWidth;\n});\nconst MaxWidth = /*#__PURE__*/styled.div.withConfig({\n displayName: \"styleHelpers__MaxWidth\",\n componentId: \"sc-1bywdqp-2\"\n})(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral([\"\\n \", \"\\n\"])), maxWidthLayoutStyles);\nconst SpaceBetweenLayout = /*#__PURE__*/styled.div.withConfig({\n displayName: \"styleHelpers__SpaceBetweenLayout\",\n componentId: \"sc-1bywdqp-3\"\n})(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([\"\\n width: 100%;\\n display: flex;\\n justify-content: space-between;\\n align-items: center;\\n gap: \", \";\\n\"])), _ref2 => {\n let {\n theme\n } = _ref2;\n return theme.spacing.halfSpacing;\n});\n\nexport { Grow, MaxWidth, SpaceBetweenLayout, VisuallyHidden, maxWidthLayoutStyles, stretchClickableStyles, visuallyHiddenStyles };\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)=0&&(r[c]=parseInt(m,10))}var d=r[3],l=24===d?0:d,h=r[0]+\"-\"+r[1]+\"-\"+r[2]+\" \"+l+\":\"+r[4]+\":\"+r[5]+\":000\",v=+e;return(o.utc(h).valueOf()-(v-=v%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n,i=this.utcOffset(),a=this.toDate(),u=a.toLocaleString(\"en-US\",{timeZone:t}),f=Math.round((a-new Date(u))/1e3/60),s=15*-Math.round(a.getTimezoneOffset()/15)-f;if(!Number(s))n=this.utcOffset(0,e);else if(n=o(u,{locale:this.$L}).$set(\"millisecond\",this.$ms).utcOffset(s,!0),e){var m=n.utcOffset();n=n.add(i-m,\"minute\")}return n.$x.$timezone=t,n},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return\"timezonename\"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format(\"YYYY-MM-DD HH:mm:ss:SSS\"),{locale:this.$L});return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if(\"string\"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return[i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t}}}));","!function(t,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs_plugin_utc=i()}(this,(function(){\"use strict\";var t=\"minute\",i=/[+-]\\d\\d(?::?\\d\\d)?/g,e=/([+-]|\\d\\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t)};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else r.call(this)};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if(\"string\"==typeof s&&(s=function(t){void 0===t&&(t=\"\");var s=t.match(i);if(!s)return null;var f=(\"\"+s[0]).match(e)||[\"-\",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:\"+\"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?\"YYYY-MM-DDTHH:mm:ss[Z]\":\"\");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return\"s\"===t&&this.$offset?n(this.format(\"YYYY-MM-DD HH:mm:ss:SSS\")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)}}}));","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","/*!\n Copyright (c) 2015 Jed Watson.\n Based on code that is Copyright 2013-2015, Facebook, Inc.\n All rights reserved.\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar canUseDOM = !!(\n\t\ttypeof window !== 'undefined' &&\n\t\twindow.document &&\n\t\twindow.document.createElement\n\t);\n\n\tvar ExecutionEnvironment = {\n\n\t\tcanUseDOM: canUseDOM,\n\n\t\tcanUseWorkers: typeof Worker !== 'undefined',\n\n\t\tcanUseEventListeners:\n\t\t\tcanUseDOM && !!(window.addEventListener || window.attachEvent),\n\n\t\tcanUseViewport: canUseDOM && !!window.screen\n\n\t};\n\n\tif (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\tdefine(function () {\n\t\t\treturn ExecutionEnvironment;\n\t\t});\n\t} else if (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = ExecutionEnvironment;\n\t} else {\n\t\twindow.ExecutionEnvironment = ExecutionEnvironment;\n\t}\n\n}());\n","\"use strict\";\n\nexports.__esModule = true;\nexports.applyTrailingSlashOption = void 0;\nconst endsWithSuffixes = (suffixes, input) => {\n for (const suffix of suffixes) {\n if (input.endsWith(suffix)) return true;\n }\n return false;\n};\nconst suffixes = [`.html`, `.json`, `.js`, `.map`, `.txt`, `.xml`, `.pdf`];\nconst applyTrailingSlashOption = (input, option = `always`) => {\n if (input === `/`) return input;\n const hasTrailingSlash = input.endsWith(`/`);\n if (endsWithSuffixes(suffixes, input)) {\n return input;\n }\n if (option === `always`) {\n return hasTrailingSlash ? input : `${input}/`;\n }\n if (option === `never`) {\n return hasTrailingSlash ? input.slice(0, -1) : input;\n }\n return input;\n};\nexports.applyTrailingSlashOption = applyTrailingSlashOption;","\"use strict\";\n\nexports.__esModule = true;\nexports.useScrollRestoration = exports.ScrollContext = void 0;\nvar _scrollHandler = require(\"./scroll-handler\");\nexports.ScrollContext = _scrollHandler.ScrollHandler;\nvar _useScrollRestoration = require(\"./use-scroll-restoration\");\nexports.useScrollRestoration = _useScrollRestoration.useScrollRestoration;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nexports.__esModule = true;\nexports.ScrollHandler = exports.ScrollContext = void 0;\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\nvar _sessionStorage = require(\"./session-storage\");\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nvar ScrollContext = /*#__PURE__*/React.createContext(new _sessionStorage.SessionStorage());\nexports.ScrollContext = ScrollContext;\nScrollContext.displayName = \"GatsbyScrollContext\";\nvar ScrollHandler = /*#__PURE__*/function (_React$Component) {\n (0, _inheritsLoose2.default)(ScrollHandler, _React$Component);\n function ScrollHandler() {\n var _this;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this._stateStorage = new _sessionStorage.SessionStorage();\n _this._isTicking = false;\n _this._latestKnownScrollY = 0;\n _this.scrollListener = function () {\n _this._latestKnownScrollY = window.scrollY;\n if (!_this._isTicking) {\n _this._isTicking = true;\n requestAnimationFrame(_this._saveScroll.bind((0, _assertThisInitialized2.default)(_this)));\n }\n };\n _this.windowScroll = function (position, prevProps) {\n if (_this.shouldUpdateScroll(prevProps, _this.props)) {\n window.scrollTo(0, position);\n }\n };\n _this.scrollToHash = function (hash, prevProps) {\n var node = document.getElementById(hash.substring(1));\n if (node && _this.shouldUpdateScroll(prevProps, _this.props)) {\n node.scrollIntoView();\n }\n };\n _this.shouldUpdateScroll = function (prevRouterProps, routerProps) {\n var shouldUpdateScroll = _this.props.shouldUpdateScroll;\n if (!shouldUpdateScroll) {\n return true;\n }\n\n // Hack to allow accessing this._stateStorage.\n return shouldUpdateScroll.call((0, _assertThisInitialized2.default)(_this), prevRouterProps, routerProps);\n };\n return _this;\n }\n var _proto = ScrollHandler.prototype;\n _proto._saveScroll = function _saveScroll() {\n var key = this.props.location.key || null;\n if (key) {\n this._stateStorage.save(this.props.location, key, this._latestKnownScrollY);\n }\n this._isTicking = false;\n };\n _proto.componentDidMount = function componentDidMount() {\n window.addEventListener(\"scroll\", this.scrollListener);\n var scrollPosition;\n var _this$props$location = this.props.location,\n key = _this$props$location.key,\n hash = _this$props$location.hash;\n if (key) {\n scrollPosition = this._stateStorage.read(this.props.location, key);\n }\n\n /** If a hash is present in the browser url as the component mounts (i.e. the user is navigating\n * from an external website) then scroll to the hash instead of any previously stored scroll\n * position. */\n if (hash) {\n this.scrollToHash(decodeURI(hash), undefined);\n } else if (scrollPosition) {\n this.windowScroll(scrollPosition, undefined);\n }\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n window.removeEventListener(\"scroll\", this.scrollListener);\n };\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this$props$location2 = this.props.location,\n hash = _this$props$location2.hash,\n key = _this$props$location2.key;\n var scrollPosition;\n if (key) {\n scrollPosition = this._stateStorage.read(this.props.location, key);\n }\n\n /** There are two pieces of state: the browser url and\n * history state which keeps track of scroll position\n * Native behaviour prescribes that we ought to restore scroll position\n * when a user navigates back in their browser (this is the `POP` action)\n * Currently, reach router has a bug that prevents this at https://github.com/reach/router/issues/228\n * So we _always_ stick to the url as a source of truth — if the url\n * contains a hash, we scroll to it\n */\n\n if (hash) {\n this.scrollToHash(decodeURI(hash), prevProps);\n } else {\n this.windowScroll(scrollPosition, prevProps);\n }\n };\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(ScrollContext.Provider, {\n value: this._stateStorage\n }, this.props.children);\n };\n return ScrollHandler;\n}(React.Component);\nexports.ScrollHandler = ScrollHandler;\nScrollHandler.propTypes = {\n shouldUpdateScroll: _propTypes.default.func,\n children: _propTypes.default.element.isRequired,\n location: _propTypes.default.object.isRequired\n};","\"use strict\";\n\nexports.__esModule = true;\nexports.SessionStorage = void 0;\nvar STATE_KEY_PREFIX = \"@@scroll|\";\nvar GATSBY_ROUTER_SCROLL_STATE = \"___GATSBY_REACT_ROUTER_SCROLL\";\nvar SessionStorage = /*#__PURE__*/function () {\n function SessionStorage() {}\n var _proto = SessionStorage.prototype;\n _proto.read = function read(location, key) {\n var stateKey = this.getStateKey(location, key);\n try {\n var value = window.sessionStorage.getItem(stateKey);\n return value ? JSON.parse(value) : 0;\n } catch (e) {\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(\"[gatsby-react-router-scroll] Unable to access sessionStorage; sessionStorage is not available.\");\n }\n if (window && window[GATSBY_ROUTER_SCROLL_STATE] && window[GATSBY_ROUTER_SCROLL_STATE][stateKey]) {\n return window[GATSBY_ROUTER_SCROLL_STATE][stateKey];\n }\n return 0;\n }\n };\n _proto.save = function save(location, key, value) {\n var stateKey = this.getStateKey(location, key);\n var storedValue = JSON.stringify(value);\n try {\n window.sessionStorage.setItem(stateKey, storedValue);\n } catch (e) {\n if (window && window[GATSBY_ROUTER_SCROLL_STATE]) {\n window[GATSBY_ROUTER_SCROLL_STATE][stateKey] = JSON.parse(storedValue);\n } else {\n window[GATSBY_ROUTER_SCROLL_STATE] = {};\n window[GATSBY_ROUTER_SCROLL_STATE][stateKey] = JSON.parse(storedValue);\n }\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(\"[gatsby-react-router-scroll] Unable to save state in sessionStorage; sessionStorage is not available.\");\n }\n }\n };\n _proto.getStateKey = function getStateKey(location, key) {\n var stateKeyBase = \"\" + STATE_KEY_PREFIX + location.pathname;\n return key === null || typeof key === \"undefined\" ? stateKeyBase : stateKeyBase + \"|\" + key;\n };\n return SessionStorage;\n}();\nexports.SessionStorage = SessionStorage;","\"use strict\";\n\nexports.__esModule = true;\nexports.useScrollRestoration = useScrollRestoration;\nvar _scrollHandler = require(\"./scroll-handler\");\nvar _react = require(\"react\");\nvar _reachRouter = require(\"@gatsbyjs/reach-router\");\nfunction useScrollRestoration(identifier) {\n var location = (0, _reachRouter.useLocation)();\n var state = (0, _react.useContext)(_scrollHandler.ScrollContext);\n var ref = (0, _react.useRef)(null);\n (0, _react.useLayoutEffect)(function () {\n if (ref.current) {\n var position = state.read(location, identifier);\n ref.current.scrollTo(0, position || 0);\n }\n }, [location.key]);\n return {\n ref: ref,\n onScroll: function onScroll() {\n if (ref.current) {\n state.save(location, identifier, ref.current.scrollTop);\n }\n }\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.onInitialClientRender = void 0;\nvar _gatsbyScript = require(\"gatsby-script\");\nvar _injectPartytownSnippet = require(\"./utils/inject-partytown-snippet\");\n// Makes sure off-main-thread scripts are loaded in `gatsby develop`\nconst onInitialClientRender = () => {\n if (process.env.NODE_ENV !== `development`) {\n return;\n }\n (0, _injectPartytownSnippet.injectPartytownSnippet)(_gatsbyScript.collectedScriptsByPage.get(window.location.pathname));\n\n // Clear scripts after we've used them to avoid leaky behavior\n _gatsbyScript.collectedScriptsByPage.delete(window.location.pathname);\n};\n\n// Client-side navigation (CSR, e.g. Gatsby Link navigations) are broken upstream in Partytown.\n// We need an official API from Partytown for handling re-configuration and on-demand script loading.\n// Until then, `off-main-thread` scripts load only on server-side navigation (SSR).\n// See https://github.com/BuilderIO/partytown/issues/74 for more details.\nexports.onInitialClientRender = onInitialClientRender;\n//# sourceMappingURL=gatsby-browser.js.map","\"use strict\";\n\nexports.__esModule = true;\nexports.getForwards = getForwards;\nfunction getForwards(collectedScripts) {\n return collectedScripts === null || collectedScripts === void 0 ? void 0 : collectedScripts.flatMap(script => (script === null || script === void 0 ? void 0 : script.forward) || []);\n}\n//# sourceMappingURL=get-forwards.js.map","\"use strict\";\n\nexports.__esModule = true;\nexports.injectPartytownSnippet = injectPartytownSnippet;\nvar _integration = require(\"@builder.io/partytown/integration\");\nvar _getForwards = require(\"./get-forwards\");\n// Adapted from https://github.com/BuilderIO/partytown/blob/main/src/react/snippet.tsx to only include CSR logic\nfunction injectPartytownSnippet(collectedScripts) {\n if (!collectedScripts.length) {\n return;\n }\n const existingSnippet = document.querySelector(`script[data-partytown]`);\n const existingSandbox = document.querySelector(`iframe[src*=\"~partytown/partytown-sandbox-sw\"]`);\n if (existingSnippet) {\n existingSnippet.remove();\n }\n if (existingSandbox) {\n existingSandbox.remove();\n }\n const forwards = (0, _getForwards.getForwards)(collectedScripts);\n const snippet = document.createElement(`script`);\n snippet.dataset.partytown = ``;\n snippet.innerHTML = (0, _integration.partytownSnippet)({\n forward: forwards\n });\n document.head.appendChild(snippet);\n}\n//# sourceMappingURL=inject-partytown-snippet.js.map","exports.components = {\n \"component---src-components-details-details-tsx\": () => import(\"./../../../src/components/details/details.tsx\" /* webpackChunkName: \"component---src-components-details-details-tsx\" */),\n \"component---src-components-payment-payment-tsx\": () => import(\"./../../../src/components/payment/payment.tsx\" /* webpackChunkName: \"component---src-components-payment-payment-tsx\" */),\n \"component---src-pages-404-tsx\": () => import(\"./../../../src/pages/404.tsx\" /* webpackChunkName: \"component---src-pages-404-tsx\" */),\n \"component---src-pages-index-tsx\": () => import(\"./../../../src/pages/index.tsx\" /* webpackChunkName: \"component---src-pages-index-tsx\" */),\n \"component---src-templates-boltons-tsx\": () => import(\"./../../../src/templates/boltons.tsx\" /* webpackChunkName: \"component---src-templates-boltons-tsx\" */),\n \"component---src-templates-buddy-tsx\": () => import(\"./../../../src/templates/buddy.tsx\" /* webpackChunkName: \"component---src-templates-buddy-tsx\" */),\n \"component---src-templates-buddy-unavailable-tsx\": () => import(\"./../../../src/templates/buddyUnavailable.tsx\" /* webpackChunkName: \"component---src-templates-buddy-unavailable-tsx\" */),\n \"component---src-templates-day-passes-tsx\": () => import(\"./../../../src/templates/dayPasses.tsx\" /* webpackChunkName: \"component---src-templates-day-passes-tsx\" */),\n \"component---src-templates-fixed-terms-tsx\": () => import(\"./../../../src/templates/fixedTerms.tsx\" /* webpackChunkName: \"component---src-templates-fixed-terms-tsx\" */),\n \"component---src-templates-monthly-tsx\": () => import(\"./../../../src/templates/monthly.tsx\" /* webpackChunkName: \"component---src-templates-monthly-tsx\" */),\n \"component---src-templates-payment-complete-tsx\": () => import(\"./../../../src/templates/paymentComplete.tsx\" /* webpackChunkName: \"component---src-templates-payment-complete-tsx\" */),\n \"component---src-templates-register-hq-tsx\": () => import(\"./../../../src/templates/registerHq.tsx\" /* webpackChunkName: \"component---src-templates-register-hq-tsx\" */),\n \"component---src-templates-register-tsx\": () => import(\"./../../../src/templates/register.tsx\" /* webpackChunkName: \"component---src-templates-register-tsx\" */),\n \"component---src-templates-term-selection-tsx\": () => import(\"./../../../src/templates/termSelection.tsx\" /* webpackChunkName: \"component---src-templates-term-selection-tsx\" */)\n}\n\n","module.exports = [{\n plugin: require('../node_modules/gatsby-plugin-styled-components/gatsby-browser.js'),\n options: {\"plugins\":[],\"displayName\":false,\"pure\":true,\"transpileTemplateLiterals\":false,\"disableVendorPrefixes\":true,\"fileName\":true,\"minify\":true,\"namespace\":\"\",\"topLevelImportPaths\":[]},\n },{\n plugin: require('../node_modules/gatsby-plugin-google-tagmanager/gatsby-browser.js'),\n options: {\"plugins\":[],\"id\":\"GTM-MD5LXFD\",\"includeInDevelopment\":true,\"routeChangeEventName\":\"IGNORE\",\"defaultDataLayer\":null,\"enableWebVitalsTracking\":false,\"selfHostedOrigin\":\"https://www.googletagmanager.com\",\"selfHostedPath\":\"gtm.js\"},\n },{\n plugin: require('../gatsby-browser.ts'),\n options: {\"plugins\":[]},\n },{\n plugin: require('../node_modules/gatsby/dist/internal-plugins/partytown/gatsby-browser.js'),\n options: {\"plugins\":[]},\n }]\n","const plugins = require(`./api-runner-browser-plugins`)\nconst { getResourceURLsForPathname, loadPage, loadPageSync } =\n require(`./loader`).publicLoader\n\nexports.apiRunner = (api, args = {}, defaultReturn, argTransform) => {\n // Hooks for gatsby-cypress's API handler\n if (process.env.CYPRESS_SUPPORT) {\n if (window.___apiHandler) {\n window.___apiHandler(api)\n } else if (window.___resolvedAPIs) {\n window.___resolvedAPIs.push(api)\n } else {\n window.___resolvedAPIs = [api]\n }\n }\n\n let results = plugins.map(plugin => {\n if (!plugin.plugin[api]) {\n return undefined\n }\n\n args.getResourceURLsForPathname = getResourceURLsForPathname\n args.loadPage = loadPage\n args.loadPageSync = loadPageSync\n\n const result = plugin.plugin[api](args, plugin.options)\n if (result && argTransform) {\n args = argTransform({ args, result, plugin })\n }\n return result\n })\n\n // Filter out undefined results.\n results = results.filter(result => typeof result !== `undefined`)\n\n if (results.length > 0) {\n return results\n } else if (defaultReturn) {\n return [defaultReturn]\n } else {\n return []\n }\n}\n\nexports.apiRunnerAsync = (api, args, defaultReturn) =>\n plugins.reduce(\n (previous, next) =>\n next.plugin[api]\n ? previous.then(() => next.plugin[api](args, next.options))\n : previous,\n Promise.resolve()\n )\n","import mitt from \"mitt\"\n\nconst emitter = mitt()\nexport default emitter\n","// \n// An event handler can take an optional event argument\n// and should not return a value\n \n \n\n// An array of all currently registered event handlers for a type\n \n \n// A map of event types and their corresponding event handlers.\n \n \n \n \n\n/** Mitt: Tiny (~200b) functional event emitter / pubsub.\n * @name mitt\n * @returns {Mitt}\n */\nfunction mitt(all ) {\n\tall = all || Object.create(null);\n\n\treturn {\n\t\t/**\n\t\t * Register an event handler for the given type.\n\t\t *\n\t\t * @param {String} type\tType of event to listen for, or `\"*\"` for all events\n\t\t * @param {Function} handler Function to call in response to given event\n\t\t * @memberOf mitt\n\t\t */\n\t\ton: function on(type , handler ) {\n\t\t\t(all[type] || (all[type] = [])).push(handler);\n\t\t},\n\n\t\t/**\n\t\t * Remove an event handler for the given type.\n\t\t *\n\t\t * @param {String} type\tType of event to unregister `handler` from, or `\"*\"`\n\t\t * @param {Function} handler Handler function to remove\n\t\t * @memberOf mitt\n\t\t */\n\t\toff: function off(type , handler ) {\n\t\t\tif (all[type]) {\n\t\t\t\tall[type].splice(all[type].indexOf(handler) >>> 0, 1);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Invoke all handlers for the given type.\n\t\t * If present, `\"*\"` handlers are invoked after type-matched handlers.\n\t\t *\n\t\t * @param {String} type The event type to invoke\n\t\t * @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler\n\t\t * @memberOf mitt\n\t\t */\n\t\temit: function emit(type , evt ) {\n\t\t\t(all[type] || []).slice().map(function (handler) { handler(evt); });\n\t\t\t(all['*'] || []).slice().map(function (handler) { handler(type, evt); });\n\t\t}\n\t};\n}\n\nexport default mitt;\n//# sourceMappingURL=mitt.es.js.map\n","export default pathAndSearch => {\n if (pathAndSearch === undefined) {\n return pathAndSearch\n }\n let [path, search = ``] = pathAndSearch.split(`?`)\n if (search) {\n search = `?` + search\n }\n\n if (path === `/`) {\n return `/` + search\n }\n if (path.charAt(path.length - 1) === `/`) {\n return path.slice(0, -1) + search\n }\n return path + search\n}\n","import { pick } from \"@gatsbyjs/reach-router\"\nimport stripPrefix from \"./strip-prefix\"\nimport normalizePagePath from \"./normalize-page-path\"\nimport { maybeGetBrowserRedirect } from \"./redirect-utils.js\"\n\nconst pathCache = new Map()\nlet matchPaths = []\n\nconst trimPathname = rawPathname => {\n let newRawPathname = rawPathname\n const queryIndex = rawPathname.indexOf(`?`)\n\n if (queryIndex !== -1) {\n const [path, qs] = rawPathname.split(`?`)\n newRawPathname = `${path}?${encodeURIComponent(qs)}`\n }\n\n const pathname = decodeURIComponent(newRawPathname)\n\n // Remove the pathPrefix from the pathname.\n const trimmedPathname = stripPrefix(\n pathname,\n decodeURIComponent(__BASE_PATH__)\n )\n // Remove any hashfragment\n .split(`#`)[0]\n\n return trimmedPathname\n}\n\nfunction absolutify(path) {\n // If it's already absolute, return as-is\n if (\n path.startsWith(`/`) ||\n path.startsWith(`https://`) ||\n path.startsWith(`http://`)\n ) {\n return path\n }\n // Calculate path relative to current location, adding a trailing slash to\n // match behavior of @reach/router\n return new URL(\n path,\n window.location.href + (window.location.href.endsWith(`/`) ? `` : `/`)\n ).pathname\n}\n\n/**\n * Set list of matchPaths\n *\n * @param {Array<{path: string, matchPath: string}>} value collection of matchPaths\n */\nexport const setMatchPaths = value => {\n matchPaths = value\n}\n\n/**\n * Return a matchpath url\n * if `match-paths.json` contains `{ \"/foo*\": \"/page1\", ...}`, then\n * `/foo?bar=far` => `/page1`\n *\n * @param {string} rawPathname A raw pathname\n * @return {string|null}\n */\nexport const findMatchPath = rawPathname => {\n const trimmedPathname = cleanPath(rawPathname)\n\n const pickPaths = matchPaths.map(({ path, matchPath }) => {\n return {\n path: matchPath,\n originalPath: path,\n }\n })\n\n const path = pick(pickPaths, trimmedPathname)\n\n if (path) {\n return normalizePagePath(path.route.originalPath)\n }\n\n return null\n}\n\n/**\n * Return a matchpath params from reach/router rules\n * if `match-paths.json` contains `{ \":bar/*foo\" }`, and the path is /baz/zaz/zoo\n * then it returns\n * { bar: baz, foo: zaz/zoo }\n *\n * @param {string} rawPathname A raw pathname\n * @return {object}\n */\nexport const grabMatchParams = rawPathname => {\n const trimmedPathname = cleanPath(rawPathname)\n\n const pickPaths = matchPaths.map(({ path, matchPath }) => {\n return {\n path: matchPath,\n originalPath: path,\n }\n })\n\n const path = pick(pickPaths, trimmedPathname)\n\n if (path) {\n return path.params\n }\n\n return {}\n}\n\n// Given a raw URL path, returns the cleaned version of it (trim off\n// `#` and query params), or if it matches an entry in\n// `match-paths.json`, its matched path is returned\n//\n// E.g. `/foo?bar=far` => `/foo`\n//\n// Or if `match-paths.json` contains `{ \"/foo*\": \"/page1\", ...}`, then\n// `/foo?bar=far` => `/page1`\nexport const findPath = rawPathname => {\n const trimmedPathname = trimPathname(absolutify(rawPathname))\n if (pathCache.has(trimmedPathname)) {\n return pathCache.get(trimmedPathname)\n }\n\n const redirect = maybeGetBrowserRedirect(rawPathname)\n if (redirect) {\n return findPath(redirect.toPath)\n }\n\n let foundPath = findMatchPath(trimmedPathname)\n\n if (!foundPath) {\n foundPath = cleanPath(rawPathname)\n }\n\n pathCache.set(trimmedPathname, foundPath)\n\n return foundPath\n}\n\n/**\n * Clean a url and converts /index.html => /\n * E.g. `/foo?bar=far` => `/foo`\n *\n * @param {string} rawPathname A raw pathname\n * @return {string}\n */\nexport const cleanPath = rawPathname => {\n const trimmedPathname = trimPathname(absolutify(rawPathname))\n\n let foundPath = trimmedPathname\n if (foundPath === `/index.html`) {\n foundPath = `/`\n }\n\n foundPath = normalizePagePath(foundPath)\n\n return foundPath\n}\n","import loader from \"./loader\"\n\nconst prefetchPathname = loader.enqueue\n\nfunction graphql() {\n throw new Error(\n `It appears like Gatsby is misconfigured. Gatsby related \\`graphql\\` calls ` +\n `are supposed to only be evaluated at compile time, and then compiled away. ` +\n `Unfortunately, something went wrong and the query was left in the compiled code.\\n\\n` +\n `Unless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.`\n )\n}\n\nexport { default as PageRenderer } from \"./public-page-renderer\"\nexport { useScrollRestoration } from \"gatsby-react-router-scroll\"\nexport {\n Link,\n withPrefix,\n withAssetPrefix,\n navigate,\n parsePath,\n} from \"gatsby-link\"\n\nexport { graphql, prefetchPathname }\nexport { StaticQuery, StaticQueryContext, useStaticQuery } from \"./static-query\"\nexport { Slice } from \"./slice\"\nexport * from \"gatsby-script\"\n","const support = function (feature) {\n if (typeof document === `undefined`) {\n return false\n }\n const fakeLink = document.createElement(`link`)\n try {\n if (fakeLink.relList && typeof fakeLink.relList.supports === `function`) {\n return fakeLink.relList.supports(feature)\n }\n } catch (err) {\n return false\n }\n return false\n}\n\nconst linkPrefetchStrategy = function (url, options) {\n return new Promise((resolve, reject) => {\n if (typeof document === `undefined`) {\n reject()\n return\n }\n\n const link = document.createElement(`link`)\n link.setAttribute(`rel`, `prefetch`)\n link.setAttribute(`href`, url)\n\n Object.keys(options).forEach(key => {\n link.setAttribute(key, options[key])\n })\n\n link.onload = resolve\n link.onerror = reject\n\n const parentElement =\n document.getElementsByTagName(`head`)[0] ||\n document.getElementsByName(`script`)[0].parentNode\n parentElement.appendChild(link)\n })\n}\n\nconst xhrPrefetchStrategy = function (url) {\n return new Promise((resolve, reject) => {\n const req = new XMLHttpRequest()\n req.open(`GET`, url, true)\n\n req.onload = () => {\n if (req.status === 200) {\n resolve()\n } else {\n reject()\n }\n }\n\n req.send(null)\n })\n}\n\nconst supportedPrefetchStrategy = support(`prefetch`)\n ? linkPrefetchStrategy\n : xhrPrefetchStrategy\n\nconst preFetched = {}\n\nconst prefetch = function (url, options) {\n return new Promise(resolve => {\n if (preFetched[url]) {\n resolve()\n return\n }\n\n supportedPrefetchStrategy(url, options)\n .then(() => {\n resolve()\n preFetched[url] = true\n })\n .catch(() => {}) // 404s are logged to the console anyway\n })\n}\n\nexport default prefetch\n","import { createFromReadableStream } from \"react-server-dom-webpack\"\nimport prefetchHelper from \"./prefetch\"\nimport emitter from \"./emitter\"\nimport { setMatchPaths, findPath, findMatchPath } from \"./find-path\"\n\n/**\n * Available resource loading statuses\n */\nexport const PageResourceStatus = {\n /**\n * At least one of critical resources failed to load\n */\n Error: `error`,\n /**\n * Resources loaded successfully\n */\n Success: `success`,\n}\n\nconst preferDefault = m => (m && m.default) || m\n\nconst stripSurroundingSlashes = s => {\n s = s[0] === `/` ? s.slice(1) : s\n s = s.endsWith(`/`) ? s.slice(0, -1) : s\n return s\n}\n\nconst createPageDataUrl = rawPath => {\n const [path, maybeSearch] = rawPath.split(`?`)\n const fixedPath = path === `/` ? `index` : stripSurroundingSlashes(path)\n return `${__PATH_PREFIX__}/page-data/${fixedPath}/page-data.json${\n maybeSearch ? `?${maybeSearch}` : ``\n }`\n}\n\n/**\n * Utility to check the path that goes into doFetch for e.g. potential malicious intentions.\n * It checks for \"//\" because with this you could do a fetch request to a different domain.\n */\nconst shouldAbortFetch = rawPath => rawPath.startsWith(`//`)\n\nfunction doFetch(url, method = `GET`) {\n return new Promise(resolve => {\n const req = new XMLHttpRequest()\n req.open(method, url, true)\n req.onreadystatechange = () => {\n if (req.readyState == 4) {\n resolve(req)\n }\n }\n req.send(null)\n })\n}\n\nconst doesConnectionSupportPrefetch = () => {\n if (\n `connection` in navigator &&\n typeof navigator.connection !== `undefined`\n ) {\n if ((navigator.connection.effectiveType || ``).includes(`2g`)) {\n return false\n }\n if (navigator.connection.saveData) {\n return false\n }\n }\n return true\n}\n\n// Regex that matches common search crawlers\nconst BOT_REGEX = /bot|crawler|spider|crawling/i\n\nconst toPageResources = (pageData, component = null, head) => {\n const page = {\n componentChunkName: pageData.componentChunkName,\n path: pageData.path,\n webpackCompilationHash: pageData.webpackCompilationHash,\n matchPath: pageData.matchPath,\n staticQueryHashes: pageData.staticQueryHashes,\n getServerDataError: pageData.getServerDataError,\n slicesMap: pageData.slicesMap ?? {},\n }\n\n return {\n component,\n head,\n json: pageData.result,\n page,\n }\n}\n\nfunction waitForResponse(response) {\n return new Promise(resolve => {\n try {\n const result = response.readRoot()\n resolve(result)\n } catch (err) {\n if (\n Object.hasOwnProperty.call(err, `_response`) &&\n Object.hasOwnProperty.call(err, `_status`)\n ) {\n setTimeout(() => {\n waitForResponse(response).then(resolve)\n }, 200)\n } else {\n throw err\n }\n }\n })\n}\n\nexport class BaseLoader {\n constructor(loadComponent, matchPaths) {\n // Map of pagePath -> Page. Where Page is an object with: {\n // status: PageResourceStatus.Success || PageResourceStatus.Error,\n // payload: PageResources, // undefined if PageResourceStatus.Error\n // }\n // PageResources is {\n // component,\n // json: pageData.result,\n // page: {\n // componentChunkName,\n // path,\n // webpackCompilationHash,\n // staticQueryHashes\n // },\n // staticQueryResults\n // }\n this.pageDb = new Map()\n this.inFlightDb = new Map()\n this.staticQueryDb = {}\n this.pageDataDb = new Map()\n this.partialHydrationDb = new Map()\n this.slicesDataDb = new Map()\n this.sliceInflightDb = new Map()\n this.slicesDb = new Map()\n this.isPrefetchQueueRunning = false\n this.prefetchQueued = []\n this.prefetchTriggered = new Set()\n this.prefetchCompleted = new Set()\n this.loadComponent = loadComponent\n setMatchPaths(matchPaths)\n }\n\n inFlightNetworkRequests = new Map()\n\n memoizedGet(url) {\n let inFlightPromise = this.inFlightNetworkRequests.get(url)\n\n if (!inFlightPromise) {\n inFlightPromise = doFetch(url, `GET`)\n this.inFlightNetworkRequests.set(url, inFlightPromise)\n }\n\n // Prefer duplication with then + catch over .finally to prevent problems in ie11 + firefox\n return inFlightPromise\n .then(response => {\n this.inFlightNetworkRequests.delete(url)\n return response\n })\n .catch(err => {\n this.inFlightNetworkRequests.delete(url)\n throw err\n })\n }\n\n setApiRunner(apiRunner) {\n this.apiRunner = apiRunner\n this.prefetchDisabled = apiRunner(`disableCorePrefetching`).some(a => a)\n }\n\n fetchPageDataJson(loadObj) {\n const { pagePath, retries = 0 } = loadObj\n const url = createPageDataUrl(pagePath)\n return this.memoizedGet(url).then(req => {\n const { status, responseText } = req\n\n // Handle 200\n if (status === 200) {\n try {\n const jsonPayload = JSON.parse(responseText)\n if (jsonPayload.path === undefined) {\n throw new Error(`not a valid pageData response`)\n }\n\n const maybeSearch = pagePath.split(`?`)[1]\n if (maybeSearch && !jsonPayload.path.includes(maybeSearch)) {\n jsonPayload.path += `?${maybeSearch}`\n }\n\n return Object.assign(loadObj, {\n status: PageResourceStatus.Success,\n payload: jsonPayload,\n })\n } catch (err) {\n // continue regardless of error\n }\n }\n\n // Handle 404\n if (status === 404 || status === 200) {\n // If the request was for a 404/500 page and it doesn't exist, we're done\n if (pagePath === `/404.html` || pagePath === `/500.html`) {\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n }\n\n // Need some code here to cache the 404 request. In case\n // multiple loadPageDataJsons result in 404s\n return this.fetchPageDataJson(\n Object.assign(loadObj, { pagePath: `/404.html`, notFound: true })\n )\n }\n\n // handle 500 response (Unrecoverable)\n if (status === 500) {\n return this.fetchPageDataJson(\n Object.assign(loadObj, {\n pagePath: `/500.html`,\n internalServerError: true,\n })\n )\n }\n\n // Handle everything else, including status === 0, and 503s. Should retry\n if (retries < 3) {\n return this.fetchPageDataJson(\n Object.assign(loadObj, { retries: retries + 1 })\n )\n }\n\n // Retried 3 times already, result is an error.\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n })\n }\n\n fetchPartialHydrationJson(loadObj) {\n const { pagePath, retries = 0 } = loadObj\n const url = createPageDataUrl(pagePath).replace(`.json`, `-rsc.json`)\n return this.memoizedGet(url).then(req => {\n const { status, responseText } = req\n\n // Handle 200\n if (status === 200) {\n try {\n return Object.assign(loadObj, {\n status: PageResourceStatus.Success,\n payload: responseText,\n })\n } catch (err) {\n // continue regardless of error\n }\n }\n\n // Handle 404\n if (status === 404 || status === 200) {\n // If the request was for a 404/500 page and it doesn't exist, we're done\n if (pagePath === `/404.html` || pagePath === `/500.html`) {\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n }\n\n // Need some code here to cache the 404 request. In case\n // multiple loadPageDataJsons result in 404s\n return this.fetchPartialHydrationJson(\n Object.assign(loadObj, { pagePath: `/404.html`, notFound: true })\n )\n }\n\n // handle 500 response (Unrecoverable)\n if (status === 500) {\n return this.fetchPartialHydrationJson(\n Object.assign(loadObj, {\n pagePath: `/500.html`,\n internalServerError: true,\n })\n )\n }\n\n // Handle everything else, including status === 0, and 503s. Should retry\n if (retries < 3) {\n return this.fetchPartialHydrationJson(\n Object.assign(loadObj, { retries: retries + 1 })\n )\n }\n\n // Retried 3 times already, result is an error.\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n })\n }\n\n loadPageDataJson(rawPath) {\n const pagePath = findPath(rawPath)\n if (this.pageDataDb.has(pagePath)) {\n const pageData = this.pageDataDb.get(pagePath)\n if (process.env.BUILD_STAGE !== `develop` || !pageData.stale) {\n return Promise.resolve(pageData)\n }\n }\n\n return this.fetchPageDataJson({ pagePath }).then(pageData => {\n this.pageDataDb.set(pagePath, pageData)\n\n return pageData\n })\n }\n\n loadPartialHydrationJson(rawPath) {\n const pagePath = findPath(rawPath)\n if (this.partialHydrationDb.has(pagePath)) {\n const pageData = this.partialHydrationDb.get(pagePath)\n if (process.env.BUILD_STAGE !== `develop` || !pageData.stale) {\n return Promise.resolve(pageData)\n }\n }\n\n return this.fetchPartialHydrationJson({ pagePath }).then(pageData => {\n this.partialHydrationDb.set(pagePath, pageData)\n\n return pageData\n })\n }\n\n loadSliceDataJson(sliceName) {\n if (this.slicesDataDb.has(sliceName)) {\n const jsonPayload = this.slicesDataDb.get(sliceName)\n return Promise.resolve({ sliceName, jsonPayload })\n }\n\n const url = `${__PATH_PREFIX__}/slice-data/${sliceName}.json`\n return doFetch(url, `GET`).then(res => {\n const jsonPayload = JSON.parse(res.responseText)\n\n this.slicesDataDb.set(sliceName, jsonPayload)\n return { sliceName, jsonPayload }\n })\n }\n\n findMatchPath(rawPath) {\n return findMatchPath(rawPath)\n }\n\n // TODO check all uses of this and whether they use undefined for page resources not exist\n loadPage(rawPath) {\n const pagePath = findPath(rawPath)\n if (this.pageDb.has(pagePath)) {\n const page = this.pageDb.get(pagePath)\n if (process.env.BUILD_STAGE !== `develop` || !page.payload.stale) {\n if (page.error) {\n return Promise.resolve({\n error: page.error,\n status: page.status,\n })\n }\n\n return Promise.resolve(page.payload)\n }\n }\n\n if (this.inFlightDb.has(pagePath)) {\n return this.inFlightDb.get(pagePath)\n }\n\n const loadDataPromises = [\n this.loadAppData(),\n this.loadPageDataJson(pagePath),\n ]\n\n if (global.hasPartialHydration) {\n loadDataPromises.push(this.loadPartialHydrationJson(pagePath))\n }\n\n const inFlightPromise = Promise.all(loadDataPromises).then(allData => {\n const [appDataResponse, pageDataResponse, rscDataResponse] = allData\n\n if (\n pageDataResponse.status === PageResourceStatus.Error ||\n rscDataResponse?.status === PageResourceStatus.Error\n ) {\n return {\n status: PageResourceStatus.Error,\n }\n }\n\n let pageData = pageDataResponse.payload\n\n const {\n componentChunkName,\n staticQueryHashes: pageStaticQueryHashes = [],\n slicesMap = {},\n } = pageData\n\n const finalResult = {}\n\n const dedupedSliceNames = Array.from(new Set(Object.values(slicesMap)))\n\n const loadSlice = slice => {\n if (this.slicesDb.has(slice.name)) {\n return this.slicesDb.get(slice.name)\n } else if (this.sliceInflightDb.has(slice.name)) {\n return this.sliceInflightDb.get(slice.name)\n }\n\n const inFlight = this.loadComponent(slice.componentChunkName).then(\n component => {\n return {\n component: preferDefault(component),\n sliceContext: slice.result.sliceContext,\n data: slice.result.data,\n }\n }\n )\n\n this.sliceInflightDb.set(slice.name, inFlight)\n inFlight.then(results => {\n this.slicesDb.set(slice.name, results)\n this.sliceInflightDb.delete(slice.name)\n })\n\n return inFlight\n }\n\n return Promise.all(\n dedupedSliceNames.map(sliceName => this.loadSliceDataJson(sliceName))\n ).then(slicesData => {\n const slices = []\n const dedupedStaticQueryHashes = [...pageStaticQueryHashes]\n\n for (const { jsonPayload, sliceName } of Object.values(slicesData)) {\n slices.push({ name: sliceName, ...jsonPayload })\n for (const staticQueryHash of jsonPayload.staticQueryHashes) {\n if (!dedupedStaticQueryHashes.includes(staticQueryHash)) {\n dedupedStaticQueryHashes.push(staticQueryHash)\n }\n }\n }\n\n const loadChunkPromises = [\n Promise.all(slices.map(loadSlice)),\n this.loadComponent(componentChunkName, `head`),\n ]\n\n if (!global.hasPartialHydration) {\n loadChunkPromises.push(this.loadComponent(componentChunkName))\n }\n\n // In develop we have separate chunks for template and Head components\n // to enable HMR (fast refresh requires single exports).\n // In production we have shared chunk with both exports. Double loadComponent here\n // will be deduped by webpack runtime resulting in single request and single module\n // being loaded for both `component` and `head`.\n // get list of components to get\n const componentChunkPromises = Promise.all(loadChunkPromises).then(\n components => {\n const [sliceComponents, headComponent, pageComponent] = components\n\n finalResult.createdAt = new Date()\n\n for (const sliceComponent of sliceComponents) {\n if (!sliceComponent || sliceComponent instanceof Error) {\n finalResult.status = PageResourceStatus.Error\n finalResult.error = sliceComponent\n }\n }\n\n if (\n !global.hasPartialHydration &&\n (!pageComponent || pageComponent instanceof Error)\n ) {\n finalResult.status = PageResourceStatus.Error\n finalResult.error = pageComponent\n }\n\n let pageResources\n\n if (finalResult.status !== PageResourceStatus.Error) {\n finalResult.status = PageResourceStatus.Success\n if (\n pageDataResponse.notFound === true ||\n rscDataResponse?.notFound === true\n ) {\n finalResult.notFound = true\n }\n pageData = Object.assign(pageData, {\n webpackCompilationHash: appDataResponse\n ? appDataResponse.webpackCompilationHash\n : ``,\n })\n\n if (typeof rscDataResponse?.payload === `string`) {\n pageResources = toPageResources(pageData, null, headComponent)\n\n pageResources.partialHydration = rscDataResponse.payload\n\n const readableStream = new ReadableStream({\n start(controller) {\n const te = new TextEncoder()\n controller.enqueue(te.encode(rscDataResponse.payload))\n },\n pull(controller) {\n // close on next read when queue is empty\n controller.close()\n },\n cancel() {},\n })\n\n return waitForResponse(\n createFromReadableStream(readableStream)\n ).then(result => {\n pageResources.partialHydration = result\n\n return pageResources\n })\n } else {\n pageResources = toPageResources(\n pageData,\n pageComponent,\n headComponent\n )\n }\n }\n\n // undefined if final result is an error\n return pageResources\n }\n )\n\n // get list of static queries to get\n const staticQueryBatchPromise = Promise.all(\n dedupedStaticQueryHashes.map(staticQueryHash => {\n // Check for cache in case this static query result has already been loaded\n if (this.staticQueryDb[staticQueryHash]) {\n const jsonPayload = this.staticQueryDb[staticQueryHash]\n return { staticQueryHash, jsonPayload }\n }\n\n return this.memoizedGet(\n `${__PATH_PREFIX__}/page-data/sq/d/${staticQueryHash}.json`\n )\n .then(req => {\n const jsonPayload = JSON.parse(req.responseText)\n return { staticQueryHash, jsonPayload }\n })\n .catch(() => {\n throw new Error(\n `We couldn't load \"${__PATH_PREFIX__}/page-data/sq/d/${staticQueryHash}.json\"`\n )\n })\n })\n ).then(staticQueryResults => {\n const staticQueryResultsMap = {}\n\n staticQueryResults.forEach(({ staticQueryHash, jsonPayload }) => {\n staticQueryResultsMap[staticQueryHash] = jsonPayload\n this.staticQueryDb[staticQueryHash] = jsonPayload\n })\n\n return staticQueryResultsMap\n })\n\n return (\n Promise.all([componentChunkPromises, staticQueryBatchPromise])\n .then(([pageResources, staticQueryResults]) => {\n let payload\n if (pageResources) {\n payload = { ...pageResources, staticQueryResults }\n finalResult.payload = payload\n emitter.emit(`onPostLoadPageResources`, {\n page: payload,\n pageResources: payload,\n })\n }\n\n this.pageDb.set(pagePath, finalResult)\n\n if (finalResult.error) {\n return {\n error: finalResult.error,\n status: finalResult.status,\n }\n }\n\n return payload\n })\n // when static-query fail to load we throw a better error\n .catch(err => {\n return {\n error: err,\n status: PageResourceStatus.Error,\n }\n })\n )\n })\n })\n\n inFlightPromise\n .then(() => {\n this.inFlightDb.delete(pagePath)\n })\n .catch(error => {\n this.inFlightDb.delete(pagePath)\n throw error\n })\n\n this.inFlightDb.set(pagePath, inFlightPromise)\n\n return inFlightPromise\n }\n\n // returns undefined if the page does not exists in cache\n loadPageSync(rawPath, options = {}) {\n const pagePath = findPath(rawPath)\n if (this.pageDb.has(pagePath)) {\n const pageData = this.pageDb.get(pagePath)\n\n if (pageData.payload) {\n return pageData.payload\n }\n\n if (options?.withErrorDetails) {\n return {\n error: pageData.error,\n status: pageData.status,\n }\n }\n }\n return undefined\n }\n\n shouldPrefetch(pagePath) {\n // Skip prefetching if we know user is on slow or constrained connection\n if (!doesConnectionSupportPrefetch()) {\n return false\n }\n\n // Don't prefetch if this is a crawler bot\n if (navigator.userAgent && BOT_REGEX.test(navigator.userAgent)) {\n return false\n }\n\n // Check if the page exists.\n if (this.pageDb.has(pagePath)) {\n return false\n }\n\n return true\n }\n\n prefetch(pagePath) {\n if (!this.shouldPrefetch(pagePath)) {\n return {\n then: resolve => resolve(false),\n abort: () => {},\n }\n }\n if (this.prefetchTriggered.has(pagePath)) {\n return {\n then: resolve => resolve(true),\n abort: () => {},\n }\n }\n\n const defer = {\n resolve: null,\n reject: null,\n promise: null,\n }\n defer.promise = new Promise((resolve, reject) => {\n defer.resolve = resolve\n defer.reject = reject\n })\n this.prefetchQueued.push([pagePath, defer])\n const abortC = new AbortController()\n abortC.signal.addEventListener(`abort`, () => {\n const index = this.prefetchQueued.findIndex(([p]) => p === pagePath)\n // remove from the queue\n if (index !== -1) {\n this.prefetchQueued.splice(index, 1)\n }\n })\n\n if (!this.isPrefetchQueueRunning) {\n this.isPrefetchQueueRunning = true\n setTimeout(() => {\n this._processNextPrefetchBatch()\n }, 3000)\n }\n\n return {\n then: (resolve, reject) => defer.promise.then(resolve, reject),\n abort: abortC.abort.bind(abortC),\n }\n }\n\n _processNextPrefetchBatch() {\n const idleCallback = window.requestIdleCallback || (cb => setTimeout(cb, 0))\n\n idleCallback(() => {\n const toPrefetch = this.prefetchQueued.splice(0, 4)\n const prefetches = Promise.all(\n toPrefetch.map(([pagePath, dPromise]) => {\n // Tell plugins with custom prefetching logic that they should start\n // prefetching this path.\n if (!this.prefetchTriggered.has(pagePath)) {\n this.apiRunner(`onPrefetchPathname`, { pathname: pagePath })\n this.prefetchTriggered.add(pagePath)\n }\n\n // If a plugin has disabled core prefetching, stop now.\n if (this.prefetchDisabled) {\n return dPromise.resolve(false)\n }\n\n return this.doPrefetch(findPath(pagePath)).then(() => {\n if (!this.prefetchCompleted.has(pagePath)) {\n this.apiRunner(`onPostPrefetchPathname`, { pathname: pagePath })\n this.prefetchCompleted.add(pagePath)\n }\n\n dPromise.resolve(true)\n })\n })\n )\n\n if (this.prefetchQueued.length) {\n prefetches.then(() => {\n setTimeout(() => {\n this._processNextPrefetchBatch()\n }, 3000)\n })\n } else {\n this.isPrefetchQueueRunning = false\n }\n })\n }\n\n doPrefetch(pagePath) {\n const pageDataUrl = createPageDataUrl(pagePath)\n\n if (global.hasPartialHydration) {\n return Promise.all([\n prefetchHelper(pageDataUrl, {\n crossOrigin: `anonymous`,\n as: `fetch`,\n }).then(() =>\n // This was just prefetched, so will return a response from\n // the cache instead of making another request to the server\n this.loadPageDataJson(pagePath)\n ),\n prefetchHelper(pageDataUrl.replace(`.json`, `-rsc.json`), {\n crossOrigin: `anonymous`,\n as: `fetch`,\n }).then(() =>\n // This was just prefetched, so will return a response from\n // the cache instead of making another request to the server\n this.loadPartialHydrationJson(pagePath)\n ),\n ])\n } else {\n return prefetchHelper(pageDataUrl, {\n crossOrigin: `anonymous`,\n as: `fetch`,\n }).then(() =>\n // This was just prefetched, so will return a response from\n // the cache instead of making another request to the server\n this.loadPageDataJson(pagePath)\n )\n }\n }\n\n hovering(rawPath) {\n this.loadPage(rawPath)\n }\n\n getResourceURLsForPathname(rawPath) {\n const pagePath = findPath(rawPath)\n const page = this.pageDataDb.get(pagePath)\n if (page) {\n const pageResources = toPageResources(page.payload)\n\n return [\n ...createComponentUrls(pageResources.page.componentChunkName),\n createPageDataUrl(pagePath),\n ]\n } else {\n return null\n }\n }\n\n isPageNotFound(rawPath) {\n const pagePath = findPath(rawPath)\n const page = this.pageDb.get(pagePath)\n return !page || page.notFound\n }\n\n loadAppData(retries = 0) {\n return this.memoizedGet(`${__PATH_PREFIX__}/page-data/app-data.json`).then(\n req => {\n const { status, responseText } = req\n\n let appData\n\n if (status !== 200 && retries < 3) {\n // Retry 3 times incase of non-200 responses\n return this.loadAppData(retries + 1)\n }\n\n // Handle 200\n if (status === 200) {\n try {\n const jsonPayload = JSON.parse(responseText)\n if (jsonPayload.webpackCompilationHash === undefined) {\n throw new Error(`not a valid app-data response`)\n }\n\n appData = jsonPayload\n } catch (err) {\n // continue regardless of error\n }\n }\n\n return appData\n }\n )\n }\n}\n\nconst createComponentUrls = componentChunkName =>\n (window.___chunkMapping[componentChunkName] || []).map(\n chunk => __PATH_PREFIX__ + chunk\n )\n\nexport class ProdLoader extends BaseLoader {\n constructor(asyncRequires, matchPaths, pageData) {\n const loadComponent = (chunkName, exportType = `components`) => {\n if (!global.hasPartialHydration) {\n exportType = `components`\n }\n\n if (!asyncRequires[exportType][chunkName]) {\n throw new Error(\n `We couldn't find the correct component chunk with the name \"${chunkName}\"`\n )\n }\n\n return (\n asyncRequires[exportType][chunkName]()\n // loader will handle the case when component is error\n .catch(err => err)\n )\n }\n\n super(loadComponent, matchPaths)\n\n if (pageData) {\n this.pageDataDb.set(findPath(pageData.path), {\n pagePath: pageData.path,\n payload: pageData,\n status: `success`,\n })\n }\n }\n\n doPrefetch(pagePath) {\n return super.doPrefetch(pagePath).then(result => {\n if (result.status !== PageResourceStatus.Success) {\n return Promise.resolve()\n }\n const pageData = result.payload\n const chunkName = pageData.componentChunkName\n const componentUrls = createComponentUrls(chunkName)\n return Promise.all(componentUrls.map(prefetchHelper)).then(() => pageData)\n })\n }\n\n loadPageDataJson(rawPath) {\n return super.loadPageDataJson(rawPath).then(data => {\n if (data.notFound) {\n if (shouldAbortFetch(rawPath)) {\n return data\n }\n // check if html file exist using HEAD request:\n // if it does we should navigate to it instead of showing 404\n return doFetch(rawPath, `HEAD`).then(req => {\n if (req.status === 200) {\n // page (.html file) actually exist (or we asked for 404 )\n // returning page resources status as errored to trigger\n // regular browser navigation to given page\n return {\n status: PageResourceStatus.Error,\n }\n }\n\n // if HEAD request wasn't 200, return notFound result\n // and show 404 page\n return data\n })\n }\n return data\n })\n }\n\n loadPartialHydrationJson(rawPath) {\n return super.loadPartialHydrationJson(rawPath).then(data => {\n if (data.notFound) {\n if (shouldAbortFetch(rawPath)) {\n return data\n }\n // check if html file exist using HEAD request:\n // if it does we should navigate to it instead of showing 404\n return doFetch(rawPath, `HEAD`).then(req => {\n if (req.status === 200) {\n // page (.html file) actually exist (or we asked for 404 )\n // returning page resources status as errored to trigger\n // regular browser navigation to given page\n return {\n status: PageResourceStatus.Error,\n }\n }\n\n // if HEAD request wasn't 200, return notFound result\n // and show 404 page\n return data\n })\n }\n return data\n })\n }\n}\n\nlet instance\n\nexport const setLoader = _loader => {\n instance = _loader\n}\n\nexport const publicLoader = {\n enqueue: rawPath => instance.prefetch(rawPath),\n\n // Real methods\n getResourceURLsForPathname: rawPath =>\n instance.getResourceURLsForPathname(rawPath),\n loadPage: rawPath => instance.loadPage(rawPath),\n // TODO add deprecation to v4 so people use withErrorDetails and then we can remove in v5 and change default behaviour\n loadPageSync: (rawPath, options = {}) =>\n instance.loadPageSync(rawPath, options),\n prefetch: rawPath => instance.prefetch(rawPath),\n isPageNotFound: rawPath => instance.isPageNotFound(rawPath),\n hovering: rawPath => instance.hovering(rawPath),\n loadAppData: () => instance.loadAppData(),\n}\n\nexport default publicLoader\n\nexport function getStaticQueryResults() {\n if (instance) {\n return instance.staticQueryDb\n } else {\n return {}\n }\n}\n\nexport function getSliceResults() {\n if (instance) {\n return instance.slicesDb\n } else {\n return {}\n }\n}\n","import { useEffect } from \"react\"\n\n/*\n * Calls callback in an effect and renders children\n */\nexport function FireCallbackInEffect({ children, callback }) {\n useEffect(() => {\n callback()\n })\n\n return children\n}\n","export const VALID_NODE_NAMES = [\n `link`,\n `meta`,\n `style`,\n `title`,\n `base`,\n `noscript`,\n `script`,\n `html`,\n `body`,\n]\n","import { VALID_NODE_NAMES } from \"./constants\"\n\n/**\n * Filter the props coming from a page down to just the ones that are relevant for head.\n * This e.g. filters out properties that are undefined during SSR.\n */\nexport function filterHeadProps(input) {\n return {\n location: {\n pathname: input.location.pathname,\n },\n params: input.params,\n data: input.data || {},\n serverData: input.serverData,\n pageContext: input.pageContext,\n }\n}\n\n/**\n * Throw error if Head export is not a valid function\n */\nexport function headExportValidator(head) {\n if (typeof head !== `function`)\n throw new Error(\n `Expected \"Head\" export to be a function got \"${typeof head}\".`\n )\n}\n\n/**\n * Warn once for same messsage\n */\nlet warnOnce = _ => {}\nif (process.env.NODE_ENV !== `production`) {\n const warnings = new Set()\n warnOnce = msg => {\n if (!warnings.has(msg)) {\n console.warn(msg)\n }\n warnings.add(msg)\n }\n}\n\n/**\n * Warn for invalid tags in Head which may have been directly added or introduced by `wrapRootElement`\n * @param {string} tagName\n */\nexport function warnForInvalidTag(tagName) {\n if (process.env.NODE_ENV !== `production`) {\n const warning = createWarningForInvalidTag(tagName)\n warnOnce(warning)\n }\n}\n\nfunction createWarningForInvalidTag(tagName) {\n return `<${tagName}> is not a valid head element. Please use one of the following: ${VALID_NODE_NAMES.join(\n `, `\n )}.\\n\\nAlso make sure that wrapRootElement in gatsby-ssr/gatsby-browser doesn't contain UI elements: https://gatsby.dev/invalid-head-elements`\n}\n\n/**\n * When a `nonce` is present on an element, browsers such as Chrome and Firefox strip it out of the\n * actual HTML attributes for security reasons *when the element is added to the document*. Thus,\n * given two equivalent elements that have nonces, `Element,isEqualNode()` will return false if one\n * of those elements gets added to the document. Although the `element.nonce` property will be the\n * same for both elements, the one that was added to the document will return an empty string for\n * its nonce HTML attribute value.\n *\n * This custom `isEqualNode()` function therefore removes the nonce value from the `newTag` before\n * comparing it to `oldTag`, restoring it afterwards.\n *\n * For more information, see:\n * https://bugs.chromium.org/p/chromium/issues/detail?id=1211471#c12\n */\nexport function isEqualNode(oldTag, newTag) {\n if (oldTag instanceof HTMLElement && newTag instanceof HTMLElement) {\n const nonce = newTag.getAttribute(`nonce`)\n // Only strip the nonce if `oldTag` has had it stripped. An element's nonce attribute will not\n // be stripped if there is no content security policy response header that includes a nonce.\n if (nonce && !oldTag.getAttribute(`nonce`)) {\n const cloneTag = newTag.cloneNode(true)\n cloneTag.setAttribute(`nonce`, ``)\n cloneTag.nonce = nonce\n return nonce === oldTag.nonce && oldTag.isEqualNode(cloneTag)\n }\n }\n\n return oldTag.isEqualNode(newTag)\n}\n\nexport function diffNodes({ oldNodes, newNodes, onStale, onNew }) {\n for (const existingHeadElement of oldNodes) {\n const indexInNewNodes = newNodes.findIndex(e =>\n isEqualNode(e, existingHeadElement)\n )\n\n if (indexInNewNodes === -1) {\n onStale(existingHeadElement)\n } else {\n // this node is re-created as-is, so we keep old node, and remove it from list of new nodes (as we handled it already here)\n newNodes.splice(indexInNewNodes, 1)\n }\n }\n\n // remaing new nodes didn't have matching old node, so need to be added\n for (const newNode of newNodes) {\n onNew(newNode)\n }\n}\n\nexport function getValidHeadNodesAndAttributes(\n rootNode,\n htmlAndBodyAttributes = {\n html: {},\n body: {},\n }\n) {\n const seenIds = new Map()\n const validHeadNodes = []\n\n // Filter out non-element nodes before looping since we don't care about them\n for (const node of rootNode.childNodes) {\n const nodeName = node.nodeName.toLowerCase()\n const id = node.attributes?.id?.value\n\n if (!isElementType(node)) continue\n\n if (isValidNodeName(nodeName)) {\n // and tags are treated differently, in that we don't render them, we only extract the attributes and apply them separetely\n if (nodeName === `html` || nodeName === `body`) {\n for (const attribute of node.attributes) {\n const isStyleAttribute = attribute.name === `style`\n\n // Merge attributes for same nodeName from previous loop iteration\n htmlAndBodyAttributes[nodeName] = {\n ...htmlAndBodyAttributes[nodeName],\n }\n\n if (!isStyleAttribute) {\n htmlAndBodyAttributes[nodeName][attribute.name] = attribute.value\n }\n\n // If there is already a style attribute, we need to merge them as otherwise the last one will \"win\"\n if (isStyleAttribute) {\n htmlAndBodyAttributes[nodeName].style = `${\n htmlAndBodyAttributes[nodeName]?.style\n ? htmlAndBodyAttributes[nodeName].style\n : ``\n }${attribute.value} `\n }\n }\n } else {\n let clonedNode = node.cloneNode(true)\n clonedNode.setAttribute(`data-gatsby-head`, true)\n\n // // This is hack to make script tags work\n if (clonedNode.nodeName.toLowerCase() === `script`) {\n clonedNode = massageScript(clonedNode)\n }\n // Duplicate ids are not allowed in the head, so we need to dedupe them\n if (id) {\n if (!seenIds.has(id)) {\n validHeadNodes.push(clonedNode)\n seenIds.set(id, validHeadNodes.length - 1)\n } else {\n const indexOfPreviouslyInsertedNode = seenIds.get(id)\n validHeadNodes[\n indexOfPreviouslyInsertedNode\n ].parentNode?.removeChild(\n validHeadNodes[indexOfPreviouslyInsertedNode]\n )\n validHeadNodes[indexOfPreviouslyInsertedNode] = clonedNode\n }\n } else {\n validHeadNodes.push(clonedNode)\n }\n }\n } else {\n warnForInvalidTag(nodeName)\n }\n\n if (node.childNodes.length) {\n validHeadNodes.push(\n ...getValidHeadNodesAndAttributes(node, htmlAndBodyAttributes)\n .validHeadNodes\n )\n }\n }\n\n return { validHeadNodes, htmlAndBodyAttributes }\n}\n\nfunction massageScript(node) {\n const script = document.createElement(`script`)\n for (const attr of node.attributes) {\n script.setAttribute(attr.name, attr.value)\n }\n script.innerHTML = node.innerHTML\n\n return script\n}\n\nexport function isValidNodeName(nodeName) {\n return VALID_NODE_NAMES.includes(nodeName)\n}\n/*\n * For Head, we only care about element nodes(type = 1), so this util is used to skip over non-element nodes\n * For Node type, see https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n */\nexport function isElementType(node) {\n return node.nodeType === 1\n}\n\n/**\n * Removes all the head elements that were added by `Head`\n */\nexport function removePrevHeadElements() {\n const prevHeadNodes = document.querySelectorAll(`[data-gatsby-head]`)\n for (const node of prevHeadNodes) {\n node.parentNode.removeChild(node)\n }\n}\n\nexport function applyHtmlAndBodyAttributes(htmlAndBodyAttributes) {\n if (!htmlAndBodyAttributes) return\n\n const { html, body } = htmlAndBodyAttributes\n\n const htmlElement = document.querySelector(`html`)\n if (htmlElement) {\n Object.entries(html).forEach(([attributeName, attributeValue]) => {\n htmlElement.setAttribute(attributeName, attributeValue)\n })\n }\n\n const bodyElement = document.querySelector(`body`)\n if (bodyElement) {\n Object.entries(body).forEach(([attributeName, attributeValue]) => {\n bodyElement.setAttribute(attributeName, attributeValue)\n })\n }\n}\n\nexport function removeHtmlAndBodyAttributes(htmlAndBodyattributeList) {\n if (!htmlAndBodyattributeList) return\n\n const { html, body } = htmlAndBodyattributeList\n\n if (html) {\n const htmlElement = document.querySelector(`html`)\n html.forEach(attributeName => {\n if (htmlElement) {\n htmlElement.removeAttribute(attributeName)\n }\n })\n }\n\n if (body) {\n const bodyElement = document.querySelector(`body`)\n body.forEach(attributeName => {\n if (bodyElement) {\n bodyElement.removeAttribute(attributeName)\n }\n })\n }\n}\n","import React from \"react\"\nimport { useEffect } from \"react\"\nimport { StaticQueryContext } from \"gatsby\"\nimport { LocationProvider } from \"@gatsbyjs/reach-router\"\nimport { reactDOMUtils } from \"../react-dom-utils\"\nimport { FireCallbackInEffect } from \"./components/fire-callback-in-effect\"\nimport {\n headExportValidator,\n filterHeadProps,\n diffNodes,\n getValidHeadNodesAndAttributes,\n removePrevHeadElements,\n applyHtmlAndBodyAttributes,\n removeHtmlAndBodyAttributes,\n} from \"./utils\"\nimport { apiRunner } from \"../api-runner-browser\"\n\nconst hiddenRoot = document.createElement(`div`)\nconst keysOfHtmlAndBodyAttributes = {\n html: [],\n body: [],\n}\n\nconst onHeadRendered = () => {\n const { validHeadNodes, htmlAndBodyAttributes } =\n getValidHeadNodesAndAttributes(hiddenRoot)\n\n keysOfHtmlAndBodyAttributes.html = Object.keys(htmlAndBodyAttributes.html)\n keysOfHtmlAndBodyAttributes.body = Object.keys(htmlAndBodyAttributes.body)\n\n applyHtmlAndBodyAttributes(htmlAndBodyAttributes)\n\n /**\n * The rest of the code block below is a diffing mechanism to ensure that\n * the head elements aren't duplicted on every re-render.\n */\n const existingHeadElements = document.querySelectorAll(`[data-gatsby-head]`)\n\n if (existingHeadElements.length === 0) {\n document.head.append(...validHeadNodes)\n return\n }\n\n const newHeadNodes = []\n diffNodes({\n oldNodes: existingHeadElements,\n newNodes: validHeadNodes,\n onStale: node => node.parentNode.removeChild(node),\n onNew: node => newHeadNodes.push(node),\n })\n\n document.head.append(...newHeadNodes)\n}\n\nif (process.env.BUILD_STAGE === `develop`) {\n // sigh ... and elements are not valid descedents of
(our hidden element)\n // react-dom in dev mode will warn about this. There doesn't seem to be a way to render arbitrary\n // user Head without hitting this issue (our hidden element could be just \"new Document()\", but\n // this can only have 1 child, and we don't control what is being rendered so that's not an option)\n // instead we continue to render to
, and just silence warnings for and elements\n // https://github.com/facebook/react/blob/e2424f33b3ad727321fc12e75c5e94838e84c2b5/packages/react-dom-bindings/src/client/validateDOMNesting.js#L498-L520\n const originalConsoleError = console.error.bind(console)\n console.error = (...args) => {\n if (\n Array.isArray(args) &&\n args.length >= 2 &&\n args[0]?.includes?.(`validateDOMNesting(...): %s cannot appear as`) &&\n (args[1] === `` || args[1] === ``)\n ) {\n return undefined\n }\n return originalConsoleError(...args)\n }\n\n /* We set up observer to be able to regenerate after react-refresh\n updates our hidden element.\n */\n const observer = new MutationObserver(onHeadRendered)\n observer.observe(hiddenRoot, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true,\n })\n}\n\nexport function headHandlerForBrowser({\n pageComponent,\n staticQueryResults,\n pageComponentProps,\n}) {\n useEffect(() => {\n if (pageComponent?.Head) {\n headExportValidator(pageComponent.Head)\n\n const { render } = reactDOMUtils()\n\n const HeadElement = (\n \n )\n\n const WrapHeadElement = apiRunner(\n `wrapRootElement`,\n { element: HeadElement },\n HeadElement,\n ({ result }) => {\n return { element: result }\n }\n ).pop()\n\n render(\n // just a hack to call the callback after react has done first render\n // Note: In dev, we call onHeadRendered twice( in FireCallbackInEffect and after mutualution observer dectects initail render into hiddenRoot) this is for hot reloading\n // In Prod we only call onHeadRendered in FireCallbackInEffect to render to head\n \n \n {WrapHeadElement}\n \n ,\n hiddenRoot\n )\n }\n\n return () => {\n removePrevHeadElements()\n removeHtmlAndBodyAttributes(keysOfHtmlAndBodyAttributes)\n }\n })\n}\n","import React, { Suspense, createElement } from \"react\"\nimport PropTypes from \"prop-types\"\nimport { apiRunner } from \"./api-runner-browser\"\nimport { grabMatchParams } from \"./find-path\"\nimport { headHandlerForBrowser } from \"./head/head-export-handler-for-browser\"\n\n// Renders page\nfunction PageRenderer(props) {\n const pageComponentProps = {\n ...props,\n params: {\n ...grabMatchParams(props.location.pathname),\n ...props.pageResources.json.pageContext.__params,\n },\n }\n\n const preferDefault = m => (m && m.default) || m\n\n let pageElement\n if (props.pageResources.partialHydration) {\n pageElement = props.pageResources.partialHydration\n } else {\n pageElement = createElement(preferDefault(props.pageResources.component), {\n ...pageComponentProps,\n key: props.path || props.pageResources.page.path,\n })\n }\n\n const pageComponent = props.pageResources.head\n\n headHandlerForBrowser({\n pageComponent,\n staticQueryResults: props.pageResources.staticQueryResults,\n pageComponentProps,\n })\n\n const wrappedPage = apiRunner(\n `wrapPageElement`,\n {\n element: pageElement,\n props: pageComponentProps,\n },\n pageElement,\n ({ result }) => {\n return { element: result, props: pageComponentProps }\n }\n ).pop()\n\n return wrappedPage\n}\n\nPageRenderer.propTypes = {\n location: PropTypes.object.isRequired,\n pageResources: PropTypes.object.isRequired,\n data: PropTypes.object,\n pageContext: PropTypes.object.isRequired,\n}\n\nexport default PageRenderer\n","// This is extracted to separate module because it's shared\n// between browser and SSR code\nexport const RouteAnnouncerProps = {\n id: `gatsby-announcer`,\n style: {\n position: `absolute`,\n top: 0,\n width: 1,\n height: 1,\n padding: 0,\n overflow: `hidden`,\n clip: `rect(0, 0, 0, 0)`,\n whiteSpace: `nowrap`,\n border: 0,\n },\n \"aria-live\": `assertive`,\n \"aria-atomic\": `true`,\n}\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport loader, { PageResourceStatus } from \"./loader\"\nimport { maybeGetBrowserRedirect } from \"./redirect-utils.js\"\nimport { apiRunner } from \"./api-runner-browser\"\nimport emitter from \"./emitter\"\nimport { RouteAnnouncerProps } from \"./route-announcer-props\"\nimport {\n navigate as reachNavigate,\n globalHistory,\n} from \"@gatsbyjs/reach-router\"\nimport { parsePath } from \"gatsby-link\"\n\nfunction maybeRedirect(pathname) {\n const redirect = maybeGetBrowserRedirect(pathname)\n const { hash, search } = window.location\n\n if (redirect != null) {\n window.___replace(redirect.toPath + search + hash)\n return true\n } else {\n return false\n }\n}\n\n// Catch unhandled chunk loading errors and force a restart of the app.\nlet nextRoute = ``\n\nwindow.addEventListener(`unhandledrejection`, event => {\n if (/loading chunk \\d* failed./i.test(event.reason)) {\n if (nextRoute) {\n window.location.pathname = nextRoute\n }\n }\n})\n\nconst onPreRouteUpdate = (location, prevLocation) => {\n if (!maybeRedirect(location.pathname)) {\n nextRoute = location.pathname\n apiRunner(`onPreRouteUpdate`, { location, prevLocation })\n }\n}\n\nconst onRouteUpdate = (location, prevLocation) => {\n if (!maybeRedirect(location.pathname)) {\n apiRunner(`onRouteUpdate`, { location, prevLocation })\n if (\n process.env.GATSBY_QUERY_ON_DEMAND &&\n process.env.GATSBY_QUERY_ON_DEMAND_LOADING_INDICATOR === `true`\n ) {\n emitter.emit(`onRouteUpdate`, { location, prevLocation })\n }\n }\n}\n\nconst navigate = (to, options = {}) => {\n // Support forward/backward navigation with numbers\n // navigate(-2) (jumps back 2 history steps)\n // navigate(2) (jumps forward 2 history steps)\n if (typeof to === `number`) {\n globalHistory.navigate(to)\n return\n }\n\n const { pathname, search, hash } = parsePath(to)\n const redirect = maybeGetBrowserRedirect(pathname)\n\n // If we're redirecting, just replace the passed in pathname\n // to the one we want to redirect to.\n if (redirect) {\n to = redirect.toPath + search + hash\n }\n\n // If we had a service worker update, no matter the path, reload window and\n // reset the pathname whitelist\n if (window.___swUpdated) {\n window.location = pathname + search + hash\n return\n }\n\n // Start a timer to wait for a second before transitioning and showing a\n // loader in case resources aren't around yet.\n const timeoutId = setTimeout(() => {\n emitter.emit(`onDelayedLoadPageResources`, { pathname })\n apiRunner(`onRouteUpdateDelayed`, {\n location: window.location,\n })\n }, 1000)\n\n loader.loadPage(pathname + search).then(pageResources => {\n // If no page resources, then refresh the page\n // Do this, rather than simply `window.location.reload()`, so that\n // pressing the back/forward buttons work - otherwise when pressing\n // back, the browser will just change the URL and expect JS to handle\n // the change, which won't always work since it might not be a Gatsby\n // page.\n if (!pageResources || pageResources.status === PageResourceStatus.Error) {\n window.history.replaceState({}, ``, location.href)\n window.location = pathname\n clearTimeout(timeoutId)\n return\n }\n\n // If the loaded page has a different compilation hash to the\n // window, then a rebuild has occurred on the server. Reload.\n if (process.env.NODE_ENV === `production` && pageResources) {\n if (\n pageResources.page.webpackCompilationHash !==\n window.___webpackCompilationHash\n ) {\n // Purge plugin-offline cache\n if (\n `serviceWorker` in navigator &&\n navigator.serviceWorker.controller !== null &&\n navigator.serviceWorker.controller.state === `activated`\n ) {\n navigator.serviceWorker.controller.postMessage({\n gatsbyApi: `clearPathResources`,\n })\n }\n\n window.location = pathname + search + hash\n }\n }\n reachNavigate(to, options)\n clearTimeout(timeoutId)\n })\n}\n\nfunction shouldUpdateScroll(prevRouterProps, { location }) {\n const { pathname, hash } = location\n const results = apiRunner(`shouldUpdateScroll`, {\n prevRouterProps,\n // `pathname` for backwards compatibility\n pathname,\n routerProps: { location },\n getSavedScrollPosition: args => [\n 0,\n // FIXME this is actually a big code smell, we should fix this\n // eslint-disable-next-line @babel/no-invalid-this\n this._stateStorage.read(args, args.key),\n ],\n })\n if (results.length > 0) {\n // Use the latest registered shouldUpdateScroll result, this allows users to override plugin's configuration\n // @see https://github.com/gatsbyjs/gatsby/issues/12038\n return results[results.length - 1]\n }\n\n if (prevRouterProps) {\n const {\n location: { pathname: oldPathname },\n } = prevRouterProps\n if (oldPathname === pathname) {\n // Scroll to element if it exists, if it doesn't, or no hash is provided,\n // scroll to top.\n return hash ? decodeURI(hash.slice(1)) : [0, 0]\n }\n }\n return true\n}\n\nfunction init() {\n // The \"scroll-behavior\" package expects the \"action\" to be on the location\n // object so let's copy it over.\n globalHistory.listen(args => {\n args.location.action = args.action\n })\n\n window.___push = to => navigate(to, { replace: false })\n window.___replace = to => navigate(to, { replace: true })\n window.___navigate = (to, options) => navigate(to, options)\n}\n\nclass RouteAnnouncer extends React.Component {\n constructor(props) {\n super(props)\n this.announcementRef = React.createRef()\n }\n\n componentDidUpdate(prevProps, nextProps) {\n requestAnimationFrame(() => {\n let pageName = `new page at ${this.props.location.pathname}`\n if (document.title) {\n pageName = document.title\n }\n const pageHeadings = document.querySelectorAll(`#gatsby-focus-wrapper h1`)\n if (pageHeadings && pageHeadings.length) {\n pageName = pageHeadings[0].textContent\n }\n const newAnnouncement = `Navigated to ${pageName}`\n if (this.announcementRef.current) {\n const oldAnnouncement = this.announcementRef.current.innerText\n if (oldAnnouncement !== newAnnouncement) {\n this.announcementRef.current.innerText = newAnnouncement\n }\n }\n })\n }\n\n render() {\n return
\n }\n}\n\nconst compareLocationProps = (prevLocation, nextLocation) => {\n if (prevLocation.href !== nextLocation.href) {\n return true\n }\n\n if (prevLocation?.state?.key !== nextLocation?.state?.key) {\n return true\n }\n\n return false\n}\n\n// Fire on(Pre)RouteUpdate APIs\nclass RouteUpdates extends React.Component {\n constructor(props) {\n super(props)\n onPreRouteUpdate(props.location, null)\n }\n\n componentDidMount() {\n onRouteUpdate(this.props.location, null)\n }\n\n shouldComponentUpdate(nextProps) {\n if (compareLocationProps(this.props.location, nextProps.location)) {\n onPreRouteUpdate(nextProps.location, this.props.location)\n return true\n }\n return false\n }\n\n componentDidUpdate(prevProps) {\n if (compareLocationProps(prevProps.location, this.props.location)) {\n onRouteUpdate(this.props.location, prevProps.location)\n }\n }\n\n render() {\n return (\n \n {this.props.children}\n \n \n )\n }\n}\n\nRouteUpdates.propTypes = {\n location: PropTypes.object.isRequired,\n}\n\nexport { init, shouldUpdateScroll, RouteUpdates, maybeGetBrowserRedirect }\n","// Pulled from react-compat\n// https://github.com/developit/preact-compat/blob/7c5de00e7c85e2ffd011bf3af02899b63f699d3a/src/index.js#L349\nfunction shallowDiffers(a, b) {\n for (var i in a) {\n if (!(i in b)) return true;\n }for (var _i in b) {\n if (a[_i] !== b[_i]) return true;\n }return false;\n}\n\nexport default (function (instance, nextProps, nextState) {\n return shallowDiffers(instance.props, nextProps) || shallowDiffers(instance.state, nextState);\n});","import React from \"react\"\nimport loader, { PageResourceStatus } from \"./loader\"\nimport shallowCompare from \"shallow-compare\"\n\nclass EnsureResources extends React.Component {\n constructor(props) {\n super()\n const { location, pageResources } = props\n this.state = {\n location: { ...location },\n pageResources:\n pageResources ||\n loader.loadPageSync(location.pathname + location.search, {\n withErrorDetails: true,\n }),\n }\n }\n\n static getDerivedStateFromProps({ location }, prevState) {\n if (prevState.location.href !== location.href) {\n const pageResources = loader.loadPageSync(\n location.pathname + location.search,\n {\n withErrorDetails: true,\n }\n )\n\n return {\n pageResources,\n location: { ...location },\n }\n }\n\n return {\n location: { ...location },\n }\n }\n\n loadResources(rawPath) {\n loader.loadPage(rawPath).then(pageResources => {\n if (pageResources && pageResources.status !== PageResourceStatus.Error) {\n this.setState({\n location: { ...window.location },\n pageResources,\n })\n } else {\n window.history.replaceState({}, ``, location.href)\n window.location = rawPath\n }\n })\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n // Always return false if we're missing resources.\n if (!nextState.pageResources) {\n this.loadResources(\n nextProps.location.pathname + nextProps.location.search\n )\n return false\n }\n\n if (\n process.env.BUILD_STAGE === `develop` &&\n nextState.pageResources.stale\n ) {\n this.loadResources(\n nextProps.location.pathname + nextProps.location.search\n )\n return false\n }\n\n // Check if the component or json have changed.\n if (this.state.pageResources !== nextState.pageResources) {\n return true\n }\n if (\n this.state.pageResources.component !== nextState.pageResources.component\n ) {\n return true\n }\n\n if (this.state.pageResources.json !== nextState.pageResources.json) {\n return true\n }\n // Check if location has changed on a page using internal routing\n // via matchPath configuration.\n if (\n this.state.location.key !== nextState.location.key &&\n nextState.pageResources.page &&\n (nextState.pageResources.page.matchPath ||\n nextState.pageResources.page.path)\n ) {\n return true\n }\n return shallowCompare(this, nextProps, nextState)\n }\n\n render() {\n if (\n process.env.NODE_ENV !== `production` &&\n (!this.state.pageResources ||\n this.state.pageResources.status === PageResourceStatus.Error)\n ) {\n const message = `EnsureResources was not able to find resources for path: \"${this.props.location.pathname}\"\nThis typically means that an issue occurred building components for that path.\nRun \\`gatsby clean\\` to remove any cached elements.`\n if (this.state.pageResources?.error) {\n console.error(message)\n throw this.state.pageResources.error\n }\n\n throw new Error(message)\n }\n\n return this.props.children(this.state)\n }\n}\n\nexport default EnsureResources\n","import { apiRunner, apiRunnerAsync } from \"./api-runner-browser\"\nimport React from \"react\"\nimport { Router, navigate, Location, BaseContext } from \"@gatsbyjs/reach-router\"\nimport { ScrollContext } from \"gatsby-react-router-scroll\"\nimport { StaticQueryContext } from \"./static-query\"\nimport {\n SlicesMapContext,\n SlicesContext,\n SlicesResultsContext,\n} from \"./slice/context\"\nimport {\n shouldUpdateScroll,\n init as navigationInit,\n RouteUpdates,\n} from \"./navigation\"\nimport emitter from \"./emitter\"\nimport PageRenderer from \"./page-renderer\"\nimport asyncRequires from \"$virtual/async-requires\"\nimport {\n setLoader,\n ProdLoader,\n publicLoader,\n PageResourceStatus,\n getStaticQueryResults,\n getSliceResults,\n} from \"./loader\"\nimport EnsureResources from \"./ensure-resources\"\nimport stripPrefix from \"./strip-prefix\"\n\n// Generated during bootstrap\nimport matchPaths from \"$virtual/match-paths.json\"\nimport { reactDOMUtils } from \"./react-dom-utils\"\n\nconst loader = new ProdLoader(asyncRequires, matchPaths, window.pageData)\nsetLoader(loader)\nloader.setApiRunner(apiRunner)\n\nconst { render, hydrate } = reactDOMUtils()\n\nwindow.asyncRequires = asyncRequires\nwindow.___emitter = emitter\nwindow.___loader = publicLoader\n\nnavigationInit()\n\nconst reloadStorageKey = `gatsby-reload-compilation-hash-match`\n\napiRunnerAsync(`onClientEntry`).then(() => {\n // Let plugins register a service worker. The plugin just needs\n // to return true.\n if (apiRunner(`registerServiceWorker`).filter(Boolean).length > 0) {\n require(`./register-service-worker`)\n }\n\n // In gatsby v2 if Router is used in page using matchPaths\n // paths need to contain full path.\n // For example:\n // - page have `/app/*` matchPath\n // - inside template user needs to use `/app/xyz` as path\n // Resetting `basepath`/`baseuri` keeps current behaviour\n // to not introduce breaking change.\n // Remove this in v3\n const RouteHandler = props => (\n \n \n \n )\n\n const DataContext = React.createContext({})\n\n const slicesContext = {\n renderEnvironment: `browser`,\n }\n\n class GatsbyRoot extends React.Component {\n render() {\n const { children } = this.props\n return (\n \n {({ location }) => (\n \n {({ pageResources, location }) => {\n const staticQueryResults = getStaticQueryResults()\n const sliceResults = getSliceResults()\n\n return (\n \n \n \n \n \n {children}\n \n \n \n \n \n )\n }}\n \n )}\n \n )\n }\n }\n\n class LocationHandler extends React.Component {\n render() {\n return (\n \n {({ pageResources, location }) => (\n \n \n \n \n \n \n \n )}\n \n )\n }\n }\n\n const { pagePath, location: browserLoc } = window\n\n // Explicitly call navigate if the canonical path (window.pagePath)\n // is different to the browser path (window.location.pathname). SSR\n // page paths might include search params, while SSG and DSG won't.\n // If page path include search params we also compare query params.\n // But only if NONE of the following conditions hold:\n //\n // - The url matches a client side route (page.matchPath)\n // - it's a 404 page\n // - it's the offline plugin shell (/offline-plugin-app-shell-fallback/)\n if (\n pagePath &&\n __BASE_PATH__ + pagePath !==\n browserLoc.pathname + (pagePath.includes(`?`) ? browserLoc.search : ``) &&\n !(\n loader.findMatchPath(stripPrefix(browserLoc.pathname, __BASE_PATH__)) ||\n pagePath.match(/^\\/(404|500)(\\/?|.html)$/) ||\n pagePath.match(/^\\/offline-plugin-app-shell-fallback\\/?$/)\n )\n ) {\n navigate(\n __BASE_PATH__ +\n pagePath +\n (!pagePath.includes(`?`) ? browserLoc.search : ``) +\n browserLoc.hash,\n {\n replace: true,\n }\n )\n }\n\n // It's possible that sessionStorage can throw an exception if access is not granted, see https://github.com/gatsbyjs/gatsby/issues/34512\n const getSessionStorage = () => {\n try {\n return sessionStorage\n } catch {\n return null\n }\n }\n\n publicLoader.loadPage(browserLoc.pathname + browserLoc.search).then(page => {\n const sessionStorage = getSessionStorage()\n\n if (\n page?.page?.webpackCompilationHash &&\n page.page.webpackCompilationHash !== window.___webpackCompilationHash\n ) {\n // Purge plugin-offline cache\n if (\n `serviceWorker` in navigator &&\n navigator.serviceWorker.controller !== null &&\n navigator.serviceWorker.controller.state === `activated`\n ) {\n navigator.serviceWorker.controller.postMessage({\n gatsbyApi: `clearPathResources`,\n })\n }\n\n // We have not matching html + js (inlined `window.___webpackCompilationHash`)\n // with our data (coming from `app-data.json` file). This can cause issues such as\n // errors trying to load static queries (as list of static queries is inside `page-data`\n // which might not match to currently loaded `.js` scripts).\n // We are making attempt to reload if hashes don't match, but we also have to handle case\n // when reload doesn't fix it (possibly broken deploy) so we don't end up in infinite reload loop\n if (sessionStorage) {\n const isReloaded = sessionStorage.getItem(reloadStorageKey) === `1`\n\n if (!isReloaded) {\n sessionStorage.setItem(reloadStorageKey, `1`)\n window.location.reload(true)\n return\n }\n }\n }\n\n if (sessionStorage) {\n sessionStorage.removeItem(reloadStorageKey)\n }\n\n if (!page || page.status === PageResourceStatus.Error) {\n const message = `page resources for ${browserLoc.pathname} not found. Not rendering React`\n\n // if the chunk throws an error we want to capture the real error\n // This should help with https://github.com/gatsbyjs/gatsby/issues/19618\n if (page && page.error) {\n console.error(message)\n throw page.error\n }\n\n throw new Error(message)\n }\n\n const SiteRoot = apiRunner(\n `wrapRootElement`,\n { element: },\n ,\n ({ result }) => {\n return { element: result }\n }\n ).pop()\n\n const App = function App() {\n const onClientEntryRanRef = React.useRef(false)\n\n React.useEffect(() => {\n if (!onClientEntryRanRef.current) {\n onClientEntryRanRef.current = true\n if (performance.mark) {\n performance.mark(`onInitialClientRender`)\n }\n\n apiRunner(`onInitialClientRender`)\n }\n }, [])\n\n return {SiteRoot}\n }\n\n const focusEl = document.getElementById(`gatsby-focus-wrapper`)\n\n // Client only pages have any empty body so we just do a normal\n // render to avoid React complaining about hydration mis-matches.\n let defaultRenderer = render\n if (focusEl && focusEl.children.length) {\n defaultRenderer = hydrate\n }\n\n const renderer = apiRunner(\n `replaceHydrateFunction`,\n undefined,\n defaultRenderer\n )[0]\n\n function runRender() {\n const rootElement =\n typeof window !== `undefined`\n ? document.getElementById(`___gatsby`)\n : null\n\n renderer(, rootElement)\n }\n\n // https://github.com/madrobby/zepto/blob/b5ed8d607f67724788ec9ff492be297f64d47dfc/src/zepto.js#L439-L450\n // TODO remove IE 10 support\n const doc = document\n if (\n doc.readyState === `complete` ||\n (doc.readyState !== `loading` && !doc.documentElement.doScroll)\n ) {\n setTimeout(function () {\n runRender()\n }, 0)\n } else {\n const handler = function () {\n doc.removeEventListener(`DOMContentLoaded`, handler, false)\n window.removeEventListener(`load`, handler, false)\n\n runRender()\n }\n\n doc.addEventListener(`DOMContentLoaded`, handler, false)\n window.addEventListener(`load`, handler, false)\n }\n\n return\n })\n})\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nimport loader from \"./loader\"\nimport InternalPageRenderer from \"./page-renderer\"\n\nconst ProdPageRenderer = ({ location }) => {\n const pageResources = loader.loadPageSync(location.pathname)\n if (!pageResources) {\n return null\n }\n return React.createElement(InternalPageRenderer, {\n location,\n pageResources,\n ...pageResources.json,\n })\n}\n\nProdPageRenderer.propTypes = {\n location: PropTypes.shape({\n pathname: PropTypes.string.isRequired,\n }).isRequired,\n}\n\nexport default ProdPageRenderer\n","const preferDefault = m => (m && m.default) || m\n\nif (process.env.BUILD_STAGE === `develop`) {\n module.exports = preferDefault(require(`./public-page-renderer-dev`))\n} else if (process.env.BUILD_STAGE === `build-javascript`) {\n module.exports = preferDefault(require(`./public-page-renderer-prod`))\n} else {\n module.exports = () => null\n}\n","const map = new WeakMap()\n\nexport function reactDOMUtils() {\n const reactDomClient = require(`react-dom/client`)\n\n const render = (Component, el) => {\n let root = map.get(el)\n if (!root) {\n map.set(el, (root = reactDomClient.createRoot(el)))\n }\n root.render(Component)\n }\n\n const hydrate = (Component, el) => reactDomClient.hydrateRoot(el, Component)\n\n return { render, hydrate }\n}\n","exports.polyfill = Component => Component\n","import redirects from \"./redirects.json\"\n\n// Convert to a map for faster lookup in maybeRedirect()\n\nconst redirectMap = new Map()\nconst redirectIgnoreCaseMap = new Map()\n\nredirects.forEach(redirect => {\n if (redirect.ignoreCase) {\n redirectIgnoreCaseMap.set(redirect.fromPath, redirect)\n } else {\n redirectMap.set(redirect.fromPath, redirect)\n }\n})\n\nexport function maybeGetBrowserRedirect(pathname) {\n let redirect = redirectMap.get(pathname)\n if (!redirect) {\n redirect = redirectIgnoreCaseMap.get(pathname.toLowerCase())\n }\n return redirect\n}\n","import { apiRunner } from \"./api-runner-browser\"\n\nif (\n window.location.protocol !== `https:` &&\n window.location.hostname !== `localhost`\n) {\n console.error(\n `Service workers can only be used over HTTPS, or on localhost for development`\n )\n} else if (`serviceWorker` in navigator) {\n navigator.serviceWorker\n .register(`${__BASE_PATH__}/sw.js`)\n .then(function (reg) {\n reg.addEventListener(`updatefound`, () => {\n apiRunner(`onServiceWorkerUpdateFound`, { serviceWorker: reg })\n // The updatefound event implies that reg.installing is set; see\n // https://w3c.github.io/ServiceWorker/#service-worker-registration-updatefound-event\n const installingWorker = reg.installing\n console.log(`installingWorker`, installingWorker)\n installingWorker.addEventListener(`statechange`, () => {\n switch (installingWorker.state) {\n case `installed`:\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and the fresh content will\n // have been added to the cache.\n\n // We set a flag so Gatsby Link knows to refresh the page on next navigation attempt\n window.___swUpdated = true\n // We call the onServiceWorkerUpdateReady API so users can show update prompts.\n apiRunner(`onServiceWorkerUpdateReady`, { serviceWorker: reg })\n\n // If resources failed for the current page, reload.\n if (window.___failedResources) {\n console.log(`resources failed, SW updated - reloading`)\n window.location.reload()\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a \"Content is cached for offline use.\" message.\n console.log(`Content is now available offline!`)\n\n // Post to service worker that install is complete.\n // Delay to allow time for the event listener to be added --\n // otherwise fetch is called too soon and resources aren't cached.\n apiRunner(`onServiceWorkerInstalled`, { serviceWorker: reg })\n }\n break\n\n case `redundant`:\n console.error(`The installing service worker became redundant.`)\n apiRunner(`onServiceWorkerRedundant`, { serviceWorker: reg })\n break\n\n case `activated`:\n apiRunner(`onServiceWorkerActive`, { serviceWorker: reg })\n break\n }\n })\n })\n })\n .catch(function (e) {\n console.error(`Error during service worker registration:`, e)\n })\n}\n","import React from \"react\"\n\nconst SlicesResultsContext = React.createContext({})\nconst SlicesContext = React.createContext({})\nconst SlicesMapContext = React.createContext({})\nconst SlicesPropsContext = React.createContext({})\n\nexport {\n SlicesResultsContext,\n SlicesContext,\n SlicesMapContext,\n SlicesPropsContext,\n}\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport { createServerOrClientContext } from \"./context-utils\"\n\nconst StaticQueryContext = createServerOrClientContext(`StaticQuery`, {})\n\nfunction StaticQueryDataRenderer({ staticQueryData, data, query, render }) {\n const finalData = data\n ? data.data\n : staticQueryData[query] && staticQueryData[query].data\n\n return (\n \n {finalData && render(finalData)}\n {!finalData &&
Loading (StaticQuery)
}\n
\n )\n}\n\nlet warnedAboutStaticQuery = false\n\n// TODO(v6): Remove completely\nconst StaticQuery = props => {\n const { data, query, render, children } = props\n\n if (process.env.NODE_ENV === `development` && !warnedAboutStaticQuery) {\n console.warn(\n `The component is deprecated and will be removed in Gatsby v6. Use useStaticQuery instead. Refer to the migration guide for more information: https://gatsby.dev/migrating-4-to-5/#staticquery--is-deprecated`\n )\n warnedAboutStaticQuery = true\n }\n\n return (\n \n {staticQueryData => (\n \n )}\n \n )\n}\n\nStaticQuery.propTypes = {\n data: PropTypes.object,\n query: PropTypes.string.isRequired,\n render: PropTypes.func,\n children: PropTypes.func,\n}\n\nconst useStaticQuery = query => {\n if (\n typeof React.useContext !== `function` &&\n process.env.NODE_ENV === `development`\n ) {\n // TODO(v5): Remove since we require React >= 18\n throw new Error(\n `You're likely using a version of React that doesn't support Hooks\\n` +\n `Please update React and ReactDOM to 16.8.0 or later to use the useStaticQuery hook.`\n )\n }\n\n const context = React.useContext(StaticQueryContext)\n\n // query is a stringified number like `3303882` when wrapped with graphql, If a user forgets\n // to wrap the query in a grqphql, then casting it to a Number results in `NaN` allowing us to\n // catch the misuse of the API and give proper direction\n if (isNaN(Number(query))) {\n throw new Error(`useStaticQuery was called with a string but expects to be called using \\`graphql\\`. Try this:\n\nimport { useStaticQuery, graphql } from 'gatsby';\n\nuseStaticQuery(graphql\\`${query}\\`);\n`)\n }\n\n if (context[query]?.data) {\n return context[query].data\n } else {\n throw new Error(\n `The result of this StaticQuery could not be fetched.\\n\\n` +\n `This is likely a bug in Gatsby and if refreshing the page does not fix it, ` +\n `please open an issue in https://github.com/gatsbyjs/gatsby/issues`\n )\n }\n}\n\nexport { StaticQuery, StaticQueryContext, useStaticQuery }\n","import React from \"react\"\n\n// Ensure serverContext is not created more than once as React will throw when creating it more than once\n// https://github.com/facebook/react/blob/dd2d6522754f52c70d02c51db25eb7cbd5d1c8eb/packages/react/src/ReactServerContext.js#L101\nconst createServerContext = (name, defaultValue = null) => {\n /* eslint-disable no-undef */\n if (!globalThis.__SERVER_CONTEXT) {\n globalThis.__SERVER_CONTEXT = {}\n }\n\n if (!globalThis.__SERVER_CONTEXT[name]) {\n globalThis.__SERVER_CONTEXT[name] = React.createServerContext(\n name,\n defaultValue\n )\n }\n\n return globalThis.__SERVER_CONTEXT[name]\n}\n\nfunction createServerOrClientContext(name, defaultValue) {\n if (React.createServerContext) {\n return createServerContext(name, defaultValue)\n }\n\n return React.createContext(defaultValue)\n}\n\nexport { createServerOrClientContext }\n","/**\n * Remove a prefix from a string. Return the input string if the given prefix\n * isn't found.\n */\n\nexport default function stripPrefix(str, prefix = ``) {\n if (!prefix) {\n return str\n }\n\n if (str === prefix) {\n return `/`\n }\n\n if (str.startsWith(`${prefix}/`)) {\n return str.slice(prefix.length)\n }\n\n return str\n}\n","import { getDeviceInfo } from \"@puregym/utilities\";\r\n\r\nconst { isBrowser } = getDeviceInfo();\r\n\r\nexport const pushDataLayer = (data, timeout = 2000) => {\r\n if (isBrowser) {\r\n return new Promise((resolve) => {\r\n window.dataLayer.push({\r\n ...data,\r\n\r\n eventCallback: () => {\r\n resolve();\r\n },\r\n });\r\n setTimeout(resolve, timeout);\r\n });\r\n } else {\r\n return Promise.resolve();\r\n }\r\n};\r\n","import { useState, useEffect } from \"react\";\r\n\r\n/**\r\n * This hook checks if the viewport matches the query passed.\r\n * Based on https://material-ui.com/components/use-media-query/.\r\n *\r\n * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList#Browser_compatibility\r\n */\r\nconst useMediaQuery = (query: string, options = {}) => {\r\n const supportMatchMedia =\r\n typeof window !== \"undefined\" && typeof window.matchMedia !== \"undefined\";\r\n\r\n const queryValue = query.replace(/^@media( ?)/m, \"\");\r\n\r\n const {\r\n defaultMatches = false,\r\n matchMedia = supportMatchMedia ? window.matchMedia : null,\r\n } = {\r\n ...options,\r\n };\r\n\r\n /**\r\n * @todo matchMedia(query).matches always returns false on first run.\r\n * Need to investigate. We could do this otherwise:\r\n * if (supportMatchMedia) {\r\n * return matchMedia(query).matches;\r\n * }\r\n *\r\n */\r\n const [match, setMatch] = useState(() => {\r\n // Once the component is mounted, we rely on the\r\n // event listeners to return the correct matches value.\r\n return defaultMatches;\r\n });\r\n\r\n useEffect(() => {\r\n if (!supportMatchMedia) {\r\n return undefined;\r\n }\r\n\r\n const queryList = matchMedia(queryValue);\r\n\r\n const updateMatch = () => {\r\n setMatch(queryList.matches);\r\n };\r\n\r\n updateMatch();\r\n\r\n /** @todo replace with `add/removeEventListener when Safari supports it */\r\n queryList.addListener(updateMatch);\r\n\r\n return () => queryList.removeListener(updateMatch);\r\n }, [queryValue, matchMedia, supportMatchMedia]);\r\n\r\n return match;\r\n};\r\n\r\nexport default useMediaQuery;\r\n","import { useState } from \"react\";\r\nimport Cookies from \"js-cookie\";\r\nimport { COOKIES } from \"@puregym/ui\";\r\n\r\nconst useAuthentication = () => {\r\n const [authenticationCookie] = useState(() => Cookies.get(COOKIES.AUTH_HINT));\r\n const [studentCookie] = useState(() =>\r\n Cookies.get(COOKIES.STUDENT_PROMO)\r\n );\r\n\r\n return {\r\n isAuthenticated: authenticationCookie !== undefined,\r\n isStudent: studentCookie !== undefined,\r\n };\r\n};\r\n\r\nexport default useAuthentication;\r\n","import { useEffect, useState } from \"react\";\n\n/**\n * Will return a truthy value when hydration has occurred\n */\nconst useHydration = () => {\n const [enabled, setEnabled] = useState(false);\n\n useEffect(() => {\n setEnabled(true);\n }, []);\n\n return enabled;\n};\n\nexport default useHydration;\n","/* \n The currency format for amounts that can be simplified to just their integer part.\n e.g £1.00 => £1\n*/\nexport const currencyFormatInteger = new Intl.NumberFormat(\n process.env.GATSBY_LOCALE,\n {\n style: \"currency\",\n currency: process.env.GATSBY_CURRENCY,\n minimumFractionDigits: 0,\n maximumFractionDigits: 0,\n }\n);\n\n/*\n The currency format for amounts that cannot be simplified to just their integer part.\n i.e those that have a non-zero decimal part.\n e.g £1.5 => £1.50;\n*/\nexport const currencyFormatDecimal = new Intl.NumberFormat(\n process.env.GATSBY_LOCALE,\n {\n style: \"currency\",\n currency: process.env.GATSBY_CURRENCY,\n minimumFractionDigits: 2,\n }\n);\n\n/*\n Retrieves the currency format for the specified value with custom options applied on top of the defaults.\n*/\nexport const getCurrencyFormatWithOptions = (\n inputValue: number,\n options: Intl.NumberFormatOptions,\n): Intl.NumberFormat => {\n const integerFormat: Intl.NumberFormatOptions = {\n style: \"currency\",\n minimumFractionDigits: 0,\n maximumFractionDigits: 0,\n };\n\n const decimalFormat: Intl.NumberFormatOptions = {\n style: \"currency\",\n minimumFractionDigits: 2,\n };\n\n const formatOptions = inputValue % 1 == 0 ? integerFormat : decimalFormat;\n\n const newOptions = {\n ...formatOptions,\n options,\n };\n\n return new Intl.NumberFormat(process.env.GATSBY_LOCALE, newOptions);\n};\n\n/*\n Retrieves the currency format for the specified value.\n*/\nexport const getCurrencyFormat = (inputValue: number): Intl.NumberFormat =>\n inputValue % 1 == 0 ? currencyFormatInteger : currencyFormatDecimal;\n\n/*\n Retrieves and applies the currency format for the specified value.\n*/\nexport const applyCurrencyFormat = (inputValue: number): string =>\n getCurrencyFormat(inputValue).format(inputValue);\n","import { ReactElement, useState, useEffect } from \"react\";\n\n/**\n * ClientOnly is used to defer loading of content. It takes `children`\n * and `fallback` as props.\n *\n * @param {*} children - Returns any `children`\n * @param {ReactElement} fallback - Fallback while `children` are rendering\n *\n */\n\nconst ClientOnly = ({\n children,\n fallback,\n}: {\n children: ReactElement;\n fallback: ReactElement;\n}) => {\n const [hasMounted, setHasMounted] = useState(false);\n\n useEffect(() => {\n setHasMounted(true);\n }, []);\n\n if (!hasMounted) {\n return fallback;\n }\n\n return children;\n};\n\nexport { ClientOnly };\n","const getDeviceInfo = () => {\r\n const isBrowser = !!(\r\n typeof window !== \"undefined\" &&\r\n window.document &&\r\n window.document.createElement\r\n );\r\n\r\n return {\r\n isBrowser,\r\n allowMotion:\r\n isBrowser && !window.matchMedia(\"(prefers-reduced-motion)\").matches,\r\n };\r\n};\r\n\r\nexport { getDeviceInfo };\r\n","const contentType = \"Content-Type\";\r\nconst applicationJson = \"application/json\";\r\nconst problemJson = \"application/problem+json\";\r\n\r\nconst get = async (\r\n url: string,\r\n data?: Record,\r\n headers?: Record\r\n) => {\r\n try {\r\n if (data) {\r\n url += `?${new URLSearchParams(data)}`;\r\n }\r\n const response = await fetch(url, headers && { headers });\r\n return await formatResponse(response);\r\n } catch {\r\n return {\r\n ok: false,\r\n body: null,\r\n };\r\n }\r\n};\r\n\r\nconst post = async (\r\n url: string,\r\n data?: Record,\r\n headers?: Record\r\n) => {\r\n try {\r\n const response = await fetch(url, {\r\n method: \"POST\",\r\n headers: {\r\n [contentType]: applicationJson,\r\n ...headers,\r\n },\r\n body: JSON.stringify(data),\r\n });\r\n return await formatResponse(response);\r\n } catch {\r\n return {\r\n ok: false,\r\n body: null,\r\n };\r\n }\r\n};\r\n\r\nconst formatResponse = async (response: Response) => {\r\n const responseContent = response.headers.get(contentType);\r\n const isJson =\r\n responseContent &&\r\n (responseContent.startsWith(applicationJson) ||\r\n responseContent.startsWith(problemJson));\r\n return {\r\n ok: response.ok,\r\n body: isJson ? await response.json() : null,\r\n };\r\n};\r\n\r\nexport { get, post };\r\n","const interpolateTemplate = (\r\n label: string,\r\n replacements: Record\r\n) => {\r\n if (!replacements) {\r\n return label;\r\n }\r\n\r\n for (const [key, value] of Object.entries(replacements)) {\r\n label = label.replace(`{${key}}`, value);\r\n }\r\n return label;\r\n};\r\n\r\nexport { interpolateTemplate };\r\n","const listOfMetricsSend = new Set();\nfunction debounce(fn, timeout) {\n let timer = null;\n return function (...args) {\n if (timer) {\n clearTimeout(timer);\n }\n timer = setTimeout(fn, timeout, ...args);\n };\n}\nfunction sendWebVitals(dataLayerName = `dataLayer`) {\n const win = window;\n function sendData(data) {\n if (listOfMetricsSend.has(data.name)) {\n return;\n }\n listOfMetricsSend.add(data.name);\n sendToGTM(data, win[dataLayerName]);\n }\n return import(`web-vitals/base`).then(({\n getLCP,\n getFID,\n getCLS\n }) => {\n const debouncedCLS = debounce(sendData, 3000);\n // we don't need to debounce FID - we send it when it happens\n const debouncedFID = sendData;\n // LCP can occur multiple times so we debounce it\n const debouncedLCP = debounce(sendData, 3000);\n\n // With the true flag, we measure all previous occurences too, in case we start listening to late.\n getCLS(debouncedCLS, true);\n getFID(debouncedFID, true);\n getLCP(debouncedLCP, true);\n });\n}\nfunction sendToGTM({\n name,\n value,\n id\n}, dataLayer) {\n dataLayer.push({\n event: `core-web-vitals`,\n webVitalsMeasurement: {\n name: name,\n // The `id` value will be unique to the current page load. When sending\n // multiple values from the same page (e.g. for CLS), Google Analytics can\n // compute a total by grouping on this ID (note: requires `eventLabel` to\n // be a dimension in your report).\n id,\n // Google Analytics metrics must be integers, so the value is rounded.\n // For CLS the value is first multiplied by 1000 for greater precision\n // (note: increase the multiplier for greater precision if needed).\n value: Math.round(name === `CLS` ? value * 1000 : value)\n }\n });\n}\nexport function onRouteUpdate(_, pluginOptions) {\n if (process.env.NODE_ENV === `production` || pluginOptions.includeInDevelopment) {\n // wrap inside a timeout to ensure the title has properly been changed\n setTimeout(() => {\n const data = pluginOptions.dataLayerName ? window[pluginOptions.dataLayerName] : window.dataLayer;\n const eventName = pluginOptions.routeChangeEventName ? pluginOptions.routeChangeEventName : `gatsby-route-change`;\n data.push({\n event: eventName\n });\n }, 50);\n }\n}\nexport function onInitialClientRender(_, pluginOptions) {\n // we only load the polyfill in production so we can't enable it in development\n if (process.env.NODE_ENV === `production` && pluginOptions.enableWebVitalsTracking) {\n sendWebVitals(pluginOptions.dataLayerName);\n }\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _styledComponents = require(\"styled-components\");\n// eslint-disable-next-line react/prop-types,react/display-name\nexports.wrapRootElement = function (_ref, pluginOptions) {\n var element = _ref.element;\n return /*#__PURE__*/_react.default.createElement(_styledComponents.StyleSheetManager, {\n disableVendorPrefixes: (pluginOptions === null || pluginOptions === void 0 ? void 0 : pluginOptions.disableVendorPrefixes) === true\n }, element);\n};","function t(){t=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},a=i.iterator||\"@@iterator\",c=i.asyncIterator||\"@@asyncIterator\",u=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),c=new O(n||[]);return o(a,\"_invoke\",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var h={};function d(){}function p(){}function v(){}var y={};f(y,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(j([])));g&&g!==r&&n.call(g,a)&&(y=g);var w=v.prototype=d.prototype=Object.create(y);function b(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,c){var u=s(t[o],t,i);if(\"throw\"!==u.type){var f=u.arg,l=f.value;return l&&\"object\"==typeof l&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,c)}),(function(t){r(\"throw\",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r(\"throw\",t,a,c)}))}c(u.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function x(t,e,r){var n=\"suspendedStart\";return function(o,i){if(\"executing\"===n)throw new Error(\"Generator is already running\");if(\"completed\"===n){if(\"throw\"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===h)continue;return c}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(\"suspendedStart\"===n)throw n=\"completed\",r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);n=\"executing\";var u=s(t,e,r);if(\"normal\"===u.type){if(n=r.done?\"completed\":\"suspendedYield\",u.arg===h)continue;return{value:u.arg,done:r.done}}\"throw\"===u.type&&(n=\"completed\",r.method=\"throw\",r.arg=u.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,\"throw\"===r&&t.iterator.return&&(e.method=\"return\",e.arg=void 0,L(t,e),\"throw\"===e.method)||\"return\"!==r&&(e.method=\"throw\",e.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),h;var o=s(n,t.iterator,e.arg);if(\"throw\"===o.type)return e.method=\"throw\",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,\"return\"!==e.method&&(e.method=\"next\",e.arg=void 0),e.delegate=null,h):i:(e.method=\"throw\",e.arg=new TypeError(\"iterator result is not an object\"),e.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if(\"root\"===i.tryLoc)return r(\"end\");if(i.tryLoc<=this.prev){var c=n.call(i,\"catchLoc\"),u=n.call(i,\"finallyLoc\");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;k(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},\"next\"===this.method&&(this.arg=void 0),h}},e}function e(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,o,i,a,c=[],u=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){f=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(f)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}\n/*! js-cookie v3.0.5 | MIT */()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==i[2]?i[2]:\"EN\",t.abrupt(\"return\",new Promise((function(t,e){var i=document.createElement(\"script\");i.id=n,i.async=!0,i.dataset.culture=o,i.dataset.gcmEnabled=\"false\",i.src=r;var a=document.getElementsByTagName(\"script\")[0];a.parentNode.insertBefore(i,a),i.addEventListener(\"load\",t),i.addEventListener(\"error\",e),document.body.appendChild(i)})));case 2:case\"end\":return t.stop()}}),e)})),a=function(){var t=this,n=arguments;return new Promise((function(o,i){var a=r.apply(t,n);function c(t){e(a,o,i,c,u,\"next\",t)}function u(t){e(a,o,i,c,u,\"throw\",t)}c(void 0)}))},a.apply(this,arguments)}var c=!(\"undefined\"==typeof window||!window.document||!window.document.createElement),u=\"pgCookieConsent\",f={FUNCTIONAL:\"functional\",MARKETING:\"marketing\",STATISTIC:\"statistic\"},l={FUNCTIONAL:\"cookie_cat_functional\",MARKETING:\"cookie_cat_marketing\",STATISTIC:\"cookie_cat_statistic\"},s=\"CookieInformationConsentGiven\",h=!1,d=!1,p=0,v=\"EN\",y=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=E(),n={};Object.entries(l).forEach((function(t){var o=r(t,2),i=o[0],a=o[1];n[a]=e[f[i]]})),window.dataLayer.push(n),t&&Object.values(l).forEach((function(t){window.dataLayer.push({event:t})}))},m=function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;if(p>=20)return p=0,void console.warn(\"Max retries reached: error calling cookie script\");var n,o=window.CookieInformationScriptLoaded&&(null===(e=window.CookieConsent)||void 0===e?void 0:e.show)&&d;return o?(h=!1,void(\"function\"==typeof(null===(n=window.CookieConsent)||void 0===n?void 0:n.show)&&window.CookieConsent.show())):h&&!o?(p++,void setTimeout((function(){return t(r)}),250)):(h=!0,w(r),void setTimeout((function(){return t(r)}),250))},g=function(){var t=location.hostname.split(\".\").slice(-2).join(\".\"),e={};Object.entries(f).forEach((function(t){var n=r(t,2),o=n[0],i=n[1];e[i]=!!function(t){var e;return c&&void 0!==window.CookieInformation&&(null===(e=window.CookieInformation)||void 0===e?void 0:e.getConsentGivenFor(t))}(l[o])}));var n=encodeURIComponent(JSON.stringify(e));i.set(u,n,{domain:t,expires:365,sameSite:\"strict\",secure:!0})},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;if(c&&!window.CookieInformationScriptLoaded)try{!function(t,e){a.apply(this,arguments)}(\"https://policy.app.cookieinformation.com/uc.js\",\"CookieConsent\",t)}catch(t){console.error(\"Error loading cookie consent script:\",t)}},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;window.dataLayer=window.dataLayer||[],window.addEventListener(s,(function(){d=!0,g(),y(!1)}),!1),E()?y():w(t)},E=function(){var t=i.get(u);if(!t)return null;try{return JSON.parse(decodeURIComponent(t))}catch(t){return console.error(\"Error retrieving cookie:\",t),!1}},x=function(t){var e=E();if(!e||!t||!Object.values(f).includes(t))return null;try{return e[t]}catch(t){return!1}};export{u as CONSENT_COOKIE_NAME,s as CONSENT_GIVEN_EVENT_NAME,f as CONSENT_TYPES,E as getConsentCookie,x as getUserConsent,b as initCookieConsent,m as renewCookieConsent};\n","import {\n CONSENT_GIVEN_EVENT_NAME,\n getUserConsent,\n} from \"@puregym/cookieconsent\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { usePage } from \"../components/providers/pageContext\";\n\nexport const COOKIE_CONSENT_INITIALISED_EVENT_NAME = \"cookieConsentInitialised\";\n\nexport type CookieConsentType = \"functional\" | \"statistic\" | \"marketing\";\n\nconst useCookieConsentInitilisation = () => {\n const [hasInitialised, setHasInitialised] = useState(false);\n const isEventListenerAdded = useRef(false);\n\n useEffect(() => {\n if (typeof window === \"undefined\" || isEventListenerAdded.current) {\n return;\n }\n\n const handleCookieChange = (_event: CustomEvent) => {\n setHasInitialised(true);\n };\n\n window.addEventListener(\n COOKIE_CONSENT_INITIALISED_EVENT_NAME,\n handleCookieChange as EventListener\n );\n\n isEventListenerAdded.current = true;\n\n return () => {\n window.removeEventListener(\n COOKIE_CONSENT_INITIALISED_EVENT_NAME,\n handleCookieChange as EventListener\n );\n };\n }, []);\n\n return hasInitialised;\n};\n\nexport const useCookieConsent = (consentType: CookieConsentType) => {\n const page = usePage();\n const [cookieValue, setCookieValue] = useState(false);\n const isEventListenerAdded = useRef(false);\n const hasInitialised = useCookieConsentInitilisation();\n\n if (\n process.env.GATSBY_AUTO_ACCEPT_AB_TASTY_COOKIES?.toLowerCase() === \"true\"\n ) {\n return true;\n }\n\n useEffect(() => {\n if (typeof window === \"undefined\") {\n return;\n }\n\n const initialCookieValue = getUserConsent(consentType) ?? false;\n setCookieValue(initialCookieValue);\n }, [consentType, page]);\n\n useEffect(() => {\n if (\n typeof window === \"undefined\" ||\n !hasInitialised ||\n isEventListenerAdded.current\n ) {\n return;\n }\n\n const handleCookieChange = (_event: CustomEvent) => {\n const newCookieValue = getUserConsent(consentType) ?? false;\n setCookieValue(newCookieValue);\n };\n\n window.addEventListener(\n CONSENT_GIVEN_EVENT_NAME,\n handleCookieChange as EventListener\n );\n\n isEventListenerAdded.current = true;\n\n return () => {\n window.removeEventListener(\n CONSENT_GIVEN_EVENT_NAME,\n handleCookieChange as EventListener\n );\n };\n }, [hasInitialised, isEventListenerAdded, consentType]);\n\n return cookieValue;\n};\n\nexport default useCookieConsent;\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport { css } from 'styled-components';\n\nvar _templateObject;\nconst toolTipStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n .tippy-box[data-animation='fade'][data-state='hidden'] {\\n opacity: 0;\\n }\\n\\n [data-tippy-root] {\\n max-width: calc(100vw - 10px);\\n }\\n\\n .tippy-box {\\n position: relative;\\n background-color: \", \";\\n color: \", \";\\n border-radius: 4px;\\n font-size: \", \";\\n line-height: 1.4;\\n outline: 0;\\n transition-property: transform, visibility, opacity;\\n\\n &[data-placement^='top'] > .tippy-arrow {\\n bottom: 0;\\n &:before {\\n bottom: -7px;\\n left: 0;\\n border-width: 8px 8px 0;\\n border-top-color: initial;\\n transform-origin: center top;\\n }\\n }\\n\\n &[data-placement^='bottom'] > .tippy-arrow {\\n top: 0;\\n &:before {\\n top: -7px;\\n left: 0;\\n border-width: 0 8px 8px;\\n border-bottom-color: initial;\\n transform-origin: center bottom;\\n }\\n }\\n\\n &[data-placement^='left'] > .tippy-arrow {\\n right: 0;\\n &:before {\\n border-width: 8px 0 8px 8px;\\n border-left-color: initial;\\n right: -7px;\\n transform-origin: center left;\\n }\\n }\\n\\n &[data-placement^='right'] > .tippy-arrow {\\n left: 0;\\n &:before {\\n left: -7px;\\n border-width: 8px 8px 8px 0;\\n border-right-color: initial;\\n transform-origin: center right;\\n }\\n }\\n\\n &[data-inertia][data-state='visible'] {\\n transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);\\n }\\n }\\n\\n .tippy-arrow {\\n width: 16px;\\n height: 16px;\\n color: \", \";\\n &:before {\\n content: '';\\n position: absolute;\\n border-color: transparent;\\n border-style: solid;\\n }\\n }\\n\\n .tippy-content {\\n position: relative;\\n padding: 5px 9px;\\n z-index: 1;\\n }\\n\\n /* LIGHT */\\n .tippy-box[data-theme~='light'] {\\n color: \", \";\\n box-shadow: 0 0 20px 4px rgba(154, 161, 177, 0.15),\\n 0 4px 80px -8px rgba(36, 40, 47, 0.25),\\n 0 4px 4px -2px rgba(91, 94, 105, 0.15);\\n background-color: \", \";\\n &[data-placement^='top'] > .tippy-arrow:before {\\n border-top-color: \", \";\\n }\\n &[data-placement^='bottom'] > .tippy-arrow:before {\\n border-bottom-color: \", \";\\n }\\n &[data-placement^='left'] > .tippy-arrow:before {\\n border-left-color: \", \";\\n }\\n &[data-placement^='right'] > .tippy-arrow:before {\\n border-right-color: \", \";\\n }\\n > .tippy-backdrop {\\n background-color: \", \";\\n }\\n > .tippy-svg-arrow {\\n fill: \", \";\\n }\\n }\\n\"])), _ref => {\n let {\n theme\n } = _ref;\n return theme.colors.accents.dark;\n}, _ref2 => {\n let {\n theme\n } = _ref2;\n return theme.colors.text.contrastText;\n}, _ref3 => {\n let {\n theme\n } = _ref3;\n return theme.fontSizes.small;\n}, _ref4 => {\n let {\n theme\n } = _ref4;\n return theme.colors.accents.dark;\n}, _ref5 => {\n let {\n theme\n } = _ref5;\n return theme.colors.text;\n}, _ref6 => {\n let {\n theme\n } = _ref6;\n return theme.colors.background;\n}, _ref7 => {\n let {\n theme\n } = _ref7;\n return theme.colors.background;\n}, _ref8 => {\n let {\n theme\n } = _ref8;\n return theme.colors.background;\n}, _ref9 => {\n let {\n theme\n } = _ref9;\n return theme.colors.background;\n}, _ref10 => {\n let {\n theme\n } = _ref10;\n return theme.colors.background;\n}, _ref11 => {\n let {\n theme\n } = _ref11;\n return theme.colors.background;\n}, _ref12 => {\n let {\n theme\n } = _ref12;\n return theme.colors.background;\n});\n\nexport { toolTipStyles };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport { css } from 'styled-components';\n\nvar _templateObject;\nconst reachTabStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n /** Removes warning for styles */\\n :root {\\n --reach-tabs: 1;\\n }\\n\"])));\n\nexport { reachTabStyles };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport { createGlobalStyle } from 'styled-components';\nimport theme from 'styled-theming';\nimport { normalize } from 'styled-normalize';\nimport { toolTipStyles } from '../ui/tooltip/styles.js';\nimport { reachTabStyles } from '../ui/tabs/styles.js';\n\nvar _templateObject;\nconst GlobalStyles = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n \", \"\\n\\n /** Use a better box model */\\n *,\\n *::before,\\n *::after {\\n box-sizing: border-box;\\n }\\n\\n /** Allow for easy page layout */\\n html, body { min-height: 100%; }\\n\\n html {\\n font-size: 62.5%;\\n }\\n\\n /** Padding set with !important to prevent double scrollbar being added by plugin:\\n * https://github.com/theKashey/react-remove-scroll-bar/blob/master/src/component.tsx\\n * Haven't been able to identify why the padding is incorrectly calculated.\\n */\\n body {\\n color: \", \";\\n font-size: \", \";\\n font-family: \", \";\\n line-height: \", \";\\n padding: 0 !important;\\n\\n &[dir='rtl'], [dir='rtl'] & {\\n font-family: \", \";\\n line-height: \", \";\\n }\\n }\\n\\n ::selection {\\n \", \"\\n }\\n\\n a {\\n color: \", \";\\n transition: \", \";\\n \\n &:hover,\\n &:focus,\\n &:active {\\n text-decoration: none;\\n color: \", \";\\n }\\n }\\n\\n p {\\n margin-top: 0;\\n }\\n\\n :focus {\\n outline: none;\\n }\\n\\n :focus-visible {\\n box-shadow: \", \";\\n }\\n\\n /** 3rd party plugin styling */\\n \", \"\\n \", \"\\n\"])), normalize, _ref => {\n let {\n theme\n } = _ref;\n return theme.colors.text;\n}, _ref2 => {\n let {\n theme\n } = _ref2;\n return theme.fontSizes.standard;\n}, _ref3 => {\n let {\n theme\n } = _ref3;\n return theme.fonts.body;\n}, _ref4 => {\n let {\n theme\n } = _ref4;\n return theme.lineHeights.body;\n}, _ref5 => {\n let {\n theme\n } = _ref5;\n return theme.rtlFonts.body;\n}, _ref6 => {\n let {\n theme\n } = _ref6;\n return theme.rtlLineHeights.body;\n}, _ref7 => {\n let {\n theme: {\n colors\n }\n } = _ref7;\n return theme('mode', {\n light: \"\\n background: \".concat(colors.primary.main, \";\\n color: \").concat(colors.primary.contrastText, \";\\n \"),\n dark: \"\\n background: \".concat(colors.primary.light, \";\\n color: \").concat(colors.primary.contrastTextLight, \";\\n \")\n });\n}, _ref8 => {\n let {\n theme: {\n colors\n }\n } = _ref8;\n return theme('mode', {\n light: colors.primary.main,\n dark: colors.primary.light\n });\n}, _ref9 => {\n let {\n theme\n } = _ref9;\n return theme.transitionsMs.default;\n}, _ref10 => {\n let {\n theme: {\n colors\n }\n } = _ref10;\n return theme('mode', {\n light: colors.primary.dark,\n dark: colors.primary.main\n });\n}, _ref11 => {\n let {\n theme\n } = _ref11;\n return theme.boxShadows.focus;\n}, reachTabStyles, toolTipStyles);\n\nexport { GlobalStyles };\n","import { ThemeProvider as ThemeProvider$1 } from 'styled-components';\nimport { ErrorBoundary } from 'react-error-boundary';\nimport { GlobalStyles } from './globalStyles.js';\nimport { jsx, jsxs } from 'react/jsx-runtime';\n\nconst ErrorFallback = _ref => {\n let {\n error\n } = _ref;\n return /*#__PURE__*/jsxs(\"div\", {\n role: \"alert\",\n children: [/*#__PURE__*/jsxs(\"p\", {\n children: [\"Something went wrong within your \", /*#__PURE__*/jsx(\"code\", {\n children: \"ThemeProvider\"\n }), \":\"]\n }), /*#__PURE__*/jsx(\"pre\", {\n children: error.message\n })]\n });\n};\nconst ThemeProvider = _ref2 => {\n let {\n children,\n theme\n } = _ref2;\n return /*#__PURE__*/jsx(ErrorBoundary, {\n FallbackComponent: ErrorFallback,\n children: /*#__PURE__*/jsxs(ThemeProvider$1, {\n theme: theme,\n children: [/*#__PURE__*/jsx(GlobalStyles, {}), children]\n })\n });\n};\n\nexport { ThemeProvider };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport { forwardRef } from 'react';\nimport styled from 'styled-components';\nimport { maxWidthLayoutStyles } from '../../utils/styleHelpers.js';\nimport { jsx } from 'react/jsx-runtime';\nexport { PageHeader } from './pageHeader.js';\nexport { PageFooter } from './pageFooter.js';\n\nvar _templateObject, _templateObject2, _templateObject3;\nconst Page = /*#__PURE__*/styled.div.withConfig({\n displayName: \"page__Page\",\n componentId: \"sc-14gzlcj-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n isolation: isolate;\\n display: flex;\\n flex-direction: column;\\n min-height: 100vh;\\n background-color: \", \";\\n\"])), _ref => {\n let {\n theme\n } = _ref;\n return theme.colors.background;\n});\nconst PageMainContainer = /*#__PURE__*/styled.div.withConfig({\n displayName: \"page__PageMainContainer\",\n componentId: \"sc-14gzlcj-1\"\n})(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n position: relative;\\n display: flex;\\n flex-direction: column;\\n flex-grow: 1;\\n padding: \", \";\\n\\n &:focus-visible {\\n box-shadow: none;\\n }\\n\\n \", \" {\\n padding: \", \";\\n }\\n\"])), _ref2 => {\n let {\n theme,\n fullWidth\n } = _ref2;\n return !fullWidth && theme.spacing.threeQuarterSpacing;\n}, _ref3 => {\n let {\n theme\n } = _ref3;\n return theme.mediaQueries.md;\n}, _ref4 => {\n let {\n theme,\n fullWidth\n } = _ref4;\n return !fullWidth && theme.spacing.doubleSpacing;\n});\nconst PageMainInner = /*#__PURE__*/styled.div.withConfig({\n displayName: \"page__PageMainInner\",\n componentId: \"sc-14gzlcj-2\"\n})(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([\"\\n min-height: 100%;\\n \", \"\\n\"])), maxWidthLayoutStyles);\nconst PageMain = /*#__PURE__*/forwardRef(function PageMain(_ref5, ref) {\n let {\n children,\n fullWidth,\n ...rest\n } = _ref5;\n return /*#__PURE__*/jsx(PageMainContainer, {\n fullWidth: fullWidth,\n ref: ref,\n ...rest,\n tabIndex: \"-1\",\n children: fullWidth ? children : /*#__PURE__*/jsx(PageMainInner, {\n children: children\n })\n });\n});\n\nexport { Page, PageMain };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport { forwardRef } from 'react';\nimport styled from 'styled-components';\nimport { jsx } from 'react/jsx-runtime';\n\nvar _templateObject, _templateObject2;\nconst SkipLinkWrapper = /*#__PURE__*/styled.div.withConfig({\n displayName: \"skipLink__SkipLinkWrapper\",\n componentId: \"sc-onmfdm-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n overflow: hidden;\\n white-space: nowrap;\\n\"])));\nconst SkipLinkAnchor = /*#__PURE__*/styled.a.withConfig({\n displayName: \"skipLink__SkipLinkAnchor\",\n componentId: \"sc-onmfdm-1\"\n})(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n position: absolute;\\n left: -9999em;\\n top: -1rem;\\n z-index: 1;\\n display: inline-block;\\n margin-inline-start: \", \";\\n padding: \", \";\\n border-bottom-left-radius: \", \";\\n border-bottom-right-radius: \", \";\\n transition: \", \";\\n\\n [dir='rtl'] & {\\n left: auto;\\n right: -9999em;\\n\\n &:focus {\\n left: auto;\\n right: 0;\\n }\\n }\\n\\n &:focus {\\n left: 0;\\n top: 0;\\n background: \", \";\\n color: \", \";\\n }\\n\\n &:focus-visible {\\n box-shadow: \", \";\\n }\\n\"])), _ref => {\n let {\n theme\n } = _ref;\n return theme.spacing.baseSpacing;\n}, _ref2 => {\n let {\n theme\n } = _ref2;\n return \"0 \".concat(theme.spacing.halfSpacing);\n}, _ref3 => {\n let {\n theme\n } = _ref3;\n return theme.radii.half;\n}, _ref4 => {\n let {\n theme\n } = _ref4;\n return theme.radii.half;\n}, _ref5 => {\n let {\n theme\n } = _ref5;\n return \"top \".concat(theme.transitionsMs.fast);\n}, _ref6 => {\n let {\n theme\n } = _ref6;\n return theme.colors.primary.dark;\n}, _ref7 => {\n let {\n theme\n } = _ref7;\n return theme.colors.primary.contrastText;\n}, _ref8 => {\n let {\n theme\n } = _ref8;\n return \"0 0 0 2px \".concat(theme.colors.primary.light);\n});\nconst SkipLink = /*#__PURE__*/forwardRef(function SkipLink(_ref9, ref) {\n let {\n children,\n href,\n ...rest\n } = _ref9;\n return /*#__PURE__*/jsx(SkipLinkWrapper, {\n children: /*#__PURE__*/jsx(SkipLinkAnchor, {\n href: href,\n ref: ref,\n ...rest,\n children: children\n })\n });\n});\n\nexport { SkipLink };\n","import { useAuthentication } from \"@puregym/react-hooks\";\r\nimport { Banner as PureBanner } from \"@puregym/ui\";\r\nimport * as React from \"react\";\r\nimport { useEffect, useState } from \"react\";\r\n\r\nconst Banner = ({ anonymousBanner, authenticatedBanner, studentBanner }) => {\r\n const { isAuthenticated, isStudent } = useAuthentication();\r\n const [bannerType, setBannerType] = useState(\"anonymous\");\r\n\r\n // We need to trigger a rerender because the banner will be SSR'd\r\n // and React will ignore initial differences during hydration\r\n // Update - we now only set the banner type here so we can re-render the banner itself\r\n useEffect(() => {\r\n setBannerType(\r\n isStudent ? \"student\" : isAuthenticated ? \"authenticated\" : \"anonymous\"\r\n );\r\n }, [isAuthenticated, isStudent]);\r\n\r\n const banner =\r\n bannerType === \"student\"\r\n ? studentBanner\r\n : bannerType === \"authenticated\"\r\n ? authenticatedBanner\r\n : anonymousBanner;\r\n\r\n return banner ? (\r\n \r\n ) : null;\r\n};\r\n\r\nexport default Banner;\r\n","import Banner from \"@puregym/gatsby-plugin-banner\";\nimport { useEffect, useState } from \"react\";\nimport { BannerState } from \"../models/bannerState\";\nimport { isGymSelectionPage, isUnder16sJourney } from \"../utilities/page\";\nimport { useJoinState } from \"./providers/joinState\";\nimport { usePage } from \"./providers/pageContext\";\n\nconst StraplineBannerContainer = ({ data }) => {\n const page = usePage();\n const { corporateAgreementId, corporateId } = useJoinState();\n const [bannerState, setBannerState] = useState({\n authenticated: undefined,\n anonymous: undefined,\n student: undefined,\n });\n const straplineBanner = isGymSelectionPage(page)\n ? data?.straplineBanners\n : data?.gym?.straplineBanners;\n\n const isVitalityUser = Boolean(corporateAgreementId && corporateId);\n const isUnder16sPage = isUnder16sJourney(page);\n\n useEffect(() => {\n if (straplineBanner) {\n setBannerState({\n authenticated: straplineBanner.authenticated,\n anonymous: straplineBanner.anonymous,\n student: straplineBanner.student,\n });\n }\n }, [straplineBanner]);\n\n if (isVitalityUser || isUnder16sPage) {\n return;\n }\n\n return (\n \n );\n};\n\nexport default StraplineBannerContainer;\n","import { useAuthentication } from \"@puregym/react-hooks\";\nimport { graphql, useStaticQuery } from \"gatsby\";\nimport { useEffect } from \"react\";\nimport { useRejoinState } from \"./providers/rejoinState\";\n\nconst AuthenticatedRedirect = ({ children }) => {\n const { urls } = useStaticQuery(graphql`\n {\n urls {\n accountMemberDashboard\n }\n }\n `);\n const { isAuthenticated } = useAuthentication();\n const { userId } = useRejoinState();\n\n useEffect(() => {\n if (isAuthenticated && process.env.NODE_ENV === \"production\" && !userId) {\n window.location.replace(urls.accountMemberDashboard);\n }\n }, [isAuthenticated, urls.accountMemberDashboard, userId]);\n\n return children;\n};\n\nexport default AuthenticatedRedirect;\n","import dayjs from \"dayjs\";\nimport { ReactElement, useEffect } from \"react\";\nimport Brand from \"../../models/brand\";\nimport { useBrand } from \"../providers/brandState\";\nimport { useUserState } from \"../providers/userState\";\n\ntype IdentificationType = \"Passport\" | \"NationalId\";\n\nconst getAddress = (brand: Brand) => {\n switch (brand) {\n case \"PGSA\":\n return {\n street: \"Street\",\n district: \"District\",\n province: \"Province\",\n };\n case \"PFUS\":\n return {\n postalCode: \"00000\",\n };\n case \"PGUK\":\n return {\n postalCode: \"W2 2SZ\",\n };\n case \"UAE\":\n return {};\n default:\n throw new Error(\n `Could not provide a default address for unknown brand '${brand}'`\n );\n }\n};\n\nconst getIdentification = (brand: Brand) => {\n switch (brand) {\n case \"UAE\":\n return {\n type: \"NationalId\" as IdentificationType,\n value: \"123-1234-1234567-1\",\n expiryDate: dayjs().add(1, \"day\").toDate(),\n issuingCountry: null,\n };\n case \"PGSA\":\n return {\n type: \"Passport\" as IdentificationType,\n value: \"123456789\",\n issuingCountry: \"AR\",\n expiryDate: null as Date,\n };\n default:\n return {\n type: \"NationalId\" as IdentificationType,\n };\n }\n};\n\nconst getPhoneNumber = (brand: Brand): string => {\n switch (brand) {\n case \"UAE\":\n return \"+971 4 344 9299\";\n case \"PGSA\":\n return \"+966 12 513 9826\";\n case \"PGUK\":\n return \"020 3972 9520\";\n case \"PFUS\":\n return \"+1 877-386-4352\";\n default:\n throw new Error(\n `Could not provide a default phone number for unknown brand '${brand}'`\n );\n }\n};\n\n/**\n * This component will only be included when NODE_ENV is \"development\" so you\n * can use various imports and experimental behavior.\n *\n * If GATSBY_PREPOPULATE_USER_DETAILS is `true`, the user details form will be\n * filled out with dummy data.\n **/\nconst Dev = ({ children }: { children: ReactElement }) => {\n const { dispatch } = useUserState();\n const brand = useBrand();\n\n useEffect(() => {\n // If enabled, prepopulate the user details when the app is hydrated\n if (process.env.GATSBY_PREPOPULATE_USER_DETAILS === \"true\") {\n const unique = crypto.randomUUID().substring(0, 8);\n dispatch({\n type: \"ExistingDetails\",\n payload: {\n emailAddress: `${unique}@test.com`,\n firstName: \"Test\",\n lastName: \"User\",\n postalAddress: getAddress(brand),\n identification: getIdentification(brand),\n gender: \"Male\",\n dateOfBirth: new Date(2000, 0, 1),\n disability: false,\n marketing: true,\n under16sGuardianConsent: true,\n healthAgreement: true,\n termsAndConditions: true,\n telephoneNumber: getPhoneNumber(brand),\n signature: \"Test User\",\n },\n });\n }\n }, [brand, dispatch]);\n\n return children;\n};\n\nexport default Dev;\n","import { HitType, useFlagship } from \"@flagship.io/react-sdk\";\nimport { createContext, useContext, useEffect } from \"react\";\nimport {\n isBoltOnsPage,\n isDayPassPage,\n isDetailsPage,\n isMonthlyPage,\n isPaymentPage,\n isTermSelectionPage,\n} from \"../utilities/page\";\nimport { useJoinState } from \"./providers/joinState\";\nimport { usePage } from \"./providers/pageContext\";\n\nconst FlagshipContext = createContext(undefined);\n\nexport const useFlagshipDataLayer = () => useContext(FlagshipContext);\n\nconst FlagshipDataLayer = ({ children }) => {\n const page = usePage();\n const { hasConsented, sendHits } = useFlagship();\n const { gym, selectedPackage, term } = useJoinState();\n\n useEffect(() => {\n if (isTermSelectionPage(page) && gym) {\n sendHits([\n {\n type: HitType.PAGE_VIEW,\n documentLocation: `/${gym.slug}`,\n },\n { type: HitType.SCREEN_VIEW, documentLocation: \"Choose Gym\" },\n ]);\n }\n }, [page]);\n\n useEffect(() => {\n if (isMonthlyPage(page) && term && selectedPackage) {\n sendHits([\n {\n type: HitType.PAGE_VIEW,\n documentLocation: `/${gym.slug}/monthly`,\n },\n { type: HitType.SCREEN_VIEW, documentLocation: \"Choose Monthly\" },\n ]);\n } else if (isDayPassPage(page) && term && selectedPackage) {\n sendHits([\n {\n type: HitType.PAGE_VIEW,\n documentLocation: `/${gym.slug}/daypasses`,\n },\n { type: HitType.SCREEN_VIEW, documentLocation: \"Choose Day Pass\" },\n ]);\n }\n }, [term, selectedPackage, page]);\n\n useEffect(() => {\n if (isBoltOnsPage(page)) {\n sendHits([\n { type: HitType.SCREEN_VIEW, documentLocation: \"Choose Bolt On\" },\n ]);\n }\n }, [page]);\n\n useEffect(() => {\n if (isDetailsPage(page)) {\n sendHits([\n { type: HitType.PAGE_VIEW, documentLocation: `/details` },\n { type: HitType.SCREEN_VIEW, documentLocation: \"Personal Details\" },\n ]);\n }\n }, [page]);\n\n useEffect(() => {\n if (isPaymentPage(page)) {\n sendHits([\n { type: HitType.PAGE_VIEW, documentLocation: `/payment` },\n { type: HitType.SCREEN_VIEW, documentLocation: \"Payment Details\" },\n ]);\n }\n }, [page]);\n\n if (\n process.env.GATSBY_ENVIRONMENT === \"loadtest\" ||\n process.env.GATSBY_BRAND !== \"PGUK\" ||\n !hasConsented\n ) {\n return children;\n }\n\n const contextValue = {\n page,\n gym,\n selectedPackage,\n term,\n };\n\n return (\n \n {children}\n \n );\n};\n\nexport default FlagshipDataLayer;\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport styled from 'styled-components';\nimport 'react';\nimport { maxWidthLayoutStyles } from '../../utils/styleHelpers.js';\nimport { jsx } from 'react/jsx-runtime';\n\nvar _templateObject, _templateObject2;\nconst Container = /*#__PURE__*/styled.footer.withConfig({\n displayName: \"pageFooter__Container\",\n componentId: \"sc-1ij57np-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n padding: \", \";\\n background-color: \", \";\\n\\n \", \" {\\n padding: \", \";\\n }\\n\"])), _ref => {\n let {\n theme\n } = _ref;\n return theme.spacing.threeQuarterSpacing;\n}, _ref2 => {\n let {\n theme\n } = _ref2;\n return theme.colors.surface;\n}, _ref3 => {\n let {\n theme\n } = _ref3;\n return theme.mediaQueries.md;\n}, _ref4 => {\n let {\n theme\n } = _ref4;\n return \"\".concat(theme.spacing.threeQuarterSpacing, \" \").concat(theme.spacing.doubleSpacing);\n});\nconst Inner = /*#__PURE__*/styled.div.withConfig({\n displayName: \"pageFooter__Inner\",\n componentId: \"sc-1ij57np-1\"\n})(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n \", \"\\n\"])), _ref5 => {\n let {\n fullWidth\n } = _ref5;\n return !fullWidth && maxWidthLayoutStyles;\n});\nconst PageFooter = _ref6 => {\n let {\n children,\n fullWidth,\n ...rest\n } = _ref6;\n return /*#__PURE__*/jsx(Container, {\n ...rest,\n children: /*#__PURE__*/jsx(Inner, {\n fullWidth: fullWidth,\n children: children\n })\n });\n};\n\nexport { PageFooter };\n","import styled from \"styled-components\";\nimport { Heading, PageFooter } from \"@puregym/ui\";\n\nconst StyledPageFooter = styled(PageFooter)`\n & [id=\"language-switcher\"] {\n border-block-end: ${({ theme }) =>\n `1px solid ${theme.colors.accents.muted}`};\n padding-block-end: ${({ theme }) => theme.spacing.baseSpacing};\n }\n & :last-child {\n border-block-end: none;\n padding-block-end: 0;\n }\n`;\n\nconst Languages = styled.div`\n display: flex;\n justify-content: start;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.baseSpacing};\n`;\n\nconst Language = styled.a`\n display: inline-flex;\n font-size: ${({ theme }) => theme.fontSizes.small};\n\n &[dir=\"ltr\"] {\n font-family: ${({ theme }) => theme.fonts.body};\n }\n\n &[dir=\"rtl\"] {\n font-family: ${({ theme }) => theme.rtlFonts.body};\n }\n`;\n\nconst NavWrapper = styled.nav`\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: ${({ theme }) =>\n `${theme.spacing.doubleSpacing} ${theme.spacing.baseSpacing}`};\n padding: ${({ theme }) => `${theme.spacing.baseSpacing} 0`};\n\n ${({ theme }) => theme.mediaQueries.sm} {\n grid-template-columns: repeat(3, 1fr);\n }\n\n ${({ theme }) => theme.mediaQueries.md} {\n grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));\n }\n`;\nconst NavHeading = styled(Heading)`\n margin-block-end: ${({ theme }) => theme.spacing.baseSpacing};\n color: ${({ theme }) => theme.colors.text};\n`;\n\nconst NavLink = styled.a`\n font-size: ${({ theme }) => theme.fontSizes.small};\n color: ${({ theme }) => theme.colors.text};\n text-decoration: none;\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n`;\n\nconst Row = styled.div`\n display: flex;\n flex-direction: column;\n font-size: ${({ theme }) => theme.fontSizes.xsmall};\n margin-block-start: ${({ theme }) => theme.spacing.baseSpacing};\n\n ${({ theme }) => theme.mediaQueries.md} {\n flex-direction: row;\n justify-content: space-between;\n }\n`;\n\nexport {\n StyledPageFooter,\n Languages,\n Language,\n NavWrapper,\n NavHeading,\n NavLink,\n Row,\n};\n","import * as React from \"react\";\nimport { Row } from \"./styles\";\nimport { LegalDataType } from \"./types\";\n\nconst FooterLegal = ({ legalData }: { legalData: LegalDataType }) => {\n /** By default we prepend a copyright icon; in the US we append TM instead */\n const legalDisplayName =\n legalData.id === \"PFUS\"\n ? `${legalData.legalName} \\u2122`\n : `\\u00A9 ${legalData.legalName}`;\n\n return (\n \n {legalDisplayName}\n {legalData.legalNotice}\n \n );\n};\n\nexport default FooterLegal;\n","import * as React from \"react\";\nimport { HEADING_VARIANTS, List, ListItem, LIST_VARIANTS } from \"@puregym/ui\";\nimport { NavWrapper, NavHeading, NavLink } from \"./styles\";\nimport { NavDataType } from \"./types\";\n\nconst FooterNav = ({ navData }: { navData: NavDataType }) => (\n \n {navData.map((navGroup, index) => {\n const groupName = navGroup.name?.toLowerCase().replace(/\\s/g, \"-\");\n const sectionId = `${groupName}-${index}`;\n\n return (\n
\n \n {navGroup.name}\n \n {navGroup.navigationItems && (\n \n {navGroup.navigationItems.map(\n (item, index) =>\n item.to && (\n \n {item.name}\n \n )\n )}\n \n )}\n
\n );\n })}\n
\n);\n\nexport default FooterNav;\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../../_virtual/_rollupPluginBabelHelpers.js';\nimport styled from 'styled-components';\nimport { jsxs, jsx } from 'react/jsx-runtime';\n\nvar _templateObject;\nconst SvgComponent = _ref => {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/jsxs(\"svg\", {\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: 0,\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"1em\",\n height: \"1em\",\n \"aria-labelledby\": titleId,\n ...props,\n children: [title ? /*#__PURE__*/jsx(\"title\", {\n id: titleId,\n children: title\n }) : null, /*#__PURE__*/jsx(\"path\", {\n d: \"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95a15.65 15.65 0 00-1.38-3.56A8.03 8.03 0 0118.92 8zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 015.08 16zm2.95-8H5.08a7.987 7.987 0 014.33-3.56A15.65 15.65 0 008.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 01-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z\",\n stroke: \"none\"\n })]\n });\n};\nconst IconLocale = /*#__PURE__*/styled(SvgComponent).withConfig({\n displayName: \"Locale__IconLocale\",\n componentId: \"sc-76mz01-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n display: inline-flex;\\n vertical-align: middle;\\n\"])));\n\nexport { IconLocale };\n","export const cultures = [\n {\n languageName: \"English\",\n cultureCode: \"en-GB\",\n rtl: false,\n },\n {\n languageName: \"العربية\",\n cultureCode: \"ar-SA\",\n rtl: true,\n },\n {\n languageName: \"العربية\",\n cultureCode: \"ar-AE\",\n rtl: true,\n },\n];\n","import * as React from \"react\";\nimport Cookies from \"js-cookie\";\nimport { IconLocale, COOKIES } from \"@puregym/ui\";\nimport { cultures } from \"./constants\";\nimport { Languages, Language } from \"./styles\";\nimport { Switcher } from \"./types\";\n\n/**\n * Sort language objects array based on culture code.\n * We sort by code to maintain sort order regardless of locale.\n * e.g. Arabic (العربية) appears under 'A' because the code is 'ar'.\n */\nconst sortLanguages = (a, b) => {\n const codeA = a.cultureCode.toLowerCase();\n const codeB = b.cultureCode.toLowerCase();\n\n return codeA.localeCompare(codeB);\n};\n\nconst LanguageSwitcher = ({\n localizedBasePaths,\n defaultLocale,\n locales,\n rootDomain,\n title,\n}: Switcher): JSX.Element => {\n const languageLinks = [...cultures]\n .filter(\n (culture) =>\n locales.includes(culture.cultureCode) &&\n culture.cultureCode in localizedBasePaths\n )\n .sort(sortLanguages)\n .map((culture) => {\n const { cultureCode, languageName, rtl } = culture;\n const isActive = process.env.GATSBY_LOCALE === cultureCode;\n const isDefault = defaultLocale === cultureCode;\n const basePath = localizedBasePaths[cultureCode];\n\n const path = isDefault\n ? `/${basePath}/`\n : `/${cultureCode.toLowerCase()}/${basePath}/`;\n\n const href = path.replace(/\\/{2,}/g, \"/\");\n\n return (\n \n Cookies.set(COOKIES.LANGUAGE, cultureCode, {\n domain: rootDomain,\n expires: 365,\n })\n }\n >\n {languageName}\n \n );\n });\n\n return (\n \n \n {languageLinks}\n \n );\n};\n\nexport default LanguageSwitcher;\n","import * as React from \"react\";\nimport FooterLegal from \"./FooterLegal\";\nimport FooterNav from \"./FooterNav\";\nimport LanguageSwitcher from \"./LanguageSwitcher\";\nimport { Footer } from \"./types\";\nimport { StyledPageFooter } from \"./styles\";\n\nconst SiteFooter = ({\n localizedBasePaths,\n defaultLocale,\n locales,\n rootDomain,\n title,\n navData,\n legalData,\n ...rest\n}: Footer) => {\n const isLanguageSelectorVisible = locales.length > 1 && localizedBasePaths;\n\n return (\n <>\n {(isLanguageSelectorVisible || navData || legalData) && (\n \n {isLanguageSelectorVisible && (\n \n )}\n {navData ? : null}\n {legalData ? : null}\n \n )}\n \n );\n};\n\nexport default SiteFooter;\n","import PluginFooter from \"@puregym/gatsby-plugin-footer\";\nimport { useDeviceInfo } from \"@puregym/ui\";\nimport labels from \"../labels\";\nimport { ClientOnly } from \"@puregym/utilities\";\n\nconst Footer = () => {\n const { isEmbeddedBrowser } = useDeviceInfo();\n const locales = JSON.parse(process.env.GATSBY_LOCALES);\n const basePaths = {};\n for (const locale of locales) {\n basePaths[locale] = \"join\";\n }\n const footer = (\n \n );\n\n return (\n \n {isEmbeddedBrowser ? null : footer}\n \n );\n};\n\nexport default Footer;\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../../_virtual/_rollupPluginBabelHelpers.js';\nimport styled from 'styled-components';\nimport { jsxs, jsx } from 'react/jsx-runtime';\n\nvar _templateObject;\nconst SvgComponent = _ref => {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/jsxs(\"svg\", {\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: 0,\n viewBox: \"0 0 512 512\",\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"1em\",\n height: \"1em\",\n \"aria-labelledby\": titleId,\n ...props,\n children: [title ? /*#__PURE__*/jsx(\"title\", {\n id: titleId,\n children: title\n }) : null, /*#__PURE__*/jsx(\"path\", {\n d: \"M510.52 255.82c-69.97-.85-126.47-57.69-126.47-127.86-70.17 0-127-56.49-127.86-126.45-27.26-4.14-55.13.3-79.72 12.82l-69.13 35.22a132.221 132.221 0 00-57.79 57.81l-35.1 68.88a132.645 132.645 0 00-12.82 80.95l12.08 76.27a132.521 132.521 0 0037.16 72.96l54.77 54.76a132.036 132.036 0 0072.71 37.06l76.71 12.15c27.51 4.36 55.7-.11 80.53-12.76l69.13-35.21a132.273 132.273 0 0057.79-57.81l35.1-68.88c12.56-24.64 17.01-52.58 12.91-79.91zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z\",\n stroke: \"none\"\n })]\n });\n};\nconst IconCookieBite = /*#__PURE__*/styled(SvgComponent).withConfig({\n displayName: \"CookieBite__IconCookieBite\",\n componentId: \"sc-darnlt-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n display: inline-flex;\\n vertical-align: middle;\\n\"])));\n\nexport { IconCookieBite };\n","import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport styled from 'styled-components';\nimport theme from 'styled-theming';\nimport darken from 'polished/lib/color/darken';\nimport 'react';\nimport { maxWidthLayoutStyles } from '../../utils/styleHelpers.js';\nimport { jsx } from 'react/jsx-runtime';\n\nvar _templateObject, _templateObject2;\nconst PageHeaderContainer = /*#__PURE__*/styled.header.withConfig({\n displayName: \"pageHeader__PageHeaderContainer\",\n componentId: \"sc-s52d4r-0\"\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n position: sticky;\\n top: 0;\\n z-index: 100;\\n display: flex;\\n flex-shrink: 0;\\n padding: \", \";\\n\\n background: \", \";\\n\\n color: \", \";\\n\\n *:not(:disabled) {\\n *:focus-visible {\\n box-shadow: \", \";\\n }\\n }\\n\\n /** @todo remove from here and solve more generally */\\n [data-hidemobile] {\\n display: none;\\n }\\n\\n \", \" {\\n padding: \", \";\\n\\n [data-hidemobile] {\\n display: inline-flex;\\n vertical-align: middle;\\n }\\n }\\n\\n \", \" {\\n padding: \", \";\\n }\\n\"])), _ref => {\n let {\n theme\n } = _ref;\n return \"\".concat(theme.spacing.quarterSpacing, \" \").concat(theme.spacing.halfSpacing);\n}, _ref2 => {\n let {\n theme: {\n colors\n }\n } = _ref2;\n return theme('mode', {\n light: colors.accents.dark,\n dark: darken(0.1, colors.accents.dark)\n });\n}, _ref3 => {\n let {\n theme: {\n colors\n }\n } = _ref3;\n return theme('mode', {\n light: colors.contrastText,\n dark: colors.text\n });\n}, _ref4 => {\n let {\n theme\n } = _ref4;\n return \"0 0 0 2px \".concat(theme.colors.primary.light);\n}, _ref5 => {\n let {\n theme\n } = _ref5;\n return theme.mediaQueries.md;\n}, _ref6 => {\n let {\n theme\n } = _ref6;\n return \"\".concat(theme.spacing.halfSpacing, \" \").concat(theme.spacing.baseSpacing);\n}, _ref7 => {\n let {\n theme\n } = _ref7;\n return theme.mediaQueries.lg;\n}, _ref8 => {\n let {\n theme\n } = _ref8;\n return \"\".concat(theme.spacing.halfSpacing, \" \").concat(theme.spacing.doubleSpacing);\n});\nconst PageHeaderInner = /*#__PURE__*/styled.div.withConfig({\n displayName: \"pageHeader__PageHeaderInner\",\n componentId: \"sc-s52d4r-1\"\n})(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n display: flex;\\n justify-content: space-between;\\n align-items: center;\\n\\n > * {\\n display: flex;\\n flex-basis: 33.3%;\\n justify-content: center;\\n\\n &:first-child {\\n justify-content: flex-start;\\n }\\n\\n &:last-child {\\n justify-content: flex-end;\\n }\\n\\n &:only-child {\\n flex-basis: 100%;\\n justify-content: center;\\n }\\n }\\n\\n \", \"\\n\"])), _ref9 => {\n let {\n fullWidth\n } = _ref9;\n return !fullWidth && maxWidthLayoutStyles;\n});\nconst PageHeader = _ref10 => {\n let {\n children,\n fullWidth,\n ...rest\n } = _ref10;\n return /*#__PURE__*/jsx(PageHeaderContainer, {\n ...rest,\n children: /*#__PURE__*/jsx(PageHeaderInner, {\n fullWidth: fullWidth,\n children: children\n })\n });\n};\n\nexport { PageHeader };\n","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\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;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n};\n","export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n","/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n","import * as React from 'react';\nimport { assignRef } from './assignRef';\nimport { useCallbackRef } from './useRef';\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nvar currentValues = new WeakMap();\n/**\n * Merges two or more refs together providing a single interface to set their value\n * @param {RefObject|Ref} refs\n * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}\n *\n * @see {@link mergeRefs} a version without buit-in memoization\n * @see https://github.com/theKashey/use-callback-ref#usemergerefs\n * @example\n * const Component = React.forwardRef((props, ref) => {\n * const ownRef = useRef();\n * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together\n * return
...
\n * }\n */\nexport function useMergeRefs(refs, defaultValue) {\n var callbackRef = useCallbackRef(defaultValue || null, function (newValue) {\n return refs.forEach(function (ref) { return assignRef(ref, newValue); });\n });\n // handle refs changes - added or removed\n useIsomorphicLayoutEffect(function () {\n var oldValue = currentValues.get(callbackRef);\n if (oldValue) {\n var prevRefs_1 = new Set(oldValue);\n var nextRefs_1 = new Set(refs);\n var current_1 = callbackRef.current;\n prevRefs_1.forEach(function (ref) {\n if (!nextRefs_1.has(ref)) {\n assignRef(ref, null);\n }\n });\n nextRefs_1.forEach(function (ref) {\n if (!prevRefs_1.has(ref)) {\n assignRef(ref, current_1);\n }\n });\n }\n currentValues.set(callbackRef, refs);\n }, [refs]);\n return callbackRef;\n}\n","import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n","import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n","import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from 'react-remove-scroll-bar/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { effectCar } from './medium';\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\", \"gapMode\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\nexport { RemoveScroll };\n","/**\n * defines a focus group\n */\nexport var FOCUS_GROUP = 'data-focus-lock';\n/**\n * disables element discovery inside a group marked by key\n */\nexport var FOCUS_DISABLED = 'data-focus-lock-disabled';\n/**\n * allows uncontrolled focus within the marked area, effectively disabling focus lock for it's content\n */\nexport var FOCUS_ALLOW = 'data-no-focus-lock';\n/**\n * instructs autofocus engine to pick default autofocus inside a given node\n * can be set on the element or container\n */\nexport var FOCUS_AUTO = 'data-autofocus-inside';\n/**\n * instructs autofocus to ignore elements within a given node\n * can be set on the element or container\n */\nexport var FOCUS_NO_AUTOFOCUS = 'data-no-autofocus';\n","import * as React from 'react';\nimport PropTypes from 'prop-types';\nexport var hiddenGuard = {\n width: '1px',\n height: '0px',\n padding: 0,\n overflow: 'hidden',\n position: 'fixed',\n top: '1px',\n left: '1px'\n};\nvar InFocusGuard = function InFocusGuard(_ref) {\n var _ref$children = _ref.children,\n children = _ref$children === void 0 ? null : _ref$children;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n \"data-focus-auto-guard\": true,\n style: hiddenGuard\n }), children, children && /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-last\",\n \"data-focus-guard\": true,\n \"data-focus-auto-guard\": true,\n style: hiddenGuard\n }));\n};\nInFocusGuard.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.node\n} : {};\nexport default InFocusGuard;","import { createMedium, createSidecarMedium } from 'use-sidecar';\nexport var mediumFocus = createMedium({}, function (_ref) {\n var target = _ref.target,\n currentTarget = _ref.currentTarget;\n return {\n target: target,\n currentTarget: currentTarget\n };\n});\nexport var mediumBlur = createMedium();\nexport var mediumEffect = createMedium();\nexport var mediumSidecar = createSidecarMedium({\n async: true,\n ssr: typeof document !== 'undefined'\n});","import { createContext } from 'react';\nexport var focusScope = /*#__PURE__*/createContext(undefined);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { node, bool, string, any, arrayOf, oneOfType, object, func } from 'prop-types';\nimport * as constants from 'focus-lock/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { hiddenGuard } from './FocusGuard';\nimport { mediumFocus, mediumBlur, mediumSidecar } from './medium';\nimport { focusScope } from './scope';\nvar emptyArray = [];\nvar FocusLock = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parentRef) {\n var _extends2;\n var _React$useState = React.useState(),\n realObserved = _React$useState[0],\n setObserved = _React$useState[1];\n var observed = React.useRef();\n var isActive = React.useRef(false);\n var originalFocusedElement = React.useRef(null);\n var _React$useState2 = React.useState({}),\n update = _React$useState2[1];\n var children = props.children,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$noFocusGuards = props.noFocusGuards,\n noFocusGuards = _props$noFocusGuards === void 0 ? false : _props$noFocusGuards,\n _props$persistentFocu = props.persistentFocus,\n persistentFocus = _props$persistentFocu === void 0 ? false : _props$persistentFocu,\n _props$crossFrame = props.crossFrame,\n crossFrame = _props$crossFrame === void 0 ? true : _props$crossFrame,\n _props$autoFocus = props.autoFocus,\n autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,\n allowTextSelection = props.allowTextSelection,\n group = props.group,\n className = props.className,\n whiteList = props.whiteList,\n hasPositiveIndices = props.hasPositiveIndices,\n _props$shards = props.shards,\n shards = _props$shards === void 0 ? emptyArray : _props$shards,\n _props$as = props.as,\n Container = _props$as === void 0 ? 'div' : _props$as,\n _props$lockProps = props.lockProps,\n containerProps = _props$lockProps === void 0 ? {} : _props$lockProps,\n SideCar = props.sideCar,\n _props$returnFocus = props.returnFocus,\n shouldReturnFocus = _props$returnFocus === void 0 ? false : _props$returnFocus,\n focusOptions = props.focusOptions,\n onActivationCallback = props.onActivation,\n onDeactivationCallback = props.onDeactivation;\n var _React$useState3 = React.useState({}),\n id = _React$useState3[0];\n var onActivation = React.useCallback(function (_ref) {\n var captureFocusRestore = _ref.captureFocusRestore;\n if (!originalFocusedElement.current) {\n var _document;\n var activeElement = (_document = document) == null ? void 0 : _document.activeElement;\n originalFocusedElement.current = activeElement;\n if (activeElement !== document.body) {\n originalFocusedElement.current = captureFocusRestore(activeElement);\n }\n }\n if (observed.current && onActivationCallback) {\n onActivationCallback(observed.current);\n }\n isActive.current = true;\n update();\n }, [onActivationCallback]);\n var onDeactivation = React.useCallback(function () {\n isActive.current = false;\n if (onDeactivationCallback) {\n onDeactivationCallback(observed.current);\n }\n update();\n }, [onDeactivationCallback]);\n var returnFocus = React.useCallback(function (allowDefer) {\n var focusRestore = originalFocusedElement.current;\n if (focusRestore) {\n var returnFocusTo = (typeof focusRestore === 'function' ? focusRestore() : focusRestore) || document.body;\n var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;\n if (howToReturnFocus) {\n var returnFocusOptions = typeof howToReturnFocus === 'object' ? howToReturnFocus : undefined;\n originalFocusedElement.current = null;\n if (allowDefer) {\n Promise.resolve().then(function () {\n return returnFocusTo.focus(returnFocusOptions);\n });\n } else {\n returnFocusTo.focus(returnFocusOptions);\n }\n }\n }\n }, [shouldReturnFocus]);\n var onFocus = React.useCallback(function (event) {\n if (isActive.current) {\n mediumFocus.useMedium(event);\n }\n }, []);\n var onBlur = mediumBlur.useMedium;\n var setObserveNode = React.useCallback(function (newObserved) {\n if (observed.current !== newObserved) {\n observed.current = newObserved;\n setObserved(newObserved);\n }\n }, []);\n if (process.env.NODE_ENV !== 'production') {\n if (typeof allowTextSelection !== 'undefined') {\n console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default');\n }\n React.useEffect(function () {\n if (!observed.current && typeof Container !== 'string') {\n console.error('FocusLock: could not obtain ref to internal node');\n }\n }, []);\n }\n var lockProps = _extends((_extends2 = {}, _extends2[constants.FOCUS_DISABLED] = disabled && 'disabled', _extends2[constants.FOCUS_GROUP] = group, _extends2), containerProps);\n var hasLeadingGuards = noFocusGuards !== true;\n var hasTailingGuards = hasLeadingGuards && noFocusGuards !== 'tail';\n var mergedRef = useMergeRefs([parentRef, setObserveNode]);\n var focusScopeValue = React.useMemo(function () {\n return {\n observed: observed,\n shards: shards,\n enabled: !disabled,\n active: isActive.current\n };\n }, [disabled, isActive.current, shards, realObserved]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, hasLeadingGuards && [\n /*#__PURE__*/\n React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }), hasPositiveIndices ? /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-nearest\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 1,\n style: hiddenGuard\n }) : null], !disabled && /*#__PURE__*/React.createElement(SideCar, {\n id: id,\n sideCar: mediumSidecar,\n observed: realObserved,\n disabled: disabled,\n persistentFocus: persistentFocus,\n crossFrame: crossFrame,\n autoFocus: autoFocus,\n whiteList: whiteList,\n shards: shards,\n onActivation: onActivation,\n onDeactivation: onDeactivation,\n returnFocus: returnFocus,\n focusOptions: focusOptions\n }), /*#__PURE__*/React.createElement(Container, _extends({\n ref: mergedRef\n }, lockProps, {\n className: className,\n onBlur: onBlur,\n onFocus: onFocus\n }), /*#__PURE__*/React.createElement(focusScope.Provider, {\n value: focusScopeValue\n }, children)), hasTailingGuards && /*#__PURE__*/React.createElement(\"div\", {\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }));\n});\nFocusLock.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: node,\n disabled: bool,\n returnFocus: oneOfType([bool, object, func]),\n focusOptions: object,\n noFocusGuards: bool,\n hasPositiveIndices: bool,\n allowTextSelection: bool,\n autoFocus: bool,\n persistentFocus: bool,\n crossFrame: bool,\n group: string,\n className: string,\n whiteList: func,\n shards: arrayOf(any),\n as: oneOfType([string, func, object]),\n lockProps: object,\n onActivation: func,\n onDeactivation: func,\n sideCar: any.isRequired\n} : {};\nexport default FocusLock;","import FocusLockUI from './Lock';\nimport AutoFocusInside from './AutoFocusInside';\nimport MoveFocusInside, { useFocusInside } from './MoveFocusInside';\nimport FreeFocusInside from './FreeFocusInside';\nimport InFocusGuard from './FocusGuard';\nimport { useFocusController, useFocusScope } from './use-focus-scope';\nimport { useFocusState } from './use-focus-state';\nexport { AutoFocusInside, MoveFocusInside, FreeFocusInside, InFocusGuard, FocusLockUI, useFocusInside, useFocusController, useFocusScope, useFocusState };\nexport default FocusLockUI;","import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\nexport var focusHiddenMarker = 'data-focus-on-hidden';\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from 'react-remove-scroll/UI';\nimport ReactFocusLock from 'react-focus-lock/UI';\nimport { effectCar } from './medium';\nvar PREVENT_SCROLL = { preventScroll: true };\nexport var FocusOn = React.forwardRef(function (props, parentRef) {\n var _a = React.useState(false), lockProps = _a[0], setLockProps = _a[1];\n var children = props.children, autoFocus = props.autoFocus, shards = props.shards, crossFrame = props.crossFrame, _b = props.enabled, enabled = _b === void 0 ? true : _b, _c = props.scrollLock, scrollLock = _c === void 0 ? true : _c, _d = props.focusLock, focusLock = _d === void 0 ? true : _d, _e = props.returnFocus, returnFocus = _e === void 0 ? true : _e, inert = props.inert, allowPinchZoom = props.allowPinchZoom, sideCar = props.sideCar, className = props.className, shouldIgnore = props.shouldIgnore, preventScrollOnFocus = props.preventScrollOnFocus, style = props.style, as = props.as, gapMode = props.gapMode, rest = __rest(props, [\"children\", \"autoFocus\", \"shards\", \"crossFrame\", \"enabled\", \"scrollLock\", \"focusLock\", \"returnFocus\", \"inert\", \"allowPinchZoom\", \"sideCar\", \"className\", \"shouldIgnore\", \"preventScrollOnFocus\", \"style\", \"as\", \"gapMode\"]);\n var SideCar = sideCar;\n var onActivation = lockProps.onActivation, onDeactivation = lockProps.onDeactivation, restProps = __rest(lockProps, [\"onActivation\", \"onDeactivation\"]);\n var appliedLockProps = __assign(__assign({}, restProps), { as: as,\n style: style,\n sideCar: sideCar,\n shards: shards,\n allowPinchZoom: allowPinchZoom,\n gapMode: gapMode,\n inert: inert, enabled: enabled && scrollLock });\n return (React.createElement(React.Fragment, null,\n React.createElement(ReactFocusLock, { ref: parentRef, sideCar: sideCar, disabled: !(lockProps && enabled && focusLock), returnFocus: returnFocus, autoFocus: autoFocus, shards: shards, crossFrame: crossFrame, onActivation: onActivation, onDeactivation: onDeactivation, className: className, whiteList: shouldIgnore, lockProps: appliedLockProps, focusOptions: preventScrollOnFocus ? PREVENT_SCROLL : undefined, as: RemoveScroll }, children),\n enabled && (React.createElement(SideCar, __assign({}, rest, { sideCar: effectCar, setLockProps: setLockProps, shards: shards })))));\n});\nexport * from './reExports';\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nvar SideCar = function (_a) {\n var sideCar = _a.sideCar, rest = __rest(_a, [\"sideCar\"]);\n if (!sideCar) {\n throw new Error('Sidecar: please provide `sideCar` property to import the right car');\n }\n var Target = sideCar.read();\n if (!Target) {\n throw new Error('Sidecar medium not found');\n }\n return React.createElement(Target, __assign({}, rest));\n};\nSideCar.isSideCarExport = true;\nexport function exportSidecar(medium, exported) {\n medium.useMedium(exported);\n return SideCar;\n}\n","import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport React, { PureComponent } from 'react';\n\nfunction withSideEffect(reducePropsToState, handleStateChangeOnClient) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof reducePropsToState !== 'function') {\n throw new Error('Expected reducePropsToState to be a function.');\n }\n\n if (typeof handleStateChangeOnClient !== 'function') {\n throw new Error('Expected handleStateChangeOnClient to be a function.');\n }\n }\n\n function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n }\n\n return function wrap(WrappedComponent) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof WrappedComponent !== 'function') {\n throw new Error('Expected WrappedComponent to be a React component.');\n }\n }\n\n var mountedInstances = [];\n var state;\n\n function emitChange() {\n state = reducePropsToState(mountedInstances.map(function (instance) {\n return instance.props;\n }));\n handleStateChangeOnClient(state);\n }\n\n var SideEffect = /*#__PURE__*/function (_PureComponent) {\n _inheritsLoose(SideEffect, _PureComponent);\n\n function SideEffect() {\n return _PureComponent.apply(this, arguments) || this;\n }\n\n // Try to use displayName of wrapped component\n SideEffect.peek = function peek() {\n return state;\n };\n\n var _proto = SideEffect.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n mountedInstances.push(this);\n emitChange();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n emitChange();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var index = mountedInstances.indexOf(this);\n mountedInstances.splice(index, 1);\n emitChange();\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(WrappedComponent, this.props);\n };\n\n return SideEffect;\n }(PureComponent);\n\n _defineProperty(SideEffect, \"displayName\", \"SideEffect(\" + getDisplayName(WrappedComponent) + \")\");\n\n return SideEffect;\n };\n}\n\nexport default withSideEffect;\n","/*\nIE11 support\n */\nexport var toArray = function (a) {\n var ret = Array(a.length);\n for (var i = 0; i < a.length; ++i) {\n ret[i] = a[i];\n }\n return ret;\n};\nexport var asArray = function (a) { return (Array.isArray(a) ? a : [a]); };\nexport var getFirst = function (a) { return (Array.isArray(a) ? a[0] : a); };\n","import { FOCUS_NO_AUTOFOCUS } from '../constants';\nvar isElementHidden = function (node) {\n // we can measure only \"elements\"\n // consider others as \"visible\"\n if (node.nodeType !== Node.ELEMENT_NODE) {\n return false;\n }\n var computedStyle = window.getComputedStyle(node, null);\n if (!computedStyle || !computedStyle.getPropertyValue) {\n return false;\n }\n return (computedStyle.getPropertyValue('display') === 'none' || computedStyle.getPropertyValue('visibility') === 'hidden');\n};\nvar getParentNode = function (node) {\n // DOCUMENT_FRAGMENT_NODE can also point on ShadowRoot. In this case .host will point on the next node\n return node.parentNode && node.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\n node.parentNode.host\n : node.parentNode;\n};\nvar isTopNode = function (node) {\n // @ts-ignore\n return node === document || (node && node.nodeType === Node.DOCUMENT_NODE);\n};\nvar isInert = function (node) { return node.hasAttribute('inert'); };\n/**\n * @see https://github.com/testing-library/jest-dom/blob/main/src/to-be-visible.js\n */\nvar isVisibleUncached = function (node, checkParent) {\n return !node || isTopNode(node) || (!isElementHidden(node) && !isInert(node) && checkParent(getParentNode(node)));\n};\nexport var isVisibleCached = function (visibilityCache, node) {\n var cached = visibilityCache.get(node);\n if (cached !== undefined) {\n return cached;\n }\n var result = isVisibleUncached(node, isVisibleCached.bind(undefined, visibilityCache));\n visibilityCache.set(node, result);\n return result;\n};\nvar isAutoFocusAllowedUncached = function (node, checkParent) {\n return node && !isTopNode(node) ? (isAutoFocusAllowed(node) ? checkParent(getParentNode(node)) : false) : true;\n};\nexport var isAutoFocusAllowedCached = function (cache, node) {\n var cached = cache.get(node);\n if (cached !== undefined) {\n return cached;\n }\n var result = isAutoFocusAllowedUncached(node, isAutoFocusAllowedCached.bind(undefined, cache));\n cache.set(node, result);\n return result;\n};\nexport var getDataset = function (node) {\n // @ts-ignore\n return node.dataset;\n};\nexport var isHTMLButtonElement = function (node) { return node.tagName === 'BUTTON'; };\nexport var isHTMLInputElement = function (node) { return node.tagName === 'INPUT'; };\nexport var isRadioElement = function (node) {\n return isHTMLInputElement(node) && node.type === 'radio';\n};\nexport var notHiddenInput = function (node) {\n return !((isHTMLInputElement(node) || isHTMLButtonElement(node)) && (node.type === 'hidden' || node.disabled));\n};\nexport var isAutoFocusAllowed = function (node) {\n var attribute = node.getAttribute(FOCUS_NO_AUTOFOCUS);\n return ![true, 'true', ''].includes(attribute);\n};\nexport var isGuard = function (node) { var _a; return Boolean(node && ((_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.focusGuard)); };\nexport var isNotAGuard = function (node) { return !isGuard(node); };\nexport var isDefined = function (x) { return Boolean(x); };\n","import { toArray } from './array';\nexport var tabSort = function (a, b) {\n var aTab = Math.max(0, a.tabIndex);\n var bTab = Math.max(0, b.tabIndex);\n var tabDiff = aTab - bTab;\n var indexDiff = a.index - b.index;\n if (tabDiff) {\n if (!aTab) {\n return 1;\n }\n if (!bTab) {\n return -1;\n }\n }\n return tabDiff || indexDiff;\n};\nvar getTabIndex = function (node) {\n if (node.tabIndex < 0) {\n // all \"focusable\" elements are already preselected\n // but some might have implicit negative tabIndex\n // return 0 for