New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@magento/recommendations-js-sdk

Package Overview
Dependencies
Maintainers
7
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magento/recommendations-js-sdk - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

4

dist/index.js

@@ -1,5 +0,5 @@

/*! @magento/recommendations-js-sdk@v1.0.5 */!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=12)}([function(t,e,r){t.exports=r(11)},function(t,e){function r(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function s(t){r(a,o,i,s,u,"next",t)}function u(t){r(a,o,i,s,u,"throw",t)}s(void 0)}))}}},function(t,e,r){t.exports=window.fetch||(window.fetch=r(3).default||r(3))},function(t,e,r){"use strict";r.r(e),e.default=function(t,e){return e=e||{},new Promise((function(r,n){var o=new XMLHttpRequest,i=[],a=[],s={},u=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:u,headers:{keys:function(){return i},entries:function(){return a},get:function(t){return s[t.toLowerCase()]},has:function(t){return t.toLowerCase()in s}}}};for(var c in o.open(e.method||"get",t,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){i.push(e=e.toLowerCase()),a.push([e,r]),s[e]=s[e]?s[e]+","+r:r})),r(u())},o.onerror=n,o.withCredentials="include"==e.credentials,e.headers)o.setRequestHeader(c,e.headers[c]);o.send(e.body||null)}))}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},function(t,e,r){var n=r(9),o=r(10);t.exports=function(t,e,r){var i=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[i+s]=a[s];return e||o(a)}},function(t,e,r){t.exports=function(){"use strict";
/*! @magento/recommendations-js-sdk@v1.0.6 */!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=12)}([function(t,e,r){t.exports=r(11)},function(t,e){function r(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function s(t){r(a,o,i,s,u,"next",t)}function u(t){r(a,o,i,s,u,"throw",t)}s(void 0)}))}}},function(t,e,r){t.exports=window.fetch||(window.fetch=r(3).default||r(3))},function(t,e,r){"use strict";r.r(e),e.default=function(t,e){return e=e||{},new Promise((function(r,n){var o=new XMLHttpRequest,i=[],a=[],s={},u=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:u,headers:{keys:function(){return i},entries:function(){return a},get:function(t){return s[t.toLowerCase()]},has:function(t){return t.toLowerCase()in s}}}};for(var c in o.open(e.method||"get",t,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){i.push(e=e.toLowerCase()),a.push([e,r]),s[e]=s[e]?s[e]+","+r:r})),r(u())},o.onerror=n,o.withCredentials="include"==e.credentials,e.headers)o.setRequestHeader(c,e.headers[c]);o.send(e.body||null)}))}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},function(t,e,r){var n=r(9),o=r(10);t.exports=function(t,e,r){var i=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[i+s]=a[s];return e||o(a)}},function(t,e,r){t.exports=function(){"use strict";
/*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/var t=Object.prototype.toString,e=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(t){return"function"==typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(t,e){return null!=t&&"object"==typeof t&&e in t}var i=RegExp.prototype.test,a=/\S/;function s(t){return!function(t,e){return i.call(t,e)}(a,t)}var u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},c=/\s*/,d=/\s+/,l=/\s*=/,p=/\s*\}/,f=/#|\^|\/|>|\{|&|=|!/;function h(t){this.string=t,this.tail=t,this.pos=0}function v(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function y(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}h.prototype.eos=function(){return""===this.tail},h.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var r=e[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},h.prototype.scanUntil=function(t){var e,r=this.tail.search(t);switch(r){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=e.length,e},v.prototype.push=function(t){return new v(t,this)},v.prototype.lookup=function(t){var e,n,i,a=this.cache;if(a.hasOwnProperty(t))e=a[t];else{for(var s,u,c,d=this,l=!1;d;){if(t.indexOf(".")>0)for(s=d.view,u=t.split("."),c=0;null!=s&&c<u.length;)c===u.length-1&&(l=o(s,u[c])||(n=s,i=u[c],null!=n&&"object"!=typeof n&&n.hasOwnProperty&&n.hasOwnProperty(i))),s=s[u[c++]];else s=d.view[t],l=o(d.view,t);if(l){e=s;break}d=d.parent}a[t]=e}return r(e)&&(e=e.call(this.view)),e},y.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},y.prototype.parse=function(t,r){var o=this.templateCache,i=t+":"+(r||g.tags).join(":"),a=void 0!==o,u=a?o.get(i):void 0;return null==u&&(u=function(t,r){if(!t)return[];var o,i,a,u=!1,v=[],y=[],w=[],m=!1,b=!1,k="",x=0;function _(){if(m&&!b)for(;w.length;)delete y[w.pop()];else w=[];m=!1,b=!1}function C(t){if("string"==typeof t&&(t=t.split(d,2)),!e(t)||2!==t.length)throw new Error("Invalid tags: "+t);o=new RegExp(n(t[0])+"\\s*"),i=new RegExp("\\s*"+n(t[1])),a=new RegExp("\\s*"+n("}"+t[1]))}C(r||g.tags);for(var S,L,P,I,T,j,E=new h(t);!E.eos();){if(S=E.pos,P=E.scanUntil(o))for(var O=0,V=P.length;O<V;++O)s(I=P.charAt(O))?(w.push(y.length),k+=I):(b=!0,u=!0,k+=" "),y.push(["text",I,S,S+1]),S+=1,"\n"===I&&(_(),k="",x=0,u=!1);if(!E.scan(o))break;if(m=!0,L=E.scan(f)||"name",E.scan(c),"="===L?(P=E.scanUntil(l),E.scan(l),E.scanUntil(i)):"{"===L?(P=E.scanUntil(a),E.scan(p),E.scanUntil(i),L="&"):P=E.scanUntil(i),!E.scan(i))throw new Error("Unclosed tag at "+E.pos);if(T=">"==L?[L,P,S,E.pos,k,x,u]:[L,P,S,E.pos],x++,y.push(T),"#"===L||"^"===L)v.push(T);else if("/"===L){if(!(j=v.pop()))throw new Error('Unopened section "'+P+'" at '+S);if(j[1]!==P)throw new Error('Unclosed section "'+j[1]+'" at '+S)}else"name"===L||"{"===L||"&"===L?b=!0:"="===L&&C(P)}if(_(),j=v.pop())throw new Error('Unclosed section "'+j[1]+'" at '+E.pos);return function(t){for(var e,r=[],n=r,o=[],i=0,a=t.length;i<a;++i)switch((e=t[i])[0]){case"#":case"^":n.push(e),o.push(e),n=e[4]=[];break;case"/":o.pop()[5]=e[2],n=o.length>0?o[o.length-1][4]:r;break;default:n.push(e)}return r}(function(t){for(var e,r,n=[],o=0,i=t.length;o<i;++o)(e=t[o])&&("text"===e[0]&&r&&"text"===r[0]?(r[1]+=e[1],r[3]=e[3]):(n.push(e),r=e));return n}(y))}(t,r),a&&o.set(i,u)),u},y.prototype.render=function(t,e,r,n){var o=this.parse(t,n),i=e instanceof v?e:new v(e,void 0);return this.renderTokens(o,i,r,t,n)},y.prototype.renderTokens=function(t,e,r,n,o){for(var i,a,s,u="",c=0,d=t.length;c<d;++c)s=void 0,"#"===(a=(i=t[c])[0])?s=this.renderSection(i,e,r,n):"^"===a?s=this.renderInverted(i,e,r,n):">"===a?s=this.renderPartial(i,e,r,o):"&"===a?s=this.unescapedValue(i,e):"name"===a?s=this.escapedValue(i,e):"text"===a&&(s=this.rawValue(i)),void 0!==s&&(u+=s);return u},y.prototype.renderSection=function(t,n,o,i){var a=this,s="",u=n.lookup(t[1]);if(u){if(e(u))for(var c=0,d=u.length;c<d;++c)s+=this.renderTokens(t[4],n.push(u[c]),o,i);else if("object"==typeof u||"string"==typeof u||"number"==typeof u)s+=this.renderTokens(t[4],n.push(u),o,i);else if(r(u)){if("string"!=typeof i)throw new Error("Cannot use higher-order sections without the original template");null!=(u=u.call(n.view,i.slice(t[3],t[5]),(function(t){return a.render(t,n,o)})))&&(s+=u)}else s+=this.renderTokens(t[4],n,o,i);return s}},y.prototype.renderInverted=function(t,r,n,o){var i=r.lookup(t[1]);if(!i||e(i)&&0===i.length)return this.renderTokens(t[4],r,n,o)},y.prototype.indentPartial=function(t,e,r){for(var n=e.replace(/[^ \t]/g,""),o=t.split("\n"),i=0;i<o.length;i++)o[i].length&&(i>0||!r)&&(o[i]=n+o[i]);return o.join("\n")},y.prototype.renderPartial=function(t,e,n,o){if(n){var i=r(n)?n(t[1]):n[t[1]];if(null!=i){var a=t[6],s=t[5],u=t[4],c=i;return 0==s&&u&&(c=this.indentPartial(i,u,a)),this.renderTokens(this.parse(c,o),e,n,c)}}},y.prototype.unescapedValue=function(t,e){var r=e.lookup(t[1]);if(null!=r)return r},y.prototype.escapedValue=function(t,e){var r=e.lookup(t[1]);if(null!=r)return g.escape(r)},y.prototype.rawValue=function(t){return t[1]};var g={name:"mustache.js",version:"4.0.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){w.templateCache=t},get templateCache(){return w.templateCache}},w=new y;return g.clearCache=function(){return w.clearCache()},g.parse=function(t,e){return w.parse(t,e)},g.render=function(t,r,n,o){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+(e(i=t)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)');var i;return w.render(t,r,n,o)},g.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return u[t]}))},g.Scanner=h,g.Context=v,g.Writer=y,g}()},function(t){t.exports=JSON.parse('{"a":"1.0.5"}')},function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);t.exports=function(){return r(n),n}}else{var o=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,o=r;return[o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]]].join("")}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=m(a,r);if(s){if(s===c)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var d=u(t,e,r);if("normal"===d.type){if(n=r.done?"completed":"suspendedYield",d.arg===c)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(n="completed",r.method="throw",r.arg=d.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var c={};function d(){}function l(){}function p(){}var f={};f[o]=function(){return this};var h=Object.getPrototypeOf,v=h&&h(h(_([])));v&&v!==e&&r.call(v,o)&&(f=v);var y=p.prototype=d.prototype=Object.create(f);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function w(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var s=u(t[n],t,o);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?Promise.resolve(d.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(d).then((function(t){c.value=t,i(c)}),(function(t){return e("throw",t,i,a)}))}a(s.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function m(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,m(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,c;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function _(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return l.prototype=y.constructor=p,p.constructor=l,p[a]=l.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(w.prototype),w.prototype[i]=function(){return this},t.AsyncIterator=w,t.async=function(e,r,n,o){var i=new w(s(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(y),y[a]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=_,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";r.r(e);var n=r(4),o=r.n(n),i=r(5),a=r.n(i),s=r(6),u=r.n(s),c=r(7),d=r.n(c),l={"most-viewed":[{signal:"most_viewed",boost:100}],"most-purchased":[{signal:"most_purchased",boost:100}],"most-added-to-cart":[{signal:"most_added_to_cart",boost:100}],"just-for-you":[{signal:"viewed_viewed",key:"user_view_history",boost:100},{signal:"more_like_this",key:"user_view_history",boost:100}],"viewed-viewed":[{signal:"viewed_viewed",key:"current_pdp",boost:100}],"viewed-bought":[{signal:"viewed_bought",key:"current_pdp",boost:100}],"bought-bought":[{signal:"bought_bought",key:"current_pdp",boost:100}],"more-like-this":[{signal:"more_like_this",key:"current_pdp",boost:100}]},p=function(t,e){var r=t.split(":");return r[0]=r[0].replace("categories","product.".concat(e,".categories")).replace("prices","product.".concat(e,".prices")),r.join(":")},f='\n <div class="product-recommendations-unit">\n <h2 class="product-recommendations-label">Recommended Products</h2>\n\n <div class="product-recommendations">\n {{#results}}\n <div class="product-recommendation">\n <a\n class="product-recommendation-image"\n href="{{{shortest_canonical_url}}}"\n >\n <img src="{{{main_image_url}}}" alt="{{name}}">\n </a>\n\n <a\n class="product-recommendation-name"\n href="{{{shortest_canonical_url}}}"\n >\n {{name}}\n </a>\n\n <p class="product-recommendation-price">\n ${{regular_price}}\n </p>\n </div>\n {{/results}}\n </div>\n </div>\n',h=r(0),v=r.n(h),y=r(1),g=r.n(y),w=r(2),m=r.n(w),b="".concat("https://api.magento.com/recs/v1/precs","/ping"),k="".concat("https://api.magento.com/recs/v1/precs","/recommendations"),x="".concat("https://api.magento.com/recs/v1/precs","/preconfigured"),_=function(){var t=g()(v.a.mark((function t(){var e,r,n;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m()(b);case 2:return e=t.sent,t.next=5,e.text();case 5:return r=t.sent,n={status:e.status,data:r},t.abrupt("return",n);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),C=function(){var t=g()(v.a.mark((function t(){var e,r,n,o,i,a,s,u,c,d,l,p,f,h,y,g,w,b,x,_,C,S,L,P,I,T,j,E,O,V=arguments;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=V.length>0&&void 0!==V[0]?V[0]:{},r=e.environmentId,n=void 0===r?"":r,o=e.instanceId,i=void 0===o?"":o,a=e.storeCode,s=void 0===a?"":a,u=e.storeViewCode,c=void 0===u?"":u,d=e.websiteCode,l=void 0===d?"":d,p=e.pageType,f=void 0===p?"":p,h=e.category,y=void 0===h?"":h,g=e.units,w=void 0===g?[]:g,b=e.currentSku,x=void 0===b?"":b,_=e.cartSkus,C=void 0===_?[]:_,S=e.userViewHistorySkus,L=void 0===S?[]:S,P=e.userPurchaseHistory,I={environmentId:n,instanceId:i,storeCode:s,storeViewCode:c,websiteCode:l,pageType:f,category:y,units:w,currentSku:x,cartSkus:C,userViewHistorySkus:L,userPurchaseHistory:void 0===P?[]:P},T={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(I)},t.next=5,m()(k,T);case 5:return j=t.sent,t.next=8,j.json();case 8:return E=t.sent,O={status:j.status,data:E},t.abrupt("return",O);case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),S=function(){var t=g()(v.a.mark((function t(){var e,r,n,o,i,a,s,u,c,d,l,p,f,h,y,g,w,b,k,_,C,S,L,P,I,T,j,E=arguments;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=E.length>0&&void 0!==E[0]?E[0]:{},r=e.environmentId,n=void 0===r?"":r,o=e.instanceId,i=void 0===o?"":o,a=e.storeCode,s=void 0===a?"":a,u=e.storeViewCode,c=void 0===u?"":u,d=e.websiteCode,l=void 0===d?"":d,p=e.pageType,f=void 0===p?"":p,h=e.category,y=void 0===h?"":h,g=e.currentSku,w=void 0===g?"":g,b=e.cartSkus,k=void 0===b?[]:b,_=e.userViewHistorySkus,C=void 0===_?[]:_,S=e.userPurchaseHistory,L={environmentId:n,instanceId:i,storeCode:s,storeViewCode:c,websiteCode:l,pageType:f,category:y,currentSku:w,cartSkus:k,userViewHistorySkus:C,userPurchaseHistory:void 0===S?[]:S},P={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L)},t.next=5,m()(x,P);case 5:return I=t.sent,t.next=8,I.json();case 8:return T=t.sent,j={status:I.status,data:T},t.abrupt("return",j);case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),L=function(t){return window&&window.dsDataLayer&&window.dsDataLayer.storefrontInstanceContext?window.dsDataLayer.storefrontInstanceContext[t]:""},P=function(t){return window&&window.dsDataLayer&&window.dsDataLayer.category?window.dsDataLayer.category[t]:""},I=function(t){return window&&window.dsDataLayer&&window.dsDataLayer.page?window.dsDataLayer.page[t]:""},T=function(){return window&&window.dsDataLayer&&window.dsDataLayer.product?window.dsDataLayer.product.sku:""},j=function(){if(!window||!window.localStorage||!window.localStorage.getItem)return[];var t=JSON.parse(window.localStorage.getItem("ds-cart"));return t&&t.cart&&t.cart.items&&t.cart.items.length?t.cart.items.map((function(t){return t.product_sku})):[]},E=function(){var t=JSON.parse(window.localStorage.getItem("ds-view-history"));return t&&t.skus?t.skus:[]},O=function(){var t=JSON.parse(window.localStorage.getItem("ds-purchase-history"));return t||[]},V=r(8),H=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.environmentId,n=void 0===r?L("environmentId"):r,i=e.instanceId,a=void 0===i?L("instanceId"):i,s=e.storeCode,u=void 0===s?L("storeCode"):s,c=e.storeViewCode,d=void 0===c?L("storeViewCode"):c,l=e.websiteCode,p=void 0===l?L("websiteCode"):l,f=e.pageType,h=void 0===f?I("pageType"):f,v=e.category,y=void 0===v?P("urlPath"):v;o()(this,t),this._environmentId=n,this._instanceId=a,this._storeCode=u,this._storeViewCode=d,this._websiteCode=p,this._pageType=h,this._category=y,this.units=[]}return a()(t,[{key:"version",value:function(){return V.a}},{key:"ping",value:function(){return _()}},{key:"register",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,r=void 0===e?"":e,n=t.filter,o=void 0===n?null:n,i=t.type,a=void 0===i?"":i,s=t.search,c=void 0===s?[]:s,d=u()();c=a?l[a]:c;var f={id:d,name:r,filter:o=o?p(o,this._storeViewCode):o,search:c};return this.units.push(f),f}},{key:"unregister",value:function(t){var e=this.units.find((function(e){return e.id===t})),r=this.units.indexOf(e);return this.units.splice(r,1),e}},{key:"fetch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ids,r=void 0===e?[]:e,n=t.limit,o=void 0===n?5:n,i=t.offset,a=void 0===i?0:i,s=t.currentSku,u=void 0===s?T():s,c=t.cartSkus,d=void 0===c?j():c,l=t.userViewHistorySkus,p=void 0===l?E():l,f=t.userPurchaseHistory,h=void 0===f?O():f,v=r.length?this.units.filter((function(t){return r.includes(t.id)})):this.units,y=v.map((function(t){return{limit:o,offset:a,unitId:t.id,unitName:t.name,filterQueryString:t.filter,rankerBlended:t.search}})),g={environmentId:this._environmentId,instanceId:this._instanceId,storeCode:this._storeCode,storeViewCode:this._storeViewCode,websiteCode:this._websiteCode,pageType:this._pageType,category:this._category,units:y,currentSku:u,cartSkus:d,userViewHistorySkus:p,userPurchaseHistory:h},w=C(g);return w}},{key:"fetchPreconfigured",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentSku,r=void 0===e?T():e,n=t.cartSkus,o=void 0===n?j():n,i=t.userViewHistorySkus,a=void 0===i?E():i,s=t.userPurchaseHistory,u=void 0===s?O():s,c={environmentId:this._environmentId,instanceId:this._instanceId,storeCode:this._storeCode,storeViewCode:this._storeViewCode,websiteCode:this._websiteCode,pageType:this._pageType,category:this._category,currentSku:r,cartSkus:o,userViewHistorySkus:a,userPurchaseHistory:u},d=S(c);return d}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.template,r=void 0===e?"":e,n=t.unit,o=void 0===n?{}:n;r=r||f;var i=d.a.render(r,o);return i}}]),t}();"undefined"!=typeof window&&(window.RecommendationsClient=H);e.default=H}]);
*/var t=Object.prototype.toString,e=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(t){return"function"==typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(t,e){return null!=t&&"object"==typeof t&&e in t}var i=RegExp.prototype.test,a=/\S/;function s(t){return!function(t,e){return i.call(t,e)}(a,t)}var u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},c=/\s*/,d=/\s+/,l=/\s*=/,p=/\s*\}/,f=/#|\^|\/|>|\{|&|=|!/;function h(t){this.string=t,this.tail=t,this.pos=0}function v(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function y(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}h.prototype.eos=function(){return""===this.tail},h.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var r=e[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},h.prototype.scanUntil=function(t){var e,r=this.tail.search(t);switch(r){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=e.length,e},v.prototype.push=function(t){return new v(t,this)},v.prototype.lookup=function(t){var e,n,i,a=this.cache;if(a.hasOwnProperty(t))e=a[t];else{for(var s,u,c,d=this,l=!1;d;){if(t.indexOf(".")>0)for(s=d.view,u=t.split("."),c=0;null!=s&&c<u.length;)c===u.length-1&&(l=o(s,u[c])||(n=s,i=u[c],null!=n&&"object"!=typeof n&&n.hasOwnProperty&&n.hasOwnProperty(i))),s=s[u[c++]];else s=d.view[t],l=o(d.view,t);if(l){e=s;break}d=d.parent}a[t]=e}return r(e)&&(e=e.call(this.view)),e},y.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},y.prototype.parse=function(t,r){var o=this.templateCache,i=t+":"+(r||g.tags).join(":"),a=void 0!==o,u=a?o.get(i):void 0;return null==u&&(u=function(t,r){if(!t)return[];var o,i,a,u=!1,v=[],y=[],w=[],m=!1,b=!1,k="",x=0;function _(){if(m&&!b)for(;w.length;)delete y[w.pop()];else w=[];m=!1,b=!1}function C(t){if("string"==typeof t&&(t=t.split(d,2)),!e(t)||2!==t.length)throw new Error("Invalid tags: "+t);o=new RegExp(n(t[0])+"\\s*"),i=new RegExp("\\s*"+n(t[1])),a=new RegExp("\\s*"+n("}"+t[1]))}C(r||g.tags);for(var S,L,P,I,T,j,E=new h(t);!E.eos();){if(S=E.pos,P=E.scanUntil(o))for(var O=0,V=P.length;O<V;++O)s(I=P.charAt(O))?(w.push(y.length),k+=I):(b=!0,u=!0,k+=" "),y.push(["text",I,S,S+1]),S+=1,"\n"===I&&(_(),k="",x=0,u=!1);if(!E.scan(o))break;if(m=!0,L=E.scan(f)||"name",E.scan(c),"="===L?(P=E.scanUntil(l),E.scan(l),E.scanUntil(i)):"{"===L?(P=E.scanUntil(a),E.scan(p),E.scanUntil(i),L="&"):P=E.scanUntil(i),!E.scan(i))throw new Error("Unclosed tag at "+E.pos);if(T=">"==L?[L,P,S,E.pos,k,x,u]:[L,P,S,E.pos],x++,y.push(T),"#"===L||"^"===L)v.push(T);else if("/"===L){if(!(j=v.pop()))throw new Error('Unopened section "'+P+'" at '+S);if(j[1]!==P)throw new Error('Unclosed section "'+j[1]+'" at '+S)}else"name"===L||"{"===L||"&"===L?b=!0:"="===L&&C(P)}if(_(),j=v.pop())throw new Error('Unclosed section "'+j[1]+'" at '+E.pos);return function(t){for(var e,r=[],n=r,o=[],i=0,a=t.length;i<a;++i)switch((e=t[i])[0]){case"#":case"^":n.push(e),o.push(e),n=e[4]=[];break;case"/":o.pop()[5]=e[2],n=o.length>0?o[o.length-1][4]:r;break;default:n.push(e)}return r}(function(t){for(var e,r,n=[],o=0,i=t.length;o<i;++o)(e=t[o])&&("text"===e[0]&&r&&"text"===r[0]?(r[1]+=e[1],r[3]=e[3]):(n.push(e),r=e));return n}(y))}(t,r),a&&o.set(i,u)),u},y.prototype.render=function(t,e,r,n){var o=this.parse(t,n),i=e instanceof v?e:new v(e,void 0);return this.renderTokens(o,i,r,t,n)},y.prototype.renderTokens=function(t,e,r,n,o){for(var i,a,s,u="",c=0,d=t.length;c<d;++c)s=void 0,"#"===(a=(i=t[c])[0])?s=this.renderSection(i,e,r,n):"^"===a?s=this.renderInverted(i,e,r,n):">"===a?s=this.renderPartial(i,e,r,o):"&"===a?s=this.unescapedValue(i,e):"name"===a?s=this.escapedValue(i,e):"text"===a&&(s=this.rawValue(i)),void 0!==s&&(u+=s);return u},y.prototype.renderSection=function(t,n,o,i){var a=this,s="",u=n.lookup(t[1]);if(u){if(e(u))for(var c=0,d=u.length;c<d;++c)s+=this.renderTokens(t[4],n.push(u[c]),o,i);else if("object"==typeof u||"string"==typeof u||"number"==typeof u)s+=this.renderTokens(t[4],n.push(u),o,i);else if(r(u)){if("string"!=typeof i)throw new Error("Cannot use higher-order sections without the original template");null!=(u=u.call(n.view,i.slice(t[3],t[5]),(function(t){return a.render(t,n,o)})))&&(s+=u)}else s+=this.renderTokens(t[4],n,o,i);return s}},y.prototype.renderInverted=function(t,r,n,o){var i=r.lookup(t[1]);if(!i||e(i)&&0===i.length)return this.renderTokens(t[4],r,n,o)},y.prototype.indentPartial=function(t,e,r){for(var n=e.replace(/[^ \t]/g,""),o=t.split("\n"),i=0;i<o.length;i++)o[i].length&&(i>0||!r)&&(o[i]=n+o[i]);return o.join("\n")},y.prototype.renderPartial=function(t,e,n,o){if(n){var i=r(n)?n(t[1]):n[t[1]];if(null!=i){var a=t[6],s=t[5],u=t[4],c=i;return 0==s&&u&&(c=this.indentPartial(i,u,a)),this.renderTokens(this.parse(c,o),e,n,c)}}},y.prototype.unescapedValue=function(t,e){var r=e.lookup(t[1]);if(null!=r)return r},y.prototype.escapedValue=function(t,e){var r=e.lookup(t[1]);if(null!=r)return g.escape(r)},y.prototype.rawValue=function(t){return t[1]};var g={name:"mustache.js",version:"4.0.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){w.templateCache=t},get templateCache(){return w.templateCache}},w=new y;return g.clearCache=function(){return w.clearCache()},g.parse=function(t,e){return w.parse(t,e)},g.render=function(t,r,n,o){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+(e(i=t)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)');var i;return w.render(t,r,n,o)},g.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return u[t]}))},g.Scanner=h,g.Context=v,g.Writer=y,g}()},function(t){t.exports=JSON.parse('{"a":"1.0.6"}')},function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);t.exports=function(){return r(n),n}}else{var o=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,o=r;return[o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]]].join("")}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=m(a,r);if(s){if(s===c)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var d=u(t,e,r);if("normal"===d.type){if(n=r.done?"completed":"suspendedYield",d.arg===c)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(n="completed",r.method="throw",r.arg=d.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var c={};function d(){}function l(){}function p(){}var f={};f[o]=function(){return this};var h=Object.getPrototypeOf,v=h&&h(h(_([])));v&&v!==e&&r.call(v,o)&&(f=v);var y=p.prototype=d.prototype=Object.create(f);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function w(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var s=u(t[n],t,o);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?Promise.resolve(d.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(d).then((function(t){c.value=t,i(c)}),(function(t){return e("throw",t,i,a)}))}a(s.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function m(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,m(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,c;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function _(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return l.prototype=y.constructor=p,p.constructor=l,p[a]=l.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(w.prototype),w.prototype[i]=function(){return this},t.AsyncIterator=w,t.async=function(e,r,n,o){var i=new w(s(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(y),y[a]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=_,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";r.r(e);var n=r(4),o=r.n(n),i=r(5),a=r.n(i),s=r(6),u=r.n(s),c=r(7),d=r.n(c),l={"most-viewed":[{signal:"most_viewed",boost:100}],"most-purchased":[{signal:"most_purchased",boost:100}],"most-added-to-cart":[{signal:"most_added_to_cart",boost:100}],trending:[{signal:"trending",boost:100}],"just-for-you":[{signal:"viewed_viewed",key:"user_view_history",boost:100},{signal:"more_like_this",key:"user_view_history",boost:100}],"viewed-viewed":[{signal:"viewed_viewed",key:"current_pdp",boost:100}],"viewed-bought":[{signal:"viewed_bought",key:"current_pdp",boost:100}],"bought-bought":[{signal:"bought_bought",key:"current_pdp",boost:100}],"more-like-this":[{signal:"more_like_this",key:"current_pdp",boost:100}]},p=function(t,e){var r=t.split(":");return r[0]=r[0].replace("categories","product.".concat(e,".categories")).replace("prices","product.".concat(e,".prices")),r.join(":")},f='\n <div class="product-recommendations-unit">\n <h2 class="product-recommendations-label">Recommended Products</h2>\n\n <div class="product-recommendations">\n {{#results}}\n <div class="product-recommendation">\n <a\n class="product-recommendation-image"\n href="{{{shortest_canonical_url}}}"\n >\n <img src="{{{main_image_url}}}" alt="{{name}}">\n </a>\n\n <a\n class="product-recommendation-name"\n href="{{{shortest_canonical_url}}}"\n >\n {{name}}\n </a>\n\n <p class="product-recommendation-price">\n ${{regular_price}}\n </p>\n </div>\n {{/results}}\n </div>\n </div>\n',h=r(0),v=r.n(h),y=r(1),g=r.n(y),w=r(2),m=r.n(w),b="".concat("https://api.magento.com/recs/v1/precs","/ping"),k="".concat("https://api.magento.com/recs/v1/precs","/recommendations"),x="".concat("https://api.magento.com/recs/v1/precs","/preconfigured"),_=function(){var t=g()(v.a.mark((function t(){var e,r,n;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m()(b);case 2:return e=t.sent,t.next=5,e.text();case 5:return r=t.sent,n={status:e.status,data:r},t.abrupt("return",n);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),C=function(){var t=g()(v.a.mark((function t(){var e,r,n,o,i,a,s,u,c,d,l,p,f,h,y,g,w,b,x,_,C,S,L,P,I,T,j,E,O,V=arguments;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=V.length>0&&void 0!==V[0]?V[0]:{},r=e.environmentId,n=void 0===r?"":r,o=e.instanceId,i=void 0===o?"":o,a=e.storeCode,s=void 0===a?"":a,u=e.storeViewCode,c=void 0===u?"":u,d=e.websiteCode,l=void 0===d?"":d,p=e.pageType,f=void 0===p?"":p,h=e.category,y=void 0===h?"":h,g=e.units,w=void 0===g?[]:g,b=e.currentSku,x=void 0===b?"":b,_=e.cartSkus,C=void 0===_?[]:_,S=e.userViewHistorySkus,L=void 0===S?[]:S,P=e.userPurchaseHistory,I={environmentId:n,instanceId:i,storeCode:s,storeViewCode:c,websiteCode:l,pageType:f,category:y,units:w,currentSku:x,cartSkus:C,userViewHistorySkus:L,userPurchaseHistory:void 0===P?[]:P},T={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(I)},t.next=5,m()(k,T);case 5:return j=t.sent,t.next=8,j.json();case 8:return E=t.sent,O={status:j.status,data:E},t.abrupt("return",O);case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),S=function(){var t=g()(v.a.mark((function t(){var e,r,n,o,i,a,s,u,c,d,l,p,f,h,y,g,w,b,k,_,C,S,L,P,I,T,j,E=arguments;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=E.length>0&&void 0!==E[0]?E[0]:{},r=e.environmentId,n=void 0===r?"":r,o=e.instanceId,i=void 0===o?"":o,a=e.storeCode,s=void 0===a?"":a,u=e.storeViewCode,c=void 0===u?"":u,d=e.websiteCode,l=void 0===d?"":d,p=e.pageType,f=void 0===p?"":p,h=e.category,y=void 0===h?"":h,g=e.currentSku,w=void 0===g?"":g,b=e.cartSkus,k=void 0===b?[]:b,_=e.userViewHistorySkus,C=void 0===_?[]:_,S=e.userPurchaseHistory,L={environmentId:n,instanceId:i,storeCode:s,storeViewCode:c,websiteCode:l,pageType:f,category:y,currentSku:w,cartSkus:k,userViewHistorySkus:C,userPurchaseHistory:void 0===S?[]:S},P={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L)},t.next=5,m()(x,P);case 5:return I=t.sent,t.next=8,I.json();case 8:return T=t.sent,j={status:I.status,data:T},t.abrupt("return",j);case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),L=function(t){return window&&window.dsDataLayer&&window.dsDataLayer.storefrontInstanceContext?window.dsDataLayer.storefrontInstanceContext[t]:""},P=function(t){return window&&window.dsDataLayer&&window.dsDataLayer.category?window.dsDataLayer.category[t]:""},I=function(t){return window&&window.dsDataLayer&&window.dsDataLayer.page?window.dsDataLayer.page[t]:""},T=function(){return window&&window.dsDataLayer&&window.dsDataLayer.product?window.dsDataLayer.product.sku:""},j=function(){if(!window||!window.localStorage||!window.localStorage.getItem)return[];var t=JSON.parse(window.localStorage.getItem("ds-cart"));return t&&t.cart&&t.cart.items&&t.cart.items.length?t.cart.items.map((function(t){return t.product_sku})):[]},E=function(){var t=JSON.parse(window.localStorage.getItem("ds-view-history"));return t&&t.skus?t.skus:[]},O=function(){var t=JSON.parse(window.localStorage.getItem("ds-purchase-history"));return t||[]},V=r(8),H=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.environmentId,n=void 0===r?L("environmentId"):r,i=e.instanceId,a=void 0===i?L("instanceId"):i,s=e.storeCode,u=void 0===s?L("storeCode"):s,c=e.storeViewCode,d=void 0===c?L("storeViewCode"):c,l=e.websiteCode,p=void 0===l?L("websiteCode"):l,f=e.pageType,h=void 0===f?I("pageType"):f,v=e.category,y=void 0===v?P("urlPath"):v;o()(this,t),this._environmentId=n,this._instanceId=a,this._storeCode=u,this._storeViewCode=d,this._websiteCode=p,this._pageType=h,this._category=y,this.units=[]}return a()(t,[{key:"version",value:function(){return V.a}},{key:"ping",value:function(){return _()}},{key:"register",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,r=void 0===e?"":e,n=t.filter,o=void 0===n?null:n,i=t.type,a=void 0===i?"":i,s=t.search,c=void 0===s?[]:s,d=u()();c=a?l[a]:c;var f={id:d,name:r,filter:o=o?p(o,this._storeViewCode):o,search:c};return this.units.push(f),f}},{key:"unregister",value:function(t){var e=this.units.find((function(e){return e.id===t})),r=this.units.indexOf(e);return this.units.splice(r,1),e}},{key:"fetch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ids,r=void 0===e?[]:e,n=t.limit,o=void 0===n?5:n,i=t.offset,a=void 0===i?0:i,s=t.currentSku,u=void 0===s?T():s,c=t.cartSkus,d=void 0===c?j():c,l=t.userViewHistorySkus,p=void 0===l?E():l,f=t.userPurchaseHistory,h=void 0===f?O():f,v=r.length?this.units.filter((function(t){return r.includes(t.id)})):this.units,y=v.map((function(t){return{limit:o,offset:a,unitId:t.id,unitName:t.name,filterQueryString:t.filter,rankerBlended:t.search}})),g={environmentId:this._environmentId,instanceId:this._instanceId,storeCode:this._storeCode,storeViewCode:this._storeViewCode,websiteCode:this._websiteCode,pageType:this._pageType,category:this._category,units:y,currentSku:u,cartSkus:d,userViewHistorySkus:p,userPurchaseHistory:h},w=C(g);return w}},{key:"fetchPreconfigured",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentSku,r=void 0===e?T():e,n=t.cartSkus,o=void 0===n?j():n,i=t.userViewHistorySkus,a=void 0===i?E():i,s=t.userPurchaseHistory,u=void 0===s?O():s,c={environmentId:this._environmentId,instanceId:this._instanceId,storeCode:this._storeCode,storeViewCode:this._storeViewCode,websiteCode:this._websiteCode,pageType:this._pageType,category:this._category,currentSku:r,cartSkus:o,userViewHistorySkus:a,userPurchaseHistory:u},d=S(c);return d}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.template,r=void 0===e?"":e,n=t.unit,o=void 0===n?{}:n;r=r||f;var i=d.a.render(r,o);return i}}]),t}();"undefined"!=typeof window&&(window.RecommendationsClient=H);e.default=H}]);

