/*! For license information please see main.js.LICENSE.txt */ (()=>{var t,e,r,n,o={295:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;ra});const a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,n=[{key:"getInstance",value:function(){return t.instance||(t.instance=new t),t.instance}}],(r=[{key:"setVisitsApiUrl",value:function(e){t.visitsApiUrl=e}},{key:"setApiUrl",value:function(e){t.apiUrl=e}},{key:"setSsrApiUrl",value:function(e){t.ssrApiUrl=e}},{key:"setSsrMainWSUrl",value:function(e){t.ssrMainWSUrl=e}},{key:"setSsrFallbackWSUrl",value:function(e){t.ssrFallbackWSUrl=e}},{key:"getSsrMainWSUrl",value:function(){return t.ssrMainWSUrl}},{key:"getSsrFallbackWSUrl",value:function(){return t.ssrFallbackWSUrl}},{key:"getVisitsApiUrl",value:function(){return t.visitsApiUrl}},{key:"getApiUrl",value:function(){return t.apiUrl}},{key:"getSsrApiUrl",value:function(){return t.ssrApiUrl}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}().getInstance()},366:(t,e,r)=>{"use strict";r.r(e),r.d(e,{handlePoll:()=>c});var n=r(6886);function o(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function c(r,n,o,a){var c=n&&n.prototype instanceof s?n:s,f=Object.create(c.prototype);return i(f,"_invoke",function(r,n,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,a=0,c=t,p.n=r,u}};function y(r,n){for(a=r,c=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,a=0))}if(o||r>1)return u;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),a=f,c=v;(e=a<2?t:c)||!l;){i||(a?a<3?(a>1&&(p.n=-1),y(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=p.n<0)?c:r.call(n,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(r,o,a),!0),f}var u={};function s(){}function f(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(i(e={},n,function(){return this}),e),y=l.prototype=s.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,i(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,i(y,"constructor",l),i(l,"constructor",f),f.displayName="GeneratorFunction",i(l,a,"GeneratorFunction"),i(y),i(y,a,"Generator"),i(y,n,function(){return this}),i(y,"toString",function(){return"[object Generator]"}),(o=function(){return{w:c,m:v}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}i=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function a(e,r){i(t,e,function(t){return this._invoke(e,r,t)})}a("next",0),a("throw",1),a("return",2)}},i(t,e,r,n)}function a(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function c(t,e,r){return u.apply(this,arguments)}function u(){var t;return t=o().m(function t(e,i,a){var c;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,(0,n.gU)(e,i,a);case 1:if(c=t.v){t.n=2;break}return t.a(2,Promise.reject("NO_POLL"));case 2:return t.n=3,Promise.all([r.e(689),r.e(87),r.e(333),r.e(312)]).then(r.bind(r,7829));case 3:(0,t.v.default)(e,i,c),t.n=5;break;case 4:if(t.p=4,"NO_POLL"!==t.v){t.n=5;break}return t.a(2);case 5:return t.a(2)}},t,null,[[0,4]])}),u=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)})},u.apply(this,arguments)}},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},557:(t,e,r)=>{"use strict";r.d(e,{r2:()=>j,xM:()=>w});var n=r(2373),o=r(7070),i=r(7958),a=r(7817),c=r(2331);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof c?n:c,s=Object.create(u.prototype);return f(s,"_invoke",function(r,n,o){var i,c,u,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,c=0,u=t,p.n=r,a}};function y(r,n){for(c=r,u=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,c=0))}if(o||r>1)return a;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),c=f,u=v;(e=c<2?t:u)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(l=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),s}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(f(e={},n,function(){return this}),e),y=l.prototype=c.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,f(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return u.prototype=l,f(y,"constructor",l),f(l,"constructor",u),u.displayName="GeneratorFunction",f(l,o,"GeneratorFunction"),f(y),f(y,o,"Generator"),f(y,n,function(){return this}),f(y,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m:v}})()}function f(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}f=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){f(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},f(t,e,r,n)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&void 0!==p[1]&&p[1],c.V.log("Begin handle auto-tracking"),t.p=1,t.n=2,(0,n.oR)(e);case 2:o=t.v,c.V.log("Autotracking settings: ".concat(JSON.stringify(o,null,2))),t.n=4;break;case 3:return t.p=3,l=t.v,c.V.error(JSON.stringify(l)),t.a(2);case 4:i=document.getElementsByTagName("body")[0],a={attributes:!0,childList:!0,subtree:!0},f=function(t){t.some(function(t){return"childList"===t.type})&&u()},(u=function(){var t;c.V.log("Adding event listeners to tracked elements");var e,n,i=(e=Object.keys(o),n=[],e.forEach(function(t){var e=document.getElementsByTagName(t);n=[].concat(h(n),h(e))}),n),a=Array.from(document.querySelectorAll("div[class^=StylableButton]"));null==i||null===(t=i.filter(P))||void 0===t||null===(t=t.filter(function(t){return"hidden"!==t.getAttribute("type")}))||void 0===t||t.forEach(function(t){_(t,r,o)}),null==a||a.filter(P).forEach(function(t){_(t,r,o)})})(),new MutationObserver(f).observe(i,a);case 5:return t.a(2)}},t,null,[[1,3]])}),O=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){d(i,n,o,a,c,"next",t)}function c(t){d(i,n,o,a,c,"throw",t)}a(void 0)})},O.apply(this,arguments)}function S(t){return t.toLowerCase().substring(2)}var j=function(t){return Object.entries(t).reduce(function(t,e){var r=v(e,2),n=r[0],o=r[1],i=T(o,n);return p(p({},t),{},y({},n.toLowerCase(),i))},{})},T=function(t,e){return Object.entries(t).map(function(t){var r=v(t,2),n=r[0];return{eventAction:n,isActive:r[1],eventType:S(n),eventLabelProperty:E(e)}})};function E(t){return t===g.button?"textContent":"name"}function P(t){return[i.XV,i.m3,i.Gj].every(function(e){var r=document.getElementById(e);return!(r&&r.contains(t))})}function _(t,e,r){"1"!==t.getAttribute("va-auto-track")&&(t.setAttribute("va-auto-track","1"),!e&&function(t,e){var r=t.tagName.toLowerCase(),n=r;if(r===g.input){var i=t.type;"radio"===i&&(n=g.radiobutton),i===g.checkbox&&(n=g.checkbox)}"div"===r&&(n=g.button),function(t,e,r){r.forEach(function(r){r.isActive&&t.addEventListener(r.eventType,function(){var n=t[r.eventLabelProperty]||e;c.V.log("Event triggered: ".concat(r.eventType," on ").concat(e)),c.V.log("va(\n 'send',\n ".concat(o.w.AUTO_EVENT,",\n ").concat(e,",\n ").concat(r.eventAction.toLowerCase(),",\n ").concat(n,",\n '1',\n undefined,\n ").concat((0,a.c)(t),"\n )")),window.va("send",o.w.AUTO_EVENT,e,r.eventAction.toLowerCase(),n,"1",void 0,(0,a.c)(t))})})}(t,n,e[n])}(t,r))}},922:(t,e,r)=>{"use strict";function n(t){var e=window.location.href;return setInterval(function(){e!==window.location.href&&(e=window.location.href,t(window.location.href))},200)}function o(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}function i(){var t=document.currentScript;if(t&&t instanceof HTMLScriptElement)return t.src;var e=document.getElementsByTagName("script");return e[e.length-1].src}r.d(e,{Ez:()=>o,We:()=>n,lN:()=>i})},1113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},1601:t=>{"use strict";t.exports=function(t){return t[1]}},2331:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;ra});var a=new(function(){return t=function t(){var e,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,(r=i(r="logLevel"))in e?Object.defineProperty(e,r,{value:0,enumerable:!0,configurable:!0,writable:!0}):e[r]=0,this.logLevel=Number(localStorage.getItem("visa-worker-log-level"))},e=[{key:"messageTemplate",value:function(t){var e=new Date,r=e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+":"+e.getMilliseconds();return"VISA ".concat(t," ").concat(r," ")}},{key:"error",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n=1&&(t=console).error.apply(t,[this.messageTemplate("ERROR")].concat(r))}},{key:"warn",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n=2&&(t=console).warn.apply(t,[this.messageTemplate("WARN")].concat(r))}},{key:"log",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n=3&&(t=console).log.apply(t,[this.messageTemplate("LOG")].concat(r))}},{key:"debug",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n{"use strict";r.d(e,{Ai:()=>g,oR:()=>h,u4:()=>b});var n=r(557),o=r(6841),i=r(295),a=r(6012),c=r(6720);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function f(t){for(var e=1;e3?(o=v===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,c=0))}if(o||r>1)return a;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),c=f,u=v;(e=c<2?t:u)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(l=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(y(e={},n,function(){return this}),e),l=s.prototype=c.prototype=Object.create(f);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,y(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return u.prototype=s,y(l,"constructor",s),y(s,"constructor",u),u.displayName="GeneratorFunction",y(s,o,"GeneratorFunction"),y(l),y(l,o,"Generator"),y(l,n,function(){return this}),y(l,"toString",function(){return"[object Generator]"}),(p=function(){return{w:i,m:v}})()}function y(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}y=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){y(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},y(t,e,r,n)}function v(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function d(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){v(i,n,o,a,c,"next",t)}function c(t){v(i,n,o,a,c,"throw",t)}a(void 0)})}}var h=function(){var t=d(p().m(function t(e){var r,c,u;return p().w(function(t){for(;;)switch(t.n){case 0:return r=(0,o.tb)(),c="".concat(i.A.getVisitsApiUrl(),"/api/").concat(r,"/websites/").concat(e,"/autotracking-settings"),t.n=1,(0,a.Jt)(c);case 1:if((u=t.v).success){t.n=2;break}throw new Error(u.error);case 2:return t.a(2,(0,n.r2)(u.payload))}},t)}));return function(e){return t.apply(this,arguments)}}();function b(t,e,r,n,o){return m.apply(this,arguments)}function m(){return(m=d(p().m(function t(e,r,n,c,u){var s,l,y;return p().w(function(t){for(;;)switch(t.n){case 0:return s=(0,o.tb)(),l="".concat(i.A.getVisitsApiUrl(),"/api/").concat(s,"/custom-events"),y=f({pageUrl:c,sessionKey:r,visitKey:n,websiteKey:e},u),t.n=1,(0,a.bE)(l,y);case 1:return t.a(2,t.v)}},t)}))).apply(this,arguments)}function g(t){return w.apply(this,arguments)}function w(){return(w=d(p().m(function t(e){var r,n,u,s,f;return p().w(function(t){for(;;)switch(t.n){case 0:return r=(0,o.tb)(),n="".concat(i.A.getVisitsApiUrl(),"/api/").concat(r,"/outgoing-traffic"),t.n=1,(0,c.Z)();case 1:return u=t.v,s=u.websiteId,f={websiteKey:s,sessionKey:u["".concat(s,"-skey")],visitId:u["".concat(s,"-vi")],outgoingUrl:e,pageUrl:window.location.href},t.a(2,(0,a.bE)(n,f,{keepalive:!0}))}},t)}))).apply(this,arguments)}},2517:(t,e,r)=>{"use strict";r.r(e),r.d(e,{run:()=>j});var n,o=r(2331),i=r(557),a=r(7212),c=r(4276),u=r(9978),s=r(6841),f=r(3548),l=r(366),p=r(4217),y=r(5024);function v(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof c?n:c,s=Object.create(u.prototype);return d(s,"_invoke",function(r,n,o){var i,c,u,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,c=0,u=t,p.n=r,a}};function y(r,n){for(c=r,u=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,c=0))}if(o||r>1)return a;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),c=f,u=v;(e=c<2?t:u)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(l=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(d(e={},n,function(){return this}),e),l=s.prototype=c.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,d(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return u.prototype=s,d(l,"constructor",s),d(s,"constructor",u),u.displayName="GeneratorFunction",d(s,o,"GeneratorFunction"),d(l),d(l,o,"Generator"),d(l,n,function(){return this}),d(l,"toString",function(){return"[object Generator]"}),(v=function(){return{w:i,m:p}})()}function d(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}d=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){d(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},d(t,e,r,n)}function h(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function b(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){h(i,n,o,a,c,"next",t)}function c(t){h(i,n,o,a,c,"throw",t)}a(void 0)})}}function m(){(0,s.FH)(),(0,s.oe)(),(0,s.Bv)(),(0,s.dL)()}function g(t){return w.apply(this,arguments)}function w(){return(w=b(v().m(function t(e){return v().w(function(t){for(;;)switch(t.n){case 0:if(!e){t.n=2;break}return t.n=1,(0,u.Z)(e);case 1:return o.V.log("Heatmap screenshot was taken"),t.a(2,!0);case 2:return o.V.log("Heatmap screenshot was not taken"),t.a(2,!1)}},t)}))).apply(this,arguments)}function O(t,e){return S.apply(this,arguments)}function S(){return(S=b(v().m(function t(e,r){var u,y,d,h,b,m,w,O,S,j,T,E,P,_,k,A,x;return v().w(function(t){for(;;)switch(t.p=t.n){case 0:if(o.V.debug("Received onMessage: ".concat(JSON.stringify({event:e,websiteId:r}))),e.data){t.n=1;break}return t.a(2);case 1:u=e.data,y=u.sessionId,d=u.visitorKey,h=u.visitKey,b=u.url,m=u.websiteSettings,w=u.visitResponse,k=e.data.functionName,t.n="stopSessionRecording"===k?2:"VISIT_SAVED"===k?3:"RETAKE_SCREENSHOT"===k?12:"SHOW_AUTO_TRACKING_LIVE_PREVIEW"===k?13:15;break;case 2:return o.V.log("Message: stop session recording"),n&&(n.stop(),n=void 0),t.a(3,16);case 3:return o.V.log("Message: visit saved"),(0,s.sL)(r,{vk:d,vi:h,skey:y,sid:y}),n&&n.stop(),t.p=4,t.n=5,(0,p.L)({websiteId:r,sessionId:y,url:b,visitId:h,visitorId:d,settings:m.ssr,ssrv2:null==w?void 0:w.ssrv2});case 5:n=t.v,t.n=7;break;case 6:t.p=6,A=t.v,o.V.error(A);case 7:return(0,l.handlePoll)(r,d,b),O="va",S=window[O],j=null==S?void 0:S.v,T=new c.A(r,y,h,b,m,j),t.p=8,t.n=9,T.processCommandQueue();case 9:window[O]=T.process.bind(T),t.n=11;break;case 10:t.p=10,x=t.v,o.V.error(JSON.stringify(x));case 11:return m.eventAutoTracking&&((0,f.Z)(r),(0,i.xM)(r)),t.a(3,16);case 12:return o.V.log("Message: retake screenshot"),E=e.data,P=E.heatmapId,_=E.deviceType,g({heatmapId:P,deviceType:_}),t.a(3,16);case 13:return o.V.log("Message: show auto-tracking live preview"),(0,i.xM)(r,!0),t.n=14,(0,a.O)();case 14:return t.a(3,16);case 15:return o.V.log("Message was ignored"),t.a(3,16);case 16:return t.a(2)}},t,null,[[8,10],[4,6]])}))).apply(this,arguments)}function j(t){return T.apply(this,arguments)}function T(){return(T=b(v().m(function t(e){var r,n,i,a;return v().w(function(t){for(;;)switch(t.n){case 0:if(o.V.log("Begin flow for wix"),m(),a=(0,s.fT)(e,"websiteId"),null===(r=window.vaWorkerTrackedWebsites)||void 0===r||!r.includes(a)){t.n=1;break}return t.a(2);case 1:if(window.vaWorkerTrackedWebsites=null!==(n=window.vaWorkerTrackedWebsites)&&void 0!==n?n:[],!(0,y.KS)(a)){t.n=2;break}return t.a(2);case 2:o.V.log("Adding listeners for message events"),window.addEventListener("message",function(t){return O(t,a)}),null===(i=window.vaWorkerTrackedWebsites)||void 0===i||i.push(a);case 3:return t.a(2)}},t)}))).apply(this,arguments)}o.V.log("Handling heatmap screenshot mode")},2628:(t,e,r)=>{"use strict";r.r(e),r.d(e,{onVisitSucceeded:()=>K,run:()=>W});var n=r(4276),o=r(6841),i=r(9978);function a(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var a=n&&n.prototype instanceof s?n:s,f=Object.create(a.prototype);return c(f,"_invoke",function(r,n,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,a=0,c=t,p.n=r,u}};function y(r,n){for(a=r,c=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,a=0))}if(o||r>1)return u;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),a=f,c=v;(e=a<2?t:c)||!l;){i||(a?a<3?(a>1&&(p.n=-1),y(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=p.n<0)?c:r.call(n,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),f}var u={};function s(){}function f(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(c(e={},n,function(){return this}),e),y=l.prototype=s.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,c(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,c(y,"constructor",l),c(l,"constructor",f),f.displayName="GeneratorFunction",c(l,o,"GeneratorFunction"),c(y),c(y,o,"Generator"),c(y,n,function(){return this}),c(y,"toString",function(){return"[object Generator]"}),(a=function(){return{w:i,m:v}})()}function c(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}c=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){c(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},c(t,e,r,n)}function u(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function s(t){return f.apply(this,arguments)}function f(){var t;return t=a().m(function t(e){return a().w(function(t){for(;;)switch(t.n){case 0:if(!e){t.n=2;break}return t.n=1,(0,i.Z)(e);case 1:return t.a(2,!0);case 2:return t.a(2,!1)}},t)}),f=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,c,"next",t)}function c(t){u(i,n,o,a,c,"throw",t)}a(void 0)})},f.apply(this,arguments)}var l=r(2331),p=r(5024),y=r(922),v=r(557),d=r(7212),h=r(4217),b=r(8922),m=r.n(b);function g(){return{height:w(),width:O()}}function w(){for(var t=0,e=[240,256,320,384,480,640,720,768,800,900,960,1024,1080,1280,1360,1440,1600,1620,1680,1920,2048,2160,2560,3440,4096,4320,4800,8192];t3?(o=v===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,c=0))}if(o||r>1)return a;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),c=f,u=v;(e=c<2?t:u)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(l=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(E(e={},n,function(){return this}),e),l=s.prototype=c.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,E(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return u.prototype=s,E(l,"constructor",s),E(s,"constructor",u),u.displayName="GeneratorFunction",E(s,o,"GeneratorFunction"),E(l),E(l,o,"Generator"),E(l,n,function(){return this}),E(l,"toString",function(){return"[object Generator]"}),(T=function(){return{w:i,m:p}})()}function E(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}E=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){E(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},E(t,e,r,n)}function P(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function _(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){P(i,n,o,a,c,"next",t)}function c(t){P(i,n,o,a,c,"throw",t)}a(void 0)})}}function k(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=Array(e);r3?(o=v===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,c=0))}if(o||r>1)return a;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),c=f,u=v;(e=c<2?t:u)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(l=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(U(e={},n,function(){return this}),e),l=s.prototype=c.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,U(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return u.prototype=s,U(l,"constructor",s),U(s,"constructor",u),u.displayName="GeneratorFunction",U(s,o,"GeneratorFunction"),U(l),U(l,o,"Generator"),U(l,n,function(){return this}),U(l,"toString",function(){return"[object Generator]"}),(F=function(){return{w:i,m:p}})()}function U(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}U=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){U(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},U(t,e,r,n)}function R(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function C(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){R(i,n,o,a,c,"next",t)}function c(t){R(i,n,o,a,c,"throw",t)}a(void 0)})}}function D(t){return M.apply(this,arguments)}function M(){return(M=C(F().m(function t(e){var r,n,o;return F().w(function(t){for(;;)switch(t.p=t.n){case 0:return l.V.log("Begin initialize worker"),r=window._visaSettings[e]?window._visaSettings[e]:window._visaSettings,n=new x(e,{platform:r.a,key:r.s,workerVersion:r.v,commandFnName:r.t,maxPrivacyMode:r.f}),t.p=1,t.n=2,n.init();case 2:return t.a(2,n);case 3:t.p=3,o=t.v,l.V.error("Could not initialize worker"),l.V.error(JSON.stringify(o));case 4:return t.a(2)}},t,null,[[1,3]])}))).apply(this,arguments)}function W(t){return B.apply(this,arguments)}function B(){return B=C(F().m(function t(e){var r,a,c,u,f,h,b,m,g,w,O,S,j,T,E,P,_;return F().w(function(t){for(;;)switch(t.p=t.n){case 0:if(l.V.log("Begin flow for standalone"),(0,o.qP)(),u=(0,o.fT)(e,"s"),document.cookie.includes("canary=always")&&(0,I.Bh)(I.nW.success,"Release candidate version is active!"),null===(r=window.vaWorkerTrackedWebsites)||void 0===r||!r.includes(u)){t.n=1;break}throw new Error("Website already tracked");case 1:if(window.vaWorkerTrackedWebsites=null!==(a=window.vaWorkerTrackedWebsites)&&void 0!==a?a:[],null===(c=window.vaWorkerTrackedWebsites)||void 0===c||c.push(u),(0,G.Z)(u),!(0,p.KS)(u)){t.n=2;break}return t.a(2);case 2:if(!(0,y.Ez)("visa_auto_track_live_preview")){t.n=5;break}if(l.V.log("Handling auto-tracking and auto-tracking settings"),window.opener||"localhost"===window.location.hostname){t.n=3;break}return l.V.warn("Window opener not defined"),t.a(2);case 3:return(0,v.xM)(u,!0),t.n=4,(0,d.O)(!0);case 4:return t.a(2,t.v);case 5:return l.V.log("Handling heatmap screenshot mode"),f=(0,i.N)(),t.n=6,s(f);case 6:if(!t.v){t.n=7;break}return l.V.log("Heatmap screenshot was taken"),t.a(2);case 7:if("true"!==localStorage.getItem((0,o.z2)(u))){t.n=9;break}if(l.V.log("Visit ignored due to opt-out parameter set in localStorage."),h=window._visaSettings[u].t){t.n=8;break}return t.a(2);case 8:return window[h]=function(){(arguments.length<=0?void 0:arguments[0])===n.L.TOGGLE_OPT_STATUS&&(localStorage.removeItem((0,o.z2)(u)),(0,I.Bh)(I.nW.success,L.QX.optIn))},t.a(2);case 9:return t.n=10,D(u);case 10:if(b=t.v){t.n=11;break}return t.a(2);case 11:if(m=window.location.href,b.shouldTrack(m)){t.n=12;break}return l.V.log("Visit is not being tracked"),b.handleEvent(m),t.a(2);case 12:return g=null,(0,y.We)(function(){var t=C(F().m(function t(e){var r,n,o;return F().w(function(t){for(;;)switch(t.n){case 0:if(u){t.n=1;break}throw new Error("Missing website key");case 1:return g&&g.setUrl(e),t.n=2,b.triggerVisit(e,null!==(r=window.commonConfig)&&void 0!==r&&r.bsi?{sessionId:window.commonConfig.bsi}:void 0);case 2:n=t.v,g&&(g.setSessionKey(n.skey),g.setVisitKey(n.vi)),o=b.getWebsiteSettings(),K(n,u,e,o.ssr,!0);case 3:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()),t.p=13,t.n=14,b.triggerVisit(m,null!==(w=window.commonConfig)&&void 0!==w&&w.bsi?{sessionId:window.commonConfig.bsi}:void 0);case 14:if(O=t.v,S=b.getCommandFnName(),j=b.getWebsiteSettings(),!S){t.n=18;break}return T=window[S],E=null==T?void 0:T.v,g=new n.A(u,O.skey,O.vi,m,j,E),t.p=15,t.n=16,g.processCommandQueue();case 16:window[S]=g.process.bind(g),t.n=18;break;case 17:t.p=17,P=t.v,l.V.error(JSON.stringify(P));case 18:return t.n=19,K(O,u,m,j.ssr,!0);case 19:j.eventAutoTracking&&(0,v.xM)(u),t.n=21;break;case 20:t.p=20,_=t.v,l.V.error(JSON.stringify(_));case 21:return t.a(2)}},t,null,[[15,17],[13,20]])})),B.apply(this,arguments)}function K(t,e,r,n){return H.apply(this,arguments)}function H(){return H=C(F().m(function t(e,n,i,a){var c,u,s,f,p,y,v,d,b=arguments;return F().w(function(t){for(;;)switch(t.p=t.n){case 0:if(c=b.length>4&&void 0!==b[4]&&b[4],l.V.log("onVisitSucceeded"),(0,o.sL)(n,e),u=[(0,h.L)({websiteId:n,url:i,settings:a,sessionId:e.skey,visitId:e.vi,visitorId:e.vk,ssrv2:e.ssrv2})],!c){t.n=2;break}return t.n=1,Promise.resolve().then(r.bind(r,366));case 1:s=t.v,f=s.handlePoll,u.push(f(n,e.vk,i));case 2:return t.p=2,l.V.log("Begin visit succeeded"),t.n=3,Promise.all(u);case 3:p=t.v,y=N(p,2),v=y[0],y[1],window.addEventListener("beforeunload",function(){null==v||v.stop()}),t.n=5;break;case 4:return t.p=4,d=t.v,l.V.error("SSRWorker error: ".concat(d)),t.a(2);case 5:return t.a(2)}},t,null,[[2,4]])})),H.apply(this,arguments)}},2780:(t,e,r)=>{"use strict";r.d(e,{Bh:()=>o,nW:()=>n});var n=function(t){return t.error="error",t.success="success",t}({}),o=function(t,e){var r=document.createElement("div");r.classList.add("visa-notification"),t===n.error?r.classList.add("visa-error"):r.classList.add("visa-success"),r.appendChild(t===n.error?c():u()),r.appendChild(a()),r.appendChild(i(e)),document.body.appendChild(r)},i=function(t){var e=document.createElement("p");return e.classList.add("visa-description"),e.innerText=t,e},a=function(){var t=document.createElement("button");return t.classList.add("visa-close-btn"),t.innerHTML='',t.onclick=function(){var t;null===(t=document.querySelector(".visa-notification"))||void 0===t||t.remove()},t},c=function(){var t=document.createElement("div");return t.innerHTML="\n ",t},u=function(){var t=document.createElement("div");return t.innerHTML="\n \n ",t}},3548:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n=r(6880),o=r(557),i=r(2373),a=r(2331),c=r(7212);function u(t){window.addEventListener(n.W.RETRY_AUTOTRACKING_PRESSED,function(){(0,o.xM)(t,!0),(0,c.O)(!1)}),document.addEventListener("click",function(t){var e=t.target.closest("a");if(e){var r=e.href;try{(0,i.Ai)(r)}catch(t){a.V.error("Failed to send outgoing traffic event: ".concat(JSON.stringify(t,null,2)))}}},{capture:!0})}},4217:(t,e,r)=>{"use strict";r.d(e,{L:()=>v});var n=r(2331),o=r(6012),i=r(6841),a=r(295);function c(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof s?n:s,f=Object.create(c.prototype);return u(f,"_invoke",function(r,n,o){var i,c,u,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,c=0,u=t,p.n=r,a}};function y(r,n){for(c=r,u=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,c=0))}if(o||r>1)return a;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),c=f,u=v;(e=c<2?t:u)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(l=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),f}var a={};function s(){}function f(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(u(e={},n,function(){return this}),e),y=l.prototype=s.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,u(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,u(y,"constructor",l),u(l,"constructor",f),f.displayName="GeneratorFunction",u(l,o,"GeneratorFunction"),u(y),u(y,o,"Generator"),u(y,n,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),(c=function(){return{w:i,m:v}})()}function u(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}u=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){u(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},u(t,e,r,n)}function s(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function f(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,c,"next",t)}function c(t){s(i,n,o,a,c,"throw",t)}a(void 0)})}}function l(t,e,r){return p.apply(this,arguments)}function p(){return(p=f(c().m(function t(e,r,i){var a;return c().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.a(2,(0,o.CN)(e,r,i));case 1:if(t.p=1,"NO_RECORDING"!==(a=t.v).message){t.n=2;break}return n.V.error(a.message),t.a(2);case 2:return n.V.error(JSON.stringify(a)),t.a(2)}},t,null,[[0,1]])}))).apply(this,arguments)}var y=null;function v(t){return d.apply(this,arguments)}function d(){return(d=f(c().m(function t(e){return c().w(function(t){for(;;)switch(t.n){case 0:if(!localStorage.getItem("visa-use-ssrworker-v2")&&!e.ssrv2){t.n=1;break}return t.a(2,h({websiteId:e.websiteId,sessionId:e.sessionId,visitorId:e.visitorId,visitId:e.visitId,page:e.url,settings:e.settings}));case 1:return t.a(2,m(e.websiteId,e.sessionId,e.url));case 2:return t.a(2)}},t)}))).apply(this,arguments)}function h(t){return b.apply(this,arguments)}function b(){return(b=f(c().m(function t(e){var n,o,u,s,f,l,p,v,d;return c().w(function(t){for(;;)switch(t.p=t.n){case 0:return n=e.websiteId,o=e.sessionId,u=e.visitId,e.visitorId,s=e.page,f=e.settings,y&&y.stop(),t.p=1,t.n=2,r.e(724).then(r.bind(r,7516));case 2:return p=t.v,v=p.SSRWorkerV2,y=new v({websiteId:n,recordingId:u,sessionId:o,page:s,visitId:u,options:{obfuscateText:null!==(l=null==f?void 0:f.isTextObfuscationRequired)&&void 0!==l&&l,mainWebsocketUrl:a.A.getSsrMainWSUrl(),fallbackWebsocketUrl:a.A.getSsrFallbackWSUrl()}}),t.n=3,(0,i.$J)();case 3:return t.n=4,y.start();case 4:return t.a(2,y);case 5:throw t.p=5,d=t.v,y&&y.stop(),d;case 6:return t.a(2)}},t,null,[[1,5]])}))).apply(this,arguments)}function m(t,e,r){return g.apply(this,arguments)}function g(){return(g=f(c().m(function t(e,n,o){var u,s,f,p,v,d,h;return c().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.n=1,l(e,n,o);case 1:if(u=t.v){t.n=2;break}return t.a(2);case 2:if(s=u.recordingId,f=u.textObfuscation,s){t.n=3;break}return t.a(2);case 3:return y&&y.stop(),t.p=4,t.n=5,r.e(724).then(r.bind(r,7516));case 5:return p=t.v,v=p.SSRWorker,d=a.A.getSsrApiUrl(),y=new v(s,{ssrApiUrl:d,obfuscateText:f}),t.n=6,(0,i.$J)();case 6:return t.n=7,y.start();case 7:return t.a(2,y);case 8:throw t.p=8,h=t.v,y&&y.stop(),h;case 9:return t.a(2)}},t,null,[[4,8]])}))).apply(this,arguments)}},4276:(t,e,r)=>{"use strict";r.d(e,{L:()=>T,A:()=>j});var n=r(7070),o=r(6841),i=r(6012),a=r(295);function c(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof s?n:s,f=Object.create(c.prototype);return u(f,"_invoke",function(r,n,o){var i,c,u,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,c=0,u=t,p.n=r,a}};function y(r,n){for(c=r,u=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,c=0))}if(o||r>1)return a;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),c=f,u=v;(e=c<2?t:u)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(l=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),f}var a={};function s(){}function f(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(u(e={},n,function(){return this}),e),y=l.prototype=s.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,u(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,u(y,"constructor",l),u(l,"constructor",f),f.displayName="GeneratorFunction",u(l,o,"GeneratorFunction"),u(y),u(y,o,"Generator"),u(y,n,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),(c=function(){return{w:i,m:v}})()}function u(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}u=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){u(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},u(t,e,r,n)}function s(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function f(){var t;return t=c().m(function t(e,r,n,u,s,f){var l,p,y;return c().w(function(t){for(;;)switch(t.n){case 0:return l=(0,o.tb)(),p="".concat(a.A.getVisitsApiUrl(),"/api/").concat(l,"/ecom-events"),y={pageUrl:u,sessionKey:r,visitKey:n,websiteKey:e,type:s,payload:f},t.n=1,(0,i.bE)(p,y);case 1:return t.a(2,t.v)}},t)}),f=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,c,"next",t)}function c(t){s(i,n,o,a,c,"throw",t)}a(void 0)})},f.apply(this,arguments)}var l=r(2331),p=r(2780),y=r(7958);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function d(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof c?n:c,s=Object.create(u.prototype);return h(s,"_invoke",function(r,n,o){var i,c,u,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,c=0,u=t,p.n=r,a}};function y(r,n){for(c=r,u=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,c=0))}if(o||r>1)return a;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),c=f,u=v;(e=c<2?t:u)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(l=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(h(e={},n,function(){return this}),e),l=s.prototype=c.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,h(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return u.prototype=s,h(l,"constructor",s),h(s,"constructor",u),u.displayName="GeneratorFunction",h(s,o,"GeneratorFunction"),h(l),h(l,o,"Generator"),h(l,n,function(){return this}),h(l,"toString",function(){return"[object Generator]"}),(d=function(){return{w:i,m:p}})()}function h(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}h=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){h(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},h(t,e,r,n)}function b(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function m(t,e){for(var r=0;r0)){t.n=4;break}if(e=w(S,this).pop()){t.n=2;break}return t.a(2);case 2:for(r=[],n=0;n{"use strict";r.d(e,{KS:()=>c});var n=r(2331),o=r(2780),i=r(922),a=function(t,e){n.V.log("Validating tracking code with post message");var r={type:"TWIPLA_TRACKING_CODE_VALIDATION_RESPONSE",websiteKey:t,requestId:e};window.opener&&(window.opener.postMessage(JSON.stringify({type:"VISA_WORKER_VALIDATE",token:e}),"*"),window.opener.postMessage(r,"*")),window.parent&&window.parent.postMessage(r,"*")},c=function(t){!function(t){window.addEventListener("message",function(e){if(e.data){var r=e.data;if("TWIPLA_TRACKING_CODE_VALIDATION_REQUEST"===r.type){if(n.V.log("Received tracking code validation request"),!r.websiteKey)return void n.V.log("Invalid tracking code validation request: missing websiteKey in event payload");if(t!==r.websiteKey)return void n.V.log("Invalid tracking code: website keys do not match | expected ".concat(r.websiteKey," | got ").concat(t));n.V.log("Tracking code is valid and working!"),a(t,r.requestId)}}})}(t);var e=(0,i.Ez)("verifyJs");if(e){n.V.log("Verifying website id integrity based on verifyJs parameter");var r=e===t,c=r?o.nW.success:o.nW.error;return(0,o.Bh)(c,u(r)),!0}var s=function(){var t=(0,i.Ez)("visa_worker_validate"),e=(0,i.Ez)("visa_worker_id");if(t&&e)return{websiteId:e,validateToken:t}}();if(s){var f=s.websiteId===t,l=f?o.nW.success:o.nW.error;return(0,o.Bh)(l,u(f)),a(t,s.validateToken),!0}if(window.parent&&window.name)try{if(!0===JSON.parse(window.name).ignoreVisit)return!0}catch(t){n.V.error("Failed to parse window.name",t)}return!1};function u(t){return t?"Snippet found. You can now close the window!":"Snippet not found. Please contact support!"}},5056:(t,e,r)=>{"use strict";t.exports=function(t){var e=r.nc;e&&t.setAttribute("nonce",e)}},5072:t=>{"use strict";var e=[];function r(t){for(var r=-1,n=0;n{"use strict";r.d(e,{CN:()=>w,Fo:()=>m,Jt:()=>v,_m:()=>h,bE:()=>d});var n=r(295);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function c(r,n,o,i){var c=n&&n.prototype instanceof s?n:s,f=Object.create(c.prototype);return a(f,"_invoke",function(r,n,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,a=0,c=t,p.n=r,u}};function y(r,n){for(a=r,c=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,a=0))}if(o||r>1)return u;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),a=f,c=v;(e=a<2?t:c)||!l;){i||(a?a<3?(a>1&&(p.n=-1),y(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=p.n<0)?c:r.call(n,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),f}var u={};function s(){}function f(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(a(e={},n,function(){return this}),e),y=l.prototype=s.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,a(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,a(y,"constructor",l),a(l,"constructor",f),f.displayName="GeneratorFunction",a(l,o,"GeneratorFunction"),a(y),a(y,o,"Generator"),a(y,n,function(){return this}),a(y,"toString",function(){return"[object Generator]"}),(i=function(){return{w:c,m:v}})()}function a(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}a=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){a(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},a(t,e,r,n)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var e=1;e{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r}).join("")},e.i=function(t,r,n,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var c=0;c0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=i),r&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=r):f[2]=r),o&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=o):f[4]="".concat(o)),e.push(f))}},e}},6523:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i),c=r(7742),u=a()(o());u.i(c.A),u.push([t.id,"",""]);const s=u},6720:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function c(r,n,o,a){var c=n&&n.prototype instanceof s?n:s,f=Object.create(c.prototype);return i(f,"_invoke",function(r,n,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,a=0,c=t,p.n=r,u}};function y(r,n){for(a=r,c=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,a=0))}if(o||r>1)return u;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),a=f,c=v;(e=a<2?t:c)||!l;){i||(a?a<3?(a>1&&(p.n=-1),y(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=p.n<0)?c:r.call(n,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(r,o,a),!0),f}var u={};function s(){}function f(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(i(e={},n,function(){return this}),e),y=l.prototype=s.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,i(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,i(y,"constructor",l),i(l,"constructor",f),f.displayName="GeneratorFunction",i(l,a,"GeneratorFunction"),i(y),i(y,a,"Generator"),i(y,n,function(){return this}),i(y,"toString",function(){return"[object Generator]"}),(o=function(){return{w:c,m:v}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}i=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function a(e,r){i(t,e,function(t){return this._invoke(e,r,t)})}a("next",0),a("throw",1),a("return",2)}},i(t,e,r,n)}function a(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function c(t,e){for(var r=0;rP,h:()=>E});var y=new WeakMap,v=new WeakMap;function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function b(t){for(var e=1;e3?(o=v===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,c=0))}if(o||r>1)return a;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),c=f,u=v;(e=c<2?t:u)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(l=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(w(e={},n,function(){return this}),e),l=s.prototype=c.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,w(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return u.prototype=s,w(l,"constructor",s),w(s,"constructor",u),u.displayName="GeneratorFunction",w(s,o,"GeneratorFunction"),w(l),w(l,o,"Generator"),w(l,n,function(){return this}),w(l,"toString",function(){return"[object Generator]"}),(g=function(){return{w:i,m:p}})()}function w(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}w=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){w(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},w(t,e,r,n)}function O(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function S(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){O(i,n,o,a,c,"next",t)}function c(t){O(i,n,o,a,c,"throw",t)}a(void 0)})}}var j={},T=new(function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,y,!1),s(this,v,[])},e=[{key:"acquire",value:(r=o().m(function t(){var e=this;return o().w(function(t){for(;;)switch(t.n){case 0:if(!l(y,this)){t.n=2;break}return t.n=1,new Promise(function(t){return l(v,e).push(t)});case 1:t.n=0;break;case 2:f(y,this,!0);case 3:return t.a(2)}},t,this)}),n=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)})},function(){return n.apply(this,arguments)})},{key:"release",value:function(){if(!l(y,this))throw new Error("Cannot release an unlocked lock");f(y,this,!1);var t=l(v,this).shift();t&&t()}}],e&&c(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,n}()),E=function(){var t=S(g().m(function t(e,r){return g().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,T.acquire();case 1:try{j[e]=r}finally{T.release()}case 2:return t.a(2)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),P=function(){var t=S(g().m(function t(){return g().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.n=1,T.acquire();case 1:return t.p=1,t.a(2,b({},j));case 2:return t.p=2,T.release(),t.f(2);case 3:return t.a(2)}},t,null,[[1,,2,3]])}));return function(){return t.apply(this,arguments)}}()},6841:(t,e,r)=>{"use strict";r.d(e,{$4:()=>S,$J:()=>h,Bv:()=>m,FH:()=>w,NP:()=>E,Ri:()=>T,TV:()=>P,Xb:()=>j,dL:()=>b,fT:()=>d,oe:()=>g,qP:()=>v,sL:()=>A,tb:()=>O,z2:()=>k});var n=r(922),o=r(6720);function i(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function c(r,n,o,i){var c=n&&n.prototype instanceof s?n:s,f=Object.create(c.prototype);return a(f,"_invoke",function(r,n,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,a=0,c=t,p.n=r,u}};function y(r,n){for(a=r,c=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,a=0))}if(o||r>1)return u;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),a=f,c=v;(e=a<2?t:c)||!l;){i||(a?a<3?(a>1&&(p.n=-1),y(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=p.n<0)?c:r.call(n,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),f}var u={};function s(){}function f(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(a(e={},n,function(){return this}),e),y=l.prototype=s.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,a(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,a(y,"constructor",l),a(l,"constructor",f),f.displayName="GeneratorFunction",a(l,o,"GeneratorFunction"),a(y),a(y,o,"Generator"),a(y,n,function(){return this}),a(y,"toString",function(){return"[object Generator]"}),(i=function(){return{w:c,m:v}})()}function a(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}a=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){a(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},a(t,e,r,n)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&void 0!==arguments[1]?arguments[1]:"en",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=parseFloat(t);return isNaN(t)||isNaN(a)||"string"==typeof t&&t.includes("%")?t:(a=a.toFixed(1),"percent"===(null===(e=i)||void 0===e?void 0:e.style)&&(a/=100,i=p(p({},i),{},{maximumSignificantDigits:3})),"compact"===(null===(r=i)||void 0===r?void 0:r.notation)&&"short"===(null===(n=i)||void 0===n?void 0:n.compactDisplay)?"de"===o&&a>=1e3&&a<=1e4?new Intl.NumberFormat(o).format(a):new Intl.NumberFormat(o,p(p({},i),{},{maximumSignificantDigits:3})).format(a):new Intl.NumberFormat(o,i).format(a))}function j(){return window.innerWidth<=768}function T(t){for(var e=t+"=",r=document.cookie.split(";"),n=0;n{"use strict";r.d(e,{W:()=>n});var n={RECEIVED_DATA:"RECEIVED_DATA",RETRY_AUTOTRACKING_PRESSED:"RETRY_AUTOTRACKING_PRESSED",LOADING_TIMEOUT_EXPIRED:"LOADING_TIMEOUT_EXPIRED",DATA_RETRIEVAL_FAILED:"DATA_RETRIEVAL_FAILED"}},6886:(t,e,r)=>{"use strict";r.d(e,{IO:()=>v,Sb:()=>l,gU:()=>p,pO:()=>d});var n=r(295),o=r(6012);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var a=n&&n.prototype instanceof s?n:s,f=Object.create(a.prototype);return c(f,"_invoke",function(r,n,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,a=0,c=t,p.n=r,u}};function y(r,n){for(a=r,c=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,a=0))}if(o||r>1)return u;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),a=f,c=v;(e=a<2?t:c)||!l;){i||(a?a<3?(a>1&&(p.n=-1),y(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=p.n<0)?c:r.call(n,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),f}var u={};function s(){}function f(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(c(e={},n,function(){return this}),e),y=l.prototype=s.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,c(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,c(y,"constructor",l),c(l,"constructor",f),f.displayName="GeneratorFunction",c(l,o,"GeneratorFunction"),c(y),c(y,o,"Generator"),c(y,n,function(){return this}),c(y,"toString",function(){return"[object Generator]"}),(a=function(){return{w:i,m:v}})()}function c(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}c=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){c(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},c(t,e,r,n)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function s(t,e,r){return(e=function(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var l=function(t,e,r){return(0,o.bE)("".concat(n.A.getApiUrl(),"/api/websites/").concat(t,"/polls/").concat(r,"/dismissed"),{visitorKey:e})};function p(t,e,r){return y.apply(this,arguments)}function y(){var t;return t=a().m(function t(e,r,i){var c,u,s,f;return a().w(function(t){for(;;)switch(t.n){case 0:return c=encodeURIComponent(i),u=encodeURIComponent(r),s="".concat(n.A.getApiUrl(),"/api/v2/websites/").concat(e,"/polls/targeting?page=").concat(c,"&visitorKey=").concat(u),t.n=1,(0,o.Jt)(s);case 1:if("NO_POLL"!==(f=t.v).message){t.n=2;break}return t.a(2,Promise.reject(f.message));case 2:return t.a(2,f.payload)}},t)}),y=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,c,"next",t)}function c(t){f(i,n,o,a,c,"throw",t)}a(void 0)})},y.apply(this,arguments)}function v(t,e,r,i,a){var c="".concat(n.A.getApiUrl(),"/api/websites/").concat(t,"/polls/").concat(r,"/questions/").concat(i,"/answers"),f=function(t){for(var e=1;e{"use strict";r.d(e,{w:()=>b,A:()=>h});var n=r(2373);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function c(r,n,o,i){var c=n&&n.prototype instanceof s?n:s,f=Object.create(c.prototype);return a(f,"_invoke",function(r,n,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,a=0,c=t,p.n=r,u}};function y(r,n){for(a=r,c=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,a=0))}if(o||r>1)return u;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),a=f,c=v;(e=a<2?t:c)||!l;){i||(a?a<3?(a>1&&(p.n=-1),y(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=p.n<0)?c:r.call(n,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),f}var u={};function s(){}function f(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(a(e={},n,function(){return this}),e),y=l.prototype=s.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,a(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,a(y,"constructor",l),a(l,"constructor",f),f.displayName="GeneratorFunction",a(l,o,"GeneratorFunction"),a(y),a(y,o,"Generator"),a(y,n,function(){return this}),a(y,"toString",function(){return"[object Generator]"}),(i=function(){return{w:c,m:v}})()}function a(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}a=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){a(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},a(t,e,r,n)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t,e,r){return(e=function(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function f(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,c,"next",t)}function c(t){s(i,n,o,a,c,"throw",t)}a(void 0)})}}function l(){return(l=f(i().m(function t(e,r,o,a,c){return i().w(function(t){for(;;)switch(t.n){case 0:if(c&&c.category&&c.action){t.n=1;break}throw new Error("Event category and action are required");case 1:return t.n=2,(0,n.u4)(e,r,o,a,c);case 2:return t.a(2,t.v)}},t)}))).apply(this,arguments)}function p(){return(p=f(i().m(function t(e,r,o,a,c){return i().w(function(t){for(;;)switch(t.n){case 0:if(c&&c.category&&c.action&&c.domPath){t.n=1;break}throw new Error("Event category, action and domPath are required");case 1:return t.n=2,(0,n.u4)(e,r,o,a,c);case 2:return t.a(2,t.v)}},t)}))).apply(this,arguments)}function y(t,e){var r={},n=t[0];if("string"!=typeof n)throw new Error("String expected for category");var o=t[1];if("string"!=typeof o)throw new Error("String expected for action");return t[2]&&(r.label=t[2]),t[3]&&(r.value=t[3]),t[4]&&(r.fieldsObject=t[4]),t[5]&&(r.domPath=t[5]),function(t){for(var e=1;e{"use strict";r.d(e,{O:()=>u});var n=r(2331),o=r(6880);function i(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function c(r,n,o,i){var c=n&&n.prototype instanceof s?n:s,f=Object.create(c.prototype);return a(f,"_invoke",function(r,n,o){var i,a,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,a=0,c=t,p.n=r,u}};function y(r,n){for(a=r,c=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,a=0))}if(o||r>1)return u;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),a=f,c=v;(e=a<2?t:c)||!l;){i||(a?a<3?(a>1&&(p.n=-1),y(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(l=p.n<0)?c:r.call(n,p))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),f}var u={};function s(){}function f(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(a(e={},n,function(){return this}),e),y=l.prototype=s.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,a(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,a(y,"constructor",l),a(l,"constructor",f),f.displayName="GeneratorFunction",a(l,o,"GeneratorFunction"),a(y),a(y,o,"Generator"),a(y,n,function(){return this}),a(y,"toString",function(){return"[object Generator]"}),(i=function(){return{w:c,m:v}})()}function a(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}a=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){a(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},a(t,e,r,n)}function c(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function u(){return s.apply(this,arguments)}function s(){var t;return t=i().m(function t(){var e,a,c,u,s,f,l=arguments;return i().w(function(t){for(;;)switch(t.p=t.n){case 0:return e=l.length>0&&void 0!==l[0]&&l[0],t.p=1,n.V.log("Begin handle auto-tracking settings"),t.n=2,Promise.all([r.e(689),r.e(87),r.e(960),r.e(93)]).then(r.bind(r,1750));case 2:return a=t.v,c=a.default,t.n=3,c();case 3:try{window.opener&&window.opener.postMessage({type:"REQUEST_DATA"},"*")}catch(t){n.V.error(t)}u=function(){window.opener.postMessage({type:"POPUP_CLOSE"},"*")},s=function(t){var e=t.data,r=e.type,i=e.data;switch(r){case"RECEIVED_DATA":return window.elementInteractions=i,n.V.warn(JSON.stringify({type:r,dataReceived:i})),void window.dispatchEvent(new Event(o.W.RECEIVED_DATA));case"DATA_RETRIEVAL_FAILED":return window.elementInteractions=[],n.V.warn(JSON.stringify({type:r})),void window.dispatchEvent(new Event(o.W.DATA_RETRIEVAL_FAILED));default:return}},e&&(window.addEventListener("message",s),window.addEventListener("beforeunload",u)),t.n=5;break;case 4:t.p=4,f=t.v,n.V.error("Handle auto-tracking settings failed ".concat(JSON.stringify(f)));case 5:return t.a(2)}},t,null,[[1,4]])}),s=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,u,"next",t)}function u(t){c(i,n,o,a,u,"throw",t)}a(void 0)})},s.apply(this,arguments)}},7452:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new x(n||[]);return o(a,"_invoke",{value:P(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p="suspendedStart",y="suspendedYield",v="executing",d="completed",h={};function b(){}function m(){}function g(){}var w={};s(w,a,function(){return this});var O=Object.getPrototypeOf,S=O&&O(O(I([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=b.prototype=Object.create(w);function T(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return r("throw",t,a,c)})}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function P(t,r,n){var o=p;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=_(c,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=l(t,r,n);if("normal"===s.type){if(o=n.done?d:y,s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function _(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=l(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function k(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function I(t){if(null!=t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},7659:t=>{"use strict";var e={};t.exports=function(t,r){var n=function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},7742:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i)()(o());a.push([t.id,".visa-notification {\n z-index: 999999 !important;\n padding: 25px !important;\n border-radius: 10px !important;\n max-width: 400px !important;\n font-size: 30px !important;\n\n display: flex !important;\n align-items: center !important;\n gap: 15px !important;\n\n position: fixed !important;\n top: 20px ;\n left: 20px !important;\n opacity: 1;\n animation: visa-notification-animation .7s;\n background-color: #F9F9F9 !important;\n box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.1) !important;\n font-family: Arial, Helvetica, sans-serif !important\n}\n\n@keyframes visa-notification-animation {\n from {\n opacity: 0;\n top: -200px;\n }\n}\n\n.visa-notification .visa-icon {\n height: 60px !important;\n width: 60px !important;\n}\n\n\n.visa-notification .visa-description {\n font-weight: 600 !important;\n font-size: 17px !important;\n font-family: Arial, Helvetica, sans-serif !important\n}\n\n.visa-notification.visa-success {\n color: rgb(69, 148, 69) !important;\n}\n\n.visa-notification.visa-success .visa-icon path{\n fill: rgb(69, 148, 69) !important;\n }\n\n\n.visa-notification.visa-error {\n color: red !important;\n}\n\n.visa-notification.visa-error .visa-icon path{\n fill: red !important;\n }\n\n.visa-notification .visa-close-btn {\n background-color: transparent !important;\n outline: none !important;\n border: none !important;\n margin: 0 !important;\n padding: 0 !important;\n width: 12px !important;\n height: 12px !important;\n cursor: pointer !important;\n position: absolute !important;\n top: 15px !important;\n right: 15px !important;\n}\n\n.visa-notification .visa-close-btn svg {\n width: 100% !important;\n height: 100% !important;\n}\n\n",""]);const c=a},7817:(t,e,r)=>{"use strict";r.d(e,{c:()=>o});var n=r(7958);function o(t){for(var e=[];null!=t.parentNode;){for(var r=0,o=0,i=0;i1?e.unshift(t.nodeName.toLowerCase()+"(:"+o+")"):e.unshift(t.nodeName.toLowerCase()),t=t.parentNode}return e.slice(1).join(" > ")}},7825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(r){!function(t,e,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(n,t,e.options)}(e,t,r)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},7958:(t,e,r)=>{"use strict";r.d(e,{By:()=>u,Gj:()=>i,QX:()=>s,XV:()=>n,bo:()=>a,m3:()=>o,zQ:()=>c});var n="visa-auto-track-live-preview-widget",o="twipla-loadingWidget",i="twipla-nothingHighlightedWidget",a={minimalist:"minimalist",detailed:"detailed"},c={primary:"#5C04B4",secondary:"#FFFFFF",tertiary:"#FFFFFF",positive:"#06A25A",negative:"#EA2A0C",neutral:"#C3C3C3"},u=function(t){return t.primaryColor="primaryColor",t.secondaryColor="secondaryColor",t}({}),s={optIn:"Your opt-in request was successfully processed! Please refresh the page for the changes to take effect!",optOut:"Your opt-out request was successfully processed! Please refresh the page for the changes to take effect!"}},8922:function(t,e,r){var n;!function(){"use strict";function o(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function i(t,e,r,n,i,a){return o((c=o(o(e,t),o(n,a)))<<(u=i)|c>>>32-u,r);var c,u}function a(t,e,r,n,o,a,c){return i(e&r|~e&n,t,e,o,a,c)}function c(t,e,r,n,o,a,c){return i(e&n|r&~n,t,e,o,a,c)}function u(t,e,r,n,o,a,c){return i(e^r^n,t,e,o,a,c)}function s(t,e,r,n,o,a,c){return i(r^(e|~n),t,e,o,a,c)}function f(t,e){var r,n,i,f,l;t[e>>5]|=128<>>9<<4)]=e;var p=1732584193,y=-271733879,v=-1732584194,d=271733878;for(r=0;r>5]>>>e%32&255);return r}function p(t){var e,r=[];for(r[(t.length>>2)-1]=void 0,e=0;e>5]|=(255&t.charCodeAt(e/8))<>>4&15)+n.charAt(15&e);return o}function v(t){return unescape(encodeURIComponent(t))}function d(t){return function(t){return l(f(p(t),8*t.length))}(v(t))}function h(t,e){return function(t,e){var r,n,o=p(t),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=f(o,8*t.length)),r=0;r<16;r+=1)i[r]=909522486^o[r],a[r]=1549556828^o[r];return n=f(i.concat(p(e)),512+8*e.length),l(f(a.concat(n),640))}(v(t),v(e))}function b(t,e,r){return e?r?h(e,t):y(h(e,t)):r?d(t):y(d(t))}void 0===(n=function(){return b}.call(e,r,e,t))||(t.exports=n)}()},9978:(t,e,r)=>{"use strict";r.d(e,{N:()=>v,Z:()=>p});var n=r(7958),o=r(922),i=function(){var t,e;return{primary:null!==(t=a(n.By.primaryColor))&&void 0!==t?t:n.zQ.primary,secondary:null!==(e=a(n.By.secondaryColor))&&void 0!==e?e:n.zQ.secondary,tertiary:n.zQ.tertiary,positive:n.zQ.positive,neutral:n.zQ.negative,negative:n.zQ.negative}},a=function(t){var e=(0,o.Ez)(t);if(e)return"#"+e},c=r(2331),u=r(295);function s(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof c?n:c,s=Object.create(u.prototype);return f(s,"_invoke",function(r,n,o){var i,c,u,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,c=0,u=t,p.n=r,a}};function y(r,n){for(c=r,u=n,e=0;!l&&s&&!o&&e3?(o=v===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&yn||n>v)&&(i[4]=r,i[5]=n,p.n=v,c=0))}if(o||r>1)return a;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,v),c=f,u=v;(e=c<2?t:u)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(l=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),s}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(f(e={},n,function(){return this}),e),y=l.prototype=c.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,f(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return u.prototype=l,f(y,"constructor",l),f(l,"constructor",u),u.displayName="GeneratorFunction",f(l,o,"GeneratorFunction"),f(y),f(y,o,"Generator"),f(y,n,function(){return this}),f(y,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m:v}})()}function f(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}f=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{function i(e,r){f(t,e,function(t){return this._invoke(e,r,t)})}i("next",0),i("throw",1),i("return",2)}},f(t,e,r,n)}function l(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function p(t){return y.apply(this,arguments)}function y(){var t;return t=s().m(function t(e){var n,o,a,f,l,p,y;return s().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,c.V.log("Begin take heatmap screenshot"),t.n=1,Promise.all([r.e(689),r.e(113)]).then(r.bind(r,6821));case 1:n=t.v,o=n.default,a=e.heatmapId,f=e.deviceType,l="".concat(u.A.getSsrApiUrl(),"/api/heatmaps/").concat(a,"/devices/").concat(f,"/backgrounds/re-take"),p=i(),o.initialize({apiUrl:l,showLogs:!0,theme:p}),t.n=3;break;case 2:t.p=2,y=t.v,c.V.error(JSON.stringify(y));case 3:return t.a(2)}},t,null,[[0,2]])}),y=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){l(i,n,o,a,c,"next",t)}function c(t){l(i,n,o,a,c,"throw",t)}a(void 0)})},y.apply(this,arguments)}function v(){var t=(0,o.Ez)("visa_d"),e=(0,o.Ez)("visa_h"),r={0:"mobile",1:"tablet",2:"desktop"};return void 0===r[t]?null:{deviceType:r[t],heatmapId:e}}}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={id:t,exports:{}};return o[t].call(r.exports,r,r.exports,a),r.exports}a.m=o,a.amdO={},a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);a.r(o);var i={};t=t||[null,e({}),e([]),e(e)];for(var c=2&n&&r;("object"==typeof c||"function"==typeof c)&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach(t=>i[t]=()=>r[t]);return i.default=()=>r,a.d(o,i),o},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce((e,r)=>(a.f[r](t,e),e),[])),a.u=t=>(({93:"loading-modal",113:"screenshot-builder",312:"poll-renderer",665:"fingerprint",724:"ssr-worker",754:"highlightSelectedElement",786:"auto-tracking-settings-renderer"}[t]||t)+".js"),a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r={},n="@twipla/worker:",a.l=(t,e,o,i)=>{if(r[t])r[t].push(e);else{var c,u;if(void 0!==o)for(var s=document.getElementsByTagName("script"),f=0;f{c.onerror=c.onload=null,clearTimeout(y);var o=r[t];if(delete r[t],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach(t=>t(n)),e)return e(n)},y=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),u&&document.head.appendChild(c)}},a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.p="https://app-worker.visitor-analytics.io/",(()=>{var t={792:0};a.f.j=(e,r)=>{var n=a.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((r,o)=>n=t[e]=[r,o]);r.push(n[2]=o);var i=a.p+a.u(e),c=new Error;a.l(i,r=>{if(a.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",c.name="ChunkLoadError",c.type=o,c.request=i,n[1](c)}},"chunk-"+e,e)}};var e=(e,r)=>{var n,o,[i,c,u]=r,s=0;if(i.some(e=>0!==t[e])){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);u&&u(a)}for(e&&e(r);s{"use strict";var t=a(6841),e=a(2331),r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a.g&&a.g||{},n="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(t){return!1}}(),c="FormData"in r,u="ArrayBuffer"in r;if(u)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function p(t){return"string"!=typeof t&&(t=String(t)),t}function y(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function v(t){this.map={},t instanceof v?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function d(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function h(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function b(t){var e=new FileReader,r=h(e);return e.readAsArrayBuffer(t),r}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:c&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():u&&i&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(t)||f(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return d(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(i)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,o,i=d(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,r=h(e=new FileReader),o=(n=/charset=([A-Za-z0-9_-]+)/.exec(t.type))?n[1]:"utf-8",e.readAsText(t,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?o:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function S(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function j(t,e){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new v(e.headers),this.url=e.url||"",this._initBody(t)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},g.call(O.prototype),g.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},j.error=function(){var t=new j(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var T=[301,302,303,307,308];j.redirect=function(t,e){if(-1===T.indexOf(e))throw new RangeError("Invalid status code");return new j(null,{status:e,headers:{location:t}})};var E=r.DOMException;try{new E}catch(t){(E=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),E.prototype.constructor=E}function P(t,e){return new Promise(function(n,o){var a=new O(t,e);if(a.signal&&a.signal.aborted)return o(new E("Aborted","AbortError"));var c=new XMLHttpRequest;function s(){c.abort()}if(c.onload=function(){var t,e,r={statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new v,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{e.append(n,o)}catch(t){console.warn("Response "+t.message)}}}),e)};0===a.url.indexOf("file://")&&(c.status<200||c.status>599)?r.status=200:r.status=c.status,r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout(function(){n(new j(o,r))},0)},c.onerror=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){o(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){o(new E("Aborted","AbortError"))},0)},c.open(a.method,function(t){try{return""===t&&r.location.href?r.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?c.withCredentials=!0:"omit"===a.credentials&&(c.withCredentials=!1),"responseType"in c&&(i?c.responseType="blob":u&&(c.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof v||r.Headers&&e.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(e.headers).forEach(function(t){f.push(l(t)),c.setRequestHeader(t,p(e.headers[t]))}),a.headers.forEach(function(t,e){-1===f.indexOf(e)&&c.setRequestHeader(e,t)})}else a.headers.forEach(function(t,e){c.setRequestHeader(e,t)});a.signal&&(a.signal.addEventListener("abort",s),c.onreadystatechange=function(){4===c.readyState&&a.signal.removeEventListener("abort",s)}),c.send(void 0===a._bodyInit?null:a._bodyInit)})}P.polyfill=!0,r.fetch||(r.fetch=P,r.Headers=v,r.Request=O,r.Response=j);const _=function(t){var e=this.constructor;return this.then(function(r){return e.resolve(t()).then(function(){return r})},function(r){return e.resolve(t()).then(function(){return e.reject(r)})})},k=function(t){return new this(function(e,r){if(!t||void 0===t.length)return r(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);var o=n.length;function i(t,r){if(r&&("object"==typeof r||"function"==typeof r)){var a=r.then;if("function"==typeof a)return void a.call(r,function(e){i(t,e)},function(r){n[t]={status:"rejected",reason:r},0===--o&&e(n)})}n[t]={status:"fulfilled",value:r},0===--o&&e(n)}for(var a=0;a