!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.loadFeatures=n():e.loadFeatures=n()}(self,(function(){return function(){var e={828:function(e){var n,t,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{t="function"==typeof clearTimeout?clearTimeout:i}catch(e){t=i}}();var c,a=[],s=!1,f=-1;function l(){s&&c&&(s=!1,c.length?a=c.concat(a):f=-1,a.length&&d())}function d(){if(!s){var e=u(l);s=!0;for(var n=a.length;n;){for(c=a,a=[];++f1)for(var t=1;te.length)&&(n=e.length);for(var t=0,r=new Array(n);t-1?i():t&&g.indexOf(t)>-1?u():t?c():(t=document.createElement("script"),Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),null===t.getAttribute("defer")&&t.setAttribute("defer",""),t.src=r,t.crossOrigin="anonymous",c(),function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return!e.match(/Chrome/gi)&&!!e.match(/Safari/gi)}()?document.head.appendChild(e):window.requestAnimationFrame((function(){document.head.appendChild(e)}))}(t))}function b(){}function x(e){if(!e||"string"!=typeof e.name||"string"!=typeof e.version)throw function(e){return new Error('Features should be defined as `{ name: "name", version: "version" }`. Received: '.concat(JSON.stringify(e)))}(e)}function E(e,t){var r=[],o=function(e,n){return e.reduce((function(e,t){try{var r=l(t);e.push([r,t])}catch(e){n.push(e)}return e}),[])}(e,r);return function(e,t,r){var o=e.length;o?e.forEach((function(e){w(n()(e,1)[0],(function(e,n){e&&t.push(e),0==--o&&r(t)}))})):r(t)}(o,r,(function(e){var n=e.length?e:null;t(n)}))}f({name:"consent-tracking-api",version:"0.1",hasLegacy:!0}),f({name:"customer-account-api",version:"0.1",hasLegacy:!0}),f({name:"customer-account-api",version:"0.2",hasLegacy:!0}),f({name:"customer-account-api",version:"0.3",hasLegacy:!0}),f({name:"component-toast",version:"0.1",hasLegacy:!0}),f({name:"component-quick-add-modal",version:"0.1",hasLegacy:!0}),f({name:"order-tracking-api",version:"0.1",hasLegacy:!0}),f({name:"risk-api",version:"0.1",hasLegacy:!0}),m="loadFeatures",v=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;if(Array.isArray(e))return e.forEach(x),E(e,n);throw o(e)},window.Shopline=window.Shopline||{},window.Shopline[m]=v}(),r}()}));