!function(){"use strict";var e={4212:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.unpackClickID=t.createClickID=void 0,t.createClickID=function(e){var t=JSON.stringify(e),n=(new TextEncoder).encode(t),r="";return n.forEach((function(e){r+=String.fromCharCode(e)})),btoa(r)},t.unpackClickID=function(e){try{var t=Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)})),n=(new TextDecoder).decode(t);return JSON.parse(n)}catch(e){return null}}},8098:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4212),t)},5241:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CLICK_ID_URL_KEY=t.LONG_TERM_RETENTION_DAYS=t.STORE_URL_DATA_KEY=t.STORE_PIXEL_DATA_KEY=t.STORE_BROWSER_KEY=t.DEPRECATED_STORE_URL_DATA_KEY=t.DEPRECATED_STORE_PIXEL_DATA_KEY=t.DEPRECATED_STORE_BROWSER_KEY=t.endpointPathname=t.ERROR_CUSTOM_DATA_NON_STRING_PARAM=t.ERROR_CUSTOM_DATA_TOO_LONG_PARAMETER=t.ERROR_CUSTOM_DATA_TOO_MANY_FIELDS=t.ERROR_PIXEL_INIT_TIMEOUT=t.ERROR_PIXEL_CUSTOM_ID_IS_NOT_SUPPORTED=t.ERROR_PIXEL_INVALID_FBQ_CALL=t.ERROR_PIXEL_NOT_INITIALISED=void 0,t.ERROR_PIXEL_NOT_INITIALISED=101,t.ERROR_PIXEL_INVALID_FBQ_CALL=102,t.ERROR_PIXEL_CUSTOM_ID_IS_NOT_SUPPORTED=103,t.ERROR_PIXEL_INIT_TIMEOUT=104,t.ERROR_CUSTOM_DATA_TOO_MANY_FIELDS=105,t.ERROR_CUSTOM_DATA_TOO_LONG_PARAMETER=106,t.ERROR_CUSTOM_DATA_NON_STRING_PARAM=107,t.endpointPathname="/a/_px",t.DEPRECATED_STORE_BROWSER_KEY="_rrid",t.DEPRECATED_STORE_PIXEL_DATA_KEY="_rrd",t.DEPRECATED_STORE_URL_DATA_KEY="_rrurl",t.STORE_BROWSER_KEY="_sygnal_id",t.STORE_PIXEL_DATA_KEY="_sygnal_d",t.STORE_URL_DATA_KEY="_sygnal_url",t.LONG_TERM_RETENTION_DAYS=365,t.CLICK_ID_URL_KEY="_rrclid"},2275:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5241),t)},4985:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0,t.encode=function(e){return t=(new TextEncoder).encode(e),n=Array.from(t,(function(e){return String.fromCodePoint(e)})).join(""),btoa(n);var t,n},t.decode=function(e){return(new TextDecoder).decode((t=atob(e),Uint8Array.from(t,(function(e){var t;return null!==(t=e.codePointAt(0))&&void 0!==t?t:0}))));var t}},4289:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PixelInputSalesChannel=void 0,function(e){e.CLICKFUNNELS1="CLICKFUNNELS1",e.CLICKFUNNELS2="CLICKFUNNELS2",e.SHOPIFY="SHOPIFY"}(n||(t.PixelInputSalesChannel=n={}))},6033:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.make=t.EventType=void 0,function(e){e.Track="track",e.QueueTrackedEvent="to_track_queue",e.UpdateUserData="update_user_data"}(n||(t.EventType=n={}));var r=function(){function e(){this.listeners={}}return e.prototype.off=function(e,t){this.listeners[e]&&(this.listeners[e]=this.listeners[e].filter((function(e){return e!==t})))},e.prototype.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.emit=function(e,t){this.listeners[e]&&this.listeners[e].forEach((function(e){return e(t)}))},e}();t.make=function(){return new r}},3930:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.make=void 0,t.make=function(){var e=document.createElement("canvas"),t=e.getContext("2d");return t?(t.textBaseline="top",t.font="14px Arial",t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.fillText("Hello, world",2,15),t.fillStyle="rgba(102, 204, 0, 0.7)",t.fillText("Hello, world",4,17),e.toDataURL()):""}},1315:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.make=void 0,i(n(3930)),i(n(9760)),t.make=function(){for(var e=[navigator.userAgent,navigator.language,screen.colorDepth,screen.width+"x"+screen.height,(new Date).getTimezoneOffset(),navigator.hardwareConcurrency,window.devicePixelRatio].join("|"),t=0,n=0;n>f.TIMESTAMP_SHIFT,n=new Date(Number(t)+Number(this.epoch)).getFullYear(),r=(new Date).getFullYear();return Math.abs(n-r)<100},t.prototype.getEpoch=function(){return this.epoch},t.prototype.generateRandomValue=function(){return s.make()},t.prototype.getBrowserFignerprint=function(){return c.make()},t}(l.Generator);t.IDGenerator=d,t.makeGenerator=function(e){return new d(BigInt(e))}},2427:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractGenerator=t.Generator=t.TIMESTAMP_SHIFT=void 0,o(n(5708),t);var i=n(5426);Object.defineProperty(t,"TIMESTAMP_SHIFT",{enumerable:!0,get:function(){return i.TIMESTAMP_SHIFT}});var a=n(9329);Object.defineProperty(t,"Generator",{enumerable:!0,get:function(){return a.Generator}}),Object.defineProperty(t,"AbstractGenerator",{enumerable:!0,get:function(){return a.AbstractGenerator}})},6676:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.eventbus=t.schemas=t.helpers=t.random=t.store=t.idgen=t.fingerprint=void 0,t.fingerprint=i(n(6855)),t.idgen=i(n(2427)),t.store=i(n(3678)),t.random=i(n(662)),t.helpers=i(n(1171)),t.schemas=i(n(4289)),t.eventbus=i(n(6033))},662:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.make=void 0,t.make=function(){var e=4294967295;try{if(window.crypto&&"object"==typeof window.crypto&&"getRandomValues"in crypto){var t=new Uint32Array(1);return window.crypto.getRandomValues(t),t[0]}return Math.floor(Math.random()*e)}catch(t){return Math.floor(Math.random()*e)}}},2587:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Store=t.ExpirationType=void 0,function(e){e[e.Session=1]="Session"}(n||(t.ExpirationType=n={}));t.Store=function(){}},751:function(e,t){var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0||(null!==(O=null===(g=e.prm)||void 0===g?void 0:g.length)&&void 0!==O?O:0)>0){var j=function(){var t,n,o=i.tagManager;(null===(t=e.trg)||void 0===t?void 0:t.length)&&o.processTriggers(r,e.trg),(null===(n=e.prm)||void 0===n?void 0:n.length)&&o.processParameterConfigs(r,e.prm)};"loading"!==document.readyState?j():document.addEventListener("DOMContentLoaded",j)}}))},e.prototype.addTracker=function(e,t,n,r,o,i){if(n&&r){o.setup(n,i,r);for(var a=0,c=t;a0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]t.length?[e,t]:[t,e],o=n[1];return n[0].filter((function(e){return o.includes(e)}))},e}();function c(e,t){var n,o,i,a,u,c;if(!e.booleanResult&&!t.booleanResult)return new f(!1);if(0!==(null!==(o=null===(n=e.locators)||void 0===n?void 0:n.length)&&void 0!==o?o:0)||0!==(null!==(a=null===(i=t.locators)||void 0===i?void 0:i.length)&&void 0!==a?a:0)){var s=[];return s.push.apply(s,r(r([],null!==(u=e.locators)&&void 0!==u?u:[],!1),null!==(c=t.locators)&&void 0!==c?c:[],!1)),new f(!0,s)}return new f(!0)}function s(e,t,n){switch(n){case o.StringOperation.EQUALS:return new f(e===t);case o.StringOperation.CONTAINS:return new f(e.includes(t));case o.StringOperation.NOT_EQUALS:return new f(e!==t);case o.StringOperation.NOT_CONTAINS:return new f(!e.includes(t));default:return new f(!1)}}var l=function(){function e(e,t,n){this.ctx=e,this.type=t,this.selector=n}return e.prototype.getElements=function(){return this.type===o.VariableType.CSS_SELECTOR?this.ctx.findElementsByCSS(this.selector):this.type===o.VariableType.XPATH_SELECTOR?this.ctx.findElementsByXPath(this.selector):[]},e}(),f=function(){function e(e,t){this.booleanResult=e,this.locators=t}return Object.defineProperty(e.prototype,"dependsOnElements",{get:function(){var e;return 0!==(null===(e=this.locators)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),e.prototype.toBoolean=function(){var e;return 0!==(null===(e=this.locators)||void 0===e?void 0:e.length)&&(this.locators?this.locators.reduce((function(e,t){return!!t.getElements().length||e}),!1):this.booleanResult)},e.prototype.toElements=function(){var e,t;return this.dependsOnElements&&null!==(t=null===(e=this.locators)||void 0===e?void 0:e.map((function(e){return e.getElements()})).reduce((function(e,t){return r(r([],e,!0),t,!0)}),[]))&&void 0!==t?t:[]},e}()},9690:function(e,t){var n,r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.VariableType=t.TriggerType=t.StringOperation=t.ParameterType=t.BooleanOperation=void 0,function(e){e.AND="AND",e.OR="OR"}(n||(t.BooleanOperation=n={})),function(e){e.ADDRESS1="ADDRESS1",e.ADDRESS2="ADDRESS2",e.CITY="CITY",e.COUNTRY="COUNTRY",e.EMAIL="EMAIL",e.FIRST_NAME="FIRST_NAME",e.LAST_NAME="LAST_NAME",e.PHONE="PHONE",e.STATE="STATE",e.ZIP="ZIP"}(r||(t.ParameterType=r={})),function(e){e.CONTAINS="CONTAINS",e.EQUALS="EQUALS",e.NOT_CONTAINS="NOT_CONTAINS",e.NOT_EQUALS="NOT_EQUALS"}(o||(t.StringOperation=o={})),function(e){e.ON_CLICK="ON_CLICK",e.ON_PAGE_VIEW="ON_PAGE_VIEW"}(i||(t.TriggerType=i={})),function(e){e.CSS_SELECTOR="CSS_SELECTOR",e.PAGE_TITLE="PAGE_TITLE",e.PAGE_URL="PAGE_URL",e.XPATH_SELECTOR="XPATH_SELECTOR"}(a||(t.VariableType=a={}))},3199:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.context=t.evaluator=t.funnelexpr=void 0,t.funnelexpr=i(n(9690)),t.evaluator=i(n(4725)),t.context=i(n(5803))},4091:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))},u=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]100)throw new Error(""+f.ERROR_CUSTOM_DATA_TOO_LONG_PARAMETER);s++}if(s>10)throw new Error(""+f.ERROR_CUSTOM_DATA_TOO_MANY_FIELDS)}return m=this.idGenerator.make().toString(),w=i(i({pxid:p,eid:m,en:h,bid:this.browserID,et:d.helpers.makeTimestamp(),bl:null!==(t=this.browserInfo.browserLanguage)&&void 0!==t?t:void 0,so:null!==(n=this.browserInfo.screenOrientation)&&void 0!==n?n:void 0,sr:null!==(r=this.browserInfo.screenResolution)&&void 0!==r?r:void 0,url:this.browserProvider.href,ref:this.browserProvider.referrer,fbc:null!==(o=this.fbc)&&void 0!==o?o:void 0,fbp:null!==(a=this.fbp)&&void 0!==a?a:void 0},this.userDataCached),_),(P=null!==(c=null===(u=this.engagementTracker)||void 0===u?void 0:u.getTotalEngagementTime())&&void 0!==c?c:0)>1e-10&&(w.engt=P),this.eventBus.emit(d.eventbus.EventType.Track,{name:h,payload:w}),E=b.convertPixelInputToString(w),T="".concat(this.urlProvider.endpoint,"?").concat(E),this.eventSender.send(T),[2]}}))}))},e}(),w=function(){function e(){}return e.prototype.send=function(e){fetch(e,{method:"GET",keepalive:!0,mode:"no-cors"}).catch((function(e){}))},e}();t.EventSender=w;var P=function(){function e(){this.cachedEndpointURL=""}return Object.defineProperty(e.prototype,"endpoint",{get:function(){if(!this.cachedEndpointURL){var e=new URL(this.scriptURL);e.pathname=f.endpointPathname,this.cachedEndpointURL=e.toString()}return this.cachedEndpointURL},enumerable:!1,configurable:!0}),e}();t.AbstractURLProvider=P;var E=function(e){function t(){var t=e.call(this)||this;return t.cachedScriptURL="",t.cachedCookieDomain="",t.cachedCookieDomainInitialised=!0,t}return o(t,e),Object.defineProperty(t.prototype,"cookieDomain",{get:function(){if(!this.cachedCookieDomain&&this.cachedCookieDomainInitialised){this.cachedCookieDomainInitialised=!0;var e=(0,y.resolveCookieDomain)(window.location.href,this.scriptURL),t=".".concat(e);b.canSetCookieOnDomain(t)?this.cachedCookieDomain=t:this.cachedCookieDomain=".".concat(window.location.hostname)}return this.cachedCookieDomain},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scriptURL",{get:function(){var e;if(!this.cachedScriptURL){var t=null===(e=document.currentScript)||void 0===e?void 0:e.getAttribute("src");if(!t)throw new Error("invalid configuration.");this.cachedScriptURL=t}return this.cachedScriptURL},enumerable:!1,configurable:!0}),t}(P);function T(e){var t=new m(e);return function(){for(var e=[],n=0;n0?(o=r.shift())?(i=function(e,t){var n=Array.from(t);if(0===n.length)throw new Error("No arguments provided to PixelPublicAPI.");var r=n[0];switch(r){case"init":if(n.length<2||"string"!=typeof n[1])throw new Error("Invalid arguments for 'init'. Expected: (init, pixelID: string).");return e("init",n[1],n[3]);case"trackSingle":case"trackSingleCustom":if(n.length<3||"string"!=typeof n[1]||"string"!=typeof n[2])throw new Error("Invalid arguments for '".concat(r,"'. Expected: (").concat(r,", pixelID: string, eventName: string, options?: PixelInput)."));return n[0],e(r,n[1],n[2],n[3]);case"track":case"trackCustom":if(n.length<2||"string"!=typeof n[1])throw new Error("Invalid arguments for '".concat(r,"'. Expected: (").concat(r,", eventName: string, options?: PixelInput)."));return n[0],e(r,n[1],n[2]);case"consent":if(n.length<2||"grant"!==n[1]&&"revoke"!==n[1])throw new Error("Invalid arguments for 'consent'. Expected: (consent, mode: 'grant' | 'revoke', pixelID?: string).");return n[0],e("consent",n[1]);case"dataProcessingOptions":if(n.length<2||!Array.isArray(n[1]))throw new Error("Invalid arguments for 'dataProcessingOptions'. Expected: (dataProcessingOptions, dpo: 'LDU'[], country?: number, state?: number, pixelID?: string).");return n[0],e("dataProcessingOptions",n[1],n[2],n[3]);default:throw new Error("Unsupported operation: ".concat(r))}}(e,o),d.helpers.isPromise(i)?[4,i]:[3,3]):[3,3]:[3,4];case 2:a.sent(),a.label=3;case 3:return[3,1];case 4:return Object.assign(t,{_rrloading:!1,rrq:e}),null==n||n(t),[3,6];case 5:return"function"==typeof window.rrq?(Object.assign(t,{_rrloading:!1}),null==n||n(t),[2]):(Object.assign(t,{_rrloading:!1,rrq:e}),null==n||n(t),[2]);case 6:return Object.assign(t,{rrq:e,_rrloading:!1}),null==n||n(t),[2]}}))}))}()))}(T(t),e),e.rrq}},3819:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.EngagementTracker=void 0;var n=function(){function e(e){void 0===e&&(e=3e4);var t=this;this.engagementStart=null,this.totalEngagementTime=0,this.inactivityTimeout=null,this.userActiveEvents=["mousemove","mousedown","keydown","touchstart"],this.visibilityChangeHandler=this.handleVisibilityChange.bind(this),this.userActivityHandler=this.handleUserActivity.bind(this),this.inactivityTimeoutMs=e,"undefined"!=typeof document&&(document.addEventListener("visibilitychange",this.visibilityChangeHandler),this.userActiveEvents.forEach((function(e){return document.addEventListener(e,t.userActivityHandler)})),this.resetInactivityTimer(),this.startEngagement())}return e.prototype.handleVisibilityChange=function(){"visible"===document.visibilityState?this.startEngagement():this.stopEngagement()},e.prototype.handleUserActivity=function(){this.startEngagement(),this.resetInactivityTimer()},e.prototype.startEngagement=function(){null===this.engagementStart&&(this.engagementStart=Date.now())},e.prototype.stopEngagement=function(){null!==this.engagementStart&&(this.totalEngagementTime+=Date.now()-this.engagementStart,this.engagementStart=null)},e.prototype.resetInactivityTimer=function(){var e=this;this.inactivityTimeout&&clearTimeout(this.inactivityTimeout),this.inactivityTimeout=setTimeout((function(){return e.stopEngagement()}),this.inactivityTimeoutMs)},e.prototype.getTotalEngagementTime=function(){return null!==this.engagementStart?this.totalEngagementTime+(Date.now()-this.engagementStart):this.totalEngagementTime},e.prototype.resetEngagementTime=function(){this.stopEngagement(),this.totalEngagementTime=0},e.prototype.destroy=function(){var e=this;"undefined"!=typeof document&&(document.removeEventListener("visibilitychange",this.visibilityChangeHandler),this.userActiveEvents.forEach((function(t){return document.removeEventListener(t,e.userActivityHandler)}))),this.inactivityTimeout&&clearTimeout(this.inactivityTimeout)},e}();t.EngagementTracker=n},726:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.types=t.bootstrap=void 0;var a=n(2541);Object.defineProperty(t,"bootstrap",{enumerable:!0,get:function(){return a.bootstrap}}),t.types=i(n(3195))},6005:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=3&&(o+r).length<=5?"".concat(i,".").concat(o,".").concat(r):"".concat(o,".").concat(r)}function r(e){var t;try{t="string"==typeof e?new URL(e):e}catch(t){throw new Error("Invalid URL provided: ".concat(e))}return new Set(["localhost","127.0.0.1","::1"]).has(t.hostname.replace(/^\[|\]$/g,""))}Object.defineProperty(t,"__esModule",{value:!0}),t.canSetCookieOnDomain=t.resolveCookieDomain=t.isLocalhost=t.getRootDomain=t.convertPixelInputToString=void 0,t.convertPixelInputToString=function(e){for(var t=new URLSearchParams,n=0,r=Object.entries(e);n