apps.bazaarvoice.com Open in urlscan Pro
2600:9000:2251:8800:d:274d:a6c0:93a1  Public Scan

URL: https://apps.bazaarvoice.com/apps/api/api-0.8.2.js
Submission: On June 09 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/*! For license information please see bundle.js.LICENSE.txt */
(()=>{var t={449:(t,e,n)=>{"use strict";var o=n(201),r=n.n(o),i=(o=n(883),n.n(o));const s=n(434),c=n(434);let a;class l{static initTracker(t){a=t._analytics}constructor(t){var e=t.product,n=t.category,o=t.slot,r=t.pageType;Object.assign(this,{commonData:{bvProduct:"Personalization",bvProductVersion:t.APP_VERSION,source:"personalization-sdk",productId:e,categoryId:n,slotId:o,pageType:r}})}pageView(t={}){t=Object.assign({},this.commonData,{type:"Embedded"},t),a.trackPageView(t)}hiddenInView(t){this.used("HiddenInView",t)}inView(t){this.used("InView",t)}impression(t={}){t=Object.assign({},this.commonData,{type:"Personalization"},t),a.trackImpression(t)}contentClick(t){this.used("ContentClick",t)}used(t,e={}){t=Object.assign({name:t},e),this.trackEvent(t,"Feature","Used")}trackEvent(t={},e,n){t.type=t.type||n,n=Object.assign({},this.commonData,t),a.trackEvent(e,n)}}o=n(921);var u=n.n(o);const d=t=>`https://my.network${t.staging?"-stg":""}.bazaarvoice.com/recommendations/me?`+["bvbrandid","category","client","include","include_product_reviews","limit","passkey","plan","purpose","required_category","sdkVersion"].map((e=>t[e]&&e+"="+t[e])).filter(Boolean).join("&");class f{constructor(t){var e=t.apiConfig,n=t.APP_VERSION,o=t.category,r=void 0===(r=t.limit)?10:r,i=t.purpose,s=t.planOverride,c=(t=t.required_category,u().get("BVBRANDID"));this.config=Object.assign({},e,{bvbrandid:c,category:o&&e.client+"/"+o,limit:r,plan:s,purpose:i,required_category:t&&e.client+"/"+t,sdkVersion:n}),Object.assign(this.config,{productsRequestUrl:d(this.config),categoriesRequestUrl:d(Object.assign({},this.config,{include:"category_recommendations"})),preferencesRequestURL:d(Object.assign({},this.config,{include:"preferences"}))})}getProductRecommendations(){return fetch(this.config.productsRequestUrl,{credentials:"include"}).then((t=>t.json()))}getCategoryRecommendations(){return fetch(this.config.categoriesRequestUrl,{credentials:"include"}).then((t=>t.json()))}getPreferences(){return fetch(this.config.preferencesRequestURL,{credentials:"include"}).then((t=>t.json()))}}o=n(944),o=n.n(o);var h=n(621),p=n.n(h);const m=o().test(),y=(o().test(((t,e)=>m(t,e)&&p()(t))),o());class v{constructor(t){y.offset(5),Object.assign(this,{_apiClient:new f(t),_analytics:new l(t),_hidden:t.hidden,slotType:"PersonalizationSlot"},t),this._analytics.commonData.externalSegment=t.externalSegment||(t.hidden?"notshown":"shown"),t.hidden&&this._analytics.pageView({contentType:this.slotType,numRecommendations:0})}pollForSlot(){return new Promise(((t,e)=>{let n=0;const o=setInterval((()=>{if(10===n)return clearInterval(o),void e("Unable to locate Personalization Slot");var r=this.getSlotEl();this.getSlotEl()&&(clearInterval(o),t(r)),n++}),1e3)}))}attachAnalyticsToRecommendations(){throw Error(`attachAnalyticsToRecommendations is not a supported by a '${this.type}' Recommender.`)}getSlotEl(){return this._slotEl||(this._slotEl=document.querySelector(this._slotSelector),this._slotEl||(this._slotEl=document.querySelector(this._legacySlotSelector)),this._slotEl)}onError(t){console.error(t)}handleSlotClick(){var t=(e=this._responseAnalytics).recommendationStats,e=e.plan;this._analytics.used("Engaged",{contentType:this.slotType,plan:e},t)}handleSlotInView(){this._hidden?this._analytics.hiddenInView({contentType:this.slotType}):this._analytics.inView({contentType:this.slotType})}}h=n(502);var g=n.n(h),b=(o=n(906),n.n(o));h=n(726);var _=n.n(h),w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,o=arguments[e];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t};const S="data-bv-product-id",E=`[${S}]`;var P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,o=arguments[e];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t};const x={category:class extends v{constructor(t){var e;super(t),Object.assign(this,{_slotSelector:(e=t.slot,`[data-bv-slot="${e}"]`),_legacySlotSelector:(e=t.slot,`[data-bv-p13n-slot="${e}"]`),slotType:"CategoryPersonalizationSlot"}),t.hidden&&(this.getRecommendations=()=>Promise.reject("Cannot request recommendations when 'hidden' is true")),g()((()=>{this.pollForSlot().then(this.initAnalyticsHandlers.bind(this)).catch(this.onError)}))}getRecommendations(){return this._apiClient.getCategoryRecommendations().then((t=>{const e=(t=t.profile).category_plan,n=t.category_recommendations,o=t.categories,r=t.recommendationStats;return t={plan:e,recommendationStats:r},this._responseAnalytics=t,this._analytics.pageView({contentType:this.slotType,plan:e,numRecommendations:n.length,activeUser:r.activeUser}),n.forEach(((t,n)=>{this._analytics.impression(this.getAnalyticsDataForCategory(t,n,e,r))})),{recommendations:n.map((t=>o[t])),slot:this.getSlotEl(),activeUser:r.activeUser}}))}initAnalyticsHandlers(t){t&&(b()(t).on("click",this.handleSlotClick.bind(this)),y(this._slotSelector).once("enter",this.handleSlotInView.bind(this)),y(this._slotSelector).check(),y(this._legacySlotSelector).once("enter",this.handleSlotInView.bind(this)),y(this._legacySlotSelector).check())}getAnalyticsDataForCategory(t,e,n,o){return P({categoryId:t,contentType:"RecommendedCategory",positionIndex:e,plan:n},o)}},product:class extends v{constructor(t){var e;t.trackProductVisibility=void 0===t.trackProductVisibility||t.trackProductVisibility,super(t),Object.assign(this,{_productsCache:{},_productVisibilitySelectorsCache:{},_slotSelector:(e=t.slot,`[data-bv-slot="${e}"]`),_legacySlotSelector:(e=t.slot,`[data-bv-p13n-slot="${e}"]`),_productsSeen:0,_productsReturned:0,slotType:"ProductPersonalizationSlot"}),t.hidden&&(this.getRecommendations=()=>Promise.reject("Cannot request recommendations when 'hidden' is true")),this.checkProductVisibility=_()(this.checkProductVisibility.bind(this),500),this.slotPoll=new Promise((t=>{g()((()=>{this.pollForSlot().then((e=>{this.initSlotAnalyticsHandlers(e),t()})).catch(this.onError)}))}))}getRecommendations(){return this._apiClient.getProductRecommendations().then((t=>{var e=t.profile.recommendationStats;return{recommendations:this.attachAnalyticsToRecommendations(t),slot:this.getSlotEl(),activeUser:e.activeUser}}))}getPreferences(){return this._apiClient.getPreferences().then((t=>({preferences:t.profile.preferences})))}attachAnalyticsToRecommendations(t){const e=(t=t.profile).plan,n=t.recommendations,o=t.products,r=t.recommendationStats;return this._responseAnalytics={plan:e,recommendationStats:r},this._productsReturned=n.length,this.slotPoll.then(this.pollForProducts.bind(this)),this._analytics.pageView({contentType:this.slotType,plan:e,numRecommendations:this._productsReturned,activeUser:r.activeUser}),n.map(((t,e)=>{var n=(t=o[t]).product;return Object.assign(t,{positionIndex:e}),this._productsCache[n]=Object.assign({},t),t}))}initSlotAnalyticsHandlers(t){t&&(b()(t).on("click",E,this.handleProductClick.bind(this)),b()(t).on("click",this.handleSlotClick.bind(this)),y(this._slotSelector).once("enter",this.handleSlotInView.bind(this)),y(this._slotSelector).check(),y(this._legacySlotSelector).once("enter",this.handleSlotInView.bind(this)),y(this._legacySlotSelector).check())}getPIDFromProductElement(t){return t.dataset.bvProductId}getProductElements(){return[].slice.call(this.getSlotEl().querySelectorAll(E))}pollForProducts(){let t=0;const e=setInterval((()=>{if(10===t)clearInterval(e);else{const n=this.getProductElements();n.length&&(clearInterval(e),n.forEach((t=>{t=this.getPIDFromProductElement(t);var e=`[${S}="${e=t}"]`;this._productVisibilitySelectorsCache[e]=!0,this._productsCache[t].selector=e,this._analytics.impression(this.getCommonAnalyticsDataForProduct(t)),this.trackProductVisibility&&y(e).once("enter",this.handleProductInView.bind(this))})),this.trackProductVisibility&&this.checkProductVisibility()),t++}}),1e3)}handleSlotClick(){super.handleSlotClick(),this.trackProductVisibility&&this._productsSeen!==this._productsReturned&&this.checkProductVisibility()}checkProductVisibility(){Object.keys(this._productVisibilitySelectorsCache).forEach((t=>{y(t).check()}))}handleProductClick(t,e){e=this.getPIDFromProductElement(e);const n=this._productsCache[e];n.clicked||(n.clicked=!0,e=this.getCommonAnalyticsDataForProduct(e),this._analytics.contentClick(e))}handleProductInView(t){t=this.getPIDFromProductElement(t);const e=this._productsCache[t];e.seen||(e.seen=!0,this._productsSeen++,delete this._productVisibilitySelectorsCache[e.selector],t=this.getCommonAnalyticsDataForProduct(t),this._analytics.inView(t))}getCommonAnalyticsDataForProduct(t){var e=this._productsCache[t],n=(o=this._responseAnalytics).recommendationStats,o=o.plan,r=e.positionIndex;return e=e.RS,w({productId:t,contentType:"RecommendedProduct",positionIndex:r,plan:o,RS:e},n)}}};class j{constructor(t,e){Object.assign(this,{appConfig:e}),this.resetRecommendations(),l.initTracker(t,e)}getRecommender(t){var e=t.slot,n=t.type;const o=void 0===n?"product":n;n=o.toLowerCase();const r=x[n];if(!r)throw new Error(o+" is not a valid recommendations type");if(e)return this.recommenders[n][e]=new r(Object.assign({},this.appConfig,t)),this.recommenders[n][e];throw new Error("A slot identifier is required for Recommendations")}getRecommendations(t){return this.getRecommender(t).getRecommendations()}getPreferences(t){return this.getRecommender(t).getPreferences()}attachAnalyticsToRecommendations(t,e){return this.getRecommender(t).attachAnalyticsToRecommendations(e)}resetRecommendations(){this.recommenders={category:{},product:{}}}}const O=["getRecommendations","getRecommender","resetRecommendations","attachAnalyticsToRecommendations","getPreferences"];var T=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,o=arguments[e];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t};const k=n(434).BV.api;k.version="0.8.2",k.processConfig((t=>{var e,n;(function(t,e){const n=r()(e,"features.europeanAuthenticity");t.fingerprint=function(t){return t?n?(s._cc=s._cc||[],s._cc.push(["ci",{sid:"54b684cc-4b18-4193-be5f-9548d46cabaa"}]),s._cc.push(["cf",1022707]),s._cc.push(["run","https://uk.cdn-net.com"]),s._cc.push(["ci",{tid:t}]),s._cc.push(["st",1e3]),new Promise(((t,e)=>{try{const n=setTimeout((function(){e("Unable to get device fingerprint.")}),1e3);s._cc.push(["csd",function(){clearTimeout(n),t()}]),i().loadScript("https://uk.cdn-net.com/cc.js?ts="+(new Date).getTime())}catch(t){e(t)}}))):Promise.resolve():n?Promise.resolve("inauth"):(c.io_install_stm=!1,c.io_exclude_stm=12,c.io_install_flash=!1,c.io_enable_rip=!0,c.io_min_flash_version=3e3,new Promise(((t,e)=>{i().loadScript("https://mpsnare.iesnare.com/snare.js");let n=0;const o=setInterval(r,500);function r(){var r,i;c.ioGetBlackbox&&(r=(i=c.ioGetBlackbox()).finished,i=i.blackbox,r&&(clearInterval(o),t(i))),++n>=10&&(clearInterval(o),e("Unable to get blackbox string."))}r()})))}})(k,t),t.features.personalization&&(n=(e=k).version,function(t,e){const n=new j(t,e);Object.assign(t,O.reduce(((t,e)=>(t[e]=n[e].bind(n),t)),{}))}(e,n=T({apiConfig:{client:t.client,passkey:t.personalizationAPI.apiKey,APP_VERSION:n},APP_VERSION:n},t))),k.processReady()})),k.on("container_added",(t=>{var e=(t=t.dataset).bvP13nSlot,n=t.bvSlot,o=t.bvHidden,r=t.bvPageType;t=t.bvTestName,void 0===e&&void 0===n||void 0===o||k.getRecommender({slot:n||e,hidden:!0,pageType:r,externalSegment:t})}))},434:(t,e,n)=>{"use strict";t.exports=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof window)return window;if("undefined"!=typeof self)return self;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}()},883:(t,e,n)=>{var o=n(434),r=n(23),i=o.document,s={};function c(){return i.getElementsByTagName("script")[0]}function a(t){return!t||"loaded"===t||"complete"===t||"uninitialized"===t}function l(t,e,n){if(!t||"string"!=typeof t)throw new Error("`url` must be a string");if(e.namespaceName&&"string"!=typeof e.namespaceName)throw new Error("`options.namespaceName` must be a string");if(e.forceLoad&&"boolean"!=typeof e.forceLoad)throw new Error("`options.forceLoad` must be a boolean");if("number"!=typeof e.timeout)throw new Error("`options.timeout` must be a number");if(n&&"function"!=typeof n)throw new Error("`callback` must be a function")}t.exports={_clearLoadedUrls:function(t){t?r.namespace(t).loadedUrls={}:s={}},loadScript:function(t,e,n){var o,u=s;if("function"==typeof e&&(n=e,e=null),(e=e||{}).timeout=e.timeout||1e4,l(t,e,n),e.namespaceName&&(o=r.namespace(e.namespaceName),u=o.loadedUrls||{}),!e.forceLoad&&u[t])"function"==typeof n&&n();else{var d,f=i.createElement("script"),h=!1;if(e.attributes)for(d in e.attributes)f.setAttribute(d,e.attributes[d]);f.onreadystatechange=f.onload=function(){!h&&a(f.readyState)&&m()},f.onerror=function(){h||m(new Error("Error: could not load "+t))};var p=setTimeout((function(){h||m(new Error("Error: script timeout "+t))}),e.timeout);setTimeout((function(){f.src=t;var e=c();e.parentNode.insertBefore(f,e)}),0)}function m(r){h=!0,clearTimeout(p),f.onload=f.onreadystatechange=f.onerror=null,f.parentNode.removeChild(f),r||(u[t]=!0,e.namespaceName?o.loadedUrls=u:s=u),"function"==typeof n&&n(r)}},loadStyleSheet:function(t,e,n){var u,d=s;if("function"==typeof e&&(n=e,e=null),(e=e||{}).timeout=e.timeout||1e4,l(t,e,n),"injectionNode"in e&&!(e.injectionNode instanceof o.Element))throw new Error("`options.injectionNode` must be a DOM node");if(e.namespaceName&&(u=r.namespace(e.namespaceName),d=u.loadedUrls||{}),!e.forceLoad&&d[t])"function"==typeof n&&n();else{var f,h=i.createElement("link"),p=!1;if(e.attributes)for(f in e.attributes)h.setAttribute(f,e.attributes[f]);h.onreadystatechange=h.onload=function(){!p&&a(h.readyState)&&y()},h.onerror=function(){p||y(new Error("Error: could not load "+t))};var m=setTimeout(h.onerror,e.timeout);setTimeout((function(){h.media="only x",h.rel="stylesheet",h.type="text/css",h.href=t,setTimeout((function(){h.media="all"}),0);var n=e.injectionNode||c().parentNode;try{n.appendChild(h)}catch(n){y(new Error("Error: could not append LINK element"))}}),0)}function y(o){p=!0,clearTimeout(m),h.onload=h.onreadystatechange=h.onerror=null,o||(d[t]=!0,e.namespaceName?u.loadedUrls=d:s=d),"function"==typeof n&&n(o)}}}},23:(t,e,n)=>{var o=n(434);function r(t){this.name=t}r.prototype.registerProperty=function(t,e){if(this.hasOwnProperty(t))throw new Error("Cannot register "+t+" because a property with that name already exists on window."+this.name);return this[t]=e,this},t.exports={namespace:function(t){if(void 0===o[t])Object.defineProperty(o,t,{value:new r(t)});else{if("object"!=typeof o[t])throw new Error("Namespace "+t+" cannot be created. A non-object variable is already assigned to window."+t);if(!(o[t]instanceof r))for(var e in r.call(o[t],t),r.prototype)o[t][e]=r.prototype[e]}return o[t]}}},399:t=>{"use strict";function e(t){this.listenerMap=[{},{}],t&&this.root(t),this.handle=e.prototype.handle.bind(this)}(t.exports=e).prototype.root=function(t){var e,n=this.listenerMap;if(this.rootElement){for(e in n[1])n[1].hasOwnProperty(e)&&this.rootElement.removeEventListener(e,this.handle,!0);for(e in n[0])n[0].hasOwnProperty(e)&&this.rootElement.removeEventListener(e,this.handle,!1)}if(!t||!t.addEventListener)return this.rootElement&&delete this.rootElement,this;for(e in this.rootElement=t,n[1])n[1].hasOwnProperty(e)&&this.rootElement.addEventListener(e,this.handle,!0);for(e in n[0])n[0].hasOwnProperty(e)&&this.rootElement.addEventListener(e,this.handle,!1);return this},e.prototype.captureForType=function(t){return-1!==["blur","error","focus","load","resize","scroll"].indexOf(t)},e.prototype.on=function(t,e,i,s){var c,a,l;if(!t)throw new TypeError("Invalid event type: "+t);if("function"==typeof e&&(s=i,i=e,e=null),void 0===s&&(s=this.captureForType(t)),"function"!=typeof i)throw new TypeError("Handler must be a type of Function");return a=this.rootElement,(c=this.listenerMap[s?1:0])[t]||(a&&a.addEventListener(t,this.handle,s),c[t]=[]),a=e?/^[a-z]+$/i.test(e)?(l=e,o):/^#[a-z0-9\-_]+$/i.test(e)?(l=e.slice(1),r):(l=e,n):(l=null,function(t,e){return this.rootElement===window?e===document:this.rootElement===e}.bind(this)),c[t].push({selector:e,handler:i,matcher:a,matcherParam:l}),this},e.prototype.off=function(t,e,n,o){var r,i,s,c,a;if("function"==typeof e&&(o=n,n=e,e=null),void 0===o)return this.off(t,e,n,!0),this.off(t,e,n,!1),this;if(s=this.listenerMap[o?1:0],!t){for(a in s)s.hasOwnProperty(a)&&this.off(a,e,n);return this}if(!(c=s[t])||!c.length)return this;for(r=c.length-1;0<=r;r--)i=c[r],e&&e!==i.selector||n&&n!==i.handler||c.splice(r,1);return c.length||(delete s[t],this.rootElement&&this.rootElement.removeEventListener(t,this.handle,o)),this},e.prototype.handle=function(t){var e,n,o,r,i,s,c=t.type,a=[],l="ftLabsDelegateIgnore";if(!0!==t[l]){switch(3===(s=t.target).nodeType&&(s=s.parentNode),o=this.rootElement,t.eventPhase||(t.target!==t.currentTarget?3:2)){case 1:a=this.listenerMap[1][c];break;case 2:this.listenerMap[0]&&this.listenerMap[0][c]&&(a=a.concat(this.listenerMap[0][c])),this.listenerMap[1]&&this.listenerMap[1][c]&&(a=a.concat(this.listenerMap[1][c]));break;case 3:a=this.listenerMap[0][c]}for(n=a.length;s&&n;){for(e=0;e<n&&(r=a[e]);e++)if(!1===(i=r.matcher.call(s,r.matcherParam,s)?this.fire(t,s,r):i))return t[l]=!0,void t.preventDefault();if(s===o)break;n=a.length,s=s.parentElement}}},e.prototype.fire=function(t,e,n){return n.handler.call(e,t,e)};var n=function(t){if(t)return(t=t.prototype).matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector}(Element);function o(t,e){return t.toLowerCase()===e.tagName.toLowerCase()}function r(t,e){return t===e.id}e.prototype.destroy=function(){this.off(),this.root()}},906:(t,e,n)=>{"use strict";var o=n(399);t.exports=function(t){return new o(t)},t.exports.Delegate=o},502:t=>{t.exports=function(){var t,e=[],n=document,o=n.documentElement.doScroll,r="DOMContentLoaded",i=(o?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return i||n.addEventListener(r,t=function(){for(n.removeEventListener(r,t),i=1;t=e.shift();)t()}),function(t){i?setTimeout(t,0):e.push(t)}}()},944:function(t){function e(t){if(o[t])return o[t].exports;var r=o[t]={exports:{},id:t,loaded:!1};return n[t].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n,o;t.exports=(n=[function(t,e,n){"use strict";n=(n=n(2))&&n.__esModule?n:{default:n},t.exports=n.default},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(9)),i=o(n(3)),s=n(4);e.default=function(){var t,e,n,o;if("undefined"!=typeof window)return t={history:[]},e={offset:{},threshold:0,test:s.inViewport},n=(0,r.default)((function(){t.history.forEach((function(e){t[e].check()}))}),100),["scroll","resize","load"].forEach((function(t){return addEventListener(t,n)})),window.MutationObserver&&addEventListener("DOMContentLoaded",(function(){new MutationObserver(n).observe(document.body,{attributes:!0,childList:!0,subtree:!0})})),(o=function(n){var o;if("string"==typeof n)return o=[].slice.call(document.querySelectorAll(n)),-1<t.history.indexOf(n)?t[n].elements=o:(t[n]=(0,i.default)(o,e),t.history.push(n)),t[n]}).offset=function(t){if(void 0===t)return e.offset;function n(t){return"number"==typeof t}return["top","right","bottom","left"].forEach(n(t)?function(n){return e.offset[n]=t}:function(o){return n(t[o])?e.offset[o]=t[o]:null}),e.offset},o.threshold=function(t){return"number"==typeof t&&0<=t&&t<=1?e.threshold=t:e.threshold},o.test=function(t){return"function"==typeof t?e.test=t:e.test},o.is=function(t){return e.test(t,e)},o.offset(0),o}()},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e,n){e&&function(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}(t.prototype,e)}(o,[{key:"check",value:function(){var t=this;return this.elements.forEach((function(e){var n=t.options.test(e,t.options),o=t.current.indexOf(e),r=-1<o,i=!n&&r;n&&!r&&(t.current.push(e),t.emit("enter",e)),i&&(t.current.splice(o,1),t.emit("exit",e))})),this}},{key:"on",value:function(t,e){return this.handlers[t].push(e),this}},{key:"once",value:function(t,e){return this.singles[t].unshift(e),this}},{key:"emit",value:function(t,e){for(;this.singles[t].length;)this.singles[t].pop()(e);for(var n=this.handlers[t].length;-1<--n;)this.handlers[t][n](e);return this}}]);var n=o;function o(t,e){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.options=e,this.elements=t,this.current=[],this.handlers={enter:[],exit:[]},this.singles={enter:[],exit:[]}}e.default=function(t,e){return new n(t,e)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inViewport=function(t,e){var n=(t=t.getBoundingClientRect()).top,o=t.right,r=t.bottom,i=t.left,s=t.width;return t=t.height,i=window.innerWidth-i,n=window.innerHeight-n,s=e.threshold*s,t=e.threshold*t,r>e.offset.top+t&&i>e.offset.right+s&&n>e.offset.bottom+t&&o>e.offset.left+s}},function(t,e){(function(e){e="object"==typeof e&&e&&e.Object===Object&&e,t.exports=e}).call(e,function(){return this}())},function(t,e,n){n=n(5);var o="object"==typeof self&&self&&self.Object===Object&&self;n=n||o||Function("return this")(),t.exports=n},function(t,e,n){var o=n(1),r=n(8),i=n(10),s=Math.max,c=Math.min;t.exports=function(t,e,n){function a(e){var n=h,o=p;return h=p=void 0,b=e,y=t.apply(o,n)}function l(t){var n=t-g;return void 0===g||e<=n||n<0||w&&m<=t-b}function u(){var t,n=r();return l(n)?d(n):void(v=setTimeout(u,(t=e-(n-g),w?c(t,m-(n-b)):t)))}function d(t){return v=void 0,S&&h?a(t):(h=p=void 0,y)}function f(){var t=r(),n=l(t);if(h=arguments,p=this,g=t,n){if(void 0===v)return b=t=g,v=setTimeout(u,e),_?a(t):y;if(w)return v=setTimeout(u,e),a(g)}return void 0===v&&(v=setTimeout(u,e)),y}var h,p,m,y,v,g,b=0,_=!1,w=!1,S=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return e=i(e)||0,o(n)&&(_=!!n.leading,m=(w="maxWait"in n)?s(i(n.maxWait)||0,e):m,S="trailing"in n?!!n.trailing:S),f.cancel=function(){void 0!==v&&clearTimeout(v),h=g=p=v=void(b=0)},f.flush=function(){return void 0===v?y:d(r())},f}},function(t,e,n){var o=n(6);t.exports=function(){return o.Date.now()}},function(t,e,n){var o=n(7),r=n(1);t.exports=function(t,e,n){var i=!0,s=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),o(t,e,{leading:i,maxWait:e,trailing:s})}},function(t,e){t.exports=function(t){return t}}],o={},e.m=n,e.c=o,e.p="",e(0))},921:(t,e,n)=>{var o,r;void 0!==(n="function"==typeof(o=r=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n,o=arguments[t];for(n in o)e[n]=o[n]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(o){function r(){}function i(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=t({path:"/"},r.defaults,i)).expires&&(i.expires=new Date(+new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var s=JSON.stringify(n);/^[\{\[]/.test(s)&&(n=s)}catch(e){}n=o.write?o.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c,a="";for(c in i)i[c]&&(a+="; "+c,!0!==i[c]&&(a+="="+i[c].split(";")[0]));return document.cookie=e+"="+n+a}}function s(t,n){if("undefined"!=typeof document){for(var r={},i=document.cookie?document.cookie.split("; "):[],s=0;s<i.length;s++){var c=i[s].split("="),a=c.slice(1).join("=");n||'"'!==a.charAt(0)||(a=a.slice(1,-1));try{var l=e(c[0]);if(a=(o.read||o)(a,l)||e(a),n)try{a=JSON.parse(a)}catch(t){}if(r[l]=a,t===l)break}catch(t){}}return t?r[t]:r}}return r.set=i,r.get=function(t){return s(t,!1)},r.getJSON=function(t){return s(t,!0)},r.remove=function(e,n){i(e,"",t(n,{expires:-1}))},r.defaults={},r.withConverter=n,r}((function(){}))})?o.call(e,n,e,t):o)&&(t.exports=n),t.exports=r()},201:(t,e,n)=>{var o="__lodash_hash_undefined__",r=1/0,i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,c=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=/^\[object .+?Constructor\]$/,d=(n="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,"object"==typeof self&&self&&self.Object===Object&&self),f=(n=n||d||Function("return this")(),d=Array.prototype,Function.prototype),h=Object.prototype,p=n["__core-js_shared__"],m=(p=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",y=f.toString,v=h.hasOwnProperty,g=h.toString,b=RegExp("^"+y.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_=(p=n.Symbol,d.splice),w=k(n,"Map"),S=k(Object,"create"),E=(f=p?p.prototype:void 0)?f.toString:void 0;function P(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function x(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function j(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function O(t,e){for(var n,o,r=t.length;r--;)if((n=t[r][0])===(o=e)||n!=n&&o!=o)return r;return-1}function T(t,e){var n,o;return t=t.__data__,("string"==(o=typeof(n=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?t["string"==typeof e?"string":"hash"]:t.map}function k(t,e){return function(t){if(V(t)&&(!m||!(m in t)))return(function(t){return"[object Function]"==(t=V(t)?g.call(t):"")||"[object GeneratorFunction]"==t}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?b:u).test(function(t){if(null!=t){try{return y.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(t=null==t?void 0:t[e])?t:void 0}P.prototype.clear=function(){this.__data__=S?S(null):{}},P.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},P.prototype.get=function(t){var e,n=this.__data__;return S?(e=n[t])===o?void 0:e:v.call(n,t)?n[t]:void 0},P.prototype.has=function(t){var e=this.__data__;return S?void 0!==e[t]:v.call(e,t)},P.prototype.set=function(t,e){return this.__data__[t]=S&&void 0===e?o:e,this},x.prototype.clear=function(){this.__data__=[]},x.prototype.delete=function(t){var e=this.__data__;return!((t=O(e,t))<0||(t==e.length-1?e.pop():_.call(e,t,1),0))},x.prototype.get=function(t){var e=this.__data__;return(t=O(e,t))<0?void 0:e[t][1]},x.prototype.has=function(t){return-1<O(this.__data__,t)},x.prototype.set=function(t,e){var n=this.__data__,o=O(n,t);return o<0?n.push([t,e]):n[o][1]=e,this},j.prototype.clear=function(){this.__data__={hash:new P,map:new(w||x),string:new P}},j.prototype.delete=function(t){return T(this,t).delete(t)},j.prototype.get=function(t){return T(this,t).get(t)},j.prototype.has=function(t){return T(this,t).has(t)},j.prototype.set=function(t,e){return T(this,t).set(t,e),this};var C=R((function(t){t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(A(t))return E?E.call(t):"";var e=t+"";return"0"==e&&1/t==-r?"-0":e}(e);var e,n=[];return c.test(t)&&n.push(""),t.replace(a,(function(t,e,o,r){n.push(o?r.replace(l,"$1"):e||t)})),n}));function R(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");function n(){var o=arguments,r=e?e.apply(this,o):o[0],i=n.cache;return i.has(r)?i.get(r):(o=t.apply(this,o),n.cache=i.set(r,o),o)}return n.cache=new(R.Cache||j),n}R.Cache=j;var I=Array.isArray;function V(t){var e=typeof t;return t&&("object"==e||"function"==e)}function A(t){return"symbol"==typeof t||!!(e=t)&&"object"==typeof e&&"[object Symbol]"==g.call(t);var e}t.exports=function(t,e,n){return void 0===(t=null==t?void 0:function(t,e){for(var n,o=0,c=(e=function(t,e){if(!I(t)){var n=typeof t;return"number"==n||"symbol"==n||"boolean"==n||null==t||A(t)?1:s.test(t)||!i.test(t)||null!=e&&t in Object(e)}}(e,t)?[e]:I(n=e)?n:C(n)).length;null!=t&&o<c;)t=t[function(t){if("string"==typeof t||A(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}(e[o++])];return o&&o==c?t:void 0}(t,e))?n:t}},539:(t,e,n)=>{n=n(400).Symbol,t.exports=n},736:(t,e,n)=>{var o=n(539),r=n(840),i=n(258),s=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(s&&s in Object(t)?r:i)(t)}},833:(t,e,n)=>{var o=n(127),r=/^\s+/;t.exports=function(t){return t&&t.slice(0,o(t)+1).replace(r,"")}},120:(t,e,n)=>{n="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,t.exports=n},840:(t,e,n)=>{n=n(539);var o=Object.prototype,r=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=r.call(t,s),n=t[s];try{var o=!(t[s]=void 0)}catch(t){}var c=i.call(t);return o&&(e?t[s]=n:delete t[s]),c}},258:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},400:(t,e,n)=>{n=n(120);var o="object"==typeof self&&self&&self.Object===Object&&self;n=n||o||Function("return this")(),t.exports=n},127:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},726:(t,e,n)=>{var o=n(611),r=n(846),i=n(936),s=Math.max,c=Math.min;t.exports=function(t,e,n){var a,l,u,d,f,h,p=0,m=!1,y=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=a,o=l;return a=l=void 0,p=e,d=t.apply(o,n)}function b(t){var n=t-h;return void 0===h||e<=n||n<0||y&&u<=t-p}function _(){var t,n=r();if(b(n))return w(n);f=setTimeout(_,(t=e-(n-h),y?c(t,u-(n-p)):t))}function w(t){return f=void 0,v&&a?g(t):(a=l=void 0,d)}function S(){var t=r(),n=b(t);if(a=arguments,l=this,h=t,n){if(void 0===f)return p=t=h,f=setTimeout(_,e),m?g(t):d;if(y)return clearTimeout(f),f=setTimeout(_,e),g(h)}return void 0===f&&(f=setTimeout(_,e)),d}return e=i(e)||0,o(n)&&(m=!!n.leading,u=(y="maxWait"in n)?s(i(n.maxWait)||0,e):u,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==f&&clearTimeout(f),a=h=l=f=void(p=0)},S.flush=function(){return void 0===f?d:w(r())},S}},611:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},360:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},193:(t,e,n)=>{var o=n(736),r=n(360);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==o(t)}},846:(t,e,n)=>{var o=n(400);t.exports=function(){return o.Date.now()}},936:(t,e,n)=>{var o=n(833),r=n(611),i=n(193),s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)&&(e="function"==typeof t.valueOf?t.valueOf():t,t=r(e)?e+"":e),"string"!=typeof t)return 0===t?t:+t;t=o(t);var e=c.test(t);return e||a.test(t)?l(t.slice(2),e?2:8):s.test(t)?NaN:+t}},621:function(t,e){var n;void 0!==(e="function"==typeof(n=function(){return function(t){"use strict";"string"==typeof t&&(t=document.querySelector(t));var e=function(t,n,o,r,i,s,c){var a=getComputedStyle(t);if("0"===a.opacity||"none"===a.display||"hidden"===a.visibility)return!1;var l=t.parentNode;if(l){if(l===document)return!0;var u=getComputedStyle(l).overflow;return("hidden"!==u&&"scroll"!==u||!(i+2>l.offsetWidth+l.scrollLeft||i+s-2<l.scrollLeft||n+2>l.offsetHeight+l.scrollTop||n+c-2<l.scrollTop))&&(l===t.offsetParent&&(i+=l.offsetLeft,n+=l.offsetTop),e(l,n,o,r,i,s,c))}return!0};if(!t||!function(t){for(;t=t.parentNode;)if(t===document)return!0;return!1}(t))return!1;var n=t.offsetTop,o=t.offsetLeft,r=n+t.offsetHeight,i=o+t.offsetWidth,s=t.offsetWidth,c=t.offsetHeight;return e(t,n,i,r,o,s,c)}})?n.apply(e,[]):n)&&(t.exports=e)}},e={};function n(o){var r=e[o];return void 0!==r||(r=e[o]={exports:{}},t[o].call(r.exports,r,r.exports,n)),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n(449)})();