@@ -1,5 +0,5 @@

/*! @magento/recommendations-js-sdk@v1.0.5 */!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=12)}([function(t,e,r){t.exports=r(11)},function(t,e){function r(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function s(t){r(a,o,i,s,u,"next",t)}function u(t){r(a,o,i,s,u,"throw",t)}s(void 0)}))}}},function(t,e,r){t.exports=window.fetch||(window.fetch=r(3).default||r(3))},function(t,e,r){"use strict";r.r(e),e.default=function(t,e){return e=e||{},new Promise((function(r,n){var o=new XMLHttpRequest,i=[],a=[],s={},u=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:u,headers:{keys:function(){return i},entries:function(){return a},get:function(t){return s[t.toLowerCase()]},has:function(t){return t.toLowerCase()in s}}}};for(var c in o.open(e.method||"get",t,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){i.push(e=e.toLowerCase()),a.push([e,r]),s[e]=s[e]?s[e]+","+r:r})),r(u())},o.onerror=n,o.withCredentials="include"==e.credentials,e.headers)o.setRequestHeader(c,e.headers[c]);o.send(e.body||null)}))}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},function(t,e,r){var n=r(9),o=r(10);t.exports=function(t,e,r){var i=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[i+s]=a[s];return e||o(a)}},function(t,e,r){t.exports=function(){"use strict";
/*! @magento/recommendations-js-sdk@v1.0.6 */!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=12)}([function(t,e,r){t.exports=r(11)},function(t,e){function r(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function s(t){r(a,o,i,s,u,"next",t)}function u(t){r(a,o,i,s,u,"throw",t)}s(void 0)}))}}},function(t,e,r){t.exports=window.fetch||(window.fetch=r(3).default||r(3))},function(t,e,r){"use strict";r.r(e),e.default=function(t,e){return e=e||{},new Promise((function(r,n){var o=new XMLHttpRequest,i=[],a=[],s={},u=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:u,headers:{keys:function(){return i},entries:function(){return a},get:function(t){return s[t.toLowerCase()]},has:function(t){return t.toLowerCase()in s}}}};for(var c in o.open(e.method||"get",t,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){i.push(e=e.toLowerCase()),a.push([e,r]),s[e]=s[e]?s[e]+","+r:r})),r(u())},o.onerror=n,o.withCredentials="include"==e.credentials,e.headers)o.setRequestHeader(c,e.headers[c]);o.send(e.body||null)}))}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},function(t,e,r){var n=r(9),o=r(10);t.exports=function(t,e,r){var i=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[i+s]=a[s];return e||o(a)}},function(t,e,r){t.exports=function(){"use strict";
/*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/var t=Object.prototype.toString,e=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(t){return"function"==typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(t,e){return null!=t&&"object"==typeof t&&e in t}var i=RegExp.prototype.test,a=/\S/;function s(t){return!function(t,e){return i.call(t,e)}(a,t)}var u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},c=/\s*/,d=/\s+/,l=/\s*=/,p=/\s*\}/,f=/#|\^|\/|>|\{|&|=|!/;function h(t){this.string=t,this.tail=t,this.pos=0}function v(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function y(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}h.prototype.eos=function(){return""===this.tail},h.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var r=e[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},h.prototype.scanUntil=function(t){var e,r=this.tail.search(t);switch(r){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=e.length,e},v.prototype.push=function(t){return new v(t,this)},v.prototype.lookup=function(t){var e,n,i,a=this.cache;if(a.hasOwnProperty(t))e=a[t];else{for(var s,u,c,d=this,l=!1;d;){if(t.indexOf(".")>0)for(s=d.view,u=t.split("."),c=0;null!=s&&c<u.length;)c===u.length-1&&(l=o(s,u[c])||(n=s,i=u[c],null!=n&&"object"!=typeof n&&n.hasOwnProperty&&n.hasOwnProperty(i))),s=s[u[c++]];else s=d.view[t],l=o(d.view,t);if(l){e=s;break}d=d.parent}a[t]=e}return r(e)&&(e=e.call(this.view)),e},y.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},y.prototype.parse=function(t,r){var o=this.templateCache,i=t+":"+(r||g.tags).join(":"),a=void 0!==o,u=a?o.get(i):void 0;return null==u&&(u=function(t,r){if(!t)return[];var o,i,a,u=!1,v=[],y=[],w=[],m=!1,b=!1,k="",x=0;function _(){if(m&&!b)for(;w.length;)delete y[w.pop()];else w=[];m=!1,b=!1}function C(t){if("string"==typeof t&&(t=t.split(d,2)),!e(t)||2!==t.length)throw new Error("Invalid tags: "+t);o=new RegExp(n(t[0])+"\\s*"),i=new RegExp("\\s*"+n(t[1])),a=new RegExp("\\s*"+n("}"+t[1]))}C(r||g.tags);for(var S,L,P,I,T,j,E=new h(t);!E.eos();){if(S=E.pos,P=E.scanUntil(o))for(var O=0,V=P.length;O<V;++O)s(I=P.charAt(O))?(w.push(y.length),k+=I):(b=!0,u=!0,k+=" "),y.push(["text",I,S,S+1]),S+=1,"\n"===I&&(_(),k="",x=0,u=!1);if(!E.scan(o))break;if(m=!0,L=E.scan(f)||"name",E.scan(c),"="===L?(P=E.scanUntil(l),E.scan(l),E.scanUntil(i)):"{"===L?(P=E.scanUntil(a),E.scan(p),E.scanUntil(i),L="&"):P=E.scanUntil(i),!E.scan(i))throw new Error("Unclosed tag at "+E.pos);if(T=">"==L?[L,P,S,E.pos,k,x,u]:[L,P,S,E.pos],x++,y.push(T),"#"===L||"^"===L)v.push(T);else if("/"===L){if(!(j=v.pop()))throw new Error('Unopened section "'+P+'" at '+S);if(j[1]!==P)throw new Error('Unclosed section "'+j[1]+'" at '+S)}else"name"===L||"{"===L||"&"===L?b=!0:"="===L&&C(P)}if(_(),j=v.pop())throw new Error('Unclosed section "'+j[1]+'" at '+E.pos);return function(t){for(var e,r=[],n=r,o=[],i=0,a=t.length;i<a;++i)switch((e=t[i])[0]){case"#":case"^":n.push(e),o.push(e),n=e[4]=[];break;case"/":o.pop()[5]=e[2],n=o.length>0?o[o.length-1][4]:r;break;default:n.push(e)}return r}(function(t){for(var e,r,n=[],o=0,i=t.length;o<i;++o)(e=t[o])&&("text"===e[0]&&r&&"text"===r[0]?(r[1]+=e[1],r[3]=e[3]):(n.push(e),r=e));return n}(y))}(t,r),a&&o.set(i,u)),u},y.prototype.render=function(t,e,r,n){var o=this.parse(t,n),i=e instanceof v?e:new v(e,void 0);return this.renderTokens(o,i,r,t,n)},y.prototype.renderTokens=function(t,e,r,n,o){for(var i,a,s,u="",c=0,d=t.length;c<d;++c)s=void 0,"#"===(a=(i=t[c])[0])?s=this.renderSection(i,e,r,n):"^"===a?s=this.renderInverted(i,e,r,n):">"===a?s=this.renderPartial(i,e,r,o):"&"===a?s=this.unescapedValue(i,e):"name"===a?s=this.escapedValue(i,e):"text"===a&&(s=this.rawValue(i)),void 0!==s&&(u+=s);return u},y.prototype.renderSection=function(t,n,o,i){var a=this,s="",u=n.lookup(t[1]);if(u){if(e(u))for(var c=0,d=u.length;c<d;++c)s+=this.renderTokens(t[4],n.push(u[c]),o,i);else if("object"==typeof u||"string"==typeof u||"number"==typeof u)s+=this.renderTokens(t[4],n.push(u),o,i);else if(r(u)){if("string"!=typeof i)throw new Error("Cannot use higher-order sections without the original template");null!=(u=u.call(n.view,i.slice(t[3],t[5]),(function(t){return a.render(t,n,o)})))&&(s+=u)}else s+=this.renderTokens(t[4],n,o,i);return s}},y.prototype.renderInverted=function(t,r,n,o){var i=r.lookup(t[1]);if(!i||e(i)&&0===i.length)return this.renderTokens(t[4],r,n,o)},y.prototype.indentPartial=function(t,e,r){for(var n=e.replace(/[^ \t]/g,""),o=t.split("\n"),i=0;i<o.length;i++)o[i].length&&(i>0||!r)&&(o[i]=n+o[i]);return o.join("\n")},y.prototype.renderPartial=function(t,e,n,o){if(n){var i=r(n)?n(t[1]):n[t[1]];if(null!=i){var a=t[6],s=t[5],u=t[4],c=i;return 0==s&&u&&(c=this.indentPartial(i,u,a)),this.renderTokens(this.parse(c,o),e,n,c)}}},y.prototype.unescapedValue=function(t,e){var r=e.lookup(t[1]);if(null!=r)return r},y.prototype.escapedValue=function(t,e){var r=e.lookup(t[1]);if(null!=r)return g.escape(r)},y.prototype.rawValue=function(t){return t[1]};var g={name:"mustache.js",version:"4.0.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){w.templateCache=t},get templateCache(){return w.templateCache}},w=new y;return g.clearCache=function(){return w.clearCache()},g.parse=function(t,e){return w.parse(t,e)},g.render=function(t,r,n,o){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+(e(i=t)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)');var i;return w.render(t,r,n,o)},g.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return u[t]}))},g.Scanner=h,g.Context=v,g.Writer=y,g}()},function(t){t.exports=JSON.parse('{"a":"1.0.5"}')},function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);t.exports=function(){return r(n),n}}else{var o=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,o=r;return[o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]]].join("")}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=m(a,r);if(s){if(s===c)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var d=u(t,e,r);if("normal"===d.type){if(n=r.done?"completed":"suspendedYield",d.arg===c)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(n="completed",r.method="throw",r.arg=d.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var c={};function d(){}function l(){}function p(){}var f={};f[o]=function(){return this};var h=Object.getPrototypeOf,v=h&&h(h(_([])));v&&v!==e&&r.call(v,o)&&(f=v);var y=p.prototype=d.prototype=Object.create(f);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function w(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var s=u(t[n],t,o);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?Promise.resolve(d.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(d).then((function(t){c.value=t,i(c)}),(function(t){return e("throw",t,i,a)}))}a(s.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function m(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,m(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,c;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function _(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return l.prototype=y.constructor=p,p.constructor=l,p[a]=l.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(w.prototype),w.prototype[i]=function(){return this},t.AsyncIterator=w,t.async=function(e,r,n,o){var i=new w(s(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(y),y[a]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=_,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";r.r(e);var n=r(4),o=r.n(n),i=r(5),a=r.n(i),s=r(6),u=r.n(s),c=r(7),d=r.n(c),l={"most-viewed":[{signal:"most_viewed",boost:100}],"most-purchased":[{signal:"most_purchased",boost:100}],"most-added-to-cart":[{signal:"most_added_to_cart",boost:100}],"just-for-you":[{signal:"viewed_viewed",key:"user_view_history",boost:100},{signal:"more_like_this",key:"user_view_history",boost:100}],"viewed-viewed":[{signal:"viewed_viewed",key:"current_pdp",boost:100}],"viewed-bought":[{signal:"viewed_bought",key:"current_pdp",boost:100}],"bought-bought":[{signal:"bought_bought",key:"current_pdp",boost:100}],"more-like-this":[{signal:"more_like_this",key:"current_pdp",boost:100}]},p=function(t,e){var r=t.split(":");return r[0]=r[0].replace("categories","product.".concat(e,".categories")).replace("prices","product.".concat(e,".prices")),r.join(":")},f='\n <div class="product-recommendations-unit">\n <h2 class="product-recommendations-label">Recommended Products</h2>\n\n <div class="product-recommendations">\n {{#results}}\n <div class="product-recommendation">\n <a\n class="product-recommendation-image"\n href="{{{shortest_canonical_url}}}"\n >\n <img src="{{{main_image_url}}}" alt="{{name}}">\n </a>\n\n <a\n class="product-recommendation-name"\n href="{{{shortest_canonical_url}}}"\n >\n {{name}}\n </a>\n\n <p class="product-recommendation-price">\n ${{regular_price}}\n </p>\n </div>\n {{/results}}\n </div>\n </div>\n',h=r(0),v=r.n(h),y=r(1),g=r.n(y),w=r(2),m=r.n(w),b="".concat("https://api.magento.com/recs/v1/precs","/ping"),k="".concat("https://api.magento.com/recs/v1/precs","/recommendations"),x="".concat("https://api.magento.com/recs/v1/precs","/preconfigured"),_=function(){var t=g()(v.a.mark((function t(){var e,r,n;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m()(b);case 2:return e=t.sent,t.next=5,e.text();case 5:return r=t.sent,n={status:e.status,data:r},t.abrupt("return",n);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),C=function(){var t=g()(v.a.mark((function t(){var e,r,n,o,i,a,s,u,c,d,l,p,f,h,y,g,w,b,x,_,C,S,L,P,I,T,j,E,O,V=arguments;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=V.length>0&&void 0!==V[0]?V[0]:{},r=e.environmentId,n=void 0===r?"":r,o=e.instanceId,i=void 0===o?"":o,a=e.storeCode,s=void 0===a?"":a,u=e.storeViewCode,c=void 0===u?"":u,d=e.websiteCode,l=void 0===d?"":d,p=e.pageType,f=void 0===p?"":p,h=e.category,y=void 0===h?"":h,g=e.units,w=void 0===g?[]:g,b=e.currentSku,x=void 0===b?"":b,_=e.cartSkus,C=void 0===_?[]:_,S=e.userViewHistorySkus,L=void 0===S?[]:S,P=e.userPurchaseHistory,I={environmentId:n,instanceId:i,storeCode:s,storeViewCode:c,websiteCode:l,pageType:f,category:y,units:w,currentSku:x,cartSkus:C,userViewHistorySkus:L,userPurchaseHistory:void 0===P?[]:P},T={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(I)},t.next=5,m()(k,T);case 5:return j=t.sent,t.next=8,j.json();case 8:return E=t.sent,O={status:j.status,data:E},t.abrupt("return",O);case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),S=function(){var t=g()(v.a.mark((function t(){var e,r,n,o,i,a,s,u,c,d,l,p,f,h,y,g,w,b,k,_,C,S,L,P,I,T,j,E=arguments;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=E.length>0&&void 0!==E[0]?E[0]:{},r=e.environmentId,n=void 0===r?"":r,o=e.instanceId,i=void 0===o?"":o,a=e.storeCode,s=void 0===a?"":a,u=e.storeViewCode,c=void 0===u?"":u,d=e.websiteCode,l=void 0===d?"":d,p=e.pageType,f=void 0===p?"":p,h=e.category,y=void 0===h?"":h,g=e.currentSku,w=void 0===g?"":g,b=e.cartSkus,k=void 0===b?[]:b,_=e.userViewHistorySkus,C=void 0===_?[]:_,S=e.userPurchaseHistory,L={environmentId:n,instanceId:i,storeCode:s,storeViewCode:c,websiteCode:l,pageType:f,category:y,currentSku:w,cartSkus:k,userViewHistorySkus:C,userPurchaseHistory:void 0===S?[]:S},P={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L)},t.next=5,m()(x,P);case 5:return I=t.sent,t.next=8,I.json();case 8:return T=t.sent,j={status:I.status,data:T},t.abrupt("return",j);case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),L=function(t){return window&&window.dsDataLayer&&window.dsDataLayer.storefrontInstanceContext?window.dsDataLayer.storefrontInstanceContext[t]:""},P=function(t){return window&&window.dsDataLayer&&window.dsDataLayer.category?window.dsDataLayer.category[t]:""},I=function(t){return window&&window.dsDataLayer&&window.dsDataLayer.page?window.dsDataLayer.page[t]:""},T=function(){return window&&window.dsDataLayer&&window.dsDataLayer.product?window.dsDataLayer.product.sku:""},j=function(){if(!window||!window.localStorage||!window.localStorage.getItem)return[];var t=JSON.parse(window.localStorage.getItem("ds-cart"));return t&&t.cart&&t.cart.items&&t.cart.items.length?t.cart.items.map((function(t){return t.product_sku})):[]},E=function(){var t=JSON.parse(window.localStorage.getItem("ds-view-history"));return t&&t.skus?t.skus:[]},O=function(){var t=JSON.parse(window.localStorage.getItem("ds-purchase-history"));return t||[]},V=r(8),H=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.environmentId,n=void 0===r?L("environmentId"):r,i=e.instanceId,a=void 0===i?L("instanceId"):i,s=e.storeCode,u=void 0===s?L("storeCode"):s,c=e.storeViewCode,d=void 0===c?L("storeViewCode"):c,l=e.websiteCode,p=void 0===l?L("websiteCode"):l,f=e.pageType,h=void 0===f?I("pageType"):f,v=e.category,y=void 0===v?P("urlPath"):v;o()(this,t),this._environmentId=n,this._instanceId=a,this._storeCode=u,this._storeViewCode=d,this._websiteCode=p,this._pageType=h,this._category=y,this.units=[]}return a()(t,[{key:"version",value:function(){return V.a}},{key:"ping",value:function(){return _()}},{key:"register",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,r=void 0===e?"":e,n=t.filter,o=void 0===n?null:n,i=t.type,a=void 0===i?"":i,s=t.search,c=void 0===s?[]:s,d=u()();c=a?l[a]:c;var f={id:d,name:r,filter:o=o?p(o,this._storeViewCode):o,search:c};return this.units.push(f),f}},{key:"unregister",value:function(t){var e=this.units.find((function(e){return e.id===t})),r=this.units.indexOf(e);return this.units.splice(r,1),e}},{key:"fetch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ids,r=void 0===e?[]:e,n=t.limit,o=void 0===n?5:n,i=t.offset,a=void 0===i?0:i,s=t.currentSku,u=void 0===s?T():s,c=t.cartSkus,d=void 0===c?j():c,l=t.userViewHistorySkus,p=void 0===l?E():l,f=t.userPurchaseHistory,h=void 0===f?O():f,v=r.length?this.units.filter((function(t){return r.includes(t.id)})):this.units,y=v.map((function(t){return{limit:o,offset:a,unitId:t.id,unitName:t.name,filterQueryString:t.filter,rankerBlended:t.search}})),g={environmentId:this._environmentId,instanceId:this._instanceId,storeCode:this._storeCode,storeViewCode:this._storeViewCode,websiteCode:this._websiteCode,pageType:this._pageType,category:this._category,units:y,currentSku:u,cartSkus:d,userViewHistorySkus:p,userPurchaseHistory:h},w=C(g);return w}},{key:"fetchPreconfigured",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentSku,r=void 0===e?T():e,n=t.cartSkus,o=void 0===n?j():n,i=t.userViewHistorySkus,a=void 0===i?E():i,s=t.userPurchaseHistory,u=void 0===s?O():s,c={environmentId:this._environmentId,instanceId:this._instanceId,storeCode:this._storeCode,storeViewCode:this._storeViewCode,websiteCode:this._websiteCode,pageType:this._pageType,category:this._category,currentSku:r,cartSkus:o,userViewHistorySkus:a,userPurchaseHistory:u},d=S(c);return d}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.template,r=void 0===e?"":e,n=t.unit,o=void 0===n?{}:n;r=r||f;var i=d.a.render(r,o);return i}}]),t}();"undefined"!=typeof window&&(window.RecommendationsClient=H);e.default=H}]);
*/var t=Object.prototype.toString,e=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(t){return"function"==typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(t,e){return null!=t&&"object"==typeof t&&e in t}var i=RegExp.prototype.test,a=/\S/;function s(t){return!function(t,e){return i.call(t,e)}(a,t)}var u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},c=/\s*/,d=/\s+/,l=/\s*=/,p=/\s*\}/,f=/#|\^|\/|>|\{|&|=|!/;function h(t){this.string=t,this.tail=t,this.pos=0}function v(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function y(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}h.prototype.eos=function(){return""===this.tail},h.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var r=e[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},h.prototype.scanUntil=function(t){var e,r=this.tail.search(t);switch(r){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=e.length,e},v.prototype.push=function(t){return new v(t,this)},v.prototype.lookup=function(t){var e,n,i,a=this.cache;if(a.hasOwnProperty(t))e=a[t];else{for(var s,u,c,d=this,l=!1;d;){if(t.indexOf(".")>0)for(s=d.view,u=t.split("."),c=0;null!=s&&c<u.length;)c===u.length-1&&(l=o(s,u[c])||(n=s,i=u[c],null!=n&&"object"!=typeof n&&n.hasOwnProperty&&n.hasOwnProperty(i))),s=s[u[c++]];else s=d.view[t],l=o(d.view,t);if(l){e=s;break}d=d.parent}a[t]=e}return r(e)&&(e=e.call(this.view)),e},y.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},y.prototype.parse=function(t,r){var o=this.templateCache,i=t+":"+(r||g.tags).join(":"),a=void 0!==o,u=a?o.get(i):void 0;return null==u&&(u=function(t,r){if(!t)return[];var o,i,a,u=!1,v=[],y=[],w=[],m=!1,b=!1,k="",x=0;function _(){if(m&&!b)for(;w.length;)delete y[w.pop()];else w=[];m=!1,b=!1}function C(t){if("string"==typeof t&&(t=t.split(d,2)),!e(t)||2!==t.length)throw new Error("Invalid tags: "+t);o=new RegExp(n(t[0])+"\\s*"),i=new RegExp("\\s*"+n(t[1])),a=new RegExp("\\s*"+n("}"+t[1]))}C(r||g.tags);for(var S,L,P,I,T,j,E=new h(t);!E.eos();){if(S=E.pos,P=E.scanUntil(o))for(var O=0,V=P.length;O<V;++O)s(I=P.charAt(O))?(w.push(y.length),k+=I):(b=!0,u=!0,k+=" "),y.push(["text",I,S,S+1]),S+=1,"\n"===I&&(_(),k="",x=0,u=!1);if(!E.scan(o))break;if(m=!0,L=E.scan(f)||"name",E.scan(c),"="===L?(P=E.scanUntil(l),E.scan(l),E.scanUntil(i)):"{"===L?(P=E.scanUntil(a),E.scan(p),E.scanUntil(i),L="&"):P=E.scanUntil(i),!E.scan(i))throw new Error("Unclosed tag at "+E.pos);if(T=">"==L?[L,P,S,E.pos,k,x,u]:[L,P,S,E.pos],x++,y.push(T),"#"===L||"^"===L)v.push(T);else if("/"===L){if(!(j=v.pop()))throw new Error('Unopened section "'+P+'" at '+S);if(j[1]!==P)throw new Error('Unclosed section "'+j[1]+'" at '+S)}else"name"===L||"{"===L||"&"===L?b=!0:"="===L&&C(P)}if(_(),j=v.pop())throw new Error('Unclosed section "'+j[1]+'" at '+E.pos);return function(t){for(var e,r=[],n=r,o=[],i=0,a=t.length;i<a;++i)switch((e=t[i])[0]){case"#":case"^":n.push(e),o.push(e),n=e[4]=[];break;case"/":o.pop()[5]=e[2],n=o.length>0?o[o.length-1][4]:r;break;default:n.push(e)}return r}(function(t){for(var e,r,n=[],o=0,i=t.length;o<i;++o)(e=t[o])&&("text"===e[0]&&r&&"text"===r[0]?(r[1]+=e[1],r[3]=e[3]):(n.push(e),r=e));return n}(y))}(t,r),a&&o.set(i,u)),u},y.prototype.render=function(t,e,r,n){var o=this.parse(t,n),i=e instanceof v?e:new v(e,void 0);return this.renderTokens(o,i,r,t,n)},y.prototype.renderTokens=function(t,e,r,n,o){for(var i,a,s,u="",c=0,d=t.length;c<d;++c)s=void 0,"#"===(a=(i=t[c])[0])?s=this.renderSection(i,e,r,n):"^"===a?s=this.renderInverted(i,e,r,n):">"===a?s=this.renderPartial(i,e,r,o):"&"===a?s=this.unescapedValue(i,e):"name"===a?s=this.escapedValue(i,e):"text"===a&&(s=this.rawValue(i)),void 0!==s&&(u+=s);return u},y.prototype.renderSection=function(t,n,o,i){var a=this,s="",u=n.lookup(t[1]);if(u){if(e(u))for(var c=0,d=u.length;c<d;++c)s+=this.renderTokens(t[4],n.push(u[c]),o,i);else if("object"==typeof u||"string"==typeof u||"number"==typeof u)s+=this.renderTokens(t[4],n.push(u),o,i);else if(r(u)){if("string"!=typeof i)throw new Error("Cannot use higher-order sections without the original template");null!=(u=u.call(n.view,i.slice(t[3],t[5]),(function(t){return a.render(t,n,o)})))&&(s+=u)}else s+=this.renderTokens(t[4],n,o,i);return s}},y.prototype.renderInverted=function(t,r,n,o){var i=r.lookup(t[1]);if(!i||e(i)&&0===i.length)return this.renderTokens(t[4],r,n,o)},y.prototype.indentPartial=function(t,e,r){for(var n=e.replace(/[^ \t]/g,""),o=t.split("\n"),i=0;i<o.length;i++)o[i].length&&(i>0||!r)&&(o[i]=n+o[i]);return o.join("\n")},y.prototype.renderPartial=function(t,e,n,o){if(n){var i=r(n)?n(t[1]):n[t[1]];if(null!=i){var a=t[6],s=t[5],u=t[4],c=i;return 0==s&&u&&(c=this.indentPartial(i,u,a)),this.renderTokens(this.parse(c,o),e,n,c)}}},y.prototype.unescapedValue=function(t,e){var r=e.lookup(t[1]);if(null!=r)return r},y.prototype.escapedValue=function(t,e){var r=e.lookup(t[1]);if(null!=r)return g.escape(r)},y.prototype.rawValue=function(t){return t[1]};var g={name:"mustache.js",version:"4.0.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){w.templateCache=t},get templateCache(){return w.templateCache}},w=new y;return g.clearCache=function(){return w.clearCache()},g.parse=function(t,e){return w.parse(t,e)},g.render=function(t,r,n,o){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+(e(i=t)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)');var i;return w.render(t,r,n,o)},g.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return u[t]}))},g.Scanner=h,g.Context=v,g.Writer=y,g}()},function(t){t.exports=JSON.parse('{"a":"1.0.6"}')},function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);t.exports=function(){return r(n),n}}else{var o=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,o=r;return[o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]]].join("")}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=m(a,r);if(s){if(s===c)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var d=u(t,e,r);if("normal"===d.type){if(n=r.done?"completed":"suspendedYield",d.arg===c)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(n="completed",r.method="throw",r.arg=d.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var c={};function d(){}function l(){}function p(){}var f={};f[o]=function(){return this};var h=Object.getPrototypeOf,v=h&&h(h(_([])));v&&v!==e&&r.call(v,o)&&(f=v);var y=p.prototype=d.prototype=Object.create(f);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function w(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var s=u(t[n],t,o);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?Promise.resolve(d.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(d).then((function(t){c.value=t,i(c)}),(function(t){return e("throw",t,i,a)}))}a(s.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function m(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,m(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,c;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function _(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return l.prototype=y.constructor=p,p.constructor=l,p[a]=l.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(w.prototype),w.prototype[i]=function(){return this},t.AsyncIterator=w,t.async=function(e,r,n,o){var i=new w(s(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(y),y[a]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=_,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";r.r(e);var n=r(4),o=r.n(n),i=r(5),a=r.n(i),s=r(6),u=r.n(s),c=r(7),d=r.n(c),l={"most-viewed":[{signal:"most_viewed",boost:100}],"most-purchased":[{signal:"most_purchased",boost:100}],"most-added-to-cart":[{signal:"most_added_to_cart",boost:100}],trending:[{signal:"trending",boost:100}],"just-for-you":[{signal:"viewed_viewed",key:"user_view_history",boost:100},{signal:"more_like_this",key:"user_view_history",boost:100}],"viewed-viewed":[{signal:"viewed_viewed",key:"current_pdp",boost:100}],"viewed-bought":[{signal:"viewed_bought",key:"current_pdp",boost:100}],"bought-bought":[{signal:"bought_bought",key:"current_pdp",boost:100}],"more-like-this":[{signal:"more_like_this",key:"current_pdp",boost:100}]},p=function(t,e){var r=t.split(":");return r[0]=r[0].replace("categories","product.".concat(e,".categories")).replace("prices","product.".concat(e,".prices")),r.join(":")},f='\n <div class="product-recommendations-unit">\n <h2 class="product-recommendations-label">Recommended Products</h2>\n\n <div class="product-recommendations">\n {{#results}}\n <div class="product-recommendation">\n <a\n class="product-recommendation-image"\n href="{{{shortest_canonical_url}}}"\n >\n <img src="{{{main_image_url}}}" alt="{{name}}">\n </a>\n\n <a\n class="product-recommendation-name"\n href="{{{shortest_canonical_url}}}"\n >\n {{name}}\n </a>\n\n <p class="product-recommendation-price">\n ${{regular_price}}\n </p>\n </div>\n {{/results}}\n </div>\n </div>\n',h=r(0),v=r.n(h),y=r(1),g=r.n(y),w=r(2),m=r.n(w),b="".concat("https://api.magento.com/recs/v1/precs","/ping"),k="".concat("https://api.magento.com/recs/v1/precs","/recommendations"),x="".concat("https://api.magento.com/recs/v1/precs","/preconfigured"),_=function(){var t=g()(v.a.mark((function t(){var e,r,n;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m()(b);case 2:return e=t.sent,t.next=5,e.text();case 5:return r=t.sent,n={status:e.status,data:r},t.abrupt("return",n);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),C=function(){var t=g()(v.a.mark((function t(){var e,r,n,o,i,a,s,u,c,d,l,p,f,h,y,g,w,b,x,_,C,S,L,P,I,T,j,E,O,V=arguments;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=V.length>0&&void 0!==V[0]?V[0]:{},r=e.environmentId,n=void 0===r?"":r,o=e.instanceId,i=void 0===o?"":o,a=e.storeCode,s=void 0===a?"":a,u=e.storeViewCode,c=void 0===u?"":u,d=e.websiteCode,l=void 0===d?"":d,p=e.pageType,f=void 0===p?"":p,h=e.category,y=void 0===h?"":h,g=e.units,w=void 0===g?[]:g,b=e.currentSku,x=void 0===b?"":b,_=e.cartSkus,C=void 0===_?[]:_,S=e.userViewHistorySkus,L=void 0===S?[]:S,P=e.userPurchaseHistory,I={environmentId:n,instanceId:i,storeCode:s,storeViewCode:c,websiteCode:l,pageType:f,category:y,units:w,currentSku:x,cartSkus:C,userViewHistorySkus:L,userPurchaseHistory:void 0===P?[]:P},T={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(I)},t.next=5,m()(k,T);case 5:return j=t.sent,t.next=8,j.json();case 8:return E=t.sent,O={status:j.status,data:E},t.abrupt("return",O);case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),S=function(){var t=g()(v.a.mark((function t(){var e,r,n,o,i,a,s,u,c,d,l,p,f,h,y,g,w,b,k,_,C,S,L,P,I,T,j,E=arguments;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=E.length>0&&void 0!==E[0]?E[0]:{},r=e.environmentId,n=void 0===r?"":r,o=e.instanceId,i=void 0===o?"":o,a=e.storeCode,s=void 0===a?"":a,u=e.storeViewCode,c=void 0===u?"":u,d=e.websiteCode,l=void 0===d?"":d,p=e.pageType,f=void 0===p?"":p,h=e.category,y=void 0===h?"":h,g=e.currentSku,w=void 0===g?"":g,b=e.cartSkus,k=void 0===b?[]:b,_=e.userViewHistorySkus,C=void 0===_?[]:_,S=e.userPurchaseHistory,L={environmentId:n,instanceId:i,storeCode:s,storeViewCode:c,websiteCode:l,pageType:f,category:y,currentSku:w,cartSkus:k,userViewHistorySkus:C,userPurchaseHistory:void 0===S?[]:S},P={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L)},t.next=5,m()(x,P);case 5:return I=t.sent,t.next=8,I.json();case 8:return T=t.sent,j={status:I.status,data:T},t.abrupt("return",j);case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),L=function(t){return window&&window.dsDataLayer&&window.dsDataLayer.storefrontInstanceContext?window.dsDataLayer.storefrontInstanceContext[t]:""},P=function(t){return window&&window.dsDataLayer&&window.dsDataLayer.category?window.dsDataLayer.category[t]:""},I=function(t){return window&&window.dsDataLayer&&window.dsDataLayer.page?window.dsDataLayer.page[t]:""},T=function(){return window&&window.dsDataLayer&&window.dsDataLayer.product?window.dsDataLayer.product.sku:""},j=function(){if(!window||!window.localStorage||!window.localStorage.getItem)return[];var t=JSON.parse(window.localStorage.getItem("ds-cart"));return t&&t.cart&&t.cart.items&&t.cart.items.length?t.cart.items.map((function(t){return t.product_sku})):[]},E=function(){var t=JSON.parse(window.localStorage.getItem("ds-view-history"));return t&&t.skus?t.skus:[]},O=function(){var t=JSON.parse(window.localStorage.getItem("ds-purchase-history"));return t||[]},V=r(8),H=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.environmentId,n=void 0===r?L("environmentId"):r,i=e.instanceId,a=void 0===i?L("instanceId"):i,s=e.storeCode,u=void 0===s?L("storeCode"):s,c=e.storeViewCode,d=void 0===c?L("storeViewCode"):c,l=e.websiteCode,p=void 0===l?L("websiteCode"):l,f=e.pageType,h=void 0===f?I("pageType"):f,v=e.category,y=void 0===v?P("urlPath"):v;o()(this,t),this._environmentId=n,this._instanceId=a,this._storeCode=u,this._storeViewCode=d,this._websiteCode=p,this._pageType=h,this._category=y,this.units=[]}return a()(t,[{key:"version",value:function(){return V.a}},{key:"ping",value:function(){return _()}},{key:"register",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,r=void 0===e?"":e,n=t.filter,o=void 0===n?null:n,i=t.type,a=void 0===i?"":i,s=t.search,c=void 0===s?[]:s,d=u()();c=a?l[a]:c;var f={id:d,name:r,filter:o=o?p(o,this._storeViewCode):o,search:c};return this.units.push(f),f}},{key:"unregister",value:function(t){var e=this.units.find((function(e){return e.id===t})),r=this.units.indexOf(e);return this.units.splice(r,1),e}},{key:"fetch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ids,r=void 0===e?[]:e,n=t.limit,o=void 0===n?5:n,i=t.offset,a=void 0===i?0:i,s=t.currentSku,u=void 0===s?T():s,c=t.cartSkus,d=void 0===c?j():c,l=t.userViewHistorySkus,p=void 0===l?E():l,f=t.userPurchaseHistory,h=void 0===f?O():f,v=r.length?this.units.filter((function(t){return r.includes(t.id)})):this.units,y=v.map((function(t){return{limit:o,offset:a,unitId:t.id,unitName:t.name,filterQueryString:t.filter,rankerBlended:t.search}})),g={environmentId:this._environmentId,instanceId:this._instanceId,storeCode:this._storeCode,storeViewCode:this._storeViewCode,websiteCode:this._websiteCode,pageType:this._pageType,category:this._category,units:y,currentSku:u,cartSkus:d,userViewHistorySkus:p,userPurchaseHistory:h},w=C(g);return w}},{key:"fetchPreconfigured",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentSku,r=void 0===e?T():e,n=t.cartSkus,o=void 0===n?j():n,i=t.userViewHistorySkus,a=void 0===i?E():i,s=t.userPurchaseHistory,u=void 0===s?O():s,c={environmentId:this._environmentId,instanceId:this._instanceId,storeCode:this._storeCode,storeViewCode:this._storeViewCode,websiteCode:this._websiteCode,pageType:this._pageType,category:this._category,currentSku:r,cartSkus:o,userViewHistorySkus:a,userPurchaseHistory:u},d=S(c);return d}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.template,r=void 0===e?"":e,n=t.unit,o=void 0===n?{}:n;r=r||f;var i=d.a.render(r,o);return i}}]),t}();"undefined"!=typeof window&&(window.RecommendationsClient=H);e.default=H}]);
{
"name": "@magento/recommendations-js-sdk",
"version": "1.0.5",
"version": "1.0.6",
"description": "📚 JavaScript library for retrieving and displaying Magento product recommendations.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -83,3 +83,3 @@ # Product Recommendations SDK

| `name` | The user-specified name of the recommendation unit |
| `type` | Options: `most-viewed`, `most-purchased`, `most-added-to-cart`, `just-for-you`, `viewed-viewed`, `viewed-bought`, `bought-bought`, and `more-like-this` |
| `type` | Options: `most-viewed`, `most-purchased`, `most-added-to-cart`, `trending`, `just-for-you`, `viewed-viewed`, `viewed-bought`, `bought-bought`, and `more-like-this` |
| `filter` | String used to filter the results. If you are setting a filter based on price, you must use the base currency specified for your store. Currency conversion is currently not supported when filtering |

@@ -86,0 +86,0 @@ | `search` | Defines the search criteria for your custom recommendation. This input contains the `signal` attribute. In non-custom recommendations, the values specified in this attribute are the types defined above. However, in a custom recommendation, the value is `"query"`. `search` might also contain a `key` attribute, such as `"categories:(159 OR 377)"`. The `key` attribute is not required by all custom recommendations. Some types require you to be on a product page, which would mean you know the current SKU. Other types are more broad, and do not require you to have any specific filter data as they are site wide. Site wide types do not require the `key` attribute. Possible `key` values are: `user_purchase_history`, `cart`, `current_pdp`, `user_view_history`, and `<custom query>` |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc