diff --git a/src/view/frontend/templates/category/category_page.phtml b/src/view/frontend/templates/category/category_page.phtml index d79eff51..3db66ce7 100644 --- a/src/view/frontend/templates/category/category_page.phtml +++ b/src/view/frontend/templates/category/category_page.phtml @@ -6,10 +6,12 @@ $categoryPath = (array) $block->getData('category_path'); diff --git a/src/view/frontend/templates/ff/communication.phtml b/src/view/frontend/templates/ff/communication.phtml index 3d1814da..db4c5514 100644 --- a/src/view/frontend/templates/ff/communication.phtml +++ b/src/view/frontend/templates/ff/communication.phtml @@ -10,12 +10,25 @@ $searchImmediate = $communicationParameters['search-immediate'] ?? 'false'; @@ -121,19 +123,19 @@ $searchImmediate = $communicationParameters['search-immediate'] ?? 'false'; } if (cookies['ff_user_id']) { - factfinder.config.defaults.general.userId = cookies['ff_user_id']; + factfinder.config.setFFParams({userId: cookies['ff_user_id']}); if (cookies['ff_has_just_logged_in']) { clearCookie('ff_has_just_logged_in'); factfinder.tracking.login([{ sid: JSON.parse(localStorage.ffwebco).sid, - userId: factfinder.config.defaults.general.userId + userId: factfinder.config.get().ffParams.userId }]); } } else { if (cookies['ff_has_just_logged_out']) { clearCookie('ff_has_just_logged_out'); - factfinder.config.defaults.general.userId = undefined + factfinder.config.setFFParams({userId: undefined}); } } }); diff --git a/src/view/frontend/web/css/source/ff/_recommendation.less b/src/view/frontend/web/css/source/ff/_recommendation.less index ec027155..d2ebc58b 100644 --- a/src/view/frontend/web/css/source/ff/_recommendation.less +++ b/src/view/frontend/web/css/source/ff/_recommendation.less @@ -21,10 +21,6 @@ ff-recommendation { } @media all and (min-width: 1024px), print { - .page-layout-1column ff-recommendation .products-grid .product-item { - width: 100%; - } - .page-layout-1column ff-recommendation ff-record { width: percentage(1 / 6); } diff --git a/src/view/frontend/web/css/source/ff/_similar.less b/src/view/frontend/web/css/source/ff/_similar.less index 8c8185d3..06589abb 100644 --- a/src/view/frontend/web/css/source/ff/_similar.less +++ b/src/view/frontend/web/css/source/ff/_similar.less @@ -29,10 +29,6 @@ ff-similar-products { } @media all and (min-width: 1024px), print { - .page-layout-1column ff-similar-products .products-grid .product-item { - width: 100%; - } - .page-layout-1column ff-similar-products ff-record { width: percentage(1 / 6); } diff --git a/src/view/frontend/web/ff-web-components/bundle.js b/src/view/frontend/web/ff-web-components/bundle.js index 726a4c70..cc9098b2 100644 --- a/src/view/frontend/web/ff-web-components/bundle.js +++ b/src/view/frontend/web/ff-web-components/bundle.js @@ -1,2 +1,2 @@ /*! For license information please see bundle.js.LICENSE.txt */ -(function(){var __webpack_modules__={9707:function(e,t,i){"use strict";function r(e){return t=>{if("function"!=typeof t)throw Error("Parameter must be a function.");return e(t)}}i.d(t,{z:function(){return r}})},8675:function(e,t,i){"use strict";i.r(t),i.d(t,{internalRouting:function(){return s},publicRouting:function(){return a}});var r=i(9707),n=i(2207);const s={requestNavigate:(e,t)=>{var i;e&&t||console.warn("requestNavigate did not receive all parameters",{target:e,origin:t}),!1!==(null===(i=o.navigateHandler)||void 0===i?void 0:i.call(o,e,t))&&(n.c.config.sandboxMode||(window.location.href=e))},invokeSandboxResponseListener:(e,t)=>{var i;return null===(i=o.sandboxResponseListener)||void 0===i?void 0:i.call(o,e,t)},invokeUrlParamOptionsListener:()=>{var e;return null===(e=o.urlParamOptionsListener)||void 0===e?void 0:e.call(o)}},a={setNavigateListener:(0,r.z)((e=>o.navigateHandler=e)),setSandboxResponseListener:(0,r.z)((e=>o.sandboxResponseListener=e)),setUrlParamOptionsListener:(0,r.z)((e=>o.urlParamOptionsListener=e))},o={navigateHandler:void 0,sandboxResponseListener:void 0,urlParamOptionsListener:void 0}},6851:function(e,t){t.setNew=e=>t=>i=>()=>{void 0===e[t]&&(e[t]=i)}},1287:function(e,t,i){"use strict";var r=i(6851),n=i(3139),s=i(6535),a=i(8164),o=i(8455),c=i(2024),u={debug:!1,apiKey:"",defaults:{searchParams:{},searchControlParams:{},general:{url:"",channel:"",defaultQuery:"",sid:c[void 0],purchaserId:c[void 0],userId:c[void 0]}},fieldRoles:c[void 0],categoryPage:c[void 0],dataBindingTags:c[void 0],formatting:c[void 0],autoFetch:"SSR_ONLY",sandboxMode:!1},l=r.setNew(u)("fieldRoles"),d=o.merge,p=o.merge;e.exports={config:u,setFieldRoles:l,setPurchaserId:function(e){return s.eq(c.eqFFIMaybe)(e.purchaserId)(c[void 0])&&s.notEq(c.eqFFIMaybe)(u.defaults.general.purchaserId)(c[void 0])?n.pure(a.applicativeEffect)(p({purchaserId:u.defaults.general.purchaserId})(e)):n.pure(a.applicativeEffect)(e)},setUserId:function(e){return s.eq(c.eqFFIMaybe)(e.userId)(c[void 0])&&s.notEq(c.eqFFIMaybe)(u.defaults.general.userId)(c[void 0])?n.pure(a.applicativeEffect)(d({userId:u.defaults.general.userId})(e)):n.pure(a.applicativeEffect)(e)}}},3139:function(e,t,i){"use strict";var r=i(7793),n=i(4269),s=function(e){return e.pure};e.exports={pure:s,liftA1:function(e){return function(t){return function(i){return r.apply(e.Apply0())(s(e)(t))(i)}}},unless:function(e){return function(t){return function(i){if(!t)return i;if(t)return s(e)(n.unit);throw new Error("Failed pattern match at Control.Applicative (line 66, column 1 - line 66, column 65): "+[t.constructor.name,i.constructor.name])}}},when:function(e){return function(t){return function(i){if(t)return i;if(!t)return s(e)(n.unit);throw new Error("Failed pattern match at Control.Applicative (line 61, column 1 - line 61, column 63): "+[t.constructor.name,i.constructor.name])}}}}},748:function(e,t){"use strict";t.arrayApply=function(e){return function(t){for(var i=e.length,r=t.length,n=new Array(i*r),s=0,a=0;a=0;n--)r=e(i[n])(r);return r}}},t.foldlArray=function(e){return function(t){return function(i){for(var r=t,n=i.length,s=0;st=>{const i=sessionStorage;if("true"===i.debug||"false"!==i.debug&&!0===e)throw Error(t);console.error(t)}},1184:function(e,t,i){"use strict";var r=i(8552),n=i(1287);e.exports={emitError:function(e){return r.emitErrorImpl(n.config.debug)(e)}}},8687:function(e,t,i){"use strict";var r=i(1287),n=i(333),s=i(7905),a=i(4932),o=i(5645),c={request:{campaignPage:n.campaignPage,campaignProduct:n.campaignProduct,campaignShoppingCart:n.campaignShoppingCart,compare:n.compare,navigation:n.navigation,navigationCategory:n.navigationCategory,predictiveBasket:n.predictiveBasket,recommendation:n.recommendation,records:n.records,search:n.search,similar:n.similar,suggest:n.suggest,before:{campaignPage:s.beforeCampaignPage,campaignProduct:s.beforeCampaignProduct,campaignShoppingCart:s.beforeCampaignShoppingCart,compare:s.beforeCompare,navigation:s.beforeNavigation,navigationCategory:s.beforeNavigationCategory,predictiveBasket:s.beforePredictiveBasket,recommendation:s.beforeRecommendation,records:s.beforeRecords,search:s.beforeSearch,similar:s.beforeSimilar,suggest:s.beforeSuggest}},response:{subscribeCampaignPage:o.subscribeCampaignPage,subscribeCampaignProduct:o.subscribeCampaignProduct,subscribeCampaignRedirect:o.subscribeCampaignRedirect,subscribeCampaignShoppingCart:o.subscribeCampaignShoppingCart,subscribeCompare:o.subscribeCompare,subscribeNavigation:o.subscribeNavigation,subscribeNavigationCategory:o.subscribeNavigationCategory,subscribePredictiveBasket:o.subscribePredictiveBasket,subscribeRecommendation:o.subscribeRecommendation,subscribeRecords:o.subscribeRecords,subscribeSearch:o.subscribeSearch,subscribeSimilar:o.subscribeSimilar,subscribeSuggest:o.subscribeSuggest,subscribeSearchAndNavigation:o.subscribeSearchAndNavigation,unsubscribe:o.unsubscribe,transformCampaignPage:o.transformCampaignPage,transformCampaignProduct:o.transformCampaignProduct,transformCampaignShoppingCart:o.transformCampaignShoppingCart,transformCompare:o.transformCompare,transformNavigation:o.transformNavigation,transformNavigationCategory:o.transformNavigationCategory,transformPredictiveBasket:o.transformPredictiveBasket,transformRecommendation:o.transformRecommendation,transformRecords:o.transformRecords,transformSearch:o.transformSearch,transformSimilar:o.transformSimilar,transformSuggest:o.transformSuggest,dispatch:{navigation:o.dispatchNavigation,navigationBeforeTransform:o.dispatchNavigationBeforeTransform,search:o.dispatchSearch,searchBeforeTransform:o.dispatchSearchBeforeTransform,suggest:o.dispatchSuggest,ssrNavigation:o.dispatchSsrNavigation,ssrSearch:o.dispatchSsrSearch}},tracking:{cart:a.cart,checkout:a.checkout,click:a.click,landingPageClick:a.landingPageClick,login:a.login,predbasketClick:a.predbasketClick,recommendationClick:a.recommendationClick,before:{cart:s.beforeTrackCart,checkout:s.beforeTrackCheckout,click:s.beforeTrackClick,landingPageClick:s.beforeTrackLandingPageClick,login:s.beforeTrackLogin,predbasketClick:s.beforeTrackPredBasketClick,recommendationClick:s.beforeTrackRecommendationClick}},config:r.config},u={elementsSubscribeCampaignPage:o.elementsSubscribeCampaignPage,elementsSubscribeCampaignProduct:o.elementsSubscribeCampaignProduct,elementsSubscribeCampaignShoppingCart:o.elementsSubscribeCampaignShoppingCart,elementsSubscribeCompare:o.elementsSubscribeCompare,elementsSubscribeNavigation:o.elementsSubscribeNavigation,elementsSubscribeNavigationCategory:o.elementsSubscribeNavigationCategory,elementsSubscribePredictiveBasket:o.elementsSubscribePredictiveBasket,elementsSubscribeRecommendation:o.elementsSubscribeRecommendation,elementsSubscribeRecords:o.elementsSubscribeRecords,elementsSubscribeSearch:o.elementsSubscribeSearch,elementsSubscribeSimilar:o.elementsSubscribeSimilar,elementsSubscribeSuggest:o.elementsSubscribeSuggest,elementsSubscribeSearchAndNavigation:o.elementsSubscribeSearchAndNavigation,elementsUnsubscribe:o.elementsUnsubscribe};e.exports={publicCore:c,internalCore:u}},6240:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("CartOrCheckoutEvent")(e)(["count","id","sid"])([r.nonEmptyString("campaign"),r.integer("count"),r.nonEmptyString("id"),r.nonEmptyString("masterId"),r.number("price"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validateCartOrCheckoutEve:n}},2830:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("ClickEvent")(e)(["id","pos","query","sid"])([r.nonEmptyString("campaign"),r.nonEmptyString("id"),r.nonEmptyString("masterId"),r.integer("page"),r.integer("pageSize"),r.integer("pos"),r.nonEmptyString("purchaserId"),r.nonEmptyString("query"),r.number("score"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validateClickEvent:n}},6949:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("LandingPageClickEvent")(e)(["campaign","id","pageId","sid"])([r.nonEmptyString("campaign"),r.nonEmptyString("id"),r.nonEmptyString("masterId"),r.nonEmptyString("pageId"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validateLandingPageClickE:n}},7162:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("LoginEvent")(e)(["sid","userId"])([r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("userId")])}};e.exports={validateLoginEvent:n}},3202:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("NavigationParams")(e)([])([r.object("activeAbTests"),r.object("advisorStatus"),r.array("customParameters"),r.boolean("excludeProductsNotInRange"),r.array("filters"),r.nonEmptyString("followSearch"),r.integer("hitsPerPage"),r.object("location"),r.arrayNonEmptyString("marketIds"),r.integer("maxCountVariants"),r.number("maxDistance"),r.integer("page"),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.array("sortItems"),r.integer("splitDocumentsAt")])}},s={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}};e.exports={NavigationParams:function(e){return e},requireArgNavigationParam:s,validateNavigationParams:n}},2652:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("PredBasketClickEvent")(e)(["id","sid","userId"])([r.nonEmptyString("id"),r.nonEmptyString("masterId"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validatePredBasketClickEv:n}},820:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.nonEmptyString("pageId"),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.nonEmptyString("sid")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("CampaignPageParams")(e)(["pageId"])(s)}};e.exports={CampaignPageParams:function(e){return e},requireArgCampaignPagePar:n,validateCampaignPageParam:o,queryStringCampaignPagePa:a}},8309:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.nonEmptyString("id"),r.nonEmptyString("idType"),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.nonEmptyString("sid")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("CampaignProductParams")(e)(["id"])(s)}};e.exports={CampaignProductParams:function(e){return e},requireArgCampaignProduct:n,validateCampaignProductPa:o,queryStringCampaignProduc:a}},4551:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.nonEmptyArray("productNumber")(r.nonEmptyString("")),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.nonEmptyString("sid")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("CampaignShoppingCartParams")(e)(["productNumber"])(s)}};e.exports={CampaignShoppingCartParams:function(e){return e},requireArgCampaignShoppin:n,validateCampaignShoppingC:o,queryStringCampaignShoppi:a}},3854:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.arrayNonEmptyString("id"),r.boolean("idsOnly"),r.nonEmptyString("purchaserId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("CompareParams")(e)([])(s)}};e.exports={CompareParams:function(e){return e},requireArgCompareParams:n,validateCompareParams:o,queryStringCompareParams:a}},8755:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.arrayNonEmptyString("cacheIrrelevant"),r.integer("endLevel"),r.boolean("excludeProductsNotInRange"),r.arrayNonEmptyString("filter"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.nonEmptyString("sid"),r.integer("splitDocumentsAt"),r.integer("startLevel"),r.arrayNonEmptyString("substringFilter"),r.boolean("useAbTest"),r.boolean("useCache"),r.boolean("useGeo"),r.nonEmptyString("userId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("NavigationCategoryParams")(e)([])(s)}};e.exports={NavigationCategoryParams:function(e){return e},requireArgNavigationCateg:n,validateNavigationCategor:o,queryStringNavigationCate:a}},7724:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.arrayNonEmptyString("blacklist"),r.arrayNonEmptyString("filter"),r.boolean("idsOnly"),r.integer("maxResults"),r.nonEmptyString("purchaserId"),r.nonEmptyString("userId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("PredictiveBasketParams")(e)(["userId"])(s)}};e.exports={PredictiveBasketParams:function(e){return e},requireArgPredictiveBaske:n,validatePredictiveBasketP:o,queryStringPredictiveBask:a}},1068:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.arrayNonEmptyString("filter"),r.nonEmptyArray("id")(r.nonEmptyString("")),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.integer("maxResults"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.boolean("usePersonalization"),r.nonEmptyString("userId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("RecommendationParams")(e)(["id"])(s)}};e.exports={RecommendationParams:function(e){return e},requireArgRecommendationP:n,validateRecommendationPar:o,queryStringRecommendation:a}},6681:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.nonEmptyArray("productNumber")(r.nonEmptyString("")),r.nonEmptyString("purchaserId"),r.boolean("verbose")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("RecordsParams")(e)(["productNumber"])(s)}};e.exports={RecordsParams:function(e){return e},requireArgRecordsParams:n,validateRecordsParams:o,queryStringRecordsParams:a}},2637:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.arrayNonEmptyString("filter"),r.nonEmptyString("id"),r.nonEmptyString("idType"),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.integer("maxResults"),r.nonEmptyString("purchaserId"),r.nonEmptyString("userId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("SimilarParams")(e)(["id","idType"])(s)}};e.exports={SimilarParams:function(e){return e},requireArgSimilarParams:n,validateSimilarParams:o,queryStringSimilarParams:a}},4908:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("RecommendationClickEvent")(e)(["id","mainId","sid"])([r.nonEmptyString("id"),r.nonEmptyString("mainId"),r.nonEmptyString("masterId"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validateRecommendationCli:n}},2682:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("SearchParams")(e)(["query"])([r.object("activeAbTests"),r.object("advisorStatus"),r.nonEmptyString("articleNumberSearch"),r.array("customParameters"),r.boolean("excludeProductsNotInRange"),r.array("filters"),r.nonEmptyString("followSearch"),r.integer("hitsPerPage"),r.object("location"),r.arrayNonEmptyString("marketIds"),r.integer("maxCountVariants"),r.number("maxDistance"),r.integer("page"),r.nonEmptyString("purchaserId"),r.nonEmptyString("query"),r.nonEmptyString("searchField"),r.boolean("showMarkets"),r.array("sortItems"),r.integer("splitDocumentsAt")])}},s={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}};e.exports={SearchParams:function(e){return e},requireArgSearchParams:s,validateSearchParams:n}},7663:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("SuggestParams")(e)(["query"])([r.object("activeAbTests"),r.object("advisorStatus"),r.nonEmptyString("articleNumberSearch"),r.array("customParameters"),r.boolean("excludeProductsNotInRange"),r.array("filters"),r.nonEmptyString("followSearch"),r.integer("hitsPerPage"),r.boolean("includeMarketIdsForNonResultFields"),r.object("location"),r.arrayNonEmptyString("marketIds"),r.integer("maxCountVariants"),r.number("maxDistance"),r.integer("page"),r.nonEmptyString("purchaserId"),r.nonEmptyString("query"),r.nonEmptyString("searchField"),r.boolean("showMarkets"),r.nonEmptyString("sid"),r.array("sortItems"),r.integer("splitDocumentsAt")])}},s={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}};e.exports={SuggestParams:function(e){return e},requireArgSuggestParams:s,validateSuggestParams:n}},3555:function(e,t){t.requireArgImpl_=e=>t=>i=>{if(!r(t)){const t="Required argument '".concat(i[0],"' not specified.");return e(t),Promise.reject(t)}const n=i[1];if(!n.validate(t)){const i=n.errMsg(t);return e(i),Promise.reject(i)}return Promise.resolve(t)},t.checkOptionalArgImpl_=e=>t=>i=>n=>s=>{if(!r(n))return Promise.resolve(i);const a=s[1];if(!a.validate(n)){const t=a.errMsg(n);return e(t),Promise.reject(t)}return Promise.resolve(t(n))},t.validateObjectImpl_=e=>t=>i=>r=>n=>function(e,t,i,r,n){return new Promise(((a,o)=>{const c=Object.keys(i),u=[];let l=!0;r.forEach((i=>{if(!c.includes(i)){const r=s(t,"'".concat(i,"' is required."));e(r),u.push(r),l=!1}}));const d=new Map(n);c.forEach((r=>{if(!d.has(r)){const i=s(t,"'".concat(r,"' is not a valid parameter."));return e(i),u.push(i),void(l=!1)}if(!d.get(r).validate(i[r])){const n=s(t,d.get(r).errMsg(i[r]));e(n),u.push(n),l=!1}})),l?a(i):o(u)}))}(e,t,i,r,n);const i=(e,t,i,r)=>({validate:e,errMsg:t,typeName:i,stringify:r});t.any=e=>[e,i((()=>!0),n(""),"any")],t.array=e=>[e,i(Array.isArray,n("'".concat(e,"' must be an array.")),"array")],t.headers=e=>[e,i((e=>e&&("[object Object]"===e.toString()||e instanceof Headers)),n("'".concat(e,"' must be a plain object or an instance of Headers.")),"headers")],t.object=e=>[e,i((e=>e&&"[object Object]"===e.toString()),n("'".concat(e,"' must be a plain object.")),"object")],t.arrayNonEmptyString=e=>[e,i((e=>Array.isArray(e)&&e.every((e=>e&&"string"==typeof e))),n("'".concat(e,"' must be an array of non-empty strings.")),"array of non-empty strings",(e=>e))],t.boolean=e=>[e,i((e=>"boolean"==typeof e),n("'".concat(e,"' must be a boolean.")),"boolean",(e=>[String(e)]))],t.integer=e=>[e,i((e=>Number.isInteger(e)),n("'".concat(e,"' must be a whole number.")),"integer",(e=>[String(e)]))],t.nonEmptyString=e=>[e,i((e=>"string"==typeof e&&!!e),n("'".concat(e,"' must be a non-empty string.")),"non-empty string",(e=>[e]))],t.number=e=>[e,i((e=>"number"==typeof e),n("'".concat(e,"' must be a number.")),"number",(e=>[String(e)]))],t.nonEmptyArray=e=>t=>[e,i((e=>Array.isArray(e)&&e.length&&e.every(t[1].validate)),n("'".concat(e,"' must be a non-empty array of type ").concat(t[1].typeName,".")),"non-empty array",t[1].stringify&&(e=>e.map(t[1].stringify)))],t.toQueryStringImpl_=e=>t=>{const i=e.filter((e=>t.hasOwnProperty(e[0]))),r=new URLSearchParams;return i.forEach((e=>{const i=e[0];e[1].stringify(t[i]).forEach((e=>r.append(i,e)))})),r.toString()},t.withStringifier=e=>e.filter((e=>e[1].stringify));const r=e=>null!=e,n=e=>t=>{return e+" Was: '".concat((i=t,""===i?'""':Array.isArray(i)?"[".concat(i,"]"):String(i)),"' (Type: ").concat(r(t)?t.constructor.name:"unknown",")");var i},s=(e,t)=>"".concat(e,": ").concat(t)},7860:function(e,t,i){"use strict";var r=i(3555),n=i(4884),s=i(596),a=i(9704),o=i(1184),c=i(416),u=r.validateObjectImpl_(o.emitError),l=r.requireArgImpl_(o.emitError),d=r.checkOptionalArgImpl_(o.emitError)(s.Just.create)(s.Nothing.value);e.exports={requireArgImpl:l,checkOptionalArgImpl:d,validateObjectImpl:u,validateOptionalObjectImpl:function(e){return function(t){return function(i){return function(r){return a.sequence(a.traversableMaybe)(c.applicativeFF)(n.mapFlipped(s.functorMaybe)(t)((function(t){return u(e)(t)(i)(r)})))}}}},toQueryString:function(e){return e.toQueryString},toQueryStringImpl:function(e){return function(e){return function(t){return r.toQueryStringImpl_(r.withStringifier(e))(t)}}},nonEmptyString:r.nonEmptyString,integer:r.integer,number:r.number,boolean:r.boolean,array:r.array,arrayNonEmptyString:r.arrayNonEmptyString,nonEmptyArray:r.nonEmptyArray,object:r.object,headers:r.headers,any:r.any}},7683:function(e,t){t.emptyNavigationOptions={}},2212:function(e,t,i){"use strict";var r=i(7683),n=i(7860),s={validateOptional:function(e){return n.validateOptionalObjectImpl("NavigationOptions")(e)([])([n.object("searchControlParams"),n.nonEmptyString("sid"),n.nonEmptyString("userId"),n.object("requestOptions"),n.boolean("initial"),n.boolean("withoutHistory")])}},a={checkOptionalArg:function(e){return function(t){return n.checkOptionalArgImpl(e)(n.object(t))}}};e.exports={WKNavigationOptions:function(e){return e},checkOptionalArgWKNavigat:a,validateOptionalWKNavigat:s,emptyNavigationOptions:r.emptyNavigationOptions}},1327:function(e,t,i){"use strict";var r=i(7860),n={validateOptional:function(e){return r.validateOptionalObjectImpl("RequestOptions")(e)([])([r.headers("headers"),r.boolean("bypassGlobalConfig"),r.nonEmptyString("channel"),r.any("origin"),r.boolean("requestOnly"),r.boolean("skipBeforeHandlers")])}},s={checkOptionalArg:function(e){return function(t){return r.checkOptionalArgImpl(e)(r.object(t))}}};e.exports={WKRequestOptions:function(e){return e},checkOptionalArgWKRequest:s,validateOptionalWKRequest:n}},8968:function(e,t){t.emptySearchOptions={}},6996:function(e,t,i){"use strict";var r=i(8968),n=i(7860),s={validateOptional:function(e){return n.validateOptionalObjectImpl("SearchOptions")(e)([])([n.object("searchControlParams"),n.nonEmptyString("sid"),n.nonEmptyString("userId"),n.nonEmptyString("userInput"),n.object("requestOptions"),n.boolean("initial"),n.boolean("withoutHistory")])}},a={checkOptionalArg:function(e){return function(t){return n.checkOptionalArgImpl(e)(n.object(t))}}};e.exports={WKSearchOptions:function(e){return e},checkOptionalArgWKSearchO:a,validateOptionalWKSearchO:s,emptySearchOptions:r.emptySearchOptions}},863:function(e,t){t.applyAuth=e=>t=>(t.headers["X-FF-Api-Key"]=e,t)},3894:function(e,t,i){"use strict";var r=i(863);e.exports={applyAuth:r.applyAuth}},1394:function(e,t){t.beforeCampaignPage=e=>n(i.campaignPage,e),t.beforeCampaignProduct=e=>n(i.campaignProduct,e),t.beforeCampaignShoppingCart=e=>n(i.campaignShoppingCart,e),t.beforeCompare=e=>n(i.compare,e),t.beforeNavigation=e=>n(i.navigation,e),t.beforeNavigationCategory=e=>n(i.navigationCategory,e),t.beforePredictiveBasket=e=>n(i.predictiveBasket,e),t.beforeRecommendation=e=>n(i.recommendation,e),t.beforeRecords=e=>n(i.records,e),t.beforeSearch=e=>n(i.search,e),t.beforeSimilar=e=>n(i.similar,e),t.beforeSuggest=e=>n(i.suggest,e),t.beforeTrackCart=e=>n(r.cart,e),t.beforeTrackCheckout=e=>n(r.checkout,e),t.beforeTrackClick=e=>n(r.click,e),t.beforeTrackLandingPageClick=e=>n(r.landingPageClick,e),t.beforeTrackLogin=e=>n(r.login,e),t.beforeTrackPredBasketClick=e=>n(r.predBasketClick,e),t.beforeTrackRecommendationClick=e=>n(r.recommendationClick,e),t.runBeforeCampaignPageSubscribers=e=>s(i.campaignPage,e,"beforeCampaignPageSubscribers"),t.runBeforeCampaignProductSubscribers=e=>s(i.campaignProduct,e,"beforeCampaignProductSubscribers"),t.runBeforeCampaignShoppingCartSubscribers=e=>s(i.campaignShoppingCart,e,"beforeCampaignShoppingCartSubscribers"),t.runBeforeCompareSubscribers=e=>s(i.compare,e,"beforeCompareSubscribers"),t.runBeforeNavigationSubscribers=e=>s(i.navigation,e,"beforeNavigationSubscribers"),t.runBeforeNavigationCategorySubscribers=e=>s(i.navigationCategory,e,"beforeNavigationCategorySubscribers"),t.runBeforePredictiveBasketSubscribers=e=>s(i.predictiveBasket,e,"beforePredictiveBasketSubscribers"),t.runBeforeRecommendationSubscribers=e=>s(i.recommendation,e,"beforeRecommendationSubscribers"),t.runBeforeRecordsSubscribers=e=>s(i.records,e,"beforeRecordsSubscribers"),t.runBeforeSearchSubscribers=e=>s(i.search,e,"beforeSearchSubscribers"),t.runBeforeSimilarSubscribers=e=>s(i.similar,e,"beforeSimilarSubscribers"),t.runBeforeSuggestSubscribers=e=>s(i.suggest,e,"beforeSuggestSubscribers"),t.runBeforeTrackCartSubscribers=e=>s(r.cart,e,"beforeTrackCartSubscribers"),t.runBeforeTrackCheckoutSubscribers=e=>s(r.checkout,e,"beforeTrackCheckoutSubscribers"),t.runBeforeTrackClickSubscribers=e=>s(r.click,e,"beforeTrackClickSubscribers"),t.runBeforeTrackLandingPageClickSubscribers=e=>s(r.landingPageClick,e,"beforeTrackLandingPageClickSubscribers"),t.runBeforeTrackLoginSubscribers=e=>s(r.login,e,"beforeTrackLoginSubscribers"),t.runBeforeTrackPredBasketClickSubscribers=e=>s(r.predBasketClick,e,"beforeTrackPredBasketClickSubscribers"),t.runBeforeTrackRecommendationClickSubscribers=e=>s(r.recommendationClick,e,"beforeTrackRecommendationClickSubscribers");const i=Object.freeze({campaignPage:new Map,campaignProduct:new Map,campaignShoppingCart:new Map,compare:new Map,navigation:new Map,navigationCategory:new Map,predictiveBasket:new Map,recommendation:new Map,records:new Map,search:new Map,similar:new Map,suggest:new Map}),r=Object.freeze({cart:new Map,checkout:new Map,click:new Map,landingPageClick:new Map,login:new Map,predBasketClick:new Map,recommendationClick:new Map});function n(e,t){const i=Math.random();return e.set(i,t),i}function s(e,t,i){for(const r of e.values()){if(!1===r(t))return console.log("".concat(i,": Pipeline interrupted")),Promise.reject("".concat(i,": Pipeline interrupted"))}return Promise.resolve()}},7905:function(e,t,i){"use strict";var r=i(1394),n=i(3139),s=i(8850),a=i(4884),o=i(4269),c=i(2024),u=i(416);e.exports={guardBeforeSubscribers:function(e){return function(t){return c.fromFFIMaybe(!1)(s.bind(c.bindFFIMaybe)(e.requestOptions)((function(e){return a.mapFlipped(c.functorFFIMaybe)(e.skipBeforeHandlers)((function(e){return!0===e}))})))?n.pure(u.applicativeFF)(o.unit):t(e)}},beforeCampaignPage:r.beforeCampaignPage,beforeCampaignProduct:r.beforeCampaignProduct,beforeCampaignShoppingCart:r.beforeCampaignShoppingCart,beforeCompare:r.beforeCompare,beforeNavigation:r.beforeNavigation,beforeNavigationCategory:r.beforeNavigationCategory,beforePredictiveBasket:r.beforePredictiveBasket,beforeRecommendation:r.beforeRecommendation,beforeRecords:r.beforeRecords,beforeSearch:r.beforeSearch,beforeSimilar:r.beforeSimilar,beforeSuggest:r.beforeSuggest,beforeTrackCart:r.beforeTrackCart,beforeTrackCheckout:r.beforeTrackCheckout,beforeTrackClick:r.beforeTrackClick,beforeTrackLandingPageClick:r.beforeTrackLandingPageClick,beforeTrackLogin:r.beforeTrackLogin,beforeTrackPredBasketClick:r.beforeTrackPredBasketClick,beforeTrackRecommendationClick:r.beforeTrackRecommendationClick,runBeforeCampaignPageSubscribers:r.runBeforeCampaignPageSubscribers,runBeforeCampaignProductSubscribers:r.runBeforeCampaignProductSubscribers,runBeforeCampaignShoppingCartSubscribers:r.runBeforeCampaignShoppingCartSubscribers,runBeforeNavigationSubscribers:r.runBeforeNavigationSubscribers,runBeforeCompareSubscribers:r.runBeforeCompareSubscribers,runBeforeNavigationCategorySubscribers:r.runBeforeNavigationCategorySubscribers,runBeforePredictiveBasketSubscribers:r.runBeforePredictiveBasketSubscribers,runBeforeRecommendationSubscribers:r.runBeforeRecommendationSubscribers,runBeforeRecordsSubscribers:r.runBeforeRecordsSubscribers,runBeforeSearchSubscribers:r.runBeforeSearchSubscribers,runBeforeSimilarSubscribers:r.runBeforeSimilarSubscribers,runBeforeSuggestSubscribers:r.runBeforeSuggestSubscribers,runBeforeTrackCartSubscribers:r.runBeforeTrackCartSubscribers,runBeforeTrackCheckoutSubscribers:r.runBeforeTrackCheckoutSubscribers,runBeforeTrackClickSubscribers:r.runBeforeTrackClickSubscribers,runBeforeTrackLandingPageClickSubscribers:r.runBeforeTrackLandingPageClickSubscribers,runBeforeTrackLoginSubscribers:r.runBeforeTrackLoginSubscribers,runBeforeTrackPredBasketClickSubscribers:r.runBeforeTrackPredBasketClickSubscribers,runBeforeTrackRecommendationClickSubscribers:r.runBeforeTrackRecommendationClickSubscribers}},5078:function(e,t){t.createFFRequestGET=e=>t=>({method:"GET",url:e,headers:{},handlers:t}),t.createFFRequestPOST=e=>t=>i=>({method:"POST",url:e,headers:{},handlers:t,body:i}),t.createFFTrackingRequest=e=>t=>({method:"POST",url:e,headers:{},noHandlers:!0,body:t}),t.sendAuthenticated=function(e){const t={method:e.method,headers:e.headers};"POST"===e.method&&(t.headers["Content-Type"]="application/json",t.body=JSON.stringify(e.body));return fetch(e.url,t).then((t=>{if(!t.ok||!e.noHandlers)return t.json().then((t=>{if(t.error)throw Error(t.errorDescription);return e.handlers.success(t)()}))}))}},4502:function(e,t,i){"use strict";var r=i(5078);e.exports={createFFRequestGET:r.createFFRequestGET,createFFRequestPOST:r.createFFRequestPOST,createFFTrackingRequest:r.createFFTrackingRequest,sendAuthenticated:r.sendAuthenticated}},8496:function(e,t,i){"use strict";var r=i(1287),n=i(8850),s=i(596),a=i(2024),o=function(e){return function(t){return function(i){var n=r.config.defaults.general.url+"/rest/v5/"+e+"/"+t;return""===i?n:n+"/"+i}}};e.exports={getChannel:function(e){return e instanceof s.Just?a.fromFFIMaybe(r.config.defaults.general.channel)(e.value0.channel):r.config.defaults.general.channel},"getChannel'":function(e){return a.fromFFIMaybe(r.config.defaults.general.channel)(n.bind(a.bindFFIMaybe)(e)((function(e){return e.channel})))},generateEndpoint:function(e){return function(t){return o(e)(t)("")}},generateEndpointWithSub:o}},1960:function(e,t){t.mergeConfig=e=>t=>t.map((t=>Object.assign({},e,t))),t.removeUndefinedProps=e=>JSON.parse(JSON.stringify(e))},4932:function(e,t,i){"use strict";var r=i(1960),n=i(1287),s=i(8850),a=i(8583),o=i(6240),c=i(2830),u=i(6949),l=i(7162),d=i(2652),p=i(4908),h=i(1327),f=i(3894),m=i(7905),g=i(4502),b=i(8496),v=i(6296),y=i(2024),_=i(2877),S=i(416),k=function(e){return function(t,i,o,c,u){return s.bind(S.bindFF)(S.requireArg(_.requireArgNonEmptyArray)(t)(i))((function(t){return s.bind(S.bindFF)(s.bindFlipped(S.bindFF)(S.validateOptional(h.validateOptionalWKRequest))(S.checkOptionalArg(h.checkOptionalArgWKRequest)(o)("requestOptions")))((function(i){var o=a.unsafePerformEffect(v.getOrCreateSid(y[void 0])),l=r.removeUndefinedProps({sid:o,purchaserId:n.config.defaults.general.purchaserId,userId:n.config.defaults.general.userId}),d=r.mergeConfig(l)(t);return s.bind(S.bindFF)(S.validateMap(_.validateMapNonEmptyArrayA(e))(d))((function(e){var t={events:e,requestOptions:y.fromMaybe(i)};return s.bind(S.bindFF)(m.guardBeforeSubscribers(t)(u))((function(t){var r=b.generateEndpointWithSub("track")(b.getChannel(i))(c);return g.sendAuthenticated(f.applyAuth(n.config.apiKey)(g.createFFTrackingRequest(r)(e)))}))}))}))}))}};e.exports={cart:function(e,t){return k(o.validateCartOrCheckoutEve)(e,"cartOrCheckoutEvents",t,"cart",m.runBeforeTrackCartSubscribers)},checkout:function(e,t){return k(o.validateCartOrCheckoutEve)(e,"cartOrCheckoutEvents",t,"checkout",m.runBeforeTrackCheckoutSubscribers)},click:function(e,t){return k(c.validateClickEvent)(e,"clickEvents",t,"click",m.runBeforeTrackClickSubscribers)},landingPageClick:function(e,t){return k(u.validateLandingPageClickE)(e,"landingPageClickEvents",t,"landingPageClick",m.runBeforeTrackLandingPageClickSubscribers)},login:function(e,t){return k(l.validateLoginEvent)(e,"loginEvents",t,"login",m.runBeforeTrackLoginSubscribers)},predbasketClick:function(e,t){return k(d.validatePredBasketClickEv)(e,"predBasketClickEvents",t,"predbasketClick",m.runBeforeTrackPredBasketClickSubscribers)},recommendationClick:function(e,t){return k(p.validateRecommendationCli)(e,"recommendationClickEvents",t,"recommendationClick",m.runBeforeTrackRecommendationClickSubscribers)}}},333:function(e,t,i){"use strict";var r=i(1287),n=i(3139),s=i(8850),a=i(1720),o=i(4884),c=i(596),u=i(8164),l=i(8583),d=i(3202),p=i(820),h=i(8309),f=i(4551),m=i(3854),g=i(8755),b=i(7724),v=i(1068),y=i(6681),_=i(2637),S=i(2682),k=i(7663),w=i(7860),C=i(2212),P=i(1327),x=i(6996),E=i(3894),I=i(7905),A=i(4502),F=i(8496),M=i(5645),N=i(6296),O=i(8455),L=i(2024),T=i(416),q=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(s.bindFlipped(u.bindEffect)(r.setUserId)(r.setPurchaserId(e))),n="?"+w.toQueryString(_.queryStringSimilarParams)(i),a={similarParams:i,requestOptions:L.fromMaybe(t)},o=F.generateEndpointWithSub("records")(F.getChannel(t))("similar")+n;return s.bind(T.bindFF)(I.guardBeforeSubscribers(a)(I.runBeforeSimilarSubscribers))((function(e){return A.sendAuthenticated(E.applyAuth(r.config.apiKey)(A.createFFRequestGET(o)({success:M.successHandlerSimilar(a)})))}))}})),R=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(r.setPurchaserId(e)),n="?"+w.toQueryString(y.queryStringRecordsParams)(i),a={recordsParams:i,requestOptions:L.fromMaybe(t)},o=F.generateEndpoint("records")(F.getChannel(t))+n;return s.bind(T.bindFF)(I.guardBeforeSubscribers(a)(I.runBeforeRecordsSubscribers))((function(e){return A.sendAuthenticated(E.applyAuth(r.config.apiKey)(A.createFFRequestGET(o)({success:M.successHandlerRecords(a)})))}))}})),B=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(N.getOrCreateSid(e.sid)),n=l.unsafePerformEffect(s.bindFlipped(u.bindEffect)(r.setUserId)(r.setPurchaserId(N.setSID(i)(e)))),a="?"+w.toQueryString(v.queryStringRecommendation)(n),o={recommendationParams:n,requestOptions:L.fromMaybe(t)},c=F.generateEndpointWithSub("records")(F.getChannel(t))("recommendation")+a;return s.bind(T.bindFF)(I.guardBeforeSubscribers(o)(I.runBeforeRecommendationSubscribers))((function(e){return A.sendAuthenticated(E.applyAuth(r.config.apiKey)(A.createFFRequestGET(c)({success:M.successHandlerRecommendation(o)})))}))}})),D=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(r.setPurchaserId(e)),n="?"+w.toQueryString(b.queryStringPredictiveBask)(i),a={predictiveBasketParams:i,requestOptions:L.fromMaybe(t)},o=F.generateEndpoint("predictivebasket")(F.getChannel(t))+n;return s.bind(T.bindFF)(I.guardBeforeSubscribers(a)(I.runBeforePredictiveBasketSubscribers))((function(e){return A.sendAuthenticated(E.applyAuth(r.config.apiKey)(A.createFFRequestGET(o)({success:M.successHandlerPredictiveBasket(a)})))}))}})),j=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(r.setPurchaserId(e)),a=L.fromFFIMaybe(C.emptyNavigationOptions)(L.fromMaybe(t)),c=l.unsafePerformEffect(N.getOrCreateSid(a.sid)),u=l.unsafePerformEffect(r.setUserId(N.setSID(c)(a))),d={navigationParams:i,navigationOptions:n.pure(L.applicativeFFIMaybe)(u)},p=F.generateEndpoint("navigation")(F["getChannel'"](u.requestOptions)),h={success:M.successHandlerNavigation(d)},f={params:i,searchControlParams:u.searchControlParams,sid:c,userId:u.userId};return s.bind(T.bindFF)(n.unless(T.applicativeFF)(L.fromFFIMaybe(!1)(s.bind(L.bindFFIMaybe)(a.requestOptions)((function(e){return o.mapFlipped(L.functorFFIMaybe)(e.skipBeforeHandlers)((function(e){return!0===e}))}))))(I.runBeforeNavigationSubscribers(d)))((function(e){return s.bind(T.bindFF)(n.pure(T.applicativeFF)(l.unsafePerformEffect(M.disableAutoFetching)))((function(e){return A.sendAuthenticated(E.applyAuth(r.config.apiKey)(A.createFFRequestPOST(p)(h)(f)))}))}))}})),H=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(N.getOrCreateSid(e.sid)),n=l.unsafePerformEffect(s.bindFlipped(u.bindEffect)(r.setUserId)(r.setPurchaserId(N.setSID(i)(e)))),a="?"+w.toQueryString(g.queryStringNavigationCate)(n),o={navigationCategoryParams:n,requestOptions:L.fromMaybe(t)},c=F.generateEndpoint("navigation/category")(F.getChannel(t))+a;return s.bind(T.bindFF)(I.guardBeforeSubscribers(o)(I.runBeforeNavigationCategorySubscribers))((function(e){return A.sendAuthenticated(E.applyAuth(r.config.apiKey)(A.createFFRequestGET(c)({success:M.successHandlerNavigationCategory(o)})))}))}})),V=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(N.getOrCreateSid(e.sid)),n=l.unsafePerformEffect(r.setPurchaserId(N.setSID(i)(e))),a={suggestParams:n,requestOptions:L.fromMaybe(t)};return s.bind(T.bindFF)(I.guardBeforeSubscribers(a)(I.runBeforeSuggestSubscribers))((function(e){return A.sendAuthenticated(E.applyAuth(r.config.apiKey)((r.config.defaults,function(e){return function(t){return function(i){var r=F.generateEndpoint("suggest")(F.getChannel(t));return A.createFFRequestPOST(r)(i)(e)}}})(n)(t)({success:M.successHandlerSuggest(a)})))}))}})),U=function(e,t){var i=function(e){return function(t){return O.merge(t.searchParams)(e)}}(e)(r.config.defaults),a=l.unsafePerformEffect(r.setPurchaserId(i)),u=c.fromMaybe(x.emptySearchOptions)(t),d=l.unsafePerformEffect(N.getOrCreateSid(u.sid)),p=l.unsafePerformEffect(r.setUserId(N.setSID(d)(u))),h={searchParams:a,searchOptions:n.pure(L.applicativeFFIMaybe)(p)};return s.bind(T.bindFF)(n.unless(T.applicativeFF)(L.fromFFIMaybe(!1)(s.bind(L.bindFFIMaybe)(u.requestOptions)((function(e){return o.mapFlipped(L.functorFFIMaybe)(e.skipBeforeHandlers)((function(e){return!0===e}))}))))(I.runBeforeSearchSubscribers(h)))((function(e){return s.bind(T.bindFF)(n.pure(T.applicativeFF)(l.unsafePerformEffect(M.disableAutoFetching)))((function(e){return A.sendAuthenticated(E.applyAuth(r.config.apiKey)((r.config.defaults,function(e){return function(t){return function(i){var r=F.generateEndpoint("search")(F["getChannel'"](t.requestOptions)),n={params:e,searchControlParams:t.searchControlParams,sid:t.sid,userId:t.userId,userInput:t.userInput};return A.createFFRequestPOST(r)(i)(n)}}})(a)(p)({success:M.successHandlerSearch(h)})))}))}))},W=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(r.setPurchaserId(e)),n="?"+w.toQueryString(m.queryStringCompareParams)(i),a={compareParams:i,requestOptions:L.fromMaybe(t)},o=F.generateEndpointWithSub("records")(F.getChannel(t))("compare")+n;return s.bind(T.bindFF)(I.guardBeforeSubscribers(a)(I.runBeforeCompareSubscribers))((function(e){return A.sendAuthenticated(E.applyAuth(r.config.apiKey)(A.createFFRequestGET(o)({success:M.successHandlerCompare(a)})))}))}})),K=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(N.getOrCreateSid(e.sid)),n=l.unsafePerformEffect(r.setPurchaserId(N.setSID(i)(e))),a="?"+w.toQueryString(f.queryStringCampaignShoppi)(n),o={campaignShoppingCartParams:n,requestOptions:L.fromMaybe(t)},c=F.generateEndpointWithSub("campaign")(F.getChannel(t))("shoppingcart")+a;return s.bind(T.bindFF)(I.guardBeforeSubscribers(o)(I.runBeforeCampaignShoppingCartSubscribers))((function(e){return A.sendAuthenticated(E.applyAuth(r.config.apiKey)(A.createFFRequestGET(c)({success:M.successHandlerCampaignShoppingCart(o)})))}))}})),z=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(N.getOrCreateSid(e.sid)),n=l.unsafePerformEffect(r.setPurchaserId(N.setSID(i)(e))),a="?"+w.toQueryString(h.queryStringCampaignProduc)(n),o={campaignProductParams:n,requestOptions:L.fromMaybe(t)},c=F.generateEndpointWithSub("campaign")(F.getChannel(t))("product")+a;return s.bind(T.bindFF)(I.guardBeforeSubscribers(o)(I.runBeforeCampaignProductSubscribers))((function(e){return A.sendAuthenticated(E.applyAuth(r.config.apiKey)(A.createFFRequestGET(c)({success:M.successHandlerCampaignProduct(o)})))}))}})),$=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(N.getOrCreateSid(e.sid)),n=l.unsafePerformEffect(r.setPurchaserId(N.setSID(i)(e))),a="?"+w.toQueryString(p.queryStringCampaignPagePa)(n),o={campaignPageParams:n,requestOptions:L.fromMaybe(t)},c=F.generateEndpointWithSub("campaign")(F.getChannel(t))("page")+a;return s.bind(T.bindFF)(I.guardBeforeSubscribers(o)(I.runBeforeCampaignPageSubscribers))((function(e){return A.sendAuthenticated(E.applyAuth(r.config.apiKey)(A.createFFRequestGET(c)({success:M.successHandlerCampaignPage(o)})))}))}}));e.exports={campaignPage:function(e,t){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validate(p.validateCampaignPageParam))(T.requireArg(p.requireArgCampaignPagePar)(e)("campaignPageParams")))((function(e){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validateOptional(P.validateOptionalWKRequest))(T.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return $(e,t)}))}))},campaignProduct:function(e,t){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validate(h.validateCampaignProductPa))(T.requireArg(h.requireArgCampaignProduct)(e)("campaignProductParams")))((function(e){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validateOptional(P.validateOptionalWKRequest))(T.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return z(e,t)}))}))},campaignShoppingCart:function(e,t){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validate(f.validateCampaignShoppingC))(T.requireArg(f.requireArgCampaignShoppin)(e)("campaignShoppingCartParams")))((function(e){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validateOptional(P.validateOptionalWKRequest))(T.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return K(e,t)}))}))},compare:function(e,t){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validate(m.validateCompareParams))(T.requireArg(m.requireArgCompareParams)(e)("compareParams")))((function(e){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validateOptional(P.validateOptionalWKRequest))(T.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return W(e,t)}))}))},navigation:function(e,t){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validate(d.validateNavigationParams))(T.requireArg(d.requireArgNavigationParam)(e)("navigationParams")))((function(e){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validateOptional(C.validateOptionalWKNavigat))(T.checkOptionalArg(C.checkOptionalArgWKNavigat)(t)("navigationOptions")))((function(t){return j(e,t)}))}))},navigationCategory:function(e,t){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validate(g.validateNavigationCategor))(T.requireArg(g.requireArgNavigationCateg)(e)("navigationCategoryParams")))((function(e){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validateOptional(P.validateOptionalWKRequest))(T.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return H(e,t)}))}))},predictiveBasket:function(e,t){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validate(b.validatePredictiveBasketP))(T.requireArg(b.requireArgPredictiveBaske)(e)("predictiveBasketParams")))((function(e){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validateOptional(P.validateOptionalWKRequest))(T.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return D(e,t)}))}))},recommendation:function(e,t){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validate(v.validateRecommendationPar))(T.requireArg(v.requireArgRecommendationP)(e)("recommendationParams")))((function(e){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validateOptional(P.validateOptionalWKRequest))(T.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return B(e,t)}))}))},records:function(e,t){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validate(y.validateRecordsParams))(T.requireArg(y.requireArgRecordsParams)(e)("recordsParams")))((function(e){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validateOptional(P.validateOptionalWKRequest))(T.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return R(e,t)}))}))},search:function(e,t){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validate(S.validateSearchParams))(T.requireArg(S.requireArgSearchParams)(e)("searchParams")))((function(e){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validateOptional(x.validateOptionalWKSearchO))(T.checkOptionalArg(x.checkOptionalArgWKSearchO)(t)("searchOptions")))((function(t){return U(e,t)}))}))},similar:function(e,t){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validate(_.validateSimilarParams))(T.requireArg(_.requireArgSimilarParams)(e)("similarParams")))((function(e){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validateOptional(P.validateOptionalWKRequest))(T.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return q(e,t)}))}))},suggest:function(e,t){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validate(k.validateSuggestParams))(T.requireArg(k.requireArgSuggestParams)(e)("suggestParams")))((function(e){return s.bind(T.bindFF)(s.bindFlipped(T.bindFF)(T.validateOptional(P.validateOptionalWKRequest))(T.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return V(e,t)}))}))}}},6657:function(e,t,i){let r,n,s=!1;const a="ALWAYS_ON";t.disableAutoFetching=()=>{s=!1},t.enableAutoFetching=()=>{s=!0},t.setLastResultNavigation=e=>()=>{r=e,n=void 0},t.setLastResultSearch=e=>()=>{n=e,r=void 0},t.elementsSubscribeCampaignPage=e=>G(o,e),t.elementsSubscribeCampaignProduct=e=>G(c,e),t.elementsSubscribeCampaignShoppingCart=e=>G(u,e),t.elementsSubscribeCompare=e=>G(l,e),t.elementsSubscribeNavigationImpl=e=>t=>((s||e===a)&&r&&X(!1)([t],r,{}),G(d,t)),t.elementsSubscribeNavigationCategory=e=>G(p,e),t.elementsSubscribePredictiveBasket=e=>G(h,e),t.elementsSubscribeRecommendation=e=>G(f,e),t.elementsSubscribeRecords=e=>G(m,e),t.elementsSubscribeSearchImpl=e=>t=>((s||e===a)&&n&&X(!1)([t],n,{}),G(g,t)),t.elementsSubscribeSimilar=e=>G(b,e),t.elementsSubscribeSuggest=e=>G(v,e),t.elementsSubscribeSearchAndNavigationImpl=e=>t=>(!s&&e!==a||!r&&!n||X(!1)([t],r||n,{}),G(y,t)),t.elementsUnsubscribe=Z,t.subscribeCampaignPage=e=>G(S,e),t.subscribeCampaignProduct=e=>G(k,e),t.subscribeCampaignRedirect=e=>G(w,e),t.subscribeCampaignShoppingCart=e=>G(C,e),t.subscribeCompare=e=>G(P,e),t.subscribeNavigationImpl=e=>t=>((s||e===a)&&r&&Q(!1)([t],r,{}),G(x,t)),t.subscribeNavigationCategory=e=>G(E,e),t.subscribePredictiveBasket=e=>G(I,e),t.subscribeRecommendation=e=>G(A,e),t.subscribeRecords=e=>G(F,e),t.subscribeSearchImpl=e=>t=>((s||e===a)&&n&&Q(!1)([t],n,{}),G(M,t)),t.subscribeSimilar=e=>G(N,e),t.subscribeSuggest=e=>G(O,e),t.subscribeSearchAndNavigationImpl=e=>t=>(!s&&e!==a||!r&&!n||Q(!1)([t],r||n,{}),G(L,t)),t.unsubscribe=Z,t.transformCampaignPage=e=>{R.push(e)},t.transformCampaignProduct=e=>{B.push(e)},t.transformCampaignShoppingCart=e=>{D.push(e)},t.transformCompare=e=>{j.push(e)},t.transformNavigation=e=>{H.push(e)},t.transformNavigationCategory=e=>{V.push(e)},t.transformPredictiveBasket=e=>{U.push(e)},t.transformRecommendation=e=>{W.push(e)},t.transformRecords=e=>{K.push(e)},t.transformSearch=e=>{z.push(e)},t.transformSimilar=e=>{$.push(e)},t.transformSuggest=e=>{J.push(e)};const o=new Map,c=new Map,u=new Map,l=new Map,d=new Map,p=new Map,h=new Map,f=new Map,m=new Map,g=new Map,b=new Map,v=new Map,y=new Map,_=e=>(t,i,r)=>()=>X(r)(e,t,i);t.runElementsCampaignPageSubscribers=_(o),t.runElementsCampaignProductSubscribers=_(c),t.runElementsCampaignShoppingCartSubscribers=_(u),t.runElementsCompareSubscribers=_(l),t.runElementsNavigationSubscribers=function(){return _([Array.from(d.values()),Array.from(y.values())].flat())(...arguments)},t.runElementsNavigationCategorySubscribers=_(p),t.runElementsPredictiveBasketSubscribers=_(h),t.runElementsRecommendationSubscribers=_(f),t.runElementsSearchSubscribers=function(){return _([Array.from(g.values()),Array.from(y.values())].flat())(...arguments)},t.runElementsSimilarSubscribers=_(b),t.runElementsSuggestSubscribers=_(v);const S=new Map,k=new Map,w=new Map,C=new Map,P=new Map,x=new Map,E=new Map,I=new Map,A=new Map,F=new Map,M=new Map,N=new Map,O=new Map,L=new Map,T=e=>(t,i,r)=>()=>Q(r)(e,t,i);t.runCampaignPageSubscribers=T(S),t.runCampaignProductSubscribers=T(k),t.runCampaignShoppingCartSubscribers=T(C),t.runCompareSubscribers=T(P),t.runNavigationSubscribers=function(){return T([Array.from(x.values()),Array.from(L.values())].flat())(...arguments)},t.runNavigationCategorySubscribers=T(E),t.runPredictiveBasketSubscribers=T(I),t.runRecommendationSubscribers=T(A),t.runRecordsSubscribers=T(F),t.runSearchSubscribers=function(){return T([Array.from(M.values()),Array.from(L.values())].flat())(...arguments)},t.runSimilarSubscribers=T(N),t.runSuggestSubscribers=T(O),t.runCampaignRedirectSubscribers=(e,t,i,r)=>()=>function(e,t,i,r,n){if(!e.size)return;const s=r(t);for(const r of s){const s={campaign:r,result:t,requestInfo:i};for(const t of e.values())if(n){if(!1===t(s))return console.log("campaignRedirectSubscribers: Pipeline interrupted"),!1}else try{if(!1===t(s))return console.log("campaignRedirectSubscribers: Pipeline interrupted"),!1}catch(e){console.error("Error in custom redirect handler. Skipping to next.",e)}}return!0}(w,e,t,i,r),t.runCampaignPageTransformers=(e,t,i,r)=>()=>re("CampaignPage",R,t,i,e,r),t.runCampaignProductTransformers=(e,t,i,r)=>()=>re("CampaignProduct",B,t,i,e,r),t.runCampaignShoppingCartTransformers=(e,t,i,r)=>()=>re("CampaignShoppingCart",D,t,i,e,r),t.runCompareTransformers=(e,t,i,r)=>()=>re("Compare",j,t,i,e,r),t.runNavigationTransformers=(e,t,i,r)=>()=>re("Navigation",H,t,i,e,r),t.runNavigationCategoryTransformers=(e,t,i,r)=>()=>re("NavigationCategory",V,t,i,e,r),t.runPredictiveBasketTransformers=(e,t,i,r)=>()=>re("PredictiveBasket",U,t,i,e,r),t.runRecommendationTransformers=(e,t,i,r)=>()=>re("Recommendation",W,t,i,e,r),t.runRecordsTransformers=(e,t,i,r)=>()=>re("Records",K,t,i,e,r),t.runSearchTransformers=(e,t,i,r)=>()=>re("Search",z,t,i,e,r),t.runSimilarTransformers=(e,t,i,r)=>()=>re("Similar",$,t,i,e,r),t.runSuggestTransformers=(e,t,i,r)=>()=>re("Suggest",J,t,i,e,r),t.unsafeMergeTeaserCampaignsImpl=e=>t=>{const i=e(t);if(!i.length)return t;const r=t.hits,n=t.hits.slice(0);return i.forEach((e=>{if(!e.position)return;const t=n.indexOf(r[e.position-1]);n.splice(t,0,e)})),Object.assign({},t,{hits:n})},t.unsafePerformEffectWK=e=>e();const q=new Map,R=[],B=[],D=[],j=[],H=[],V=[],U=[],W=[],K=[],z=[],$=[],J=[];function G(e,t){const i=Array.from({length:24},(()=>Math.floor(10*Math.random()))).join("");return q.set(i,e),e.set(i,t),i}function Z(e){const t=q.get(e);return t&&t.delete(e),q.delete(e)}const X=e=>e?Y:ee,Q=e=>e?Y:te,Y=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;re(...i)))},ee=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r2?i-2:0),n=2;n{try{t(...r)}catch(t){console.error("Error in ".concat(e," handler. Skipping to next."),t)}}))}function re(e,t,i,r,n,s){return t.reduce(((t,i,a)=>{let o;if(s)o=i(t,r);else try{o=i(t,r)}catch(i){return console.error("Error in custom ".concat(e," transformer registered at index ").concat(a,". Skipping to next."),i),t}return null==o?(n("".concat(e," transformer registered at index ").concat(a," did not return a value.\n").concat(i.toString())),t):o}),i)}function ne(e,t,r,n){if(n){return void i(8675).internalRouting.invokeSandboxResponseListener(e,t)}const s=r(t);if(s.initial)return void window.history.replaceState({requestInfo:s.requestInfo,result:e},"");const a=i(8675).internalRouting.invokeUrlParamOptionsListener()||{},o=function(e,t){const i=new URLSearchParams;if(!e)return i;const r=Object.assign({allow:[],block:["activeAbTests","followSearch","purchaserId"],blockFilters:[],keyMapping:{},order:["query","filters","sortItems"],postStringifier:void 0,stringifiers:{}},t),n=()=>!0,s=Object.keys(ce).filter(r.allow.length?e=>r.allow.includes(e):n).filter(r.block.length?e=>!r.block.includes(e):n),a=new Set;r.order.forEach((e=>{s.includes(e)&&a.add(e)})),s.forEach((e=>{a.add(e)}));const o=[],c=e=>function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;o.push({key:i,value:t})},u=t=>"filters"===t?e[t].filter((e=>!r.blockFilters.includes(e.name))):e[t];a.forEach((t=>{if(!e.hasOwnProperty(t))return;("function"==typeof r.stringifiers[t]?r.stringifiers[t]:ce[t])(c(t),u(t))}));const l="function"==typeof r.postStringifier?r.postStringifier(o):o;if(!Array.isArray(l))return void console.error("'postStringifier' did not return an array. Was: ".concat(l));return l.forEach((e=>{let{key:t,value:n}=e;return i.append(r.keyMapping[t]||t,n)})),i}(s.params,a),c=o.size?"?"+o.toString():window.location.pathname;window.history.pushState({requestInfo:s.requestInfo,result:e},"",c)}function se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object.assign({},e,{navigationOptions:Object.assign({},e.navigationOptions,{requestOptions:Object.assign({},(e.navigationOptions||{}).requestOptions,{origin:void 0})})});return{requestInfo:t,params:t.navigationParams,initial:t.navigationOptions.initial}}function ae(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object.assign({},e,{searchOptions:Object.assign({},e.searchOptions,{requestOptions:Object.assign({},(e.searchOptions||{}).requestOptions,{origin:void 0})})});return{requestInfo:t,params:t.searchParams,initial:t.searchOptions.initial}}t.processHistoryNavigation=e=>t=>i=>()=>ne(e,t,se,i||t&&t.navigationOptions&&!0===t.navigationOptions.withoutHistory),t.processHistorySearch=e=>t=>i=>()=>ne(e,t,ae,i||t&&t.searchOptions&&!0===t.searchOptions.withoutHistory);const oe=(e,t)=>e(t),ce={activeAbTests(e,t){Object.entries(t).forEach((t=>e("".concat(t[0],":").concat(t[1]),"activeAbTest")))},advisorStatus(e,t){e(t.id+"-"+t.answerPath)},articleNumberSearch(e,t){"DETECT"!==t&&e(t)},excludeProductsNotInRange:oe,filters(e,t){const i=e=>e.replaceAll("%","%25").replaceAll("/","%2F").replaceAll("+","%2B");t.forEach((t=>{let r=t.values.map(((e,t)=>{let r="";t>0&&(r="or"===e.type?"~~~":"___");const n=Array.isArray(e.value)?e.value.map(i).join("/"):e.value;return r+(e.exclude?"!"+n:n)})).join("");"and"===t.values[0].type&&(r="___"+r),e(t.name+":"+r,t.substring?"substringFilter":"filter")}))},followSearch:oe,hitsPerPage:oe,location(e,t){e(t.latitude,"latitude"),e(t.longitude,"longitude")},marketIds(e,t){t.forEach((t=>e(t,"marketId")))},maxCountVariants:oe,maxDistance:oe,page:oe,purchaserId:oe,query(e,t){t&&"*"!==t&&e(t)},searchField:oe,sortItems(e,t){t.forEach((t=>e(t.name+":"+t.order,"sort")))},splitDocumentsAt:oe};t.setInitialNavigation=e=>{const t=e||{};return t.navigationOptions=t.navigationOptions||{},t.navigationOptions.initial=!0,t},t.setInitialSearch=e=>{const t=e||{};return t.searchOptions=t.searchOptions||{},t.searchOptions.initial=!0,t},window.addEventListener("popstate",(e=>{let{state:t}=e;if(factfinder.config.sandboxMode)return;const i=t.requestInfo;factfinder.config.categoryPage?factfinder.response.dispatch.navigationBeforeTransform(t.result,i):factfinder.response.dispatch.searchBeforeTransform(t.result,i)}))},5645:function(e,t,i){"use strict";var r=i(6657),n=i(1287),s=i(3139),a=i(8850),o=i(1526),c=i(4884),u=i(8164),l=i(1184),d=i(2024),p=function(e){return o.filter((function(e){return"REDIRECT"===e.flavour}))(e.campaigns)},h=function(e){return r.unsafeMergeTeaserCampaignsImpl((function(e){return a.bind(a.bindArray)(e.campaigns)((function(e){return d.fromFFIMaybe([])(c.mapFlipped(d.functorFFIMaybe)(e.feedbackTexts)(o.filter((function(e){return!0===e.teaser}))))}))}))(e)},f=function(e){return function(t){return function(i){return!0===d.fromFFIMaybe(!1)(a.bind(d.bindFFIMaybe)(t.requestOptions)((function(e){return e.requestOnly})))?s.pure(u.applicativeEffect)(i):e(t)(i)}}},m=f((function(e){return function(t){return function(){var i=r.runCampaignPageTransformers(l.emitError,t,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();r.runElementsCampaignPageSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)(),r.runCampaignPageSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();return i}}})),g=f((function(e){return function(t){return function(){var i=r.runCampaignProductTransformers(l.emitError,t,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();r.runElementsCampaignProductSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)(),r.runCampaignProductSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();return i}}})),b=f((function(e){return function(t){return function(){var i=r.runCampaignShoppingCartTransformers(l.emitError,t,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();r.runElementsCampaignShoppingCartSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)(),r.runCampaignShoppingCartSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();return i}}})),v=f((function(e){return function(t){return function(){var i=r.runCompareTransformers(l.emitError,t,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();r.runElementsCompareSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)(),r.runCompareSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();return i}}})),y=f((function(e){return function(t){return function(){var i=r.runNavigationCategoryTransformers(l.emitError,t,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();r.runElementsNavigationCategorySubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)(),r.runNavigationCategorySubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();return i}}})),_=f((function(e){return function(t){return function(){var i=r.runPredictiveBasketTransformers(l.emitError,t,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();r.runElementsPredictiveBasketSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)(),r.runPredictiveBasketSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();return i}}})),S=f((function(e){return function(t){return function(){var i=r.runRecommendationTransformers(l.emitError,t,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();r.runElementsRecommendationSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)(),r.runRecommendationSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();return i}}})),k=f((function(e){return function(t){return function(){var i=r.runRecordsTransformers(l.emitError,t,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();r.runRecordsSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();return i}}})),w=f((function(e){return function(t){return function(){var i=r.runSimilarTransformers(l.emitError,t,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();r.runElementsSimilarSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)(),r.runSimilarSubscribers(i,s.pure(d.applicativeFFIMaybe)(e),n.config.debug)();return i}}})),C=function(e){return function(t){return function(){n.setFieldRoles(e.fieldRoles)();var i=r.runSuggestTransformers(l.emitError,e,t,n.config.debug)();r.runElementsSuggestSubscribers(i,t,n.config.debug)(),r.runSuggestSubscribers(i,t,n.config.debug)();return i}}},P=f((function(e){return function(t){return C(t)(s.pure(d.applicativeFFIMaybe)(e))}})),x=function(e){return function(t){return function(){var i=r.runSearchTransformers(l.emitError,e,t,n.config.debug)();r.setLastResultSearch(i)(),r.runElementsSearchSubscribers(i,t,n.config.debug)(),r.runSearchSubscribers(i,t,n.config.debug)();return i}}},E=function(e){return function(t){return function(){if(!1===r.runCampaignRedirectSubscribers(e,t,p,n.config.debug)())return e;n.setFieldRoles(e.fieldRoles)();var i=h(e);r.processHistorySearch(i)(t)(n.config.sandboxMode)();return x(i)(t)()}}},I=function(e){return function(t){return function(){var i=r.runNavigationTransformers(l.emitError,e,t,n.config.debug)();r.setLastResultNavigation(i)(),r.runElementsNavigationSubscribers(i,t,n.config.debug)(),r.runNavigationSubscribers(i,t,n.config.debug)();return i}}},A=function(e){return function(t){return function(){if(!1===r.runCampaignRedirectSubscribers(e,t,p,n.config.debug)())return e;n.setFieldRoles(e.fieldRoles)();var i=h(e);r.processHistoryNavigation(i)(t)(n.config.sandboxMode)();return I(i)(t)()}}};e.exports={elementsSubscribeNavigation:function(e){return r.elementsSubscribeNavigationImpl(n.config.autoFetch)(e)},elementsSubscribeSearch:function(e){return r.elementsSubscribeSearchImpl(n.config.autoFetch)(e)},elementsSubscribeSearchAndNavigation:function(e){return r.elementsSubscribeSearchAndNavigationImpl(n.config.autoFetch)(e)},subscribeNavigation:function(e){return r.subscribeNavigationImpl(n.config.autoFetch)(e)},subscribeSearch:function(e){return r.subscribeSearchImpl(n.config.autoFetch)(e)},subscribeSearchAndNavigation:function(e){return r.subscribeSearchAndNavigationImpl(n.config.autoFetch)(e)},dispatchNavigation:function(e,t){return r.unsafePerformEffectWK(A(e)(t))},dispatchNavigationBeforeTransform:function(e,t){return r.unsafePerformEffectWK(I(e)(t))},dispatchSearch:function(e,t){return r.unsafePerformEffectWK(E(e)(t))},dispatchSearchBeforeTransform:function(e,t){return r.unsafePerformEffectWK(x(e)(t))},dispatchSuggest:function(e,t){return r.unsafePerformEffectWK(C(e)(t))},dispatchSsrNavigation:function(e,t){return r.unsafePerformEffectWK((function(){s.when(u.applicativeEffect)("SSR_ONLY"===n.config.autoFetch)(r.enableAutoFetching)();return A(e)(r.setInitialNavigation(t))()}))},dispatchSsrSearch:function(e,t){return r.unsafePerformEffectWK((function(){s.when(u.applicativeEffect)("SSR_ONLY"===n.config.autoFetch)(r.enableAutoFetching)();return E(e)(r.setInitialSearch(t))()}))},successHandlerCampaignPage:m,successHandlerCampaignProduct:g,successHandlerCampaignShoppingCart:b,successHandlerCompare:v,successHandlerNavigation:function(e){return function(t){return!0===d.fromFFIMaybe(!1)(a.bind(d.bindFFIMaybe)(e.navigationOptions)((function(e){return a.bind(d.bindFFIMaybe)(e.requestOptions)((function(e){return e.requestOnly}))})))?s.pure(u.applicativeEffect)(t):A(t)(s.pure(d.applicativeFFIMaybe)(e))}},successHandlerNavigationCategory:y,successHandlerPredictiveBasket:_,successHandlerRecommendation:S,successHandlerRecords:k,successHandlerSearch:function(e){return function(t){return!0===d.fromFFIMaybe(!1)(a.bind(d.bindFFIMaybe)(e.searchOptions)((function(e){return a.bind(d.bindFFIMaybe)(e.requestOptions)((function(e){return e.requestOnly}))})))?s.pure(u.applicativeEffect)(t):E(t)(s.pure(d.applicativeFFIMaybe)(e))}},successHandlerSimilar:w,successHandlerSuggest:P,elementsSubscribeCampaignPage:r.elementsSubscribeCampaignPage,elementsSubscribeCampaignProduct:r.elementsSubscribeCampaignProduct,elementsSubscribeCampaignShoppingCart:r.elementsSubscribeCampaignShoppingCart,elementsSubscribeCompare:r.elementsSubscribeCompare,elementsSubscribeNavigationCategory:r.elementsSubscribeNavigationCategory,elementsSubscribePredictiveBasket:r.elementsSubscribePredictiveBasket,elementsSubscribeRecommendation:r.elementsSubscribeRecommendation,elementsSubscribeRecords:r.elementsSubscribeRecords,elementsSubscribeSimilar:r.elementsSubscribeSimilar,elementsSubscribeSuggest:r.elementsSubscribeSuggest,elementsUnsubscribe:r.elementsUnsubscribe,subscribeCampaignPage:r.subscribeCampaignPage,subscribeCampaignProduct:r.subscribeCampaignProduct,subscribeCampaignRedirect:r.subscribeCampaignRedirect,subscribeCampaignShoppingCart:r.subscribeCampaignShoppingCart,subscribeCompare:r.subscribeCompare,subscribeNavigationCategory:r.subscribeNavigationCategory,subscribePredictiveBasket:r.subscribePredictiveBasket,subscribeRecommendation:r.subscribeRecommendation,subscribeRecords:r.subscribeRecords,subscribeSimilar:r.subscribeSimilar,subscribeSuggest:r.subscribeSuggest,unsubscribe:r.unsubscribe,transformCampaignPage:r.transformCampaignPage,transformCampaignProduct:r.transformCampaignProduct,transformCampaignShoppingCart:r.transformCampaignShoppingCart,transformCompare:r.transformCompare,transformNavigation:r.transformNavigation,transformNavigationCategory:r.transformNavigationCategory,transformPredictiveBasket:r.transformPredictiveBasket,transformRecommendation:r.transformRecommendation,transformRecords:r.transformRecords,transformSearch:r.transformSearch,transformSimilar:r.transformSimilar,transformSuggest:r.transformSuggest,disableAutoFetching:r.disableAutoFetching}},464:function(e,t){function i(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let t="";for(let i=0;i<30;++i)t+=e[Math.floor(62*Math.random())];return t}t.getOrCreateSidImpl=e=>t=>()=>{if(e)return e;let r;if(t)r=t;else{const e=localStorage.ffwebco;if(e){const{sid:t,timestamp:n}=JSON.parse(e);r=Date.now()-parseInt(n,36)>864e5?i():t}else r=i()}return localStorage.ffwebco=JSON.stringify({sid:r,timestamp:Date.now().toString(36)}),r},t.setSIDImpl=e=>t=>Object.assign({},t,{sid:e})},6296:function(e,t,i){"use strict";var r=i(464),n=i(1287),s=r.setSIDImpl;e.exports={getOrCreateSid:function(e){return r.getOrCreateSidImpl(e)(n.config.defaults.general.sid)},setSID:s}},6496:function(e,t){t.merge=e=>t=>Object.assign({},e,t)},8455:function(e,t,i){"use strict";var r=i(6496);e.exports={merge:r.merge}},517:function(e,t){t.fromFFIMaybe=e=>t=>void 0===t?e:t,t.toFFIMaybe=e=>e,t.undefined=void 0,t.mapFFIMaybeImpl=e=>t=>void 0===t?t:e(t),t.applyFFIMaybeImpl=e=>t=>void 0===t?t:e(t),t.bindFFIMaybeImpl=e=>t=>void 0===e?e:t(e),t.pureFFIMaybeImpl=e=>e,t.eqImpl=e=>t=>e===t},2024:function(e,t,i){"use strict";var r=i(517),n=i(596),s={map:r.mapFFIMaybeImpl},a={eq:r.eqImpl},o={apply:r.applyFFIMaybeImpl,Functor0:function(e){return s}},c={bind:r.bindFFIMaybeImpl,Apply0:function(e){return o}},u={pure:r.pureFFIMaybeImpl,Apply0:function(e){return o}};e.exports={fromMaybe:function(e){return e instanceof n.Just?r.toFFIMaybe(e.value0):r[void 0]},functorFFIMaybe:s,applyFFIMaybe:o,bindFFIMaybe:c,applicativeFFIMaybe:u,eqFFIMaybe:a,fromFFIMaybe:r.fromFFIMaybe,toFFIMaybe:r.toFFIMaybe,undefined:r[void 0],mapFFIMaybeImpl:r.mapFFIMaybeImpl,applyFFIMaybeImpl:r.applyFFIMaybeImpl,bindFFIMaybeImpl:r.bindFFIMaybeImpl,pureFFIMaybeImpl:r.pureFFIMaybeImpl,eqImpl:r.eqImpl}},2409:function(e,t){t.unsafeToArray=e=>e},2877:function(e,t,i){"use strict";var r=i(2409),n=i(9704),s=i(7860),a=i(416),o={requireArg:function(e){return function(t){return s.requireArgImpl(e)(s.nonEmptyArray(t)(s.any("")))}}};e.exports={requireArgNonEmptyArray:o,validateMapNonEmptyArrayA:function(e){return{validateMap:function(t){return n.traverse(n.traversableArray)(a.applicativeFF)(a.validate(e))(r.unsafeToArray(t))}}}}},5995:function(e,t){t.mapFFImpl=e=>t=>t.then(e),t.applyFFImpl=e=>t=>Promise.all([e,t]).then((e=>e[0](e[1]))),t.bindFFImpl=e=>t=>e.then(t),t.pureFFImpl=e=>Promise.resolve(e)},416:function(e,t,i){"use strict";var r=i(5995),n={map:r.mapFFImpl},s={apply:r.applyFFImpl,Functor0:function(e){return n}},a={bind:r.bindFFImpl,Apply0:function(e){return s}},o={pure:r.pureFFImpl,Apply0:function(e){return s}};e.exports={requireArg:function(e){return e.requireArg},checkOptionalArg:function(e){return e.checkOptionalArg},validate:function(e){return e.validate},validateMap:function(e){return e.validateMap},validateOptional:function(e){return e.validateOptional},functorFF:n,applyFF:s,bindFF:a,applicativeFF:o}},2207:function(t,i,r){"use strict";r.d(i,{c:function(){return k},u:function(){return S}});var n={};r.r(n),r.d(n,{env:function(){return g},filterBuilders:function(){return f},formatters:function(){return m},toNavigationParams:function(){return b}});var s=r(8687),a=r(9707);const o={dispatchSuggestClick:e=>{var t;return null===(t=u.suggestClick)||void 0===t?void 0:t.call(u,e)},dispatchSuggestDetail:e=>{var t;return null===(t=u.suggestDetail)||void 0===t?void 0:t.call(u,e)},dispatchSuggestUnmapped:e=>{var t;return null===(t=u.suggestUnmapped)||void 0===t?void 0:t.call(u,e)},addSuggestHideListener:e=>u.suggestHide.add(e),removeSuggestHideListener:e=>u.suggestHide.delete(e),dispatchSuggestHide:e=>u.suggestHide.forEach((t=>t(e)))},c={setSuggestClickListener:(0,a.z)((e=>u.suggestClick=e)),setSuggestDetailListener:(0,a.z)((e=>u.suggestDetail=e)),setSuggestUnmappedListener:(0,a.z)((e=>u.suggestUnmapped=e))},u={suggestClick:void 0,suggestDetail:void 0,suggestUnmapped:void 0,suggestHide:new Set};var l=r(8675),d=r(9312),p=r.n(d);const h=(e,t,i)=>"".concat(e," - ").concat(t," ").concat(i);p().registerHelper("$",(function(e,t){const i=factfinder.config.formatting;if(!i)return e;const r=Number.isInteger(t)?{...i.formatOptions,maximumFractionDigits:t,minimumFractionDigits:t}:i.formatOptions;return Intl.NumberFormat(i.locale,r).format(e)})),p().registerHelper("$dec",(function(e,t){const i=factfinder.config.formatting;if(!i)return e;const r=Number.isInteger(t)?{maximumFractionDigits:t,minimumFractionDigits:t}:{};return Intl.NumberFormat(i.locale,r).format(e)})),p().registerHelper("$bctFilter",(function(){var e;const{item:t,facet:i}=this,r=factfinder.config.formatting;if(!r)return t.text;if("filter"!==t.type)return t.text;if(i&&!i.unit)return t.text;if(!i&&t.associatedFieldName!==factfinder.config.fieldRoles.price)return t.text;const n=Intl.NumberFormat(r.locale,r.formatOptions).formatToParts(.1),s=n.find((e=>"currency"===e.type));if(!s||i&&i.unit!==s.value)return t.text;const a=n.find((e=>"fraction"===e.type)),o=null!==(e=null==a?void 0:a.value.length)&&void 0!==e?e:2,c=Intl.NumberFormat(r.locale,{minimumFractionDigits:o,maximumFractionDigits:o}),[[u],[l]]=Array.from(t.value.matchAll(/\d+(\.\d+)?/g));return h(c.format(u),c.format(l),s.value)})),p().registerHelper("$facetElement",(function(){var e;const t=this.element,i=this.facet||this.group,r=factfinder.config.formatting;if(null==i||!i.unit)return null==t?void 0:t.text;if(!r)return null==t?void 0:t.text;const n=Intl.NumberFormat(r.locale,r.formatOptions).formatToParts(.1),s=n.find((e=>"currency"===e.type));if(!s||i.unit!==s.value)return t.text;const a=n.find((e=>"fraction"===e.type)),o=null!==(e=null==a?void 0:a.value.length)&&void 0!==e?e:2,c=Intl.NumberFormat(r.locale,{minimumFractionDigits:o,maximumFractionDigits:o});return"SLIDER"===i.filterStyle?h(c.format(t.selectedMinValue),c.format(t.selectedMaxValue),s.value):t.text.replaceAll(/\d+(\.\d+)?/g,(e=>c.format(e)))+" "+s.value}));const f={categoryFilter(e,t){if(!e||"string"!=typeof e)throw Error("'name' must be a non-empty string. Was: '".concat(e,"' (Type: ").concat(typeof e,")"));if(!Array.isArray(t)||0===t.length)throw Error("'path' must be a non-empty array. Was: '".concat(t,"'"));return{name:e,substring:!1,values:[{exclude:!1,type:"or",value:t}]}},filter(e,t){if(!e||"string"!=typeof e)throw Error("'name' must be a non-empty string. Was: '".concat(e,"' (Type: ").concat(typeof e,")"));if(!t)throw Error("'values' must not be empty. Was: '".concat(t,"'"));return{name:e,substring:!1,values:(Array.isArray(t)?t:[t]).map((e=>({exclude:!1,type:"or",value:e})))}}},m={add(e,t){p().helpers.hasOwnProperty(e)?console.warn("Formatter '".concat(e,"' already exists. Custom formatter not added.")):p().registerHelper(e,(function(){for(var e=arguments.length,i=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};const s=new URLSearchParams(window.location.search),a={activeAbTests:e=>{let[t]=e;const i={};return t.values.map((e=>{const[t,r]=e.split(":");return i[t]=r})),i},advisorStatus:e=>{let[t]=e;const[i,r]=t.values[0].split(/-(?=[^-]+$)/);return{answerPath:r,id:i}},articleNumberSearch:e=>{let[t]=e;const i=["DETECT","ALWAYS","NEVER"],r=t.values[0].toUpperCase();if(i.includes(r))return r;console.warn("Invalid input to 'articleNumberSearch'. Must be one of: ".concat(JSON.stringify(i),". Was: ").concat(r))},excludeProductsNotInRange:function(e){let[t]=e;return"true"===t.values[0].toLowerCase()},filters:(e,t)=>{const i=[],r=e.find((e=>{let{key:t}=e;return"filter"===t})),n=e.find((e=>{let{key:t}=e;return"substringFilter"===t}));return r&&i.push(s(r,!1)),n&&i.push(s(n,!0)),i.flat();function s(e,i){let{values:r}=e;return r.map((e=>{const[r,n]=e.split(/:(.*)/),s=n.split(/(?=~~~|___)/).map((e=>{const[i,n,s,a]=e.match(/^(~~~|___)?(!)?(.+)$/);return{exclude:"!"===s,type:"___"===n?"and":"or",value:r===t?a.split("/").map(decodeURIComponent):a}}));return{name:r,substring:i,values:s}}))}},followSearch:l,hitsPerPage:u,location:e=>{var t,i;const r=null===(t=e.find((e=>{let{key:t}=e;return"latitude"===t})))||void 0===t?void 0:t.values[0],n=null===(i=e.find((e=>{let{key:t}=e;return"longitude"===t})))||void 0===i?void 0:i.values[0];if(r&&n)return{latitude:parseFloat(r),longitude:parseFloat(n)}},marketIds:function(e){let[t]=e;return t.values},maxCountVariants:u,maxDistance:function(e){let[t]=e;return parseFloat(t.values[0])},page:u,purchaserId:l,query:l,searchField:l,sortItems:e=>{let[t]=e;return t.values.map((e=>{const[t,i]=e.split(":");return{name:t,order:i}}))},splitDocumentsAt:u},o={activeAbTests:["activeAbTest"],filters:["filter","substringFilter"],location:["latitude","longitude"],marketIds:["marketId"],sortItems:["sort"]},c={};return Object.entries(a).forEach((a=>{let[u,l]=a;if("query"===u&&(c[u]="*"),t.includes(u))return;const d=(o[u]||[u]).flatMap((e=>{const t=r[e]||e;return s.has(t)?{key:e,values:s.getAll(t)}:[]}));if(d.length){const t="filters"===u,r=function(t,r,n){if(!t)return r;try{return n?t(r,i):t(r)}catch(t){return console.warn("Error in pre-parser.",e),r}}(n[u],d,t),s=t?l(r,i):l(r);s&&(c[u]=s)}})),c;function u(e){let[t]=e;return parseInt(t.values[0])}function l(e){let[t]=e;return t.values[0]}}},b=e=>{let{articleNumberSearch:t,query:i,searchField:r,...n}=e;return n};var v=r(6041);const y={...s.publicCore,version:"4.0.8",notifications:c,routing:l.publicRouting,utils:{...n}},_=new CustomEvent("_ffSdkVersion",{bubbles:!0,cancelable:!1});_.setSdkVersion=e=>{y.sdk=e},document.dispatchEvent(_);const S={...s.internalCore,notifications:o,routing:l.internalRouting},k=Object.freeze(y);window.factfinder=k;const w=new CustomEvent("ffCoreReady",{bubbles:!0,cancelable:!1});w.factfinder=k,w.initialSearch=(e,t)=>{if(!e)throw Error("searchOrNavigationParams is required.");return(0,v.hT)(e,"initialSearch",{...t,initial:!0})},document.dispatchEvent(w)},2240:function(e,t,i){"use strict";i.d(t,{D:function(){return s},l:function(){return n}});var r=i(2207);const n=Object.freeze({CampaignPage:"CampaignPage",CampaignProduct:"CampaignProduct",CampaignShoppingCart:"CampaignShoppingCart",Compare:"Compare",Navigation:"Navigation",NavigationCategory:"NavigationCategory",PredictiveBasket:"PredictiveBasket",Recommendation:"Recommendation",Search:"Search",Similar:"Similar",Suggest:"Suggest",SearchAndNavigation:"SearchAndNavigation"}),s=function(){for(var e=arguments.length,t=new Array(e),i=0;iclass extends e{constructor(){super(),this._subscriptionKeys=void 0,this._subscribedTopics=void 0}connectedCallback(){if("function"==typeof super.connectedCallback&&super.connectedCallback(),!this._subscriptionKeys&&!1!==this.subscribe){const e=this.topic?[this.topic]:t;a(this,e)}}update(){const e=this.topic?[this.topic]:t;!1===this.subscribe?o(this):u(e,this._subscribedTopics)||c(this,e),"function"==typeof super.update&&super.update()}disconnectedCallback(){"function"==typeof super.disconnectedCallback&&super.disconnectedCallback(),this._subscriptionKeys&&o(this)}_subscriptionCallback(){throw new Error("'_subscriptionCallback' function not implemented")}}},a=(e,t)=>{const i=t.filter((t=>"function"==typeof r.u["elementsSubscribe".concat(t)]||(console.error("Element's subscription target '".concat(t,"' does not exist."),e),!1)));e._subscriptionKeys=i.map((t=>r.u["elementsSubscribe".concat(t)](e._subscriptionCallback.bind(e)))),e._subscribedTopics=i},o=e=>{var t;null===(t=e._subscriptionKeys)||void 0===t||t.forEach((e=>r.u.elementsUnsubscribe(e))),e._subscriptionKeys=void 0,e._subscribedTopics=void 0},c=(e,t)=>{e._subscribedTopics&&o(e),a(e,t)},u=(e,t)=>e.length===t.length&&e.every((e=>t.includes(e)))&&t.every((t=>e.includes(t)))},3940:function(e,t,i){"use strict";i.d(t,{X:function(){return r}});const r=function(){let e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((e,t)=>{const i=t(e);return i===e||e.prototype instanceof i?e:i}),e)}},7854:function(e,t,i){"use strict";i.d(t,{E:function(){return r}});const r=()=>e=>class extends e{__transitionEnd(e){const t=e&&e.nodeName?e:e.currentTarget;try{t.__transitionActive__=!1,t.removeEventListener("transitionend",this.__transitionEnd);"0px"!==t.style.height?(this._updateTransition(t,!1),t.style.height="",t.style.overflow="",setTimeout((()=>this._updateTransition(t,!0)))):this._updateTransition(t,!0)}catch(e){console.log(e)}finally{if(t&&t.__collapseCallback__){const e=t.__collapseCallback__;delete t.__collapseCallback__,setTimeout((()=>{try{e()}catch(e){console.log(e)}}),16)}}}_updateTransition(e,t){e.style["transition-duration"]=!0===t?"":"0ms"}_isDisplayed(e){const t=e.getBoundingClientRect();for(let e in t)if(0!==t[e])return!0;return!1}_hide(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;try{"0px"!==e.style.height&&this._doTransition(e,t,"0px",i)}catch(e){console.log(e)}}_show(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;try{this._doTransition(e,t,"auto",i)}catch(e){console.log(e)}}_toggle(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;e.hasAttribute("opened")?this._hide(e,t,i):this._show(e,t,i)}_doTransition(e,t,i,r){if(e.__transitionActive__)return;e.__transitionActive__=!0,r&&(e.__collapseCallback__=r);const n=window.getComputedStyle(e),s=n["transition-duration"]||n.transitionDuration;if(t=s&&"0"!==s.replace(/\D/g,"")&&t,this._updateTransition(e,!1),t&&this._isDisplayed(e)){const r=n.height;if("auto"===i&&(e.style.height="",i=n.height),e.style.height=r,i===r)return e.style.height="",e.__transitionActive__=!1,delete e.__collapseCallback__,void this._updateTransition(e,t);e.offsetHeight;this._updateTransition(e,t),e.addEventListener("transitionend",this.__transitionEnd.bind(this))}if("0px"===i?(e.style.overflow="hidden",e.removeAttribute("opened")):e.setAttribute("opened",""),e.style.height=i,!t||!this._isDisplayed(e)){e.offsetHeight;this.__transitionEnd(e)}}_showChecked(e,t,i){e&&this._show(e,t,i)}_hideChecked(e,t,i){e&&this._hide(e,t,i)}_toggleChecked(e,t,i){e&&this._toggle(e,t,i)}}},8486:function(e,t,i){"use strict";i.d(t,{h:function(){return r}});const r=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>class extends t{updated(){super.updated(...arguments),e&&this.resolveDeferredAttributes()}resolveDeferredAttributes(){const e=this.getAttribute("data-ffw-defer");e&&e.split(",").forEach((e=>{const t="data-ffw-defer-".concat(e),i="data-defer-".concat(e);this.querySelectorAll("[data-ffw-defer-".concat(e,"],[data-defer-").concat(e,"]")).forEach((r=>{const n=r.getAttribute(t)||r.getAttribute(i);n&&r.setAttribute(e,n)}))}))}}}},7982:function(e,t,i){"use strict";i.d(t,{d:function(){return r}});const r=()=>e=>class extends e{trace(e){e=this._createMsg("trace",e),console.trace(e)}info(e){e=this._createMsg("info",e),console.info(e)}debug(e){e=this._createMsg("debug",e),console.debug(e)}warn(e){e=this._createMsg("warn",e),console.warn(e)}error(e){e=this._createMsg("error",e),console.error(e)}_createMsg(e,t){return"".concat(e.toUpperCase()," ").concat(this.constructor.is,": ").concat(t)}}},7361:function(e,t,i){"use strict";i.d(t,{z:function(){return r}});const r=()=>e=>class extends e{connectedCallback(){"function"==typeof super.connectedCallback&&super.connectedCallback(),this.hasAttribute("unresolved")&&this.removeAttribute("unresolved")}}},1136:function(e,t,i){"use strict";i.r(t),i.d(t,{AsnRemoveAllFilters:function(){return c}});var r=i(2207),n=i(3940),s=i(4474),a=i(2240),o=i(6041);class c extends((0,n.X)([(0,a.D)(a.l.SearchAndNavigation)],s.jD)){static get is(){return"ff-asn-remove-all-filters"}static get properties(){return{showAlways:{type:Boolean,attribute:"show-always"},removeParams:{type:Boolean,attribute:"remove-params"}}}constructor(){super(),this.showAlways=!1,this.removeParams=!1,this._searchParams=void 0}connectedCallback(){this.hideSelf(),super.connectedCallback(),this.addEventListener("click",u)}_subscriptionCallback(e){this._searchParams=e.searchParams,!1===this.showAlways&&!function(e){var t,i;if(!e.filters)return!1;if(0===(null!==(t=null===(i=r.c.config.categoryPage)||void 0===i?void 0:i.length)&&void 0!==t?t:0))return!0;if(e.filters.length>r.c.config.categoryPage.length)return!0;const n=e.filters,s=r.c.config.categoryPage;return!n.every((e=>s.findIndex((t=>{return r=t,(i=e).name===r.name&&i.values.length===r.values.length&&i.values.every((e=>r.values.find((t=>function(e,t){const i=e.value,r=t.value;return i===r||Array.isArray(i)&&Array.isArray(r)&&i.length===r.length&&i.every(((e,t)=>e===r[t]))}(e,t)))));var i,r}))>-1))}(e.searchParams)?this.hideSelf():this.showSelf()}}function u(){if(this.removeParams){const e={query:this._searchParams.query};r.c.config.categoryPage&&(e.filters=r.c.config.categoryPage),(0,o.hT)(e,this)}else{const{filters:e,...t}=this._searchParams;r.c.config.categoryPage&&(t.filters=r.c.config.categoryPage),delete t.page,(0,o.hT)(t,this)}}window.customElements.define(c.is,c)},5220:function(e,t,i){"use strict";i.r(t),i.d(t,{Asn:function(){return ie}});var r=i(168),n=i(3282),s=i(3940),a=i(9890),o=i(8477);const c=new WeakMap,u=(0,a.XM)((e=>t=>{if(!(t instanceof a.nt))throw new Error("cache can only be used in text bindings");let i=c.get(t);void 0===i&&(i=new WeakMap,c.set(t,i));const r=t.value;if(r instanceof o.R){if(e instanceof a.js&&r.template===t.options.templateFactory(e))return void t.setValue(e);{let e=i.get(r.template);void 0===e&&(e={instance:r,nodes:document.createDocumentFragment()},i.set(r.template,e)),(0,a.V)(e.nodes,t.startNode.nextSibling,t.endNode)}}if(e instanceof a.js){const r=t.options.templateFactory(e),n=i.get(r);void 0!==n&&(t.setValue(n.nodes),t.commit(),t.value=n.instance)}t.setValue(e)}));var l,d,p=i(4474),h=i(498),f=i(6858),m=i(8486),g=i(7982),b=i(6041);class v extends((0,s.X)([(0,g.d)(),(0,m.h)()],p.jD)){static get is(){return"ff-asn-group-element"}static get properties(){return{selected:{type:Boolean,reflect:!0},fixed:{type:Boolean,reflect:!0},implicit:{type:Boolean,reflect:!0},element:{type:Object,attribute:!1},group:{type:Object,attribute:!1}}}render(){const e=this.element&&{...this.element,text:this.element.__HIGHLIGHTED_NAME__||this.element.text};return this.selected?(0,n.dy)(l||(l=(0,r.Z)(['
',"
"])),(0,p.SM)(this._selectedTemplate,{element:e,group:this.group})):(0,n.dy)(d||(d=(0,r.Z)(['
',"
"])),(0,p.SM)(this._unselectedTemplate,{element:e,group:this.group}))}constructor(){var e;super(),this.selected=!1,this.element=void 0,this.group=void 0,this._rawOuterHtml="",this._selectedTemplate=y("selected"),this._unselectedTemplate=y("unselected"),this._clickListener=(e=this,t=>{e.implicit||e.fixed||(e.selected=!e.selected,(0,b.hT)(e.element.searchParams,e))})}connectedCallback(){super.connectedCallback(),this._init()}_init(){this._rawOuterHtml=this.outerHTML,this._selectedTemplate=this.querySelector("[slot='selected']")||this._selectedTemplate,this._unselectedTemplate=this.querySelector("[slot='unselected']")||this._unselectedTemplate,this.addEventListener("click",this._clickListener)}update(e){var t,i,r,n;e.has("element")&&(r=this,(n=this.element)?(r.selected="FALSE"!==n.selected,r.implicit="IMPLICIT"===n.selected,r.fixed=(t=r.group,!("TRUE"!==(i=n).selected||!i.text)&&(0,b.rE)(t).includes(i.text)),r.className=r.className.replace(/ ?\bclusterLevel\d+\b/g,"").trim(),n.clusterLevel&&r.classList.add("clusterLevel".concat(n.clusterLevel)),r.showSelf()):r.hideSelf()),super.update()}updated(e){super.updated(e),(0,f.M)(this)}clone(e,t){const i=this._rawOuterHtml?(0,h.yi)(this._rawOuterHtml):document.createElement(v.is);return i.group=e,i.element=t,i._selectedTemplate=this._selectedTemplate,i._unselectedTemplate=this._unselectedTemplate,i}}function y(e){return(0,h.yi)('
{{element.text}}
'))}window.customElements.define(v.is,v);var _,S,k,w,C,P,x,E=i(7854);const I=Object.freeze({DetailedLinksContainer:'[data-container="detailedLinks"]',HiddenLinksContainer:'[data-container="hiddenLinks"]',DetailedLinksContent:'[data-content="detailedLinks"]',HiddenLinksContent:'[data-content="hiddenLinks"]',SelectBoxPlaceholderOption:"option:not([data-template])",SelectBoxOptionTemplate:"option[data-template]",ToggleWrapper:".ffw-wrapper",ShowMoreContainer:'[data-container="showMore"]',ShowLessContainer:'[data-container="showLess"]',GroupCaptionContainer:'[slot="groupCaption"]',RemoveFilterContainer:'[data-container="removeFilter"]',FilterSearchFieldContainer:'[slot="filterSearch"]'});class A extends((0,s.X)([(0,g.d)(),(0,E.E)()],p.jD)){static get is(){return"ff-asn-group"}static get properties(){return{collapsible:{type:p.k_},opened:{type:Boolean,reflect:!0},forGroup:{type:String,attribute:"for-group",reflect:!0},filterStyle:{type:String,attribute:"filter-style",reflect:!0},disableAutoExpand:{type:Boolean,attribute:"disable-auto-expand",reflect:!0},group:{type:Object,attribute:!1},selectBox:{type:p.k_,attribute:"select-box"},notSearchable:{type:Boolean,attribute:"not-searchable"}}}render(){if(!this._initialized)return(0,n.dy)(_||(_=(0,r.Z)(['
'])));this._filterSearchInput=this.querySelector("".concat(I.FilterSearchFieldContainer," input"));const e={group:this.group};return(0,n.dy)(S||(S=(0,r.Z)(['
','
'," "," ","
"])),(()=>this.toggle(!0)),(0,p.SM)(this._groupCaptionTemplate,e),(e=>function(e,t){const i=t.composedPath(),r=i[0];if("INPUT"!==r.nodeName)return;if(!i.slice(1).some((e=>e.getAttribute&&"filterSearch"===e.getAttribute("slot"))))return;e.requestUpdate();const n=new RegExp((0,b.yI)(r.value)||"$a","gi"),{headMatchedElements:s,otherMatchedElements:a}=[...e.group.selectedElements,...e.group.elements].reduce(((e,t)=>{n.lastIndex=0;const i=n.exec(t.text);if(null===i)return e;const r=t.text.replace(n,(e=>''.concat(e,"")));return(0===i.index?e.headMatchedElements:e.otherMatchedElements).push({...t,__HIGHLIGHTED_NAME__:r}),e}),{headMatchedElements:[],otherMatchedElements:[]});M(e._filterSearchContainer,e._asnGroupElementTemplate,e.group,[...s,...a])}(this,e)),L(function(e){if(!e.group)return!1;const t=e.group.elements.length+e.group.selectedElements.length;return!e.notSearchable&&t>=e.parentNode.searchableFrom}(this),(0,p.SM)(this._filterSearchField,e)),u(this._filterSearchInput&&this._filterSearchInput.value.length>0?this._filterSearchContainer:function(e){const t=(i=e.group,!!i&&i.elements.length>i.detailedLinks);var i;return(0,n.dy)(k||(k=(0,r.Z)([""," "," "," ",""])),e._detailedLinksContainer,L(t,e._hiddenLinksContainer),L(t&&!e.selectBox,e._showMoreContainer),L(t&&!e.selectBox,e._showLessContainer))}(this)),L(function(e){if(!e)return!1;const t=function(e){let{elements:t,selectedElements:i}=e;return[...i,...t].filter((e=>"TRUE"===e.selected))}(e);if(0===t.length)return!1;const i=(0,b.rE)(e);return 0===i.length||t.some((0,b.pk)(i))}(this.group),this._removeFilterContainer))}constructor(){super(),this.collapsible=!0,this.opened=!1,this.forGroup=void 0,this.filterStyle=void 0,this.disableAutoExpand=!1,this.group=void 0,this.selectBox=!1,this.notSearchable=!1,this._detailedElements=[],this._hiddenElements=[],this._wrapper=void 0,this._initialized=!1,this._rawOuterHtml="",this._asnGroupElementTemplate=void 0,this._groupCaptionTemplate=void 0,this._selectBoxOptionTemplate=void 0,this._selectBoxPlaceholderOption=void 0,this._detailedLinksContainer=void 0,this._hiddenLinksContainer=void 0,this._showMoreContainer=void 0,this._showLessContainer=void 0,this._removeFilterContainer=void 0,this._filterSearchContainer=void 0,this._filterSearchField=void 0,this._filterSearchInput=void 0}connectedCallback(){super.connectedCallback(),this._init()}_init(){this._initialized||(this._rawOuterHtml=this.outerHTML,this._asnGroupElementTemplate=this.querySelector(v.is)||document.createElement(v.is),this._groupCaptionTemplate=function(e){return e.querySelector(I.GroupCaptionContainer)||t();function t(){return(0,h.yi)('
{{group.name}}
')}}(this),this._detailedLinksContainer=function(e){return e.querySelector(I.DetailedLinksContainer)||t();function t(){return(0,h.yi)((0,h.iS)(C||(C=(0,r.Z)(['
']))))}}(this),this._hiddenLinksContainer=this.querySelector(I.HiddenLinksContainer),this._filterSearchField=function(e){const t=e.querySelector(I.FilterSearchFieldContainer);return t?t.cloneNode(!0):i();function i(){return(0,h.yi)('
')}}(this),function(e){if(null===e._filterSearchField.querySelector("input"))throw new Error(" not found in filterSearch template")}(this),this._filterSearchContainer=(0,h.yi)('
'),this._hiddenLinksContainer&&!this._hiddenLinksContainer.hasAttribute("opened")&&(this._hiddenLinksContainer.style.height="0",this._hiddenLinksContainer.style.overflow="hidden"),this._initShowMore(),this._initShowLess(),this._initHiddenLinksContainer(),this._removeFilterContainer=function(e,t){const i=e.querySelector(I.RemoveFilterContainer)||r();return i.addEventListener("click",(()=>{const i=t(),r=Object.assign({},(i.selectedElements[0]||i.elements[0]).searchParams),s=n(i,r.filters);s.length?r.filters=s:delete r.filters,(0,b.hT)(r,e)})),i;function r(){return(0,h.yi)('
Reset Filter
')}function n(e){let{associatedFieldName:t}=e;const i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).filter((e=>e.name!==t)),r=(0,b.M7)().find((e=>e.name===t));return r&&i.push(r),i}}(this,(()=>this.group||{})),this.selectBox&&(this._selectBoxOptionTemplate=function(e){return e.querySelector(I.SelectBoxOptionTemplate)||t();function t(){return(0,h.yi)("")}}(this._hiddenLinksContainer)),this.style.display="none",this._initialized=!0)}update(e){e.has("group")&&(this._filterSearchInput&&(this._filterSearchInput.value="",this._filterSearchInput.dispatchEvent(new Event("input"))),this.group?(this._detailedElements=this.group.selectedElements.concat(this.group.elements.slice(0,this.group.detailedLinks)),this._hiddenElements=this.group.elements.slice(this.group.detailedLinks),this._detailedLinksContainer=function(e,t,i,r){const n=(0,b.rE)(t),s=0===n.length?r:[...r.filter((e=>n.includes(e.text))),...r.filter((e=>!n.includes(e.text)))];return M(e.querySelector(I.DetailedLinksContent),i,t,s),e}(this._detailedLinksContainer,this.group,this._asnGroupElementTemplate,this._detailedElements),this._hiddenLinksContainer&&(this.selectBox?this._hiddenLinksContainer=N(this._hiddenLinksContainer,this._selectBoxPlaceholderOption,this._selectBoxOptionTemplate,this.group,this._hiddenElements):this._hiddenLinksContainer.hasAttribute("opened")&&(this._hiddenLinksContainer=F(this._hiddenLinksContainer,this._asnGroupElementTemplate,this.group,this._hiddenElements))),(this.opened||O(this.group)&&!this.disableAutoExpand)&&this.show(!1),this.style.display="",this.style.opacity="1"):(this.style.display="none",this.style.opacity="0")),super.update(e)}firstUpdated(e){this._wrapper=this.querySelector(I.ToggleWrapper),this.opened||e.has("group")&&O(this.group)&&!this.disableAutoExpand?this.show(!1):this._hide(this._wrapper,!1,(()=>this.opened=!1)),!1===this.opened&&!0!==this.disableAutoExpand&&O(this.group)&&this.show(!1)}updated(e){e.has("group")&&(this.forGroup&&"all"!==this.forGroup||(this.forGroup=this.group.associatedFieldName),this.filterStyle||(this.filterStyle=this.group.filterStyle)),this.group?this.showSelf():this.hideSelf()}show(e){this._wrapper&&(this._show(this._wrapper,e),this._wrapper.setAttribute("opened",""),this.opened=!0)}hide(e){this.opened&&this.collapsible&&this._wrapper&&(this._hide(this._wrapper,e,(()=>this.opened=!1)),this._wrapper.removeAttribute("opened"))}toggle(e){this.opened?this.hide(e):this.show(e)}showDetailedLinksContainer(e){this._show(this._detailedLinksContainer,e)}hideDetailedLinksContainer(e){this._hide(this._detailedLinksContainer,e)}toggleDetailedLinksContainer(e){this._detailedLinksContainer.hasAttribute("opened")?this.hideDetailedLinksContainer(e):this.showDetailedLinksContainer(e)}showHiddenLinksContainer(e){this._hiddenLinksContainer=this.selectBox?N(this._hiddenLinksContainer,this._selectBoxPlaceholderOption,this._selectBoxOptionTemplate,this.group,this._hiddenElements):F(this._hiddenLinksContainer,this._asnGroupElementTemplate,this.group,this._hiddenElements),this._showMoreContainer&&(this._showMoreContainer.style.display="none"),this._showLessContainer&&(this._showLessContainer.style.display=""),setTimeout((()=>{this._showChecked(this._hiddenLinksContainer,e),this._hiddenLinksContainer.setAttribute("opened","")}))}hideHiddenLinksContainer(e){this._showMoreContainer&&(this._showMoreContainer.style.display=""),this._showLessContainer&&(this._showLessContainer.style.display="none"),this._hideChecked(this._hiddenLinksContainer,e,(()=>{}))}toggleHiddenLinksContainer(e){this._hiddenLinksContainer.hasAttribute("opened")?this.hideHiddenLinksContainer(e):this.showHiddenLinksContainer(e)}clone(){return(0,h.yi)(this._rawOuterHtml)}_initShowMore(){this._showMoreContainer=this.querySelector(I.ShowMoreContainer)||(0,h.yi)('
Show More
'),this.selectBox?this._hide(this._showMoreContainer):this._show(this._showMoreContainer),this._showMoreContainer.addEventListener("click",(()=>this.showHiddenLinksContainer(!0)))}_initShowLess(){this.selectBox&&this._hideChecked(this._showMoreContainer),this._showLessContainer=this.querySelector(I.ShowLessContainer)||(0,h.yi)('
Show Less
'),this._showLessContainer.style.display="none",this._showLessContainer.addEventListener("click",(()=>this.hideHiddenLinksContainer(!0)))}_initHiddenLinksContainer(){if(this.selectBox)this._hiddenLinksContainer?"SELECT"!==this._hiddenLinksContainer.tagName?(this.warn("Provided template for select box is not a select element. Using default template."),this._hiddenLinksContainer=e()):0===this._hiddenLinksContainer.querySelectorAll(I.SelectBoxPlaceholderOption).length&&this._hiddenLinksContainer.insertBefore((0,h.yi)(""),this._hiddenLinksContainer.firstElementChild):this._hiddenLinksContainer=e(),this._selectBoxPlaceholderOption=this._hiddenLinksContainer.querySelector(I.SelectBoxPlaceholderOption),this._hiddenLinksContainer.addEventListener("change",function(e){return()=>{const t=e._hiddenLinksContainer.options[e._hiddenLinksContainer.selectedIndex].data;t&&(0,b.hT)(t.searchParams,this)}}(this)),this._show(this._hiddenLinksContainer);else{if(!this._hiddenLinksContainer){const e=(0,h.iS)(w||(w=(0,r.Z)(['
'])));this._hiddenLinksContainer=(0,h.yi)(e)}this._hiddenLinksContainer.hasAttribute("opened")?this._show(this._hiddenLinksContainer):this._hide(this._hiddenLinksContainer)}function e(){return(0,h.yi)('"))}}}function F(e,t,i,r){return M(e.querySelector(I.HiddenLinksContent),t,i,r),e}function M(e,t,i,s){(0,a.sY)((0,n.dy)(P||(P=(0,r.Z)(["",""])),s.map((e=>t.clone(i,e)))),e)}function N(e,t,i,s,o){const c=o.map((e=>(0,p.SM)(i,{group:s,element:e})));return(0,a.sY)((0,n.dy)(x||(x=(0,r.Z)(["",""])),[(0,p.SM)(t),...c]),e),e.selectedIndex=0,e.querySelectorAll(I.SelectBoxOptionTemplate).forEach(((e,t)=>{const i=o[t];e.value=i.text,e.data=i})),e}function O(e){return!!e&&(e.selectedElements.length>0||e.elements.some((e=>"TRUE"===e.selected)))}function L(e,t){return e?t:void 0}window.customElements.define(A.is,A);var T,q,R=i(2207),B=i(792),D=i(4675),j=i(3643);const H=["".concat(D.Slider.is),"input[data-control='min']","input[data-control='max']"],V=(0,h.iS)(T||(T=(0,r.Z)(['
'])));class U extends p.jD{static get is(){return"ff-slider-control"}static get properties(){return{disableInputFields:{type:p.k_,attribute:"disable-input-fields"},submitOnInput:{type:p.k_,attribute:"submit-on-input"},group:{type:Object,attribute:!1},fractionDigits:{type:Number,attribute:"fraction-digits"}}}render(){return(0,n.dy)(q||(q=(0,r.Z)(['
',"
"])),this._content)}constructor(){super(),this.disableInputFields=!1,this.submitOnInput=!1,this.group=void 0,this.fractionDigits=0,this._inputMin=void 0,this._inputMax=void 0,this._slider=void 0,this._unitElements=void 0,this._submitDelay=500,this._content=void 0,this._isSubmitScheduled=!1,this._submitInputMinDebouncerJob=void 0,this._submitInputMaxDebouncerJob=void 0}initDefaultTemplates(){if(this._content)return;let e;(0,p.np)(this)?(this._content=(0,h.yi)(V),e=this._content):(this._content=Array.from(this.childNodes),e=this),this._slider=e.querySelector(H[0]),this._inputMin=e.querySelector(H[1]),this._inputMax=e.querySelector(H[2]),function(e){const t=H.filter((t=>!e.querySelector(t)));if(0===t.length)return;throw Error("".concat(U.is,' does not have all required templates.\nYou must provide a template for each of the following selectors: "').concat(H.join('", "'),'".\nMissing templates are: "').concat(t.join('", "'),'".\nAlternatively, you may leave ').concat(U.is," empty. In this case, default templates will be used."))}(e),this._unitElements=e.querySelectorAll("[data-unit]"),this._slider.addEventListener("slider-moved",this._valueChanged.bind(this)),this._slider.addEventListener("value-changed",this._valueChanged.bind(this))}update(e){e.has("group")&&this._groupChanged(),super.update(e)}disconnectedCallback(){this._submitInputMinDebouncerJob&&this._submitInputMinDebouncerJob.cancel(),this._submitInputMaxDebouncerJob&&this._submitInputMaxDebouncerJob.cancel(),super.disconnectedCallback()}init(e){this._inputMin.value=this._format(e.selectedMinValue),this._inputMax.value=this._format(e.selectedMaxValue),this.disableInputFields?this._disableFocusInput():this._initInputSubmit(),Promise.resolve().then((()=>this.style.opacity="1"))}submit(){this._submitInputMax(),this._submitInputMin()}_groupChanged(){this.group&&setTimeout((()=>{this._updateInput(this._inputMax,this._slider.selectedMaxValue),this._updateInput(this._inputMin,this._slider.selectedMinValue),this._unitElements.forEach((e=>e.innerText=this.group.unit))}),1)}_updateInput(e,t){if(!e)return;this._slider&&void 0!==t&&(e.value=this._format(t));const i=e.attributes;for(let e=0;e{this._isSubmitScheduled=!1,this._slider.submit()})))}_initInputSubmit(){function e(e){return e>=48&&e<=57||e>=96&&e<=105}this._submitInputMinDebouncerJob=(0,B.D)(this._submitInputMinDebouncerJob,(()=>{this._submitInputMin(),this._inputMin.focus()}),this._submitDelay),this._submitInputMaxDebouncerJob=(0,B.D)(this._submitInputMinDebouncerJob,(()=>{this._submitInputMax(),this._inputMax.focus()}),this._submitDelay),this._inputMin.onkeyup=t=>{const i=(t=window.event||t).keyCode||t.which;if(13===i)return this._submitInputMin(),!1;this.submitOnInput&&e(i)&&this._submitInputMinDebouncerJob.run()},this._inputMax.onkeyup=t=>{const i=(t=window.event||t).keyCode||t.which;if(13===i)return this._submitInputMax(),!1;this.submitOnInput&&e(i)&&this._submitInputMaxDebouncerJob.run()}}_format(e){var t;const i=this.fractionDigits;return Intl.NumberFormat(null===(t=R.c.config.formatting)||void 0===t?void 0:t.locale,{minimumFractionDigits:i,maximumFractionDigits:i,useGrouping:!1}).format(e)}_valueChanged(e){const{slider:t,selectedMinValue:i,selectedMaxValue:r}=e.detail;if("min"===t)this._inputMin.value=this._format(i);else{if("max"!==t)throw"Unexpected slider: ".concat(t);this._inputMax.value=this._format(r)}}}function W(e){var t;const i=Intl.NumberFormat(null===(t=R.c.config.formatting)||void 0===t?void 0:t.locale).formatToParts(.1).find((e=>"decimal"===e.type)).value;return parseFloat(e.value.replace(i,"."))}function K(e,t){let i=1e3*e;const r=1e3*t,n=i%r;return i-=n,n/r>=.5&&(i+=r),i/1e3}var z,$;window.customElements.define(U.is,U);class J extends((0,s.X)([(0,g.d)(),(0,E.E)()],p.jD)){static get is(){return"ff-asn-group-slider"}static get properties(){return{collapsible:{type:p.k_},opened:{type:Boolean,reflect:!0},forGroup:{type:String,reflect:!0,attribute:"for-group"},filterStyle:{type:String,reflect:!0,attribute:"filter-style"},disableAutoExpand:{type:Boolean,reflect:!0,attribute:"disable-auto-expand"},group:{type:Object,attribute:!1}}}render(){return this._initialized?(0,n.dy)($||($=(0,r.Z)(['
','
'," ","
"])),(()=>this.toggle(!0)),(0,p.SM)(this._groupCaptionTemplate,{group:this.group}),this.opened,this._sliderControl,this._removeFilterContainer):(0,n.dy)(z||(z=(0,r.Z)(['
'])),this.opened)}constructor(){super(),this.collapsible=!0,this.opened=!1,this.filterStyle="SLIDER",this.selectorWrapper=".ffw-wrapper",this._wrapper=void 0,this._sliderControl=void 0,this._removeFilterContainer=void 0,this.selectorGroupCaptionContainer='[slot="groupCaption"]',this.selectRemoveFilterContainer='[data-container="removeFilter"]',this._initialized=!1,this._rawOuterHtml="",this.addEventListener("_slider-submit",Z)}connectedCallback(){super.connectedCallback(),this.init()}firstUpdated(e){super.firstUpdated(e),this._wrapper=this.querySelector(this.selectorWrapper),this.opened?this.show():this._hide(this._wrapper,!1)}init(){this._initialized||(this._initialized=!0,this._rawOuterHtml=this.outerHTML,this._groupCaptionTemplate=this._initGroupCaption(),this._sliderControl=this.querySelector(U.is)||document.createElement(U.is),this._sliderControl.initDefaultTemplates(),this._updateSliderControls(),this._removeFilterContainer=this._initRemoveFilter(),this.updateComplete.then((()=>{const e=this.querySelector("".concat(D.Slider.is));G(this,e),e.addEventListener("value-changed",(()=>{G(this,e)}))})))}_initGroupCaption(){return this.querySelector(this.selectorGroupCaptionContainer)||(0,h.yi)('
{{group.name}}
')}_updateSliderControls(){this.querySelectorAll(U.is).forEach((e=>e.group=this.group)),this._sliderControl&&(this._sliderControl.group=this.group)}_hideGroup(){this.style.display="none",this.offsetHeight,this.style.opacity="0"}update(e){e.has("group")&&this._asnGroupChanged(),super.update(e)}_processAndRenderGroup(e){this.forGroup=e.associatedFieldName;const t=X(e);if("number"!=typeof t.absoluteMinValue||"number"!=typeof t.absoluteMaxValue)return this.warn("[".concat(J.is,"]: absoluteMinValue and absoluteMaxValue must be numbers but are:"),t.absoluteMinValue,t.absoluteMaxValue),void this._hideGroup();if(t.absoluteMinValue!==t.absoluteMaxValue){t.selectedMinValue=Math.max(t.absoluteMinValue,t.selectedMinValue),t.selectedMaxValue=Math.min(t.absoluteMaxValue,t.selectedMaxValue),this._updateSliderControls();try{Promise.resolve().then((()=>{const e=this.querySelector("".concat(D.Slider.is));e&&e.updateComplete.then((()=>e.updateData(t)))})),this.style.display="",this.offsetHeight,function(e){if(!e||!e.elements[0])return!1;const{selectedMinValue:t,selectedMaxValue:i,absoluteMinValue:r,absoluteMaxValue:n}=e.elements[0];return i!==n||t!==r}(e)&&!0!==this.opened&&!this.disableAutoExpand&&this.updateComplete.then((()=>this.show())),this.dispatchEvent(new CustomEvent("records-updated",{bubbles:!0,composed:!0})),this.style.opacity="1",this.offsetHeight}catch(e){this.error(e)}}else this._hideGroup()}_asnGroupChanged(){this.group?this._processAndRenderGroup(this.group):this._hideGroup()}_initRemoveFilter(){const e=this.querySelector(this.selectRemoveFilterContainer)||(0,h.yi)('
Reset Filter
');return e.addEventListener("click",(()=>{(0,b.hT)(X(this.group).searchParams,this)})),e}toggle(e){this.collapsible&&(this._wrapper&&this._wrapper.hasAttribute("opened")?this._toggle(this._wrapper,e,(()=>this.opened=!1)):(this._toggle(this._wrapper,e),this.opened=!0))}show(e){this.collapsible&&(this._show(this._wrapper,e),this.opened=!0)}hide(e){this.collapsible&&!1!==this.opened&&(!0!==e?(this._hide(this._wrapper,e),this.opened=!1):this._hide(this._wrapper,e,(()=>this.opened=!1)))}clone(){return(0,h.yi)(this._rawOuterHtml)}}function G(e,t){if(e._removeFilterContainer){const i=e._removeFilterContainer.style.display,r=t.selectedMinValue>t.absoluteMinValue||t.selectedMaxValue{const t=this._getGroupTemplate(e);return t.group=e,(0,n.dy)(Q||(Q=(0,r.Z)(["",""])),t)})))}constructor(){super(),this.align=te.vertical,this.asnGroups=[],this.subscribe=!0,this.topic=void 0,this.hideFacets="",this._hideFacets=[],this._templates=void 0,this._searchableFrom=1/0}connectedCallback(){this._hideFacets=re(this.hideFacets),super.connectedCallback(),this._initTemplates()}update(e){e.has("hideFacets")&&(this._hideFacets=re(this.hideFacets)),e.has("topic")&&"string"!=typeof this.topic&&void 0!==this.topic&&(this.error('Attribute "topic" must be either undefined or a string but was: '.concat(typeof this.topic,". Subscription cancelled.")),this.subscribe=!1,this.topic=void 0),this.updateComplete.then((()=>{const e=this.querySelectorAll("".concat(A.is,",").concat(J.is));Promise.all(Array.from(e).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))})),super.update(e)}set searchableFrom(e){"number"!=typeof e||isNaN(e)||e<1?this.warn("searchableFrom was expected to be a valid positive number, but was [".concat(e,"] instead")):this._searchableFrom=e}get searchableFrom(){return this._searchableFrom}_getGroupTemplate(e){const t=e.associatedFieldName;let i=this._templates[t];if(!i){const r=e.filterStyle?e.filterStyle.toUpperCase():"";this._templates[r]&&(i=this._templates[r].clone(),this._templates[t]=i)}return i||(i=this._templates.all.clone(),this._templates[t]=i),i}_initTemplates(){if(!this._templates)try{this._templates={};if(this.querySelectorAll("".concat(A.is,",").concat(J.is)).forEach((e=>{try{const t=e.getAttribute("for-group"),i=e.getAttribute("filter-style");t&&"all"!==t.toLowerCase()?this._templates[t]=e:i?this._templates[i]=e:"FF-ASN-GROUP-SLIDER"===e.tagName?this._templates.SLIDER=e:this._templates.all||(this._templates.all=e)}catch(e){this.error(e)}})),!this._templates.all){const e=document.createElement(A.is);e.setAttribute("opened",void 0),e._init(),this._templates.all=e}if(!this._templates.SLIDER){const e=document.createElement(J.is);e.setAttribute("filter-style","SLIDER"),e.setAttribute("opened",void 0),e.init(),this._templates.SLIDER=e}}catch(e){this.error(e)}}_subscriptionCallback(e){this.asnGroups=e.facets.filter((e=>!this._hideFacets.some((t=>e.associatedFieldName===t)))).filter((e=>e.elements.length||e.selectedElements.length))}}function re(e){return e.split(",").map((e=>e.trim()))}window.customElements.define(ie.is,ie)},6803:function(e,t,i){"use strict";i.r(t),i.d(t,{BreadcrumbTrail:function(){return v}});var r,n=i(168),s=i(3282),a=i(4474),o=i(9528),c=i(6041);const u={dataTemplate:"{{text}}",attributes:{}};class l extends a.jD{static get is(){return"ff-breadcrumb-trail-item"}static get properties(){return{type:{type:String,reflect:!0},breadCrumbTrailItem:{type:Object,attribute:"bread-crumb-trail-item"},_relatedFacet:{type:Object,attribute:!1}}}get template(){return this.templates[this.type]||this.templates[d.default]||u}render(){return(0,a.SM)(this.template.dataTemplate,{item:(0,o.J)(this.breadCrumbTrailItem,"text"),facet:this._relatedFacet})}constructor(){super(),this.templates={},this.addEventListener("click",(()=>{const e=(0,c.M7)();if(0===e.length)return(0,c.hT)(this.breadCrumbTrailItem.searchParams,this);const t=this.breadCrumbTrailItem.searchParams.filters||[],i=[];e.forEach((e=>{t.some((t=>t.name===e.name))||i.push(e)})),i.push(...t);const r={...this.breadCrumbTrailItem.searchParams,filters:i};(0,c.hT)(r,this)}))}firstUpdated(e){super.firstUpdated(e),Object.keys(this.template.attributes).forEach((e=>this.setAttribute(e,this.template.attributes[e])))}update(e){e.has("breadCrumbTrailItem")&&this.breadCrumbTrailItem&&(this.type=d.hasOwnProperty(this.breadCrumbTrailItem.type)?this.breadCrumbTrailItem.type:void 0),super.update(e)}}window.customElements.define(l.is,l);const d=Object.freeze({search:"search",filter:"filter",all:"all",advisor:"advisor",default:"search"});function p(e,t){let{item:i,facet:a}=e;return(0,s.dy)(r||(r=(0,n.Z)([''])),i,a,t)}function h(e){return!e||(0,a.np)(e)?u:{dataTemplate:e.innerHTML,attributes:Array.prototype.reduce.call(e.attributes,((e,t)=>{let{name:i,value:r}=t;return"unresolved"!==i&&(e[i]=r),e}),{})}}var f,m=i(3940),g=i(7982),b=i(2240);class v extends((0,m.X)([(0,g.d)(),(0,b.D)(b.l.SearchAndNavigation)],a.jD)){static get is(){return"ff-breadcrumb-trail"}static get properties(){return{breadCrumbTrailItems:{type:Array,attribute:"bread-crumb-trail-items"},showAsteriskQuery:{type:a.k_,attribute:"show-asterisk-query"}}}render(){const e=[],t=(this.breadCrumbTrailItems||[]).length;for(let i=0;ie.associatedFieldName===r.associatedFieldName));if(e.push(p({item:r,facet:n},this.templates)),i ")}update(e){e.has("breadCrumbTrailItems")&&(this.breadCrumbTrailItems&&0!==this.breadCrumbTrailItems.length?this.showSelf():this.hideSelf(),this.updateComplete.then((()=>{Promise.all(Array.from(this.querySelectorAll(l.is)).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))),super.update(e)}_subscriptionCallback(e){this.breadCrumbTrailItems=e.breadCrumbTrail,this._facets=e.facets}}window.customElements.define(v.is,v)},6480:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignAdvisor:function(){return p}});var r=i(3940),n=i(2240),s=i(4474),a=i(498),o=i(6041);class c extends s.jD{static get is(){return"ff-campaign-advisor-answer"}static get properties(){return{answer:{type:Object,attribute:!1}}}render(){return(0,s.SM)(this._template,this.answer)}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._template=(0,s.np)(this)?"":this.innerHTML,this.addEventListener("click",u)}updated(e){e.has("answer")&&(this.answer?this.showSelf():this.hideSelf())}}function u(e){e.preventDefault(),e.stopPropagation(),(0,o.hT)(this.answer.searchParams,this)}window.customElements.define(c.is,c);var l=i(3643);class d extends s.jD{static get is(){return"ff-campaign-advisor-question"}static get properties(){return{question:{type:Object,attribute:!1}}}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._renderQuestion=function(e){const t=(0,a.PU)(e.querySelector(c.is)||document.createElement(c.is),e);let i=e.querySelector("[data-question]");i||(i=(0,a.yi)("
{{text}}
"),e.insertBefore(i,e.firstChild));const r=i.innerHTML;return n=>{i.innerHTML=(0,l.s)(r,n),t(e.querySelectorAll(c.is),n.answers,((e,t)=>{e.answer=t}))}}(this)}update(e){e.has("question")&&(this.question?(this.showSelf(),this._renderQuestion(this.question)):this.hideSelf()),super.update(e)}}window.customElements.define(d.is,d);class p extends((0,r.X)([(0,n.D)(n.l.SearchAndNavigation)],s.jD)){static get is(){return"ff-campaign-advisor"}static get properties(){return{name:{type:String,reflect:!0},not:{type:String},campaign:{type:Object,attribute:!1}}}constructor(){super(),this.name="",this.not=void 0,this._renderCampaign=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._renderCampaign=function(e){const t=(0,a.PU)(e.querySelector(d.is)||document.createElement(d.is),e);return i=>t(e.querySelectorAll(d.is),i.activeQuestions,((e,t)=>{e.question=t}))}(this)}update(e){var t;e.has("campaign")&&(this.campaign?(this._renderCampaign(this.campaign),this.showSelf(),(t=this,Promise.all(Array.from(t.querySelectorAll(d.is)).map((e=>e.updateComplete))).then((()=>Promise.all(Array.from(t.querySelectorAll(c.is)).map((e=>e.updateComplete)))))).then((()=>this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))))):this.hideSelf()),super.update(e)}_subscriptionCallback(e){var t;const i=this.name.length&&this.name.split(",")||[],r=(null===(t=this.not)||void 0===t?void 0:t.split(","))||[];this.campaign=e.campaigns.find((e=>"ADVISOR"===e.flavour&&e.activeQuestions.length&&(i.includes(e.name)||0===i.length&&!r.includes(e.name))))}}window.customElements.define(p.is,p)},410:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignFeedbackText:function(){return s}});var r=i(2207),n=i(4474);class s extends n.jD{static get is(){return"ff-campaign-feedbacktext"}static get properties(){return{label:{type:String},isLandingPageCampaign:{type:Boolean,attribute:"is-landing-page-campaign"},isProductCampaign:{type:Boolean,attribute:"is-product-campaign"},isShoppingCartCampaign:{type:Boolean,attribute:"is-shopping-cart-campaign"},campaignData:{type:Object,attribute:!1}}}render(){return(0,n.SM)(this._template,this.campaignData)}constructor(){super(),this.label="",this.isLandingPageCampaign=!1,this.isProductCampaign=!1,this.isShoppingCartCampaign=!1,this.campaignData=void 0}connectedCallback(){super.connectedCallback(),this._template=(0,n.np)(this)?"{{text}}":this.innerHTML,this.hideSelf()}update(e){(e.has("label")||e.has("isLandingPageCampaign")||e.has("isProductCampaign")||e.has("isShoppingCartCampaign"))&&function(e){e.subscriptionKey&&r.u.elementsUnsubscribe(e.subscriptionKey);const t=t=>{let{campaigns:i}=t;const r=i.flatMap((t=>t.feedbackTexts.filter((t=>t.label===e.label||!e.label&&!t.teaser))));e.campaignData=r[r.length-1]};e.isLandingPageCampaign?e.subscriptionKey=r.u.elementsSubscribeCampaignPage(t):e.isProductCampaign?e.subscriptionKey=r.u.elementsSubscribeCampaignProduct(t):e.isShoppingCartCampaign?e.subscriptionKey=r.u.elementsSubscribeCampaignShoppingCart(t):e.subscriptionKey=r.u.elementsSubscribeSearchAndNavigation(t)}(this),e.has("campaignData")&&(this.campaignData?this.showSelf():this.hideSelf(),this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))),super.update(e)}disconnectedCallback(){super.disconnectedCallback(),r.u.elementsUnsubscribe(this.subscriptionKey)}}window.customElements.define(s.is,s)},5430:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignLandingPage:function(){return a}});var r=i(2207),n=i(3940),s=i(7982);class a extends((0,n.X)([(0,s.d)()],HTMLElement)){static get is(){return"ff-campaign-landing-page"}static get observedAttributes(){return["page-id"]}get pageId(){return this._pageId}set pageId(e){this._pageId=e,e?r.c.request.campaignPage({pageId:e},{origin:this}):this.debug("No page id for page campaign specified.")}attributeChangedCallback(e,t,i){"page-id"===e&&(this.pageId=i)}}window.customElements.define(a.is,a)},5663:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignProduct:function(){return c}});var r=i(2207),n=i(4474),s=i(3940),a=i(7982);const o=Object.freeze({ProductNumber:"productNumber",Id:"id"});class c extends((0,s.X)([(0,a.d)()],n.jD)){static get is(){return"ff-campaign-product"}static get properties(){return{productId:{type:String,attribute:"product-id"},idType:{type:String,attribute:"id-type"}}}constructor(){super(),this.productId=void 0,this.idType=o.ProductNumber}update(e){if(e.has("idType")){const e=Object.values(o);if(!e.includes(this.idType))return void this.warn("idType must be one of [".concat(e.join(", "),"]. Was: ").concat(this.idType,"."))}if(e.has("productId")&&this.productId){if(!Object.values(o).includes(this.idType))return void this.warn("idType invalid. Not sending request.");r.c.request.campaignProduct({id:this.productId,idType:this.idType},{origin:this})}}}window.customElements.define(c.is,c)},8358:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignPushedProducts:function(){return c}});var r=i(4474),n=i(3940),s=i(961),a=i(7982),o=i(2207);class c extends((0,n.X)([(0,a.d)()],r.jD)){static get is(){return"ff-campaign-pushed-products"}static get properties(){return{name:{type:String},isLandingPageCampaign:{type:Boolean,attribute:"is-landing-page-campaign"},isProductCampaign:{type:Boolean,attribute:"is-product-campaign"},isShoppingCartCampaign:{type:Boolean,attribute:"is-shopping-cart-campaign"}}}constructor(){super(),this.name="",this.isLandingPageCampaign=!1,this.isProductCampaign=!1,this.isShoppingCartCampaign=!1}update(e){(e.has("name")||e.has("isLandingPageCampaign")||e.has("isProductCampaign")||e.has("isShoppingCartCampaign"))&&u(this),super.update(e)}connectedCallback(){super.connectedCallback(),this.hideSelf(),u(this);const e=this.querySelector(s.RecordList.is);e&&("true"===e.subscribe&&(this.warn("Automatic subscription of ".concat(s.RecordList.is," child component is turned on and will be turned off. Please, set ").concat(s.RecordList.is," 'subscribe' property to 'false' in your HTML code.")),e.setAttribute("subscribe","false")),e._subscriptionKey&&(this.warn("".concat(s.RecordList.is," child component is subscribed to search result and will be unsubscribed.")),e.unsubscribe()),this.isLandingPageCampaign&&(e.__isLandingPage=!0))}disconnectedCallback(){super.disconnectedCallback(),this._subscriptionKey&&(l(this),this._subscriptionKey=void 0)}}function u(e){function t(t,i){var r;let{campaigns:n}=t;const a=e.querySelector(s.RecordList.is);if(!a)return e.hideSelf(),void e.warn("No ".concat(s.RecordList.is," element found for pushed products."));const o=n.findLast((e=>"PRODUCT"===e.flavour||"FEEDBACK"===e.flavour));(null==o||null===(r=o.hits)||void 0===r?void 0:r.length)>0?(a.__campaign=o,e.isLandingPageCampaign&&(a.__pageId=i.campaignPageParams.pageId),a.records=o.hits,e.showSelf()):e.hideSelf()}e._subscriptionKey&&l(e),e.isLandingPageCampaign?e._subscriptionKey=o.u.elementsSubscribeCampaignPage(t):e.isProductCampaign?e._subscriptionKey=o.u.elementsSubscribeCampaignProduct(t):e.isShoppingCartCampaign?e._subscriptionKey=o.u.elementsSubscribeCampaignShoppingCart(t):e._subscriptionKey=o.u.elementsSubscribeSearchAndNavigation(t)}function l(e){o.u.elementsUnsubscribe(e._subscriptionKey)}window.customElements.define(c.is,c)},2132:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignRedirect:function(){return n}});var r=i(2207);class n extends HTMLElement{static get is(){return"ff-campaign-redirect"}connectedCallback(){this._subscriptionKey=r.c.response.subscribeCampaignRedirect((e=>{let{campaign:t}=e;return document.location.replace(t.target.destination),!1}))}disconnectedCallback(){r.c.response.unsubscribe(this._subscriptionKey),this._subscriptionKey=void 0}}window.customElements.define(n.is,n)},3458:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignShoppingCart:function(){return n}});var r=i(2207);class n extends HTMLElement{static get is(){return"ff-campaign-shopping-cart"}static get observedAttributes(){return["product-id"]}get productId(){return this._productId}set productId(e){this._productId=e,e&&r.c.request.campaignShoppingCart({productNumber:e.split(",")},{origin:this})}attributeChangedCallback(e,t,i){"product-id"===e&&(this.productId=i)}}window.customElements.define(n.is,n)},4410:function(e,t,i){"use strict";i.r(t),i.d(t,{CheckoutTracking:function(){return c}});var r=i(2207),n=i(3940),s=i(3282);class a extends s.oi{static get is(){return"ff-checkout-tracking-item"}static get properties(){return{count:Number,productNumber:{type:String,attribute:"product-number"},campaign:String,masterId:{type:String,attribute:"master-id"},price:Number,title:String,channel:String}}constructor(){super(),this.count=void 0,this.productNumber=void 0,this.campaign=void 0,this.masterId=void 0,this.price=void 0,this.title=void 0,this.channel=void 0}connectedCallback(){this.count||(this.count=1)}}window.customElements.define(a.is,a);var o=i(7982);class c extends((0,n.X)([(0,o.d)()],HTMLElement)){static get is(){return"ff-checkout-tracking"}get disableAutoTracking(){return this.hasAttribute("disable-auto-tracking")}connectedCallback(){!0!==this.disableAutoTracking&&this.trackCheckoutItems()}async trackCheckoutItems(){const e=Array.from(this.querySelectorAll(a.is),(e=>({element:e,data:{id:e.productNumber,campaign:e.campaign,count:Number(e.count),channel:e.channel,masterId:e.masterId,price:Number(e.price),title:e.title}})));if(0===e.length)return this.warn("No checkout items to track.");const t=[];if(e.forEach((e=>e.data.id?0===e.data.count?this.warn("Cannot track item. 'count' must be greater than zero.",e.element):(e.data.count||(e.data.count=1),void t.push(e.data)):this.warn("Cannot track item. 'productNumber' not specified.",e.element))),0===t.length)return this.warn("No trackable checkout items found.");const i=[];if(t.forEach(((e,t)=>{e.masterId&&e.price&&e.title||i.push({i:t,data:e})})),i.length){const{records:e,fieldRoles:n}=await r.c.request.records({productNumber:i.map((e=>{let{data:t}=e;return t.id}))});e.forEach(((e,r)=>{const s=t[i[r].i];s.masterId=e[n.masterId],s.price=e[n.price],s.title=e[n.productName]}))}const n=t.reduce(((e,t)=>{let{channel:i,...r}=t;const n=Object.fromEntries(Object.entries(r).filter((e=>{let[t,i]=e;return null!=i})));return e.set(i,e.get(i)||[]),e.get(i).push(n),e}),new Map);return Promise.all(Array.from(n.entries(),(e=>{let[t,i]=e;const n={origin:this};return t&&(n.channel=t),r.c.tracking.checkout(i,n)})))}}window.customElements.define(c.is,c)},1254:function(e,t,i){"use strict";i.r(t),i.d(t,{Compare:function(){return u}});var r=i(2207),n=i(3940),s=i(961),a=i(4474),o=i(7982),c=i(2240);class u extends((0,n.X)([(0,o.d)(),(0,c.D)(c.l.Compare)],a.jD)){static get is(){return"ff-compare"}static get properties(){return{productNumber:{type:Array,attribute:"product-number"},maxResults:{type:Number,attribute:"max-result"},subscribe:{type:a.k_},autoCompare:{type:String,attribute:"auto-compare"}}}constructor(){super(),this.maxResults=4,this.subscribe=!0,this.autoCompare="false"}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector(s.RecordList.is);e?("true"===e.subscribe&&(this.warn("Automatic subscription of ff-record-list child component is turned on and will be turned off. Please, set ff-record-list 'subscribe' property to 'false' in your HTML code."),e.setAttribute("subscribe","false")),e._subscriptionKey&&(this.warn("ff-record-list child component is subscribed to search result and will be unsubscribed."),e.unsubscribe())):this.warn("Record list for 'ff-compare' component was not found.")}_subscriptionCallback(e){this._handleCompareResult(e)}updated(e){super.updated(e),e.has("productNumber")&&"true"===this.autoCompare&&this.compareRecords(this.productNumber)}_handleCompareResult(e){const t=e.records||[],i=e.attributes.reduce(((e,t)=>(e[t.name]=t.different,e)),{});if(t.length>=2){t.forEach((e=>e.diff=i));const e=this.querySelector(s.RecordList.is);e&&(e.records=t.slice(0,this.maxResults),e.addEventListener("dom-updated",(()=>{const t=Array.from(e.querySelectorAll("[data-attribute]"));this._updateCssClasses(t,i),this.showSelf()}),{once:!0}))}else this.hideSelf()}compareRecords(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.length>=2?r.c.request.compare({id:e},{origin:this}):(this.debug("Must specify at least two product numbers to compare."),this.hideSelf())}_updateCssClasses(e,t){e.forEach((e=>{const i=e.getAttribute("data-attribute");!0===t[i]?(e.classList.add("ffw-compare-diff"),e.classList.remove("ffw-compare-equal")):!1===t[i]?(e.classList.remove("ffw-compare-diff"),e.classList.add("ffw-compare-equal")):(e.classList.remove("ffw-compare-diff"),e.classList.remove("ffw-compare-equal"))}))}}window.customElements.define(u.is,u)},8616:function(e,t,i){"use strict";i.r(t),i.d(t,{FilterCloud:function(){return b}});var r,n,s,a=i(168),o=i(3282),c=i(3643),u=i(498),l=i(3940),d=i(7982),p=i(2240),h=i(4474),f=i(6041);const m=Object.freeze({factfinder:"fact-finder",alphabetical:"alphabetical",userSelection:"user-selection"}),g="[data-template=filter]";class b extends((0,l.X)([(0,d.d)(),(0,p.D)(p.l.SearchAndNavigation)],h.jD)){static get is(){return"ff-filter-cloud"}static get properties(){return{order:{type:String},blacklist:{type:String},whitelist:{type:String},_selectedFilters:{type:Array,attribute:!1}}}render(){if(!this._template)return(0,o.dy)(r||(r=(0,a.Z)([""])));const e=document.createElement("div");e.innerHTML=this._template;const t=e.querySelector(g),i=t.outerHTML;var l;return this._selectedFilters.map((l=i,e=>{const t=(0,u.yi)(l);return t.item=e,t.innerHTML=(0,c.s)(t.innerHTML,{...e,element:e.element}),t.addEventListener("click",(t=>{t.item=e})),t})).forEach((e=>{t.parentNode.insertBefore(e,t)})),t.parentNode.removeChild(t),(0,o.dy)(n||(n=(0,a.Z)(["",""])),Array.from(e.childNodes).map((e=>(0,o.dy)(s||(s=(0,a.Z)(["",""])),e))))}constructor(){super(),this.order=m.factfinder,this.blacklist=void 0,this.whitelist=void 0,this._selectedFilters=[],this._blacklist=[],this._whitelist=[],this._userSelectionOrder=[],this._factFinderOrder=[]}connectedCallback(){super.connectedCallback(),this._template||((0,h.np)(this)?this._template='{{element.text}}':this.querySelector(g)?this._template=this.innerHTML.trim():(this.error("An error occurred: template HTML contains no elements marked as ".concat(g,".")),this.hideSelf())),this.addEventListener("click",v)}disconnectedCallback(){this.removeEventListener("click",v),super.disconnectedCallback()}update(e){this._selectedFilters&&0!==this._selectedFilters.length?this.showSelf():this.hideSelf(),e.has("blacklist")&&(this._blacklist=this.blacklist?this.blacklist.split(","):[]),e.has("whitelist")&&(this._whitelist=this.whitelist?this.whitelist.split(","):[]),e.has("order")&&!1===Object.keys(m).some((e=>m[e]===this.order))&&(this.hideSelf(),this.error("Invalid 'order' value: '".concat(this.order,"'."))),this.blacklist&&this.whitelist&&(this.hideSelf(),this.error("'blacklist' and 'whitelist' are mutually exclusive, but both properties are set.")),(e.has("order")||e.has("blacklist")||e.has("whitelist"))&&(this._selectedFilters=y(this.order,this)),super.update(e)}updated(e){super.updated(e),this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}_subscriptionCallback(e){this._selectedFilters=function(e,t,i,r){const n=(o=function(e){return e.reduce(((e,t)=>e.concat([...t.selectedElements,...t.elements.filter((e=>"TRUE"===e.selected))].map((e=>({facet:t,element:e}))))),[])}(r),o.reduce(((e,t)=>0!==e.filter((e=>e.element.text===t.element.text&&e.facet.associatedFieldName===t.facet.associatedFieldName)).length?e:[...e,t]),[])),s=i.filter((e=>_(n,e))),a=n.filter((e=>!_(s,e)));var o;return e._factFinderOrder=n,e._userSelectionOrder=s.concat(a),y(t,e)}(this,this.order,this._userSelectionOrder,e.facets)}}function v(e){const t=e.item;t&&(0,f.hT)(t.element.searchParams,this)}function y(e,t){switch(e){case m.userSelection:return S(t._userSelectionOrder,t._blacklist,t._whitelist);case m.alphabetical:return S(t._factFinderOrder,t._blacklist,t._whitelist).sort(((e,t)=>e.element.text.localeCompare(t.element.text)));default:return S(t._factFinderOrder,t._blacklist,t._whitelist)}}function _(e,t){let{element:i}=t;return e.some((e=>e.element.text===i.text))}function S(e,t,i){return e.filter((e=>{let{facet:r,element:n}=e;const s=t.indexOf(r.associatedFieldName)<0,a=0===i.length||i.indexOf(r.associatedFieldName)>=0,o="IMPLICIT"!==!n.selected,c=(0,f.pk)((0,f.rE)(r))(n);return s&&a&&o&&c}))}window.customElements.define(b.is,b)},4487:function(e,t,i){"use strict";i.r(t),i.d(t,{HeaderNavigation:function(){return b}});var r,n=i(168),s=i(3282),a=i(2207),o=i(4474);const c="_item-clicked";class u extends o.jD{static get is(){return"ff-nav-element"}static get properties(){return{element:{attribute:!1,type:Object}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(['',""])),(this.element.__TARGET_URL__||{}).url,this.element.text)}constructor(){var e;super(),this.element={},this.addEventListener("click",(e=this,t=>{t.preventDefault(),t.stopPropagation(),e.dispatchEvent(new CustomEvent(c,{bubbles:!0}))}))}}window.customElements.define(u.is,u);var l,d,p,h,f,m=i(3940),g=i(2240);class b extends((0,m.X)([(0,g.D)(g.l.NavigationCategory)],o.jD)){static get is(){return"ff-header-navigation"}static get properties(){return{elements:{attribute:!1,type:Array},groupCount:{attribute:"group-count",type:Number},groupSize:{attribute:"group-size",type:Number},hideEmptyGroups:{attribute:"hide-empty-groups",type:o.k_},fetchInitial:{attribute:"fetch-initial",type:o.k_},mouseenterDelay:{attribute:"mouseenter-delay",type:Number},mouseleaveDelay:{attribute:"mouseleave-delay",type:Number},_selectedElement:{attribute:!1,type:Object},_showBody:{attribute:!1,type:Boolean}}}render(){return(0,s.dy)(l||(l=(0,n.Z)(['
',"
","
"])),v,_,this.elements.map((e=>(0,s.dy)(d||(d=(0,n.Z)(['
'])),e.element,e.children,y))),this._showBody?(0,s.dy)(p||(p=(0,n.Z)(['
','
','
\x3c!-- {getGroups(this.hideEmptyGroups, this.groupCount, this._selectedElement.groups).map(group => html --\x3e ','
','
',"
"])),this._selectedElement&&this._slottedElements["container-top-".concat(this._selectedElement.element.text)],this._selectedElement&&this._slottedElements["container-left-".concat(this._selectedElement.element.text)],this._selectedElement._children.map((e=>{return(0,s.dy)(h||(h=(0,n.Z)(['
'," ","
"])),e.element,(t=this,i=e.children,i.slice(0,t.groupSize)).map((e=>(0,s.dy)(f||(f=(0,n.Z)([''])),e.element))),this._slottedElements[e.element.text]);var t,i})),this._selectedElement&&this._slottedElements["container-right-".concat(this._selectedElement.element.text)],this._selectedElement&&this._slottedElements["container-bottom-".concat(this._selectedElement.element.text)]):void 0)}constructor(){var e;super(),this.elements=[],this.groupCount=10,this.groupSize=4,this.hideEmptyGroups=!0,this.fetchInitial=!0,this.mouseenterDelay=600,this.mouseleaveDelay=200,this._slottedElements={},this._selectedElement={},this._showBody=!1,this._shouldShowBody=!1,this.addEventListener(c,(e=this,t=>{t.stopPropagation(),e._showBody=!1;const i=t.target,r=a.c.utils.toNavigationParams(i.element.searchParams);a.c.request.navigation(r,{requestOptions:{origin:i}})}))}connectedCallback(){super.connectedCallback(),this.querySelectorAll("[slot]").forEach((e=>this._slottedElements[e.getAttribute("slot")]=e)),this.fetchInitial&&this.fetch()}updated(e){super.updated(e),e.has("elements")&&setTimeout((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}),0)}fetch(){a.c.request.navigationCategory({endLevel:2},{origin:this})}_subscriptionCallback(e){this.elements=function(e){const t=e.facets.find((e=>"CATEGORY_PATH"===e.type)),i=[];if(!t)return i;let r,n;return t.elements.forEach((e=>{if(0===e.clusterLevel){const t={element:e,children:[]};i.push(t),r=t}else if(1===e.clusterLevel){const t={element:e,children:[]};r.children.push(t),n=t}else 2===e.clusterLevel&&n.children.push({element:e})})),i}(e)}}function v(e){e.target.classList.contains("ffw-header-nav")&&(this._shouldShowBody=!0,this._showBody||setTimeout((()=>{!0===this._shouldShowBody&&(this._showBody=!0)}),this.mouseenterDelay))}function y(e){this._selectedElement=e.currentTarget}function _(e){e.target.classList.contains("ffw-header-nav")&&(this._shouldShowBody=!1,this._showBody&&setTimeout((()=>{!1===this._shouldShowBody&&(this._showBody=!1)}),this.mouseleaveDelay))}window.customElements.define(b.is,b)},3358:function(e,t,i){"use strict";i.r(t),i.d(t,{PagingDropdown:function(){return v}});var r,n,s,a,o=i(168),c=i(3282),u=i(9890),l=i(1448),d=i(8474),p=i(6342),h=i(3940),f=i(2240),m=i(4474),g=i(480),b=i(6621);class v extends((0,h.X)([b.T,(0,f.D)(f.l.SearchAndNavigation)],m.jD)){static get is(){return"ff-paging-dropdown"}static get properties(){return{pages:{type:Array,attribute:!1},opened:{type:Boolean,reflect:!0},showSelected:{type:Boolean,attribute:"show-selected"},collapseOnblur:{type:m.k_,attribute:"collapse-onblur"}}}render(){return(0,c.dy)(r||(r=(0,o.Z)(["",'
',"
"])),this._renderDropdownSelected(),(0,l.$)({"ffw-paging-dropdown-closed":!this.opened}),_,(0,d.l)([this.pages,this.showSelected],(()=>(0,p.r)(this.pages||[],(e=>e),(e=>this._renderDropdownItem(e))))))}constructor(){super(),this.opened=!1,this.showSelected=!1,this.collapseOnblur=!0,this._itemTemplate=void 0,this._searchParams=void 0,this._paging=void 0,this.addEventListener(g.M,(()=>this.toggle())),this.addEventListener("blur",y.bind(this))}connectedCallback(){super.connectedCallback(),this._itemTemplate||(this._itemTemplate=this.querySelector(g.p.is)||function(){const e=document.createElement("div");return(0,u.sY)((0,c.dy)(a||(a=(0,o.Z)(["{{page}}"]))),e),e.firstElementChild}());this.getAttribute("tabindex")||this.setAttribute("tabindex","999"),this.hideSelf()}update(e){e.has("pages")&&this._pagesChanged(),super.update(e)}updated(e){super.updated(),(e.has("pages")||e.has("showSelected"))&&Promise.all(Array.from(this.querySelectorAll("".concat(g.p.is))).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}expand(){const e=this._getDropdown();e.style.height=e.scrollHeight+"px",this.opened=!0}collapse(){this._getDropdown().style.height=null,this.opened=!1}toggle(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened)?this.expand():this.collapse()}_getDropdown(){return this.querySelector(".ffw-paging-dropdown-container")}_subscriptionCallback(e){super._onResponse(e),this._searchParams=e.searchParams,this._paging=e.paging;const t=e.paging,i=t&&t.pageCount>1?Array.from({length:9},((e,i)=>i+t.currentPage-4)):[];this.pages=i.filter((e=>e>0&&e<=t.pageCount))}_pagesChanged(){var e;this.opened&&this.collapse(),(null===(e=this.pages)||void 0===e?void 0:e.length)>0?this.showSelf():this.hideSelf()}_renderDropdownSelected(){return this.pages?this._renderLink(this._paging.currentPage):(0,c.dy)(n||(n=(0,o.Z)([""])))}_renderDropdownItem(e){return e!==this._paging.currentPage||this.showSelected?this._renderLink(e,e===this._paging.currentPage):(0,c.dy)(s||(s=(0,o.Z)([""])))}_renderLink(e,t){const i=this._itemTemplate._clone();return i.type=t?"currentLink":null,i.page=e,i}}function y(){!0===this.collapseOnblur&&setTimeout((()=>this.collapse()),150)}function _(e){const t=e.target;if(t.page===this._paging.currentPage)return;const{page:i,...r}=this._searchParams;t.page>1&&(r.page=t.page),(0,b.S)(r,this)}window.customElements.define(v.is,v)},480:function(e,t,i){"use strict";i.d(t,{M:function(){return c},p:function(){return u}});var r,n=i(168),s=i(3282),a=i(4474),o=i(1448);const c="_item-clicked";class u extends a.jD{static get is(){return"ff-paging-item"}static get properties(){return{type:{type:String,reflect:!0},page:{type:Number,attribute:!1},showSelected:{type:Boolean,attribute:"show-selected",reflect:!0},showOnly:{type:Boolean,attribute:"show-only",reflect:!0}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(['
',"
"])),(0,o.$)({"ffw-selected":"currentLink"===this.type}),(0,a.SM)(this._template,{page:this.page}||{}))}constructor(){super(),this.type="currentLink",this.showSelected=!1,this.showOnly=!1,this.addEventListener("click",l)}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._template||(this._template=(0,a.np)(this)?"{{page}}":this.innerHTML)}update(e){e.has("page")&&(void 0===this.page?(this.classList.add("ffw-disabled"),this.hideSelf()):(this.classList.remove("ffw-disabled"),this.showSelf())),super.update(e)}_clone(){const e=this.cloneNode(!0);return e._template=this._template,e}}function l(e){this.showOnly||this.dispatchEvent(new CustomEvent(c,{bubbles:!0}))}window.customElements.define(u.is,u)},3742:function(e,t,i){"use strict";i.r(t),i.d(t,{PagingSelect:function(){return l}});var r,n=i(168),s=i(3282),a=i(4474),o=i(3940),c=i(2240),u=i(6621);class l extends((0,o.X)([u.T,(0,c.D)(c.l.SearchAndNavigation)],a.jD)){static get is(){return"ff-paging-select"}static get properties(){return{pages:{type:Array,attribute:!1}}}render(){var e;return(0,s.dy)(r||(r=(0,n.Z)(['"])),d,null===(e=this.pages)||void 0===e?void 0:e.map((e=>(0,a.SM)(this._optionTemplate,{page:e}))))}constructor(){super(),this._optionTemplate=void 0,this._selectAttributes=[],this._searchParams=void 0,this._paging=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector("select");this._selectAttributes=e?Array.from(e.attributes):[],this._optionTemplate=this.querySelector("option")||""}firstUpdated(){const e=this.querySelector("select");this._selectAttributes.forEach((t=>{let{name:i,value:r}=t;return e.setAttribute(i,r)}))}updated(e){var t;e.has("pages")&&(null!==(t=this.pages)&&void 0!==t&&t.length?(this.querySelector("select").selectedIndex=this.pages.findIndex((e=>e===this._paging.currentPage)),this.showSelf()):this.hideSelf())}_subscriptionCallback(e){super._onResponse(e),this._searchParams=e.searchParams,this._paging=e.paging;const t=e.paging,i=t&&t.pageCount>1?Array.from({length:9},((e,i)=>i+t.currentPage-4)):[];this.pages=i.filter((e=>e>0&&e<=t.pageCount))}}function d(e){const{page:t,...i}=this._searchParams,r=this.pages[e.target.selectedIndex];r>1&&(i.page=r),(0,u.S)(i,this)}window.customElements.define(l.is,l)},876:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return PagingSet}});var _behaviors_BehaviorDecorator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3940),utils_FACTFinderLitElement__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4474),_behaviors_ElementLog__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7982);class PagingSet extends((0,_behaviors_BehaviorDecorator__WEBPACK_IMPORTED_MODULE_1__.X)([(0,_behaviors_ElementLog__WEBPACK_IMPORTED_MODULE_2__.d)()],utils_FACTFinderLitElement__WEBPACK_IMPORTED_MODULE_0__.jD)){static get is(){return"ff-paging-set"}static get properties(){return{state:{type:String,reflect:!0},paging:{type:Object,attribute:!1}}}constructor(){super(),this.state="all",this._isActive=!1}connectedCallback(){super.connectedCallback(),this.hideSelf()}update(e){e.has("paging")&&pagingChanged.call(this),super.update(e)}get isActive(){return this._isActive}}function pagingChanged(){if("all"===this.state)return this._isActive=!0,void this.showSelf();const state=this.state.replace(/currentPage/g,this.paging.currentPage).replace(/pageCount/g,this.paging.pageCount);if(/[a-z_]/i.test(state))return this._isActive=!1,this.hideSelf(),void this.error("Alphabetical values are not allowed. Could not resolve [".concat(/[a-z_].*/i.exec(state),"] in state [").concat(state,"]"));try{this._isActive=eval(state),this.isActive?this.showSelf():this.hideSelf()}catch(e){this._isActive=!1,this.hideSelf()}}window.customElements.define(PagingSet.is,PagingSet)},5841:function(e,t,i){"use strict";i.r(t),i.d(t,{Paging:function(){return u}});var r=i(4474),n=i(480),s=i(876),a=i(3940),o=i(2240),c=i(6621);class u extends((0,a.X)([c.T,(0,o.D)(o.l.SearchAndNavigation)],r.jD)){static get is(){return"ff-paging"}static get properties(){return{paging:{type:Object,attribute:!1},showOnly:{type:Boolean,attribute:"show-only",reflect:!0}}}constructor(){super(),this.showOnly=!1,this._searchParams=void 0,this.addEventListener(n.M,l)}connectedCallback(){super.connectedCallback(),this.hideSelf()}update(e){e.has("paging")&&d.call(this),super.update(e)}updated(e){e.has("paging")&&Promise.all(Array.from(this.querySelectorAll("".concat(n.p.is))).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}_subscriptionCallback(e){super._onResponse(e),this.paging=e.paging,this._searchParams=e.searchParams}}function l(e){e.stopPropagation();const t=e.target;if(!0===this.showOnly||t.page===this.paging.currentPage)return;const i={...this._searchParams};1===t.page?delete i.page:i.page=t.page,(0,c.S)(i,this)}function d(){if(!this.paging||1===this.paging.pageCount)return void this.hideSelf();const e=this.querySelectorAll(s.z.is);0===e.length?p(this.paging,this):e.forEach((e=>{e.paging=this.paging,e.updateComplete.then((()=>{e.isActive&&p(this.paging,e)}))})),this.showSelf()}function p(e,t){const i=(e,t)=>{e&&(e.page=t)};i(t.querySelector("".concat(n.p.is,'[type="firstLink"]')),e.currentPage>1?1:void 0),i(t.querySelector("".concat(n.p.is,'[type="lastLink"]')),e.currentPage1?e.currentPage-1:void 0),i(t.querySelector("".concat(n.p.is,'[type="nextLink"]')),e.currentPage{const i=/-?\d+/.exec(t.type)||[],r=parseInt(i[0])||0,n=e.currentPage+r;t.page=n>0&&n<=e.pageCount?n:void 0}))}window.customElements.define(u.is,u)},6621:function(e,t,i){"use strict";i.d(t,{S:function(){return s},T:function(){return n}});i(2207);var r=i(6041);const n=e=>class extends e{constructor(){super(),this._facets=void 0}_onResponse(e){this._facets=e.facets}};function s(e,t){(0,r.hT)(e,t)}},4849:function(e,t,i){"use strict";i.r(t),i.d(t,{PredictiveBasket:function(){return u}});var r=i(2207),n=i(4474),s=i(3940),a=i(7982),o=i(961),c=i(2240);class u extends((0,s.X)([(0,a.d)(),(0,c.D)(c.l.PredictiveBasket)],n.jD)){static get is(){return"ff-predictive-basket"}static get properties(){return{userId:{attribute:"user-id",type:String,reflect:!0},maxResults:{attribute:"max-results",type:Number},blacklist:String}}constructor(){super(),this.userId=void 0,this.maxResults=void 0,this.blacklist=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector(o.RecordList.is);e&&(e.subscribe=!1,e.__isPredBasket=!0),this.userId&&!e&&this.warn("No ff-record-list provided. Provide one to make ".concat(u.is," work properly."))}_subscriptionCallback(e){if(e.hits.length>0){const t=this.querySelector(o.RecordList.is);t&&(t.records=e.hits),this.showSelf()}else this.hideSelf()}update(e){e.has("userId")&&this.getPredictions(),super.update(e)}getPredictions(){if(void 0===this.userId||null===this.userId||""===this.userId)return this.error("No user id specified."),void this.hideSelf();const e={userId:this.userId};void 0!==this.maxResults&&(e.maxResults=this.maxResults),"string"==typeof this.blacklist&&(e.blacklist=this.blacklist.split(",").map((e=>e.trim())).filter((e=>!!e))),r.c.request.predictiveBasket(e,{origin:this})}}window.customElements.define(u.is,u)},6731:function(e,t,i){"use strict";i.r(t),i.d(t,{ProductsPerPageDropdown:function(){return f}});var r,n=i(168),s=i(3282),a=i(1448),o=i(8474),c=i(6342),u=i(4474),l=i(6041),d=i(3940),p=i(2240),h=i(8122);class f extends((0,d.X)([(0,p.D)(p.l.SearchAndNavigation)],u.jD)){static get is(){return"ff-products-per-page-dropdown"}static get properties(){return{values:{type:String},opened:{type:Boolean,reflect:!0},showSelected:{type:Boolean,attribute:"show-selected"},collapseOnblur:{type:u.k_,attribute:"collapse-onblur"},_items:{type:Array,attribute:!1}}}render(){const e=this._items.find((e=>e.selected));return(0,s.dy)(r||(r=(0,n.Z)(["",'
',"
"])),e?(0,h.renderPPPItem)(this._ffPPPTemplate,e):"",(0,a.$)({"ffw-ppp-dropdown-closed":!this.opened}),m,(0,o.l)([this._items,this.showSelected],(()=>(0,c.r)(this._items,(e=>e.value),(e=>this.showSelected||!e.selected?(0,h.renderPPPItem)(this._ffPPPTemplate,e):"")))))}constructor(){var e;super(),this.opened=!1,this.showSelected=!1,this.collapseOnblur=!0,this._items=[],this._paging=void 0,this._searchParams=void 0,this._dropdownContainer=void 0,this._ffPPPTemplate=void 0,this._haveItemsBeenInitialised=!1,this.addEventListener(h.eventClick,(()=>this.toggle())),this.addEventListener("blur",(e=this,()=>{e.collapseOnblur&&setTimeout((()=>e.collapse()),16)}))}connectedCallback(){super.connectedCallback(),this.hideSelf(),!this.getAttribute("tabindex")&&this.setAttribute("tabindex","1"),this._ffPPPTemplate=(0,h.getTemplate)(this)}update(e){e.has("_items")&&function(e){if(0===e._items.length)return void e.hideSelf();e._haveItemsBeenInitialised?e.collapse():e._haveItemsBeenInitialised=!0;e.showSelf()}(this),super.update(e)}firstUpdated(){this._dropdownContainer=this.getElementsByClassName("ffw-ppp-dropdown-container")[0]}updated(e){e.has("_items")&&this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}expand(){const e=this._dropdownContainer;e.style.height=e.scrollHeight+"px",this.opened=!0}collapse(){this._dropdownContainer.style.height=null,this.opened=!1}toggle(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened)?this.expand():this.collapse()}_subscriptionCallback(e){var t;this._searchParams=e.searchParams,this._paging=e.paging;const i=null===(t=e.paging)||void 0===t?void 0:t.hitsPerPage;if(!i)return;let r=this.values.split(",").map((e=>parseInt(e.trim()))).filter((e=>e));r.includes(i)||(r=[...r,i].sort()),this._items=r.map((e=>({value:e,selected:e===i})))}}function m(e){var t,i;const r=e.target.productsPerPageItem;if(r.value===(null===(t=this._paging)||void 0===t?void 0:t.hitsPerPage))return;const{hitsPerPage:n,page:s,...a}=this._searchParams;r.value!==(null===(i=this._paging)||void 0===i?void 0:i.defaultHitsPerPage)&&(a.hitsPerPage=r.value),(0,l.hT)(a,this)}window.customElements.define(f.is,f)},8122:function(e,t,i){"use strict";i.r(t),i.d(t,{ProductsPerPageItem:function(){return l},eventClick:function(){return u},getTemplate:function(){return h},renderPPPItem:function(){return p}});var r,n=i(168),s=i(3282),a=i(1448),o=i(4474);const c={dataTemplate:"{{value}}",attributes:{}},u="_item-clicked";class l extends o.jD{static get is(){return"ff-products-per-page-item"}static get properties(){return{productsPerPageItem:{type:Object},template:{type:Object,attribute:!1}}}render(){return(0,o.SM)(this.template.dataTemplate,this.productsPerPageItem)}constructor(){super(),this.template=c,this.addEventListener("click",d)}firstUpdated(e){Object.keys(this.template.attributes).forEach((e=>this.setAttribute(e,this.template.attributes[e])))}}function d(e){this.dispatchEvent(new CustomEvent(u,{bubbles:!0}))}function p(e,t){return(0,s.dy)(r||(r=(0,n.Z)([''])),(0,a.$)({"ffw-selected":t.selected,...e.classNames}),e,t)}function h(e){const t=e.querySelector(l.is);return!t||(0,o.np)(t)?c:{dataTemplate:t.innerHTML,attributes:Array.prototype.reduce.call(t.attributes,((e,t)=>{let{name:i,value:r}=t;return"class"!==i&&(e[i]=r),e}),{}),classNames:(t.className||"").split(" ").reduce(((e,t)=>(t&&(e[t]=!0),e)),{})}}window.customElements.define(l.is,l)},2997:function(e,t,i){"use strict";i.r(t),i.d(t,{ProductsPerPageList:function(){return h}});var r,n=i(168),s=i(3282),a=i(6342),o=i(4474),c=i(6041),u=i(3940),l=i(2240),d=i(8122),p=i(480);class h extends((0,u.X)([(0,l.D)(l.l.SearchAndNavigation)],o.jD)){static get is(){return"ff-products-per-page-list"}static get properties(){return{values:{type:String},_items:{type:Array,attribute:!1}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(["",""])),(0,a.r)(this._items,(e=>e.value),(e=>(0,d.renderPPPItem)(this._ffPPPTemplate,e))))}constructor(){super(),this._items=[],this._paging=void 0,this._searchParams=void 0,this._ffPPPTemplate=void 0,this.addEventListener(p.M,f)}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._ffPPPTemplate=(0,d.getTemplate)(this)}update(e){super.update(e),e.has("_items")&&(0===this._items.length?this.hideSelf():this.showSelf())}updated(e){e.has("_items")&&this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}_subscriptionCallback(e){var t;this._searchParams=e.searchParams,this._paging=e.paging;const i=null===(t=e.paging)||void 0===t?void 0:t.hitsPerPage;if(!i)return;let r=this.values.split(",").map((e=>parseInt(e.trim()))).filter((e=>e));r.includes(i)||(r=[...r,i].sort()),this._items=r.map((e=>({value:e,selected:e===i})))}}function f(e){var t,i;const r=e.target.productsPerPageItem;if(r.value===(null===(t=this._paging)||void 0===t?void 0:t.hitsPerPage))return;const{hitsPerPage:n,page:s,...a}=this._searchParams;r.value!==(null===(i=this._paging)||void 0===i?void 0:i.defaultHitsPerPage)&&(a.hitsPerPage=r.value),(0,c.hT)(a,this)}window.customElements.define(h.is,h)},825:function(e,t,i){"use strict";i.r(t),i.d(t,{ProductsPerPageSelect:function(){return d}});var r,n=i(168),s=i(3282),a=i(6342),o=i(4474),c=i(3940),u=i(2240),l=i(6041);class d extends((0,c.X)([(0,u.D)(u.l.SearchAndNavigation)],o.jD)){static get is(){return"ff-products-per-page-select"}static get properties(){return{values:{type:String},_items:{type:Array,attribute:!1}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(['"])),p,(0,a.r)(this._items,(e=>(0,o.SM)(this._optionTemplate,e))))}constructor(){super(),this._items=[],this._paging=void 0,this._searchParams=void 0,this._select=void 0,this._optionTemplate=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._optionTemplate=this.querySelector("option")||""}firstUpdated(){this._select=this.querySelector("select")}update(e){super.update(e),e.has("_items")&&(0===this._items.length?this.hideSelf():this.showSelf())}updated(e){e.has("_items")&&(this._select.selectedIndex=this._items.findIndex((e=>e.selected)),this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0})))}_subscriptionCallback(e){var t;this._searchParams=e.searchParams,this._paging=e.paging;const i=null===(t=e.paging)||void 0===t?void 0:t.hitsPerPage;if(!i)return;let r=this.values.split(",").map((e=>parseInt(e.trim()))).filter((e=>e));r.includes(i)||(r=[...r,i].sort()),this._items=r.map((e=>({value:e,selected:e===i})))}}function p(){var e,t,i;const r=null===(e=this._items[this._select.selectedIndex])||void 0===e?void 0:e.value;if(!r||r===(null===(t=this._paging)||void 0===t?void 0:t.hitsPerPage))return;const{hitsPerPage:n,page:s,...a}=this._searchParams||{};r!==(null===(i=this._paging)||void 0===i?void 0:i.defaultHitsPerPage)&&(a.hitsPerPage=r),(0,l.hT)(a,this)}window.customElements.define(d.is,d)},5608:function(e,t,i){"use strict";i.r(t),i.d(t,{Recommendation:function(){return c}});var r=i(2207),n=i(3940),s=i(4474),a=i(961),o=i(7982);class c extends((0,n.X)([(0,o.d)()],s.jD)){static get is(){return"ff-recommendation"}static get properties(){return{productNumber:{type:s.ye,attribute:"product-number"},maxResults:{type:Number,attribute:"max-results"},usePersonalization:{type:s.k_,attribute:"use-personalization"}}}constructor(){super(),this.productNumber=void 0,this.maxResults=void 0,this.usePersonalization=!0}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector(a.RecordList.is);e&&(e.subscribe=!1,e.__isRecommendation=!0)}update(e){e.has("productNumber")&&this.getRecommendations(),super.update(e)}getRecommendations(){if(!this.productNumber)return this.debug("No product number for recommendations specified."),void this.hideSelf();const e={id:this.productNumber.split(",")};this.maxResults&&(e.maxResults=this.maxResults),!1===this.usePersonalization&&(e.usePersonalization=!1),r.c.request.recommendation(e,{origin:this}).then((e=>{const t=e.hits;if(t.length>0){const e=this.querySelector(a.RecordList.is);e?(e.records=t,this.showSelf()):this.hideSelf()}else this.hideSelf()}))}}window.customElements.define(c.is,c)},961:function(e,t,i){"use strict";i.r(t),i.d(t,{RecordList:function(){return c}});var r=i(2207),n=i(3940),s=i(814),a=i(7361),o=i(4474);class c extends((0,n.X)([(0,a.z)()],o.jD)){static get is(){return"ff-record-list"}static get properties(){return{records:{type:Array},subscribe:{type:o.k_},ssr:{type:Boolean,reflectToAttribute:!0}}}constructor(){super(),this.subscribe=!0,this.__isRecommendation=!1,this.__isSimilarProducts=!1,this.__isLandingPage=!1,this.__isPredBasket=!1,this.__campaign=void 0,this.__pageId="",this._origHTML=this.innerHTML,this._templateRecord=void 0,this._templateInsertionInfo=void 0,this._subscriptionKey=void 0}connectedCallback(){if(super.connectedCallback(),!this._templateRecord){const e='template[data-role="record"]',t=this.querySelector(e);if(!t)throw console.log("".concat(c.is," without ").concat(s.Record.is," template."),this),Error("Could not find ".concat(s.Record.is," template with selector '").concat(e,"'. Initialization of ").concat(c.is," failed."));const i=document.importNode(t.content,!0);this._templateRecord=i.querySelector(s.Record.is),this._templateRecord._updateTemplate(),this._templateInsertionInfo={parentNode:t.parentNode,nextElementSibling:t}}if(this.ssr){const e=this._templateRecord.innerHTML;this.querySelectorAll(s.Record.is).forEach((t=>{t._updateTemplate(e)}))}else this.records&&this.records.length||this.hideSelf();!0===this.subscribe&&this._subscribe()}update(e){e.has("records")&&this._recordsPropertyChanged(this.records),e.has("subscribe")&&(this.subscribe?this._subscribe():this.unsubscribe()),super.update(e)}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe()}unsubscribe(){if(!this._subscriptionKey)return!1;r.u.elementsUnsubscribe(this._subscriptionKey),this._subscriptionKey=void 0}loadNextPage(){}_subscribe(){this._subscriptionKey||(this._subscriptionKey=r.u.elementsSubscribeSearchAndNavigation((e=>this._recordsChangedFFEventHandler(e))))}_recordsChangedFFEventHandler(e){this._currentLoadingNextPage=!1,u(this,e.hits,e)}_recordsPropertyChanged(e,t){var i,r;(i=e,r=t,Boolean(i&&r&&i.length===r.length&&i.every(((e,t)=>(0,s.isSameRecordData)(e,r[t])))))||u(this,e)}}function u(e,t,i){return new Promise((r=>{if(!t||!t.length)return e.hideSelf(),void r();const{parentNode:n}=e._templateInsertionInfo,a=n.removeChild.bind(n);Array.from(e.querySelectorAll(s.Record.is)).slice(t.length).forEach(a);const o=function(e){const t=[];for(let i=0;i{const n=o[r];n&&l(n)?p(n,t,e,i):d(e,t,i)})),e.showSelf(),requestAnimationFrame((()=>{e.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0})),r()}))}))}function l(e){return e.nodeName===s.Record.is.toUpperCase()}function d(e,t,i){const r=p(e._templateRecord.clone(),t,e,i),{parentNode:n,nextElementSibling:s}=e._templateInsertionInfo;n.insertBefore(r,s)}function p(e,t,i,r){return e.__isRecommendation=i.__isRecommendation,e.__isSimilarProducts=i.__isSimilarProducts,e.recordData=t,e.__isLandingPage=i.__isLandingPage,e.__isPredBasket=i.__isPredBasket,e.__campaign=i.__campaign,e.__pageId=i.__pageId,e.__result=r,i._currentLoadingNextPage&&(e.recordData.page=i._currentLoadingNextPage),e}window.customElements.define(c.is,c)},814:function(e,t,i){"use strict";i.r(t),i.d(t,{Record:function(){return f},isSameRecordData:function(){return h}});var r=i(6041),n=i(3940);var s=i(8486),a=i(7361),o=i(2207);function c(e,t,i,r){const n=(r||e).querySelectorAll(t);return!!n.length&&(i=i.bind(e),n.forEach((e=>e.addEventListener("click",i))),!0)}const u={getPrice:e=>{var t,i,r;const n=null===(t=o.c.config.fieldRoles)||void 0===t?void 0:t.price;return n&&(null!==(i=e.masterValues[n])&&void 0!==i?i:null===(r=e.variantValues[0])||void 0===r?void 0:r[n])},getProductNumber:e=>{var t,i,r;const n=null===(t=o.c.config.fieldRoles)||void 0===t?void 0:t.productNumber;return n&&(null!==(i=e.masterValues[n])&&void 0!==i?i:null===(r=e.variantValues[0])||void 0===r?void 0:r[n])},getTitle:e=>{var t,i,r,n;const s=null===(t=o.c.config.fieldRoles)||void 0===t?void 0:t.productName;return s&&null!==(i=null!==(r=e.masterValues[s])&&void 0!==r?r:null===(n=e.variantValues[0])||void 0===n?void 0:n[s])&&void 0!==i?i:""},getMasterId:e=>{var t,i,r,n;const s=null===(t=o.c.config.fieldRoles)||void 0===t?void 0:t.masterId;return s&&null!==(i=null!==(r=e.masterValues[s])&&void 0!==r?r:null===(n=e.variantValues[0])||void 0===n?void 0:n[s])&&void 0!==i?i:""}};var l=i(4474),d=i(3643);const p=[e=>class extends e{static get properties(){return{searchLightDOM:{type:Boolean},productImageIdentifier:{type:"String"},productImageErrorIdentifier:{type:"String"},redirectIdentifier:{type:"String"},redirectTargetIdentifier:{type:"String"},productAnchorIdentifier:{type:"String"},recommendationIdentifier:{type:"String"},bindImmediate:{type:Boolean},disableOverwrite:{type:Boolean}}}constructor(){super(),this.searchLightDOM=!0,this.productImageIdentifier="[data-image]",this.productImageErrorIdentifier="[data-image-onerror]",this.redirectIdentifier="[data-redirect]",this.redirectTargetIdentifier="[data-redirect-target]",this.productAnchorIdentifier="[data-anchor]",this.recommendationIdentifier="[data-recommendation]",this.bindImmediate=!1}ready(){super.ready(),this.bindImmediate&&(this.bindProductAnchors(),this.bindProductActions(),this.bindProductImage())}bindProductActions(){this._bindProductRedirect()}bindProductImage(){this.searchLightDOM&&this._bindProductImage(this)}bindProductAnchors(){this.searchLightDOM&&this._bindProductAnchors(this)}_bindProductImage(e){e.querySelectorAll(this.productImageIdentifier).forEach((e=>{e.onerror||(e.onerror=this._bindOnError(e));const t=e.getAttribute("data-image");t?e.setAttribute("src",t):e.onerror()}))}_bindOnError(e){return()=>{const t=e.getAttribute("data-image-onerror");e.onerror=null,t?e.setAttribute("src",t):console.debug("No image data for this record: ".concat(this.recordData.id))}}_bindProductAnchors(e){e.querySelectorAll(this.productAnchorIdentifier).forEach((e=>{const t=e.getAttribute("data-anchor");t&&0!==t.length&&(e.setAttribute("href",t),e.removeAttribute("data-anchor"))}))}_bindProductRedirect(){this.searchLightDOM&&this.bindRedirect(this)}bindRedirect(e){e&&e.querySelectorAll(this.redirectIdentifier).forEach((e=>{e.querySelectorAll("[data-track]").forEach((e=>e.attributes.removeNamedItem("data-track"))),this.registerClickListener(e)}))}registerClickListener(e){const t=e=>{const t=e.ctrlKey||e.shiftKey||e.metaKey||e.altKey;return 0===e.button&&!t&&!this.disableOverwrite},i=r=>{e.removeEventListener("mouseup",i),2!==r.button&&this._handleTrackingAndRedirect(r,t(r))};e.addEventListener("click",(e=>{t(e)&&e.preventDefault()})),e.addEventListener("mousedown",(t=>{e.addEventListener("mouseup",i),e.addEventListener("mouseleave",(()=>e.removeEventListener("mouseup",i)))}))}_handleTrackingAndRedirect(e,t){e.stopPropagation();const i=e.currentTarget,r=this.getRedirectTarget(i),n=this.getRedirectLocation(i);if(!n)return;const s=()=>{!0===t&&this.redirect(n,r)};if("_blank"===r){try{!0===this.__isRecommendation?this._trackRecommendationClick(this):!0===this.__isSimilarProducts?this._trackSimilarProductsClick(this):!0===this.__isLandingPage?this._trackLandingPageClick(this):!this.__result&&this.__campaign?this._trackProductCampaignClick(this):!0===this.__isPredBasket?this._trackPredBasketClick(this):this._trackProductClick(this)}catch(e){console.log(e)}s()}else!0===this.__isRecommendation?this._trackRecommendationClick(this,void 0,s):!0===this.__isSimilarProducts?this._trackSimilarProductsClick(this,void 0,s):!0===this.__isLandingPage?this._trackLandingPageClick(this,s):!this.__result&&this.__campaign?this._trackProductCampaignClick(this,s):!0===this.__isPredBasket?this._trackPredBasketClick(this,s):this._trackProductClick(this,s)}getRedirectLocation(e){const t=e.attributes.getNamedItem("data-redirect");if(t){const e=t.nodeValue;if(e&&e.length>0)return e;if(this.recordData)return this.recordData.record.Deeplink;console.debug("No record data available for data-redirect action.")}}getRedirectTarget(e){const t=e.attributes.getNamedItem("data-redirect-target");if(t){const e=t.nodeValue;if(e)return e}return"_blank"}redirect(e,t){window.open(e,t)}},(0,s.h)(!1),(0,a.z)(),e=>class extends e{constructor(){super(),this.clickSelector="[data-track]",this.productClickSelector='[data-track="productClick"]',this.recommendationClickSelector='[data-track="recommendationClick"]',this.checkoutClickSelector='[data-track="checkoutClick"]',this.cartClickSelector='[data-track="cartClick"]',this.dataCountSelector="[data-track-count]",this.getPrice=u.getPrice,this.getMasterId=u.getMasterId,this.getTitle=u.getTitle}getCount(e){const t=e.querySelector(this.dataCountSelector);if(t){const e=t.getAttribute("data-track-count");return parseInt(t[e]||t.value)}return 1}appendQuery(e,t,i){var r;if(null!==(r=o.c.config.categoryPage)&&void 0!==r&&r.length){if(i){const t=o.c.config.categoryPage[0].values[0];e.query=Array.isArray(t.value)?t.value.map((e=>e.replaceAll("/","%2F"))).join("/"):t.value}}else e.query=t.__result.searchParams.query}appendCampaign(e,t){null!=t&&t.__campaign&&(e.campaign=t.__campaign.id)}appendPrice(e,t){const i=this.getPrice(t);null!=i&&(e.price=i)}appendScore(e,t){t.score&&(e.score=t.score)}appendTitle(e,t){const i=this.getTitle(t);null!=i&&(e.title=i)}appendPage(e,t){t&&(e.page=t.paging.currentPage)}appendPageSize(e,t){t&&(e.pageSize=t.hits.length)}appendMasterId(e,t){const i=this.getMasterId(t);null!=i&&(e.masterId=i)}bindClick(e){e=e||this,!0===this.__isRecommendation?c(this,this.clickSelector,(t=>{e._trackRecommendationClick(e)}),e):!0===this.__isSimilarProducts?c(this,this.clickSelector,(t=>{e._trackSimilarProductsClick(e)}),e):!0===this.__isLandingPage?c(this,this.clickSelector,(t=>{e._trackLandingPageClick(e)}),e):!this.__result&&this.__campaign?c(this,this.clickSelector,(t=>{e._trackProductCampaignClick(e)}),e):!0===this.__isPredBasket?c(this,this.clickSelector,(t=>{e._trackPredBasketClick(e)}),e):c(this,this.clickSelector,(t=>{e._trackProductClick(e)}),e)}bindCheckoutClick(e){e=e||this,c(this,this.checkoutClickSelector,(t=>{e._trackCheckoutClick(e)}),e)}bindCartClick(e){e=e||this,c(this,this.cartClickSelector,(t=>{e._trackCartClick(e)}),e)}_trackRecommendationClick(e,t,i){const{recordElement:r,containerElement:n}=this._getRecoLikeElements("ff-recommendation",e,t);if(r){const e={id:u.getProductNumber(r.recordData),mainId:n.productNumber};this.appendMasterId(e,r.recordData),this.appendTitle(e,r.recordData),o.c.tracking.recommendationClick([e],{origin:r}).finally((()=>{i&&i()}))}}_trackSimilarProductsClick(e,t,i){const{recordElement:r,containerElement:n}=this._getRecoLikeElements("ff-similar-products",e,t);if(r){const e={id:u.getProductNumber(r.recordData),mainId:n.productId};this.appendMasterId(e,r.recordData),this.appendTitle(e,r.recordData),o.c.tracking.recommendationClick([e],{origin:r}).finally((()=>{i&&i()}))}}_getRecoLikeElements(e,t,i){let n,s;return n=i?{recordData:i}:t.tagName&&"ff-record"===t.tagName.toLowerCase()?this:(0,r.mZ)(t,"ff-record"),s=t.tagName.toLowerCase()===e?t:(0,r.mZ)(t,e),{recordElement:n,containerElement:s}}_trackLandingPageClick(e,t){const i={campaign:e.__campaign.id,id:u.getProductNumber(e.recordData),pageId:e.__pageId};this.appendMasterId(i,e.recordData),this.appendTitle(i,e.recordData),o.c.tracking.landingPageClick([i],{origin:e}).finally((()=>{t&&t()}))}_trackCheckoutClick(e,t){const i=this._buildCartOrCheckoutEvent(e);o.c.tracking.checkout([i],{origin:e}).finally((()=>{t&&t()}))}_trackCartClick(e,t){const i=this._buildCartOrCheckoutEvent(e);o.c.tracking.cart([i],{origin:e}).finally((()=>{t&&t()}))}_buildCartOrCheckoutEvent(e){const t={count:this.getCount(e)};if(this.appendCampaign(t,e),e.__isPredBasket){var i,r,n,s;t.id=e.recordData.values[null===(i=o.c.config.fieldRoles)||void 0===i?void 0:i.productNumber];const a=e.recordData.values[null===(r=o.c.config.fieldRoles)||void 0===r?void 0:r.masterId],c=e.recordData.values[null===(n=o.c.config.fieldRoles)||void 0===n?void 0:n.price],u=e.recordData.values[null===(s=o.c.config.fieldRoles)||void 0===s?void 0:s.productName];a&&(t.masterId=a),c&&(t.price=c),u&&(t.title=u)}else t.id=u.getProductNumber(e.recordData),this.appendMasterId(t,e.recordData),this.appendPrice(t,e.recordData),this.appendTitle(t,e.recordData);return t}_trackPredBasketClick(e,t){var i,r,n;const s={id:e.recordData.values[null===(i=o.c.config.fieldRoles)||void 0===i?void 0:i.productNumber]},a=e.recordData.values[null===(r=o.c.config.fieldRoles)||void 0===r?void 0:r.masterId],c=e.recordData.values[null===(n=o.c.config.fieldRoles)||void 0===n?void 0:n.productName];a&&(s.masterId=a),c&&(s.title=c),o.c.tracking.predbasketClick([s],{origin:e}).finally((()=>{t&&t()}))}_trackProductClick(e,t){const i=e.__result;if(!i)return void(t&&t());const r={id:u.getProductNumber(e.recordData),pos:e.recordData.position};this.appendQuery(r,e,i),this.appendCampaign(r,e),this.appendMasterId(r,e.recordData),this.appendPage(r,i),this.appendPageSize(r,i),this.appendScore(r,e.recordData),this.appendTitle(r,e.recordData),o.c.tracking.click([r],{origin:e}).finally((()=>{t&&t()}))}_trackProductCampaignClick(e,t){const i=e.__campaign.hits.findIndex((t=>t.id===e.recordData.id)),r={id:u.getProductNumber(e.recordData),pos:i+1,query:"Product campaign - ".concat(e.__campaign.name)};this.appendCampaign(r,e),this.appendMasterId(r,e.recordData),this.appendTitle(r,e.recordData),o.c.tracking.click([r],{origin:e}).finally((()=>{t&&t()}))}}],h=(e,t)=>Boolean(e&&t&&e.id===t.id&&JSON.stringify(e)===JSON.stringify(t));class f extends((0,n.X)(p,l.jD)){static get is(){return"ff-record"}static get properties(){return{recordData:{type:Object},addCartClick:{type:Boolean,attribute:"add-cart-click"},addCheckoutClick:{type:Boolean,attribute:"add-checkout-click"}}}constructor(){super(),this.addCartClick=!1,this.addCheckoutClick=!1,this.recordData=void 0,this._templateString=void 0,this.__isRecommendation=!1,this.__isSimilarProducts=!1,this.__isLandingPage=!1,this.__isPredBasket=!1,this.__campaign=void 0,this.__pageId="",this.__result=void 0}connectedCallback(){this._updateTemplate(),super.connectedCallback()}updated(e){e.has("recordData")&&this._recordDataChanged(this.recordData,e.get("recordData")),super.updated(e)}clone(){const e=document.createElement(f.is);return(0,r.FB)(this,e),e._updateTemplate(this._templateString),e}_recordDataChanged(e,t){if(e){if(!0===e.teaser)return this.innerHTML=e.text,!this.hasAttribute("is-teaser")&&this.setAttribute("is-teaser",""),void this.showSelf();this.hasAttribute("is-teaser")&&this.removeAttribute("is-teaser"),h(e,t)||(this._stamp(e),this.updateComplete.then((()=>{this.bindProductActions(),this.bindProductImage(),this.bindProductAnchors(),this.resolveDeferredAttributes(),this.bindClick(),this.addCartClick&&this.bindCartClick(),this.addCheckoutClick&&this.bindCheckoutClick()}))),this.showSelf()}else this.hideSelf()}_stamp(e){this.innerHTML=(0,d.s)(this._templateString,e)}_updateTemplate(e){e?this._templateString=e:this._templateString||(this._templateString=this.innerHTML)}}window.customElements.define(f.is,f)},8153:function(e,t,i){"use strict";i.r(t),i.d(t,{SearchBox:function(){return h}});var r=i(2207),n=i(792),s=i(4474),a=i(177),o=i(3940),c=i(8016),u=i(7982),l=i(2240),d=i(6041);const p=new WeakMap;class h extends((0,o.X)([(0,u.d)(),(0,l.D)(l.l.SearchAndNavigation)],s.jD)){static get is(){return"ff-searchbox"}static get properties(){return{suggestOnfocus:{type:s.k_,attribute:"suggest-onfocus"},selectOnclick:{type:s.k_,attribute:"select-onclick"},useSuggest:{type:s.k_,attribute:"use-suggest"},suggestDelay:{type:Number,attribute:"suggest-delay"},showAsteriskQuery:{type:s.k_,attribute:"show-asterisk-query"}}}get value(){if(this.input)return this.input.value;this.error("Input element not initialized.")}set value(e){this.input?(this.input.value=e,this.input.dispatchEvent(new Event("input",{bubbles:!0}))):this.error("Input element not initialized.")}constructor(){super(),this.selectedIndex=-1,this._inputValueChanged=this._inputValueChanged.bind(this),this.suggestOnfocus=!1,this.selectOnclick=!1,this.useSuggest=!0,this.suggestDelay=350,this.showAsteriskQuery=!1,this._enableTextSelection=!0,this._fireSuggestDebouncerJob=void 0,this._lastResult=void 0}firstUpdated(e){super.firstUpdated(e),this.input||(this.appendChild(document.createElement("input")),this.resetInput()),this.input.addEventListener("input",this._inputValueChanged),this.input.addEventListener("blur",this._inputValueChanged),this.input.addEventListener("focus",this._inputValueChanged),!0===this.selectOnclick?this.addEventListener("click",(()=>{this._enableTextSelection&&(this.input.select(),this._enableTextSelection=!1)})):!1!==this.selectOnclick&&this.warn("select-onclick has to be either 'true' or 'false'"),this.input.onkeyup=e=>{13===e.keyCode&&this._onEnter(),27===e.keyCode&&this._hideSuggest(),40===e.keyCode&&this._onArrowDown(e),38===e.keyCode&&this._onArrowUp(e)}}updated(e){super.updated(),e.has("suggestDelay")&&(null===this.suggestDelay||isNaN(this.suggestDelay)||(this._fireSuggestDebouncerJob=(0,n.D)(this._fireSuggestDebouncerJob,(()=>this._fireSuggest()),this.suggestDelay)))}connectedCallback(){this.resetInput(),super.connectedCallback();if(!this.querySelector(a.SearchButton.is))return;const e=e=>{e.stopPropagation(),this._fireSearch(this.value)};p.set(this,e),this.addEventListener(a.Events.ButtonClicked,e)}disconnectedCallback(){this.removeEventListener(a.Events.ButtonClicked,p.get(this)),p.delete(this),this._fireSuggestDebouncerJob&&this._fireSuggestDebouncerJob.cancel(),super.disconnectedCallback()}_subscriptionCallback(e){const t=e.searchParams.query;this.input.value="*"!==t||this.showAsteriskQuery?t:"",this._lastResult=e}_inputValueChanged(e){e&&("focus"===e.type&&!0===this.suggestOnfocus||"input"===e.type?this._triggerSuggest():"blur"===e.type&&(this._enableTextSelection=!0))}_triggerSuggest(){!1!==this.useSuggest&&(this.resetHighlight(),this._fireSuggestDebouncerJob.run())}_fireSuggest(){if(this.value&&this.value.length>=2){var e;const t={query:this.value};null!==(e=this._lastResult)&&void 0!==e&&e.followSearch&&(t.followSearch=this._lastResult.followSearch),r.c.request.suggest(t,{origin:this})}else this._hideSuggest()}_hideSuggest(){var e;this.resetHighlight(),this.selectedIndex=-1,null===(e=this._fireSuggestDebouncerJob)||void 0===e||e.cancel(),r.u.notifications.dispatchSuggestHide(this)}search(){this._fireSearch(this.value)}_fireSearch(e){var t;if(!e)return;const i={query:e};null!==(t=this._lastResult)&&void 0!==t&&t.followSearch&&(i.followSearch=this._lastResult.followSearch),r.c.request.search(i,{requestOptions:{origin:this}})}_onEnter(){-1!==this.selectedIndex?this.searchSelected():this.search(),this._hideSuggest()}_onArrowUp(e){if(this.selectedIndex<=0)return;this.input.setSelectionRange(0,this.value.length);const t=this.getSuggestItems();return t.length>0&&(this.removeHighlight(t[this.selectedIndex]),this.selectedIndex--,this.selectedIndex>=0&&this.setHighlight(t[this.selectedIndex])),e.stopPropagation(),e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1}_onArrowDown(e){const t=this.getSuggestItems();this.selectedIndex!==t.length-1&&t.length>0&&(-1!==this.selectedIndex&&this.removeHighlight(t[this.selectedIndex]),this.selectedIndex++,this.selectedIndex0!==e.offsetHeight))}resetInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"input";this.input=this.querySelector(e)}_handleExternalHighlight(e){this.resetHighlight(),this.setHighlight(e.element),this.selectedIndex=e.selectedIndex}setHighlight(e){e.classList.add("ffw-highlight-suggest-item")}removeHighlight(e){e.classList.remove("ffw-highlight-suggest-item")}resetHighlight(){this.selectedIndex=-1,this.getSuggestItems().forEach((e=>{e.classList.remove("ffw-highlight-suggest-item")}))}}window.customElements.define(h.is,h)},177:function(e,t,i){"use strict";i.r(t),i.d(t,{Events:function(){return o},SearchButton:function(){return c}});var r=i(4474),n=i(3940),s=i(7982),a=i(8153);const o={ButtonClicked:"ffSearchButton"};class c extends((0,n.X)([(0,s.d)()],r.jD)){static get is(){return"ff-searchbutton"}static get properties(){return{for:{type:String}}}constructor(){super(),this._button=void 0}firstUpdated(){var e;this.resetButton(),this.addEventListener("click",(e=this,t=>{if(!e._button)return e.error("No button element initialized.");if(!e._button.contains(t.target))return;if(!e.for)return void e.dispatchEvent(new CustomEvent(o.ButtonClicked,{bubbles:!0}));const i=document.getElementById(e.for);if(!i)return e.error("Could not find ".concat(a.SearchBox.is," with id '").concat(e.for,"'."));i.search()})),super.firstUpdated()}resetButton(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button";const t=this.querySelector(e);t?this._button=t:this.error("Couldn't find element for selector: ".concat(e))}}window.customElements.define(c.is,c)},4700:function(e,t,i){"use strict";i.r(t),i.d(t,{SimilarProducts:function(){return u}});var r=i(2207),n=i(3940),s=i(961),a=i(4474),o=i(7982);const c=Object.freeze({ProductNumber:"productNumber",Id:"id"});class u extends((0,n.X)([(0,o.d)()],a.jD)){static get is(){return"ff-similar-products"}static get properties(){return{productId:{type:a.ye,attribute:"product-id"},maxResults:{type:Number,attribute:"max-results"},idType:{type:String,attribute:"id-type"}}}constructor(){super(),this.productId=void 0,this.maxResults=void 0,this.idType=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector(s.RecordList.is);e&&(e.subscribe=!1,e.__isSimilarProducts=!0)}update(e){if(e.has("idType")){const e=Object.values(c);if(!e.includes(this.idType))return void this.warn("idType must be one of [".concat(e.join(", "),"]. Was: ").concat(this.idType,"."))}e.has("productId")&&this.getSimilarProducts(),super.update(e)}getSimilarProducts(){if(!Object.values(c).includes(this.idType))return void this.warn("idType invalid. Not sending request.");if(!this.productId)return void this.debug("No product id for similarProducts specified.");const e={id:this.productId,idType:this.idType};this.maxResults&&(e.maxResults=this.maxResults),r.c.request.similar(e,{origin:this}).then((e=>{const t=e.hits;if(t.length>0){const e=this.querySelector(s.RecordList.is);e?(e.records=t,this.showSelf()):this.hideSelf()}else this.hideSelf()}))}}window.customElements.define(u.is,u)},6637:function(e,t,i){"use strict";i.r(t),i.d(t,{SingleWordSearch:function(){return k}});var r,n=i(168),s=i(9890),a=i(961),o=i(3940),c=i(7982),u=i(4474),l=i(3643),d=i(6041);const p="[data-search='singleWord']";class h extends((0,o.X)([(0,c.d)()],u.jD)){static get is(){return"ff-single-word-search-record"}static get properties(){return{_template:{type:Object,attribute:!1},singleWordResult:{type:Object,attribute:!1}}}render(){return(0,s.dy)(this._template?[this._template.dataTemplate]:[])}constructor(){super(),this._template=void 0,this._handleSingleSearchClick=f(this)}firstUpdated(e){super.firstUpdated(e),this._template&&Object.keys(this._template.attributes).forEach((e=>this.setAttribute(e,this._template.attributes[e])))}updated(e){super.updated(e),e.has("singleWordResult")&&m(this,this.singleWordResult)}connectedCallback(){super.connectedCallback();const e=this.querySelector(a.RecordList.is);e?(e.setAttribute("subscribe","false"),e.innerHTML=e._origHTML):(0,u.np)(this)||this.warn("".concat(a.RecordList.is," not found. Data will not be displayed."))}}const f=e=>()=>{(0,d.hT)(e.singleWordResult.searchParams,e)},m=(e,t)=>{if(e.hideSelf(),!t)return;const i=e.querySelector(p);i&&(i.innerHTML=(0,l.s)(i.innerHTML,t));const r=e.querySelector(a.RecordList.is);r?r.records=t.previewRecords:e.warn("".concat(a.RecordList.is," not found. Data will not be displayed.")),g(e,e._handleSingleSearchClick),b(e,e._handleSingleSearchClick),e.showSelf()},g=(e,t)=>{e.querySelectorAll(p).forEach((e=>e.removeEventListener("click",t)))},b=(e,t)=>{e.querySelectorAll(p).forEach((e=>e.addEventListener("click",t)))};window.customElements.define(h.is,h);var v,y,_=i(6342),S=i(2240);class k extends((0,o.X)([(0,S.D)(S.l.SearchAndNavigation)],u.jD)){static get is(){return"ff-single-word-search"}static get properties(){return{singleWordResults:{type:Array,attribute:!1}}}render(){return!this.singleWordResults||!this.singleWordResults.length>0?(0,s.dy)(v||(v=(0,n.Z)([""]))):(0,s.dy)(y||(y=(0,n.Z)([""," "," ",""])),(0,u.SM)(this._headerTemplate),(0,_.r)(this.singleWordResults,(e=>e.word),(e=>{return t=this._singleWordRecordTemplate,i=e,(0,s.dy)(r||(r=(0,n.Z)([''])),t,i);var t,i})),(0,u.SM)(this._footerTemplate))}constructor(){super(),this._headerTemplate=void 0,this._singleWordRecordTemplate=void 0,this._footerTemplate=void 0,this.singleWordResults=[]}updated(e){super.updated(e),this.updateComplete.then((()=>{Promise.all(Array.from(this.querySelectorAll(h.is)).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))}connectedCallback(){super.connectedCallback();const e=this.querySelector(h.is),t=w(e),i=C(e);this._headerTemplate=this._headerTemplate||P(t),this._singleWordRecordTemplate=this._singleWordRecordTemplate||(e=>!e||(0,u.np)(e)?{dataTemplate:"",attributes:{}}:{dataTemplate:e.innerHTML,attributes:Array.prototype.reduce.call(e.attributes,((e,t)=>{let{name:i,value:r}=t;return e[i]=r,e}),{})})(e),this._footerTemplate=this._footerTemplate||P(i)}_subscriptionCallback(e){this.singleWordResults=e.singleWordResults}}const w=e=>{if(!e)return[];const t=[...e.parentNode.childNodes];return t.slice(0,t.indexOf(e))},C=e=>{if(!e)return[];const t=[...e.parentNode.childNodes];return t.slice(t.indexOf(e)+1)},P=e=>{const t=document.createElement("div");return e.forEach((e=>t.appendChild(e))),t.innerHTML};window.customElements.define(k.is,k)},4675:function(e,t,i){"use strict";i.r(t),i.d(t,{Slider:function(){return h}});var r=i(168),n=i(3282),s=i(4474),a=i(6041);const o=e=>Math.round(1e3*e)/1e3;class c extends s.jD{static get properties(){return{selectedMinValue:{type:Number,attribute:"selected-min-value"},selectedMaxValue:{type:Number,attribute:"selected-max-value"},absoluteMaxValue:{type:Number,attribute:"absolute-max-value"},absoluteMinValue:{type:Number,attribute:"absolute-min-value"},step:{type:Number}}}constructor(){super(),this.step=1,this._initialized=!1}update(e){e.has("absoluteMinValue")&&(this.absoluteMinValue=o(Math.floor(this.absoluteMinValue/this.step)*this.step)),e.has("absoluteMaxValue")&&(this.absoluteMaxValue=o(Math.ceil(this.absoluteMaxValue/this.step)*this.step)),e.has("selectedMinValue")&&(this.selectedMinValue=o(Math.floor(this.selectedMinValue/this.step)*this.step)),e.has("selectedMaxValue")&&(this.selectedMaxValue=o(Math.ceil(this.selectedMaxValue/this.step)*this.step)),super.update(e)}updateData(e){!e||this.selectedMaxValue===e.selectedMaxValue&&this.selectedMinValue===e.selectedMinValue||(this.absoluteMaxValue=e.absoluteMaxValue,this.absoluteMinValue=e.absoluteMinValue,this.selectedMaxValue=e.selectedMaxValue,this.selectedMinValue=e.selectedMinValue),function(e,t){if(e._initialized)return;Promise.resolve().then((()=>{const i=(0,a.mZ)(e,"FF-Slider-CONTROL");i&&i.init(t)})),e._initialized=!0}(this,e)}submit(){if(this.selectedMinValue<=this.absoluteMinValue&&this.selectedMaxValue>=this.absoluteMaxValue)this.dispatchEvent(new CustomEvent("_slider-submit",{bubbles:!0,composed:!0}));else{(e=this).selectedMinValue=o(Math.round(e.selectedMinValue/e.step)*e.step),e.selectedMaxValue=o(Math.round(e.selectedMaxValue/e.step)*e.step);const t="[".concat(this.selectedMinValue,",").concat(this.selectedMaxValue,"]");this.dispatchEvent(new CustomEvent("_slider-submit",{detail:t,bubbles:!0,composed:!0}))}var e}}var u,l;const d=Object.freeze({Triangle:".ffw-triangle",LeftButton:".ffw-slider-button-left",RightButton:".ffw-slider-button-right",Line:".ffw-line",SelectedRange:".ffw-selected-range"}),p=Object.freeze({NoTransition:"ffw-no-transition",Active:"ffw-active"});class h extends c{static get is(){return"ff-slider"}static get properties(){return{ratio:{type:Number},oneTouch:{type:Boolean,attribute:"one-touch"}}}constructor(){super(),this.ratio=.5,this.oneTouch=!1,this._listener=void 0}render(){const e=this.querySelector(".ffw-slider-button-left"),t=this.querySelector(".ffw-slider-button-right"),i=this.offsetWidth;let s=i;e&&t&&(s=i-e.offsetWidth-t.offsetWidth);const a=s*this.ratio;return(0,n.dy)(u||(u=(0,r.Z)(['
','
'])),f(this),m(this),i,a,a,2*i,2*a,this.oneTouch&&(0,n.dy)(l||(l=(0,r.Z)(['
'])),b(this),b(this),f(this),1.5*i,a,s),i,i,i,v(this,!0),v(this,!0),i,v(this,!1),v(this,!1),2*i)}firstUpdated(){super.firstUpdated(),window.addEventListener("mouseup",_(this)),window.addEventListener("touchend",_(this))}update(e){super.update(e);["selectedMinValue","selectedMaxValue","absoluteMinValue","absoluteMaxValue"].some((t=>e.has(t)))&&(!function(e){e.selectedMaxValue=Math.min(e.absoluteMaxValue,e.selectedMaxValue),e.selectedMinValue=Math.max(e.absoluteMinValue,e.selectedMinValue),e.selectedMinValue===e.selectedMaxValue&&(e.selectedMinValue===e.absoluteMinValue&&(e.selectedMaxValue+=e.step),e.selectedMaxValue===e.absoluteMaxValue&&(e.selectedMinValue-=e.step));S(e)}(this),g(this))}updateData(e){super.updateData(e),g(this)}}function f(e){return()=>{const t=e.querySelector(d.Triangle);t&&(t.classList.add(p.Active),g(e))}}function m(e){return()=>{if(e._listener)return;const t=e.querySelector(d.Triangle);t&&(t.classList.remove(p.Active),g(e))}}function g(e){const t=e.querySelector(d.LeftButton),i=e.querySelector(d.RightButton),r=e.querySelector(d.Line),n=e.querySelector(d.SelectedRange),s=e.querySelector(d.Triangle),a=r.offsetWidth,o=r.offsetLeft,c=a-t.offsetWidth-i.offsetWidth,u=a+t.offsetWidth,l=e.absoluteMaxValue-e.absoluteMinValue,h=Math.round((e.selectedMinValue-e.absoluteMinValue)/l*c+o),f=Math.round((e.selectedMaxValue-e.absoluteMinValue)/l*c+u);if(t.style.left="".concat(h,"px"),n.style.left="".concat(h,"px"),i.style.left="".concat(f,"px"),n.style.right="".concat(2*a-f-i.offsetWidth,"px"),!s)return;const m=h+t.offsetWidth;if(s.classList.contains(p.Active)){const e=50-(f-m)/c*50;s.style.left="".concat(f,"px"),s.style.top="".concat(e,"%")}else s.style.left="".concat((f-m)/2+m,"px"),s.style.top="50%"}function b(e){return{handleEvent:t=>{const i=e.querySelector(d.LeftButton),r=e.querySelector(d.RightButton),n=e.querySelector(d.Line),s=e.querySelector(d.Triangle);s.classList.contains(p.Active)||f(e)(),_(e)(),s.classList.add(p.NoTransition);const a=n.offsetWidth-i.offsetWidth-r.offsetWidth,o=e.absoluteMaxValue-e.absoluteMinValue,c=e=>e/a*o,[u,l]=y(t),h=e.selectedMaxValue,m=e.selectedMaxValue-e.selectedMinValue;e._listener=t=>{const[i,r]=y(t),n=i-u,s=(r-l)/e.ratio,a=c(n),o=c(s),d=h+a,p=d-m,f=Math.max(0,d-e.absoluteMaxValue),b=Math.max(0,e.absoluteMinValue-p),v=o>0?Math.max(0,b-o):b,_=Math.min(e.absoluteMaxValue,d)+v,k=Math.max(e.absoluteMinValue,p)-f,w=o-b,C=Math.min(_,k+w),P=Math.max(e.absoluteMinValue,_);e.selectedMinValue=C,e.selectedMaxValue=P,g(e),S(e)},window.addEventListener("mousemove",e._listener),window.addEventListener("touchmove",e._listener)},passive:!0}}function v(e,t){return{handleEvent:i=>{_(e)();const r=e.querySelector(d.LeftButton),n=e.querySelector(d.RightButton),s=e.querySelector(d.Line),a=e.querySelector(d.Triangle);null==a||a.classList.add(p.NoTransition);const c=s.offsetWidth-r.offsetWidth-n.offsetWidth,u=s.offsetLeft,l=parseInt(r.style.left.replace("px","")),h=parseInt(n.style.left.replace("px","")),[f]=y(i),m=e.absoluteMaxValue-e.absoluteMinValue,b=t=>t/c*m+e.absoluteMinValue;e._listener=i=>{const[n]=y(i),s=n-f;if(t){const t=b(l+s-u);e.selectedMinValue=o(Math.min(e.selectedMaxValue,t))}else{const t=b(h+s-u-r.offsetWidth);e.selectedMaxValue=o(Math.max(e.selectedMinValue,t))}g(e),S(e)},window.addEventListener("mousemove",e._listener),window.addEventListener("touchmove",e._listener)},passive:!0}}function y(e){return[void 0!==e.clientX?e.clientX:e.touches[0].clientX,void 0!==e.clientY?e.clientY:e.touches[0].clientY]}function _(e){return()=>{if(!e._listener)return;window.removeEventListener("mousemove",e._listener),window.removeEventListener("touchmove",e._listener),e.submit(),e._listener=void 0;const t=e.querySelector(d.Triangle);if(!t)return;t.classList.remove(p.NoTransition);!1===(t.matches?t.matches(":hover"):t.msMatchesSelector(":hover"))&&m(e)()}}function S(e){const t={detail:{selectedMinValue:e.selectedMinValue,selectedMaxValue:e.selectedMaxValue,slider:"min"}};e.dispatchEvent(new CustomEvent("value-changed",t)),e.dispatchEvent(new CustomEvent("slider-moved",t)),e.dispatchEvent(new CustomEvent("slider-moved",{detail:{...t.detail,slider:"max"}}))}window.customElements.define(h.is,h)},2969:function(e,t,i){"use strict";i.r(t),i.d(t,{SortBoxSelect:function(){return l}});var r,n=i(168),s=i(3282),a=i(4474),o=i(3940),c=i(2240),u=i(6041);class l extends((0,o.X)([(0,c.D)(c.l.SearchAndNavigation)],a.jD)){static get is(){return"ff-sortbox-select"}static get properties(){return{items:{type:Array,attribute:!1}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(['"])),d,this.items.map((e=>(0,a.SM)(this._itemTemplate,e))))}constructor(){super(),this._selectAttributes=[],this._itemTemplate=void 0,this.items=[]}connectedCallback(){var e;super.connectedCallback(),this.hideSelf(),this._selectAttributes=(e=this.querySelector("select"))?e.attributes:[],this._itemTemplate=this.querySelector("option")||""}firstUpdated(){const e=this.querySelector("select");Array.prototype.forEach.call(this._selectAttributes,(t=>{let{name:i,value:r}=t;return e.setAttribute(i,r)}))}updated(e){e.has("items")&&(0===this.items.length?this.hideSelf():(this.showSelf(),this.querySelector("select").selectedIndex=function(e){for(let t=0;t','
',"
"])),g.SelectedContainer,this._selectedItem,g.DropdownContainer,this.opened?"":g.DropdownClosed,this._dropdownItems)}constructor(){var e;super(),this.items=[],this.opened=!1,this.showSelected=!1,this.showSelectedFirst=!1,this.collapseOnblur=!0,this._defaultSortItemTemplate=void 0,this._initialized=!1,this._sortBoxItemTemplateInfos={},this._selectedItem=void 0,this._dropdownItems=void 0,this.addEventListener(d,_),this.addEventListener("click",(()=>this.toggle())),this.addEventListener("blur",(e=this,()=>{e.collapseOnblur&&setTimeout((()=>e.collapse()),150)}))}connectedCallback(){super.connectedCallback(),this._init()}_init(){if(this._initialized)return;this.tabindex=this.getAttribute("tabindex"),this.tabindex||this.setAttribute("tabindex","1");const e=this.querySelector(m.DefaultSortItemCssSelector);e?(this._defaultSortItemTemplate=e,this.removeChild(e)):this._defaultSortItemTemplate=document.createElement(p.is),this._sortBoxItemTemplateInfos=function(e,t){const i="Relevancy.desc";return t.forEach((t=>{const r=t.getAttribute("key");!r||r===i&&e.hasOwnProperty(i)||(e[r]=y(t))})),e}(this._sortBoxItemTemplateInfos,this.querySelectorAll(p.is)),this._initialized=!0}firstUpdated(e){super.firstUpdated(e),this.hideSelf(),function(e){const t=v(e);e.opened?(e.opened=!0,e._show(t,!1)):e._hide(t,!1,(()=>{e.opened=!1}))}(this)}update(e){(e.has("items")||e.has("showSelected"))&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.collapse(),!t.length)return void e.hideSelf();const i=t.find((e=>e.selected)),r=t.indexOf(i),n=t.slice();e.showSelected&&!e.showSelectedFirst||n.splice(r,1);if(e.showSelected){const t={...i,selected:!1};n.splice(e.showSelectedFirst?0:r,0,t)}e._selectedItem=s(i),e._dropdownItems=n.map(s),e._dropdownItems.forEach((e=>e._highlightSelected=!1)),e.showSelected&&(e._dropdownItems[e.showSelectedFirst?0:r]._highlightSelected=!0);function s(t){const i="".concat((r=t).name,".").concat(r.order);var r;const n=function(e,t,i,r){const n=(s=e[i],a=()=>{const r=t.clone();return r.setAttribute("key",i),e[i]=y(r),e[i]},null!=s?s:a());var s,a;if(r&&!n.selected){const e=n.dropdown.clone();e.setAttribute("key",i),n.selected=e}return r?n.selected:n.dropdown}(e._sortBoxItemTemplateInfos,e._defaultSortItemTemplate,i,t.selected);return n.sortItem=t,n}e.showSelf(),e.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}(this,this.items),super.update(e)}expand(){if(this.opened)return;this.opened=!0;const e=v(this);this._show(e,!0)}collapse(){if(!this.opened)return;const e=v(this);e.__transitionActive__=!1,this._hide(e,!0,(()=>{this.opened=!1}))}toggle(e){!0===e?this.expand():!1===e||this.opened?this.collapse():this.expand()}_subscriptionCallback(e){this.items=e.sortItems}}function v(e){return e.querySelector(".".concat(g.DropdownContainer))}function y(e,t){return{dropdown:e,selected:t}}function _(e){const t=e.target.sortItem;t.selected||(0,a.hT)(t.searchParams,this)}window.customElements.define(b.is,b)},8016:function(e,t,i){"use strict";i.d(t,{M:function(){return f},u:function(){return m}});var r,n,s=i(168),a=i(9890),o=i(6858),c=i(3940),u=(i(8153),i(7982)),l=i(8486),d=i(4474),p=i(9528),h=i(6041);const f="_item-clicked";class m extends((0,c.X)([(0,u.d)(),(0,l.h)()],d.jD)){static get is(){return"ff-suggest-item"}static get properties(){return{type:{type:String,reflect:!0},suggestion:{type:Object,attribute:!1}}}render(){const e=this.suggestion&&JSON.parse(JSON.stringify(this.suggestion));return e&&this._query&&this.highlightQuery(e,this._query),this._template?(0,a.dy)(r||(r=(0,s.Z)(["",""])),(0,d.SM)(this._template,(0,p.J)(e,"name"))):(0,a.dy)(n||(n=(0,s.Z)(["",""])),this.innerHTML)}constructor(){super(),this.type="all",this.suggestion=void 0,this._query=void 0,this._template=void 0,this.addEventListener("click",g)}connectedCallback(){super.connectedCallback(),this._template=this._template||this.innerHTML||void 0}update(e){this.suggestion?this.showSelf():this.hideSelf(),super.update(e)}updated(e){if(super.updated(e),this.suggestion)try{(0,o.M)(this,this.suggestion.image)}catch(e){this.error(e)}}highlightQuery(e,t){if(!e.queryHighlighted)if(t&&t.trim())try{const i=t.trim().split(" ").map(h.yI).join("|");e.name=e.name.replace(new RegExp(i,"gi"),(e=>''.concat(e,""))),e.queryHighlighted=!0}catch(e){this.error(e)}else this.warn("Search query is not defined or is an empty string. Suggest item highlighting skipped.")}}function g(e){e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new CustomEvent(f,{bubbles:!0}))}window.customElements.define(m.is,m)},5730:function(e,t,i){"use strict";i.r(t),i.d(t,{Suggest:function(){return m}});var r,n,s=i(168),a=i(9890),o=i(2207),c=i(3940),u=i(7982),l=i(8016),d=i(8153),p=i(4474),h=i(498);const f=Object.freeze({block:"block",list:"list"});class m extends((0,c.X)([(0,u.d)()],p.jD)){static get is(){return"ff-suggest"}static get properties(){return{layout:{type:String},suggestItems:{type:Array,attribute:!1},hideOnblur:{type:p.k_,attribute:"hide-onblur"},requestMappingSearch:{type:String,attribute:"request-mapping-search"},requestMappingNavigation:{type:String,attribute:"request-mapping-navigation"},requestMappingDetail:{type:String,attribute:"request-mapping-detail"},forSearchbox:{type:String,attribute:"for-searchbox"},_showUnknownSuggestions:{type:p.k_,attribute:"show-unknown-suggestions"},_unknownSuggestionsSectionId:{type:String,attribute:"unknown-suggestions-section-id"}}}render(){const e=g(this.suggestItems),t=Object.keys(e),i=document.createElement("div");i.innerHTML=this._template;const o=i.querySelectorAll("[data-container]"),c=(0,h.yi)('
\n

unknown

\n \n {{{name}}}\n \n
');for(let e=o.length-1;e>=0;e--){const i=o[e],r=i.getAttribute("data-container");(!r||t.indexOf(r)<0)&&i.parentNode.removeChild(i)}t.forEach((t=>{const r=e[t];let n=i.querySelector("".concat(l.u.is,'[type="').concat(t,'"]'));if(!n){if(!this._showUnknownSuggestions)return;const e=(0,h.yi)(c.outerHTML.replace(/\bunknown\b/g,t)),r=i.querySelector(this._unknownSuggestionsSectionId?"#".concat(this._unknownSuggestionsSectionId):"section");if(!r)return;r.appendChild(e),n=e.querySelector("".concat(l.u.is)),this._itemTemplates[t]=n.outerHTML}r.forEach((e=>{const i=(0,h.yi)(this._itemTemplates[t]);i._template=i.innerHTML,i.type=t,i.suggestion=e,i._query=this._userInput,n.parentNode.insertBefore(i,n)})),n.parentNode.removeChild(n)}));const u=i.querySelectorAll("section");return Array.from(u).forEach((e=>{0===e.querySelectorAll(l.u.is).length&&e.setAttribute("hidden","")})),(0,a.dy)(r||(r=(0,s.Z)(['
',"
"])),this.layout,Array.from(i.children).map((e=>(0,a.dy)(n||(n=(0,s.Z)(["",""])),e))))}constructor(){super(),this.layout=f.list,this.suggestItems=[],this.hideOnblur=!0,this.requestMappingSearch="searchTerm",this.requestMappingNavigation="category,brand",this.requestMappingDetail="productName",this.forSearchbox=void 0,this._showUnknownSuggestions=!1,this._unknownSuggestionsSectionId=void 0,this._suggestSubscriptionKey=void 0,this._template=void 0,this._itemTemplates={},this._originSearchbox=void 0,this._globalClickListener=void 0,this._hideListener=()=>{this._originSearchbox=void 0,this.hideSelf()}}connectedCallback(){var e;super.connectedCallback(),this._initTemplates(),this._suggestSubscriptionKey=this._suggestSubscriptionKey||o.u.elementsSubscribeSuggest(((e,t)=>{var i,r;let{suggestions:n}=e;const s=null==t||null===(i=t.suggestParams)||void 0===i?void 0:i.query,a=null==t||null===(r=t.requestOptions)||void 0===r?void 0:r.origin;s===(null==a?void 0:a.value)&&(this.forSearchbox&&!this.forSearchbox.split(",").includes(null==a?void 0:a.id)||(this.suggestItems=n||[],this._userInput=s,(null==a?void 0:a.constructor.is)===d.SearchBox.is&&(this._originSearchbox=a)))})),o.u.notifications.addSuggestHideListener(this._hideListener),this.addEventListener(l.M,this._itemClicked),this._globalClickListener=(e=this,t=>{var i;e.hideOnblur&&(e.contains(t.target)||null!==(i=e._originSearchbox)&&void 0!==i&&i.contains(t.target)||e._hideListener())}),document.addEventListener("click",this._globalClickListener)}update(e){this.suggestItems&&0!==this.suggestItems.length?this.showSelf():this.hideSelf(),super.update(e)}updated(e){super.updated(e),this.updateComplete.then((()=>{Promise.all(Array.from(this.querySelectorAll(l.u.is)).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))}disconnectedCallback(){o.u.notifications.removeSuggestHideListener(this._hideListener),this.removeEventListener(l.M,this._itemClicked),document.removeEventListener("click",this._globalClickListener),this._suggestSubscriptionKey&&(o.u.elementsUnsubscribe(this._suggestSubscriptionKey),this._suggestSubscriptionKey=void 0),super.disconnectedCallback()}_itemClicked(e){var t,i,r;if(e.stopPropagation(),!1===o.u.notifications.dispatchSuggestClick(e.target))return;const n=e.target,s=o.c.config.fieldRoles.deeplink;if(n.suggestion.attributes.hasOwnProperty(s))o.u.routing.requestNavigate(n.suggestion.attributes[s],n);else if(null!==(t=this.requestMappingSearch)&&void 0!==t&&t.split(",").includes(n.type))o.c.request.search(n.suggestion.searchParams,{userInput:this._userInput,requestOptions:{origin:n}});else if(null!==(i=this.requestMappingNavigation)&&void 0!==i&&i.split(",").includes(n.type)){const e=o.c.utils.toNavigationParams(n.suggestion.searchParams);o.c.request.navigation(e,{requestOptions:{origin:n}})}else null!==(r=this.requestMappingDetail)&&void 0!==r&&r.split(",").includes(n.type)?o.u.notifications.dispatchSuggestDetail(n):(console.warn("Unmapped suggest item type:",n),o.u.notifications.dispatchSuggestUnmapped(n));this.hideSelf()}_initTemplates(){const e=document.createElement("div");e.innerHTML=this.innerHTML;for(let t=e.childNodes.length-1;t>=0;t--){const i=e.childNodes[t];("SECTION"!==i.nodeName||!i.querySelector(l.u.is)&&i.id!==this._unknownSuggestionsSectionId)&&i.parentNode.removeChild(i)}this._template=e.innerHTML;e.querySelectorAll(l.u.is).forEach((e=>{const t=e.getAttribute("type");t&&!this._itemTemplates[t]&&(this._itemTemplates[t]=e.outerHTML)}))}}window.customElements.define(m.is,m);const g=e=>{const t={};return e.forEach((e=>{t[e.type]=t[e.type]||[],t[e.type].push(e)})),t}},1616:function(e,t,i){"use strict";i.r(t),i.d(t,{Template:function(){return c}});var r=i(2207),n=i(4474),s=i(3940),a=i(7982),o=i(8486);class c extends((0,s.X)([(0,a.d)(),(0,o.h)()],n.jD)){static get is(){return"ff-template"}static get properties(){return{data:{type:Object,attribute:!1},scope:{type:String}}}render(){return(0,n.SM)(this._template,this.data)}constructor(){super(),this.data=void 0,this.scope=void 0,this._subscriptionKey=void 0,this._template=void 0}connectedCallback(){super.connectedCallback(),this._template=this.innerHTML,this.scope&&!this._subscriptionKey&&(this._subscriptionKey=u(this))}disconnectedCallback(){super.disconnectedCallback(),this._subscriptionKey&&(r.u.elementsUnsubscribe(this._subscriptionKey),this._subscriptionKey=void 0)}update(e){this.data?this.showSelf():this.hideSelf(),super.update(e)}updated(e){super.updated(e),e.has("data")&&this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))})),e.has("scope")&&(r.u.elementsUnsubscribe(this._subscriptionKey),this._subscriptionKey=this.scope?u(this):void 0)}}function u(e){const t="elementsSubscribe",i=e.scope.trim(),n=t+i;if("function"==typeof r.u[n])return r.u[n]((t=>{e.data=t}));{const n=Object.keys(r.u).filter((e=>e.startsWith(t))).map((e=>e.slice(17)));e.error("Specified scope '".concat(i,"' does not exist. Pick one of: ").concat(n.join(", ")))}}window.customElements.define(c.is,c)},4474:function(e,t,i){"use strict";i.d(t,{SM:function(){return d},jD:function(){return l},k_:function(){return h},np:function(){return p},ye:function(){return f}});var r,n=i(168),s=i(3282),a=i(3940),o=i(3643),c=i(7361);const u=Object.freeze({Comment:8});class l extends((0,a.X)([(0,c.z)()],s.oi)){createRenderRoot(){return this}showSelf(){this.classList.remove("ffw-hidden")}hideSelf(){this.classList.add("ffw-hidden")}shouldUpdate(e){return this._preprocessBooleanProperties(e),!0}connectedCallback(){super.connectedCallback(),this._preprocessBooleanProperties(this.constructor._classProperties)}_preprocessBooleanProperties(e){e.forEach(((e,t)=>{var i;this.constructor._classProperties.get(t).type===h&&(function(e){const t=String(e).toLowerCase();return"true"===t||"false"===t}(this[t])||console.error("".concat(this.constructor.is,": ")+"StringyBoolean property [".concat(t,"] is expected to be either true or false, but is [").concat(this[t],"]. ")+"Falling back to false."),this[t]=(i=this[t],"true"===String(i).toLowerCase()))}))}}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return(0,s.dy)(r||(r=(0,n.Z)([""])));if("string"==typeof e)return(0,s.dy)([(0,o.s)(e,t)]);const i=document.createElement("div");return i.appendChild(e),(0,s.dy)([(0,o.s)(i.innerHTML,t)])}function p(e){return!e.innerHTML.trim()||Array.from(e.childNodes).every((e=>e.nodeType===u.Comment))}const h=String.bind({});function f(e){return null==e?e:String(e)}},792:function(e,t,i){"use strict";i.d(t,{D:function(){return r}});const r=(e,t,i)=>{let r;const n=()=>{clearTimeout(r),r=void 0};return e&&"function"==typeof e.cancel&&e.cancel(),{cancel:n,run:function(){for(var e=arguments.length,s=new Array(e),a=0;a{r=void 0,t(...s)}),i)}}}},9528:function(e,t,i){"use strict";function r(e,t){try{return{...e,[t]:decodeURIComponent(e[t])}}catch{return e}}i.d(t,{J:function(){return r}})},498:function(e,t,i){"use strict";function r(e){const t=document.createElement("div");t.innerHTML=e;const i=t.firstElementChild;return t.removeChild(i),i}function n(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;rt+i+e[r+1]),e[0])}function s(e,t){const i=e.parentNode||t,r=e.nextSibling,n=e.cloneNode(!0);return(e,t,s)=>{const a=Math.max(e.length,t.length);for(let o=0;o{i.onerror&&function(e,t){const i=e.attributes.getNamedItem(t);if(i){const t=i.nodeValue;t&&(e.onerror=()=>{e.onerror=null,e.setAttribute("src",t)})}}(i,e.getAttribute("product-image-error-attribute")||"data-image-onerror");(i.getAttribute("data-image")||t)&&i.setAttribute("src",i.getAttribute("data-image")||t)}))}i.d(t,{M:function(){return r}})},3643:function(e,t,i){"use strict";i.d(t,{s:function(){return a}});var r=i(9312),n=i.n(r),s=i(2207);function a(e,t){const i=s.c.config.dataBindingTags,r=i?e.replaceAll(i[0],"{{").replaceAll(i[1],"}}"):e;try{return n().compile(r)(t)}catch(t){return console.error("Could not render template: ".concat(e),t),""}}},6041:function(e,t,i){"use strict";i.d(t,{FB:function(){return d},LI:function(){return l},M7:function(){return o},hT:function(){return a},mZ:function(){return u},pk:function(){return s},rE:function(){return c},yI:function(){return n}});var r=i(2207);const n=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e=>t=>("TRUE"===t.selected||"IRRELEVANT"===t.selected)&&!e.includes(t.text);function a(e,t,i){var n;t||console.warn("[DEBUG] Internal: 'searchOrNavigation' did not receive 'origin'");const s=i||{};return!t||null!==(n=s.requestOptions)&&void 0!==n&&n.origin||(s.requestOptions?s.requestOptions.origin=t:s.requestOptions={origin:t}),r.c.config.categoryPage?r.c.request.navigation(r.c.utils.toNavigationParams(e),s):r.c.request.search(e,s)}function o(){return r.c.config.categoryPage||[]}function c(e){const t=o().find((t=>t.name===e.associatedFieldName));if(!t)return[];const i=t.values.map((e=>e.value));return"CATEGORY_PATH"===e.type?i[0]:i}const u=(e,t)=>{t=t.toUpperCase();const i=e.parentNode;return i&&i.nodeName?i.nodeName===t?i:u(i,t):void 0};function l(e,t,i,r,n){const s=Object.assign(document.createEvent("Event"),n);s.initEvent(e,t,i),r=r||document;try{r.dispatchEvent(s)}catch(e){console.error(e)}}function d(e,t){try{const i=e.attributes;for(let e=0;e= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var l="[object Object]";function d(e,t,i){this.helpers=e||{},this.partials=t||{},this.decorators=i||{},a.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}d.prototype={constructor:d,logger:c.default,log:c.default.log,registerHelper:function(e,t){if(n.toString.call(e)===l){if(t)throw new s.default("Arg not supported with multiple helpers");n.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(n.toString.call(e)===l)n.extend(this.partials,e);else{if(void 0===t)throw new s.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(n.toString.call(e)===l){if(t)throw new s.default("Arg not supported with multiple decorators");n.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){u.resetLoggedProperties()}};var p=c.default.log;t.log=p,t.createFrame=n.createFrame,t.logger=c.default},1501:function(e,t){"use strict";t.__esModule=!0;var i={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!i.helpers.scopedId(e)&&!e.depth}}};t.default=i,e.exports=t.default},4657:function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.parseWithoutProcessing=u,t.parse=function(e,t){var i=u(e,t);return new s.default(t).accept(i)};var n=r(i(2407)),s=r(i(7910)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(i(8693)),o=i(7553);t.parser=n.default;var c={};function u(e,t){return"Program"===e.type?e:(n.default.yy=c,c.locInfo=function(e){return new c.SourceLocation(t&&t.srcName,e)},n.default.parse(e))}o.extend(c,a)},2342:function(e,t,i){"use strict";t.__esModule=!0;var r=i(7553),n=void 0;try{}catch(e){}function s(e,t,i){if(r.isArray(e)){for(var n=[],s=0,a=e.length;s1)throw new n.default("Unsupported number of partial arguments: "+i.length,e);i.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):i.push({type:"PathExpression",parts:[],depth:0}));var r=e.name.original,s="SubExpression"===e.name.type;s&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var a=e.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,r,a),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){l(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,i){var r=e.path,n=r.parts[0],s=null!=t||null!=i;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",i),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",n,s)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,i){var r=this.setupFullMustacheParams(e,t,i),s=e.path,o=s.parts[0];if(this.options.knownHelpers[o])this.opcode("invokeKnownHelper",r.length,o);else{if(this.options.knownHelpersOnly)throw new n.default("You specified knownHelpersOnly, but used the unknown helper "+o,e);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",r.length,s.original,a.default.helpers.simpleId(s))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],i=a.default.helpers.scopedId(e),r=!e.depth&&!i&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,i):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,i=0,r=t.length;for(this.opcode("pushHash");i=0)return[t,n]}}}},8693:function(e,t,i){"use strict";t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,i){i=this.locInfo(i);for(var r=e?"@":"",n=[],a=0,o=0,c=t.length;o0)throw new s.default("Invalid path: "+r,{loc:i});".."===u&&a++}}return{type:"PathExpression",data:e,depth:a,parts:n,original:r,loc:i}},t.prepareMustache=function(e,t,i,r,n,s){var a=r.charAt(3)||r.charAt(2),o="{"!==a&&"&"!==a;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:e,params:t,hash:i,escaped:o,strip:n,loc:this.locInfo(s)}},t.prepareRawBlock=function(e,t,i,r){a(e,i),r=this.locInfo(r);var n={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:n,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},t.prepareBlock=function(e,t,i,r,n,o){r&&r.path&&a(e,r);var c=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,l=void 0;if(i){if(c)throw new s.default("Unexpected inverse block on decorator",i);i.chain&&(i.program.body[0].closeStrip=r.strip),l=i.strip,u=i.program}n&&(n=u,u=t,t=n);return{type:c?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:l,closeStrip:r&&r.strip,loc:this.locInfo(o)}},t.prepareProgram=function(e,t){if(!t&&e.length){var i=e[0].loc,r=e[e.length-1].loc;i&&r&&(t={source:i.source,start:{line:i.start.line,column:i.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,i,r){return a(e,i),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:i&&i.strip,loc:this.locInfo(r)}};var r,n=i(4541),s=(r=n)&&r.__esModule?r:{default:r};function a(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var i={loc:e.path.loc};throw new s.default(e.path.original+" doesn't match "+t,i)}}},7130:function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=i(5343),s=r(i(4541)),a=i(7553),o=r(i(2342));function c(e){this.value=e}function u(){}u.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=n.COMPILER_REVISION;return[e,n.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,i){return a.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:i?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,i,r){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var n=e.opcodes,a=void 0,o=void 0,c=void 0,u=void 0;for(c=0,u=n.length;c0&&(i+=", "+r.join(", "));var n=0;Object.keys(this.aliases).forEach((function(e){var r=t.aliases[e];r.children&&r.referenceCount>1&&(i+=", alias"+ ++n+"="+e,r.children[0]="alias"+n)})),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var a=this.mergeSource(i);return e?(s.push(a),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),") {\n ",a,"}"])},mergeSource:function(e){var t=this.environment.isSimple,i=!this.forceBuffer,r=void 0,n=void 0,s=void 0,a=void 0;return this.source.each((function(e){e.appendToBuffer?(s?e.prepend(" + "):s=e,a=e):(s&&(n?s.prepend("buffer += "):r=!0,a.add(";"),s=a=void 0),n=!0,t||(i=!1))})),i?s?(s.prepend("return "),a.add(";")):n||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),s?(s.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var r=this.popStack();i.splice(1,0,r),this.push(this.source.functionCall(t,"call",i))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var i=this.topStack();t.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,i,r){var n=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[n++])),this.resolvePath("context",e,n,t,i)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,i)},resolvePath:function(e,t,i,r,n){var s=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,i,r,n){var s=t.popStack(),a=i.length;e&&a--;for(;rthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,i=e.length;t2&&_.push("'"+this.terminals_[b]+"'");w=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(w,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:l,expected:_})}}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+p);switch(m[0]){case 1:i.push(p),r.push(this.lexer.yytext),n.push(this.lexer.yylloc),i.push(m[1]),p=null,h?(p=h,h=null):(c=this.lexer.yyleng,a=this.lexer.yytext,o=this.lexer.yylineno,l=this.lexer.yylloc,u>0&&u--);break;case 2:if(v=this.productions_[m[1]][1],k.$=r[r.length-v],k._$={first_line:n[n.length-(v||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(v||1)].first_column,last_column:n[n.length-1].last_column},d&&(k._$.range=[n[n.length-(v||1)].range[0],n[n.length-1].range[1]]),void 0!==(g=this.performAction.call(k,a,c,o,this.yy,m[1],r,n)))return g;v&&(i=i.slice(0,-1*v*2),r=r.slice(0,-1*v),n=n.slice(0,-1*v)),i.push(this.productions_[m[1]][0]),r.push(k.$),n.push(k._$),y=s[i[i.length-2]][i[i.length-1]],i.push(y);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===r.length?this.yylloc.first_column:0)+r[r.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,i,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)||(t=i,r=a,this.options.flex));a++);return t?((n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,s[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,i,r){function n(e,i){return t.yytext=t.yytext.substring(e,t.yyleng-i+e)}switch(i){case 0:if("\\\\"===t.yytext.slice(-2)?(n(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(n(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(n(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=n(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=n(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return e}();function i(){this.yy={}}return e.lexer=t,i.prototype=e,e.Parser=i,new i}();t.default=i,e.exports=t.default},4237:function(e,t,i){"use strict";t.__esModule=!0;var r,n=i(4541),s=(r=n)&&r.__esModule?r:{default:r};function a(){this.parents=[]}function o(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function c(e){o.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function u(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}a.prototype={constructor:a,mutating:!1,acceptKey:function(e,t){var i=this.accept(e[t]);if(this.mutating){if(i&&!a.prototype[i.type])throw new s.default('Unexpected node type "'+i.type+'" found when accepting '+t+" on "+e.type);e[t]=i}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new s.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,i=e.length;t0?(i.ids&&(i.ids=[i.name]),e.helpers.each(t,i)):n(this);if(i.data&&i.ids){var a=r.createFrame(i.data);a.contextPath=r.appendContextPath(i.data.contextPath,i.name),i={data:a}}return s(t,i)}))},e.exports=t.default},1032:function(e,t,i){"use strict";t.__esModule=!0;var r,n=i(7553),s=i(4541),a=(r=s)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new a.default("Must pass iterator to #each");var i,r=t.fn,s=t.inverse,o=0,c="",u=void 0,l=void 0;function d(t,i,s){u&&(u.key=t,u.index=i,u.first=0===i,u.last=!!s,l&&(u.contextPath=l+t)),c+=r(e[t],{data:u,blockParams:n.blockParams([e[t],t],[l+t,null])})}if(t.data&&t.ids&&(l=n.appendContextPath(t.data.contextPath,t.ids[0])+"."),n.isFunction(e)&&(e=e.call(this)),t.data&&(u=n.createFrame(t.data)),e&&"object"==typeof e)if(n.isArray(e))for(var p=e.length;o=0?t:parseInt(e,10)}return e},log:function(e){if(e=n.lookupLevel(e),"undefined"!=typeof console&&n.lookupLevel(n.level)<=e){var t=n.methodMap[e];console[t]||(t="log");for(var i=arguments.length,r=Array(i>1?i-1:0),s=1;s=o.LAST_COMPATIBLE_COMPILER_REVISION&&t<=o.COMPILER_REVISION)return;if(t":">",'"':""","'":"'","`":"`","=":"="},r=/[&<>"'`=]/g,n=/[&<>"'`=]/;function s(e){return i[e]}function a(e){for(var t=1;t.ffw-menu-items{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation[layout=horizontal]>.ffw-menu-items{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}ff-navigation .ffw-navigation-label{display:none}ff-navigation #navigation-menu{display:none;border-bottom:1px solid #000;cursor:pointer;padding:5px;background-color:#b9ecff;-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%}ff-navigation[mobile=true]>.ffw-navigation-label{display:block}ff-navigation[mobile=true]>#navigation-menu:checked+label+.ffw-menu-items{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important}ff-navigation[mobile=true]>.ffw-menu-items{display:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation[mobile=true]{-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important;width:100%}ff-navigation-item{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer}ff-navigation-item .ffw-item-caption{width:100%}ff-navigation-item .ffw-container-hidden{display:none!important}ff-navigation-item .ffw-item-container{display:none;-webkit-transition:all .1s linear;transition:all .1s linear;-webkit-transition-delay:.3s;transition-delay:.3s;position:absolute;z-index:1;background-color:#fff}ff-navigation-item[direction=down][flyout=true]>.ffw-item-container{top:100%}ff-navigation-item[direction=down]>.ffw-item-container{top:100%;left:0}ff-navigation-item[flyout=false][selected]>.ffw-item-container{top:0;z-index:0;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation-item[flyout=false]>.ffw-item-container{display:none}ff-navigation-item[flyout=false][direction=down][selected]>.ffw-item-container{top:0}ff-navigation-item[flyout=false]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation-item[flyout=false][selected] .ffw-navigation-link{display:none!important;top:0}ff-navigation-item[flyout=false] .ffw-navigation-link{display:none!important}ff-navigation-item[flyout=true][direction=right]>.ffw-item-container{top:0;left:100%}ff-navigation-item[flyout=true][direction=left]>.ffw-item-container{top:0;right:100%}ff-navigation-item[flyout=true]:hover>.ffw-item-container:not(:empty){display:inline-block}ff-asn{outline:none;transition:opacity .6s;display:block}ff-asn[align=horizontal]{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}ff-asn-group{opacity:0;transition:opacity .4s;outline:none;display:block;min-width:180px;max-width:220px}ff-asn-group[align=horizontal] #wrapper{position:absolute;width:100%}ff-asn-group .ffw-asn-group-container{position:relative}ff-asn-group .ffw-wrapper{position:relative;transition-duration:.35s}ff-asn-group-element,ff-asn-group-slider{display:block;outline:none}ff-asn-group-slider{opacity:0;transition:opacity .4s;min-width:180px;max-width:220px}ff-asn[align=horizontal] ff-asn-group-slider .ffw-wrapper{position:absolute;width:100%}ff-asn-group-slider .ffw-container{position:relative}ff-asn-group-slider .ffw-wrapper{position:relative;transition-duration:.4s}ff-slider-control{display:block;opacity:0;transition:opacity .8s;padding:10px 0}ff-slider-control .ffw-slider-control-default .ffw-slider-control-inputs{display:flex;justify-content:space-around;align-items:center}ff-slider-control .ffw-slider-control-default .ffw-input-container{position:relative;display:flex;align-items:center;border:1px solid}ff-slider-control .ffw-slider-control-default input{width:60px;border:0;padding:4px 1em 4px .5em;text-align:center}ff-slider-control .ffw-slider-control-default [data-unit]{position:absolute;right:4px}ff-slider-control .ffw-slider-control-default .ffw-slider-control-line{display:inline-block;width:20px;height:2px;background-color:#000}ff-slider-control .ffw-sliderSection{margin-top:10px}ff-slider{display:block;z-index:-1001;pointer-events:none}ff-slider .ffw-slider-container{top:0;position:relative;pointer-events:none}ff-slider .ffw-triangle{pointer-events:auto;user-select:none;position:absolute;z-index:1000;opacity:.5;cursor:pointer;touch-action:none;border-style:solid;border-color:transparent transparent #89bdff;top:50%;transition:top .2s ease-out,left .2s ease-out,transform .2s ease-out;transform:translate(-50%,-50%) scale(.25)}ff-slider .ffw-triangle.ffw-active{transition:top .2s ease-in,left .2s ease-in,transform .2s ease-in;transform:translateX(-100%) scale(1)}ff-slider .ffw-triangle.ffw-no-transition{transition:none}ff-slider .ffw-line{pointer-events:auto;z-index:999;height:1px;background-color:#000;background-clip:padding-box;border-top:25px solid transparent;border-bottom:25px solid transparent}ff-slider .ffw-line,ff-slider .ffw-selected-range{top:50%;position:absolute;transform:translateY(-50%)}ff-slider .ffw-selected-range{z-index:1000;height:2px;background-color:#003ccb}ff-slider .ffw-slider-button{width:5px;height:5px;border:1px solid #000;position:absolute;top:50%;z-index:1003;pointer-events:auto;cursor:pointer;touch-action:none}ff-slider .ffw-slider-button-left,ff-slider .ffw-slider-button-right{transform:translateY(-50%)}ff-asn-remove-all-filters{display:inline-block}ff-compare{display:block}ff-breadcrumb-trail{display:inline}ff-breadcrumb-trail-item{transition:opacity .8s;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ffw-hidden{display:none!important}"},3953:function(e,t,i){var r=i(7260);"string"==typeof r&&(r=[[e.id,r,""]]);var n={insertAt:"top",hmr:!0,transform:undefined,insertInto:void 0};i(6723)(r,n);r.locals&&(e.exports=r.locals)},6723:function(e,t,i){var r,n,s={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===n&&(n=r.apply(this,arguments)),n}),o=function(e,t){return t?t.querySelector(e):document.querySelector(e)},c=function(e){var t={};return function(e,i){if("function"==typeof e)return e();if(void 0===t[e]){var r=o.call(this,e,i);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),u=null,l=0,d=[],p=i(8188);function h(e,t){for(var i=0;i=0&&d.splice(t,1)}function b(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return i.nc}();r&&(e.attrs.nonce=r)}return v(t,e.attrs),m(e,t),t}function v(e,t){Object.keys(t).forEach((function(i){e.setAttribute(i,t[i])}))}function y(e,t){var i,r,n,s;if(t.transform&&e.css){if(!(s="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=s}if(t.singleton){var a=l++;i=u||(u=b(t)),r=k.bind(null,i,a,!1),n=k.bind(null,i,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",v(t,e.attrs),m(e,t),t}(t),r=C.bind(null,i,t),n=function(){g(i),i.href&&URL.revokeObjectURL(i.href)}):(i=b(t),r=w.bind(null,i),n=function(){g(i)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else n()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var i=f(e,t);return h(i,t),function(e){for(var r=[],n=0;ne.parentNode.removeChild(e)))}const a=e=>{let t=11===e.nodeType?0:1;const i=document.createTreeWalker(e,133,null,!1);for(;i.nextNode();)t++;return t},o=function(e){for(let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1)+1;t"".concat(e,"--").concat(t);let h=!0;void 0===window.ShadyCSS?h=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),h=!1);const f=e=>t=>{const i=p(t.type,e);let r=u.r.get(i);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},u.r.set(i,r));let s=r.stringsArray.get(t.strings);if(void 0!==s)return s;const a=t.strings.join(n.Jw);if(s=r.keyString.get(a),void 0===s){const i=t.getTemplateElement();h&&window.ShadyCSS.prepareTemplateDom(i,e),s=new n.YS(t,i),r.keyString.set(a,s)}return r.stringsArray.set(t.strings,s),s},m=["html","svg"],g=new Set,b=(e,t,i)=>{g.add(e);const r=i?i.element:document.createElement("template"),n=t.querySelectorAll("style"),{length:c}=n;if(0===c)return void window.ShadyCSS.prepareTemplateStyles(r,e);const l=document.createElement("style");for(let e=0;e{m.forEach((t=>{const i=u.r.get(p(t,e));void 0!==i&&i.keyString.forEach((e=>{const{element:{content:t}}=e,i=new Set;Array.from(t.querySelectorAll("style")).forEach((e=>{i.add(e)})),s(e,i)}))}))})(e);const d=r.content;i?function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const{element:{content:r},parts:n}=e;if(null==i)return void r.appendChild(t);const s=document.createTreeWalker(r,133,null,!1);let c=o(n),u=0,l=-1;for(;s.nextNode();)for(l++,s.currentNode===i&&(u=a(t),i.parentNode.insertBefore(t,i));-1!==c&&n[c].index===l;){if(u>0){for(;-1!==c;)n[c].index+=u,c=o(n,c);return}c=o(n,c)}}(i,l,d.firstChild):d.insertBefore(l,d.firstChild),window.ShadyCSS.prepareTemplateStyles(r,e);const h=d.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==h)t.insertBefore(h.cloneNode(!0),t.firstChild);else if(i){d.insertBefore(l,d.firstChild);const e=new Set;e.add(l),s(i,e)}};window.JSCompiler_renameProperty=(e,t)=>e;const v={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},y=(e,t)=>t!==e&&(t==t||e==e),_={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:y},S="finalized";class k extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach(((t,i)=>{const r=this._attributeNameForProperty(i,t);void 0!==r&&(this._attributeToPropertyMap.set(r,i),e.push(r))})),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach(((e,t)=>this._classProperties.set(t,e)))}}static createProperty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_;if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const i="symbol"==typeof e?Symbol():"__".concat(e),r=this.getPropertyDescriptor(e,i,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(r){const n=this[e];this[t]=r,this.requestUpdateInternal(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||_}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty(S)||e.finalize(),this[S]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const i of t)this.createProperty(i,e[i])}}static _attributeNameForProperty(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:y)(e,t)}static _propertyValueFromAttribute(e,t){const i=t.type,r=t.converter||v,n="function"==typeof r?r:r.fromAttribute;return n?n(e,i):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const i=t.type,r=t.converter;return(r&&r.toAttribute||v.toAttribute)(e,i)}initialize(){this._updateState=0,this._updatePromise=new Promise((e=>this._enableUpdatingResolver=e)),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach(((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}}))}_applyInstanceProperties(){this._instanceProperties.forEach(((e,t)=>this[t]=e)),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,i){t!==i&&this._attributeToProperty(e,i)}_propertyToAttribute(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;const r=this.constructor,n=r._attributeNameForProperty(e,i);if(void 0!==n){const e=r._propertyValueToAttribute(t,i);if(void 0===e)return;this._updateState=8|this._updateState,null==e?this.removeAttribute(n):this.setAttribute(n,e),this._updateState=-9&this._updateState}}_attributeToProperty(e,t){if(8&this._updateState)return;const i=this.constructor,r=i._attributeToPropertyMap.get(e);if(void 0!==r){const e=i.getPropertyOptions(r);this._updateState=16|this._updateState,this[r]=i._propertyValueFromAttribute(t,e),this._updateState=-17&this._updateState}}requestUpdateInternal(e,t,i){let r=!0;if(void 0!==e){const n=this.constructor;i=i||n.getPropertyOptions(e),n._valueHasChanged(this[e],t,i.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==i.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,i))):r=!1}!this._hasRequestedUpdate&&r&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(e,t){return this.requestUpdateInternal(e,t),this.updateComplete}async _enqueueUpdate(){this._updateState=4|this._updateState;try{await this._updatePromise}catch(e){}const e=this.performUpdate();return null!=e&&await e,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{e=this.shouldUpdate(t),e?this.update(t):this._markUpdated()}catch(t){throw e=!1,this._markUpdated(),t}e&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach(((e,t)=>this._propertyToAttribute(t,this[t],e))),this._reflectingProperties=void 0),this._markUpdated()}updated(e){}firstUpdated(e){}}k[S]=!0;const w=Element.prototype;w.msMatchesSelector||w.webkitMatchesSelector;const C=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,P=Symbol();class x{constructor(e,t){if(t!==P)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(C?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}(window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");const E={};class I extends k{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const e=this.getStyles();if(Array.isArray(e)){const t=(e,i)=>e.reduceRight(((e,i)=>Array.isArray(i)?t(i,e):(e.add(i),e)),i),i=t(e,new Set),r=[];i.forEach((e=>r.unshift(e))),this._styles=r}else this._styles=void 0===e?[]:[e];this._styles=this._styles.map((e=>{if(e instanceof CSSStyleSheet&&!C){const t=Array.prototype.slice.call(e.cssRules).reduce(((e,t)=>e+t.cssText),"");return new x(String(t),P)}return e}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?C?this.renderRoot.adoptedStyleSheets=e.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map((e=>e.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){const t=this.render();super.update(e),t!==E&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)})))}render(){return E}}I.finalized=!0,I.render=(e,t,i)=>{if(!i||"object"!=typeof i||!i.scopeName)throw new Error("The `scopeName` option is required.");const n=i.scopeName,s=c.L.has(t),a=h&&11===t.nodeType&&!!t.host,o=a&&!g.has(n),u=o?document.createDocumentFragment():t;if((0,c.s)(e,u,Object.assign({templateFactory:f(n)},i)),o){const e=c.L.get(u);c.L.delete(u);const i=e.value instanceof l.R?e.value.template:void 0;b(n,u,i),(0,r.r4)(t,t.firstChild),t.appendChild(u),c.L.set(t,e)}!s&&a&&window.ShadyCSS.styleElement(t.host)},I.shadowRootOptions={mode:"open"}},1448:function(e,t,i){"use strict";i.d(t,{$:function(){return a}});var r=i(9890);class n{constructor(e){this.classes=new Set,this.changed=!1,this.element=e;const t=(e.getAttribute("class")||"").split(/\s+/);for(const e of t)this.classes.add(e)}add(e){this.classes.add(e),this.changed=!0}remove(e){this.classes.delete(e),this.changed=!0}commit(){if(this.changed){let e="";this.classes.forEach((t=>e+=t+" ")),this.element.setAttribute("class",e)}}}const s=new WeakMap,a=(0,r.XM)((e=>t=>{if(!(t instanceof r._l)||t instanceof r.sL||"class"!==t.committer.name||t.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");const{committer:i}=t,{element:a}=i;let o=s.get(t);void 0===o&&(a.setAttribute("class",i.strings.join(" ")),s.set(t,o=new Set));const c=a.classList||new n(a);o.forEach((t=>{t in e||(c.remove(t),o.delete(t))}));for(const t in e){const i=e[t];i!=o.has(t)&&(i?(c.add(t),o.add(t)):(c.remove(t),o.delete(t)))}"function"==typeof c.commit&&c.commit()}))},8474:function(e,t,i){"use strict";i.d(t,{l:function(){return s}});var r=i(9890);const n=new WeakMap,s=(0,r.XM)(((e,t)=>i=>{const r=n.get(i);if(Array.isArray(e)){if(Array.isArray(r)&&r.length===e.length&&e.every(((e,t)=>e===r[t])))return}else if(r===e&&(void 0!==e||n.has(i)))return;i.setValue(t()),n.set(i,Array.isArray(e)?Array.from(e):e)}))},6342:function(e,t,i){"use strict";i.d(t,{r:function(){return d}});var r=i(9890);const n=(e,t)=>{const i=e.startNode.parentNode,n=void 0===t?e.endNode:t.startNode,s=i.insertBefore((0,r.IW)(),n);i.insertBefore((0,r.IW)(),n);const a=new r.nt(e.options);return a.insertAfterNode(s),a},s=(e,t)=>(e.setValue(t),e.commit(),e),a=(e,t,i)=>{const n=e.startNode.parentNode,s=i?i.startNode:e.endNode,a=t.endNode.nextSibling;a!==s&&(0,r.V)(n,t.startNode,a,s)},o=e=>{(0,r.r4)(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},c=(e,t,i)=>{const r=new Map;for(let n=t;n<=i;n++)r.set(e[n],n);return r},u=new WeakMap,l=new WeakMap,d=(0,r.XM)(((e,t,i)=>{let d;return void 0===i?i=t:void 0!==t&&(d=t),t=>{if(!(t instanceof r.nt))throw new Error("repeat can only be used in text bindings");const p=u.get(t)||[],h=l.get(t)||[],f=[],m=[],g=[];let b,v,y=0;for(const t of e)g[y]=d?d(t,y):y,m[y]=i(t,y),y++;let _=0,S=p.length-1,k=0,w=m.length-1;for(;_<=S&&k<=w;)if(null===p[_])_++;else if(null===p[S])S--;else if(h[_]===g[k])f[k]=s(p[_],m[k]),_++,k++;else if(h[S]===g[w])f[w]=s(p[S],m[w]),S--,w--;else if(h[_]===g[w])f[w]=s(p[_],m[w]),a(t,p[_],f[w+1]),_++,w--;else if(h[S]===g[k])f[k]=s(p[S],m[k]),a(t,p[S],p[_]),S--,k++;else if(void 0===b&&(b=c(g,k,w),v=c(h,_,S)),b.has(h[_]))if(b.has(h[S])){const e=v.get(g[k]),i=void 0!==e?p[e]:null;if(null===i){const e=n(t,p[_]);s(e,m[k]),f[k]=e}else f[k]=s(i,m[k]),a(t,i,p[_]),p[e]=null;k++}else o(p[S]),S--;else o(p[_]),_++;for(;k<=w;){const e=n(t,f[w+1]);s(e,m[k]),f[k++]=e}for(;_<=S;){const e=p[_++];null!==e&&o(e)}u.set(t,f),l.set(t,g)}}))},6228:function(e,t,i){"use strict";i.d(t,{X:function(){return n},w:function(){return s}});const r=new WeakMap,n=e=>function(){const t=e(...arguments);return r.set(t,!0),t},s=e=>"function"==typeof e&&r.has(e)},6913:function(e,t,i){"use strict";i.d(t,{V:function(){return n},eC:function(){return r},r4:function(){return s}});const r="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,n=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(;t!==i;){const i=t.nextSibling;e.insertBefore(t,r),t=i}},s=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(;t!==i;){const i=t.nextSibling;e.removeChild(t),t=i}}},9072:function(e,t,i){"use strict";i.d(t,{J:function(){return r},L:function(){return n}});const r={},n={}},7552:function(e,t,i){"use strict";i.d(t,{JG:function(){return f},K1:function(){return v},QG:function(){return d},_l:function(){return p},m:function(){return m},nt:function(){return h},sL:function(){return g}});var r=i(6228),n=i(6913),s=i(9072),a=i(8477),o=i(8729),c=i(4695);const u=e=>null===e||!("object"==typeof e||"function"==typeof e),l=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class d{constructor(e,t,i){this.dirty=!0,this.element=e,this.name=t,this.strings=i,this.parts=[];for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:this.startNode;(0,n.r4)(this.startNode.parentNode,e.nextSibling,this.endNode)}}class f{constructor(e,t,i){if(this.value=void 0,this.__pendingValue=void 0,2!==i.length||""!==i[0]||""!==i[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=i}setValue(e){this.__pendingValue=e}commit(){for(;(0,r.w)(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=s.J,e(this)}if(this.__pendingValue===s.J)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=s.J}}class m extends d{constructor(e,t,i){super(e,t,i),this.single=2===i.length&&""===i[0]&&""===i[1]}_createPart(){return new g(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class g extends p{}let b=!1;(()=>{try{const e={get capture(){return b=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class v{constructor(e,t,i){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=i,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;(0,r.w)(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=s.J,e(this)}if(this.__pendingValue===s.J)return;const e=this.__pendingValue,t=this.value,i=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),n=null!=e&&(null==t||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),n&&(this.__options=y(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=s.J}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const y=e=>e&&(b?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)},606:function(e,t,i){"use strict";i.d(t,{L:function(){return a},s:function(){return o}});var r=i(6913),n=i(7552),s=i(4283);const a=new WeakMap,o=(e,t,i)=>{let o=a.get(t);void 0===o&&((0,r.r4)(t,t.firstChild),a.set(t,o=new n.nt(Object.assign({templateFactory:s.t},i))),o.appendInto(t)),o.setValue(e),o.commit()}},4283:function(e,t,i){"use strict";i.d(t,{r:function(){return s},t:function(){return n}});var r=i(4695);function n(e){let t=s.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},s.set(e.type,t));let i=t.stringsArray.get(e.strings);if(void 0!==i)return i;const n=e.strings.join(r.Jw);return i=t.keyString.get(n),void 0===i&&(i=new r.YS(e,e.getTemplateElement()),t.keyString.set(n,i)),t.stringsArray.set(e.strings,i),i}const s=new Map},8477:function(e,t,i){"use strict";i.d(t,{R:function(){return s}});var r=i(6913),n=i(4695);class s{constructor(e,t,i){this.__parts=[],this.template=e,this.processor=t,this.options=i}update(e){let t=0;for(const i of this.__parts)void 0!==i&&i.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=r.eC?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=[],i=this.template.parts,s=document.createTreeWalker(e,133,null,!1);let a,o=0,c=0,u=s.nextNode();for(;oe}),s=" ".concat(r.Jw," ");class a{constructor(e,t,i,r){this.strings=e,this.values=t,this.type=i,this.processor=r}getHTML(){const e=this.strings.length-1;let t="",i=!1;for(let n=0;n-1||i)&&-1===e.indexOf("--\x3e",a+1);const o=r.W5.exec(e);t+=null===o?e+(i?s:r.N):e.substr(0,o.index)+o[1]+o[2]+r.$E+o[3]+r.Jw}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");let t=this.getHTML();return void 0!==n&&(t=n.createHTML(t)),e.innerHTML=t,e}}},4695:function(e,t,i){"use strict";i.d(t,{$E:function(){return a},IW:function(){return l},Jw:function(){return r},N:function(){return n},W5:function(){return d},YS:function(){return o},pC:function(){return u}});const r="{{lit-".concat(String(Math.random()).slice(2),"}}"),n="\x3c!--".concat(r,"--\x3e"),s=new RegExp("".concat(r,"|").concat(n)),a="$lit$";class o{constructor(e,t){this.parts=[],this.element=t;const i=[],n=[],o=document.createTreeWalker(t.content,133,null,!1);let u=0,p=-1,h=0;const{strings:f,values:{length:m}}=e;for(;h0;){const t=f[h],i=d.exec(t)[2],r=i.toLowerCase()+a,n=e.getAttribute(r);e.removeAttribute(r);const o=n.split(s);this.parts.push({type:"attribute",index:p,name:i,strings:o}),h+=o.length-1}}"TEMPLATE"===e.tagName&&(n.push(e),o.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(r)>=0){const r=e.parentNode,n=t.split(s),o=n.length-1;for(let t=0;t{const i=e.length-t.length;return i>=0&&e.slice(i)===t},u=e=>-1!==e.index,l=()=>document.createComment(""),d=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/},9890:function(e,t,i){"use strict";i.d(t,{_l:function(){return r._l},nt:function(){return r.nt},sL:function(){return r.sL},js:function(){return s.j},IW:function(){return u.IW},XM:function(){return a.X},dy:function(){return l},r4:function(){return o.r4},sY:function(){return c.s},V:function(){return o.V}});var r=i(7552);const n=new class{handleAttributeExpressions(e,t,i,n){const s=t[0];if("."===s){return new r.m(e,t.slice(1),i).parts}if("@"===s)return[new r.K1(e,t.slice(1),n.eventContext)];if("?"===s)return[new r.JG(e,t.slice(1),i)];return new r.QG(e,t,i).parts}handleTextExpression(e){return new r.nt(e)}};var s=i(8729),a=i(6228),o=i(6913),c=(i(9072),i(606)),u=(i(4283),i(8477),i(4695));"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const l=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;rnew Promise((e=>{__webpack_require__(8153),__webpack_require__(177),__webpack_require__(814),__webpack_require__(961),__webpack_require__(6480),__webpack_require__(410),__webpack_require__(5430),__webpack_require__(8358),__webpack_require__(5663),__webpack_require__(2132),__webpack_require__(3458),__webpack_require__(8122),__webpack_require__(6731),__webpack_require__(825),__webpack_require__(2997),__webpack_require__(5220),__webpack_require__(1136),__webpack_require__(8616),__webpack_require__(6803),__webpack_require__(5608),__webpack_require__(4700),__webpack_require__(4849),__webpack_require__(5730),__webpack_require__(1650),__webpack_require__(2969),__webpack_require__(4487),__webpack_require__(1616),__webpack_require__(3358),__webpack_require__(5841),__webpack_require__(3742),__webpack_require__(4410),__webpack_require__(1254),__webpack_require__(6637),__webpack_require__(4675),e()}))))}()})(); +(function(){var __webpack_modules__={9707:function(e,t,i){"use strict";function r(e){return t=>{if("function"!=typeof t)throw Error("Parameter must be a function.");return e(t)}}i.d(t,{z:function(){return r}})},8675:function(e,t,i){"use strict";i.r(t),i.d(t,{internalRouting:function(){return s},publicRouting:function(){return a}});var r=i(9707),n=i(2207);const s={requestNavigate:(e,t)=>{var i,r;e&&t||console.warn("requestNavigate did not receive all parameters",{url:e,origin:t}),!1!==(null===(i=o.navigateListener)||void 0===i?void 0:i.call(o,e,t))&&(null!==(r=n.u.getConfig().appConfig)&&void 0!==r&&r.sandboxMode||(window.location.href=e))},invokeUrlParamOptionsListener:()=>{var e;return null===(e=o.urlParamOptionsListener)||void 0===e?void 0:e.call(o)},sandboxed:{setPopstateListener:e=>{o.sandboxed.historyReadListener=e},invokeHistoryWriteListener:e=>{var t,i;return null===(t=(i=o.sandboxed).historyWriteListener)||void 0===t?void 0:t.call(i,e)},requestSessionData:()=>{var e,t;return null===(e=(t=o.sandboxed).sessionReadListener)||void 0===e?void 0:e.call(t)},broadcastSessionData:e=>{var t,i;return null===(t=(i=o.sandboxed).sessionWriteListener)||void 0===t?void 0:t.call(i,e)}}},a=Object.freeze({setNavigateListener:(0,r.z)((e=>{o.navigateListener=e})),setUrlParamOptionsListener:(0,r.z)((e=>{o.urlParamOptionsListener=e})),sandboxed:Object.freeze({restoreHistory:e=>{var t;if(null!==(t=n.u.getConfig().appConfig)&&void 0!==t&&t.sandboxMode){if(!e)throw Error("'payload' is required.");o.sandboxed.historyReadListener(e)}else console.warn("'restoreHistory' is only available in sandbox mode.")},setHistoryWriteListener:(0,r.z)((e=>{o.sandboxed.historyWriteListener=e})),setSessionReadWriteListeners:e=>{const{read:t,write:i}=e;if("function"!=typeof t)throw Error("'read' listener must be a function. Was: ".concat(typeof t));if("function"!=typeof i)throw Error("'write' listener must be a function. Was: ".concat(typeof i));o.sandboxed.sessionReadListener=t,o.sandboxed.sessionWriteListener=i}})}),o={navigateListener:void 0,urlParamOptionsListener:void 0,sandboxed:{historyReadListener:void 0,historyWriteListener:void 0,sessionReadListener:void 0,sessionWriteListener:void 0}}},684:function(e,t){let i,r,n;t.sysConfig={get autoFetch(){return i()},get debug(){return r()},get sandboxMode(){return n()}},t.registerGetAutoFetch=e=>()=>{i=e},t.registerGetDebug=e=>()=>{r=e},t.registerGetSandboxMode=e=>()=>{n=e}},1573:function(e,t,i){"use strict";var r=i(684);e.exports={sysConfig:r.sysConfig,registerGetAutoFetch:r.registerGetAutoFetch,registerGetDebug:r.registerGetDebug,registerGetSandboxMode:r.registerGetSandboxMode}},6851:function(e,t){t.mergeFFIMaybeRecord=e=>t=>void 0===e?t:void 0===t?e:Object.assign({},t,e),t.configImpl=e=>({get val(){return e()}}),t.merge=e=>t=>Object.assign({},t,e),t.toWK=e=>e,t.toWKUnit=()=>{},t.toWKInternal=e=>e,t.jsonClone=e=>JSON.parse(JSON.stringify(e))},1287:function(e,t,i){"use strict";var r=i(6851),n=i(1573),s=i(3139),a=i(8850),o=i(6535),c=i(4884),u=i(4269),l=i(8164),d=i(7313),p=i(8583),h=i(7860),f=i(8455),m=i(2024),g=i(416),b=function(e){return e},v=function(e){return e},y={validateSync:function(e){return h.validateObjectSyncImpl("FFParams")(e)([])([h.nonEmptyString("purchaserId"),h.nonEmptyString("sid"),h.nonEmptyString("userId")])}},_={validateSync:function(e){return h.validateObjectSyncImpl("AppConfig")(e)([])([h.nonEmptyString("autoFetch"),h.array("categoryPage"),h.arrayNonEmptyString("dataBindingTags"),h.boolean("debug"),h.object("fieldRoles"),h.object("formatting"),h.boolean("sandboxMode")])}},S={validateSync:function(e){return h.validateObjectSyncImpl("Config")(e)(["ff"])([h.object("ff"),h.object("ffParams"),h.object("appConfig")])}},k={requireArgSync:function(e){return function(t){return h.requireArgSyncImpl(e)(h.object(t))}}},C={requireArgSync:function(e){return function(t){return h.requireArgSyncImpl(e)(h.object(t))}}},w={requireArgSync:function(e){return function(t){return h.requireArgSyncImpl(e)(h.object(t))}}},P={ff:{apiKey:"",channel:"",url:""},ffParams:m[void 0],appConfig:s.pure(m.applicativeFFIMaybe)({autoFetch:s.pure(m.applicativeFFIMaybe)("SSR_ONLY"),categoryPage:m[void 0],dataBindingTags:m[void 0],debug:s.pure(m.applicativeFFIMaybe)(!1),fieldRoles:m[void 0],formatting:m[void 0],sandboxMode:s.pure(m.applicativeFFIMaybe)(!1)})},x=p.unsafePerformEffect(d.new(P)),E=r.configImpl((function(e){return p.unsafePerformEffect(c.mapFlipped(l.functorEffect)(d.read(x))((function(e){return e})))})),I=f.merge,F=f.merge;e.exports={ConfigFFParams:b,config:E,getConfig:function(e){return r.toWKInternal(E.val)},getConfigClone:function(e){return r.toWK(r.jsonClone(E.val))},init:function(e){var t=function(e){return function(t){return function(i){return m.fromFFIMaybe(m.fromFFIMaybe(e)(a.bind(m.bindFFIMaybe)(P.appConfig)(t)))(a.bind(m.bindFFIMaybe)(E.val.appConfig)(t))}}};return r.toWKInternal(p.unsafePerformEffect((function(){var i,s=a.bindFlipped(l.bindEffect)(g.validateSync(S))(g.requireArgSync(w)(e)("options"))(),o=(i=s,function(e){var t=c.mapFlipped(m.functorFFIMaybe)(e.ffParams)((function(e){return e})),n=c.mapFlipped(m.functorFFIMaybe)(i.ffParams)((function(e){return e})),s=c.map(m.functorFFIMaybe)(b)(r.mergeFFIMaybeRecord(n)(t)),a=r.merge(i.ff)(e.ff),o=c.mapFlipped(m.functorFFIMaybe)(e.appConfig)((function(e){return e})),u=c.mapFlipped(m.functorFFIMaybe)(i.appConfig)((function(e){return e}));return{ff:a,ffParams:s,appConfig:c.map(m.functorFFIMaybe)(v)(r.mergeFFIMaybeRecord(u)(o))}})(P);d.write(o)(x)(),n.registerGetAutoFetch(t("")((function(e){return e.autoFetch})))(),n.registerGetDebug(t(!1)((function(e){return e.debug})))(),n.registerGetSandboxMode(t(!1)((function(e){return e.sandboxMode})))();return u.unit})))},setAppConfig:function(e){return r.toWKUnit(p.unsafePerformEffect((function(){var t=a.bindFlipped(l.bindEffect)(g.validateSync(_))(g.requireArgSync(C)(e)("appConfig"))();return d.modify_((function(e){var i=c.mapFlipped(m.functorFFIMaybe)(e.appConfig)((function(e){return e})),n=c.map(m.functorFFIMaybe)(v)(r.mergeFFIMaybeRecord(s.pure(m.applicativeFFIMaybe)(t))(i));return r.merge({appConfig:n})(e)}))(x)()})))},setFFParams:function(e){return r.toWKUnit(p.unsafePerformEffect((function(){var t=a.bindFlipped(l.bindEffect)(g.validateSync(y))(g.requireArgSync(k)(e)("ffParams"))();return d.modify_((function(e){var i=c.mapFlipped(m.functorFFIMaybe)(e.ffParams)((function(e){return e})),n=c.map(m.functorFFIMaybe)(b)(r.mergeFFIMaybeRecord(s.pure(m.applicativeFFIMaybe)(t))(i));return r.merge({ffParams:n})(e)}))(x)()})))},setFieldRoles:function(e){return d.modify_((function(t){var i=c.mapFlipped(m.functorFFIMaybe)(t.appConfig)((function(e){return e})),n=c.map(m.functorFFIMaybe)(v)(r.mergeFFIMaybeRecord(i)(s.pure(m.applicativeFFIMaybe)({fieldRoles:s.pure(m.applicativeFFIMaybe)(e)})));return r.merge({appConfig:n})(t)}))(x)},setPurchaserId:function(e){var t=a.bind(m.bindFFIMaybe)(E.val.ffParams)((function(e){return e.purchaserId}));return o.eq(m.eqFFIMaybe)(e.purchaserId)(m[void 0])&&o.notEq(m.eqFFIMaybe)(t)(m[void 0])?s.pure(l.applicativeEffect)(F({purchaserId:t})(e)):s.pure(l.applicativeEffect)(e)},setUserId:function(e){var t=a.bind(m.bindFFIMaybe)(E.val.ffParams)((function(e){return e.userId}));return o.eq(m.eqFFIMaybe)(e.userId)(m[void 0])&&o.notEq(m.eqFFIMaybe)(t)(m[void 0])?s.pure(l.applicativeEffect)(I({userId:t})(e)):s.pure(l.applicativeEffect)(e)},requireArgSyncConfig:w,requireArgSyncConfigFFPar:k,requireArgSyncConfigAppCo:C,validateSyncConfig:S,validateSyncConfigFFParam:y,validateSyncConfigAppConf:_}},3139:function(e,t,i){"use strict";var r=i(7793),n=i(4269),s=function(e){return e.pure};e.exports={pure:s,liftA1:function(e){return function(t){return function(i){return r.apply(e.Apply0())(s(e)(t))(i)}}},unless:function(e){return function(t){return function(i){if(!t)return i;if(t)return s(e)(n.unit);throw new Error("Failed pattern match at Control.Applicative (line 66, column 1 - line 66, column 65): "+[t.constructor.name,i.constructor.name])}}},when:function(e){return function(t){return function(i){if(t)return i;if(!t)return s(e)(n.unit);throw new Error("Failed pattern match at Control.Applicative (line 61, column 1 - line 61, column 63): "+[t.constructor.name,i.constructor.name])}}}}},748:function(e,t){"use strict";t.arrayApply=function(e){return function(t){for(var i=e.length,r=t.length,n=new Array(i*r),s=0,a=0;a=0;n--)r=e(i[n])(r);return r}}},t.foldlArray=function(e){return function(t){return function(i){for(var r=t,n=i.length,s=0;st=>{const i=sessionStorage;if("true"===i.ffdebug||"false"!==i.ffdebug&&!0===e)throw Error(t);console.error(t)}},1184:function(e,t,i){"use strict";var r=i(8552),n=i(1573);e.exports={emitError:function(e){return r.emitErrorImpl(n.sysConfig.debug)(e)}}},8687:function(e,t,i){"use strict";var r=i(1287),n=i(333),s=i(7905),a=i(4932),o=i(5645),c={request:{campaignPage:n.campaignPage,campaignProduct:n.campaignProduct,campaignShoppingCart:n.campaignShoppingCart,compare:n.compare,navigation:n.navigation,navigationCategory:n.navigationCategory,predictiveBasket:n.predictiveBasket,recommendation:n.recommendation,records:n.records,search:n.search,similar:n.similar,suggest:n.suggest,before:{campaignPage:s.beforeCampaignPage,campaignProduct:s.beforeCampaignProduct,campaignShoppingCart:s.beforeCampaignShoppingCart,compare:s.beforeCompare,navigation:s.beforeNavigation,navigationCategory:s.beforeNavigationCategory,predictiveBasket:s.beforePredictiveBasket,recommendation:s.beforeRecommendation,records:s.beforeRecords,search:s.beforeSearch,similar:s.beforeSimilar,suggest:s.beforeSuggest}},response:{subscribeCampaignPage:o.subscribeCampaignPage,subscribeCampaignProduct:o.subscribeCampaignProduct,subscribeCampaignRedirect:o.subscribeCampaignRedirect,subscribeCampaignShoppingCart:o.subscribeCampaignShoppingCart,subscribeCompare:o.subscribeCompare,subscribeNavigation:o.subscribeNavigation,subscribeNavigationCategory:o.subscribeNavigationCategory,subscribePredictiveBasket:o.subscribePredictiveBasket,subscribeRecommendation:o.subscribeRecommendation,subscribeRecords:o.subscribeRecords,subscribeSearch:o.subscribeSearch,subscribeSimilar:o.subscribeSimilar,subscribeSuggest:o.subscribeSuggest,subscribeSearchAndNavigation:o.subscribeSearchAndNavigation,unsubscribe:o.unsubscribe,transformCampaignPage:o.transformCampaignPage,transformCampaignProduct:o.transformCampaignProduct,transformCampaignShoppingCart:o.transformCampaignShoppingCart,transformCompare:o.transformCompare,transformNavigation:o.transformNavigation,transformNavigationCategory:o.transformNavigationCategory,transformPredictiveBasket:o.transformPredictiveBasket,transformRecommendation:o.transformRecommendation,transformRecords:o.transformRecords,transformSearch:o.transformSearch,transformSimilar:o.transformSimilar,transformSuggest:o.transformSuggest,dispatch:{navigation:o.dispatchNavigation,navigationBeforeTransform:o.dispatchNavigationBeforeTransform,search:o.dispatchSearch,searchBeforeTransform:o.dispatchSearchBeforeTransform,suggest:o.dispatchSuggest,ssrNavigation:o.dispatchSsrNavigation,ssrSearch:o.dispatchSsrSearch}},tracking:{cart:a.cart,checkout:a.checkout,click:a.click,landingPageClick:a.landingPageClick,login:a.login,predbasketClick:a.predbasketClick,recommendationClick:a.recommendationClick,before:{cart:s.beforeTrackCart,checkout:s.beforeTrackCheckout,click:s.beforeTrackClick,landingPageClick:s.beforeTrackLandingPageClick,login:s.beforeTrackLogin,predbasketClick:s.beforeTrackPredBasketClick,recommendationClick:s.beforeTrackRecommendationClick}},config:{get:r.getConfigClone,setFFParams:r.setFFParams,setAppConfig:r.setAppConfig}},u={elementsSubscribeCampaignPage:o.elementsSubscribeCampaignPage,elementsSubscribeCampaignProduct:o.elementsSubscribeCampaignProduct,elementsSubscribeCampaignShoppingCart:o.elementsSubscribeCampaignShoppingCart,elementsSubscribeCompare:o.elementsSubscribeCompare,elementsSubscribeNavigation:o.elementsSubscribeNavigation,elementsSubscribeNavigationCategory:o.elementsSubscribeNavigationCategory,elementsSubscribePredictiveBasket:o.elementsSubscribePredictiveBasket,elementsSubscribeRecommendation:o.elementsSubscribeRecommendation,elementsSubscribeRecords:o.elementsSubscribeRecords,elementsSubscribeSearch:o.elementsSubscribeSearch,elementsSubscribeSimilar:o.elementsSubscribeSimilar,elementsSubscribeSuggest:o.elementsSubscribeSuggest,elementsSubscribeSearchAndNavigation:o.elementsSubscribeSearchAndNavigation,elementsUnsubscribe:o.elementsUnsubscribe,getConfig:r.getConfig,init:r.init};e.exports={publicCore:c,internalCore:u}},6240:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("CartOrCheckoutEvent")(e)(["count","id","sid"])([r.nonEmptyString("campaign"),r.integer("count"),r.nonEmptyString("id"),r.nonEmptyString("masterId"),r.number("price"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validateCartOrCheckoutEve:n}},2830:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("ClickEvent")(e)(["id","pos","query","sid"])([r.nonEmptyString("campaign"),r.nonEmptyString("id"),r.nonEmptyString("masterId"),r.integer("page"),r.integer("pageSize"),r.integer("pos"),r.nonEmptyString("purchaserId"),r.nonEmptyString("query"),r.number("score"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validateClickEvent:n}},6949:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("LandingPageClickEvent")(e)(["campaign","id","pageId","sid"])([r.nonEmptyString("campaign"),r.nonEmptyString("id"),r.nonEmptyString("masterId"),r.nonEmptyString("pageId"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validateLandingPageClickE:n}},7162:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("LoginEvent")(e)(["sid","userId"])([r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("userId")])}};e.exports={validateLoginEvent:n}},3202:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("NavigationParams")(e)([])([r.object("activeAbTests"),r.object("advisorStatus"),r.array("customParameters"),r.boolean("excludeProductsNotInRange"),r.array("filters"),r.nonEmptyString("followSearch"),r.integer("hitsPerPage"),r.object("location"),r.arrayNonEmptyString("marketIds"),r.integer("maxCountVariants"),r.number("maxDistance"),r.integer("page"),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.array("sortItems"),r.integer("splitDocumentsAt")])}},s={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}};e.exports={NavigationParams:function(e){return e},requireArgNavigationParam:s,validateNavigationParams:n}},2652:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("PredBasketClickEvent")(e)(["id","sid","userId"])([r.nonEmptyString("id"),r.nonEmptyString("masterId"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validatePredBasketClickEv:n}},820:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.nonEmptyString("pageId"),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.nonEmptyString("sid")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("CampaignPageParams")(e)(["pageId"])(s)}};e.exports={CampaignPageParams:function(e){return e},requireArgCampaignPagePar:n,validateCampaignPageParam:o,queryStringCampaignPagePa:a}},8309:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.nonEmptyString("id"),r.nonEmptyString("idType"),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.nonEmptyString("sid")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("CampaignProductParams")(e)(["id"])(s)}};e.exports={CampaignProductParams:function(e){return e},requireArgCampaignProduct:n,validateCampaignProductPa:o,queryStringCampaignProduc:a}},4551:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.nonEmptyArray("productNumber")(r.nonEmptyString("")),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.nonEmptyString("sid")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("CampaignShoppingCartParams")(e)(["productNumber"])(s)}};e.exports={CampaignShoppingCartParams:function(e){return e},requireArgCampaignShoppin:n,validateCampaignShoppingC:o,queryStringCampaignShoppi:a}},3854:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.arrayNonEmptyString("id"),r.boolean("idsOnly"),r.nonEmptyString("purchaserId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("CompareParams")(e)([])(s)}};e.exports={CompareParams:function(e){return e},requireArgCompareParams:n,validateCompareParams:o,queryStringCompareParams:a}},8755:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.arrayNonEmptyString("cacheIrrelevant"),r.integer("endLevel"),r.boolean("excludeProductsNotInRange"),r.arrayNonEmptyString("filter"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.nonEmptyString("sid"),r.integer("splitDocumentsAt"),r.integer("startLevel"),r.arrayNonEmptyString("substringFilter"),r.boolean("useAbTest"),r.boolean("useCache"),r.boolean("useGeo"),r.nonEmptyString("userId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("NavigationCategoryParams")(e)([])(s)}};e.exports={NavigationCategoryParams:function(e){return e},requireArgNavigationCateg:n,validateNavigationCategor:o,queryStringNavigationCate:a}},7724:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.arrayNonEmptyString("blacklist"),r.arrayNonEmptyString("filter"),r.boolean("idsOnly"),r.integer("maxResults"),r.nonEmptyString("purchaserId"),r.nonEmptyString("userId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("PredictiveBasketParams")(e)(["userId"])(s)}};e.exports={PredictiveBasketParams:function(e){return e},requireArgPredictiveBaske:n,validatePredictiveBasketP:o,queryStringPredictiveBask:a}},1068:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.arrayNonEmptyString("filter"),r.nonEmptyArray("id")(r.nonEmptyString("")),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.integer("maxResults"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.boolean("usePersonalization"),r.nonEmptyString("userId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("RecommendationParams")(e)(["id"])(s)}};e.exports={RecommendationParams:function(e){return e},requireArgRecommendationP:n,validateRecommendationPar:o,queryStringRecommendation:a}},6681:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.nonEmptyArray("productNumber")(r.nonEmptyString("")),r.nonEmptyString("purchaserId"),r.boolean("verbose")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("RecordsParams")(e)(["productNumber"])(s)}};e.exports={RecordsParams:function(e){return e},requireArgRecordsParams:n,validateRecordsParams:o,queryStringRecordsParams:a}},2637:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.arrayNonEmptyString("filter"),r.nonEmptyString("id"),r.nonEmptyString("idType"),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.integer("maxResults"),r.nonEmptyString("purchaserId"),r.nonEmptyString("userId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("SimilarParams")(e)(["id","idType"])(s)}};e.exports={SimilarParams:function(e){return e},requireArgSimilarParams:n,validateSimilarParams:o,queryStringSimilarParams:a}},4908:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("RecommendationClickEvent")(e)(["id","mainId","sid"])([r.nonEmptyString("id"),r.nonEmptyString("mainId"),r.nonEmptyString("masterId"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validateRecommendationCli:n}},2682:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("SearchParams")(e)(["query"])([r.object("activeAbTests"),r.object("advisorStatus"),r.nonEmptyString("articleNumberSearch"),r.array("customParameters"),r.boolean("excludeProductsNotInRange"),r.array("filters"),r.nonEmptyString("followSearch"),r.integer("hitsPerPage"),r.object("location"),r.arrayNonEmptyString("marketIds"),r.integer("maxCountVariants"),r.number("maxDistance"),r.integer("page"),r.nonEmptyString("purchaserId"),r.nonEmptyString("query"),r.nonEmptyString("searchField"),r.boolean("showMarkets"),r.array("sortItems"),r.integer("splitDocumentsAt")])}},s={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}};e.exports={SearchParams:function(e){return e},requireArgSearchParams:s,validateSearchParams:n}},7663:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("SuggestParams")(e)(["query"])([r.object("activeAbTests"),r.object("advisorStatus"),r.nonEmptyString("articleNumberSearch"),r.array("customParameters"),r.boolean("excludeProductsNotInRange"),r.array("filters"),r.nonEmptyString("followSearch"),r.integer("hitsPerPage"),r.boolean("includeMarketIdsForNonResultFields"),r.object("location"),r.arrayNonEmptyString("marketIds"),r.integer("maxCountVariants"),r.number("maxDistance"),r.integer("page"),r.nonEmptyString("purchaserId"),r.nonEmptyString("query"),r.nonEmptyString("searchField"),r.boolean("showMarkets"),r.nonEmptyString("sid"),r.array("sortItems"),r.integer("splitDocumentsAt")])}},s={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}};e.exports={SuggestParams:function(e){return e},requireArgSuggestParams:s,validateSuggestParams:n}},3555:function(e,t){t.requireArgImpl_=e=>t=>i=>a((e=>Promise.resolve(e)),(e=>Promise.reject(e)),e,t,i),t.requireArgSyncImpl_=e=>t=>i=>()=>a((e=>e),(()=>{}),e,t,i),t.checkOptionalArgImpl_=e=>t=>i=>n=>s=>{if(!r(n))return Promise.resolve(i);const a=s[1];if(!a.validate(n)){const t=a.errMsg(n);return e(t),Promise.reject(t)}return Promise.resolve(t(n))},t.validateObjectImpl_=e=>t=>i=>r=>n=>o((e=>Promise.resolve(e)),(e=>Promise.reject(e)),e,t,i,r,n),t.validateObjectSyncImpl_=e=>t=>i=>r=>n=>()=>o((e=>e),(()=>{}),e,t,i,r,n);const i=(e,t,i,r)=>({validate:e,errMsg:t,typeName:i,stringify:r});t.any=e=>[e,i((()=>!0),n(""),"any")],t.array=e=>[e,i(Array.isArray,n("'".concat(e,"' must be an array.")),"array")],t.headers=e=>[e,i((e=>e&&("[object Object]"===e.toString()||e instanceof Headers)),n("'".concat(e,"' must be a plain object or an instance of Headers.")),"headers")],t.object=e=>[e,i((e=>e&&"[object Object]"===e.toString()),n("'".concat(e,"' must be a plain object.")),"object")],t.arrayNonEmptyString=e=>[e,i((e=>Array.isArray(e)&&e.every((e=>e&&"string"==typeof e))),n("'".concat(e,"' must be an array of non-empty strings.")),"array of non-empty strings",(e=>e))],t.boolean=e=>[e,i((e=>"boolean"==typeof e),n("'".concat(e,"' must be a boolean.")),"boolean",(e=>[String(e)]))],t.integer=e=>[e,i((e=>Number.isInteger(e)),n("'".concat(e,"' must be a whole number.")),"integer",(e=>[String(e)]))],t.nonEmptyString=e=>[e,i((e=>"string"==typeof e&&!!e),n("'".concat(e,"' must be a non-empty string.")),"non-empty string",(e=>[e]))],t.number=e=>[e,i((e=>"number"==typeof e),n("'".concat(e,"' must be a number.")),"number",(e=>[String(e)]))],t.nonEmptyArray=e=>t=>[e,i((e=>Array.isArray(e)&&e.length&&e.every(t[1].validate)),n("'".concat(e,"' must be a non-empty array of type ").concat(t[1].typeName,".")),"non-empty array",t[1].stringify&&(e=>e.map(t[1].stringify)))],t.toQueryStringImpl_=e=>t=>{const i=e.filter((e=>t.hasOwnProperty(e[0]))),r=new URLSearchParams;return i.forEach((e=>{const i=e[0];e[1].stringify(t[i]).forEach((e=>r.append(i,e)))})),r.toString()},t.withStringifier=e=>e.filter((e=>e[1].stringify));const r=e=>null!=e,n=e=>t=>{return e+" Was: '".concat((i=t,""===i?'""':Array.isArray(i)?"[".concat(i,"]"):String(i)),"' (Type: ").concat(r(t)?t.constructor.name:"unknown",")");var i},s=(e,t)=>"".concat(e,": ").concat(t);function a(e,t,i,n,s){if(!r(n)){const e="Required argument '".concat(s[0],"' not specified.");return i(e),t(e)}const a=s[1];if(!a.validate(n)){const e=a.errMsg(n);return i(e),t(e)}return e(n)}function o(e,t,i,r,n,a,o){const c=Object.keys(n),u=[];let l=!0;a.forEach((e=>{if(!c.includes(e)){const t=s(r,"'".concat(e,"' is required."));i(t),u.push(t),l=!1}}));const d=new Map(o);return c.forEach((e=>{if(!d.has(e)){const t=s(r,"'".concat(e,"' is not a valid parameter."));return i(t),u.push(t),void(l=!1)}if(!d.get(e).validate(n[e])){const t=s(r,d.get(e).errMsg(n[e]));i(t),u.push(t),l=!1}})),l?e(n):t(u)}},7860:function(e,t,i){"use strict";var r=i(3555),n=i(4884),s=i(596),a=i(9704),o=i(1184),c=i(416),u=r.validateObjectSyncImpl_(o.emitError),l=r.validateObjectImpl_(o.emitError),d=r.requireArgSyncImpl_(o.emitError),p=r.requireArgImpl_(o.emitError),h=r.checkOptionalArgImpl_(o.emitError)(s.Just.create)(s.Nothing.value);e.exports={requireArgImpl:p,requireArgSyncImpl:d,checkOptionalArgImpl:h,validateObjectImpl:l,validateObjectSyncImpl:u,validateOptionalObjectImpl:function(e){return function(t){return function(i){return function(r){return a.sequence(a.traversableMaybe)(c.applicativeFF)(n.mapFlipped(s.functorMaybe)(t)((function(t){return l(e)(t)(i)(r)})))}}}},toQueryString:function(e){return e.toQueryString},toQueryStringImpl:function(e){return function(e){return function(t){return r.toQueryStringImpl_(r.withStringifier(e))(t)}}},nonEmptyString:r.nonEmptyString,integer:r.integer,number:r.number,boolean:r.boolean,array:r.array,arrayNonEmptyString:r.arrayNonEmptyString,nonEmptyArray:r.nonEmptyArray,object:r.object,headers:r.headers,any:r.any}},7683:function(e,t){t.emptyNavigationOptions={}},2212:function(e,t,i){"use strict";var r=i(7683),n=i(7860),s={validateOptional:function(e){return n.validateOptionalObjectImpl("NavigationOptions")(e)([])([n.object("searchControlParams"),n.nonEmptyString("sid"),n.nonEmptyString("userId"),n.object("requestOptions"),n.boolean("initial"),n.boolean("withoutHistory")])}},a={checkOptionalArg:function(e){return function(t){return n.checkOptionalArgImpl(e)(n.object(t))}}};e.exports={WKNavigationOptions:function(e){return e},checkOptionalArgWKNavigat:a,validateOptionalWKNavigat:s,emptyNavigationOptions:r.emptyNavigationOptions}},1327:function(e,t,i){"use strict";var r=i(7860),n={validateOptional:function(e){return r.validateOptionalObjectImpl("RequestOptions")(e)([])([r.headers("headers"),r.boolean("bypassGlobalConfig"),r.nonEmptyString("channel"),r.any("origin"),r.boolean("requestOnly"),r.boolean("skipBeforeHandlers")])}},s={checkOptionalArg:function(e){return function(t){return r.checkOptionalArgImpl(e)(r.object(t))}}};e.exports={WKRequestOptions:function(e){return e},checkOptionalArgWKRequest:s,validateOptionalWKRequest:n}},8968:function(e,t){t.emptySearchOptions={}},6996:function(e,t,i){"use strict";var r=i(8968),n=i(7860),s={validateOptional:function(e){return n.validateOptionalObjectImpl("SearchOptions")(e)([])([n.object("searchControlParams"),n.nonEmptyString("sid"),n.nonEmptyString("userId"),n.nonEmptyString("userInput"),n.object("requestOptions"),n.boolean("initial"),n.boolean("withoutHistory")])}},a={checkOptionalArg:function(e){return function(t){return n.checkOptionalArgImpl(e)(n.object(t))}}};e.exports={WKSearchOptions:function(e){return e},checkOptionalArgWKSearchO:a,validateOptionalWKSearchO:s,emptySearchOptions:r.emptySearchOptions}},863:function(e,t){t.applyAuth=e=>t=>(t.headers["X-FF-Api-Key"]=e,t)},3894:function(e,t,i){"use strict";var r=i(863);e.exports={applyAuth:r.applyAuth}},1394:function(e,t){t.beforeCampaignPage=e=>n(i.campaignPage,e),t.beforeCampaignProduct=e=>n(i.campaignProduct,e),t.beforeCampaignShoppingCart=e=>n(i.campaignShoppingCart,e),t.beforeCompare=e=>n(i.compare,e),t.beforeNavigation=e=>n(i.navigation,e),t.beforeNavigationCategory=e=>n(i.navigationCategory,e),t.beforePredictiveBasket=e=>n(i.predictiveBasket,e),t.beforeRecommendation=e=>n(i.recommendation,e),t.beforeRecords=e=>n(i.records,e),t.beforeSearch=e=>n(i.search,e),t.beforeSimilar=e=>n(i.similar,e),t.beforeSuggest=e=>n(i.suggest,e),t.beforeTrackCart=e=>n(r.cart,e),t.beforeTrackCheckout=e=>n(r.checkout,e),t.beforeTrackClick=e=>n(r.click,e),t.beforeTrackLandingPageClick=e=>n(r.landingPageClick,e),t.beforeTrackLogin=e=>n(r.login,e),t.beforeTrackPredBasketClick=e=>n(r.predBasketClick,e),t.beforeTrackRecommendationClick=e=>n(r.recommendationClick,e),t.runBeforeCampaignPageSubscribers=e=>s(i.campaignPage,e,"beforeCampaignPageSubscribers"),t.runBeforeCampaignProductSubscribers=e=>s(i.campaignProduct,e,"beforeCampaignProductSubscribers"),t.runBeforeCampaignShoppingCartSubscribers=e=>s(i.campaignShoppingCart,e,"beforeCampaignShoppingCartSubscribers"),t.runBeforeCompareSubscribers=e=>s(i.compare,e,"beforeCompareSubscribers"),t.runBeforeNavigationSubscribers=e=>s(i.navigation,e,"beforeNavigationSubscribers"),t.runBeforeNavigationCategorySubscribers=e=>s(i.navigationCategory,e,"beforeNavigationCategorySubscribers"),t.runBeforePredictiveBasketSubscribers=e=>s(i.predictiveBasket,e,"beforePredictiveBasketSubscribers"),t.runBeforeRecommendationSubscribers=e=>s(i.recommendation,e,"beforeRecommendationSubscribers"),t.runBeforeRecordsSubscribers=e=>s(i.records,e,"beforeRecordsSubscribers"),t.runBeforeSearchSubscribers=e=>s(i.search,e,"beforeSearchSubscribers"),t.runBeforeSimilarSubscribers=e=>s(i.similar,e,"beforeSimilarSubscribers"),t.runBeforeSuggestSubscribers=e=>s(i.suggest,e,"beforeSuggestSubscribers"),t.runBeforeTrackCartSubscribers=e=>s(r.cart,e,"beforeTrackCartSubscribers"),t.runBeforeTrackCheckoutSubscribers=e=>s(r.checkout,e,"beforeTrackCheckoutSubscribers"),t.runBeforeTrackClickSubscribers=e=>s(r.click,e,"beforeTrackClickSubscribers"),t.runBeforeTrackLandingPageClickSubscribers=e=>s(r.landingPageClick,e,"beforeTrackLandingPageClickSubscribers"),t.runBeforeTrackLoginSubscribers=e=>s(r.login,e,"beforeTrackLoginSubscribers"),t.runBeforeTrackPredBasketClickSubscribers=e=>s(r.predBasketClick,e,"beforeTrackPredBasketClickSubscribers"),t.runBeforeTrackRecommendationClickSubscribers=e=>s(r.recommendationClick,e,"beforeTrackRecommendationClickSubscribers");const i=Object.freeze({campaignPage:new Map,campaignProduct:new Map,campaignShoppingCart:new Map,compare:new Map,navigation:new Map,navigationCategory:new Map,predictiveBasket:new Map,recommendation:new Map,records:new Map,search:new Map,similar:new Map,suggest:new Map}),r=Object.freeze({cart:new Map,checkout:new Map,click:new Map,landingPageClick:new Map,login:new Map,predBasketClick:new Map,recommendationClick:new Map});function n(e,t){const i=Math.random();return e.set(i,t),i}function s(e,t,i){for(const r of e.values()){if(!1===r(t))return console.log("".concat(i,": Pipeline interrupted")),Promise.reject("".concat(i,": Pipeline interrupted"))}return Promise.resolve()}},7905:function(e,t,i){"use strict";var r=i(1394),n=i(3139),s=i(8850),a=i(4884),o=i(4269),c=i(2024),u=i(416);e.exports={guardBeforeSubscribers:function(e){return function(t){return c.fromFFIMaybe(!1)(s.bind(c.bindFFIMaybe)(e.requestOptions)((function(e){return a.mapFlipped(c.functorFFIMaybe)(e.skipBeforeHandlers)((function(e){return!0===e}))})))?n.pure(u.applicativeFF)(o.unit):t(e)}},beforeCampaignPage:r.beforeCampaignPage,beforeCampaignProduct:r.beforeCampaignProduct,beforeCampaignShoppingCart:r.beforeCampaignShoppingCart,beforeCompare:r.beforeCompare,beforeNavigation:r.beforeNavigation,beforeNavigationCategory:r.beforeNavigationCategory,beforePredictiveBasket:r.beforePredictiveBasket,beforeRecommendation:r.beforeRecommendation,beforeRecords:r.beforeRecords,beforeSearch:r.beforeSearch,beforeSimilar:r.beforeSimilar,beforeSuggest:r.beforeSuggest,beforeTrackCart:r.beforeTrackCart,beforeTrackCheckout:r.beforeTrackCheckout,beforeTrackClick:r.beforeTrackClick,beforeTrackLandingPageClick:r.beforeTrackLandingPageClick,beforeTrackLogin:r.beforeTrackLogin,beforeTrackPredBasketClick:r.beforeTrackPredBasketClick,beforeTrackRecommendationClick:r.beforeTrackRecommendationClick,runBeforeCampaignPageSubscribers:r.runBeforeCampaignPageSubscribers,runBeforeCampaignProductSubscribers:r.runBeforeCampaignProductSubscribers,runBeforeCampaignShoppingCartSubscribers:r.runBeforeCampaignShoppingCartSubscribers,runBeforeNavigationSubscribers:r.runBeforeNavigationSubscribers,runBeforeCompareSubscribers:r.runBeforeCompareSubscribers,runBeforeNavigationCategorySubscribers:r.runBeforeNavigationCategorySubscribers,runBeforePredictiveBasketSubscribers:r.runBeforePredictiveBasketSubscribers,runBeforeRecommendationSubscribers:r.runBeforeRecommendationSubscribers,runBeforeRecordsSubscribers:r.runBeforeRecordsSubscribers,runBeforeSearchSubscribers:r.runBeforeSearchSubscribers,runBeforeSimilarSubscribers:r.runBeforeSimilarSubscribers,runBeforeSuggestSubscribers:r.runBeforeSuggestSubscribers,runBeforeTrackCartSubscribers:r.runBeforeTrackCartSubscribers,runBeforeTrackCheckoutSubscribers:r.runBeforeTrackCheckoutSubscribers,runBeforeTrackClickSubscribers:r.runBeforeTrackClickSubscribers,runBeforeTrackLandingPageClickSubscribers:r.runBeforeTrackLandingPageClickSubscribers,runBeforeTrackLoginSubscribers:r.runBeforeTrackLoginSubscribers,runBeforeTrackPredBasketClickSubscribers:r.runBeforeTrackPredBasketClickSubscribers,runBeforeTrackRecommendationClickSubscribers:r.runBeforeTrackRecommendationClickSubscribers}},5078:function(e,t){t.createFFRequestGET=e=>t=>({method:"GET",url:e,headers:{},handlers:t}),t.createFFRequestPOST=e=>t=>i=>({method:"POST",url:e,headers:{},handlers:t,body:i}),t.createFFTrackingRequest=e=>t=>({method:"POST",url:e,headers:{},noHandlers:!0,body:t}),t.sendAuthenticated=function(e){const t={method:e.method,headers:e.headers};"POST"===e.method&&(t.headers["Content-Type"]="application/json",t.body=JSON.stringify(e.body));return fetch(e.url,t).then((t=>{if(!t.ok||!e.noHandlers)return t.json().then((t=>{if(t.error)throw Error(t.errorDescription);return e.handlers.success(t)()}))}))}},4502:function(e,t,i){"use strict";var r=i(5078);e.exports={createFFRequestGET:r.createFFRequestGET,createFFRequestPOST:r.createFFRequestPOST,createFFTrackingRequest:r.createFFTrackingRequest,sendAuthenticated:r.sendAuthenticated}},8496:function(e,t,i){"use strict";var r=i(1287),n=i(8850),s=i(596),a=i(2024),o=function(e){return function(t){return function(i){var n=r.config.val.ff.url+"/rest/v5/"+e+"/"+t;return""===i?n:n+"/"+i}}};e.exports={getChannel:function(e){return e instanceof s.Just?a.fromFFIMaybe(r.config.val.ff.channel)(e.value0.channel):r.config.val.ff.channel},"getChannel'":function(e){return a.fromFFIMaybe(r.config.val.ff.channel)(n.bind(a.bindFFIMaybe)(e)((function(e){return e.channel})))},generateEndpoint:function(e){return function(t){return o(e)(t)("")}},generateEndpointWithSub:o}},1960:function(e,t){t.mergeConfig=e=>t=>t.map((t=>Object.assign({},e,t))),t.removeUndefinedProps=e=>JSON.parse(JSON.stringify(e))},4932:function(e,t,i){"use strict";var r=i(1960),n=i(1287),s=i(8850),a=i(8583),o=i(6240),c=i(2830),u=i(6949),l=i(7162),d=i(2652),p=i(4908),h=i(1327),f=i(3894),m=i(7905),g=i(4502),b=i(8496),v=i(6296),y=i(2024),_=i(2877),S=i(416),k=function(e){return function(t,i,o,c,u){return s.bind(S.bindFF)(S.requireArg(_.requireArgNonEmptyArray)(t)(i))((function(t){return s.bind(S.bindFF)(s.bindFlipped(S.bindFF)(S.validateOptional(h.validateOptionalWKRequest))(S.checkOptionalArg(h.checkOptionalArgWKRequest)(o)("requestOptions")))((function(i){var o=a.unsafePerformEffect(v.getOrCreateSid(y[void 0])),l=r.removeUndefinedProps({sid:o,purchaserId:s.bind(y.bindFFIMaybe)(n.config.val.ffParams)((function(e){return e.purchaserId})),userId:s.bind(y.bindFFIMaybe)(n.config.val.ffParams)((function(e){return e.userId}))}),d=r.mergeConfig(l)(t);return s.bind(S.bindFF)(S.validateMap(_.validateMapNonEmptyArrayA(e))(d))((function(e){var t={events:e,requestOptions:y.fromMaybe(i)};return s.bind(S.bindFF)(m.guardBeforeSubscribers(t)(u))((function(t){var r=b.generateEndpointWithSub("track")(b.getChannel(i))(c);return g.sendAuthenticated(f.applyAuth(n.config.val.ff.apiKey)(g.createFFTrackingRequest(r)(e)))}))}))}))}))}};e.exports={cart:function(e,t){return k(o.validateCartOrCheckoutEve)(e,"cartOrCheckoutEvents",t,"cart",m.runBeforeTrackCartSubscribers)},checkout:function(e,t){return k(o.validateCartOrCheckoutEve)(e,"cartOrCheckoutEvents",t,"checkout",m.runBeforeTrackCheckoutSubscribers)},click:function(e,t){return k(c.validateClickEvent)(e,"clickEvents",t,"click",m.runBeforeTrackClickSubscribers)},landingPageClick:function(e,t){return k(u.validateLandingPageClickE)(e,"landingPageClickEvents",t,"landingPageClick",m.runBeforeTrackLandingPageClickSubscribers)},login:function(e,t){return k(l.validateLoginEvent)(e,"loginEvents",t,"login",m.runBeforeTrackLoginSubscribers)},predbasketClick:function(e,t){return k(d.validatePredBasketClickEv)(e,"predBasketClickEvents",t,"predbasketClick",m.runBeforeTrackPredBasketClickSubscribers)},recommendationClick:function(e,t){return k(p.validateRecommendationCli)(e,"recommendationClickEvents",t,"recommendationClick",m.runBeforeTrackRecommendationClickSubscribers)}}},333:function(e,t,i){"use strict";var r=i(1287),n=i(3139),s=i(8850),a=i(1720),o=i(4884),c=i(596),u=i(8164),l=i(8583),d=i(3202),p=i(820),h=i(8309),f=i(4551),m=i(3854),g=i(8755),b=i(7724),v=i(1068),y=i(6681),_=i(2637),S=i(2682),k=i(7663),C=i(7860),w=i(2212),P=i(1327),x=i(6996),E=i(3894),I=i(7905),F=i(4502),A=i(8496),M=i(5645),O=i(6296),L=i(2024),N=i(416),T=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(s.bindFlipped(u.bindEffect)(r.setUserId)(r.setPurchaserId(e))),n="?"+C.toQueryString(_.queryStringSimilarParams)(i),a={similarParams:i,requestOptions:L.fromMaybe(t)},o=A.generateEndpointWithSub("records")(A.getChannel(t))("similar")+n;return s.bind(N.bindFF)(I.guardBeforeSubscribers(a)(I.runBeforeSimilarSubscribers))((function(e){return F.sendAuthenticated(E.applyAuth(r.config.val.ff.apiKey)(F.createFFRequestGET(o)({success:M.successHandlerSimilar(a)})))}))}})),q=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(r.setPurchaserId(e)),n="?"+C.toQueryString(y.queryStringRecordsParams)(i),a={recordsParams:i,requestOptions:L.fromMaybe(t)},o=A.generateEndpoint("records")(A.getChannel(t))+n;return s.bind(N.bindFF)(I.guardBeforeSubscribers(a)(I.runBeforeRecordsSubscribers))((function(e){return F.sendAuthenticated(E.applyAuth(r.config.val.ff.apiKey)(F.createFFRequestGET(o)({success:M.successHandlerRecords(a)})))}))}})),R=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(O.getOrCreateSid(e.sid)),n=l.unsafePerformEffect(s.bindFlipped(u.bindEffect)(r.setUserId)(r.setPurchaserId(O.setSID(i)(e)))),a="?"+C.toQueryString(v.queryStringRecommendation)(n),o={recommendationParams:n,requestOptions:L.fromMaybe(t)},c=A.generateEndpointWithSub("records")(A.getChannel(t))("recommendation")+a;return s.bind(N.bindFF)(I.guardBeforeSubscribers(o)(I.runBeforeRecommendationSubscribers))((function(e){return F.sendAuthenticated(E.applyAuth(r.config.val.ff.apiKey)(F.createFFRequestGET(c)({success:M.successHandlerRecommendation(o)})))}))}})),B=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(r.setPurchaserId(e)),n="?"+C.toQueryString(b.queryStringPredictiveBask)(i),a={predictiveBasketParams:i,requestOptions:L.fromMaybe(t)},o=A.generateEndpoint("predictivebasket")(A.getChannel(t))+n;return s.bind(N.bindFF)(I.guardBeforeSubscribers(a)(I.runBeforePredictiveBasketSubscribers))((function(e){return F.sendAuthenticated(E.applyAuth(r.config.val.ff.apiKey)(F.createFFRequestGET(o)({success:M.successHandlerPredictiveBasket(a)})))}))}})),D=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(r.setPurchaserId(e)),a=L.fromFFIMaybe(w.emptyNavigationOptions)(L.fromMaybe(t)),c=l.unsafePerformEffect(O.getOrCreateSid(a.sid)),u=l.unsafePerformEffect(r.setUserId(O.setSID(c)(a))),d={navigationParams:i,navigationOptions:n.pure(L.applicativeFFIMaybe)(u)},p=A.generateEndpoint("navigation")(A["getChannel'"](u.requestOptions)),h={success:M.successHandlerNavigation(d)},f={params:i,searchControlParams:u.searchControlParams,sid:c,userId:u.userId};return s.bind(N.bindFF)(n.unless(N.applicativeFF)(L.fromFFIMaybe(!1)(s.bind(L.bindFFIMaybe)(a.requestOptions)((function(e){return o.mapFlipped(L.functorFFIMaybe)(e.skipBeforeHandlers)((function(e){return!0===e}))}))))(I.runBeforeNavigationSubscribers(d)))((function(e){return s.bind(N.bindFF)(n.pure(N.applicativeFF)(l.unsafePerformEffect(M.disableAutoFetching)))((function(e){return F.sendAuthenticated(E.applyAuth(r.config.val.ff.apiKey)(F.createFFRequestPOST(p)(h)(f)))}))}))}})),j=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(O.getOrCreateSid(e.sid)),n=l.unsafePerformEffect(s.bindFlipped(u.bindEffect)(r.setUserId)(r.setPurchaserId(O.setSID(i)(e)))),a="?"+C.toQueryString(g.queryStringNavigationCate)(n),o={navigationCategoryParams:n,requestOptions:L.fromMaybe(t)},c=A.generateEndpoint("navigation/category")(A.getChannel(t))+a;return s.bind(N.bindFF)(I.guardBeforeSubscribers(o)(I.runBeforeNavigationCategorySubscribers))((function(e){return F.sendAuthenticated(E.applyAuth(r.config.val.ff.apiKey)(F.createFFRequestGET(c)({success:M.successHandlerNavigationCategory(o)})))}))}})),H=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(O.getOrCreateSid(e.sid)),n=l.unsafePerformEffect(r.setPurchaserId(O.setSID(i)(e))),a={suggestParams:n,requestOptions:L.fromMaybe(t)};return s.bind(N.bindFF)(I.guardBeforeSubscribers(a)(I.runBeforeSuggestSubscribers))((function(e){return F.sendAuthenticated(E.applyAuth(r.config.val.ff.apiKey)((i=n,function(e){return function(t){var r=A.generateEndpoint("suggest")(A.getChannel(e));return F.createFFRequestPOST(r)(t)(i)}})(t)({success:M.successHandlerSuggest(a)})));var i}))}})),V=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(r.setPurchaserId(e)),a=c.fromMaybe(x.emptySearchOptions)(t),u=l.unsafePerformEffect(O.getOrCreateSid(a.sid)),d=l.unsafePerformEffect(r.setUserId(O.setSID(u)(a))),p={searchParams:i,searchOptions:n.pure(L.applicativeFFIMaybe)(d)};return s.bind(N.bindFF)(n.unless(N.applicativeFF)(L.fromFFIMaybe(!1)(s.bind(L.bindFFIMaybe)(a.requestOptions)((function(e){return o.mapFlipped(L.functorFFIMaybe)(e.skipBeforeHandlers)((function(e){return!0===e}))}))))(I.runBeforeSearchSubscribers(p)))((function(e){return s.bind(N.bindFF)(n.pure(N.applicativeFF)(l.unsafePerformEffect(M.disableAutoFetching)))((function(e){return F.sendAuthenticated(E.applyAuth(r.config.val.ff.apiKey)((t=i,function(e){return function(i){var r=A.generateEndpoint("search")(A["getChannel'"](e.requestOptions)),n={params:t,searchControlParams:e.searchControlParams,sid:e.sid,userId:e.userId,userInput:e.userInput};return F.createFFRequestPOST(r)(i)(n)}})(d)({success:M.successHandlerSearch(p)})));var t}))}))}})),U=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(r.setPurchaserId(e)),n="?"+C.toQueryString(m.queryStringCompareParams)(i),a={compareParams:i,requestOptions:L.fromMaybe(t)},o=A.generateEndpointWithSub("records")(A.getChannel(t))("compare")+n;return s.bind(N.bindFF)(I.guardBeforeSubscribers(a)(I.runBeforeCompareSubscribers))((function(e){return F.sendAuthenticated(E.applyAuth(r.config.val.ff.apiKey)(F.createFFRequestGET(o)({success:M.successHandlerCompare(a)})))}))}})),W=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(O.getOrCreateSid(e.sid)),n=l.unsafePerformEffect(r.setPurchaserId(O.setSID(i)(e))),a="?"+C.toQueryString(f.queryStringCampaignShoppi)(n),o={campaignShoppingCartParams:n,requestOptions:L.fromMaybe(t)},c=A.generateEndpointWithSub("campaign")(A.getChannel(t))("shoppingcart")+a;return s.bind(N.bindFF)(I.guardBeforeSubscribers(o)(I.runBeforeCampaignShoppingCartSubscribers))((function(e){return F.sendAuthenticated(E.applyAuth(r.config.val.ff.apiKey)(F.createFFRequestGET(c)({success:M.successHandlerCampaignShoppingCart(o)})))}))}})),K=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(O.getOrCreateSid(e.sid)),n=l.unsafePerformEffect(r.setPurchaserId(O.setSID(i)(e))),a="?"+C.toQueryString(h.queryStringCampaignProduc)(n),o={campaignProductParams:n,requestOptions:L.fromMaybe(t)},c=A.generateEndpointWithSub("campaign")(A.getChannel(t))("product")+a;return s.bind(N.bindFF)(I.guardBeforeSubscribers(o)(I.runBeforeCampaignProductSubscribers))((function(e){return F.sendAuthenticated(E.applyAuth(r.config.val.ff.apiKey)(F.createFFRequestGET(c)({success:M.successHandlerCampaignProduct(o)})))}))}})),z=a.mkFn2((function(e){return function(t){var i=l.unsafePerformEffect(O.getOrCreateSid(e.sid)),n=l.unsafePerformEffect(r.setPurchaserId(O.setSID(i)(e))),a="?"+C.toQueryString(p.queryStringCampaignPagePa)(n),o={campaignPageParams:n,requestOptions:L.fromMaybe(t)},c=A.generateEndpointWithSub("campaign")(A.getChannel(t))("page")+a;return s.bind(N.bindFF)(I.guardBeforeSubscribers(o)(I.runBeforeCampaignPageSubscribers))((function(e){return F.sendAuthenticated(E.applyAuth(r.config.val.ff.apiKey)(F.createFFRequestGET(c)({success:M.successHandlerCampaignPage(o)})))}))}}));e.exports={campaignPage:function(e,t){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validate(p.validateCampaignPageParam))(N.requireArg(p.requireArgCampaignPagePar)(e)("campaignPageParams")))((function(e){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validateOptional(P.validateOptionalWKRequest))(N.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return z(e,t)}))}))},campaignProduct:function(e,t){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validate(h.validateCampaignProductPa))(N.requireArg(h.requireArgCampaignProduct)(e)("campaignProductParams")))((function(e){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validateOptional(P.validateOptionalWKRequest))(N.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return K(e,t)}))}))},campaignShoppingCart:function(e,t){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validate(f.validateCampaignShoppingC))(N.requireArg(f.requireArgCampaignShoppin)(e)("campaignShoppingCartParams")))((function(e){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validateOptional(P.validateOptionalWKRequest))(N.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return W(e,t)}))}))},compare:function(e,t){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validate(m.validateCompareParams))(N.requireArg(m.requireArgCompareParams)(e)("compareParams")))((function(e){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validateOptional(P.validateOptionalWKRequest))(N.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return U(e,t)}))}))},navigation:function(e,t){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validate(d.validateNavigationParams))(N.requireArg(d.requireArgNavigationParam)(e)("navigationParams")))((function(e){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validateOptional(w.validateOptionalWKNavigat))(N.checkOptionalArg(w.checkOptionalArgWKNavigat)(t)("navigationOptions")))((function(t){return D(e,t)}))}))},navigationCategory:function(e,t){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validate(g.validateNavigationCategor))(N.requireArg(g.requireArgNavigationCateg)(e)("navigationCategoryParams")))((function(e){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validateOptional(P.validateOptionalWKRequest))(N.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return j(e,t)}))}))},predictiveBasket:function(e,t){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validate(b.validatePredictiveBasketP))(N.requireArg(b.requireArgPredictiveBaske)(e)("predictiveBasketParams")))((function(e){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validateOptional(P.validateOptionalWKRequest))(N.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return B(e,t)}))}))},recommendation:function(e,t){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validate(v.validateRecommendationPar))(N.requireArg(v.requireArgRecommendationP)(e)("recommendationParams")))((function(e){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validateOptional(P.validateOptionalWKRequest))(N.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return R(e,t)}))}))},records:function(e,t){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validate(y.validateRecordsParams))(N.requireArg(y.requireArgRecordsParams)(e)("recordsParams")))((function(e){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validateOptional(P.validateOptionalWKRequest))(N.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return q(e,t)}))}))},search:function(e,t){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validate(S.validateSearchParams))(N.requireArg(S.requireArgSearchParams)(e)("searchParams")))((function(e){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validateOptional(x.validateOptionalWKSearchO))(N.checkOptionalArg(x.checkOptionalArgWKSearchO)(t)("searchOptions")))((function(t){return V(e,t)}))}))},similar:function(e,t){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validate(_.validateSimilarParams))(N.requireArg(_.requireArgSimilarParams)(e)("similarParams")))((function(e){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validateOptional(P.validateOptionalWKRequest))(N.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return T(e,t)}))}))},suggest:function(e,t){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validate(k.validateSuggestParams))(N.requireArg(k.requireArgSuggestParams)(e)("suggestParams")))((function(e){return s.bind(N.bindFF)(s.bindFlipped(N.bindFF)(N.validateOptional(P.validateOptionalWKRequest))(N.checkOptionalArg(P.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return H(e,t)}))}))}}},6657:function(e,t,i){let r,n,s=!1;const a="ALWAYS_ON";t.disableAutoFetching=()=>{s=!1},t.enableAutoFetching=()=>{s=!0},t.setLastResultNavigation=e=>()=>{r=e,n=void 0},t.setLastResultSearch=e=>()=>{n=e,r=void 0},t.elementsSubscribeCampaignPage=e=>J(o,e),t.elementsSubscribeCampaignProduct=e=>J(c,e),t.elementsSubscribeCampaignShoppingCart=e=>J(u,e),t.elementsSubscribeCompare=e=>J(l,e),t.elementsSubscribeNavigationImpl=e=>t=>((s||e===a)&&r&&X(!1)([t],r,{}),J(d,t)),t.elementsSubscribeNavigationCategory=e=>J(p,e),t.elementsSubscribePredictiveBasket=e=>J(h,e),t.elementsSubscribeRecommendation=e=>J(f,e),t.elementsSubscribeRecords=e=>J(m,e),t.elementsSubscribeSearchImpl=e=>t=>((s||e===a)&&n&&X(!1)([t],n,{}),J(g,t)),t.elementsSubscribeSimilar=e=>J(b,e),t.elementsSubscribeSuggest=e=>J(v,e),t.elementsSubscribeSearchAndNavigationImpl=e=>t=>(!s&&e!==a||!r&&!n||X(!1)([t],r||n,{}),J(y,t)),t.elementsUnsubscribe=Z,t.subscribeCampaignPage=e=>J(S,e),t.subscribeCampaignProduct=e=>J(k,e),t.subscribeCampaignRedirect=e=>J(C,e),t.subscribeCampaignShoppingCart=e=>J(w,e),t.subscribeCompare=e=>J(P,e),t.subscribeNavigationImpl=e=>t=>((s||e===a)&&r&&Q(!1)([t],r,{}),J(x,t)),t.subscribeNavigationCategory=e=>J(E,e),t.subscribePredictiveBasket=e=>J(I,e),t.subscribeRecommendation=e=>J(F,e),t.subscribeRecords=e=>J(A,e),t.subscribeSearchImpl=e=>t=>((s||e===a)&&n&&Q(!1)([t],n,{}),J(M,t)),t.subscribeSimilar=e=>J(O,e),t.subscribeSuggest=e=>J(L,e),t.subscribeSearchAndNavigationImpl=e=>t=>(!s&&e!==a||!r&&!n||Q(!1)([t],r||n,{}),J(N,t)),t.unsubscribe=Z,t.transformCampaignPage=e=>{R.push(e)},t.transformCampaignProduct=e=>{B.push(e)},t.transformCampaignShoppingCart=e=>{D.push(e)},t.transformCompare=e=>{j.push(e)},t.transformNavigation=e=>{H.push(e)},t.transformNavigationCategory=e=>{V.push(e)},t.transformPredictiveBasket=e=>{U.push(e)},t.transformRecommendation=e=>{W.push(e)},t.transformRecords=e=>{K.push(e)},t.transformSearch=e=>{z.push(e)},t.transformSimilar=e=>{$.push(e)},t.transformSuggest=e=>{G.push(e)};const o=new Map,c=new Map,u=new Map,l=new Map,d=new Map,p=new Map,h=new Map,f=new Map,m=new Map,g=new Map,b=new Map,v=new Map,y=new Map,_=e=>(t,i,r)=>()=>X(r)(e,t,i);t.runElementsCampaignPageSubscribers=_(o),t.runElementsCampaignProductSubscribers=_(c),t.runElementsCampaignShoppingCartSubscribers=_(u),t.runElementsCompareSubscribers=_(l),t.runElementsNavigationSubscribers=function(){return _([Array.from(d.values()),Array.from(y.values())].flat())(...arguments)},t.runElementsNavigationCategorySubscribers=_(p),t.runElementsPredictiveBasketSubscribers=_(h),t.runElementsRecommendationSubscribers=_(f),t.runElementsSearchSubscribers=function(){return _([Array.from(g.values()),Array.from(y.values())].flat())(...arguments)},t.runElementsSimilarSubscribers=_(b),t.runElementsSuggestSubscribers=_(v);const S=new Map,k=new Map,C=new Map,w=new Map,P=new Map,x=new Map,E=new Map,I=new Map,F=new Map,A=new Map,M=new Map,O=new Map,L=new Map,N=new Map,T=e=>(t,i,r)=>()=>Q(r)(e,t,i);t.runCampaignPageSubscribers=T(S),t.runCampaignProductSubscribers=T(k),t.runCampaignShoppingCartSubscribers=T(w),t.runCompareSubscribers=T(P),t.runNavigationSubscribers=function(){return T([Array.from(x.values()),Array.from(N.values())].flat())(...arguments)},t.runNavigationCategorySubscribers=T(E),t.runPredictiveBasketSubscribers=T(I),t.runRecommendationSubscribers=T(F),t.runRecordsSubscribers=T(A),t.runSearchSubscribers=function(){return T([Array.from(M.values()),Array.from(N.values())].flat())(...arguments)},t.runSimilarSubscribers=T(O),t.runSuggestSubscribers=T(L),t.runCampaignRedirectSubscribers=(e,t,i,r)=>()=>function(e,t,i,r,n){if(!e.size)return;const s=r(t);for(const r of s){const s={campaign:r,result:t,requestInfo:i};for(const t of e.values())if(n){if(!1===t(s))return console.log("campaignRedirectSubscribers: Pipeline interrupted"),!1}else try{if(!1===t(s))return console.log("campaignRedirectSubscribers: Pipeline interrupted"),!1}catch(e){console.error("Error in custom redirect handler. Skipping to next.",e)}}return!0}(C,e,t,i,r),t.runCampaignPageTransformers=(e,t,i,r)=>()=>re("CampaignPage",R,t,i,e,r),t.runCampaignProductTransformers=(e,t,i,r)=>()=>re("CampaignProduct",B,t,i,e,r),t.runCampaignShoppingCartTransformers=(e,t,i,r)=>()=>re("CampaignShoppingCart",D,t,i,e,r),t.runCompareTransformers=(e,t,i,r)=>()=>re("Compare",j,t,i,e,r),t.runNavigationTransformers=(e,t,i,r)=>()=>re("Navigation",H,t,i,e,r),t.runNavigationCategoryTransformers=(e,t,i,r)=>()=>re("NavigationCategory",V,t,i,e,r),t.runPredictiveBasketTransformers=(e,t,i,r)=>()=>re("PredictiveBasket",U,t,i,e,r),t.runRecommendationTransformers=(e,t,i,r)=>()=>re("Recommendation",W,t,i,e,r),t.runRecordsTransformers=(e,t,i,r)=>()=>re("Records",K,t,i,e,r),t.runSearchTransformers=(e,t,i,r)=>()=>re("Search",z,t,i,e,r),t.runSimilarTransformers=(e,t,i,r)=>()=>re("Similar",$,t,i,e,r),t.runSuggestTransformers=(e,t,i,r)=>()=>re("Suggest",G,t,i,e,r),t.unsafeMergeTeaserCampaignsImpl=e=>t=>{const i=e(t);if(!i.length)return t;const r=t.hits,n=t.hits.slice(0);return i.forEach((e=>{if(!e.position)return;const t=n.indexOf(r[e.position-1]);n.splice(t,0,e)})),Object.assign({},t,{hits:n})},t.unsafePerformEffectWK=e=>e();const q=new Map,R=[],B=[],D=[],j=[],H=[],V=[],U=[],W=[],K=[],z=[],$=[],G=[];function J(e,t){const i=Array.from({length:24},(()=>Math.floor(10*Math.random()))).join("");return q.set(i,e),e.set(i,t),i}function Z(e){const t=q.get(e);return t&&t.delete(e),q.delete(e)}const X=e=>e?Y:ee,Q=e=>e?Y:te,Y=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;re(...i)))},ee=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r2?i-2:0),n=2;n{try{t(...r)}catch(t){console.error("Error in ".concat(e," handler. Skipping to next."),t)}}))}function re(e,t,i,r,n,s){return t.reduce(((t,i,a)=>{let o;if(s)o=i(t,r);else try{o=i(t,r)}catch(i){return console.error("Error in custom ".concat(e," transformer registered at index ").concat(a,". Skipping to next."),i),t}return null==o?(n("".concat(e," transformer registered at index ").concat(a," did not return a value.\n").concat(i.toString())),t):o}),i)}function ne(e,t,r,n){if(n){const r=i(8675),n=le(e,t);return void r.internalRouting.sandboxed.invokeHistoryWriteListener(n)}const s=r(t),a=le(e,s.requestInfo);if(s.initial)return void window.history.replaceState(a,"");const o=i(8675).internalRouting.invokeUrlParamOptionsListener()||{},c=function(e,t){const i=new URLSearchParams;if(!e)return i;const r=Object.assign({allow:[],block:["activeAbTests","followSearch","purchaserId"],blockFilters:[],keyMapping:{},order:["query","filters","sortItems"],postStringifier:void 0,stringifiers:{}},t),n=()=>!0,s=Object.keys(ce).filter(r.allow.length?e=>r.allow.includes(e):n).filter(r.block.length?e=>!r.block.includes(e):n),a=new Set;r.order.forEach((e=>{s.includes(e)&&a.add(e)})),s.forEach((e=>{a.add(e)}));const o=[],c=e=>function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;o.push({key:i,value:t})},u=t=>"filters"===t?e[t].filter((e=>!r.blockFilters.includes(e.name))):e[t];a.forEach((t=>{if(!e.hasOwnProperty(t))return;("function"==typeof r.stringifiers[t]?r.stringifiers[t]:ce[t])(c(t),u(t))}));const l="function"==typeof r.postStringifier?r.postStringifier(o):o;if(!Array.isArray(l))return void console.error("'postStringifier' did not return an array. Was: ".concat(l));return l.forEach((e=>{let{key:t,value:n}=e;return i.append(r.keyMapping[t]||t,n)})),i}(s.params,o),u=c.size?"?"+c.toString():window.location.pathname;window.history.pushState(a,"",u)}function se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object.assign({},e,{navigationOptions:Object.assign({},e.navigationOptions,{requestOptions:Object.assign({},(e.navigationOptions||{}).requestOptions,{origin:void 0})})});return{requestInfo:t,params:t.navigationParams,initial:t.navigationOptions.initial}}function ae(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object.assign({},e,{searchOptions:Object.assign({},e.searchOptions,{requestOptions:Object.assign({},(e.searchOptions||{}).requestOptions,{origin:void 0})})});return{requestInfo:t,params:t.searchParams,initial:t.searchOptions.initial}}t.processHistoryNavigation=e=>t=>i=>()=>ne(e,t,se,i||t&&t.navigationOptions&&!0===t.navigationOptions.withoutHistory),t.processHistorySearch=e=>t=>i=>()=>ne(e,t,ae,i||t&&t.searchOptions&&!0===t.searchOptions.withoutHistory);const oe=(e,t)=>e(t),ce={activeAbTests(e,t){Object.entries(t).forEach((t=>e("".concat(t[0],":").concat(t[1]),"activeAbTest")))},advisorStatus(e,t){e(t.id+"-"+t.answerPath)},articleNumberSearch(e,t){"DETECT"!==t&&e(t)},excludeProductsNotInRange:oe,filters(e,t){const i=e=>e.replaceAll("%","%25").replaceAll("/","%2F").replaceAll("+","%2B");t.forEach((t=>{let r=t.values.map(((e,t)=>{let r="";t>0&&(r="or"===e.type?"~~~":"___");const n=Array.isArray(e.value)?e.value.map(i).join("/"):e.value;return r+(e.exclude?"!"+n:n)})).join("");"and"===t.values[0].type&&(r="___"+r),e(t.name+":"+r,t.substring?"substringFilter":"filter")}))},followSearch:oe,hitsPerPage:oe,location(e,t){e(t.latitude,"latitude"),e(t.longitude,"longitude")},marketIds(e,t){t.forEach((t=>e(t,"marketId")))},maxCountVariants:oe,maxDistance:oe,page:oe,purchaserId:oe,query(e,t){t&&"*"!==t&&e(t)},searchField:oe,sortItems(e,t){t.forEach((t=>e(t.name+":"+t.order,"sort")))},splitDocumentsAt:oe};function ue(e){const t=e.result,i=e.requestInfo;(factfinder.config.get().appConfig||{}).categoryPage?factfinder.response.dispatch.navigationBeforeTransform(t,i):factfinder.response.dispatch.searchBeforeTransform(t,i)}function le(e,t){return{result:e,requestInfo:t}}t.setInitialNavigation=e=>{const t=e||{};return t.navigationOptions=t.navigationOptions||{},t.navigationOptions.initial=!0,t},t.setInitialSearch=e=>{const t=e||{};return t.searchOptions=t.searchOptions||{},t.searchOptions.initial=!0,t},i(8675).internalRouting.sandboxed.setPopstateListener(ue),window.addEventListener("popstate",(e=>{let{state:t}=e;(factfinder.config.get().appConfig||{}).sandboxMode||ue(t)}))},5645:function(e,t,i){"use strict";var r=i(6657),n=i(1287),s=i(1573),a=i(3139),o=i(8850),c=i(1526),u=i(4884),l=i(8164),d=i(1184),p=i(2024),h=function(e){return c.filter((function(e){return"REDIRECT"===e.flavour}))(e.campaigns)},f=function(e){return r.unsafeMergeTeaserCampaignsImpl((function(e){return o.bind(o.bindArray)(e.campaigns)((function(e){return p.fromFFIMaybe([])(u.mapFlipped(p.functorFFIMaybe)(e.feedbackTexts)(c.filter((function(e){return!0===e.teaser}))))}))}))(e)},m=function(e){return function(t){return function(i){return!0===p.fromFFIMaybe(!1)(o.bind(p.bindFFIMaybe)(t.requestOptions)((function(e){return e.requestOnly})))?a.pure(l.applicativeEffect)(i):e(t)(i)}}},g=m((function(e){return function(t){return function(){var i=r.runCampaignPageTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsCampaignPageSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runCampaignPageSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),b=m((function(e){return function(t){return function(){var i=r.runCampaignProductTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsCampaignProductSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runCampaignProductSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),v=m((function(e){return function(t){return function(){var i=r.runCampaignShoppingCartTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsCampaignShoppingCartSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runCampaignShoppingCartSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),y=m((function(e){return function(t){return function(){var i=r.runCompareTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsCompareSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runCompareSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),_=m((function(e){return function(t){return function(){var i=r.runNavigationCategoryTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsNavigationCategorySubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runNavigationCategorySubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),S=m((function(e){return function(t){return function(){var i=r.runPredictiveBasketTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsPredictiveBasketSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runPredictiveBasketSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),k=m((function(e){return function(t){return function(){var i=r.runRecommendationTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsRecommendationSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runRecommendationSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),C=m((function(e){return function(t){return function(){var i=r.runRecordsTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runRecordsSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),w=m((function(e){return function(t){return function(){var i=r.runSimilarTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsSimilarSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runSimilarSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),P=function(e){return function(t){return function(){n.setFieldRoles(e.fieldRoles)();var i=r.runSuggestTransformers(d.emitError,e,t,s.sysConfig.debug)();r.runElementsSuggestSubscribers(i,t,s.sysConfig.debug)(),r.runSuggestSubscribers(i,t,s.sysConfig.debug)();return i}}},x=m((function(e){return function(t){return P(t)(a.pure(p.applicativeFFIMaybe)(e))}})),E=function(e){return function(t){return function(){var i=r.runSearchTransformers(d.emitError,e,t,s.sysConfig.debug)();r.setLastResultSearch(i)(),r.runElementsSearchSubscribers(i,t,s.sysConfig.debug)(),r.runSearchSubscribers(i,t,s.sysConfig.debug)();return i}}},I=function(e){return function(t){return function(){if(!1===r.runCampaignRedirectSubscribers(e,t,h,s.sysConfig.debug)())return e;n.setFieldRoles(e.fieldRoles)();var i=f(e);r.processHistorySearch(i)(t)(s.sysConfig.sandboxMode)();return E(i)(t)()}}},F=function(e){return function(t){return function(){var i=r.runNavigationTransformers(d.emitError,e,t,s.sysConfig.debug)();r.setLastResultNavigation(i)(),r.runElementsNavigationSubscribers(i,t,s.sysConfig.debug)(),r.runNavigationSubscribers(i,t,s.sysConfig.debug)();return i}}},A=function(e){return function(t){return function(){if(!1===r.runCampaignRedirectSubscribers(e,t,h,s.sysConfig.debug)())return e;n.setFieldRoles(e.fieldRoles)();var i=f(e);r.processHistoryNavigation(i)(t)(s.sysConfig.sandboxMode)();return F(i)(t)()}}};e.exports={elementsSubscribeNavigation:function(e){return r.elementsSubscribeNavigationImpl(s.sysConfig.autoFetch)(e)},elementsSubscribeSearch:function(e){return r.elementsSubscribeSearchImpl(s.sysConfig.autoFetch)(e)},elementsSubscribeSearchAndNavigation:function(e){return r.elementsSubscribeSearchAndNavigationImpl(s.sysConfig.autoFetch)(e)},subscribeNavigation:function(e){return r.subscribeNavigationImpl(s.sysConfig.autoFetch)(e)},subscribeSearch:function(e){return r.subscribeSearchImpl(s.sysConfig.autoFetch)(e)},subscribeSearchAndNavigation:function(e){return r.subscribeSearchAndNavigationImpl(s.sysConfig.autoFetch)(e)},dispatchNavigation:function(e,t){return r.unsafePerformEffectWK(A(e)(t))},dispatchNavigationBeforeTransform:function(e,t){return r.unsafePerformEffectWK(F(e)(t))},dispatchSearch:function(e,t){return r.unsafePerformEffectWK(I(e)(t))},dispatchSearchBeforeTransform:function(e,t){return r.unsafePerformEffectWK(E(e)(t))},dispatchSuggest:function(e,t){return r.unsafePerformEffectWK(P(e)(t))},dispatchSsrNavigation:function(e,t){return r.unsafePerformEffectWK((function(){a.when(l.applicativeEffect)("SSR_ONLY"===s.sysConfig.autoFetch)(r.enableAutoFetching)();return A(e)(r.setInitialNavigation(t))()}))},dispatchSsrSearch:function(e,t){return r.unsafePerformEffectWK((function(){a.when(l.applicativeEffect)("SSR_ONLY"===s.sysConfig.autoFetch)(r.enableAutoFetching)();return I(e)(r.setInitialSearch(t))()}))},successHandlerCampaignPage:g,successHandlerCampaignProduct:b,successHandlerCampaignShoppingCart:v,successHandlerCompare:y,successHandlerNavigation:function(e){return function(t){return!0===p.fromFFIMaybe(!1)(o.bind(p.bindFFIMaybe)(e.navigationOptions)((function(e){return o.bind(p.bindFFIMaybe)(e.requestOptions)((function(e){return e.requestOnly}))})))?a.pure(l.applicativeEffect)(t):A(t)(a.pure(p.applicativeFFIMaybe)(e))}},successHandlerNavigationCategory:_,successHandlerPredictiveBasket:S,successHandlerRecommendation:k,successHandlerRecords:C,successHandlerSearch:function(e){return function(t){return!0===p.fromFFIMaybe(!1)(o.bind(p.bindFFIMaybe)(e.searchOptions)((function(e){return o.bind(p.bindFFIMaybe)(e.requestOptions)((function(e){return e.requestOnly}))})))?a.pure(l.applicativeEffect)(t):I(t)(a.pure(p.applicativeFFIMaybe)(e))}},successHandlerSimilar:w,successHandlerSuggest:x,elementsSubscribeCampaignPage:r.elementsSubscribeCampaignPage,elementsSubscribeCampaignProduct:r.elementsSubscribeCampaignProduct,elementsSubscribeCampaignShoppingCart:r.elementsSubscribeCampaignShoppingCart,elementsSubscribeCompare:r.elementsSubscribeCompare,elementsSubscribeNavigationCategory:r.elementsSubscribeNavigationCategory,elementsSubscribePredictiveBasket:r.elementsSubscribePredictiveBasket,elementsSubscribeRecommendation:r.elementsSubscribeRecommendation,elementsSubscribeRecords:r.elementsSubscribeRecords,elementsSubscribeSimilar:r.elementsSubscribeSimilar,elementsSubscribeSuggest:r.elementsSubscribeSuggest,elementsUnsubscribe:r.elementsUnsubscribe,subscribeCampaignPage:r.subscribeCampaignPage,subscribeCampaignProduct:r.subscribeCampaignProduct,subscribeCampaignRedirect:r.subscribeCampaignRedirect,subscribeCampaignShoppingCart:r.subscribeCampaignShoppingCart,subscribeCompare:r.subscribeCompare,subscribeNavigationCategory:r.subscribeNavigationCategory,subscribePredictiveBasket:r.subscribePredictiveBasket,subscribeRecommendation:r.subscribeRecommendation,subscribeRecords:r.subscribeRecords,subscribeSimilar:r.subscribeSimilar,subscribeSuggest:r.subscribeSuggest,unsubscribe:r.unsubscribe,transformCampaignPage:r.transformCampaignPage,transformCampaignProduct:r.transformCampaignProduct,transformCampaignShoppingCart:r.transformCampaignShoppingCart,transformCompare:r.transformCompare,transformNavigation:r.transformNavigation,transformNavigationCategory:r.transformNavigationCategory,transformPredictiveBasket:r.transformPredictiveBasket,transformRecommendation:r.transformRecommendation,transformRecords:r.transformRecords,transformSearch:r.transformSearch,transformSimilar:r.transformSimilar,transformSuggest:r.transformSuggest,disableAutoFetching:r.disableAutoFetching}},464:function(e,t,i){function r(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let t="";for(let i=0;i<30;++i)t+=e[Math.floor(62*Math.random())];return t}t.getOrCreateSidImpl=e=>t=>()=>{if(e)return e;const n=(factfinder.config.get().appConfig||{}).sandboxMode;let s;if(t)s=t;else{const e=function(e){try{return JSON.parse(e)}catch(e){return}}(n?i(8675).internalRouting.sandboxed.requestSessionData():localStorage.ffwebco);if(e&&"string"==typeof e.sid&&"string"==typeof e.timestamp){const{sid:t,timestamp:i}=e;s=Date.now()-parseInt(i,36)>864e5?r():t}else s=r()}const a=JSON.stringify({sid:s,timestamp:Date.now().toString(36)});return n?i(8675).internalRouting.sandboxed.broadcastSessionData(a):localStorage.ffwebco=a,s},t.setSIDImpl=e=>t=>Object.assign({},t,{sid:e})},6296:function(e,t,i){"use strict";var r=i(464),n=i(1287),s=i(8850),a=i(2024),o=r.setSIDImpl;e.exports={getOrCreateSid:function(e){return r.getOrCreateSidImpl(e)(s.bind(a.bindFFIMaybe)(n.config.val.ffParams)((function(e){return e.sid})))},setSID:o}},6496:function(e,t){t.merge=e=>t=>Object.assign({},e,t)},8455:function(e,t,i){"use strict";var r=i(6496);e.exports={merge:r.merge}},517:function(e,t){t.fromFFIMaybe=e=>t=>void 0===t?e:t,t.toFFIMaybe=e=>e,t.undefined=void 0,t.mapFFIMaybeImpl=e=>t=>void 0===t?t:e(t),t.applyFFIMaybeImpl=e=>t=>void 0===t?t:e(t),t.bindFFIMaybeImpl=e=>t=>void 0===e?e:t(e),t.pureFFIMaybeImpl=e=>e,t.eqImpl=e=>t=>e===t},2024:function(e,t,i){"use strict";var r=i(517),n=i(596),s={map:r.mapFFIMaybeImpl},a={eq:r.eqImpl},o={apply:r.applyFFIMaybeImpl,Functor0:function(e){return s}},c={bind:r.bindFFIMaybeImpl,Apply0:function(e){return o}},u={pure:r.pureFFIMaybeImpl,Apply0:function(e){return o}};e.exports={fromMaybe:function(e){return e instanceof n.Just?r.toFFIMaybe(e.value0):r[void 0]},functorFFIMaybe:s,applyFFIMaybe:o,bindFFIMaybe:c,applicativeFFIMaybe:u,eqFFIMaybe:a,fromFFIMaybe:r.fromFFIMaybe,toFFIMaybe:r.toFFIMaybe,undefined:r[void 0],mapFFIMaybeImpl:r.mapFFIMaybeImpl,applyFFIMaybeImpl:r.applyFFIMaybeImpl,bindFFIMaybeImpl:r.bindFFIMaybeImpl,pureFFIMaybeImpl:r.pureFFIMaybeImpl,eqImpl:r.eqImpl}},2409:function(e,t){t.unsafeToArray=e=>e},2877:function(e,t,i){"use strict";var r=i(2409),n=i(9704),s=i(7860),a=i(416),o={requireArg:function(e){return function(t){return s.requireArgImpl(e)(s.nonEmptyArray(t)(s.any("")))}}};e.exports={requireArgNonEmptyArray:o,validateMapNonEmptyArrayA:function(e){return{validateMap:function(t){return n.traverse(n.traversableArray)(a.applicativeFF)(a.validate(e))(r.unsafeToArray(t))}}}}},5995:function(e,t){t.mapFFImpl=e=>t=>t.then(e),t.applyFFImpl=e=>t=>Promise.all([e,t]).then((e=>e[0](e[1]))),t.bindFFImpl=e=>t=>e.then(t),t.pureFFImpl=e=>Promise.resolve(e)},416:function(e,t,i){"use strict";var r=i(5995),n={map:r.mapFFImpl},s={apply:r.applyFFImpl,Functor0:function(e){return n}},a={bind:r.bindFFImpl,Apply0:function(e){return s}},o={pure:r.pureFFImpl,Apply0:function(e){return s}};e.exports={requireArg:function(e){return e.requireArg},requireArgSync:function(e){return e.requireArgSync},checkOptionalArg:function(e){return e.checkOptionalArg},validate:function(e){return e.validate},validateSync:function(e){return e.validateSync},validateMap:function(e){return e.validateMap},validateOptional:function(e){return e.validateOptional},functorFF:n,applyFF:s,bindFF:a,applicativeFF:o}},2207:function(t,i,r){"use strict";r.d(i,{c:function(){return k},u:function(){return S}});var n={};r.r(n),r.d(n,{env:function(){return g},filterBuilders:function(){return f},formatters:function(){return m},toNavigationParams:function(){return b}});var s=r(8687),a=r(9707);const o={dispatchSuggestClick:e=>u.suggestClick.values().reduce(((t,i)=>!1!==i(e)&&t),!0),dispatchSuggestDetail:e=>{var t;return null===(t=u.suggestDetail)||void 0===t?void 0:t.call(u,e)},dispatchSuggestUnmapped:e=>{var t;return null===(t=u.suggestUnmapped)||void 0===t?void 0:t.call(u,e)},addSuggestHideListener:e=>u.suggestHide.add(e),removeSuggestHideListener:e=>u.suggestHide.delete(e),dispatchSuggestHide:e=>u.suggestHide.forEach((t=>t(e)))},c={addSuggestClickListener:(0,a.z)((e=>{u.suggestClick.add(e)})),setSuggestDetailListener:(0,a.z)((e=>{u.suggestDetail=e})),setSuggestUnmappedListener:(0,a.z)((e=>{u.suggestUnmapped=e}))},u={suggestClick:new Set,suggestDetail:void 0,suggestUnmapped:void 0,suggestHide:new Set};var l=r(8675),d=r(9312),p=r.n(d);const h=(e,t,i)=>"".concat(e," - ").concat(t," ").concat(i);p().registerHelper("$",(function(e,t){var i;const r=null===(i=S.getConfig().appConfig)||void 0===i?void 0:i.formatting;if(!r)return e;const n=Number.isInteger(t)?{...r.formatOptions,maximumFractionDigits:t,minimumFractionDigits:t}:r.formatOptions;return Intl.NumberFormat(r.locale,n).format(e)})),p().registerHelper("$dec",(function(e,t){var i;const r=null===(i=S.getConfig().appConfig)||void 0===i?void 0:i.formatting;if(!r)return e;const n=Number.isInteger(t)?{maximumFractionDigits:t,minimumFractionDigits:t}:{};return Intl.NumberFormat(r.locale,n).format(e)})),p().registerHelper("$bctFilter",(function(){var e,t;const{item:i,facet:r}=this,n=S.getConfig().appConfig,s=null==n?void 0:n.formatting;if(!s)return i.text;if("filter"!==i.type)return i.text;if(r&&!r.unit)return i.text;if(!r&&i.associatedFieldName!==(null==n||null===(e=n.fieldRoles)||void 0===e?void 0:e.price))return i.text;const a=Intl.NumberFormat(s.locale,s.formatOptions).formatToParts(.1),o=a.find((e=>"currency"===e.type));if(!o||r&&r.unit!==o.value)return i.text;const c=a.find((e=>"fraction"===e.type)),u=null!==(t=null==c?void 0:c.value.length)&&void 0!==t?t:2,l=Intl.NumberFormat(s.locale,{minimumFractionDigits:u,maximumFractionDigits:u}),[[d],[p]]=Array.from(i.value.matchAll(/\d+(\.\d+)?/g));return h(l.format(d),l.format(p),o.value)})),p().registerHelper("$facetElement",(function(){var e,t;const i=this.element,r=this.facet||this.group;if(null==r||!r.unit)return null==i?void 0:i.text;const n=null===(e=S.getConfig().appConfig)||void 0===e?void 0:e.formatting;if(!n)return null==i?void 0:i.text;const s=Intl.NumberFormat(n.locale,n.formatOptions).formatToParts(.1),a=s.find((e=>"currency"===e.type));if(!a||r.unit!==a.value)return i.text;const o=s.find((e=>"fraction"===e.type)),c=null!==(t=null==o?void 0:o.value.length)&&void 0!==t?t:2,u=Intl.NumberFormat(n.locale,{minimumFractionDigits:c,maximumFractionDigits:c});return"SLIDER"===r.filterStyle?h(u.format(i.selectedMinValue),u.format(i.selectedMaxValue),a.value):i.text.replaceAll(/\d+(\.\d+)?/g,(e=>u.format(e)))+" "+a.value}));const f={categoryFilter(e,t){if(!e||"string"!=typeof e)throw Error("'name' must be a non-empty string. Was: '".concat(e,"' (Type: ").concat(typeof e,")"));if(!Array.isArray(t)||0===t.length)throw Error("'path' must be a non-empty array. Was: '".concat(t,"'"));return{name:e,substring:!1,values:[{exclude:!1,type:"or",value:t}]}},filter(e,t){if(!e||"string"!=typeof e)throw Error("'name' must be a non-empty string. Was: '".concat(e,"' (Type: ").concat(typeof e,")"));if(!t)throw Error("'values' must not be empty. Was: '".concat(t,"'"));return{name:e,substring:!1,values:(Array.isArray(t)?t:[t]).map((e=>({exclude:!1,type:"or",value:e})))}}},m={add(e,t){p().helpers.hasOwnProperty(e)?console.warn("Formatter '".concat(e,"' already exists. Custom formatter not added.")):p().registerHelper(e,(function(){for(var e=arguments.length,i=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};const s=new URLSearchParams(window.location.search),a={activeAbTests:e=>{let[t]=e;const i={};return t.values.map((e=>{const[t,r]=e.split(":");return i[t]=r})),i},advisorStatus:e=>{let[t]=e;const[i,r]=t.values[0].split(/-(?=[^-]+$)/);return{answerPath:r,id:i}},articleNumberSearch:e=>{let[t]=e;const i=["DETECT","ALWAYS","NEVER"],r=t.values[0].toUpperCase();if(i.includes(r))return r;console.warn("Invalid input to 'articleNumberSearch'. Must be one of: ".concat(JSON.stringify(i),". Was: ").concat(r))},excludeProductsNotInRange:function(e){let[t]=e;return"true"===t.values[0].toLowerCase()},filters:(e,t)=>{const i=[],r=e.find((e=>{let{key:t}=e;return"filter"===t})),n=e.find((e=>{let{key:t}=e;return"substringFilter"===t}));return r&&i.push(s(r,!1)),n&&i.push(s(n,!0)),i.flat();function s(e,i){let{values:r}=e;return r.map((e=>{const[r,n]=e.split(/:(.*)/),s=n.split(/(?=~~~|___)/).map((e=>{const[i,n,s,a]=e.match(/^(~~~|___)?(!)?(.+)$/);return{exclude:"!"===s,type:"___"===n?"and":"or",value:r===t?a.split("/").map(decodeURIComponent):a}}));return{name:r,substring:i,values:s}}))}},followSearch:l,hitsPerPage:u,location:e=>{var t,i;const r=null===(t=e.find((e=>{let{key:t}=e;return"latitude"===t})))||void 0===t?void 0:t.values[0],n=null===(i=e.find((e=>{let{key:t}=e;return"longitude"===t})))||void 0===i?void 0:i.values[0];if(r&&n)return{latitude:parseFloat(r),longitude:parseFloat(n)}},marketIds:function(e){let[t]=e;return t.values},maxCountVariants:u,maxDistance:function(e){let[t]=e;return parseFloat(t.values[0])},page:u,purchaserId:l,query:l,searchField:l,sortItems:e=>{let[t]=e;return t.values.map((e=>{const[t,i]=e.split(":");return{name:t,order:i}}))},splitDocumentsAt:u},o={activeAbTests:["activeAbTest"],filters:["filter","substringFilter"],location:["latitude","longitude"],marketIds:["marketId"],sortItems:["sort"]},c={};return Object.entries(a).forEach((a=>{let[u,l]=a;if("query"===u&&(c[u]="*"),t.includes(u))return;const d=(o[u]||[u]).flatMap((e=>{const t=r[e]||e;return s.has(t)?{key:e,values:s.getAll(t)}:[]}));if(d.length){const t="filters"===u,r=function(t,r,n){if(!t)return r;try{return n?t(r,i):t(r)}catch(t){return console.warn("Error in pre-parser.",e),r}}(n[u],d,t),s=t?l(r,i):l(r);s&&(c[u]=s)}})),c;function u(e){let[t]=e;return parseInt(t.values[0])}function l(e){let[t]=e;return t.values[0]}}},b=e=>{let{articleNumberSearch:t,query:i,searchField:r,...n}=e;return n};var v=r(6041);const y={...s.publicCore,version:"4.0.8",notifications:c,routing:l.publicRouting,utils:{...n}},_=new CustomEvent("_ffSdkVersion",{bubbles:!0,cancelable:!1});_.setSdkVersion=e=>{y.sdk=e},document.dispatchEvent(_);const S={...s.internalCore,notifications:o,routing:l.internalRouting},k=Object.freeze(y);window.factfinder=k;let C=!1;const w=new CustomEvent("ffCoreReady",{bubbles:!0,cancelable:!1});if(w.factfinder=k,w.init=e=>{if(C)throw Error("'init' must not be called multiple times.");s.internalCore.init(e),C=!0},w.initialSearch=(e,t)=>{if(!C)throw Error("Must call 'init' before 'initialSearch'.");if(!e)throw Error("searchOrNavigationParams is required.");return(0,v.hT)(e,"initialSearch",{...t,initial:!0})},document.dispatchEvent(w),!C)throw Error("'init' was not called during 'ffCoreReady' event.")},2240:function(e,t,i){"use strict";i.d(t,{D:function(){return s},l:function(){return n}});var r=i(2207);const n=Object.freeze({CampaignPage:"CampaignPage",CampaignProduct:"CampaignProduct",CampaignShoppingCart:"CampaignShoppingCart",Compare:"Compare",Navigation:"Navigation",NavigationCategory:"NavigationCategory",PredictiveBasket:"PredictiveBasket",Recommendation:"Recommendation",Search:"Search",Similar:"Similar",Suggest:"Suggest",SearchAndNavigation:"SearchAndNavigation"}),s=function(){for(var e=arguments.length,t=new Array(e),i=0;iclass extends e{constructor(){super(),this._subscriptionKeys=void 0,this._subscribedTopics=void 0}connectedCallback(){if("function"==typeof super.connectedCallback&&super.connectedCallback(),!this._subscriptionKeys&&!1!==this.subscribe){const e=this.topic?[this.topic]:t;a(this,e)}}update(){const e=this.topic?[this.topic]:t;!1===this.subscribe?o(this):u(e,this._subscribedTopics)||c(this,e),"function"==typeof super.update&&super.update()}disconnectedCallback(){"function"==typeof super.disconnectedCallback&&super.disconnectedCallback(),this._subscriptionKeys&&o(this)}_subscriptionCallback(){throw new Error("'_subscriptionCallback' function not implemented")}}},a=(e,t)=>{const i=t.filter((t=>"function"==typeof r.u["elementsSubscribe".concat(t)]||(console.error("Element's subscription target '".concat(t,"' does not exist."),e),!1)));e._subscriptionKeys=i.map((t=>r.u["elementsSubscribe".concat(t)](e._subscriptionCallback.bind(e)))),e._subscribedTopics=i},o=e=>{var t;null===(t=e._subscriptionKeys)||void 0===t||t.forEach((e=>r.u.elementsUnsubscribe(e))),e._subscriptionKeys=void 0,e._subscribedTopics=void 0},c=(e,t)=>{e._subscribedTopics&&o(e),a(e,t)},u=(e,t)=>e.length===t.length&&e.every((e=>t.includes(e)))&&t.every((t=>e.includes(t)))},3940:function(e,t,i){"use strict";i.d(t,{X:function(){return r}});const r=function(){let e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((e,t)=>{const i=t(e);return i===e||e.prototype instanceof i?e:i}),e)}},7854:function(e,t,i){"use strict";i.d(t,{E:function(){return r}});const r=()=>e=>class extends e{__transitionEnd(e){const t=e&&e.nodeName?e:e.currentTarget;try{t.__transitionActive__=!1,t.removeEventListener("transitionend",this.__transitionEnd);"0px"!==t.style.height?(this._updateTransition(t,!1),t.style.height="",t.style.overflow="",setTimeout((()=>this._updateTransition(t,!0)))):this._updateTransition(t,!0)}catch(e){console.log(e)}finally{if(t&&t.__collapseCallback__){const e=t.__collapseCallback__;delete t.__collapseCallback__,setTimeout((()=>{try{e()}catch(e){console.log(e)}}),16)}}}_updateTransition(e,t){e.style["transition-duration"]=!0===t?"":"0ms"}_isDisplayed(e){const t=e.getBoundingClientRect();for(let e in t)if(0!==t[e])return!0;return!1}_hide(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;try{"0px"!==e.style.height&&this._doTransition(e,t,"0px",i)}catch(e){console.log(e)}}_show(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;try{this._doTransition(e,t,"auto",i)}catch(e){console.log(e)}}_toggle(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;e.hasAttribute("opened")?this._hide(e,t,i):this._show(e,t,i)}_doTransition(e,t,i,r){if(e.__transitionActive__)return;e.__transitionActive__=!0,r&&(e.__collapseCallback__=r);const n=window.getComputedStyle(e),s=n["transition-duration"]||n.transitionDuration;if(t=s&&"0"!==s.replace(/\D/g,"")&&t,this._updateTransition(e,!1),t&&this._isDisplayed(e)){const r=n.height;if("auto"===i&&(e.style.height="",i=n.height),e.style.height=r,i===r)return e.style.height="",e.__transitionActive__=!1,delete e.__collapseCallback__,void this._updateTransition(e,t);e.offsetHeight;this._updateTransition(e,t),e.addEventListener("transitionend",this.__transitionEnd.bind(this))}if("0px"===i?(e.style.overflow="hidden",e.removeAttribute("opened")):e.setAttribute("opened",""),e.style.height=i,!t||!this._isDisplayed(e)){e.offsetHeight;this.__transitionEnd(e)}}_showChecked(e,t,i){e&&this._show(e,t,i)}_hideChecked(e,t,i){e&&this._hide(e,t,i)}_toggleChecked(e,t,i){e&&this._toggle(e,t,i)}}},8486:function(e,t,i){"use strict";i.d(t,{h:function(){return r}});const r=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>class extends t{updated(){super.updated(...arguments),e&&this.resolveDeferredAttributes()}resolveDeferredAttributes(){const e=this.getAttribute("data-ffw-defer");e&&e.split(",").forEach((e=>{const t="data-ffw-defer-".concat(e),i="data-defer-".concat(e);this.querySelectorAll("[data-ffw-defer-".concat(e,"],[data-defer-").concat(e,"]")).forEach((r=>{const n=r.getAttribute(t)||r.getAttribute(i);n&&r.setAttribute(e,n)}))}))}}}},7982:function(e,t,i){"use strict";i.d(t,{d:function(){return r}});const r=()=>e=>class extends e{trace(e){e=this._createMsg("trace",e),console.trace(e)}info(e){e=this._createMsg("info",e),console.info(e)}debug(e){e=this._createMsg("debug",e),console.debug(e)}warn(e){e=this._createMsg("warn",e),console.warn(e)}error(e){e=this._createMsg("error",e),console.error(e)}_createMsg(e,t){return"".concat(e.toUpperCase()," ").concat(this.constructor.is,": ").concat(t)}}},7361:function(e,t,i){"use strict";i.d(t,{z:function(){return r}});const r=()=>e=>class extends e{connectedCallback(){"function"==typeof super.connectedCallback&&super.connectedCallback(),this.hasAttribute("unresolved")&&this.removeAttribute("unresolved")}}},1136:function(e,t,i){"use strict";i.r(t),i.d(t,{AsnRemoveAllFilters:function(){return c}});var r=i(2207),n=i(3940),s=i(4474),a=i(2240),o=i(6041);class c extends((0,n.X)([(0,a.D)(a.l.SearchAndNavigation)],s.jD)){static get is(){return"ff-asn-remove-all-filters"}static get properties(){return{showAlways:{type:Boolean,attribute:"show-always"},removeParams:{type:Boolean,attribute:"remove-params"}}}constructor(){super(),this.showAlways=!1,this.removeParams=!1,this._searchParams=void 0}connectedCallback(){this.hideSelf(),super.connectedCallback(),this.addEventListener("click",u)}_subscriptionCallback(e){this._searchParams=e.searchParams,!1===this.showAlways&&!function(e){var t,i;if(!e.filters)return!1;const n=null===(t=r.u.getConfig().appConfig)||void 0===t?void 0:t.categoryPage;if(0===(null!==(i=null==n?void 0:n.length)&&void 0!==i?i:0))return!0;if(e.filters.length>n.length)return!0;return!e.filters.every((e=>n.findIndex((t=>{return r=t,(i=e).name===r.name&&i.values.length===r.values.length&&i.values.every((e=>r.values.find((t=>function(e,t){const i=e.value,r=t.value;return i===r||Array.isArray(i)&&Array.isArray(r)&&i.length===r.length&&i.every(((e,t)=>e===r[t]))}(e,t)))));var i,r}))>-1))}(e.searchParams)?this.hideSelf():this.showSelf()}}function u(){var e;const t=null===(e=r.u.getConfig().appConfig)||void 0===e?void 0:e.categoryPage;if(this.removeParams){const e={query:this._searchParams.query};t&&(e.filters=t),(0,o.hT)(e,this)}else{const{filters:e,...i}=this._searchParams;t&&(i.filters=t),delete i.page,(0,o.hT)(i,this)}}window.customElements.define(c.is,c)},5220:function(e,t,i){"use strict";i.r(t),i.d(t,{Asn:function(){return ie}});var r=i(168),n=i(3282),s=i(3940),a=i(9890),o=i(8477);const c=new WeakMap,u=(0,a.XM)((e=>t=>{if(!(t instanceof a.nt))throw new Error("cache can only be used in text bindings");let i=c.get(t);void 0===i&&(i=new WeakMap,c.set(t,i));const r=t.value;if(r instanceof o.R){if(e instanceof a.js&&r.template===t.options.templateFactory(e))return void t.setValue(e);{let e=i.get(r.template);void 0===e&&(e={instance:r,nodes:document.createDocumentFragment()},i.set(r.template,e)),(0,a.V)(e.nodes,t.startNode.nextSibling,t.endNode)}}if(e instanceof a.js){const r=t.options.templateFactory(e),n=i.get(r);void 0!==n&&(t.setValue(n.nodes),t.commit(),t.value=n.instance)}t.setValue(e)}));var l,d,p=i(4474),h=i(498),f=i(6858),m=i(8486),g=i(7982),b=i(6041);class v extends((0,s.X)([(0,g.d)(),(0,m.h)()],p.jD)){static get is(){return"ff-asn-group-element"}static get properties(){return{selected:{type:Boolean,reflect:!0},fixed:{type:Boolean,reflect:!0},implicit:{type:Boolean,reflect:!0},element:{type:Object,attribute:!1},group:{type:Object,attribute:!1}}}render(){const e=this.element&&{...this.element,text:this.element.__HIGHLIGHTED_NAME__||this.element.text};return this.selected?(0,n.dy)(l||(l=(0,r.Z)(['
',"
"])),(0,p.SM)(this._selectedTemplate,{element:e,group:this.group})):(0,n.dy)(d||(d=(0,r.Z)(['
',"
"])),(0,p.SM)(this._unselectedTemplate,{element:e,group:this.group}))}constructor(){var e;super(),this.selected=!1,this.element=void 0,this.group=void 0,this._rawOuterHtml="",this._selectedTemplate=y("selected"),this._unselectedTemplate=y("unselected"),this._clickListener=(e=this,t=>{e.implicit||e.fixed||(e.selected=!e.selected,(0,b.hT)(e.element.searchParams,e))})}connectedCallback(){super.connectedCallback(),this._init()}_init(){this._rawOuterHtml=this.outerHTML,this._selectedTemplate=this.querySelector("[slot='selected']")||this._selectedTemplate,this._unselectedTemplate=this.querySelector("[slot='unselected']")||this._unselectedTemplate,this.addEventListener("click",this._clickListener)}update(e){var t,i,r,n;e.has("element")&&(r=this,(n=this.element)?(r.selected="FALSE"!==n.selected,r.implicit="IMPLICIT"===n.selected,r.fixed=(t=r.group,!("TRUE"!==(i=n).selected||!i.text)&&(0,b.rE)(t).includes(i.text)),r.className=r.className.replace(/ ?\bclusterLevel\d+\b/g,"").trim(),n.clusterLevel&&r.classList.add("clusterLevel".concat(n.clusterLevel)),r.showSelf()):r.hideSelf()),super.update()}updated(e){super.updated(e),(0,f.M)(this)}clone(e,t){const i=this._rawOuterHtml?(0,h.yi)(this._rawOuterHtml):document.createElement(v.is);return i.group=e,i.element=t,i._selectedTemplate=this._selectedTemplate,i._unselectedTemplate=this._unselectedTemplate,i}}function y(e){return(0,h.yi)('
{{element.text}}
'))}window.customElements.define(v.is,v);var _,S,k,C,w,P,x,E=i(7854);const I=Object.freeze({DetailedLinksContainer:'[data-container="detailedLinks"]',HiddenLinksContainer:'[data-container="hiddenLinks"]',DetailedLinksContent:'[data-content="detailedLinks"]',HiddenLinksContent:'[data-content="hiddenLinks"]',SelectBoxPlaceholderOption:"option:not([data-template])",SelectBoxOptionTemplate:"option[data-template]",ToggleWrapper:".ffw-wrapper",ShowMoreContainer:'[data-container="showMore"]',ShowLessContainer:'[data-container="showLess"]',GroupCaptionContainer:'[slot="groupCaption"]',RemoveFilterContainer:'[data-container="removeFilter"]',FilterSearchFieldContainer:'[slot="filterSearch"]'});class F extends((0,s.X)([(0,g.d)(),(0,E.E)()],p.jD)){static get is(){return"ff-asn-group"}static get properties(){return{collapsible:{type:p.k_},opened:{type:Boolean,reflect:!0},forGroup:{type:String,attribute:"for-group",reflect:!0},filterStyle:{type:String,attribute:"filter-style",reflect:!0},disableAutoExpand:{type:Boolean,attribute:"disable-auto-expand",reflect:!0},group:{type:Object,attribute:!1},selectBox:{type:p.k_,attribute:"select-box"},notSearchable:{type:Boolean,attribute:"not-searchable"}}}render(){if(!this._initialized)return(0,n.dy)(_||(_=(0,r.Z)(['
'])));this._filterSearchInput=this.querySelector("".concat(I.FilterSearchFieldContainer," input"));const e={group:this.group};return(0,n.dy)(S||(S=(0,r.Z)(['
','
'," "," ","
"])),(()=>this.toggle(!0)),(0,p.SM)(this._groupCaptionTemplate,e),(e=>function(e,t){const i=t.composedPath(),r=i[0];if("INPUT"!==r.nodeName)return;if(!i.slice(1).some((e=>e.getAttribute&&"filterSearch"===e.getAttribute("slot"))))return;e.requestUpdate();const n=new RegExp((0,b.yI)(r.value)||"$a","gi"),{headMatchedElements:s,otherMatchedElements:a}=[...e.group.selectedElements,...e.group.elements].reduce(((e,t)=>{n.lastIndex=0;const i=n.exec(t.text);if(null===i)return e;const r=t.text.replace(n,(e=>''.concat(e,"")));return(0===i.index?e.headMatchedElements:e.otherMatchedElements).push({...t,__HIGHLIGHTED_NAME__:r}),e}),{headMatchedElements:[],otherMatchedElements:[]});M(e._filterSearchContainer,e._asnGroupElementTemplate,e.group,[...s,...a])}(this,e)),N(function(e){if(!e.group)return!1;const t=e.group.elements.length+e.group.selectedElements.length;return!e.notSearchable&&t>=e.parentNode.searchableFrom}(this),(0,p.SM)(this._filterSearchField,e)),u(this._filterSearchInput&&this._filterSearchInput.value.length>0?this._filterSearchContainer:function(e){const t=(i=e.group,!!i&&i.elements.length>i.detailedLinks);var i;return(0,n.dy)(k||(k=(0,r.Z)([""," "," "," ",""])),e._detailedLinksContainer,N(t,e._hiddenLinksContainer),N(t&&!e.selectBox,e._showMoreContainer),N(t&&!e.selectBox,e._showLessContainer))}(this)),N(function(e){if(!e)return!1;const t=function(e){let{elements:t,selectedElements:i}=e;return[...i,...t].filter((e=>"TRUE"===e.selected))}(e);if(0===t.length)return!1;const i=(0,b.rE)(e);return 0===i.length||t.some((0,b.pk)(i))}(this.group),this._removeFilterContainer))}constructor(){super(),this.collapsible=!0,this.opened=!1,this.forGroup=void 0,this.filterStyle=void 0,this.disableAutoExpand=!1,this.group=void 0,this.selectBox=!1,this.notSearchable=!1,this._detailedElements=[],this._hiddenElements=[],this._wrapper=void 0,this._initialized=!1,this._rawOuterHtml="",this._asnGroupElementTemplate=void 0,this._groupCaptionTemplate=void 0,this._selectBoxOptionTemplate=void 0,this._selectBoxPlaceholderOption=void 0,this._detailedLinksContainer=void 0,this._hiddenLinksContainer=void 0,this._showMoreContainer=void 0,this._showLessContainer=void 0,this._removeFilterContainer=void 0,this._filterSearchContainer=void 0,this._filterSearchField=void 0,this._filterSearchInput=void 0}connectedCallback(){super.connectedCallback(),this._init()}_init(){this._initialized||(this._rawOuterHtml=this.outerHTML,this._asnGroupElementTemplate=this.querySelector(v.is)||document.createElement(v.is),this._groupCaptionTemplate=function(e){return e.querySelector(I.GroupCaptionContainer)||t();function t(){return(0,h.yi)('
{{group.name}}
')}}(this),this._detailedLinksContainer=function(e){return e.querySelector(I.DetailedLinksContainer)||t();function t(){return(0,h.yi)((0,h.iS)(w||(w=(0,r.Z)(['
']))))}}(this),this._hiddenLinksContainer=this.querySelector(I.HiddenLinksContainer),this._filterSearchField=function(e){const t=e.querySelector(I.FilterSearchFieldContainer);return t?t.cloneNode(!0):i();function i(){return(0,h.yi)('
')}}(this),function(e){if(null===e._filterSearchField.querySelector("input"))throw new Error(" not found in filterSearch template")}(this),this._filterSearchContainer=(0,h.yi)('
'),this._hiddenLinksContainer&&!this._hiddenLinksContainer.hasAttribute("opened")&&(this._hiddenLinksContainer.style.height="0",this._hiddenLinksContainer.style.overflow="hidden"),this._initShowMore(),this._initShowLess(),this._initHiddenLinksContainer(),this._removeFilterContainer=function(e,t){const i=e.querySelector(I.RemoveFilterContainer)||r();return i.addEventListener("click",(()=>{const i=t(),r=Object.assign({},(i.selectedElements[0]||i.elements[0]).searchParams),s=n(i,r.filters);s.length?r.filters=s:delete r.filters,(0,b.hT)(r,e)})),i;function r(){return(0,h.yi)('
Reset Filter
')}function n(e){let{associatedFieldName:t}=e;const i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).filter((e=>e.name!==t)),r=(0,b.M7)().find((e=>e.name===t));return r&&i.push(r),i}}(this,(()=>this.group||{})),this.selectBox&&(this._selectBoxOptionTemplate=function(e){return e.querySelector(I.SelectBoxOptionTemplate)||t();function t(){return(0,h.yi)("")}}(this._hiddenLinksContainer)),this.style.display="none",this._initialized=!0)}update(e){e.has("group")&&(this._filterSearchInput&&(this._filterSearchInput.value="",this._filterSearchInput.dispatchEvent(new Event("input"))),this.group?(this._detailedElements=this.group.selectedElements.concat(this.group.elements.slice(0,this.group.detailedLinks)),this._hiddenElements=this.group.elements.slice(this.group.detailedLinks),this._detailedLinksContainer=function(e,t,i,r){const n=(0,b.rE)(t),s=0===n.length?r:[...r.filter((e=>n.includes(e.text))),...r.filter((e=>!n.includes(e.text)))];return M(e.querySelector(I.DetailedLinksContent),i,t,s),e}(this._detailedLinksContainer,this.group,this._asnGroupElementTemplate,this._detailedElements),this._hiddenLinksContainer&&(this.selectBox?this._hiddenLinksContainer=O(this._hiddenLinksContainer,this._selectBoxPlaceholderOption,this._selectBoxOptionTemplate,this.group,this._hiddenElements):this._hiddenLinksContainer.hasAttribute("opened")&&(this._hiddenLinksContainer=A(this._hiddenLinksContainer,this._asnGroupElementTemplate,this.group,this._hiddenElements))),(this.opened||L(this.group)&&!this.disableAutoExpand)&&this.show(!1),this.style.display="",this.style.opacity="1"):(this.style.display="none",this.style.opacity="0")),super.update(e)}firstUpdated(e){this._wrapper=this.querySelector(I.ToggleWrapper),this.opened||e.has("group")&&L(this.group)&&!this.disableAutoExpand?this.show(!1):this._hide(this._wrapper,!1,(()=>this.opened=!1)),!1===this.opened&&!0!==this.disableAutoExpand&&L(this.group)&&this.show(!1)}updated(e){e.has("group")&&(this.forGroup&&"all"!==this.forGroup||(this.forGroup=this.group.associatedFieldName),this.filterStyle||(this.filterStyle=this.group.filterStyle)),this.group?this.showSelf():this.hideSelf()}show(e){this._wrapper&&(this._show(this._wrapper,e),this._wrapper.setAttribute("opened",""),this.opened=!0)}hide(e){this.opened&&this.collapsible&&this._wrapper&&(this._hide(this._wrapper,e,(()=>this.opened=!1)),this._wrapper.removeAttribute("opened"))}toggle(e){this.opened?this.hide(e):this.show(e)}showDetailedLinksContainer(e){this._show(this._detailedLinksContainer,e)}hideDetailedLinksContainer(e){this._hide(this._detailedLinksContainer,e)}toggleDetailedLinksContainer(e){this._detailedLinksContainer.hasAttribute("opened")?this.hideDetailedLinksContainer(e):this.showDetailedLinksContainer(e)}showHiddenLinksContainer(e){this._hiddenLinksContainer=this.selectBox?O(this._hiddenLinksContainer,this._selectBoxPlaceholderOption,this._selectBoxOptionTemplate,this.group,this._hiddenElements):A(this._hiddenLinksContainer,this._asnGroupElementTemplate,this.group,this._hiddenElements),this._showMoreContainer&&(this._showMoreContainer.style.display="none"),this._showLessContainer&&(this._showLessContainer.style.display=""),setTimeout((()=>{this._showChecked(this._hiddenLinksContainer,e),this._hiddenLinksContainer.setAttribute("opened","")}))}hideHiddenLinksContainer(e){this._showMoreContainer&&(this._showMoreContainer.style.display=""),this._showLessContainer&&(this._showLessContainer.style.display="none"),this._hideChecked(this._hiddenLinksContainer,e,(()=>{}))}toggleHiddenLinksContainer(e){this._hiddenLinksContainer.hasAttribute("opened")?this.hideHiddenLinksContainer(e):this.showHiddenLinksContainer(e)}clone(){return(0,h.yi)(this._rawOuterHtml)}_initShowMore(){this._showMoreContainer=this.querySelector(I.ShowMoreContainer)||(0,h.yi)('
Show More
'),this.selectBox?this._hide(this._showMoreContainer):this._show(this._showMoreContainer),this._showMoreContainer.addEventListener("click",(()=>this.showHiddenLinksContainer(!0)))}_initShowLess(){this.selectBox&&this._hideChecked(this._showMoreContainer),this._showLessContainer=this.querySelector(I.ShowLessContainer)||(0,h.yi)('
Show Less
'),this._showLessContainer.style.display="none",this._showLessContainer.addEventListener("click",(()=>this.hideHiddenLinksContainer(!0)))}_initHiddenLinksContainer(){if(this.selectBox)this._hiddenLinksContainer?"SELECT"!==this._hiddenLinksContainer.tagName?(this.warn("Provided template for select box is not a select element. Using default template."),this._hiddenLinksContainer=e()):0===this._hiddenLinksContainer.querySelectorAll(I.SelectBoxPlaceholderOption).length&&this._hiddenLinksContainer.insertBefore((0,h.yi)(""),this._hiddenLinksContainer.firstElementChild):this._hiddenLinksContainer=e(),this._selectBoxPlaceholderOption=this._hiddenLinksContainer.querySelector(I.SelectBoxPlaceholderOption),this._hiddenLinksContainer.addEventListener("change",function(e){return()=>{const t=e._hiddenLinksContainer.options[e._hiddenLinksContainer.selectedIndex].data;t&&(0,b.hT)(t.searchParams,this)}}(this)),this._show(this._hiddenLinksContainer);else{if(!this._hiddenLinksContainer){const e=(0,h.iS)(C||(C=(0,r.Z)(['
'])));this._hiddenLinksContainer=(0,h.yi)(e)}this._hiddenLinksContainer.hasAttribute("opened")?this._show(this._hiddenLinksContainer):this._hide(this._hiddenLinksContainer)}function e(){return(0,h.yi)('"))}}}function A(e,t,i,r){return M(e.querySelector(I.HiddenLinksContent),t,i,r),e}function M(e,t,i,s){(0,a.sY)((0,n.dy)(P||(P=(0,r.Z)(["",""])),s.map((e=>t.clone(i,e)))),e)}function O(e,t,i,s,o){const c=o.map((e=>(0,p.SM)(i,{group:s,element:e})));return(0,a.sY)((0,n.dy)(x||(x=(0,r.Z)(["",""])),[(0,p.SM)(t),...c]),e),e.selectedIndex=0,e.querySelectorAll(I.SelectBoxOptionTemplate).forEach(((e,t)=>{const i=o[t];e.value=i.text,e.data=i})),e}function L(e){return!!e&&(e.selectedElements.length>0||e.elements.some((e=>"TRUE"===e.selected)))}function N(e,t){return e?t:void 0}window.customElements.define(F.is,F);var T,q,R=i(2207),B=i(792),D=i(4675),j=i(3643);const H=["".concat(D.Slider.is),"input[data-control='min']","input[data-control='max']"],V=(0,h.iS)(T||(T=(0,r.Z)(['
'])));class U extends p.jD{static get is(){return"ff-slider-control"}static get properties(){return{disableInputFields:{type:p.k_,attribute:"disable-input-fields"},submitOnInput:{type:p.k_,attribute:"submit-on-input"},group:{type:Object,attribute:!1},fractionDigits:{type:Number,attribute:"fraction-digits"}}}render(){return(0,n.dy)(q||(q=(0,r.Z)(['
',"
"])),this._content)}constructor(){super(),this.disableInputFields=!1,this.submitOnInput=!1,this.group=void 0,this.fractionDigits=0,this._inputMin=void 0,this._inputMax=void 0,this._slider=void 0,this._unitElements=void 0,this._submitDelay=500,this._content=void 0,this._isSubmitScheduled=!1,this._submitInputMinDebouncerJob=void 0,this._submitInputMaxDebouncerJob=void 0}initDefaultTemplates(){if(this._content)return;let e;(0,p.np)(this)?(this._content=(0,h.yi)(V),e=this._content):(this._content=Array.from(this.childNodes),e=this),this._slider=e.querySelector(H[0]),this._inputMin=e.querySelector(H[1]),this._inputMax=e.querySelector(H[2]),function(e){const t=H.filter((t=>!e.querySelector(t)));if(0===t.length)return;throw Error("".concat(U.is,' does not have all required templates.\nYou must provide a template for each of the following selectors: "').concat(H.join('", "'),'".\nMissing templates are: "').concat(t.join('", "'),'".\nAlternatively, you may leave ').concat(U.is," empty. In this case, default templates will be used."))}(e),this._unitElements=e.querySelectorAll("[data-unit]"),this._slider.addEventListener("slider-moved",this._valueChanged.bind(this)),this._slider.addEventListener("value-changed",this._valueChanged.bind(this))}update(e){e.has("group")&&this._groupChanged(),super.update(e)}disconnectedCallback(){this._submitInputMinDebouncerJob&&this._submitInputMinDebouncerJob.cancel(),this._submitInputMaxDebouncerJob&&this._submitInputMaxDebouncerJob.cancel(),super.disconnectedCallback()}init(e){this._inputMin.value=this._format(e.selectedMinValue),this._inputMax.value=this._format(e.selectedMaxValue),this.disableInputFields?this._disableFocusInput():this._initInputSubmit(),Promise.resolve().then((()=>this.style.opacity="1"))}submit(){this._submitInputMax(),this._submitInputMin()}_groupChanged(){this.group&&setTimeout((()=>{this._updateInput(this._inputMax,this._slider.selectedMaxValue),this._updateInput(this._inputMin,this._slider.selectedMinValue),this._unitElements.forEach((e=>e.innerText=this.group.unit))}),1)}_updateInput(e,t){if(!e)return;this._slider&&void 0!==t&&(e.value=this._format(t));const i=e.attributes;for(let e=0;e{this._isSubmitScheduled=!1,this._slider.submit()})))}_initInputSubmit(){function e(e){return e>=48&&e<=57||e>=96&&e<=105}this._submitInputMinDebouncerJob=(0,B.D)(this._submitInputMinDebouncerJob,(()=>{this._submitInputMin(),this._inputMin.focus()}),this._submitDelay),this._submitInputMaxDebouncerJob=(0,B.D)(this._submitInputMinDebouncerJob,(()=>{this._submitInputMax(),this._inputMax.focus()}),this._submitDelay),this._inputMin.onkeyup=t=>{const i=(t=window.event||t).keyCode||t.which;if(13===i)return this._submitInputMin(),!1;this.submitOnInput&&e(i)&&this._submitInputMinDebouncerJob.run()},this._inputMax.onkeyup=t=>{const i=(t=window.event||t).keyCode||t.which;if(13===i)return this._submitInputMax(),!1;this.submitOnInput&&e(i)&&this._submitInputMaxDebouncerJob.run()}}_format(e){var t;const i=this.fractionDigits;return Intl.NumberFormat(null===(t=R.u.getConfig().appConfig)||void 0===t||null===(t=t.formatting)||void 0===t?void 0:t.locale,{minimumFractionDigits:i,maximumFractionDigits:i,useGrouping:!1}).format(e)}_valueChanged(e){const{slider:t,selectedMinValue:i,selectedMaxValue:r}=e.detail;if("min"===t)this._inputMin.value=this._format(i);else{if("max"!==t)throw"Unexpected slider: ".concat(t);this._inputMax.value=this._format(r)}}}function W(e){var t;const i=Intl.NumberFormat(null===(t=R.u.getConfig().appConfig)||void 0===t||null===(t=t.formatting)||void 0===t?void 0:t.locale).formatToParts(.1).find((e=>"decimal"===e.type)).value;return parseFloat(e.value.replace(i,"."))}function K(e,t){let i=1e3*e;const r=1e3*t,n=i%r;return i-=n,n/r>=.5&&(i+=r),i/1e3}var z,$;window.customElements.define(U.is,U);class G extends((0,s.X)([(0,g.d)(),(0,E.E)()],p.jD)){static get is(){return"ff-asn-group-slider"}static get properties(){return{collapsible:{type:p.k_},opened:{type:Boolean,reflect:!0},forGroup:{type:String,reflect:!0,attribute:"for-group"},filterStyle:{type:String,reflect:!0,attribute:"filter-style"},disableAutoExpand:{type:Boolean,reflect:!0,attribute:"disable-auto-expand"},group:{type:Object,attribute:!1}}}render(){return this._initialized?(0,n.dy)($||($=(0,r.Z)(['
','
'," ","
"])),(()=>this.toggle(!0)),(0,p.SM)(this._groupCaptionTemplate,{group:this.group}),this.opened,this._sliderControl,this._removeFilterContainer):(0,n.dy)(z||(z=(0,r.Z)(['
'])),this.opened)}constructor(){super(),this.collapsible=!0,this.opened=!1,this.filterStyle="SLIDER",this.selectorWrapper=".ffw-wrapper",this._wrapper=void 0,this._sliderControl=void 0,this._removeFilterContainer=void 0,this.selectorGroupCaptionContainer='[slot="groupCaption"]',this.selectRemoveFilterContainer='[data-container="removeFilter"]',this._initialized=!1,this._rawOuterHtml="",this.addEventListener("_slider-submit",Z)}connectedCallback(){super.connectedCallback(),this.init()}firstUpdated(e){super.firstUpdated(e),this._wrapper=this.querySelector(this.selectorWrapper),this.opened?this.show():this._hide(this._wrapper,!1)}init(){this._initialized||(this._initialized=!0,this._rawOuterHtml=this.outerHTML,this._groupCaptionTemplate=this._initGroupCaption(),this._sliderControl=this.querySelector(U.is)||document.createElement(U.is),this._sliderControl.initDefaultTemplates(),this._updateSliderControls(),this._removeFilterContainer=this._initRemoveFilter(),this.updateComplete.then((()=>{const e=this.querySelector("".concat(D.Slider.is));J(this,e),e.addEventListener("value-changed",(()=>{J(this,e)}))})))}_initGroupCaption(){return this.querySelector(this.selectorGroupCaptionContainer)||(0,h.yi)('
{{group.name}}
')}_updateSliderControls(){this.querySelectorAll(U.is).forEach((e=>e.group=this.group)),this._sliderControl&&(this._sliderControl.group=this.group)}_hideGroup(){this.style.display="none",this.offsetHeight,this.style.opacity="0"}update(e){e.has("group")&&this._asnGroupChanged(),super.update(e)}_processAndRenderGroup(e){this.forGroup=e.associatedFieldName;const t=X(e);if("number"!=typeof t.absoluteMinValue||"number"!=typeof t.absoluteMaxValue)return this.warn("[".concat(G.is,"]: absoluteMinValue and absoluteMaxValue must be numbers but are:"),t.absoluteMinValue,t.absoluteMaxValue),void this._hideGroup();if(t.absoluteMinValue!==t.absoluteMaxValue){t.selectedMinValue=Math.max(t.absoluteMinValue,t.selectedMinValue),t.selectedMaxValue=Math.min(t.absoluteMaxValue,t.selectedMaxValue),this._updateSliderControls();try{Promise.resolve().then((()=>{const e=this.querySelector("".concat(D.Slider.is));e&&e.updateComplete.then((()=>e.updateData(t)))})),this.style.display="",this.offsetHeight,function(e){if(!e||!e.elements[0])return!1;const{selectedMinValue:t,selectedMaxValue:i,absoluteMinValue:r,absoluteMaxValue:n}=e.elements[0];return i!==n||t!==r}(e)&&!0!==this.opened&&!this.disableAutoExpand&&this.updateComplete.then((()=>this.show())),this.dispatchEvent(new CustomEvent("records-updated",{bubbles:!0,composed:!0})),this.style.opacity="1",this.offsetHeight}catch(e){this.error(e)}}else this._hideGroup()}_asnGroupChanged(){this.group?this._processAndRenderGroup(this.group):this._hideGroup()}_initRemoveFilter(){const e=this.querySelector(this.selectRemoveFilterContainer)||(0,h.yi)('
Reset Filter
');return e.addEventListener("click",(()=>{(0,b.hT)(X(this.group).searchParams,this)})),e}toggle(e){this.collapsible&&(this._wrapper&&this._wrapper.hasAttribute("opened")?this._toggle(this._wrapper,e,(()=>this.opened=!1)):(this._toggle(this._wrapper,e),this.opened=!0))}show(e){this.collapsible&&(this._show(this._wrapper,e),this.opened=!0)}hide(e){this.collapsible&&!1!==this.opened&&(!0!==e?(this._hide(this._wrapper,e),this.opened=!1):this._hide(this._wrapper,e,(()=>this.opened=!1)))}clone(){return(0,h.yi)(this._rawOuterHtml)}}function J(e,t){if(e._removeFilterContainer){const i=e._removeFilterContainer.style.display,r=t.selectedMinValue>t.absoluteMinValue||t.selectedMaxValue{const t=this._getGroupTemplate(e);return t.group=e,(0,n.dy)(Q||(Q=(0,r.Z)(["",""])),t)})))}constructor(){super(),this.align=te.vertical,this.asnGroups=[],this.subscribe=!0,this.topic=void 0,this.hideFacets="",this._hideFacets=[],this._templates=void 0,this._searchableFrom=1/0}connectedCallback(){this._hideFacets=re(this.hideFacets),super.connectedCallback(),this._initTemplates()}update(e){e.has("hideFacets")&&(this._hideFacets=re(this.hideFacets)),e.has("topic")&&"string"!=typeof this.topic&&void 0!==this.topic&&(this.error('Attribute "topic" must be either undefined or a string but was: '.concat(typeof this.topic,". Subscription cancelled.")),this.subscribe=!1,this.topic=void 0),this.updateComplete.then((()=>{const e=this.querySelectorAll("".concat(F.is,",").concat(G.is));Promise.all(Array.from(e).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))})),super.update(e)}set searchableFrom(e){"number"!=typeof e||isNaN(e)||e<1?this.warn("searchableFrom was expected to be a valid positive number, but was [".concat(e,"] instead")):this._searchableFrom=e}get searchableFrom(){return this._searchableFrom}_getGroupTemplate(e){const t=e.associatedFieldName;let i=this._templates[t];if(!i){const r=e.filterStyle?e.filterStyle.toUpperCase():"";this._templates[r]&&(i=this._templates[r].clone(),this._templates[t]=i)}return i||(i=this._templates.all.clone(),this._templates[t]=i),i}_initTemplates(){if(!this._templates)try{this._templates={};if(this.querySelectorAll("".concat(F.is,",").concat(G.is)).forEach((e=>{try{const t=e.getAttribute("for-group"),i=e.getAttribute("filter-style");t&&"all"!==t.toLowerCase()?this._templates[t]=e:i?this._templates[i]=e:"FF-ASN-GROUP-SLIDER"===e.tagName?this._templates.SLIDER=e:this._templates.all||(this._templates.all=e)}catch(e){this.error(e)}})),!this._templates.all){const e=document.createElement(F.is);e.setAttribute("opened",void 0),e._init(),this._templates.all=e}if(!this._templates.SLIDER){const e=document.createElement(G.is);e.setAttribute("filter-style","SLIDER"),e.setAttribute("opened",void 0),e.init(),this._templates.SLIDER=e}}catch(e){this.error(e)}}_subscriptionCallback(e){this.asnGroups=e.facets.filter((e=>!this._hideFacets.some((t=>e.associatedFieldName===t)))).filter((e=>e.elements.length||e.selectedElements.length))}}function re(e){return e.split(",").map((e=>e.trim()))}window.customElements.define(ie.is,ie)},6803:function(e,t,i){"use strict";i.r(t),i.d(t,{BreadcrumbTrail:function(){return v}});var r,n=i(168),s=i(3282),a=i(4474),o=i(9528),c=i(6041);const u={dataTemplate:"{{text}}",attributes:{}};class l extends a.jD{static get is(){return"ff-breadcrumb-trail-item"}static get properties(){return{type:{type:String,reflect:!0},breadCrumbTrailItem:{type:Object,attribute:"bread-crumb-trail-item"},_relatedFacet:{type:Object,attribute:!1}}}get template(){return this.templates[this.type]||this.templates[d.default]||u}render(){return(0,a.SM)(this.template.dataTemplate,{item:(0,o.J)(this.breadCrumbTrailItem,"text"),facet:this._relatedFacet})}constructor(){super(),this.templates={},this.addEventListener("click",(()=>{const e=(0,c.M7)();if(0===e.length)return(0,c.hT)(this.breadCrumbTrailItem.searchParams,this);const t=this.breadCrumbTrailItem.searchParams.filters||[],i=[];e.forEach((e=>{t.some((t=>t.name===e.name))||i.push(e)})),i.push(...t);const r={...this.breadCrumbTrailItem.searchParams,filters:i};(0,c.hT)(r,this)}))}firstUpdated(e){super.firstUpdated(e),Object.keys(this.template.attributes).forEach((e=>this.setAttribute(e,this.template.attributes[e])))}update(e){e.has("breadCrumbTrailItem")&&this.breadCrumbTrailItem&&(this.type=d.hasOwnProperty(this.breadCrumbTrailItem.type)?this.breadCrumbTrailItem.type:void 0),super.update(e)}}window.customElements.define(l.is,l);const d=Object.freeze({search:"search",filter:"filter",all:"all",advisor:"advisor",default:"search"});function p(e,t){let{item:i,facet:a}=e;return(0,s.dy)(r||(r=(0,n.Z)([''])),i,a,t)}function h(e){return!e||(0,a.np)(e)?u:{dataTemplate:e.innerHTML,attributes:Array.prototype.reduce.call(e.attributes,((e,t)=>{let{name:i,value:r}=t;return"unresolved"!==i&&(e[i]=r),e}),{})}}var f,m=i(3940),g=i(7982),b=i(2240);class v extends((0,m.X)([(0,g.d)(),(0,b.D)(b.l.SearchAndNavigation)],a.jD)){static get is(){return"ff-breadcrumb-trail"}static get properties(){return{breadCrumbTrailItems:{type:Array,attribute:"bread-crumb-trail-items"},showAsteriskQuery:{type:a.k_,attribute:"show-asterisk-query"}}}render(){const e=[],t=(this.breadCrumbTrailItems||[]).length;for(let i=0;ie.associatedFieldName===r.associatedFieldName));if(e.push(p({item:r,facet:n},this.templates)),i ")}update(e){e.has("breadCrumbTrailItems")&&(this.breadCrumbTrailItems&&0!==this.breadCrumbTrailItems.length?this.showSelf():this.hideSelf(),this.updateComplete.then((()=>{Promise.all(Array.from(this.querySelectorAll(l.is)).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))),super.update(e)}_subscriptionCallback(e){this.breadCrumbTrailItems=e.breadCrumbTrail,this._facets=e.facets}}window.customElements.define(v.is,v)},6480:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignAdvisor:function(){return p}});var r=i(3940),n=i(2240),s=i(4474),a=i(498),o=i(6041);class c extends s.jD{static get is(){return"ff-campaign-advisor-answer"}static get properties(){return{answer:{type:Object,attribute:!1}}}render(){return(0,s.SM)(this._template,this.answer)}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._template=(0,s.np)(this)?"":this.innerHTML,this.addEventListener("click",u)}updated(e){e.has("answer")&&(this.answer?this.showSelf():this.hideSelf())}}function u(e){e.preventDefault(),e.stopPropagation(),(0,o.hT)(this.answer.searchParams,this)}window.customElements.define(c.is,c);var l=i(3643);class d extends s.jD{static get is(){return"ff-campaign-advisor-question"}static get properties(){return{question:{type:Object,attribute:!1}}}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._renderQuestion=function(e){const t=(0,a.PU)(e.querySelector(c.is)||document.createElement(c.is),e);let i=e.querySelector("[data-question]");i||(i=(0,a.yi)("
{{text}}
"),e.insertBefore(i,e.firstChild));const r=i.innerHTML;return n=>{i.innerHTML=(0,l.s)(r,n),t(e.querySelectorAll(c.is),n.answers,((e,t)=>{e.answer=t}))}}(this)}update(e){e.has("question")&&(this.question?(this.showSelf(),this._renderQuestion(this.question)):this.hideSelf()),super.update(e)}}window.customElements.define(d.is,d);class p extends((0,r.X)([(0,n.D)(n.l.SearchAndNavigation)],s.jD)){static get is(){return"ff-campaign-advisor"}static get properties(){return{name:{type:String,reflect:!0},not:{type:String},campaign:{type:Object,attribute:!1}}}constructor(){super(),this.name="",this.not=void 0,this._renderCampaign=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._renderCampaign=function(e){const t=(0,a.PU)(e.querySelector(d.is)||document.createElement(d.is),e);return i=>t(e.querySelectorAll(d.is),i.activeQuestions,((e,t)=>{e.question=t}))}(this)}update(e){var t;e.has("campaign")&&(this.campaign?(this._renderCampaign(this.campaign),this.showSelf(),(t=this,Promise.all(Array.from(t.querySelectorAll(d.is)).map((e=>e.updateComplete))).then((()=>Promise.all(Array.from(t.querySelectorAll(c.is)).map((e=>e.updateComplete)))))).then((()=>this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))))):this.hideSelf()),super.update(e)}_subscriptionCallback(e){var t;const i=this.name.length&&this.name.split(",")||[],r=(null===(t=this.not)||void 0===t?void 0:t.split(","))||[];this.campaign=e.campaigns.find((e=>"ADVISOR"===e.flavour&&e.activeQuestions.length&&(i.includes(e.name)||0===i.length&&!r.includes(e.name))))}}window.customElements.define(p.is,p)},410:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignFeedbackText:function(){return s}});var r=i(2207),n=i(4474);class s extends n.jD{static get is(){return"ff-campaign-feedbacktext"}static get properties(){return{label:{type:String},isLandingPageCampaign:{type:Boolean,attribute:"is-landing-page-campaign"},isProductCampaign:{type:Boolean,attribute:"is-product-campaign"},isShoppingCartCampaign:{type:Boolean,attribute:"is-shopping-cart-campaign"},campaignData:{type:Object,attribute:!1}}}render(){return(0,n.SM)(this._template,this.campaignData)}constructor(){super(),this.label="",this.isLandingPageCampaign=!1,this.isProductCampaign=!1,this.isShoppingCartCampaign=!1,this.campaignData=void 0}connectedCallback(){super.connectedCallback(),this._template=(0,n.np)(this)?"{{text}}":this.innerHTML,this.hideSelf()}update(e){(e.has("label")||e.has("isLandingPageCampaign")||e.has("isProductCampaign")||e.has("isShoppingCartCampaign"))&&function(e){e.subscriptionKey&&r.u.elementsUnsubscribe(e.subscriptionKey);const t=t=>{let{campaigns:i}=t;const r=i.flatMap((t=>t.feedbackTexts.filter((t=>t.label===e.label||!e.label&&!t.teaser))));e.campaignData=r[r.length-1]};e.isLandingPageCampaign?e.subscriptionKey=r.u.elementsSubscribeCampaignPage(t):e.isProductCampaign?e.subscriptionKey=r.u.elementsSubscribeCampaignProduct(t):e.isShoppingCartCampaign?e.subscriptionKey=r.u.elementsSubscribeCampaignShoppingCart(t):e.subscriptionKey=r.u.elementsSubscribeSearchAndNavigation(t)}(this),e.has("campaignData")&&(this.campaignData?this.showSelf():this.hideSelf(),this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))),super.update(e)}disconnectedCallback(){super.disconnectedCallback(),r.u.elementsUnsubscribe(this.subscriptionKey)}}window.customElements.define(s.is,s)},5430:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignLandingPage:function(){return a}});var r=i(2207),n=i(3940),s=i(7982);class a extends((0,n.X)([(0,s.d)()],HTMLElement)){static get is(){return"ff-campaign-landing-page"}static get observedAttributes(){return["page-id"]}get pageId(){return this._pageId}set pageId(e){this._pageId=e,e?r.c.request.campaignPage({pageId:e},{origin:this}):this.debug("No page id for page campaign specified.")}attributeChangedCallback(e,t,i){"page-id"===e&&(this.pageId=i)}}window.customElements.define(a.is,a)},5663:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignProduct:function(){return c}});var r=i(2207),n=i(4474),s=i(3940),a=i(7982);const o=Object.freeze({ProductNumber:"productNumber",Id:"id"});class c extends((0,s.X)([(0,a.d)()],n.jD)){static get is(){return"ff-campaign-product"}static get properties(){return{productId:{type:String,attribute:"product-id"},idType:{type:String,attribute:"id-type"}}}constructor(){super(),this.productId=void 0,this.idType=o.ProductNumber}update(e){if(e.has("idType")){const e=Object.values(o);if(!e.includes(this.idType))return void this.warn("idType must be one of [".concat(e.join(", "),"]. Was: ").concat(this.idType,"."))}if(e.has("productId")&&this.productId){if(!Object.values(o).includes(this.idType))return void this.warn("idType invalid. Not sending request.");r.c.request.campaignProduct({id:this.productId,idType:this.idType},{origin:this})}}}window.customElements.define(c.is,c)},8358:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignPushedProducts:function(){return c}});var r=i(4474),n=i(3940),s=i(961),a=i(7982),o=i(2207);class c extends((0,n.X)([(0,a.d)()],r.jD)){static get is(){return"ff-campaign-pushed-products"}static get properties(){return{name:{type:String},isLandingPageCampaign:{type:Boolean,attribute:"is-landing-page-campaign"},isProductCampaign:{type:Boolean,attribute:"is-product-campaign"},isShoppingCartCampaign:{type:Boolean,attribute:"is-shopping-cart-campaign"}}}constructor(){super(),this.name="",this.isLandingPageCampaign=!1,this.isProductCampaign=!1,this.isShoppingCartCampaign=!1}update(e){(e.has("name")||e.has("isLandingPageCampaign")||e.has("isProductCampaign")||e.has("isShoppingCartCampaign"))&&u(this),super.update(e)}connectedCallback(){super.connectedCallback(),this.hideSelf(),u(this);const e=this.querySelector(s.RecordList.is);e&&("true"===e.subscribe&&(this.warn("Automatic subscription of ".concat(s.RecordList.is," child component is turned on and will be turned off. Please, set ").concat(s.RecordList.is," 'subscribe' property to 'false' in your HTML code.")),e.setAttribute("subscribe","false")),e._subscriptionKey&&(this.warn("".concat(s.RecordList.is," child component is subscribed to search result and will be unsubscribed.")),e.unsubscribe()),this.isLandingPageCampaign&&(e.__isLandingPage=!0))}disconnectedCallback(){super.disconnectedCallback(),this._subscriptionKey&&(l(this),this._subscriptionKey=void 0)}}function u(e){function t(t,i){var r;let{campaigns:n}=t;const a=e.querySelector(s.RecordList.is);if(!a)return e.hideSelf(),void e.warn("No ".concat(s.RecordList.is," element found for pushed products."));const o=n.findLast((e=>"PRODUCT"===e.flavour||"FEEDBACK"===e.flavour));(null==o||null===(r=o.hits)||void 0===r?void 0:r.length)>0?(a.__campaign=o,e.isLandingPageCampaign&&(a.__pageId=i.campaignPageParams.pageId),a.records=o.hits,e.showSelf()):e.hideSelf()}e._subscriptionKey&&l(e),e.isLandingPageCampaign?e._subscriptionKey=o.u.elementsSubscribeCampaignPage(t):e.isProductCampaign?e._subscriptionKey=o.u.elementsSubscribeCampaignProduct(t):e.isShoppingCartCampaign?e._subscriptionKey=o.u.elementsSubscribeCampaignShoppingCart(t):e._subscriptionKey=o.u.elementsSubscribeSearchAndNavigation(t)}function l(e){o.u.elementsUnsubscribe(e._subscriptionKey)}window.customElements.define(c.is,c)},2132:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignRedirect:function(){return n}});var r=i(2207);class n extends HTMLElement{static get is(){return"ff-campaign-redirect"}connectedCallback(){this._subscriptionKey=r.c.response.subscribeCampaignRedirect((e=>{let{campaign:t}=e;return document.location.replace(t.target.destination),!1}))}disconnectedCallback(){r.c.response.unsubscribe(this._subscriptionKey),this._subscriptionKey=void 0}}window.customElements.define(n.is,n)},3458:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignShoppingCart:function(){return n}});var r=i(2207);class n extends HTMLElement{static get is(){return"ff-campaign-shopping-cart"}static get observedAttributes(){return["product-id"]}get productId(){return this._productId}set productId(e){this._productId=e,e&&r.c.request.campaignShoppingCart({productNumber:e.split(",")},{origin:this})}attributeChangedCallback(e,t,i){"product-id"===e&&(this.productId=i)}}window.customElements.define(n.is,n)},4410:function(e,t,i){"use strict";i.r(t),i.d(t,{CheckoutTracking:function(){return c}});var r=i(2207),n=i(3940),s=i(3282);class a extends s.oi{static get is(){return"ff-checkout-tracking-item"}static get properties(){return{count:Number,productNumber:{type:String,attribute:"product-number"},campaign:String,masterId:{type:String,attribute:"master-id"},price:Number,title:String,channel:String}}constructor(){super(),this.count=void 0,this.productNumber=void 0,this.campaign=void 0,this.masterId=void 0,this.price=void 0,this.title=void 0,this.channel=void 0}connectedCallback(){this.count||(this.count=1)}}window.customElements.define(a.is,a);var o=i(7982);class c extends((0,n.X)([(0,o.d)()],HTMLElement)){static get is(){return"ff-checkout-tracking"}get disableAutoTracking(){return this.hasAttribute("disable-auto-tracking")}connectedCallback(){!0!==this.disableAutoTracking&&this.trackCheckoutItems()}async trackCheckoutItems(){const e=Array.from(this.querySelectorAll(a.is),(e=>({element:e,data:{id:e.productNumber,campaign:e.campaign,count:Number(e.count),channel:e.channel,masterId:e.masterId,price:Number(e.price),title:e.title}})));if(0===e.length)return this.warn("No checkout items to track.");const t=[];if(e.forEach((e=>e.data.id?0===e.data.count?this.warn("Cannot track item. 'count' must be greater than zero.",e.element):(e.data.count||(e.data.count=1),void t.push(e.data)):this.warn("Cannot track item. 'productNumber' not specified.",e.element))),0===t.length)return this.warn("No trackable checkout items found.");const i=[];if(t.forEach(((e,t)=>{e.masterId&&e.price&&e.title||i.push({i:t,data:e})})),i.length){const{records:e,fieldRoles:n}=await r.c.request.records({productNumber:i.map((e=>{let{data:t}=e;return t.id}))});e.forEach(((e,r)=>{const s=t[i[r].i];s.masterId=e[n.masterId],s.price=e[n.price],s.title=e[n.productName]}))}const n=t.reduce(((e,t)=>{let{channel:i,...r}=t;const n=Object.fromEntries(Object.entries(r).filter((e=>{let[t,i]=e;return null!=i})));return e.set(i,e.get(i)||[]),e.get(i).push(n),e}),new Map);return Promise.all(Array.from(n.entries(),(e=>{let[t,i]=e;const n={origin:this};return t&&(n.channel=t),r.c.tracking.checkout(i,n)})))}}window.customElements.define(c.is,c)},1254:function(e,t,i){"use strict";i.r(t),i.d(t,{Compare:function(){return u}});var r=i(2207),n=i(3940),s=i(961),a=i(4474),o=i(7982),c=i(2240);class u extends((0,n.X)([(0,o.d)(),(0,c.D)(c.l.Compare)],a.jD)){static get is(){return"ff-compare"}static get properties(){return{productNumber:{type:Array,attribute:"product-number"},maxResults:{type:Number,attribute:"max-result"},subscribe:{type:a.k_},autoCompare:{type:String,attribute:"auto-compare"}}}constructor(){super(),this.maxResults=4,this.subscribe=!0,this.autoCompare="false"}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector(s.RecordList.is);e?("true"===e.subscribe&&(this.warn("Automatic subscription of ff-record-list child component is turned on and will be turned off. Please, set ff-record-list 'subscribe' property to 'false' in your HTML code."),e.setAttribute("subscribe","false")),e._subscriptionKey&&(this.warn("ff-record-list child component is subscribed to search result and will be unsubscribed."),e.unsubscribe())):this.warn("Record list for 'ff-compare' component was not found.")}_subscriptionCallback(e){this._handleCompareResult(e)}updated(e){super.updated(e),e.has("productNumber")&&"true"===this.autoCompare&&this.compareRecords(this.productNumber)}_handleCompareResult(e){const t=e.records||[],i=e.attributes.reduce(((e,t)=>(e[t.name]=t.different,e)),{});if(t.length>=2){t.forEach((e=>e.diff=i));const e=this.querySelector(s.RecordList.is);e&&(e.records=t.slice(0,this.maxResults),e.addEventListener("dom-updated",(()=>{const t=Array.from(e.querySelectorAll("[data-attribute]"));this._updateCssClasses(t,i),this.showSelf()}),{once:!0}))}else this.hideSelf()}compareRecords(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.length>=2?r.c.request.compare({id:e},{origin:this}):(this.debug("Must specify at least two product numbers to compare."),this.hideSelf())}_updateCssClasses(e,t){e.forEach((e=>{const i=e.getAttribute("data-attribute");!0===t[i]?(e.classList.add("ffw-compare-diff"),e.classList.remove("ffw-compare-equal")):!1===t[i]?(e.classList.remove("ffw-compare-diff"),e.classList.add("ffw-compare-equal")):(e.classList.remove("ffw-compare-diff"),e.classList.remove("ffw-compare-equal"))}))}}window.customElements.define(u.is,u)},8616:function(e,t,i){"use strict";i.r(t),i.d(t,{FilterCloud:function(){return b}});var r,n,s,a=i(168),o=i(3282),c=i(3643),u=i(498),l=i(3940),d=i(7982),p=i(2240),h=i(4474),f=i(6041);const m=Object.freeze({factfinder:"fact-finder",alphabetical:"alphabetical",userSelection:"user-selection"}),g="[data-template=filter]";class b extends((0,l.X)([(0,d.d)(),(0,p.D)(p.l.SearchAndNavigation)],h.jD)){static get is(){return"ff-filter-cloud"}static get properties(){return{order:{type:String},blacklist:{type:String},whitelist:{type:String},_selectedFilters:{type:Array,attribute:!1}}}render(){if(!this._template)return(0,o.dy)(r||(r=(0,a.Z)([""])));const e=document.createElement("div");e.innerHTML=this._template;const t=e.querySelector(g),i=t.outerHTML;var l;return this._selectedFilters.map((l=i,e=>{const t=(0,u.yi)(l);return t.item=e,t.innerHTML=(0,c.s)(t.innerHTML,{...e,element:e.element}),t.addEventListener("click",(t=>{t.item=e})),t})).forEach((e=>{t.parentNode.insertBefore(e,t)})),t.parentNode.removeChild(t),(0,o.dy)(n||(n=(0,a.Z)(["",""])),Array.from(e.childNodes).map((e=>(0,o.dy)(s||(s=(0,a.Z)(["",""])),e))))}constructor(){super(),this.order=m.factfinder,this.blacklist=void 0,this.whitelist=void 0,this._selectedFilters=[],this._blacklist=[],this._whitelist=[],this._userSelectionOrder=[],this._factFinderOrder=[]}connectedCallback(){super.connectedCallback(),this._template||((0,h.np)(this)?this._template='{{element.text}}':this.querySelector(g)?this._template=this.innerHTML.trim():(this.error("An error occurred: template HTML contains no elements marked as ".concat(g,".")),this.hideSelf())),this.addEventListener("click",v)}disconnectedCallback(){this.removeEventListener("click",v),super.disconnectedCallback()}update(e){this._selectedFilters&&0!==this._selectedFilters.length?this.showSelf():this.hideSelf(),e.has("blacklist")&&(this._blacklist=this.blacklist?this.blacklist.split(","):[]),e.has("whitelist")&&(this._whitelist=this.whitelist?this.whitelist.split(","):[]),e.has("order")&&!1===Object.keys(m).some((e=>m[e]===this.order))&&(this.hideSelf(),this.error("Invalid 'order' value: '".concat(this.order,"'."))),this.blacklist&&this.whitelist&&(this.hideSelf(),this.error("'blacklist' and 'whitelist' are mutually exclusive, but both properties are set.")),(e.has("order")||e.has("blacklist")||e.has("whitelist"))&&(this._selectedFilters=y(this.order,this)),super.update(e)}updated(e){super.updated(e),this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}_subscriptionCallback(e){this._selectedFilters=function(e,t,i,r){const n=(o=function(e){return e.reduce(((e,t)=>e.concat([...t.selectedElements,...t.elements.filter((e=>"TRUE"===e.selected))].map((e=>({facet:t,element:e}))))),[])}(r),o.reduce(((e,t)=>0!==e.filter((e=>e.element.text===t.element.text&&e.facet.associatedFieldName===t.facet.associatedFieldName)).length?e:[...e,t]),[])),s=i.filter((e=>_(n,e))),a=n.filter((e=>!_(s,e)));var o;return e._factFinderOrder=n,e._userSelectionOrder=s.concat(a),y(t,e)}(this,this.order,this._userSelectionOrder,e.facets)}}function v(e){const t=e.item;t&&(0,f.hT)(t.element.searchParams,this)}function y(e,t){switch(e){case m.userSelection:return S(t._userSelectionOrder,t._blacklist,t._whitelist);case m.alphabetical:return S(t._factFinderOrder,t._blacklist,t._whitelist).sort(((e,t)=>e.element.text.localeCompare(t.element.text)));default:return S(t._factFinderOrder,t._blacklist,t._whitelist)}}function _(e,t){let{element:i}=t;return e.some((e=>e.element.text===i.text))}function S(e,t,i){return e.filter((e=>{let{facet:r,element:n}=e;const s=t.indexOf(r.associatedFieldName)<0,a=0===i.length||i.indexOf(r.associatedFieldName)>=0,o="IMPLICIT"!==!n.selected,c=(0,f.pk)((0,f.rE)(r))(n);return s&&a&&o&&c}))}window.customElements.define(b.is,b)},4487:function(e,t,i){"use strict";i.r(t),i.d(t,{HeaderNavigation:function(){return b}});var r,n=i(168),s=i(3282),a=i(2207),o=i(4474);const c="_item-clicked";class u extends o.jD{static get is(){return"ff-nav-element"}static get properties(){return{element:{attribute:!1,type:Object}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(['',""])),(this.element.__TARGET_URL__||{}).url,this.element.text)}constructor(){var e;super(),this.element={},this.addEventListener("click",(e=this,t=>{t.preventDefault(),t.stopPropagation(),e.dispatchEvent(new CustomEvent(c,{bubbles:!0}))}))}}window.customElements.define(u.is,u);var l,d,p,h,f,m=i(3940),g=i(2240);class b extends((0,m.X)([(0,g.D)(g.l.NavigationCategory)],o.jD)){static get is(){return"ff-header-navigation"}static get properties(){return{elements:{attribute:!1,type:Array},groupCount:{attribute:"group-count",type:Number},groupSize:{attribute:"group-size",type:Number},hideEmptyGroups:{attribute:"hide-empty-groups",type:o.k_},fetchInitial:{attribute:"fetch-initial",type:o.k_},mouseenterDelay:{attribute:"mouseenter-delay",type:Number},mouseleaveDelay:{attribute:"mouseleave-delay",type:Number},_selectedElement:{attribute:!1,type:Object},_showBody:{attribute:!1,type:Boolean}}}render(){return(0,s.dy)(l||(l=(0,n.Z)(['
',"
","
"])),v,_,this.elements.map((e=>(0,s.dy)(d||(d=(0,n.Z)(['
'])),e.element,e.children,y))),this._showBody?(0,s.dy)(p||(p=(0,n.Z)(['
','
','
\x3c!-- {getGroups(this.hideEmptyGroups, this.groupCount, this._selectedElement.groups).map(group => html --\x3e ','
','
',"
"])),this._selectedElement&&this._slottedElements["container-top-".concat(this._selectedElement.element.text)],this._selectedElement&&this._slottedElements["container-left-".concat(this._selectedElement.element.text)],this._selectedElement._children.map((e=>{return(0,s.dy)(h||(h=(0,n.Z)(['
'," ","
"])),e.element,(t=this,i=e.children,i.slice(0,t.groupSize)).map((e=>(0,s.dy)(f||(f=(0,n.Z)([''])),e.element))),this._slottedElements[e.element.text]);var t,i})),this._selectedElement&&this._slottedElements["container-right-".concat(this._selectedElement.element.text)],this._selectedElement&&this._slottedElements["container-bottom-".concat(this._selectedElement.element.text)]):void 0)}constructor(){var e;super(),this.elements=[],this.groupCount=10,this.groupSize=4,this.hideEmptyGroups=!0,this.fetchInitial=!0,this.mouseenterDelay=600,this.mouseleaveDelay=200,this._slottedElements={},this._selectedElement={},this._showBody=!1,this._shouldShowBody=!1,this.addEventListener(c,(e=this,t=>{t.stopPropagation(),e._showBody=!1;const i=t.target,r=a.c.utils.toNavigationParams(i.element.searchParams);a.c.request.navigation(r,{requestOptions:{origin:i}})}))}connectedCallback(){super.connectedCallback(),this.querySelectorAll("[slot]").forEach((e=>this._slottedElements[e.getAttribute("slot")]=e)),this.fetchInitial&&this.fetch()}updated(e){super.updated(e),e.has("elements")&&setTimeout((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}),0)}fetch(){a.c.request.navigationCategory({endLevel:2},{origin:this})}_subscriptionCallback(e){this.elements=function(e){const t=e.facets.find((e=>"CATEGORY_PATH"===e.type)),i=[];if(!t)return i;let r,n;return t.elements.forEach((e=>{if(0===e.clusterLevel){const t={element:e,children:[]};i.push(t),r=t}else if(1===e.clusterLevel){const t={element:e,children:[]};r.children.push(t),n=t}else 2===e.clusterLevel&&n.children.push({element:e})})),i}(e)}}function v(e){e.target.classList.contains("ffw-header-nav")&&(this._shouldShowBody=!0,this._showBody||setTimeout((()=>{!0===this._shouldShowBody&&(this._showBody=!0)}),this.mouseenterDelay))}function y(e){this._selectedElement=e.currentTarget}function _(e){e.target.classList.contains("ffw-header-nav")&&(this._shouldShowBody=!1,this._showBody&&setTimeout((()=>{!1===this._shouldShowBody&&(this._showBody=!1)}),this.mouseleaveDelay))}window.customElements.define(b.is,b)},3358:function(e,t,i){"use strict";i.r(t),i.d(t,{PagingDropdown:function(){return v}});var r,n,s,a,o=i(168),c=i(3282),u=i(9890),l=i(1448),d=i(8474),p=i(6342),h=i(3940),f=i(2240),m=i(4474),g=i(480),b=i(6621);class v extends((0,h.X)([b.T,(0,f.D)(f.l.SearchAndNavigation)],m.jD)){static get is(){return"ff-paging-dropdown"}static get properties(){return{pages:{type:Array,attribute:!1},opened:{type:Boolean,reflect:!0},showSelected:{type:Boolean,attribute:"show-selected"},collapseOnblur:{type:m.k_,attribute:"collapse-onblur"}}}render(){return(0,c.dy)(r||(r=(0,o.Z)(["",'
',"
"])),this._renderDropdownSelected(),(0,l.$)({"ffw-paging-dropdown-closed":!this.opened}),_,(0,d.l)([this.pages,this.showSelected],(()=>(0,p.r)(this.pages||[],(e=>e),(e=>this._renderDropdownItem(e))))))}constructor(){super(),this.opened=!1,this.showSelected=!1,this.collapseOnblur=!0,this._itemTemplate=void 0,this._searchParams=void 0,this._paging=void 0,this.addEventListener(g.M,(()=>this.toggle())),this.addEventListener("blur",y.bind(this))}connectedCallback(){super.connectedCallback(),this._itemTemplate||(this._itemTemplate=this.querySelector(g.p.is)||function(){const e=document.createElement("div");return(0,u.sY)((0,c.dy)(a||(a=(0,o.Z)(["{{page}}"]))),e),e.firstElementChild}());this.getAttribute("tabindex")||this.setAttribute("tabindex","999"),this.hideSelf()}update(e){e.has("pages")&&this._pagesChanged(),super.update(e)}updated(e){super.updated(),(e.has("pages")||e.has("showSelected"))&&Promise.all(Array.from(this.querySelectorAll("".concat(g.p.is))).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}expand(){const e=this._getDropdown();e.style.height=e.scrollHeight+"px",this.opened=!0}collapse(){this._getDropdown().style.height=null,this.opened=!1}toggle(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened)?this.expand():this.collapse()}_getDropdown(){return this.querySelector(".ffw-paging-dropdown-container")}_subscriptionCallback(e){super._onResponse(e),this._searchParams=e.searchParams,this._paging=e.paging;const t=e.paging,i=t&&t.pageCount>1?Array.from({length:9},((e,i)=>i+t.currentPage-4)):[];this.pages=i.filter((e=>e>0&&e<=t.pageCount))}_pagesChanged(){var e;this.opened&&this.collapse(),(null===(e=this.pages)||void 0===e?void 0:e.length)>0?this.showSelf():this.hideSelf()}_renderDropdownSelected(){return this.pages?this._renderLink(this._paging.currentPage):(0,c.dy)(n||(n=(0,o.Z)([""])))}_renderDropdownItem(e){return e!==this._paging.currentPage||this.showSelected?this._renderLink(e,e===this._paging.currentPage):(0,c.dy)(s||(s=(0,o.Z)([""])))}_renderLink(e,t){const i=this._itemTemplate._clone();return i.type=t?"currentLink":null,i.page=e,i}}function y(){!0===this.collapseOnblur&&setTimeout((()=>this.collapse()),150)}function _(e){const t=e.target;if(t.page===this._paging.currentPage)return;const{page:i,...r}=this._searchParams;t.page>1&&(r.page=t.page),(0,b.S)(r,this)}window.customElements.define(v.is,v)},480:function(e,t,i){"use strict";i.d(t,{M:function(){return c},p:function(){return u}});var r,n=i(168),s=i(3282),a=i(4474),o=i(1448);const c="_item-clicked";class u extends a.jD{static get is(){return"ff-paging-item"}static get properties(){return{type:{type:String,reflect:!0},page:{type:Number,attribute:!1},showSelected:{type:Boolean,attribute:"show-selected",reflect:!0},showOnly:{type:Boolean,attribute:"show-only",reflect:!0}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(['
',"
"])),(0,o.$)({"ffw-selected":"currentLink"===this.type}),(0,a.SM)(this._template,{page:this.page}||{}))}constructor(){super(),this.type="currentLink",this.showSelected=!1,this.showOnly=!1,this.addEventListener("click",l)}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._template||(this._template=(0,a.np)(this)?"{{page}}":this.innerHTML)}update(e){e.has("page")&&(void 0===this.page?(this.classList.add("ffw-disabled"),this.hideSelf()):(this.classList.remove("ffw-disabled"),this.showSelf())),super.update(e)}_clone(){const e=this.cloneNode(!0);return e._template=this._template,e}}function l(e){this.showOnly||this.dispatchEvent(new CustomEvent(c,{bubbles:!0}))}window.customElements.define(u.is,u)},3742:function(e,t,i){"use strict";i.r(t),i.d(t,{PagingSelect:function(){return l}});var r,n=i(168),s=i(3282),a=i(4474),o=i(3940),c=i(2240),u=i(6621);class l extends((0,o.X)([u.T,(0,c.D)(c.l.SearchAndNavigation)],a.jD)){static get is(){return"ff-paging-select"}static get properties(){return{pages:{type:Array,attribute:!1}}}render(){var e;return(0,s.dy)(r||(r=(0,n.Z)(['"])),d,null===(e=this.pages)||void 0===e?void 0:e.map((e=>(0,a.SM)(this._optionTemplate,{page:e}))))}constructor(){super(),this._optionTemplate=void 0,this._selectAttributes=[],this._searchParams=void 0,this._paging=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector("select");this._selectAttributes=e?Array.from(e.attributes):[],this._optionTemplate=this.querySelector("option")||""}firstUpdated(){const e=this.querySelector("select");this._selectAttributes.forEach((t=>{let{name:i,value:r}=t;return e.setAttribute(i,r)}))}updated(e){var t;e.has("pages")&&(null!==(t=this.pages)&&void 0!==t&&t.length?(this.querySelector("select").selectedIndex=this.pages.findIndex((e=>e===this._paging.currentPage)),this.showSelf()):this.hideSelf())}_subscriptionCallback(e){super._onResponse(e),this._searchParams=e.searchParams,this._paging=e.paging;const t=e.paging,i=t&&t.pageCount>1?Array.from({length:9},((e,i)=>i+t.currentPage-4)):[];this.pages=i.filter((e=>e>0&&e<=t.pageCount))}}function d(e){const{page:t,...i}=this._searchParams,r=this.pages[e.target.selectedIndex];r>1&&(i.page=r),(0,u.S)(i,this)}window.customElements.define(l.is,l)},876:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return PagingSet}});var _behaviors_BehaviorDecorator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3940),utils_FACTFinderLitElement__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4474),_behaviors_ElementLog__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7982);class PagingSet extends((0,_behaviors_BehaviorDecorator__WEBPACK_IMPORTED_MODULE_1__.X)([(0,_behaviors_ElementLog__WEBPACK_IMPORTED_MODULE_2__.d)()],utils_FACTFinderLitElement__WEBPACK_IMPORTED_MODULE_0__.jD)){static get is(){return"ff-paging-set"}static get properties(){return{state:{type:String,reflect:!0},paging:{type:Object,attribute:!1}}}constructor(){super(),this.state="all",this._isActive=!1}connectedCallback(){super.connectedCallback(),this.hideSelf()}update(e){e.has("paging")&&pagingChanged.call(this),super.update(e)}get isActive(){return this._isActive}}function pagingChanged(){if("all"===this.state)return this._isActive=!0,void this.showSelf();const state=this.state.replace(/currentPage/g,this.paging.currentPage).replace(/pageCount/g,this.paging.pageCount);if(/[a-z_]/i.test(state))return this._isActive=!1,this.hideSelf(),void this.error("Alphabetical values are not allowed. Could not resolve [".concat(/[a-z_].*/i.exec(state),"] in state [").concat(state,"]"));try{this._isActive=eval(state),this.isActive?this.showSelf():this.hideSelf()}catch(e){this._isActive=!1,this.hideSelf()}}window.customElements.define(PagingSet.is,PagingSet)},5841:function(e,t,i){"use strict";i.r(t),i.d(t,{Paging:function(){return u}});var r=i(4474),n=i(480),s=i(876),a=i(3940),o=i(2240),c=i(6621);class u extends((0,a.X)([c.T,(0,o.D)(o.l.SearchAndNavigation)],r.jD)){static get is(){return"ff-paging"}static get properties(){return{paging:{type:Object,attribute:!1},showOnly:{type:Boolean,attribute:"show-only",reflect:!0}}}constructor(){super(),this.showOnly=!1,this._searchParams=void 0,this.addEventListener(n.M,l)}connectedCallback(){super.connectedCallback(),this.hideSelf()}update(e){e.has("paging")&&d.call(this),super.update(e)}updated(e){e.has("paging")&&Promise.all(Array.from(this.querySelectorAll("".concat(n.p.is))).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}_subscriptionCallback(e){super._onResponse(e),this.paging=e.paging,this._searchParams=e.searchParams}}function l(e){e.stopPropagation();const t=e.target;if(!0===this.showOnly||t.page===this.paging.currentPage)return;const i={...this._searchParams};1===t.page?delete i.page:i.page=t.page,(0,c.S)(i,this)}function d(){if(!this.paging||1===this.paging.pageCount)return void this.hideSelf();const e=this.querySelectorAll(s.z.is);0===e.length?p(this.paging,this):e.forEach((e=>{e.paging=this.paging,e.updateComplete.then((()=>{e.isActive&&p(this.paging,e)}))})),this.showSelf()}function p(e,t){const i=(e,t)=>{e&&(e.page=t)};i(t.querySelector("".concat(n.p.is,'[type="firstLink"]')),e.currentPage>1?1:void 0),i(t.querySelector("".concat(n.p.is,'[type="lastLink"]')),e.currentPage1?e.currentPage-1:void 0),i(t.querySelector("".concat(n.p.is,'[type="nextLink"]')),e.currentPage{const i=/-?\d+/.exec(t.type)||[],r=parseInt(i[0])||0,n=e.currentPage+r;t.page=n>0&&n<=e.pageCount?n:void 0}))}window.customElements.define(u.is,u)},6621:function(e,t,i){"use strict";i.d(t,{S:function(){return s},T:function(){return n}});i(2207);var r=i(6041);const n=e=>class extends e{constructor(){super(),this._facets=void 0}_onResponse(e){this._facets=e.facets}};function s(e,t){(0,r.hT)(e,t)}},4849:function(e,t,i){"use strict";i.r(t),i.d(t,{PredictiveBasket:function(){return u}});var r=i(2207),n=i(4474),s=i(3940),a=i(7982),o=i(961),c=i(2240);class u extends((0,s.X)([(0,a.d)(),(0,c.D)(c.l.PredictiveBasket)],n.jD)){static get is(){return"ff-predictive-basket"}static get properties(){return{userId:{attribute:"user-id",type:String,reflect:!0},maxResults:{attribute:"max-results",type:Number},blacklist:String}}constructor(){super(),this.userId=void 0,this.maxResults=void 0,this.blacklist=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector(o.RecordList.is);e&&(e.subscribe=!1,e.__isPredBasket=!0),this.userId&&!e&&this.warn("No ff-record-list provided. Provide one to make ".concat(u.is," work properly."))}_subscriptionCallback(e){if(e.hits.length>0){const t=this.querySelector(o.RecordList.is);t&&(t.records=e.hits),this.showSelf()}else this.hideSelf()}update(e){e.has("userId")&&this.getPredictions(),super.update(e)}getPredictions(){if(void 0===this.userId||null===this.userId||""===this.userId)return this.error("No user id specified."),void this.hideSelf();const e={userId:this.userId};void 0!==this.maxResults&&(e.maxResults=this.maxResults),"string"==typeof this.blacklist&&(e.blacklist=this.blacklist.split(",").map((e=>e.trim())).filter((e=>!!e))),r.c.request.predictiveBasket(e,{origin:this})}}window.customElements.define(u.is,u)},6731:function(e,t,i){"use strict";i.r(t),i.d(t,{ProductsPerPageDropdown:function(){return f}});var r,n=i(168),s=i(3282),a=i(1448),o=i(8474),c=i(6342),u=i(4474),l=i(6041),d=i(3940),p=i(2240),h=i(8122);class f extends((0,d.X)([(0,p.D)(p.l.SearchAndNavigation)],u.jD)){static get is(){return"ff-products-per-page-dropdown"}static get properties(){return{values:{type:String},opened:{type:Boolean,reflect:!0},showSelected:{type:Boolean,attribute:"show-selected"},collapseOnblur:{type:u.k_,attribute:"collapse-onblur"},_items:{type:Array,attribute:!1}}}render(){const e=this._items.find((e=>e.selected));return(0,s.dy)(r||(r=(0,n.Z)(["",'
',"
"])),e?(0,h.renderPPPItem)(this._ffPPPTemplate,e):"",(0,a.$)({"ffw-ppp-dropdown-closed":!this.opened}),m,(0,o.l)([this._items,this.showSelected],(()=>(0,c.r)(this._items,(e=>e.value),(e=>this.showSelected||!e.selected?(0,h.renderPPPItem)(this._ffPPPTemplate,e):"")))))}constructor(){var e;super(),this.opened=!1,this.showSelected=!1,this.collapseOnblur=!0,this._items=[],this._paging=void 0,this._searchParams=void 0,this._dropdownContainer=void 0,this._ffPPPTemplate=void 0,this._haveItemsBeenInitialised=!1,this.addEventListener(h.eventClick,(()=>this.toggle())),this.addEventListener("blur",(e=this,()=>{e.collapseOnblur&&setTimeout((()=>e.collapse()),16)}))}connectedCallback(){super.connectedCallback(),this.hideSelf(),!this.getAttribute("tabindex")&&this.setAttribute("tabindex","1"),this._ffPPPTemplate=(0,h.getTemplate)(this)}update(e){e.has("_items")&&function(e){if(0===e._items.length)return void e.hideSelf();e._haveItemsBeenInitialised?e.collapse():e._haveItemsBeenInitialised=!0;e.showSelf()}(this),super.update(e)}firstUpdated(){this._dropdownContainer=this.getElementsByClassName("ffw-ppp-dropdown-container")[0]}updated(e){e.has("_items")&&this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}expand(){const e=this._dropdownContainer;e.style.height=e.scrollHeight+"px",this.opened=!0}collapse(){this._dropdownContainer.style.height=null,this.opened=!1}toggle(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened)?this.expand():this.collapse()}_subscriptionCallback(e){var t;this._searchParams=e.searchParams,this._paging=e.paging;const i=null===(t=e.paging)||void 0===t?void 0:t.hitsPerPage;if(!i)return;let r=this.values.split(",").map((e=>parseInt(e.trim()))).filter((e=>e));r.includes(i)||(r=[...r,i].sort()),this._items=r.map((e=>({value:e,selected:e===i})))}}function m(e){var t,i;const r=e.target.productsPerPageItem;if(r.value===(null===(t=this._paging)||void 0===t?void 0:t.hitsPerPage))return;const{hitsPerPage:n,page:s,...a}=this._searchParams;r.value!==(null===(i=this._paging)||void 0===i?void 0:i.defaultHitsPerPage)&&(a.hitsPerPage=r.value),(0,l.hT)(a,this)}window.customElements.define(f.is,f)},8122:function(e,t,i){"use strict";i.r(t),i.d(t,{ProductsPerPageItem:function(){return l},eventClick:function(){return u},getTemplate:function(){return h},renderPPPItem:function(){return p}});var r,n=i(168),s=i(3282),a=i(1448),o=i(4474);const c={dataTemplate:"{{value}}",attributes:{}},u="_item-clicked";class l extends o.jD{static get is(){return"ff-products-per-page-item"}static get properties(){return{productsPerPageItem:{type:Object},template:{type:Object,attribute:!1}}}render(){return(0,o.SM)(this.template.dataTemplate,this.productsPerPageItem)}constructor(){super(),this.template=c,this.addEventListener("click",d)}firstUpdated(e){Object.keys(this.template.attributes).forEach((e=>this.setAttribute(e,this.template.attributes[e])))}}function d(e){this.dispatchEvent(new CustomEvent(u,{bubbles:!0}))}function p(e,t){return(0,s.dy)(r||(r=(0,n.Z)([''])),(0,a.$)({"ffw-selected":t.selected,...e.classNames}),e,t)}function h(e){const t=e.querySelector(l.is);return!t||(0,o.np)(t)?c:{dataTemplate:t.innerHTML,attributes:Array.prototype.reduce.call(t.attributes,((e,t)=>{let{name:i,value:r}=t;return"class"!==i&&(e[i]=r),e}),{}),classNames:(t.className||"").split(" ").reduce(((e,t)=>(t&&(e[t]=!0),e)),{})}}window.customElements.define(l.is,l)},2997:function(e,t,i){"use strict";i.r(t),i.d(t,{ProductsPerPageList:function(){return h}});var r,n=i(168),s=i(3282),a=i(6342),o=i(4474),c=i(6041),u=i(3940),l=i(2240),d=i(8122),p=i(480);class h extends((0,u.X)([(0,l.D)(l.l.SearchAndNavigation)],o.jD)){static get is(){return"ff-products-per-page-list"}static get properties(){return{values:{type:String},_items:{type:Array,attribute:!1}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(["",""])),(0,a.r)(this._items,(e=>e.value),(e=>(0,d.renderPPPItem)(this._ffPPPTemplate,e))))}constructor(){super(),this._items=[],this._paging=void 0,this._searchParams=void 0,this._ffPPPTemplate=void 0,this.addEventListener(p.M,f)}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._ffPPPTemplate=(0,d.getTemplate)(this)}update(e){super.update(e),e.has("_items")&&(0===this._items.length?this.hideSelf():this.showSelf())}updated(e){e.has("_items")&&this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}_subscriptionCallback(e){var t;this._searchParams=e.searchParams,this._paging=e.paging;const i=null===(t=e.paging)||void 0===t?void 0:t.hitsPerPage;if(!i)return;let r=this.values.split(",").map((e=>parseInt(e.trim()))).filter((e=>e));r.includes(i)||(r=[...r,i].sort()),this._items=r.map((e=>({value:e,selected:e===i})))}}function f(e){var t,i;const r=e.target.productsPerPageItem;if(r.value===(null===(t=this._paging)||void 0===t?void 0:t.hitsPerPage))return;const{hitsPerPage:n,page:s,...a}=this._searchParams;r.value!==(null===(i=this._paging)||void 0===i?void 0:i.defaultHitsPerPage)&&(a.hitsPerPage=r.value),(0,c.hT)(a,this)}window.customElements.define(h.is,h)},825:function(e,t,i){"use strict";i.r(t),i.d(t,{ProductsPerPageSelect:function(){return d}});var r,n=i(168),s=i(3282),a=i(6342),o=i(4474),c=i(3940),u=i(2240),l=i(6041);class d extends((0,c.X)([(0,u.D)(u.l.SearchAndNavigation)],o.jD)){static get is(){return"ff-products-per-page-select"}static get properties(){return{values:{type:String},_items:{type:Array,attribute:!1}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(['"])),p,(0,a.r)(this._items,(e=>(0,o.SM)(this._optionTemplate,e))))}constructor(){super(),this._items=[],this._paging=void 0,this._searchParams=void 0,this._select=void 0,this._optionTemplate=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._optionTemplate=this.querySelector("option")||""}firstUpdated(){this._select=this.querySelector("select")}update(e){super.update(e),e.has("_items")&&(0===this._items.length?this.hideSelf():this.showSelf())}updated(e){e.has("_items")&&(this._select.selectedIndex=this._items.findIndex((e=>e.selected)),this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0})))}_subscriptionCallback(e){var t;this._searchParams=e.searchParams,this._paging=e.paging;const i=null===(t=e.paging)||void 0===t?void 0:t.hitsPerPage;if(!i)return;let r=this.values.split(",").map((e=>parseInt(e.trim()))).filter((e=>e));r.includes(i)||(r=[...r,i].sort()),this._items=r.map((e=>({value:e,selected:e===i})))}}function p(){var e,t,i;const r=null===(e=this._items[this._select.selectedIndex])||void 0===e?void 0:e.value;if(!r||r===(null===(t=this._paging)||void 0===t?void 0:t.hitsPerPage))return;const{hitsPerPage:n,page:s,...a}=this._searchParams||{};r!==(null===(i=this._paging)||void 0===i?void 0:i.defaultHitsPerPage)&&(a.hitsPerPage=r),(0,l.hT)(a,this)}window.customElements.define(d.is,d)},5608:function(e,t,i){"use strict";i.r(t),i.d(t,{Recommendation:function(){return c}});var r=i(2207),n=i(3940),s=i(4474),a=i(961),o=i(7982);class c extends((0,n.X)([(0,o.d)()],s.jD)){static get is(){return"ff-recommendation"}static get properties(){return{productNumber:{type:s.ye,attribute:"product-number"},maxResults:{type:Number,attribute:"max-results"},usePersonalization:{type:s.k_,attribute:"use-personalization"}}}constructor(){super(),this.productNumber=void 0,this.maxResults=void 0,this.usePersonalization=!0}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector(a.RecordList.is);e&&(e.subscribe=!1,e.__isRecommendation=!0)}update(e){e.has("productNumber")&&this.getRecommendations(),super.update(e)}getRecommendations(){if(!this.productNumber)return this.debug("No product number for recommendations specified."),void this.hideSelf();const e={id:this.productNumber.split(",")};this.maxResults&&(e.maxResults=this.maxResults),!1===this.usePersonalization&&(e.usePersonalization=!1),r.c.request.recommendation(e,{origin:this}).then((e=>{const t=e.hits;if(t.length>0){const e=this.querySelector(a.RecordList.is);e?(e.records=t,this.showSelf()):this.hideSelf()}else this.hideSelf()}))}}window.customElements.define(c.is,c)},961:function(e,t,i){"use strict";i.r(t),i.d(t,{RecordList:function(){return c}});var r=i(2207),n=i(3940),s=i(814),a=i(7361),o=i(4474);class c extends((0,n.X)([(0,a.z)()],o.jD)){static get is(){return"ff-record-list"}static get properties(){return{records:{type:Array},subscribe:{type:o.k_},ssr:{type:Boolean,reflectToAttribute:!0}}}constructor(){super(),this.subscribe=!0,this.__isRecommendation=!1,this.__isSimilarProducts=!1,this.__isLandingPage=!1,this.__isPredBasket=!1,this.__campaign=void 0,this.__pageId="",this._origHTML=this.innerHTML,this._templateRecord=void 0,this._templateInsertionInfo=void 0,this._subscriptionKey=void 0}connectedCallback(){if(super.connectedCallback(),!this._templateRecord){const e='template[data-role="record"]',t=this.querySelector(e);if(!t)throw console.log("".concat(c.is," without ").concat(s.Record.is," template."),this),Error("Could not find ".concat(s.Record.is," template with selector '").concat(e,"'. Initialization of ").concat(c.is," failed."));const i=document.importNode(t.content,!0);this._templateRecord=i.querySelector(s.Record.is),this._templateRecord._updateTemplate(),this._templateInsertionInfo={parentNode:t.parentNode,nextElementSibling:t}}if(this.ssr){const e=this._templateRecord.innerHTML;this.querySelectorAll(s.Record.is).forEach((t=>{t._updateTemplate(e)}))}else this.records&&this.records.length||this.hideSelf();!0===this.subscribe&&this._subscribe()}update(e){e.has("records")&&this._recordsPropertyChanged(this.records),e.has("subscribe")&&(this.subscribe?this._subscribe():this.unsubscribe()),super.update(e)}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe()}unsubscribe(){if(!this._subscriptionKey)return!1;r.u.elementsUnsubscribe(this._subscriptionKey),this._subscriptionKey=void 0}loadNextPage(){}_subscribe(){this._subscriptionKey||(this._subscriptionKey=r.u.elementsSubscribeSearchAndNavigation((e=>this._recordsChangedFFEventHandler(e))))}_recordsChangedFFEventHandler(e){this._currentLoadingNextPage=!1,u(this,e.hits,e)}_recordsPropertyChanged(e,t){var i,r;(i=e,r=t,Boolean(i&&r&&i.length===r.length&&i.every(((e,t)=>(0,s.isSameRecordData)(e,r[t])))))||u(this,e)}}function u(e,t,i){return new Promise((r=>{if(!t||!t.length)return e.hideSelf(),void r();const{parentNode:n}=e._templateInsertionInfo,a=n.removeChild.bind(n);Array.from(e.querySelectorAll(s.Record.is)).slice(t.length).forEach(a);const o=function(e){const t=[];for(let i=0;i{const n=o[r];n&&l(n)?p(n,t,e,i):d(e,t,i)})),e.showSelf(),requestAnimationFrame((()=>{e.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0})),r()}))}))}function l(e){return e.nodeName===s.Record.is.toUpperCase()}function d(e,t,i){const r=p(e._templateRecord.clone(),t,e,i),{parentNode:n,nextElementSibling:s}=e._templateInsertionInfo;n.insertBefore(r,s)}function p(e,t,i,r){return e.__isRecommendation=i.__isRecommendation,e.__isSimilarProducts=i.__isSimilarProducts,e.recordData=t,e.__isLandingPage=i.__isLandingPage,e.__isPredBasket=i.__isPredBasket,e.__campaign=i.__campaign,e.__pageId=i.__pageId,e.__result=r,i._currentLoadingNextPage&&(e.recordData.page=i._currentLoadingNextPage),e}window.customElements.define(c.is,c)},814:function(e,t,i){"use strict";i.r(t),i.d(t,{Record:function(){return f},isSameRecordData:function(){return h}});var r=i(6041),n=i(3940);var s=i(8486),a=i(7361),o=i(2207);function c(e,t,i,r){const n=(r||e).querySelectorAll(t);return!!n.length&&(i=i.bind(e),n.forEach((e=>e.addEventListener("click",i))),!0)}const u={getPrice:e=>{var t,i,r;const n=null===(t=o.u.getConfig().appConfig)||void 0===t||null===(t=t.fieldRoles)||void 0===t?void 0:t.price;return n&&(null!==(i=e.masterValues[n])&&void 0!==i?i:null===(r=e.variantValues[0])||void 0===r?void 0:r[n])},getProductNumber:e=>{var t,i,r;const n=null===(t=o.u.getConfig().appConfig)||void 0===t||null===(t=t.fieldRoles)||void 0===t?void 0:t.productNumber;return n&&(null!==(i=e.masterValues[n])&&void 0!==i?i:null===(r=e.variantValues[0])||void 0===r?void 0:r[n])},getTitle:e=>{var t,i,r,n;const s=null===(t=o.u.getConfig().appConfig)||void 0===t||null===(t=t.fieldRoles)||void 0===t?void 0:t.productName;return s&&null!==(i=null!==(r=e.masterValues[s])&&void 0!==r?r:null===(n=e.variantValues[0])||void 0===n?void 0:n[s])&&void 0!==i?i:""},getMasterId:e=>{var t,i,r,n;const s=null===(t=o.u.getConfig().appConfig)||void 0===t||null===(t=t.fieldRoles)||void 0===t?void 0:t.masterId;return s&&null!==(i=null!==(r=e.masterValues[s])&&void 0!==r?r:null===(n=e.variantValues[0])||void 0===n?void 0:n[s])&&void 0!==i?i:""}};var l=i(4474),d=i(3643);const p=[e=>class extends e{static get properties(){return{searchLightDOM:{type:Boolean},productImageIdentifier:{type:"String"},productImageErrorIdentifier:{type:"String"},redirectIdentifier:{type:"String"},redirectTargetIdentifier:{type:"String"},productAnchorIdentifier:{type:"String"},recommendationIdentifier:{type:"String"},bindImmediate:{type:Boolean},disableOverwrite:{type:Boolean}}}constructor(){super(),this.searchLightDOM=!0,this.productImageIdentifier="[data-image]",this.productImageErrorIdentifier="[data-image-onerror]",this.redirectIdentifier="[data-redirect]",this.redirectTargetIdentifier="[data-redirect-target]",this.productAnchorIdentifier="[data-anchor]",this.recommendationIdentifier="[data-recommendation]",this.bindImmediate=!1}ready(){super.ready(),this.bindImmediate&&(this.bindProductAnchors(),this.bindProductActions(),this.bindProductImage())}bindProductActions(){this._bindProductRedirect()}bindProductImage(){this.searchLightDOM&&this._bindProductImage(this)}bindProductAnchors(){this.searchLightDOM&&this._bindProductAnchors(this)}_bindProductImage(e){e.querySelectorAll(this.productImageIdentifier).forEach((e=>{e.onerror||(e.onerror=this._bindOnError(e));const t=e.getAttribute("data-image");t?e.setAttribute("src",t):e.onerror()}))}_bindOnError(e){return()=>{const t=e.getAttribute("data-image-onerror");e.onerror=null,t?e.setAttribute("src",t):console.debug("No image data for this record: ".concat(this.recordData.id))}}_bindProductAnchors(e){e.querySelectorAll(this.productAnchorIdentifier).forEach((e=>{const t=e.getAttribute("data-anchor");t&&0!==t.length&&(e.setAttribute("href",t),e.removeAttribute("data-anchor"))}))}_bindProductRedirect(){this.searchLightDOM&&this.bindRedirect(this)}bindRedirect(e){e&&e.querySelectorAll(this.redirectIdentifier).forEach((e=>{e.querySelectorAll("[data-track]").forEach((e=>e.attributes.removeNamedItem("data-track"))),this.registerClickListener(e)}))}registerClickListener(e){const t=e=>{const t=e.ctrlKey||e.shiftKey||e.metaKey||e.altKey;return 0===e.button&&!t&&!this.disableOverwrite},i=r=>{e.removeEventListener("mouseup",i),2!==r.button&&this._handleTrackingAndRedirect(r,t(r))};e.addEventListener("click",(e=>{t(e)&&e.preventDefault()})),e.addEventListener("mousedown",(t=>{e.addEventListener("mouseup",i),e.addEventListener("mouseleave",(()=>e.removeEventListener("mouseup",i)))}))}_handleTrackingAndRedirect(e,t){e.stopPropagation();const i=e.currentTarget,r=this.getRedirectTarget(i),n=this.getRedirectLocation(i);if(!n)return;const s=()=>{!0===t&&this.redirect(n,r)};if("_blank"===r){try{!0===this.__isRecommendation?this._trackRecommendationClick(this):!0===this.__isSimilarProducts?this._trackSimilarProductsClick(this):!0===this.__isLandingPage?this._trackLandingPageClick(this):!this.__result&&this.__campaign?this._trackProductCampaignClick(this):!0===this.__isPredBasket?this._trackPredBasketClick(this):this._trackProductClick(this)}catch(e){console.log(e)}s()}else!0===this.__isRecommendation?this._trackRecommendationClick(this,void 0,s):!0===this.__isSimilarProducts?this._trackSimilarProductsClick(this,void 0,s):!0===this.__isLandingPage?this._trackLandingPageClick(this,s):!this.__result&&this.__campaign?this._trackProductCampaignClick(this,s):!0===this.__isPredBasket?this._trackPredBasketClick(this,s):this._trackProductClick(this,s)}getRedirectLocation(e){const t=e.attributes.getNamedItem("data-redirect");if(t){const e=t.nodeValue;if(e&&e.length>0)return e;if(this.recordData)return this.recordData.record.Deeplink;console.debug("No record data available for data-redirect action.")}}getRedirectTarget(e){const t=e.attributes.getNamedItem("data-redirect-target");if(t){const e=t.nodeValue;if(e)return e}return"_blank"}redirect(e,t){window.open(e,t)}},(0,s.h)(!1),(0,a.z)(),e=>class extends e{constructor(){super(),this.clickSelector="[data-track]",this.productClickSelector='[data-track="productClick"]',this.recommendationClickSelector='[data-track="recommendationClick"]',this.checkoutClickSelector='[data-track="checkoutClick"]',this.cartClickSelector='[data-track="cartClick"]',this.dataCountSelector="[data-track-count]",this.getPrice=u.getPrice,this.getMasterId=u.getMasterId,this.getTitle=u.getTitle}getCount(e){const t=e.querySelector(this.dataCountSelector);if(t){const e=t.getAttribute("data-track-count");return parseInt(t[e]||t.value)}return 1}appendQuery(e,t,i){var r;const n=null===(r=o.u.getConfig().appConfig)||void 0===r?void 0:r.categoryPage;if(null!=n&&n.length){if(i){const t=n[0].values[0];e.query=Array.isArray(t.value)?t.value.map((e=>e.replaceAll("/","%2F"))).join("/"):t.value}}else e.query=t.__result.searchParams.query}appendCampaign(e,t){null!=t&&t.__campaign&&(e.campaign=t.__campaign.id)}appendPrice(e,t){const i=this.getPrice(t);null!=i&&(e.price=i)}appendScore(e,t){t.score&&(e.score=t.score)}appendTitle(e,t){const i=this.getTitle(t);null!=i&&(e.title=i)}appendPage(e,t){t&&(e.page=t.paging.currentPage)}appendPageSize(e,t){t&&(e.pageSize=t.hits.length)}appendMasterId(e,t){const i=this.getMasterId(t);null!=i&&(e.masterId=i)}bindClick(e){e=e||this,!0===this.__isRecommendation?c(this,this.clickSelector,(t=>{e._trackRecommendationClick(e)}),e):!0===this.__isSimilarProducts?c(this,this.clickSelector,(t=>{e._trackSimilarProductsClick(e)}),e):!0===this.__isLandingPage?c(this,this.clickSelector,(t=>{e._trackLandingPageClick(e)}),e):!this.__result&&this.__campaign?c(this,this.clickSelector,(t=>{e._trackProductCampaignClick(e)}),e):!0===this.__isPredBasket?c(this,this.clickSelector,(t=>{e._trackPredBasketClick(e)}),e):c(this,this.clickSelector,(t=>{e._trackProductClick(e)}),e)}bindCheckoutClick(e){e=e||this,c(this,this.checkoutClickSelector,(t=>{e._trackCheckoutClick(e)}),e)}bindCartClick(e){e=e||this,c(this,this.cartClickSelector,(t=>{e._trackCartClick(e)}),e)}_trackRecommendationClick(e,t,i){const{recordElement:r,containerElement:n}=this._getRecoLikeElements("ff-recommendation",e,t);if(r){const e={id:u.getProductNumber(r.recordData),mainId:n.productNumber};this.appendMasterId(e,r.recordData),this.appendTitle(e,r.recordData),o.c.tracking.recommendationClick([e],{origin:r}).finally((()=>{i&&i()}))}}_trackSimilarProductsClick(e,t,i){const{recordElement:r,containerElement:n}=this._getRecoLikeElements("ff-similar-products",e,t);if(r){const e={id:u.getProductNumber(r.recordData),mainId:n.productId};this.appendMasterId(e,r.recordData),this.appendTitle(e,r.recordData),o.c.tracking.recommendationClick([e],{origin:r}).finally((()=>{i&&i()}))}}_getRecoLikeElements(e,t,i){let n,s;return n=i?{recordData:i}:t.tagName&&"ff-record"===t.tagName.toLowerCase()?this:(0,r.mZ)(t,"ff-record"),s=t.tagName.toLowerCase()===e?t:(0,r.mZ)(t,e),{recordElement:n,containerElement:s}}_trackLandingPageClick(e,t){const i={campaign:e.__campaign.id,id:u.getProductNumber(e.recordData),pageId:e.__pageId};this.appendMasterId(i,e.recordData),this.appendTitle(i,e.recordData),o.c.tracking.landingPageClick([i],{origin:e}).finally((()=>{t&&t()}))}_trackCheckoutClick(e,t){const i=this._buildCartOrCheckoutEvent(e);o.c.tracking.checkout([i],{origin:e}).finally((()=>{t&&t()}))}_trackCartClick(e,t){const i=this._buildCartOrCheckoutEvent(e);o.c.tracking.cart([i],{origin:e}).finally((()=>{t&&t()}))}_buildCartOrCheckoutEvent(e){const t={count:this.getCount(e)};if(this.appendCampaign(t,e),e.__isPredBasket){var i;const r=null===(i=o.u.getConfig().appConfig)||void 0===i?void 0:i.fieldRoles;t.id=e.recordData.values[null==r?void 0:r.productNumber];const n=e.recordData.values[null==r?void 0:r.masterId],s=e.recordData.values[null==r?void 0:r.price],a=e.recordData.values[null==r?void 0:r.productName];n&&(t.masterId=n),s&&(t.price=s),a&&(t.title=a)}else t.id=u.getProductNumber(e.recordData),this.appendMasterId(t,e.recordData),this.appendPrice(t,e.recordData),this.appendTitle(t,e.recordData);return t}_trackPredBasketClick(e,t){var i;const r=null===(i=o.u.getConfig().appConfig)||void 0===i?void 0:i.fieldRoles,n={id:e.recordData.values[null==r?void 0:r.productNumber]},s=e.recordData.values[null==r?void 0:r.masterId],a=e.recordData.values[null==r?void 0:r.productName];s&&(n.masterId=s),a&&(n.title=a),o.c.tracking.predbasketClick([n],{origin:e}).finally((()=>{t&&t()}))}_trackProductClick(e,t){const i=e.__result;if(!i)return void(t&&t());const r={id:u.getProductNumber(e.recordData),pos:e.recordData.position};this.appendQuery(r,e,i),this.appendCampaign(r,e),this.appendMasterId(r,e.recordData),this.appendPage(r,i),this.appendPageSize(r,i),this.appendScore(r,e.recordData),this.appendTitle(r,e.recordData),o.c.tracking.click([r],{origin:e}).finally((()=>{t&&t()}))}_trackProductCampaignClick(e,t){const i=e.__campaign.hits.findIndex((t=>t.id===e.recordData.id)),r={id:u.getProductNumber(e.recordData),pos:i+1,query:"Product campaign - ".concat(e.__campaign.name)};this.appendCampaign(r,e),this.appendMasterId(r,e.recordData),this.appendTitle(r,e.recordData),o.c.tracking.click([r],{origin:e}).finally((()=>{t&&t()}))}}],h=(e,t)=>Boolean(e&&t&&e.id===t.id&&JSON.stringify(e)===JSON.stringify(t));class f extends((0,n.X)(p,l.jD)){static get is(){return"ff-record"}static get properties(){return{recordData:{type:Object},addCartClick:{type:Boolean,attribute:"add-cart-click"},addCheckoutClick:{type:Boolean,attribute:"add-checkout-click"}}}constructor(){super(),this.addCartClick=!1,this.addCheckoutClick=!1,this.recordData=void 0,this._templateString=void 0,this.__isRecommendation=!1,this.__isSimilarProducts=!1,this.__isLandingPage=!1,this.__isPredBasket=!1,this.__campaign=void 0,this.__pageId="",this.__result=void 0}connectedCallback(){this._updateTemplate(),super.connectedCallback()}updated(e){e.has("recordData")&&this._recordDataChanged(this.recordData,e.get("recordData")),super.updated(e)}clone(){const e=document.createElement(f.is);return(0,r.FB)(this,e),e._updateTemplate(this._templateString),e}_recordDataChanged(e,t){if(e){if(!0===e.teaser)return this.innerHTML=e.text,!this.hasAttribute("is-teaser")&&this.setAttribute("is-teaser",""),void this.showSelf();this.hasAttribute("is-teaser")&&this.removeAttribute("is-teaser"),h(e,t)||(this._stamp(e),this.updateComplete.then((()=>{this.bindProductActions(),this.bindProductImage(),this.bindProductAnchors(),this.resolveDeferredAttributes(),this.bindClick(),this.addCartClick&&this.bindCartClick(),this.addCheckoutClick&&this.bindCheckoutClick()}))),this.showSelf()}else this.hideSelf()}_stamp(e){this.innerHTML=(0,d.s)(this._templateString,e)}_updateTemplate(e){e?this._templateString=e:this._templateString||(this._templateString=this.innerHTML)}}window.customElements.define(f.is,f)},8153:function(e,t,i){"use strict";i.r(t),i.d(t,{SearchBox:function(){return h}});var r=i(2207),n=i(792),s=i(4474),a=i(177),o=i(3940),c=i(8016),u=i(7982),l=i(2240),d=i(6041);const p=new WeakMap;class h extends((0,o.X)([(0,u.d)(),(0,l.D)(l.l.SearchAndNavigation)],s.jD)){static get is(){return"ff-searchbox"}static get properties(){return{suggestOnfocus:{type:s.k_,attribute:"suggest-onfocus"},selectOnclick:{type:s.k_,attribute:"select-onclick"},useSuggest:{type:s.k_,attribute:"use-suggest"},suggestDelay:{type:Number,attribute:"suggest-delay"},showAsteriskQuery:{type:s.k_,attribute:"show-asterisk-query"}}}get value(){if(this.input)return this.input.value;this.error("Input element not initialized.")}set value(e){this.input?(this.input.value=e,this.input.dispatchEvent(new Event("input",{bubbles:!0}))):this.error("Input element not initialized.")}constructor(){super(),this.selectedIndex=-1,this._inputValueChanged=this._inputValueChanged.bind(this),this.suggestOnfocus=!1,this.selectOnclick=!1,this.useSuggest=!0,this.suggestDelay=350,this.showAsteriskQuery=!1,this._enableTextSelection=!0,this._fireSuggestDebouncerJob=void 0,this._lastResult=void 0}firstUpdated(e){super.firstUpdated(e),this.input||(this.appendChild(document.createElement("input")),this.resetInput()),this.input.addEventListener("input",this._inputValueChanged),this.input.addEventListener("blur",this._inputValueChanged),this.input.addEventListener("focus",this._inputValueChanged),!0===this.selectOnclick?this.addEventListener("click",(()=>{this._enableTextSelection&&(this.input.select(),this._enableTextSelection=!1)})):!1!==this.selectOnclick&&this.warn("select-onclick has to be either 'true' or 'false'"),this.input.onkeyup=e=>{13===e.keyCode&&this._onEnter(),27===e.keyCode&&this._hideSuggest(),40===e.keyCode&&this._onArrowDown(e),38===e.keyCode&&this._onArrowUp(e)}}updated(e){super.updated(),e.has("suggestDelay")&&(null===this.suggestDelay||isNaN(this.suggestDelay)||(this._fireSuggestDebouncerJob=(0,n.D)(this._fireSuggestDebouncerJob,(()=>this._fireSuggest()),this.suggestDelay)))}connectedCallback(){this.resetInput(),super.connectedCallback();if(!this.querySelector(a.SearchButton.is))return;const e=e=>{e.stopPropagation(),this._fireSearch(this.value)};p.set(this,e),this.addEventListener(a.Events.ButtonClicked,e)}disconnectedCallback(){this.removeEventListener(a.Events.ButtonClicked,p.get(this)),p.delete(this),this._fireSuggestDebouncerJob&&this._fireSuggestDebouncerJob.cancel(),super.disconnectedCallback()}_subscriptionCallback(e){const t=e.searchParams.query;this.input.value="*"!==t||this.showAsteriskQuery?t:"",this._lastResult=e}_inputValueChanged(e){e&&("focus"===e.type&&!0===this.suggestOnfocus||"input"===e.type?this._triggerSuggest():"blur"===e.type&&(this._enableTextSelection=!0))}_triggerSuggest(){!1!==this.useSuggest&&(this.resetHighlight(),this._fireSuggestDebouncerJob.run())}_fireSuggest(){if(this.value&&this.value.length>=2){var e;const t={query:this.value};null!==(e=this._lastResult)&&void 0!==e&&e.followSearch&&(t.followSearch=this._lastResult.followSearch),r.c.request.suggest(t,{origin:this})}else this._hideSuggest()}_hideSuggest(){var e;this.resetHighlight(),this.selectedIndex=-1,null===(e=this._fireSuggestDebouncerJob)||void 0===e||e.cancel(),r.u.notifications.dispatchSuggestHide(this)}search(){this._fireSearch(this.value)}_fireSearch(e){var t;if(!e)return;const i={query:e};null!==(t=this._lastResult)&&void 0!==t&&t.followSearch&&(i.followSearch=this._lastResult.followSearch),r.c.request.search(i,{requestOptions:{origin:this}})}_onEnter(){-1!==this.selectedIndex?this.searchSelected():this.search(),this._hideSuggest()}_onArrowUp(e){if(this.selectedIndex<=0)return;this.input.setSelectionRange(0,this.value.length);const t=this.getSuggestItems();return t.length>0&&(this.removeHighlight(t[this.selectedIndex]),this.selectedIndex--,this.selectedIndex>=0&&this.setHighlight(t[this.selectedIndex])),e.stopPropagation(),e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1}_onArrowDown(e){const t=this.getSuggestItems();this.selectedIndex!==t.length-1&&t.length>0&&(-1!==this.selectedIndex&&this.removeHighlight(t[this.selectedIndex]),this.selectedIndex++,this.selectedIndex0!==e.offsetHeight))}resetInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"input";this.input=this.querySelector(e)}_handleExternalHighlight(e){this.resetHighlight(),this.setHighlight(e.element),this.selectedIndex=e.selectedIndex}setHighlight(e){e.classList.add("ffw-highlight-suggest-item")}removeHighlight(e){e.classList.remove("ffw-highlight-suggest-item")}resetHighlight(){this.selectedIndex=-1,this.getSuggestItems().forEach((e=>{e.classList.remove("ffw-highlight-suggest-item")}))}}window.customElements.define(h.is,h)},177:function(e,t,i){"use strict";i.r(t),i.d(t,{Events:function(){return o},SearchButton:function(){return c}});var r=i(4474),n=i(3940),s=i(7982),a=i(8153);const o={ButtonClicked:"ffSearchButton"};class c extends((0,n.X)([(0,s.d)()],r.jD)){static get is(){return"ff-searchbutton"}static get properties(){return{for:{type:String}}}constructor(){super(),this._button=void 0}firstUpdated(){var e;this.resetButton(),this.addEventListener("click",(e=this,t=>{if(!e._button)return e.error("No button element initialized.");if(!e._button.contains(t.target))return;if(!e.for)return void e.dispatchEvent(new CustomEvent(o.ButtonClicked,{bubbles:!0}));const i=document.getElementById(e.for);if(!i)return e.error("Could not find ".concat(a.SearchBox.is," with id '").concat(e.for,"'."));i.search()})),super.firstUpdated()}resetButton(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button";const t=this.querySelector(e);t?this._button=t:this.error("Couldn't find element for selector: ".concat(e))}}window.customElements.define(c.is,c)},4700:function(e,t,i){"use strict";i.r(t),i.d(t,{SimilarProducts:function(){return u}});var r=i(2207),n=i(3940),s=i(961),a=i(4474),o=i(7982);const c=Object.freeze({ProductNumber:"productNumber",Id:"id"});class u extends((0,n.X)([(0,o.d)()],a.jD)){static get is(){return"ff-similar-products"}static get properties(){return{productId:{type:a.ye,attribute:"product-id"},maxResults:{type:Number,attribute:"max-results"},idType:{type:String,attribute:"id-type"}}}constructor(){super(),this.productId=void 0,this.maxResults=void 0,this.idType=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector(s.RecordList.is);e&&(e.subscribe=!1,e.__isSimilarProducts=!0)}update(e){if(e.has("idType")){const e=Object.values(c);if(!e.includes(this.idType))return void this.warn("idType must be one of [".concat(e.join(", "),"]. Was: ").concat(this.idType,"."))}e.has("productId")&&this.getSimilarProducts(),super.update(e)}getSimilarProducts(){if(!Object.values(c).includes(this.idType))return void this.warn("idType invalid. Not sending request.");if(!this.productId)return void this.debug("No product id for similarProducts specified.");const e={id:this.productId,idType:this.idType};this.maxResults&&(e.maxResults=this.maxResults),r.c.request.similar(e,{origin:this}).then((e=>{const t=e.hits;if(t.length>0){const e=this.querySelector(s.RecordList.is);e?(e.records=t,this.showSelf()):this.hideSelf()}else this.hideSelf()}))}}window.customElements.define(u.is,u)},6637:function(e,t,i){"use strict";i.r(t),i.d(t,{SingleWordSearch:function(){return k}});var r,n=i(168),s=i(9890),a=i(961),o=i(3940),c=i(7982),u=i(4474),l=i(3643),d=i(6041);const p="[data-search='singleWord']";class h extends((0,o.X)([(0,c.d)()],u.jD)){static get is(){return"ff-single-word-search-record"}static get properties(){return{_template:{type:Object,attribute:!1},singleWordResult:{type:Object,attribute:!1}}}render(){return(0,s.dy)(this._template?[this._template.dataTemplate]:[])}constructor(){super(),this._template=void 0,this._handleSingleSearchClick=f(this)}firstUpdated(e){super.firstUpdated(e),this._template&&Object.keys(this._template.attributes).forEach((e=>this.setAttribute(e,this._template.attributes[e])))}updated(e){super.updated(e),e.has("singleWordResult")&&m(this,this.singleWordResult)}connectedCallback(){super.connectedCallback();const e=this.querySelector(a.RecordList.is);e?(e.setAttribute("subscribe","false"),e.innerHTML=e._origHTML):(0,u.np)(this)||this.warn("".concat(a.RecordList.is," not found. Data will not be displayed."))}}const f=e=>()=>{(0,d.hT)(e.singleWordResult.searchParams,e)},m=(e,t)=>{if(e.hideSelf(),!t)return;const i=e.querySelector(p);i&&(i.innerHTML=(0,l.s)(i.innerHTML,t));const r=e.querySelector(a.RecordList.is);r?r.records=t.previewRecords:e.warn("".concat(a.RecordList.is," not found. Data will not be displayed.")),g(e,e._handleSingleSearchClick),b(e,e._handleSingleSearchClick),e.showSelf()},g=(e,t)=>{e.querySelectorAll(p).forEach((e=>e.removeEventListener("click",t)))},b=(e,t)=>{e.querySelectorAll(p).forEach((e=>e.addEventListener("click",t)))};window.customElements.define(h.is,h);var v,y,_=i(6342),S=i(2240);class k extends((0,o.X)([(0,S.D)(S.l.SearchAndNavigation)],u.jD)){static get is(){return"ff-single-word-search"}static get properties(){return{singleWordResults:{type:Array,attribute:!1}}}render(){return!this.singleWordResults||!this.singleWordResults.length>0?(0,s.dy)(v||(v=(0,n.Z)([""]))):(0,s.dy)(y||(y=(0,n.Z)([""," "," ",""])),(0,u.SM)(this._headerTemplate),(0,_.r)(this.singleWordResults,(e=>e.word),(e=>{return t=this._singleWordRecordTemplate,i=e,(0,s.dy)(r||(r=(0,n.Z)([''])),t,i);var t,i})),(0,u.SM)(this._footerTemplate))}constructor(){super(),this._headerTemplate=void 0,this._singleWordRecordTemplate=void 0,this._footerTemplate=void 0,this.singleWordResults=[]}updated(e){super.updated(e),this.updateComplete.then((()=>{Promise.all(Array.from(this.querySelectorAll(h.is)).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))}connectedCallback(){super.connectedCallback();const e=this.querySelector(h.is),t=C(e),i=w(e);this._headerTemplate=this._headerTemplate||P(t),this._singleWordRecordTemplate=this._singleWordRecordTemplate||(e=>!e||(0,u.np)(e)?{dataTemplate:"",attributes:{}}:{dataTemplate:e.innerHTML,attributes:Array.prototype.reduce.call(e.attributes,((e,t)=>{let{name:i,value:r}=t;return e[i]=r,e}),{})})(e),this._footerTemplate=this._footerTemplate||P(i)}_subscriptionCallback(e){this.singleWordResults=e.singleWordResults}}const C=e=>{if(!e)return[];const t=[...e.parentNode.childNodes];return t.slice(0,t.indexOf(e))},w=e=>{if(!e)return[];const t=[...e.parentNode.childNodes];return t.slice(t.indexOf(e)+1)},P=e=>{const t=document.createElement("div");return e.forEach((e=>t.appendChild(e))),t.innerHTML};window.customElements.define(k.is,k)},4675:function(e,t,i){"use strict";i.r(t),i.d(t,{Slider:function(){return h}});var r=i(168),n=i(3282),s=i(4474),a=i(6041);const o=e=>Math.round(1e3*e)/1e3;class c extends s.jD{static get properties(){return{selectedMinValue:{type:Number,attribute:"selected-min-value"},selectedMaxValue:{type:Number,attribute:"selected-max-value"},absoluteMaxValue:{type:Number,attribute:"absolute-max-value"},absoluteMinValue:{type:Number,attribute:"absolute-min-value"},step:{type:Number}}}constructor(){super(),this.step=1,this._initialized=!1}update(e){e.has("absoluteMinValue")&&(this.absoluteMinValue=o(Math.floor(this.absoluteMinValue/this.step)*this.step)),e.has("absoluteMaxValue")&&(this.absoluteMaxValue=o(Math.ceil(this.absoluteMaxValue/this.step)*this.step)),e.has("selectedMinValue")&&(this.selectedMinValue=o(Math.floor(this.selectedMinValue/this.step)*this.step)),e.has("selectedMaxValue")&&(this.selectedMaxValue=o(Math.ceil(this.selectedMaxValue/this.step)*this.step)),super.update(e)}updateData(e){!e||this.selectedMaxValue===e.selectedMaxValue&&this.selectedMinValue===e.selectedMinValue||(this.absoluteMaxValue=e.absoluteMaxValue,this.absoluteMinValue=e.absoluteMinValue,this.selectedMaxValue=e.selectedMaxValue,this.selectedMinValue=e.selectedMinValue),function(e,t){if(e._initialized)return;Promise.resolve().then((()=>{const i=(0,a.mZ)(e,"FF-Slider-CONTROL");i&&i.init(t)})),e._initialized=!0}(this,e)}submit(){if(this.selectedMinValue<=this.absoluteMinValue&&this.selectedMaxValue>=this.absoluteMaxValue)this.dispatchEvent(new CustomEvent("_slider-submit",{bubbles:!0,composed:!0}));else{(e=this).selectedMinValue=o(Math.round(e.selectedMinValue/e.step)*e.step),e.selectedMaxValue=o(Math.round(e.selectedMaxValue/e.step)*e.step);const t="[".concat(this.selectedMinValue,",").concat(this.selectedMaxValue,"]");this.dispatchEvent(new CustomEvent("_slider-submit",{detail:t,bubbles:!0,composed:!0}))}var e}}var u,l;const d=Object.freeze({Triangle:".ffw-triangle",LeftButton:".ffw-slider-button-left",RightButton:".ffw-slider-button-right",Line:".ffw-line",SelectedRange:".ffw-selected-range"}),p=Object.freeze({NoTransition:"ffw-no-transition",Active:"ffw-active"});class h extends c{static get is(){return"ff-slider"}static get properties(){return{ratio:{type:Number},oneTouch:{type:Boolean,attribute:"one-touch"}}}constructor(){super(),this.ratio=.5,this.oneTouch=!1,this._listener=void 0}render(){const e=this.querySelector(".ffw-slider-button-left"),t=this.querySelector(".ffw-slider-button-right"),i=this.offsetWidth;let s=i;e&&t&&(s=i-e.offsetWidth-t.offsetWidth);const a=s*this.ratio;return(0,n.dy)(u||(u=(0,r.Z)(['
','
'])),f(this),m(this),i,a,a,2*i,2*a,this.oneTouch&&(0,n.dy)(l||(l=(0,r.Z)(['
'])),b(this),b(this),f(this),1.5*i,a,s),i,i,i,v(this,!0),v(this,!0),i,v(this,!1),v(this,!1),2*i)}firstUpdated(){super.firstUpdated(),window.addEventListener("mouseup",_(this)),window.addEventListener("touchend",_(this))}update(e){super.update(e);["selectedMinValue","selectedMaxValue","absoluteMinValue","absoluteMaxValue"].some((t=>e.has(t)))&&(!function(e){e.selectedMaxValue=Math.min(e.absoluteMaxValue,e.selectedMaxValue),e.selectedMinValue=Math.max(e.absoluteMinValue,e.selectedMinValue),e.selectedMinValue===e.selectedMaxValue&&(e.selectedMinValue===e.absoluteMinValue&&(e.selectedMaxValue+=e.step),e.selectedMaxValue===e.absoluteMaxValue&&(e.selectedMinValue-=e.step));S(e)}(this),g(this))}updateData(e){super.updateData(e),g(this)}}function f(e){return()=>{const t=e.querySelector(d.Triangle);t&&(t.classList.add(p.Active),g(e))}}function m(e){return()=>{if(e._listener)return;const t=e.querySelector(d.Triangle);t&&(t.classList.remove(p.Active),g(e))}}function g(e){const t=e.querySelector(d.LeftButton),i=e.querySelector(d.RightButton),r=e.querySelector(d.Line),n=e.querySelector(d.SelectedRange),s=e.querySelector(d.Triangle),a=r.offsetWidth,o=r.offsetLeft,c=a-t.offsetWidth-i.offsetWidth,u=a+t.offsetWidth,l=e.absoluteMaxValue-e.absoluteMinValue,h=Math.round((e.selectedMinValue-e.absoluteMinValue)/l*c+o),f=Math.round((e.selectedMaxValue-e.absoluteMinValue)/l*c+u);if(t.style.left="".concat(h,"px"),n.style.left="".concat(h,"px"),i.style.left="".concat(f,"px"),n.style.right="".concat(2*a-f-i.offsetWidth,"px"),!s)return;const m=h+t.offsetWidth;if(s.classList.contains(p.Active)){const e=50-(f-m)/c*50;s.style.left="".concat(f,"px"),s.style.top="".concat(e,"%")}else s.style.left="".concat((f-m)/2+m,"px"),s.style.top="50%"}function b(e){return{handleEvent:t=>{const i=e.querySelector(d.LeftButton),r=e.querySelector(d.RightButton),n=e.querySelector(d.Line),s=e.querySelector(d.Triangle);s.classList.contains(p.Active)||f(e)(),_(e)(),s.classList.add(p.NoTransition);const a=n.offsetWidth-i.offsetWidth-r.offsetWidth,o=e.absoluteMaxValue-e.absoluteMinValue,c=e=>e/a*o,[u,l]=y(t),h=e.selectedMaxValue,m=e.selectedMaxValue-e.selectedMinValue;e._listener=t=>{const[i,r]=y(t),n=i-u,s=(r-l)/e.ratio,a=c(n),o=c(s),d=h+a,p=d-m,f=Math.max(0,d-e.absoluteMaxValue),b=Math.max(0,e.absoluteMinValue-p),v=o>0?Math.max(0,b-o):b,_=Math.min(e.absoluteMaxValue,d)+v,k=Math.max(e.absoluteMinValue,p)-f,C=o-b,w=Math.min(_,k+C),P=Math.max(e.absoluteMinValue,_);e.selectedMinValue=w,e.selectedMaxValue=P,g(e),S(e)},window.addEventListener("mousemove",e._listener),window.addEventListener("touchmove",e._listener)},passive:!0}}function v(e,t){return{handleEvent:i=>{_(e)();const r=e.querySelector(d.LeftButton),n=e.querySelector(d.RightButton),s=e.querySelector(d.Line),a=e.querySelector(d.Triangle);null==a||a.classList.add(p.NoTransition);const c=s.offsetWidth-r.offsetWidth-n.offsetWidth,u=s.offsetLeft,l=parseInt(r.style.left.replace("px","")),h=parseInt(n.style.left.replace("px","")),[f]=y(i),m=e.absoluteMaxValue-e.absoluteMinValue,b=t=>t/c*m+e.absoluteMinValue;e._listener=i=>{const[n]=y(i),s=n-f;if(t){const t=b(l+s-u);e.selectedMinValue=o(Math.min(e.selectedMaxValue,t))}else{const t=b(h+s-u-r.offsetWidth);e.selectedMaxValue=o(Math.max(e.selectedMinValue,t))}g(e),S(e)},window.addEventListener("mousemove",e._listener),window.addEventListener("touchmove",e._listener)},passive:!0}}function y(e){return[void 0!==e.clientX?e.clientX:e.touches[0].clientX,void 0!==e.clientY?e.clientY:e.touches[0].clientY]}function _(e){return()=>{if(!e._listener)return;window.removeEventListener("mousemove",e._listener),window.removeEventListener("touchmove",e._listener),e.submit(),e._listener=void 0;const t=e.querySelector(d.Triangle);if(!t)return;t.classList.remove(p.NoTransition);!1===(t.matches?t.matches(":hover"):t.msMatchesSelector(":hover"))&&m(e)()}}function S(e){const t={detail:{selectedMinValue:e.selectedMinValue,selectedMaxValue:e.selectedMaxValue,slider:"min"}};e.dispatchEvent(new CustomEvent("value-changed",t)),e.dispatchEvent(new CustomEvent("slider-moved",t)),e.dispatchEvent(new CustomEvent("slider-moved",{detail:{...t.detail,slider:"max"}}))}window.customElements.define(h.is,h)},2969:function(e,t,i){"use strict";i.r(t),i.d(t,{SortBoxSelect:function(){return l}});var r,n=i(168),s=i(3282),a=i(4474),o=i(3940),c=i(2240),u=i(6041);class l extends((0,o.X)([(0,c.D)(c.l.SearchAndNavigation)],a.jD)){static get is(){return"ff-sortbox-select"}static get properties(){return{items:{type:Array,attribute:!1}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(['"])),d,this.items.map((e=>(0,a.SM)(this._itemTemplate,e))))}constructor(){super(),this._selectAttributes=[],this._itemTemplate=void 0,this.items=[]}connectedCallback(){var e;super.connectedCallback(),this.hideSelf(),this._selectAttributes=(e=this.querySelector("select"))?e.attributes:[],this._itemTemplate=this.querySelector("option")||""}firstUpdated(){const e=this.querySelector("select");Array.prototype.forEach.call(this._selectAttributes,(t=>{let{name:i,value:r}=t;return e.setAttribute(i,r)}))}updated(e){e.has("items")&&(0===this.items.length?this.hideSelf():(this.showSelf(),this.querySelector("select").selectedIndex=function(e){for(let t=0;t','
',"
"])),g.SelectedContainer,this._selectedItem,g.DropdownContainer,this.opened?"":g.DropdownClosed,this._dropdownItems)}constructor(){var e;super(),this.items=[],this.opened=!1,this.showSelected=!1,this.showSelectedFirst=!1,this.collapseOnblur=!0,this._defaultSortItemTemplate=void 0,this._initialized=!1,this._sortBoxItemTemplateInfos={},this._selectedItem=void 0,this._dropdownItems=void 0,this.addEventListener(d,_),this.addEventListener("click",(()=>this.toggle())),this.addEventListener("blur",(e=this,()=>{e.collapseOnblur&&setTimeout((()=>e.collapse()),150)}))}connectedCallback(){super.connectedCallback(),this._init()}_init(){if(this._initialized)return;this.tabindex=this.getAttribute("tabindex"),this.tabindex||this.setAttribute("tabindex","1");const e=this.querySelector(m.DefaultSortItemCssSelector);e?(this._defaultSortItemTemplate=e,this.removeChild(e)):this._defaultSortItemTemplate=document.createElement(p.is),this._sortBoxItemTemplateInfos=function(e,t){const i="Relevancy.desc";return t.forEach((t=>{const r=t.getAttribute("key");!r||r===i&&e.hasOwnProperty(i)||(e[r]=y(t))})),e}(this._sortBoxItemTemplateInfos,this.querySelectorAll(p.is)),this._initialized=!0}firstUpdated(e){super.firstUpdated(e),this.hideSelf(),function(e){const t=v(e);e.opened?(e.opened=!0,e._show(t,!1)):e._hide(t,!1,(()=>{e.opened=!1}))}(this)}update(e){(e.has("items")||e.has("showSelected"))&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.collapse(),!t.length)return void e.hideSelf();const i=t.find((e=>e.selected)),r=t.indexOf(i),n=t.slice();e.showSelected&&!e.showSelectedFirst||n.splice(r,1);if(e.showSelected){const t={...i,selected:!1};n.splice(e.showSelectedFirst?0:r,0,t)}e._selectedItem=s(i),e._dropdownItems=n.map(s),e._dropdownItems.forEach((e=>e._highlightSelected=!1)),e.showSelected&&(e._dropdownItems[e.showSelectedFirst?0:r]._highlightSelected=!0);function s(t){const i="".concat((r=t).name,".").concat(r.order);var r;const n=function(e,t,i,r){const n=(s=e[i],a=()=>{const r=t.clone();return r.setAttribute("key",i),e[i]=y(r),e[i]},null!=s?s:a());var s,a;if(r&&!n.selected){const e=n.dropdown.clone();e.setAttribute("key",i),n.selected=e}return r?n.selected:n.dropdown}(e._sortBoxItemTemplateInfos,e._defaultSortItemTemplate,i,t.selected);return n.sortItem=t,n}e.showSelf(),e.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}(this,this.items),super.update(e)}expand(){if(this.opened)return;this.opened=!0;const e=v(this);this._show(e,!0)}collapse(){if(!this.opened)return;const e=v(this);e.__transitionActive__=!1,this._hide(e,!0,(()=>{this.opened=!1}))}toggle(e){!0===e?this.expand():!1===e||this.opened?this.collapse():this.expand()}_subscriptionCallback(e){this.items=e.sortItems}}function v(e){return e.querySelector(".".concat(g.DropdownContainer))}function y(e,t){return{dropdown:e,selected:t}}function _(e){const t=e.target.sortItem;t.selected||(0,a.hT)(t.searchParams,this)}window.customElements.define(b.is,b)},8016:function(e,t,i){"use strict";i.d(t,{M:function(){return f},u:function(){return m}});var r,n,s=i(168),a=i(9890),o=i(6858),c=i(3940),u=(i(8153),i(7982)),l=i(8486),d=i(4474),p=i(9528),h=i(6041);const f="_item-clicked";class m extends((0,c.X)([(0,u.d)(),(0,l.h)()],d.jD)){static get is(){return"ff-suggest-item"}static get properties(){return{type:{type:String,reflect:!0},suggestion:{type:Object,attribute:!1}}}render(){const e=this.suggestion&&JSON.parse(JSON.stringify(this.suggestion));return e&&this._query&&this.highlightQuery(e,this._query),this._template?(0,a.dy)(r||(r=(0,s.Z)(["",""])),(0,d.SM)(this._template,(0,p.J)(e,"name"))):(0,a.dy)(n||(n=(0,s.Z)(["",""])),this.innerHTML)}constructor(){super(),this.type="all",this.suggestion=void 0,this._query=void 0,this._template=void 0,this.addEventListener("click",g)}connectedCallback(){super.connectedCallback(),this._template=this._template||this.innerHTML||void 0}update(e){this.suggestion?this.showSelf():this.hideSelf(),super.update(e)}updated(e){if(super.updated(e),this.suggestion)try{(0,o.M)(this,this.suggestion.image)}catch(e){this.error(e)}}highlightQuery(e,t){if(!e.queryHighlighted)if(t&&t.trim())try{const i=t.trim().split(" ").map(h.yI).join("|");e.name=e.name.replace(new RegExp(i,"gi"),(e=>''.concat(e,""))),e.queryHighlighted=!0}catch(e){this.error(e)}else this.warn("Search query is not defined or is an empty string. Suggest item highlighting skipped.")}}function g(e){e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new CustomEvent(f,{bubbles:!0}))}window.customElements.define(m.is,m)},5730:function(e,t,i){"use strict";i.r(t),i.d(t,{Suggest:function(){return m}});var r,n,s=i(168),a=i(9890),o=i(2207),c=i(3940),u=i(7982),l=i(8016),d=i(8153),p=i(4474),h=i(498);const f=Object.freeze({block:"block",list:"list"});class m extends((0,c.X)([(0,u.d)()],p.jD)){static get is(){return"ff-suggest"}static get properties(){return{layout:{type:String},suggestItems:{type:Array,attribute:!1},hideOnblur:{type:p.k_,attribute:"hide-onblur"},requestMappingSearch:{type:String,attribute:"request-mapping-search"},requestMappingNavigation:{type:String,attribute:"request-mapping-navigation"},requestMappingDetail:{type:String,attribute:"request-mapping-detail"},forSearchbox:{type:String,attribute:"for-searchbox"},_showUnknownSuggestions:{type:p.k_,attribute:"show-unknown-suggestions"},_unknownSuggestionsSectionId:{type:String,attribute:"unknown-suggestions-section-id"}}}render(){const e=g(this.suggestItems),t=Object.keys(e),i=document.createElement("div");i.innerHTML=this._template;const o=i.querySelectorAll("[data-container]"),c=(0,h.yi)('
\n

unknown

\n \n {{{name}}}\n \n
');for(let e=o.length-1;e>=0;e--){const i=o[e],r=i.getAttribute("data-container");(!r||t.indexOf(r)<0)&&i.parentNode.removeChild(i)}t.forEach((t=>{const r=e[t];let n=i.querySelector("".concat(l.u.is,'[type="').concat(t,'"]'));if(!n){if(!this._showUnknownSuggestions)return;const e=(0,h.yi)(c.outerHTML.replace(/\bunknown\b/g,t)),r=i.querySelector(this._unknownSuggestionsSectionId?"#".concat(this._unknownSuggestionsSectionId):"section");if(!r)return;r.appendChild(e),n=e.querySelector("".concat(l.u.is)),this._itemTemplates[t]=n.outerHTML}r.forEach((e=>{const i=(0,h.yi)(this._itemTemplates[t]);i._template=i.innerHTML,i.type=t,i.suggestion=e,i._query=this._userInput,n.parentNode.insertBefore(i,n)})),n.parentNode.removeChild(n)}));const u=i.querySelectorAll("section");return Array.from(u).forEach((e=>{0===e.querySelectorAll(l.u.is).length&&e.setAttribute("hidden","")})),(0,a.dy)(r||(r=(0,s.Z)(['
',"
"])),this.layout,Array.from(i.children).map((e=>(0,a.dy)(n||(n=(0,s.Z)(["",""])),e))))}constructor(){super(),this.layout=f.list,this.suggestItems=[],this.hideOnblur=!0,this.requestMappingSearch="searchTerm",this.requestMappingNavigation="category,brand",this.requestMappingDetail="productName",this.forSearchbox=void 0,this._showUnknownSuggestions=!1,this._unknownSuggestionsSectionId=void 0,this._suggestSubscriptionKey=void 0,this._template=void 0,this._itemTemplates={},this._originSearchbox=void 0,this._globalClickListener=void 0,this._hideListener=()=>{this._originSearchbox=void 0,this.hideSelf()}}connectedCallback(){var e;super.connectedCallback(),this._initTemplates(),this._suggestSubscriptionKey=this._suggestSubscriptionKey||o.u.elementsSubscribeSuggest(((e,t)=>{var i,r;let{suggestions:n}=e;const s=null==t||null===(i=t.suggestParams)||void 0===i?void 0:i.query,a=null==t||null===(r=t.requestOptions)||void 0===r?void 0:r.origin;s===(null==a?void 0:a.value)&&(this.forSearchbox&&!this.forSearchbox.split(",").includes(null==a?void 0:a.id)||(this.suggestItems=n||[],this._userInput=s,(null==a?void 0:a.constructor.is)===d.SearchBox.is&&(this._originSearchbox=a)))})),o.u.notifications.addSuggestHideListener(this._hideListener),this.addEventListener(l.M,this._itemClicked),this._globalClickListener=(e=this,t=>{var i;e.hideOnblur&&(e.contains(t.target)||null!==(i=e._originSearchbox)&&void 0!==i&&i.contains(t.target)||e._hideListener())}),document.addEventListener("click",this._globalClickListener)}update(e){this.suggestItems&&0!==this.suggestItems.length?this.showSelf():this.hideSelf(),super.update(e)}updated(e){super.updated(e),this.updateComplete.then((()=>{Promise.all(Array.from(this.querySelectorAll(l.u.is)).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))}disconnectedCallback(){o.u.notifications.removeSuggestHideListener(this._hideListener),this.removeEventListener(l.M,this._itemClicked),document.removeEventListener("click",this._globalClickListener),this._suggestSubscriptionKey&&(o.u.elementsUnsubscribe(this._suggestSubscriptionKey),this._suggestSubscriptionKey=void 0),super.disconnectedCallback()}_itemClicked(e){if(e.stopPropagation(),!1!==o.u.notifications.dispatchSuggestClick(e.target)){var t,i,r,n;const s=e.target,a=null===(t=o.u.getConfig().appConfig)||void 0===t||null===(t=t.fieldRoles)||void 0===t?void 0:t.deeplink;if(s.suggestion.attributes.hasOwnProperty(a))o.u.routing.requestNavigate(s.suggestion.attributes[a],s);else if(null!==(i=this.requestMappingSearch)&&void 0!==i&&i.split(",").includes(s.type))o.c.request.search(s.suggestion.searchParams,{userInput:this._userInput,requestOptions:{origin:s}});else if(null!==(r=this.requestMappingNavigation)&&void 0!==r&&r.split(",").includes(s.type)){const e=o.c.utils.toNavigationParams(s.suggestion.searchParams);o.c.request.navigation(e,{requestOptions:{origin:s}})}else null!==(n=this.requestMappingDetail)&&void 0!==n&&n.split(",").includes(s.type)?o.u.notifications.dispatchSuggestDetail(s):(console.warn("Unmapped suggest item type:",s),o.u.notifications.dispatchSuggestUnmapped(s))}this.hideSelf()}_initTemplates(){const e=document.createElement("div");e.innerHTML=this.innerHTML;for(let t=e.childNodes.length-1;t>=0;t--){const i=e.childNodes[t];("SECTION"!==i.nodeName||!i.querySelector(l.u.is)&&i.id!==this._unknownSuggestionsSectionId)&&i.parentNode.removeChild(i)}this._template=e.innerHTML;e.querySelectorAll(l.u.is).forEach((e=>{const t=e.getAttribute("type");t&&!this._itemTemplates[t]&&(this._itemTemplates[t]=e.outerHTML)}))}}window.customElements.define(m.is,m);const g=e=>{const t={};return e.forEach((e=>{t[e.type]=t[e.type]||[],t[e.type].push(e)})),t}},1616:function(e,t,i){"use strict";i.r(t),i.d(t,{Template:function(){return c}});var r=i(2207),n=i(4474),s=i(3940),a=i(7982),o=i(8486);class c extends((0,s.X)([(0,a.d)(),(0,o.h)()],n.jD)){static get is(){return"ff-template"}static get properties(){return{data:{type:Object,attribute:!1},scope:{type:String}}}render(){return(0,n.SM)(this._template,this.data)}constructor(){super(),this.data=void 0,this.scope=void 0,this._subscriptionKey=void 0,this._template=void 0}connectedCallback(){super.connectedCallback(),this._template=this.innerHTML,this.scope&&!this._subscriptionKey&&(this._subscriptionKey=u(this))}disconnectedCallback(){super.disconnectedCallback(),this._subscriptionKey&&(r.u.elementsUnsubscribe(this._subscriptionKey),this._subscriptionKey=void 0)}update(e){this.data?this.showSelf():this.hideSelf(),super.update(e)}updated(e){super.updated(e),e.has("data")&&this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))})),e.has("scope")&&(r.u.elementsUnsubscribe(this._subscriptionKey),this._subscriptionKey=this.scope?u(this):void 0)}}function u(e){const t="elementsSubscribe",i=e.scope.trim(),n=t+i;if("function"==typeof r.u[n])return r.u[n]((t=>{e.data=t}));{const n=Object.keys(r.u).filter((e=>e.startsWith(t))).map((e=>e.slice(17)));e.error("Specified scope '".concat(i,"' does not exist. Pick one of: ").concat(n.join(", ")))}}window.customElements.define(c.is,c)},4474:function(e,t,i){"use strict";i.d(t,{SM:function(){return d},jD:function(){return l},k_:function(){return h},np:function(){return p},ye:function(){return f}});var r,n=i(168),s=i(3282),a=i(3940),o=i(3643),c=i(7361);const u=Object.freeze({Comment:8});class l extends((0,a.X)([(0,c.z)()],s.oi)){createRenderRoot(){return this}showSelf(){this.classList.remove("ffw-hidden")}hideSelf(){this.classList.add("ffw-hidden")}shouldUpdate(e){return this._preprocessBooleanProperties(e),!0}connectedCallback(){super.connectedCallback(),this._preprocessBooleanProperties(this.constructor._classProperties)}_preprocessBooleanProperties(e){e.forEach(((e,t)=>{var i;this.constructor._classProperties.get(t).type===h&&(function(e){const t=String(e).toLowerCase();return"true"===t||"false"===t}(this[t])||console.error("".concat(this.constructor.is,": ")+"StringyBoolean property [".concat(t,"] is expected to be either true or false, but is [").concat(this[t],"]. ")+"Falling back to false."),this[t]=(i=this[t],"true"===String(i).toLowerCase()))}))}}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return(0,s.dy)(r||(r=(0,n.Z)([""])));if("string"==typeof e)return(0,s.dy)([(0,o.s)(e,t)]);const i=document.createElement("div");return i.appendChild(e),(0,s.dy)([(0,o.s)(i.innerHTML,t)])}function p(e){return!e.innerHTML.trim()||Array.from(e.childNodes).every((e=>e.nodeType===u.Comment))}const h=String.bind({});function f(e){return null==e?e:String(e)}},792:function(e,t,i){"use strict";i.d(t,{D:function(){return r}});const r=(e,t,i)=>{let r;const n=()=>{clearTimeout(r),r=void 0};return e&&"function"==typeof e.cancel&&e.cancel(),{cancel:n,run:function(){for(var e=arguments.length,s=new Array(e),a=0;a{r=void 0,t(...s)}),i)}}}},9528:function(e,t,i){"use strict";function r(e,t){try{return{...e,[t]:decodeURIComponent(e[t])}}catch{return e}}i.d(t,{J:function(){return r}})},498:function(e,t,i){"use strict";function r(e){const t=document.createElement("div");t.innerHTML=e;const i=t.firstElementChild;return t.removeChild(i),i}function n(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;rt+i+e[r+1]),e[0])}function s(e,t){const i=e.parentNode||t,r=e.nextSibling,n=e.cloneNode(!0);return(e,t,s)=>{const a=Math.max(e.length,t.length);for(let o=0;o{i.onerror&&function(e,t){const i=e.attributes.getNamedItem(t);if(i){const t=i.nodeValue;t&&(e.onerror=()=>{e.onerror=null,e.setAttribute("src",t)})}}(i,e.getAttribute("product-image-error-attribute")||"data-image-onerror");(i.getAttribute("data-image")||t)&&i.setAttribute("src",i.getAttribute("data-image")||t)}))}i.d(t,{M:function(){return r}})},3643:function(e,t,i){"use strict";i.d(t,{s:function(){return a}});var r=i(9312),n=i.n(r),s=i(2207);function a(e,t){var i;const r=null===(i=s.u.getConfig().appConfig)||void 0===i?void 0:i.dataBindingTags,a=r?e.replaceAll(r[0],"{{").replaceAll(r[1],"}}"):e;try{return n().compile(a)(t)}catch(t){return console.error("Could not render template: ".concat(e),t),""}}},6041:function(e,t,i){"use strict";i.d(t,{FB:function(){return d},LI:function(){return l},M7:function(){return o},hT:function(){return a},mZ:function(){return u},pk:function(){return s},rE:function(){return c},yI:function(){return n}});var r=i(2207);const n=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e=>t=>("TRUE"===t.selected||"IRRELEVANT"===t.selected)&&!e.includes(t.text);function a(e,t,i){var n,s;t||console.warn("[DEBUG] Internal: 'searchOrNavigation' did not receive 'origin'");const a=i||{};return!t||null!==(n=a.requestOptions)&&void 0!==n&&n.origin||(a.requestOptions?a.requestOptions.origin=t:a.requestOptions={origin:t}),null!==(s=r.u.getConfig().appConfig)&&void 0!==s&&s.categoryPage?r.c.request.navigation(r.c.utils.toNavigationParams(e),a):r.c.request.search(e,a)}function o(){var e;return(null===(e=r.u.getConfig().appConfig)||void 0===e?void 0:e.categoryPage)||[]}function c(e){const t=o().find((t=>t.name===e.associatedFieldName));if(!t)return[];const i=t.values.map((e=>e.value));return"CATEGORY_PATH"===e.type?i[0]:i}const u=(e,t)=>{t=t.toUpperCase();const i=e.parentNode;return i&&i.nodeName?i.nodeName===t?i:u(i,t):void 0};function l(e,t,i,r,n){const s=Object.assign(document.createEvent("Event"),n);s.initEvent(e,t,i),r=r||document;try{r.dispatchEvent(s)}catch(e){console.error(e)}}function d(e,t){try{const i=e.attributes;for(let e=0;e= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var l="[object Object]";function d(e,t,i){this.helpers=e||{},this.partials=t||{},this.decorators=i||{},a.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}d.prototype={constructor:d,logger:c.default,log:c.default.log,registerHelper:function(e,t){if(n.toString.call(e)===l){if(t)throw new s.default("Arg not supported with multiple helpers");n.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(n.toString.call(e)===l)n.extend(this.partials,e);else{if(void 0===t)throw new s.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(n.toString.call(e)===l){if(t)throw new s.default("Arg not supported with multiple decorators");n.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){u.resetLoggedProperties()}};var p=c.default.log;t.log=p,t.createFrame=n.createFrame,t.logger=c.default},1501:function(e,t){"use strict";t.__esModule=!0;var i={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!i.helpers.scopedId(e)&&!e.depth}}};t.default=i,e.exports=t.default},4657:function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.parseWithoutProcessing=u,t.parse=function(e,t){var i=u(e,t);return new s.default(t).accept(i)};var n=r(i(2407)),s=r(i(7910)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(i(8693)),o=i(7553);t.parser=n.default;var c={};function u(e,t){return"Program"===e.type?e:(n.default.yy=c,c.locInfo=function(e){return new c.SourceLocation(t&&t.srcName,e)},n.default.parse(e))}o.extend(c,a)},2342:function(e,t,i){"use strict";t.__esModule=!0;var r=i(7553),n=void 0;try{}catch(e){}function s(e,t,i){if(r.isArray(e)){for(var n=[],s=0,a=e.length;s1)throw new n.default("Unsupported number of partial arguments: "+i.length,e);i.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):i.push({type:"PathExpression",parts:[],depth:0}));var r=e.name.original,s="SubExpression"===e.name.type;s&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var a=e.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,r,a),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){l(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,i){var r=e.path,n=r.parts[0],s=null!=t||null!=i;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",i),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",n,s)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,i){var r=this.setupFullMustacheParams(e,t,i),s=e.path,o=s.parts[0];if(this.options.knownHelpers[o])this.opcode("invokeKnownHelper",r.length,o);else{if(this.options.knownHelpersOnly)throw new n.default("You specified knownHelpersOnly, but used the unknown helper "+o,e);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",r.length,s.original,a.default.helpers.simpleId(s))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],i=a.default.helpers.scopedId(e),r=!e.depth&&!i&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,i):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,i=0,r=t.length;for(this.opcode("pushHash");i=0)return[t,n]}}}},8693:function(e,t,i){"use strict";t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,i){i=this.locInfo(i);for(var r=e?"@":"",n=[],a=0,o=0,c=t.length;o0)throw new s.default("Invalid path: "+r,{loc:i});".."===u&&a++}}return{type:"PathExpression",data:e,depth:a,parts:n,original:r,loc:i}},t.prepareMustache=function(e,t,i,r,n,s){var a=r.charAt(3)||r.charAt(2),o="{"!==a&&"&"!==a;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:e,params:t,hash:i,escaped:o,strip:n,loc:this.locInfo(s)}},t.prepareRawBlock=function(e,t,i,r){a(e,i),r=this.locInfo(r);var n={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:n,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},t.prepareBlock=function(e,t,i,r,n,o){r&&r.path&&a(e,r);var c=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,l=void 0;if(i){if(c)throw new s.default("Unexpected inverse block on decorator",i);i.chain&&(i.program.body[0].closeStrip=r.strip),l=i.strip,u=i.program}n&&(n=u,u=t,t=n);return{type:c?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:l,closeStrip:r&&r.strip,loc:this.locInfo(o)}},t.prepareProgram=function(e,t){if(!t&&e.length){var i=e[0].loc,r=e[e.length-1].loc;i&&r&&(t={source:i.source,start:{line:i.start.line,column:i.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,i,r){return a(e,i),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:i&&i.strip,loc:this.locInfo(r)}};var r,n=i(4541),s=(r=n)&&r.__esModule?r:{default:r};function a(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var i={loc:e.path.loc};throw new s.default(e.path.original+" doesn't match "+t,i)}}},7130:function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=i(5343),s=r(i(4541)),a=i(7553),o=r(i(2342));function c(e){this.value=e}function u(){}u.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=n.COMPILER_REVISION;return[e,n.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,i){return a.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:i?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,i,r){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var n=e.opcodes,a=void 0,o=void 0,c=void 0,u=void 0;for(c=0,u=n.length;c0&&(i+=", "+r.join(", "));var n=0;Object.keys(this.aliases).forEach((function(e){var r=t.aliases[e];r.children&&r.referenceCount>1&&(i+=", alias"+ ++n+"="+e,r.children[0]="alias"+n)})),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var a=this.mergeSource(i);return e?(s.push(a),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),") {\n ",a,"}"])},mergeSource:function(e){var t=this.environment.isSimple,i=!this.forceBuffer,r=void 0,n=void 0,s=void 0,a=void 0;return this.source.each((function(e){e.appendToBuffer?(s?e.prepend(" + "):s=e,a=e):(s&&(n?s.prepend("buffer += "):r=!0,a.add(";"),s=a=void 0),n=!0,t||(i=!1))})),i?s?(s.prepend("return "),a.add(";")):n||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),s?(s.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var r=this.popStack();i.splice(1,0,r),this.push(this.source.functionCall(t,"call",i))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var i=this.topStack();t.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,i,r){var n=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[n++])),this.resolvePath("context",e,n,t,i)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,i)},resolvePath:function(e,t,i,r,n){var s=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,i,r,n){var s=t.popStack(),a=i.length;e&&a--;for(;rthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,i=e.length;t2&&_.push("'"+this.terminals_[b]+"'");C=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(C,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:l,expected:_})}}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+p);switch(m[0]){case 1:i.push(p),r.push(this.lexer.yytext),n.push(this.lexer.yylloc),i.push(m[1]),p=null,h?(p=h,h=null):(c=this.lexer.yyleng,a=this.lexer.yytext,o=this.lexer.yylineno,l=this.lexer.yylloc,u>0&&u--);break;case 2:if(v=this.productions_[m[1]][1],k.$=r[r.length-v],k._$={first_line:n[n.length-(v||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(v||1)].first_column,last_column:n[n.length-1].last_column},d&&(k._$.range=[n[n.length-(v||1)].range[0],n[n.length-1].range[1]]),void 0!==(g=this.performAction.call(k,a,c,o,this.yy,m[1],r,n)))return g;v&&(i=i.slice(0,-1*v*2),r=r.slice(0,-1*v),n=n.slice(0,-1*v)),i.push(this.productions_[m[1]][0]),r.push(k.$),n.push(k._$),y=s[i[i.length-2]][i[i.length-1]],i.push(y);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===r.length?this.yylloc.first_column:0)+r[r.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,i,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)||(t=i,r=a,this.options.flex));a++);return t?((n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,s[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,i,r){function n(e,i){return t.yytext=t.yytext.substring(e,t.yyleng-i+e)}switch(i){case 0:if("\\\\"===t.yytext.slice(-2)?(n(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(n(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(n(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=n(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=n(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return e}();function i(){this.yy={}}return e.lexer=t,i.prototype=e,e.Parser=i,new i}();t.default=i,e.exports=t.default},4237:function(e,t,i){"use strict";t.__esModule=!0;var r,n=i(4541),s=(r=n)&&r.__esModule?r:{default:r};function a(){this.parents=[]}function o(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function c(e){o.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function u(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}a.prototype={constructor:a,mutating:!1,acceptKey:function(e,t){var i=this.accept(e[t]);if(this.mutating){if(i&&!a.prototype[i.type])throw new s.default('Unexpected node type "'+i.type+'" found when accepting '+t+" on "+e.type);e[t]=i}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new s.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,i=e.length;t0?(i.ids&&(i.ids=[i.name]),e.helpers.each(t,i)):n(this);if(i.data&&i.ids){var a=r.createFrame(i.data);a.contextPath=r.appendContextPath(i.data.contextPath,i.name),i={data:a}}return s(t,i)}))},e.exports=t.default},1032:function(e,t,i){"use strict";t.__esModule=!0;var r,n=i(7553),s=i(4541),a=(r=s)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new a.default("Must pass iterator to #each");var i,r=t.fn,s=t.inverse,o=0,c="",u=void 0,l=void 0;function d(t,i,s){u&&(u.key=t,u.index=i,u.first=0===i,u.last=!!s,l&&(u.contextPath=l+t)),c+=r(e[t],{data:u,blockParams:n.blockParams([e[t],t],[l+t,null])})}if(t.data&&t.ids&&(l=n.appendContextPath(t.data.contextPath,t.ids[0])+"."),n.isFunction(e)&&(e=e.call(this)),t.data&&(u=n.createFrame(t.data)),e&&"object"==typeof e)if(n.isArray(e))for(var p=e.length;o=0?t:parseInt(e,10)}return e},log:function(e){if(e=n.lookupLevel(e),"undefined"!=typeof console&&n.lookupLevel(n.level)<=e){var t=n.methodMap[e];console[t]||(t="log");for(var i=arguments.length,r=Array(i>1?i-1:0),s=1;s=o.LAST_COMPATIBLE_COMPILER_REVISION&&t<=o.COMPILER_REVISION)return;if(t":">",'"':""","'":"'","`":"`","=":"="},r=/[&<>"'`=]/g,n=/[&<>"'`=]/;function s(e){return i[e]}function a(e){for(var t=1;t.ffw-menu-items{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation[layout=horizontal]>.ffw-menu-items{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}ff-navigation .ffw-navigation-label{display:none}ff-navigation #navigation-menu{display:none;border-bottom:1px solid #000;cursor:pointer;padding:5px;background-color:#b9ecff;-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%}ff-navigation[mobile=true]>.ffw-navigation-label{display:block}ff-navigation[mobile=true]>#navigation-menu:checked+label+.ffw-menu-items{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important}ff-navigation[mobile=true]>.ffw-menu-items{display:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation[mobile=true]{-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important;width:100%}ff-navigation-item{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer}ff-navigation-item .ffw-item-caption{width:100%}ff-navigation-item .ffw-container-hidden{display:none!important}ff-navigation-item .ffw-item-container{display:none;-webkit-transition:all .1s linear;transition:all .1s linear;-webkit-transition-delay:.3s;transition-delay:.3s;position:absolute;z-index:1;background-color:#fff}ff-navigation-item[direction=down][flyout=true]>.ffw-item-container{top:100%}ff-navigation-item[direction=down]>.ffw-item-container{top:100%;left:0}ff-navigation-item[flyout=false][selected]>.ffw-item-container{top:0;z-index:0;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation-item[flyout=false]>.ffw-item-container{display:none}ff-navigation-item[flyout=false][direction=down][selected]>.ffw-item-container{top:0}ff-navigation-item[flyout=false]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation-item[flyout=false][selected] .ffw-navigation-link{display:none!important;top:0}ff-navigation-item[flyout=false] .ffw-navigation-link{display:none!important}ff-navigation-item[flyout=true][direction=right]>.ffw-item-container{top:0;left:100%}ff-navigation-item[flyout=true][direction=left]>.ffw-item-container{top:0;right:100%}ff-navigation-item[flyout=true]:hover>.ffw-item-container:not(:empty){display:inline-block}ff-asn{outline:none;transition:opacity .6s;display:block}ff-asn[align=horizontal]{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}ff-asn-group{opacity:0;transition:opacity .4s;outline:none;display:block;min-width:180px;max-width:220px}ff-asn-group[align=horizontal] #wrapper{position:absolute;width:100%}ff-asn-group .ffw-asn-group-container{position:relative}ff-asn-group .ffw-wrapper{position:relative;transition-duration:.35s}ff-asn-group-element,ff-asn-group-slider{display:block;outline:none}ff-asn-group-slider{opacity:0;transition:opacity .4s;min-width:180px;max-width:220px}ff-asn[align=horizontal] ff-asn-group-slider .ffw-wrapper{position:absolute;width:100%}ff-asn-group-slider .ffw-container{position:relative}ff-asn-group-slider .ffw-wrapper{position:relative;transition-duration:.4s}ff-slider-control{display:block;opacity:0;transition:opacity .8s;padding:10px 0}ff-slider-control .ffw-slider-control-default .ffw-slider-control-inputs{display:flex;justify-content:space-around;align-items:center}ff-slider-control .ffw-slider-control-default .ffw-input-container{position:relative;display:flex;align-items:center;border:1px solid}ff-slider-control .ffw-slider-control-default input{width:60px;border:0;padding:4px 1em 4px .5em;text-align:center}ff-slider-control .ffw-slider-control-default [data-unit]{position:absolute;right:4px}ff-slider-control .ffw-slider-control-default .ffw-slider-control-line{display:inline-block;width:20px;height:2px;background-color:#000}ff-slider-control .ffw-sliderSection{margin-top:10px}ff-slider{display:block;z-index:-1001;pointer-events:none}ff-slider .ffw-slider-container{top:0;position:relative;pointer-events:none}ff-slider .ffw-triangle{pointer-events:auto;user-select:none;position:absolute;z-index:1000;opacity:.5;cursor:pointer;touch-action:none;border-style:solid;border-color:transparent transparent #89bdff;top:50%;transition:top .2s ease-out,left .2s ease-out,transform .2s ease-out;transform:translate(-50%,-50%) scale(.25)}ff-slider .ffw-triangle.ffw-active{transition:top .2s ease-in,left .2s ease-in,transform .2s ease-in;transform:translateX(-100%) scale(1)}ff-slider .ffw-triangle.ffw-no-transition{transition:none}ff-slider .ffw-line{pointer-events:auto;z-index:999;height:1px;background-color:#000;background-clip:padding-box;border-top:25px solid transparent;border-bottom:25px solid transparent}ff-slider .ffw-line,ff-slider .ffw-selected-range{top:50%;position:absolute;transform:translateY(-50%)}ff-slider .ffw-selected-range{z-index:1000;height:2px;background-color:#003ccb}ff-slider .ffw-slider-button{width:5px;height:5px;border:1px solid #000;position:absolute;top:50%;z-index:1003;pointer-events:auto;cursor:pointer;touch-action:none}ff-slider .ffw-slider-button-left,ff-slider .ffw-slider-button-right{transform:translateY(-50%)}ff-asn-remove-all-filters{display:inline-block}ff-compare{display:block}ff-breadcrumb-trail{display:inline}ff-breadcrumb-trail-item{transition:opacity .8s;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ffw-hidden{display:none!important}"},3953:function(e,t,i){var r=i(7260);"string"==typeof r&&(r=[[e.id,r,""]]);var n={insertAt:"top",hmr:!0,transform:undefined,insertInto:void 0};i(6723)(r,n);r.locals&&(e.exports=r.locals)},6723:function(e,t,i){var r,n,s={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===n&&(n=r.apply(this,arguments)),n}),o=function(e,t){return t?t.querySelector(e):document.querySelector(e)},c=function(e){var t={};return function(e,i){if("function"==typeof e)return e();if(void 0===t[e]){var r=o.call(this,e,i);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),u=null,l=0,d=[],p=i(8188);function h(e,t){for(var i=0;i=0&&d.splice(t,1)}function b(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return i.nc}();r&&(e.attrs.nonce=r)}return v(t,e.attrs),m(e,t),t}function v(e,t){Object.keys(t).forEach((function(i){e.setAttribute(i,t[i])}))}function y(e,t){var i,r,n,s;if(t.transform&&e.css){if(!(s="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=s}if(t.singleton){var a=l++;i=u||(u=b(t)),r=k.bind(null,i,a,!1),n=k.bind(null,i,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",v(t,e.attrs),m(e,t),t}(t),r=w.bind(null,i,t),n=function(){g(i),i.href&&URL.revokeObjectURL(i.href)}):(i=b(t),r=C.bind(null,i),n=function(){g(i)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else n()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var i=f(e,t);return h(i,t),function(e){for(var r=[],n=0;ne.parentNode.removeChild(e)))}const a=e=>{let t=11===e.nodeType?0:1;const i=document.createTreeWalker(e,133,null,!1);for(;i.nextNode();)t++;return t},o=function(e){for(let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1)+1;t"".concat(e,"--").concat(t);let h=!0;void 0===window.ShadyCSS?h=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),h=!1);const f=e=>t=>{const i=p(t.type,e);let r=u.r.get(i);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},u.r.set(i,r));let s=r.stringsArray.get(t.strings);if(void 0!==s)return s;const a=t.strings.join(n.Jw);if(s=r.keyString.get(a),void 0===s){const i=t.getTemplateElement();h&&window.ShadyCSS.prepareTemplateDom(i,e),s=new n.YS(t,i),r.keyString.set(a,s)}return r.stringsArray.set(t.strings,s),s},m=["html","svg"],g=new Set,b=(e,t,i)=>{g.add(e);const r=i?i.element:document.createElement("template"),n=t.querySelectorAll("style"),{length:c}=n;if(0===c)return void window.ShadyCSS.prepareTemplateStyles(r,e);const l=document.createElement("style");for(let e=0;e{m.forEach((t=>{const i=u.r.get(p(t,e));void 0!==i&&i.keyString.forEach((e=>{const{element:{content:t}}=e,i=new Set;Array.from(t.querySelectorAll("style")).forEach((e=>{i.add(e)})),s(e,i)}))}))})(e);const d=r.content;i?function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const{element:{content:r},parts:n}=e;if(null==i)return void r.appendChild(t);const s=document.createTreeWalker(r,133,null,!1);let c=o(n),u=0,l=-1;for(;s.nextNode();)for(l++,s.currentNode===i&&(u=a(t),i.parentNode.insertBefore(t,i));-1!==c&&n[c].index===l;){if(u>0){for(;-1!==c;)n[c].index+=u,c=o(n,c);return}c=o(n,c)}}(i,l,d.firstChild):d.insertBefore(l,d.firstChild),window.ShadyCSS.prepareTemplateStyles(r,e);const h=d.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==h)t.insertBefore(h.cloneNode(!0),t.firstChild);else if(i){d.insertBefore(l,d.firstChild);const e=new Set;e.add(l),s(i,e)}};window.JSCompiler_renameProperty=(e,t)=>e;const v={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},y=(e,t)=>t!==e&&(t==t||e==e),_={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:y},S="finalized";class k extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach(((t,i)=>{const r=this._attributeNameForProperty(i,t);void 0!==r&&(this._attributeToPropertyMap.set(r,i),e.push(r))})),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach(((e,t)=>this._classProperties.set(t,e)))}}static createProperty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_;if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const i="symbol"==typeof e?Symbol():"__".concat(e),r=this.getPropertyDescriptor(e,i,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(r){const n=this[e];this[t]=r,this.requestUpdateInternal(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||_}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty(S)||e.finalize(),this[S]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const i of t)this.createProperty(i,e[i])}}static _attributeNameForProperty(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:y)(e,t)}static _propertyValueFromAttribute(e,t){const i=t.type,r=t.converter||v,n="function"==typeof r?r:r.fromAttribute;return n?n(e,i):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const i=t.type,r=t.converter;return(r&&r.toAttribute||v.toAttribute)(e,i)}initialize(){this._updateState=0,this._updatePromise=new Promise((e=>this._enableUpdatingResolver=e)),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach(((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}}))}_applyInstanceProperties(){this._instanceProperties.forEach(((e,t)=>this[t]=e)),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,i){t!==i&&this._attributeToProperty(e,i)}_propertyToAttribute(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;const r=this.constructor,n=r._attributeNameForProperty(e,i);if(void 0!==n){const e=r._propertyValueToAttribute(t,i);if(void 0===e)return;this._updateState=8|this._updateState,null==e?this.removeAttribute(n):this.setAttribute(n,e),this._updateState=-9&this._updateState}}_attributeToProperty(e,t){if(8&this._updateState)return;const i=this.constructor,r=i._attributeToPropertyMap.get(e);if(void 0!==r){const e=i.getPropertyOptions(r);this._updateState=16|this._updateState,this[r]=i._propertyValueFromAttribute(t,e),this._updateState=-17&this._updateState}}requestUpdateInternal(e,t,i){let r=!0;if(void 0!==e){const n=this.constructor;i=i||n.getPropertyOptions(e),n._valueHasChanged(this[e],t,i.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==i.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,i))):r=!1}!this._hasRequestedUpdate&&r&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(e,t){return this.requestUpdateInternal(e,t),this.updateComplete}async _enqueueUpdate(){this._updateState=4|this._updateState;try{await this._updatePromise}catch(e){}const e=this.performUpdate();return null!=e&&await e,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{e=this.shouldUpdate(t),e?this.update(t):this._markUpdated()}catch(t){throw e=!1,this._markUpdated(),t}e&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach(((e,t)=>this._propertyToAttribute(t,this[t],e))),this._reflectingProperties=void 0),this._markUpdated()}updated(e){}firstUpdated(e){}}k[S]=!0;const C=Element.prototype;C.msMatchesSelector||C.webkitMatchesSelector;const w=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,P=Symbol();class x{constructor(e,t){if(t!==P)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(w?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}(window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");const E={};class I extends k{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const e=this.getStyles();if(Array.isArray(e)){const t=(e,i)=>e.reduceRight(((e,i)=>Array.isArray(i)?t(i,e):(e.add(i),e)),i),i=t(e,new Set),r=[];i.forEach((e=>r.unshift(e))),this._styles=r}else this._styles=void 0===e?[]:[e];this._styles=this._styles.map((e=>{if(e instanceof CSSStyleSheet&&!w){const t=Array.prototype.slice.call(e.cssRules).reduce(((e,t)=>e+t.cssText),"");return new x(String(t),P)}return e}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?w?this.renderRoot.adoptedStyleSheets=e.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map((e=>e.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){const t=this.render();super.update(e),t!==E&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)})))}render(){return E}}I.finalized=!0,I.render=(e,t,i)=>{if(!i||"object"!=typeof i||!i.scopeName)throw new Error("The `scopeName` option is required.");const n=i.scopeName,s=c.L.has(t),a=h&&11===t.nodeType&&!!t.host,o=a&&!g.has(n),u=o?document.createDocumentFragment():t;if((0,c.s)(e,u,Object.assign({templateFactory:f(n)},i)),o){const e=c.L.get(u);c.L.delete(u);const i=e.value instanceof l.R?e.value.template:void 0;b(n,u,i),(0,r.r4)(t,t.firstChild),t.appendChild(u),c.L.set(t,e)}!s&&a&&window.ShadyCSS.styleElement(t.host)},I.shadowRootOptions={mode:"open"}},1448:function(e,t,i){"use strict";i.d(t,{$:function(){return a}});var r=i(9890);class n{constructor(e){this.classes=new Set,this.changed=!1,this.element=e;const t=(e.getAttribute("class")||"").split(/\s+/);for(const e of t)this.classes.add(e)}add(e){this.classes.add(e),this.changed=!0}remove(e){this.classes.delete(e),this.changed=!0}commit(){if(this.changed){let e="";this.classes.forEach((t=>e+=t+" ")),this.element.setAttribute("class",e)}}}const s=new WeakMap,a=(0,r.XM)((e=>t=>{if(!(t instanceof r._l)||t instanceof r.sL||"class"!==t.committer.name||t.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");const{committer:i}=t,{element:a}=i;let o=s.get(t);void 0===o&&(a.setAttribute("class",i.strings.join(" ")),s.set(t,o=new Set));const c=a.classList||new n(a);o.forEach((t=>{t in e||(c.remove(t),o.delete(t))}));for(const t in e){const i=e[t];i!=o.has(t)&&(i?(c.add(t),o.add(t)):(c.remove(t),o.delete(t)))}"function"==typeof c.commit&&c.commit()}))},8474:function(e,t,i){"use strict";i.d(t,{l:function(){return s}});var r=i(9890);const n=new WeakMap,s=(0,r.XM)(((e,t)=>i=>{const r=n.get(i);if(Array.isArray(e)){if(Array.isArray(r)&&r.length===e.length&&e.every(((e,t)=>e===r[t])))return}else if(r===e&&(void 0!==e||n.has(i)))return;i.setValue(t()),n.set(i,Array.isArray(e)?Array.from(e):e)}))},6342:function(e,t,i){"use strict";i.d(t,{r:function(){return d}});var r=i(9890);const n=(e,t)=>{const i=e.startNode.parentNode,n=void 0===t?e.endNode:t.startNode,s=i.insertBefore((0,r.IW)(),n);i.insertBefore((0,r.IW)(),n);const a=new r.nt(e.options);return a.insertAfterNode(s),a},s=(e,t)=>(e.setValue(t),e.commit(),e),a=(e,t,i)=>{const n=e.startNode.parentNode,s=i?i.startNode:e.endNode,a=t.endNode.nextSibling;a!==s&&(0,r.V)(n,t.startNode,a,s)},o=e=>{(0,r.r4)(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},c=(e,t,i)=>{const r=new Map;for(let n=t;n<=i;n++)r.set(e[n],n);return r},u=new WeakMap,l=new WeakMap,d=(0,r.XM)(((e,t,i)=>{let d;return void 0===i?i=t:void 0!==t&&(d=t),t=>{if(!(t instanceof r.nt))throw new Error("repeat can only be used in text bindings");const p=u.get(t)||[],h=l.get(t)||[],f=[],m=[],g=[];let b,v,y=0;for(const t of e)g[y]=d?d(t,y):y,m[y]=i(t,y),y++;let _=0,S=p.length-1,k=0,C=m.length-1;for(;_<=S&&k<=C;)if(null===p[_])_++;else if(null===p[S])S--;else if(h[_]===g[k])f[k]=s(p[_],m[k]),_++,k++;else if(h[S]===g[C])f[C]=s(p[S],m[C]),S--,C--;else if(h[_]===g[C])f[C]=s(p[_],m[C]),a(t,p[_],f[C+1]),_++,C--;else if(h[S]===g[k])f[k]=s(p[S],m[k]),a(t,p[S],p[_]),S--,k++;else if(void 0===b&&(b=c(g,k,C),v=c(h,_,S)),b.has(h[_]))if(b.has(h[S])){const e=v.get(g[k]),i=void 0!==e?p[e]:null;if(null===i){const e=n(t,p[_]);s(e,m[k]),f[k]=e}else f[k]=s(i,m[k]),a(t,i,p[_]),p[e]=null;k++}else o(p[S]),S--;else o(p[_]),_++;for(;k<=C;){const e=n(t,f[C+1]);s(e,m[k]),f[k++]=e}for(;_<=S;){const e=p[_++];null!==e&&o(e)}u.set(t,f),l.set(t,g)}}))},6228:function(e,t,i){"use strict";i.d(t,{X:function(){return n},w:function(){return s}});const r=new WeakMap,n=e=>function(){const t=e(...arguments);return r.set(t,!0),t},s=e=>"function"==typeof e&&r.has(e)},6913:function(e,t,i){"use strict";i.d(t,{V:function(){return n},eC:function(){return r},r4:function(){return s}});const r="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,n=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(;t!==i;){const i=t.nextSibling;e.insertBefore(t,r),t=i}},s=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(;t!==i;){const i=t.nextSibling;e.removeChild(t),t=i}}},9072:function(e,t,i){"use strict";i.d(t,{J:function(){return r},L:function(){return n}});const r={},n={}},7552:function(e,t,i){"use strict";i.d(t,{JG:function(){return f},K1:function(){return v},QG:function(){return d},_l:function(){return p},m:function(){return m},nt:function(){return h},sL:function(){return g}});var r=i(6228),n=i(6913),s=i(9072),a=i(8477),o=i(8729),c=i(4695);const u=e=>null===e||!("object"==typeof e||"function"==typeof e),l=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class d{constructor(e,t,i){this.dirty=!0,this.element=e,this.name=t,this.strings=i,this.parts=[];for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:this.startNode;(0,n.r4)(this.startNode.parentNode,e.nextSibling,this.endNode)}}class f{constructor(e,t,i){if(this.value=void 0,this.__pendingValue=void 0,2!==i.length||""!==i[0]||""!==i[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=i}setValue(e){this.__pendingValue=e}commit(){for(;(0,r.w)(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=s.J,e(this)}if(this.__pendingValue===s.J)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=s.J}}class m extends d{constructor(e,t,i){super(e,t,i),this.single=2===i.length&&""===i[0]&&""===i[1]}_createPart(){return new g(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class g extends p{}let b=!1;(()=>{try{const e={get capture(){return b=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class v{constructor(e,t,i){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=i,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;(0,r.w)(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=s.J,e(this)}if(this.__pendingValue===s.J)return;const e=this.__pendingValue,t=this.value,i=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),n=null!=e&&(null==t||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),n&&(this.__options=y(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=s.J}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const y=e=>e&&(b?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)},606:function(e,t,i){"use strict";i.d(t,{L:function(){return a},s:function(){return o}});var r=i(6913),n=i(7552),s=i(4283);const a=new WeakMap,o=(e,t,i)=>{let o=a.get(t);void 0===o&&((0,r.r4)(t,t.firstChild),a.set(t,o=new n.nt(Object.assign({templateFactory:s.t},i))),o.appendInto(t)),o.setValue(e),o.commit()}},4283:function(e,t,i){"use strict";i.d(t,{r:function(){return s},t:function(){return n}});var r=i(4695);function n(e){let t=s.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},s.set(e.type,t));let i=t.stringsArray.get(e.strings);if(void 0!==i)return i;const n=e.strings.join(r.Jw);return i=t.keyString.get(n),void 0===i&&(i=new r.YS(e,e.getTemplateElement()),t.keyString.set(n,i)),t.stringsArray.set(e.strings,i),i}const s=new Map},8477:function(e,t,i){"use strict";i.d(t,{R:function(){return s}});var r=i(6913),n=i(4695);class s{constructor(e,t,i){this.__parts=[],this.template=e,this.processor=t,this.options=i}update(e){let t=0;for(const i of this.__parts)void 0!==i&&i.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=r.eC?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=[],i=this.template.parts,s=document.createTreeWalker(e,133,null,!1);let a,o=0,c=0,u=s.nextNode();for(;oe}),s=" ".concat(r.Jw," ");class a{constructor(e,t,i,r){this.strings=e,this.values=t,this.type=i,this.processor=r}getHTML(){const e=this.strings.length-1;let t="",i=!1;for(let n=0;n-1||i)&&-1===e.indexOf("--\x3e",a+1);const o=r.W5.exec(e);t+=null===o?e+(i?s:r.N):e.substr(0,o.index)+o[1]+o[2]+r.$E+o[3]+r.Jw}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");let t=this.getHTML();return void 0!==n&&(t=n.createHTML(t)),e.innerHTML=t,e}}},4695:function(e,t,i){"use strict";i.d(t,{$E:function(){return a},IW:function(){return l},Jw:function(){return r},N:function(){return n},W5:function(){return d},YS:function(){return o},pC:function(){return u}});const r="{{lit-".concat(String(Math.random()).slice(2),"}}"),n="\x3c!--".concat(r,"--\x3e"),s=new RegExp("".concat(r,"|").concat(n)),a="$lit$";class o{constructor(e,t){this.parts=[],this.element=t;const i=[],n=[],o=document.createTreeWalker(t.content,133,null,!1);let u=0,p=-1,h=0;const{strings:f,values:{length:m}}=e;for(;h0;){const t=f[h],i=d.exec(t)[2],r=i.toLowerCase()+a,n=e.getAttribute(r);e.removeAttribute(r);const o=n.split(s);this.parts.push({type:"attribute",index:p,name:i,strings:o}),h+=o.length-1}}"TEMPLATE"===e.tagName&&(n.push(e),o.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(r)>=0){const r=e.parentNode,n=t.split(s),o=n.length-1;for(let t=0;t{const i=e.length-t.length;return i>=0&&e.slice(i)===t},u=e=>-1!==e.index,l=()=>document.createComment(""),d=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/},9890:function(e,t,i){"use strict";i.d(t,{_l:function(){return r._l},nt:function(){return r.nt},sL:function(){return r.sL},js:function(){return s.j},IW:function(){return u.IW},XM:function(){return a.X},dy:function(){return l},r4:function(){return o.r4},sY:function(){return c.s},V:function(){return o.V}});var r=i(7552);const n=new class{handleAttributeExpressions(e,t,i,n){const s=t[0];if("."===s){return new r.m(e,t.slice(1),i).parts}if("@"===s)return[new r.K1(e,t.slice(1),n.eventContext)];if("?"===s)return[new r.JG(e,t.slice(1),i)];return new r.QG(e,t,i).parts}handleTextExpression(e){return new r.nt(e)}};var s=i(8729),a=i(6228),o=i(6913),c=(i(9072),i(606)),u=(i(4283),i(8477),i(4695));"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const l=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;rnew Promise((e=>{__webpack_require__(8153),__webpack_require__(177),__webpack_require__(814),__webpack_require__(961),__webpack_require__(6480),__webpack_require__(410),__webpack_require__(5430),__webpack_require__(8358),__webpack_require__(5663),__webpack_require__(2132),__webpack_require__(3458),__webpack_require__(8122),__webpack_require__(6731),__webpack_require__(825),__webpack_require__(2997),__webpack_require__(5220),__webpack_require__(1136),__webpack_require__(8616),__webpack_require__(6803),__webpack_require__(5608),__webpack_require__(4700),__webpack_require__(4849),__webpack_require__(5730),__webpack_require__(1650),__webpack_require__(2969),__webpack_require__(4487),__webpack_require__(1616),__webpack_require__(3358),__webpack_require__(5841),__webpack_require__(3742),__webpack_require__(4410),__webpack_require__(1254),__webpack_require__(6637),__webpack_require__(4675),e()}))))}()})(); \ No newline at end of file