!function(){"use strict";var t,e,r,n,o,i,a,c,u,s={},l={};function f(t){var e=l[t];if(void 0!==e)return e.exports;var r=l[t]={exports:{}};return s[t](r,r.exports,f),r.exports}f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),f.rv=function(){return"1.3.15"},f.ruid="bundler=rspack@1.3.15",(t=a||(a={})).WINDOWS_PHONE="Windows Phone",t.ANDROID="android",t.IOS="ios",t.PC="pc",(e=c||(c={})).MUSICAL_LY="musical_ly",e.MUSICALLY_GO="musically_go",e.TRILL="trill",e.ULTRALITE="ultralite",e.LEMON8="lemon8",e.TTLINK="ttlink",(i={})[c.LEMON8]={},i[c.TTLINK]={},i[c.MUSICAL_LY]=((n={})[a.IOS]="33.4.0",n[a.ANDROID]="23.1.0",n),i[c.TRILL]=((o={})[a.IOS]="33.4.0",o[a.ANDROID]="23.1.0",o);var p=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==f.g?f.g:Function("return this")()},h=function(){return p().TiktokAnalyticsObject||"ttq"},y=function(){return p()[h()]},d=function(t){try{var e=y()._plugins||{};if(null!=e[t])return!!e[t];return!0}catch(t){return!0}};function _(){_=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object.create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new E(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return N()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function y(){}var d={};u(d,i,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(T([])));g&&g!==e&&r.call(g,i)&&(d=g);var m=y.prototype=p.prototype=Object.create(d);function b(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(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&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function O(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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},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;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function v(t,e,r){return(v=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}()?function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&g(o,r.prototype),o}:Reflect.construct.bind()).apply(null,arguments)}function g(t,e){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var m={error:[]};(r=u||(u={})).LOAD_START="load_start",r.LOAD_END="load_end",r.BEFORE_INIT="before_init",r.INIT_START="init_start",r.INIT_END="init_end",r.JSB_INIT_START="jsb_init_start",r.JSB_INIT_END="jsb_init_end",r.BEFORE_AD_INFO_INIT_START="before_ad_info_init_start",r.AD_INFO_INIT_START="ad_info_init_start",r.AD_INFO_INIT_END="ad_info_init_end",r.IDENTIFY_INIT_START="identify_init_start",r.IDENTIFY_INIT_END="identify_init_end",r.PLUGIN_INIT_START="_init_start",r.PLUGIN_INIT_END="_init_end",r.PIXEL_SEND="pixel_send",r.PIXEL_SEND_PCM="pixel_send_PCM",r.JSB_SEND="jsb_send",r.HTTP_SEND="http_send",r.HANDLE_CACHE="handle_cache",r.INIT_ERROR="init_error",r.PIXEL_EMPTY="pixel_empty",r.JSB_ERROR="jsb_error",r.API_ERROR="api_error",r.PLUGIN_ERROR="plugin_error",r.CUSTOM_INFO="custom_info",r.CUSTOM_ERROR="custom_error",r.CUSTOM_TIMER="custom_timer";try{(function(){if(/function bind\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Function.prototype.bind.toString()))return!0;function t(){}return new(t.bind.apply(t,[void 0,1])) instanceof t})()&&!Function.prototype._ttq_bind?Object.defineProperty(Function.prototype,"_ttq_bind",{value:Function.prototype.bind,enumerable:!1,writable:!1,configurable:!1}):Function.prototype._ttq_bind||Object.defineProperty(Function.prototype,"_ttq_bind",{value:function(t){if("function"!=typeof this)throw TypeError("What is being called by bind is not a function.");var e=t||window,r=Array.prototype.slice.call(arguments).slice(1),n=Symbol("key");return e[n]=this,function t(){return this instanceof t?v(e[n],r.concat(Array.prototype.slice.call(arguments))):e[n].apply(e,r.concat(Array.prototype.slice.call(arguments)))}},enumerable:!1,writable:!1,configurable:!1}),Object._ttq_keys||(Object._ttq_keys=function(t){try{if(Array.isArray(t))return Object.keys(t).filter(function(t){return -1===["each","eachSlice","all","any","collect","detect","findAll","grep","include","inGroupsOf","inject","invoke","max","min","partition","pluck","reject","sortBy","toArray","zip","size","inspect","select","member","_reverse","_each","clear","first","last","compact","flatten","without","uniq","intersect","clone","toJSON","remove","swap","putAll"].indexOf(t)});return Object.keys(t)}catch(e){return Object.keys(t)}});var b=h();function w(t){return null===t?"NULL":void 0===t?"UNDEFINED":"[object Object]"===Object.prototype.toString.call(t)||"[object Array]"===Object.prototype.toString.call(t)?JSON.stringify(t):t.toString()}/function Map\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Map.toString())?window[b]._ttq_map=Map:window[b]._ttq_map||(window[b]._ttq_map=function(){this.items={},this.size=0},window[b]._ttq_map.prototype.set=function(t,e){return!this.has(t)&&(this.items[w(t)]=e,this.size++),this},window[b]._ttq_map.prototype.get=function(t){return this.items[w(t)]},window[b]._ttq_map.prototype.has=function(t){return void 0!==this.items[w(t)]},window[b]._ttq_map.prototype.delete=function(t){return this.has(t)&&(delete this.items[w(t)],this.size--),this},window[b]._ttq_map.prototype.clear=function(){this.items={},this.size=0},window[b]._ttq_map.prototype.keys=function(){var t=_().mark(n),e=[];for(var r in this.items)this.has(r)&&e.push(r);function n(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e,"t0",1);case 1:case"end":return t.stop()}},t)}return n()},window[b]._ttq_map.prototype.values=function(){var t=_().mark(n),e=[];for(var r in this.items)this.has(r)&&e.push(this.items[r]);function n(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e,"t0",1);case 1:case"end":return t.stop()}},t)}return n()}),function(){if(/function create\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Map.toString())){Object._ttq_create=Object.create;return}Object._ttq_create=function(){function t(){}var e=Object.prototype.hasOwnProperty;return function(r,n){if("object"!=typeof r&&"function"!=typeof r)throw TypeError("Object prototype may only be an Object or null");t.prototype=r;var o=new t;return t.prototype=null,null!=n&&Object.keys(n).forEach(function(t){var r=n[t];if("object"==typeof r&&null!==r)e.call(r,"value")?o[t]=r.value:("function"==typeof r.get||"function"==typeof r.set)&&Object.defineProperty(o,t,r);else throw TypeError("Property description must be an object: "+r)}),o}}()}()}catch(t){!function(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n=!1);try{var o=y(),i=null==o.getPlugin?void 0:o.getPlugin("Monitor");i&&i.error&&"function"==typeof i.error?i.error.call(i,t,e,r,n):d("Monitor")&&m.error.push({event:t,err:e,detail:r,withoutJSB:n})}catch(t){}}(u.INIT_ERROR,t)}}();!function(){var t={515:function(t){function e(t){if(t){var r=t;for(var n in e.prototype)r[n]=e.prototype[n];return r}}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o0}});return}var t=window.document,e=[];n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!(t&&1==t.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},n.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},n.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,r){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw Error("threshold must be a number between 0 and 1 inclusively");return t!==r[e-1]})},n.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},n.prototype._monitorIntersections=function(){!this._monitoringIntersections&&(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(window,"resize",this._checkForIntersections,!0),i(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():u();this._observationTargets.forEach(function(n){var o=n.element,i=a(o),u=this._rootContainsTarget(o),c=n.entry,s=t&&u&&this._computeTargetAndRootIntersection(o,e),l=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:i,rootBounds:e,intersectionRect:s});c?t&&u?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(e,r){if("none"!=window.getComputedStyle(e).display){for(var n=a(e),o=s(e),i=!1;!i;){var u=null,c=1==o.nodeType?window.getComputedStyle(o):{};if("none"==c.display)return;if(o==this.root||o==t?(i=!0,u=r):o!=t.body&&o!=t.documentElement&&"visible"!=c.overflow&&(u=a(o)),u&&!(n=function(t,e){var r=Math.max(t.top,e.top),n=Math.min(t.bottom,e.bottom),o=Math.max(t.left,e.left),i=Math.min(t.right,e.right),a=i-o,u=n-r;return a>=0&&u>=0&&{top:r,bottom:n,left:o,right:i,width:a,height:u}}(u,n)))break;o=s(o)}return n}},n.prototype._getRootRect=function(){var e;if(this.root)e=a(this.root);else{var r=t.documentElement,n=t.body;e={top:0,left:0,right:r.clientWidth||n.clientWidth,width:r.clientWidth||n.clientWidth,bottom:r.clientHeight||n.clientHeight,height:r.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(e)},n.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,r){return"px"==e.unit?e.value:e.value*(r%2?t.width:t.height)/100}),r={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},n.prototype._hasCrossedThreshold=function(t,e){var r=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(r!==n)for(var o=0;oe.indexOf(this)&&e.push(this)},n.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=n,window.IntersectionObserverEntry=r}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||u(),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,r=e.width*e.height,n=this.intersectionRect,o=n.width*n.height;r?this.intersectionRatio=Number((o/r).toFixed(4)):this.intersectionRatio=+!!this.isIntersecting}function n(t,e){var r,n,o,i=e||{};if("function"!=typeof t)throw Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw Error("root must be an Element");this._checkForIntersections=(r=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout(function(){r(),o=null},n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function o(t,e,r,n){"function"==typeof t.addEventListener?t.addEventListener(e,r,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,r)}function i(t,e,r,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,r,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,r)}function a(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):u()}function u(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(t,e){for(var r=e;r;){if(r==t)return!0;r=s(r)}return!1}function s(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}}()},278:function(t,e,r){t=r.nmd(t);var n,o="__lodash_hash_undefined__",i="[object Arguments]",a="[object Boolean]",u="[object Date]",c="[object Function]",s="[object GeneratorFunction]",l="[object Map]",f="[object Number]",p="[object Object]",h="[object Promise]",d="[object RegExp]",v="[object Set]",_="[object String]",m="[object Symbol]",y="[object WeakMap]",g="[object ArrayBuffer]",E="[object DataView]",D="[object Float32Array]",b="[object Float64Array]",w="[object Int8Array]",O="[object Int16Array]",A="[object Int32Array]",I="[object Uint8Array]",C="[object Uint8ClampedArray]",T="[object Uint16Array]",S="[object Uint32Array]",R=/\w*$/,N=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,L={};L[i]=L["[object Array]"]=L[g]=L[E]=L[a]=L[u]=L[D]=L[b]=L[w]=L[O]=L[A]=L[l]=L[f]=L[p]=L[d]=L[v]=L[_]=L[m]=L[I]=L[C]=L[T]=L[S]=!0,L["[object Error]"]=L[c]=L[y]=!1;var P="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,x="object"==typeof self&&self&&self.Object===Object&&self,k=P||x||Function("return this")(),M=e&&!e.nodeType&&e,j=M&&t&&!t.nodeType&&t,B=j&&j.exports===M;function U(t,e){return t.set(e[0],e[1]),t}function q(t,e){return t.add(e),t}function G(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o-1},tI.prototype.set=function(t,e){var r=this.__data__,n=tR(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},tC.prototype.clear=function(){this.__data__={hash:new tA,map:new(th||tI),string:new tA}},tC.prototype.delete=function(t){return tL(this,t).delete(t)},tC.prototype.get=function(t){return tL(this,t).get(t)},tC.prototype.has=function(t){return tL(this,t).has(t)},tC.prototype.set=function(t,e){return tL(this,t).set(t,e),this},tT.prototype.clear=function(){this.__data__=new tI},tT.prototype.delete=function(t){return this.__data__.delete(t)},tT.prototype.get=function(t){return this.__data__.get(t)},tT.prototype.has=function(t){return this.__data__.has(t)},tT.prototype.set=function(t,e){var r=this.__data__;if(r instanceof tI){var n=r.__data__;if(!th||n.length<199)return n.push([t,e]),this;r=this.__data__=new tC(n)}return r.set(t,e),this};var tx=ts?W(ts,Object):function(){return[]},tk=function(t){return tt.call(t)};function tM(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||J)}function tj(t){if(null!=t){try{return Q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function tB(t,e){return t===e||t!=t&&e!=e}(tp&&tk(new tp(new ArrayBuffer(1)))!=E||th&&tk(new th)!=l||td&&tk(td.resolve())!=h||tv&&tk(new tv)!=v||t_&&tk(new t_)!=y)&&(tk=function(t){var e=tt.call(t),r=e==p?t.constructor:void 0,n=r?tj(r):void 0;if(n)switch(n){case ty:return E;case tg:return l;case tE:return h;case tD:return v;case tb:return y}return e});var tU=Array.isArray;function tq(t){var e;return null!=t&&"number"==typeof(e=t.length)&&e>-1&&e%1==0&&e<=0x1fffffffffffff&&!tV(t)}var tG=tl||function(){return!1};function tV(t){var e=tH(t)?tt.call(t):"";return e==c||e==s}function tH(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function tW(t){return tq(t)?function(t,e){var r,n,o,a,u,c=tU(t)||(o=n=r=t)&&"object"==typeof o&&tq(n)&&$.call(r,"callee")&&(!tu.call(r,"callee")||tt.call(r)==i)?function(t,e){for(var r=-1,n=Array(t);++r-1&&a%1==0&&a=e&&(o.apply(void 0,t),n=Date.now())}}var f=function(t){return/^(0|([1-9]\d*))$/.test(""+t)}},790:function(t,e,r){"use strict";r.d(e,{xD:function(){return A},Fn:function(){return O},Tm:function(){return T},zd:function(){return D},Dt:function(){return y},XA:function(){return v},bp:function(){return w},b4:function(){return h},RA:function(){return p},zP:function(){return F},z6:function(){return M},Xf:function(){return _},z1:function(){return k},NC:function(){return b},r8:function(){return E},Z0:function(){return d},gn:function(){return g},b:function(){return L},sH:function(){return m},PO:function(){return S}});var n,o,i,a,u=r(332);(n=i||(i={}))[n.NOT_SURE=0]="NOT_SURE",n[n.INVOKE_METHOD_ENABLED=1]="INVOKE_METHOD_ENABLED",n[n.INVOKE_METHOD_NOT_ENABLED=2]="INVOKE_METHOD_NOT_ENABLED",(o=a||(a={})).NORMAL="1",o.NOT_CROSS_DOMAIN_IFRAME="2",o.CROSS_DOMAIN_IFRAME="3",o.WEB_WORKER="4",o.SANDBOX_IFRAME="5",o.GTM_IFRAME="6",o.URL_IN_QUERY_IFRAME="7",o.UNKNOWN_IFRAME="8";var c=r(319),s=r(74),l=r(408),f=r(229),p=function(){var t,e;return(null==(t=(0,u.Ie)())||null==(e=t._env)?void 0:e.env)||s.V.EXTERNAL},h=function(){var t,e;return null!=(t=null==(e=(0,u.Ie)())?void 0:e._is_onsite)?t:l.S.OFFSITE},d=function(t){return(t||p())!==s.V.EXTERNAL},v=function(t){return(t||p())===s.V.TIKTOK},_=function(){var t=(0,u.ij)();return/windows phone/i.test(t)?f.Bk.WINDOWS_PHONE:/android/i.test(t)?f.Bk.ANDROID:/iPad|iPhone|iPod/.test(t)?f.Bk.IOS:f.Bk.PC},m=function(){try{return navigator.userAgentData.getHighEntropyValues(["model","platformVersion"])}catch(t){return Promise.resolve({})}},y=function(){return"android"===_()},g=function(){return"ios"===_()},E=function(){return!1},D=function(){return window.top!==window},b=(0,c.IH)(function(){return/open_news/i.test((0,u.ij)())}),w=(0,c.IH)(function(){return/ultralite/i.test((0,u.ij)())});function O(){try{var t,e;return[i.INVOKE_METHOD_ENABLED,i.INVOKE_METHOD_NOT_ENABLED][[!!(null!=(t=window)&&null!=(e=t.ToutiaoJSBridge)&&e.invokeMethod),!0].findIndex(function(t){return t})]}catch(t){return i.NOT_SURE}}var A=function(){try{return window&&window.top&&window.top.location.href,!1}catch(t){return!0}},I=function(){try{var t=new URL(decodeURIComponent(window.location.href)),e=/https?:\/\/[^\s/$.?#].[^\s]*/i;return e.test(t.search)||e.test(t.pathname)}catch(t){return!1}},C=function(){try{if(!A())return a.NOT_CROSS_DOMAIN_IFRAME;if(I())return a.URL_IN_QUERY_IFRAME;if(window.google_tag_manager)return a.GTM_IFRAME;if(window.name&&"web-pixel-sandbox"===window.name)return a.SANDBOX_IFRAME;return a.CROSS_DOMAIN_IFRAME}catch(t){return a.UNKNOWN_IFRAME}},T=function(){return(0,u.n2)()?a.WEB_WORKER:D()?C():a.NORMAL},S=function(){var t=(0,u.ij)();if(t)for(var e=0,r=Object.values(f.vu);ea)return!1}return!0},x=function(t){var e=S();return void 0!==e&&t.has(e)},k=function(){return x(new Set([f.vu.MUSICAL_LY,f.vu.TRILL,f.vu.ULTRALITE]))},M=function(){var t=(0,u.E9)();try{return!!(t.Shopify&&t.Shopify.shop&&t.Shopify.shop.indexOf(".myshopify.com")>0||t.name&&t.name.startsWith("web-pixel-sandbox-CUSTOM-shopify"))}catch(t){}return!1}},332:function(t,e,r){"use strict";r.d(e,{E9:function(){return a},FH:function(){return h},Gp:function(){return u},Ie:function(){return c},My:function(){return p},Wf:function(){return _},c6:function(){return m},cH:function(){return l},gM:function(){return i},ij:function(){return f},kW:function(){return d},n2:function(){return s},ri:function(){return v}});var n=r(229),o=null,i=function(t){o=t},a=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==r.g?r.g:Function("return this")()},u=function(){return a()[n.iG]||n.bk},c=function(){var t=a();return o||t[u()]},s=function(){var t=a();return void 0!==t.DedicatedWorkerGlobalScope?t instanceof t.DedicatedWorkerGlobalScope:"DedicatedWorkerGlobalScope"===t.constructor.name},l=function(){return!!c()._is_onsite},f=function(){var t=a();return("object"==typeof navigator&&navigator.userAgent?navigator.userAgent:"")||t._userAgent},p=function(t){try{var e=c();return e&&e._self_host_config&&e._self_host_config[t]||""}catch(t){return""}},h=function(t,e){void 0===e&&(e=[]);try{return e.includes(t)}catch(t){return!1}},d=function(t){var e=c(),r=e._i||{},n=t&&r[t];return t&&n&&n._partner?n._partner:e._partner?e._partner:""},v=function(t){var e=c(),r=e._i||{};return Object.keys(r).filter(function(e){return r[e]._partner===t}).length>0||e._partner===t},_=function(t){try{var e=c()._plugins||{};if(null!=e[t])return!!e[t];return!0}catch(t){return!0}},m=function(){try{var t=c()._ppf;return null==t.printAndClear?void 0:t.printAndClear()}catch(t){}}},783:function(t,e,r){"use strict";r.d(e,{ZK:function(){return u},dK:function(){return s},qe:function(){return o},um:function(){return i},vU:function(){return a},wE:function(){return c}});var n=r(332),o={info:[],error:[]};function i(t,e,r){void 0===e&&(e={}),void 0===r&&(r=!1);try{var i=(0,n.Ie)(),a=null==i.getPlugin?void 0:i.getPlugin("Monitor");a&&a.info&&"function"==typeof a.info?a.info.call(a,t,e,r):(0,n.Wf)("Monitor")&&o.info.push({event:t,detail:e,withoutJSB:r})}catch(t){}}function a(t,e,r,i){void 0===r&&(r={}),void 0===i&&(i=!1);try{var a=(0,n.Ie)(),u=null==a.getPlugin?void 0:a.getPlugin("Monitor");u&&u.error&&"function"==typeof u.error?u.error.call(u,t,e,r,i):(0,n.Wf)("Monitor")&&o.error.push({event:t,err:e,detail:r,withoutJSB:i})}catch(t){}}function u(t,e){try{var r=(0,n.Ie)(),o=null==r.getPlugin?void 0:r.getPlugin("DiagnosticsConsole");o&&o.warn.apply(o,[t,e])}catch(t){}}function c(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"getPixelDetail",start:performance.now()}}catch(t){}var e={lib:"ttq",pixelCode:"MOCK_SHOP_ID"};try{var r=document&&document.currentScript,o=r&&r.getAttribute("data-id")||"",i=(0,n.Gp)()||"ttq";e={pixelCode:o,lib:i}}catch(t){e={lib:"ttq",pixelCode:""}}try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}return e}var s=function(){try{var t=(0,n.Ie)();if(!(t&&t._legacy&&0!==t._legacy.length))return!1;return Object.keys(t._t).length>Object.keys(t._legacy||[]).length||t.reporters.length>Object.keys(t._legacy||[]).length}catch(t){return!1}}},319:function(t,e,r){"use strict";function n(t){var e=Error(t);return e.source="ulid",e}r.d(e,{_v:function(){return x},QO:function(){return N},TX:function(){return C},hi:function(){return I},te:function(){return R},ZV:function(){return v},Ds:function(){return P},eh:function(){return U},iE:function(){return m},Zq:function(){return y},LT:function(){return w},Pm:function(){return E},bJ:function(){return Y},cm:function(){return L},d$:function(){return O},X1:function(){return T},vO:function(){return S},oh:function(){return q},zh:function(){return M},$9:function(){return J},mQ:function(){return F},Xu:function(){return g},$j:function(){return b},IH:function(){return D},iK:function(){return B},WZ:function(){return _},xF:function(){return V},b2:function(){return X},eD:function(){return A},P6:function(){return j},hj:function(){return Z}});var o,i="0123456789ABCDEFGHJKMNPQRSTVWXYZ",a=i.length,u=(o||(o=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];e||(e="undefined"!=typeof window?window:null);var o=e&&(e.crypto||e.msCrypto);if(o)return function(){var t=new Uint8Array(1);return o.getRandomValues(t),t[0]/255};try{var i=r(616);return function(){return i.randomBytes(1).readUInt8()/255}}catch(t){}if(t)return function(){return Math.random()};throw n("secure crypto unusable, insecure Math.random not allowed")}()),function(t){return isNaN(t)&&(t=Date.now()),function(t,e){if(isNaN(t))throw Error(t+" must be a number");if(t>0xffffffffffff)throw n("cannot encode time greater than 281474976710655");if(t<0)throw n("time must be positive");if(!1===Number.isInteger(t))throw n("time must be an integer");for(var r=void 0,o="";e>0;e--)r=t%a,o=i.charAt(r)+o,t=(t-r)/a;return o}(t,10)+function(t,e){for(var r="";t>0;t--)r=function(t){var e=Math.floor(t()*a);return e===a&&(e=a-1),i.charAt(e)}(e)+r;return r}(16,o)}),c=r(729),s=r(229),l=r(118),f=r(188),p=r(790);function h(){h=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new O(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return I()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function d(){}function v(){}var _={};c(_,i,function(){return this});var m=Object.getPrototypeOf,y=m&&m(m(A([])));y&&y!==e&&r.call(y,i)&&(_=y);var g=v.prototype=p.prototype=Object._ttq_create(_);function E(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function D(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},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;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function d(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}var v=function(t){},_=function(t){return!!t},m=function(t){return void 0!==t.metric_name},y=function(t){return"CompletePayment"===t||"Purchase"===t},g=function(t){return m(t)?s.aj:s.Kc},E=function(t){var e;return Object.keys((null==t||null==(e=t.context)?void 0:e.user)||{}).some(function(t){return -1!==l.Ae.indexOf(t)})};function D(t,e){var r,n=t;return function(){if(n){for(var o=arguments.length,i=Array(o),a=0;a62?t+="-":t+="_",t},"")},w=function(t){return t?""+t+s.n2+b(20):(0,f.fV)("sessionId")},O=function(){for(var t=u(Date.now());27!==t.length;)t.length>27?t=t.slice(0,27):t+="_";return t},A=function(t){return t?t.split(s.n2)[0]:""},I=function(t,e){return((0,p.r8)()?"/static/config.js":s.Ns)+"?sdkid="+t+"&hostname="+e},C=function(){return(0,p.r8)()?"/static/enable_cookie.js":s.OW},T=function(){return(0,p.r8)()?"/static/disable_cookie.js":s.QN},S=function(){return(0,p.r8)()?"/static/identify.js":s.lV},R=function(t,e){if(0===Object.keys(t).length)return{};var r={identity_params:{}},n={email:["email_is_hashed","sha256_email"],phone_number:["phone_is_hashed","sha256_phone"],zip_code:["zip_code"]};return Object.entries(e).forEach(function(e){var o=e[0];e[1]&&n[o]&&n[o].forEach(function(e){if(r.identity_params[e]=[c.hZ.EMPTY_VALUE],t[e]){var n=t[e]||[c.hZ.EMPTY_VALUE];r.identity_params&&(r.identity_params[e]=[].concat(n))}})}),r},N=function(t,e){var r={identity_params:{}};return 0===Object.keys(t).length?{}:(Object.entries(e).forEach(function(e){var n=e[0];if(e[1])if(t[n]&&t[n].length){var o=t[n]||[c.hZ.EMPTY_VALUE];r.identity_params[n]=[].concat(o)}else r.identity_params[n]=[c.hZ.EMPTY_VALUE]}),r)};function F(t,e){var r=Object.assign({},t);return e.forEach(function(t){null!==r[t]&&void 0!==r[t]&&delete r[t]}),r}var L=function(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){e[n]&&(r[n]=t[n])}),r};function P(t,e,r){var n,o=r?t.bind(r):t;return function(){for(var t=arguments.length,r=Array(t),i=0;i0&&(n[o]=i)}else n[o]=e[o];for(var a in r)r.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(n[a]=r[a]);return n}(t,e)).length>0}function q(t,e){var r={};return t&&((0,f.HD)(t)||(0,f.hj)(t)?r.external_id=t.toString():(0,f.Kn)(t)&&(r=t)),e&&(0,f.Kn)(e)&&Object.assign(r,e),r}var G=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e,r={taskName:window.ttq._pf_tn,functionName:"getPixelScriptByPixelCode",start:performance.now()}}catch(t){}for(var n=Array.prototype.slice.call(document.getElementsByTagName("script")),o=0;o-1){e=i;break}}try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}return e},V=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"getPixelInstalledPosition",start:performance.now()}}catch(t){}var r="unknown";try{var n=t&&G(t);n&&(H(n)&&(r="isInHead"),K(n)&&(r="isInBodyTop10"))}catch(t){}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}return r},H=function t(e){var r=e.parentElement;return!!r&&("HEAD"===r.tagName||t(r))},W=function(t,e){for(var r=[document.body],n=0;n<=t&&r.length;){var o,i=r.pop();if(i===e)return!0;if(!((null==i?void 0:i.tagName.toLowerCase())==="script"&&(null==(o=i.src)?void 0:o.indexOf(s.Mm))>-1)){if(n++,"object"==typeof i&&i.children)for(var a=i.children.length-1;a>=0;a--)r.push(i.children[a])}}return!1},K=function(t){return W(10,t)},Y=function(t){return function(){for(var e=arguments.length,r=Array(e),n=0;nNumber(r.opacity))},L=function(t){var e=t;if("string"==typeof t)try{e=decodeURI(t)}catch(r){e=t}return e},P=function(t,e){try{var r=new URL(t);return r.searchParams.delete(e),r.toString()}catch(e){return t}},x=function(t){return Object.values(f).includes(t)?l.V2:l.V1},k='"pixelMethod":"standard"',M=function(t,e){try{var r=t.split(k),n="";if(e&&(n+=',"is_button":"true"'),n)return r[0]+k+n+r[1];return t}catch(e){return t}},j=function(t){try{var e=t.split(k);return e[0]+k+',"is_standard_mode":"1"'+e[1]}catch(e){return t}},B=/[\-!$><-==&_\/\?\.,0-9:; \]\[%~\"\{\}\)\(\+\@\^\`]/g,U=/((([a-z])(?=[A-Z]))|(([A-Z])(?=[A-Z][a-z])))/g,q=/\s+/g,G={TOKENIZE_TEXT:"rule_compute_tokenize_text_error",IMG_SRC:"rule_compute_img_src_error",ELEMENT_V2:"rule_compute_element_v2_xpath_error"},V=function(t){var e;return null===t?null:(null==(e=t.innerText)?void 0:e.length)>0?t.innerText.replace(B," ").replace(U,function(t){return t+" "}).replace(q," ").toLowerCase().trim():null},H=function(t){var e,r;if("IMG"===t.tagName)return t.getAttribute("src")||"";if(window.getComputedStyle){var n=window.getComputedStyle(t).getPropertyValue("background-image");if(null!==n&&"none"!==n&&n.length>0)return n}return"INPUT"===t.tagName&&t.getAttribute("src")||(null==(r=null==(e=t.getElementsByTagName("img"))?void 0:e[0])?void 0:r.getAttribute("src"))||null},W=function(t,e){var r;return(null==(r=V(t))?void 0:r.toLowerCase())===e},K=function(t,e){return H(t)===e},Y=function(t,e){var r;return null!=(r=null==t?void 0:t.matches)&&!!r.call(t,e)},X=function(t,e,r,n){var o=!1,i=null,a=null;switch(e){case"TOKENIZE_TEXT":a=W;break;case"IMG_SRC":a=K;break;case"ELEMENT_V2":a=Y}for(var u=0;u<5&&!["HTML","BODY"].includes(null==t?void 0:t.tagName);u++){if((null==t?void 0:t.matches("input[type='button'], input[type='image'], input[type='submit'], button, [class*=btn], [class*=Btn], [class*=button], [class*=Button], [role*=button], [href^='tel: '], [href^='callto: '], [href^='mailto: '], [href^='sms: '], [href^='skype: '], [href^='whatsapp: '], [id*=btn], [id*=Btn], [id*=button], [id*=Button], a"))&&(null==a?void 0:a(t,r))){o=!0,i=t;break}t=t.parentElement}return n?i:o};String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){return e=!e||e<0?0:+e,this.substring(e,e+t.length)===t}}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){return(void 0===e||e>this.length)&&(e=this.length),this.substring(e-t.length,e)===t});var J=function(t,e,r,n){switch(e){case"EQUALS":if([f.TOKENIZE_TEXT,f.IMG_SRC,f.ELEMENT_V2].includes(n))try{return X(t,n,r,!1)}catch(t){(0,_.vU)(m.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:G[n]});break}if("ELEMENT"==n)try{for(var o=document.querySelectorAll(r),i=Array.prototype.slice.call(o),a=0;a0)return!0;break;case"LT":if(tr)return!0;break;case"LT_OR_EQUAL":if(t<=r)return!0;break;case"GT_OR_EQUAL":if(t>=r)return!0;break;case"CONTAINS":if(r.split(";").filter(function(e){return(null==e?void 0:e.length)>0&&t.indexOf(e)>-1}).length>0)return!0;break;case"DOES_NOT_EQUAL":if(0==r.split(";").filter(function(e){return t==e}).length)return!0;break;case"DOES_NOT_CONTAIN":if(-1==t.indexOf(r))return!0;break;case"STARTS_WITH":if(t.startsWith(r))return!0;break;case"ENDS_WITH":if(t.endsWith(r))return!0;break;case"MATCHES_REGEX":if(r.test(t))return!0;break;case"MATCHES_REGEX_IGNORE_CASE":if(!r.test(t))return!0;break;case"MATCHES_CSS_SELECTOR":if(I(t,r,!0))return!0;break;case"DOSE_NOT_MATCHES_CSS_SELECTOR":if(I(t,r,!1))return!0}return!1};function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}("visibility"==t?["pageview","history_change","visibility"]:["pageview","history_change","click"]);!(a=u()).done;){var c=a.value;if(z[c].indexOf(i)>-1){var s=void 0;switch(c){case"click":s=this.click(i,r);break;case"pageview":s=this.pageview(i);break;case"history_change":s=this.history_change(i,r,n);break;case"visibility":s=this.visibility(i,e.value,o)}return s}}},e.click=function(t,e){var r;if(!e)return!1;switch(t){case"ELEMENT":case"ELEMENT_V2":case"TOKENIZE_TEXT":case"IMG_SRC":case"ELEMENT_TARGET":r=e.target;break;case"ELEMENT_CLASSES":r=e.target.className;break;case"ELEMENT_ID":r=e.target.id;break;case"ElEMENT_URL":r=e.target.href||e.target.src||"";break;case"ELEMENT_TEXT":r=e.target.text||"";break;default:r=null}return r},e.pageview=function(t){var e;switch(t){case"PAGE_URL":case"PAGE_URL_V2":e=P(location.href,Q);break;case"PAGE_HOSTNAME":e=location.hostname;break;case"PAGE_PATH":e=location.pathname;break;case"REFERRER":e=P(document.referrer,Q);break;default:e=null}return e},e.history_change=function(t,e,r){var n;switch(t){case"NEW_HISTORY_FRAGMENT":n=location.hash;break;case"OLD_HISTORY_FRAGMENT":n=r.old_hash;break;case"NEW_HISTORY_STATE":n=history.state;break;case"OLD_HISTORY_STATE":n=r.old_state;break;case"HISTORY_SOURCE":n=e.type;break;default:n=null}return n},e.visibility=function(t,e,r){var n;switch(void 0===r&&(r=document),t){case"ELEMENT_ID":n="#"+e;break;case"ELEMENT_CLASS":n="."+e;break;case"ELEMENT":n=e;break;default:n=null}return r.querySelector(n)},t}(),tt=r(515),te=r.n(tt);function tr(t,e){return(tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var tn=function(t){function e(e,r){var n;return(n=t.call(this)||this).BaseConf=e,n.SDK_ID=r,n.BaseConf.forEach(function(t){t.id=t.code_id,t.conditions=t.conditions||[],t.conditions.forEach(function(t){t.result=!1})}),n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,tr(e,t),e.prototype.sendDebugEvent=function(t,e,r){var n=this.BaseConf,o=[];n.forEach(function(t){t.code_id==e&&(t.conditions=r),o.push(t)});var i={sdk_id:this.SDK_ID,event_name:t,data:o};this.emit("jelly_message",i)},e}(te()),to=function(t){var e,r={};try{if(t.currency&&(r.currency=t.currency),t.value){document.querySelectorAll(t.value).length;var n=document.querySelector(t.value);(null==n?void 0:n.innerHTML)&&(r.ori_value=n.innerHTML,r.value=ti(null==(e=n.innerHTML)?void 0:e.trim(),t.value_index,t.value_parsing_method))}if(t.contents&&void 0!==t.contents[0].content_type&&(1===t.contents[0].content_type&&(r.content_type="product"),2===t.contents[0].content_type&&(r.content_type="product_group")),t.contents&&t.contents[0].content_name){var o=document.querySelector(t.contents[0].content_name);r.content_name=null==o?void 0:o.innerHTML}if(t.contents&&t.contents[0].content_id){if(t.contents[0].content_from===h.CLICK_EVENT){var i=document.querySelector(t.contents[0].content_id);r.content_id=null==i?void 0:i.innerHTML}else if(t.contents[0].content_from===h.DESTINATION_URL){var a=new URL(location.href);if(t.contents[0].content_id.startsWith("path")&&(r.content_id=a.pathname.split("/")[t.contents[0].content_id.split("|")[1]]),t.contents[0].content_id.startsWith("search")){var u=new URLSearchParams(a.search),c=t.contents[0].content_id.split("|")[1];r.content_id=u.get(c)}}}return r}catch(t){return(0,_.vU)(m.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v1_error"}),r}},ti=function(t,e,r){var n="";if(-1===e||void 0===e){var o=tu(t)[0];n=void 0!==o?ta(o,r):""}else{var i=tu(t)[e];n=void 0!==i?ta(i,r):""}return n},ta=function(t,e){var r="";if((e===p.KEEP||e===p.WRONG)&&(r=t),e===p.TURNINTOINTEGER&&(r=t.replace(/[,\.]/g,"")),e===p.TURNINTODECIMAL){var n=t.split(/[,\.]/g),o="";n.forEach(function(t,e){e0&&(i.contents=[],tl(t.contents,i.contents,e)),t.parameter_list_v2&&Object.assign(i,tp(t,e));var u={};return i.eb_email&&(null==(n=i.eb_email)?void 0:n.length)>0&&(u.eb_email=i.eb_email),i.eb_phone_number&&(null==(o=i.eb_phone_number)?void 0:o.length)>0&&(u.eb_phone_number=i.eb_phone_number),i}catch(t){return(0,_.vU)(m.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v2_error"}),i}},td=function(t,e,r){try{var n=t.split(k),o="";if(Object.keys(e).forEach(function(t){var r;if(null!==e[t]||void 0!==e[t])if("contents"===t){var n=e[t];o+=',"'+t+'":[',null==n||n.map(function(t,e){o+="{";var r=Object.keys(t);r.forEach(function(e,n){"content_id"===e&&t[e]&&(t[e]=encodeURIComponent(t[e])),o+='"'+e+'":"'+t[e]+'"'+(n===(null==r?void 0:r.length)-1?"":",")}),o+="}"+(e===(null==n?void 0:n.length)-1?"":",")}),o+="]"}else((r=["eb_email","eb_phone_number"],void 0===r)?void 0:r.includes(t))||"content_name"===t||(o+=',"'+t+'":"'+("value"!==t?encodeURIComponent(e[t]):e[t])+'"')}),r&&(o+=',"dynamic_parameter_config":'+JSON.stringify(r)),o)return n[0]+k+o+n[1];return t}catch(e){return(0,_.vU)(m.O.CUSTOM_ERROR,e,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v2_transform_error"}),t}},tv=r(332),t_=function(t,e,r,n,o,i){var a,u,c,s;try{var l={},f={},p=null==(u=null==(a=(0,tv.Ie)())?void 0:a.instance)?void 0:u.call(a,t);o&&(Object.keys(o).forEach(function(t){var e,r=o[t];null!=r&&""!==r&&("eb_email"===t||"eb_phone_number"===t?(null==r?void 0:r.length)>0&&(f[t]=r):"content_name"===t?l.contents=null==(e=l.contents||[])?void 0:e.concat(r):l[t]=r)}),(null==(c=Object.keys(f))?void 0:c.length)>0&&(null==(s=null==p?void 0:p.identify)||s.call(p,f)),Object.keys(f).forEach(function(t){delete l[t]})),l.eb_version=n,i&&(l.eb_rule_id=String(i)),r&&(l.is_button="true"),l.is_standard_mode="1",null==p||p.track(e,l,{})}catch(t){(0,_.vU)(m.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"normalize_payload_error"})}};function tm(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ty(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ty(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ty(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r-1){var i=tE.dispatcher("visibility",t,null,null,e.document),a="_"+t.value;i&&F(e,i)&&!r[a]&&(o.push(S(i,"",t)),r[a]=!0)}else J(tE.dispatcher("visibility",t),t.operator,t.value,t.variable_type)||(n=!1)}),o.length>0&&Promise.all(o).then(function(e){for(var r,o=!0,i=tm(e);!(r=i()).done;)r.value.result&&n||(o=!1);o&&C(t.code)},function(){})})}};function tw(t,e){return(tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var tO=function(t){function e(e,r){var n;if((n=t.call(this)||this).BaseConf=r,n.SDK_ID=e,window.jelly_tool_events&&window.jelly_tool_events.length&&window.jelly_tool_events.forEach(function(t){n.on(t.name,t.callback)}),n.emit("jelly_event",{SDK_ID:e,BaseConf:r||[]}),n.BaseConf instanceof Array){if(self._jelly_sdks=self._jelly_sdks||{},self._jelly_sdks[e]){if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}self._jelly_sdks[e]=!0;var o=n.dispatch();n.trigger=new tD(o,r,e,function(t){n.emit("jelly_message",t)})}return n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,tw(e,t),e.prototype.dispatch=function(){var t={CLICK:[],PAGEVIEW:[],VISIBILITY:[],HISTORY_CHANGE:[]};return this.BaseConf.forEach(function(e){var r={code_id:e.code_id,code:e.code,conditions:e.conditions||[]};void 0!==e.trigger_type&&t[e.trigger_type]&&t[e.trigger_type].push(r)}),t},e}(te());window.TiktokJelly=tO}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},r.rv=function(){return"1.3.15"},r.ruid="bundler=rspack@1.3.15",function(){"use strict";var t,e,n,o,i,a,u,c=r(783),s=r(825),l=r(332),f=r(790),p=r(319),h=function(){var t=(0,l.Ie)();return"object"==typeof t&&t._i?t._i:{}},d=function(t,e){var r=h()||{};Object.keys(r).forEach(function(n){var o=r[n];o._init||o.push([t].concat(e))})},v=function(t,e,r){var n=(h()||{})[t];if(n){if(n._init)return;n.push([e].concat(r))}};function _(t,e){try{var r=new URL(t).searchParams.getAll(e);return r[r.length-1]||""}catch(t){return""}}var m=function(t,e,r){try{var n=_(e,t);if(n)return n;return _(r||"",t)}catch(t){}return""},y=function(){if(!(0,f.zd)())return{url:window.location.href,referrer:document.referrer,title:document.title};if(!(0,f.xD)()){var t,e,r,n,o,i;return{url:(null==(t=window)||null==(e=t.top)?void 0:e.location.href)||"",referrer:(null==(r=window)||null==(n=r.top)?void 0:n.document.referrer)||"",title:(null==(o=window)||null==(i=o.top)?void 0:i.document.title)||""}}var a=document.title,u=window.location.href,c=document.referrer;if(/doubleclick\.net/.test(window.location.hostname)){var s=window.location.pathname,l={};return s.split(";").forEach(function(t){var e=t.split("="),r=e[0],n=e[1];r&&n&&(l[r]=decodeURIComponent(n))}),{url:l["~oref"]||u,referrer:c,title:a}}return{url:u,referrer:c,title:a}},g=function(t){var e=y().url;try{return new URL(t||e)}catch(t){}return null};function E(){return y().url.indexOf("disneyplus.com")>-1||(0,f.b)("74680575")}(oV=ih||(ih={})).PIXEL_CODE="pixelCode",oV.EVENT_SOURCE_ID="eventSourceId",oV.SHOP_ID="shopId",(id||(id={})).CLICK="click",(oH=iv||(iv={})).BEFORE_REPORT="beforeReport",oH.QUEUE="queue",(i_||(i_={})).UPDATE_CONFIG="observer:updateConfig";var D=r(408),b={TTQ:Symbol.for("TTQ"),GLOBAL_TTQ:Symbol.for("GLOBAL_TTQ"),SHOPIFY_TTQ:Symbol.for("SHOPIFY_TTQ"),ENV:Symbol.for("ENV"),CONTEXT:Symbol.for("CONTEXT"),REPORTER:Symbol.for("REPORTER"),REPORTERS:Symbol.for("REPORTERS"),PLUGIN:Symbol.for("PLUGIN"),PLUGINS:Symbol.for("PLUGINS"),TTQ_GLOBAL_OPTIONS:Symbol.for("TTQ_GLOBAL_OPTIONS"),EVENT_EMITTER:Symbol.for("EVENT_EMITTER"),PERFORMANCE_PLUGIN:Symbol.for("PERFORMANCE_PLUGIN"),INTERACTION_PLUGIN:Symbol.for("INTERACTION_PLUGIN"),INTERACTION_PLUGIN_MONITOR:Symbol.for("INTERACTION_PLUGIN_MONITOR"),PERFORMANCE_PLUGIN_MONITOR:Symbol.for("PERFORMANCE_PLUGIN_MONITOR"),ADVANCED_MATCHING_PLUGIN:Symbol.for("ADVANCED_MATCHING_PLUGIN"),AUTO_ADVANCED_MATCHING_PLUGIN:Symbol.for("AUTO_ADVANCED_MATCHING_PLUGIN"),CALLBACK_PLUGIN:Symbol.for("CALLBACK_PLUGIN"),IDENTIFY_PLUGIN:Symbol.for("IDENTIFY_PLUGIN"),MONITOR_PLUGIN:Symbol.for("MONITOR_PLUGIN"),WEB_FL_PLUGIN:Symbol.for("WEB_FL_PLUGIN"),SHOPIFY_PLUGIN:Symbol.for("SHOPIFY_PLUGIN"),AUTO_CONFIG_PLUGIN:Symbol.for("AUTO_CONFIG_PLUGIN"),DIAGNOSTICS_CONSOLE_PLUGIN:Symbol.for("DIAGNOSTICS_CONSOLE_PLUGIN"),COMPETITOR_INSIGHT_PLUGIN:Symbol.for("COMPETITOR_INSIGHT_PLUGIN"),EVENT_BUILDER_PLUGIN:Symbol.for("EVENT_BUILDER_PLUGIN"),ENRICH_IPV6_PLUGIN:Symbol.for("ENRICH_IPV6_PLUGIN"),LPV_PLUGIN:Symbol.for("LPV_PLUGIN"),RUNTIME_MEASUREMENT_PLUGIN:Symbol.for("RUNTIME_MEASUREMENT_PLUGIN"),TEXT_TREE_WALKER_PLUGIN:Symbol.for("TEXT_TREE_WALKER_PLUGIN"),PAGE_PERFORMANCE_MONITOR:Symbol.for("PAGE_PERFORMANCE_MONITOR"),PAGE_INTERACTION_MONITOR:Symbol.for("PAGE_INTERACTION_MONITOR"),PAGEDATA_PLUGIN:Symbol.for("PAGEDATA_PLUGIN"),CDP_VISITER_PLUGIN:Symbol.for("CDP_VISITER_PLUGIN"),HISTORY_OBSERVER:Symbol.for("HISTORY_OBSERVER"),INTERACTION_OBSERVER:Symbol.for("INTERACTION_OBSERVER"),BATCH_SERVICE:Symbol.for("BATCH_SERVICE"),REPORT_SERVICE:Symbol.for("REPORT_SERVICE"),AD_SERVICE:Symbol.for("AD_SERVICE"),APP_SERVICE:Symbol.for("APP_SERVICE"),BRIDGE_SERVICE:Symbol.for("BRIDGE"),HTTP_SERVICE:Symbol.for("HTTP_SERVICE"),COOKIE_SERVICE:Symbol.for("COOKIE_SERVICE"),CONSENT_SERVICE:Symbol.for("CONSENT_SERVICE"),JS_BRIDGE:Symbol.for("JS_BRIDGE"),TTQ_REPORTERS:Symbol.for("TTQ_REPORTERS"),INTERACTION_MONITOR:Symbol.for("INTERACTION_MONITOR"),PERFORMANCE_MONITOR:Symbol.for("PERFORMANCE_MONITOR"),SANDBOX_PIXEL_API:Symbol("SANDBOX_PIXEL_API")},w=r(74);(oW=im||(im={})).INIT_START="initStart",oW.INIT_END="initEnd",oW.PATCH_END="patchEnd",oW.CONTEXT_INIT_START="contextInitStart",oW.CONTEXT_INIT_END="contextInitEnd",oW.PAGE_URL_WILL_CHANGE="pageUrlWillChange",oW.PAGE_URL_DID_CHANGE="pageUrlDidChange",oW.PAGE_DID_LOAD="pageDidLoad",oW.PAGE_WILL_LEAVE="pageWillLeave",oW.PAGE_LCP="pageLcp",oW.AD_INFO_INIT_START="adInfoInitStart",oW.AD_INFO_INIT_END="adInfoInitEnd",oW.BEFORE_AD_INFO_INIT_START="beforeAdInfoInitStart",oW.PIXEL_SEND="pixelSend",oW.PIXEL_DID_MOUNT="pixelDidMount",(oK=iy||(iy={})).UNKNOWN="-1",oK.LOADING="0",oK.INTERACTIVE="1",oK.COMPLETE="2",(oY=ig||(ig={})).HISTORY_CHANGE="hc",oY.URL_CHANGE="uc";var O=["page","track","identify"],A=["holdConsent","revokeConsent","grantConsent"],I=["identify"],C=["instance","instances","loadPixel","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"];(oX=iE||(iE={})).EMPTY_EVENT_TYPE_NAME="EMPTY_EVENT_TYPE_NAME",oX.MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT="MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT",oX.LONG_EVENT_TYPE_NAME="LONG_EVENT_TYPE_NAME",oX.MISSING_VALUE_PARAMETER="MISSING_VALUE_PARAMETER",oX.MISSING_CURRENCY_PARAMETER="MISSING_CURRENCY_PARAMETER",oX.MISSING_CONTENT_ID="MISSING_CONTENT_ID",oX.MISSING_EMAIL_AND_PHONE="MISSING_EMAIL_AND_PHONE",oX.INVALID_EVENT_PARAMETER_VALUE="INVALID_EVENT_PARAMETER_VALUE",oX.INVALID_CURRENCY_CODE="INVALID_CURRENCY_CODE",oX.INVALID_CONTENT_ID="INVALID_CONTENT_ID",oX.INVALID_CONTENT_TYPE="INVALID_CONTENT_TYPE",oX.INVALID_EMAIL_FORMAT="INVALID_EMAIL_FORMAT",oX.INVALID_PHONE_NUMBER_FORMAT="INVALID_PHONE_NUMBER_FORMAT",oX.INVALID_EMAIL_INFORMATION="INVALID_EMAIL_INFORMATION",oX.INVALID_PHONE_NUMBER_INFORMATION="INVALID_PHONE_NUMBER_INFORMATION",oX.DUPLICATE_PIXEL_CODE="DUPLICATE_PIXEL_CODE",oX.MISSING_PIXEL_CODE="MISSING_PIXEL_CODE",oX.INVALID_PIXEL_CODE="INVALID_PIXEL_CODE";var T=function(t,e,r){t.isBound(e)?t.rebind(e).toConstantValue(r):t.bind(e).toConstantValue(r)},S=function(){var t=(0,l.Ie)();return t&&t._i||{}},R=function(t,e,r){void 0===r&&(r=D.S.OFFSITE);try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var n={taskName:window.ttq._pf_tn,functionName:"webTtqFactory",start:performance.now()}}catch(t){}T(t,b.ENV,e),T(t,w.M.SignalType,r);var o=t.get(b.TTQ);try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}return o},N=function(t,e){var r,n=e.id,o=e.type,i=void 0===o?ih.PIXEL_CODE:o,a=e.info,u=e.options,c=e.plugins,s=void 0===c?{}:c,l=e.rules;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var f={taskName:window.ttq._pf_tn,functionName:"webReporterFactory",start:performance.now()}}catch(t){}var p=t.get(b.TTQ),h=t.get(b.TTQ_REPORTERS);if(!h.some(function(t){return t.getReporterId()===n})){T(t,w.M.ID,n),T(t,w.M.Type,i),T(t,w.M.Info,a||((r={})[i]=n,r)),T(t,w.M.Options,void 0===u?{}:u),T(t,w.M.Plugins,s),T(t,w.M.Rules,void 0===l?[]:l),p.enableFirstPartyCookie((null==a?void 0:a.firstPartyCookieEnabled)||!1);var d=t.get(b.REPORTER);if(s){var v=s.AdvancedMatching,_=s.AutoAdvancedMatching,m={};v&&Object.assign(m,v),_&&Object.assign(m,_),d.setAdvancedMatchingAvailableProperties(m)}d.on(iv.BEFORE_REPORT,function(t,e,r,n,o){p.dispatch(im.PIXEL_SEND,t,e,r,n,o)},{}),h.push(d),t.rebind(b.TTQ_REPORTERS).toConstantValue(h),p.dispatch(im.PIXEL_DID_MOUNT,d);try{window.ttq&&window.ttq._ppf&&(f.end=performance.now(),window.ttq._ppf.push(f))}catch(t){}return d}},F=function(t,e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var r={taskName:window.ttq._pf_tn,functionName:"mergeWebGlobalTtq",start:performance.now()}}catch(t){}["getReporter","usePlugin","getPlugin","resetCookieExpires","getEmitter"].forEach(function(r){t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o-1&&setTimeout(function(){(0,c.um)(s.O.CUSTOM_INFO,{pixelCode:a,custom_name:e})}),t[e].apply(t,r)}catch(t){return(0,c.vU)(s.O.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),O.forEach(function(e){Object.defineProperty(o,e,{get:function(){return function(){try{var r=1==arguments.length&&void 0===arguments[0]?[]:Array.prototype.slice.call(arguments);return d(e,r),t[e].apply(t,r)}catch(t){return(0,c.vU)(s.O.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),r[n]._mounted=!0,r[n].initialize=!0,(0,l.gM)(r[n]);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},k=function(t,e,r){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var n={taskName:window.ttq._pf_tn,functionName:"handleCache",start:performance.now()}}catch(t){}M(e),Object.entries(S()).forEach(function(n){var o=n[0],i=n[1];if(!i._init&&("Tealium"===(0,l.kW)(o)||(0,l.cH)()||i.info)&&(e.getReporter(o)?(0,c.ZK)(iE.DUPLICATE_PIXEL_CODE):(r||N)(t,{id:o,type:ih.PIXEL_CODE,info:i.info,options:i.options,rules:i.rules,plugins:i.plugins}),i._init=!0,i.length>0))for(;i.length;){var a=i.shift();if(a){var u=a[0],f=a.slice(1),p=e.instance(o);if(p)switch(u){case"identify":E()?p.identify(f[0],f[1]):e.identify(f[0],f[1]);break;case"page":e.page(f[0]);break;case"track":p.track(f[0],f[1],f[2]||{});break;default:p[u]?p[u](f[0],f[1],f[2]||{}):(0,c.vU)(s.O.CUSTOM_ERROR,Error("action not find: "+p[u]))}}}}),j(e);try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}},M=function(t){try{var e=(0,l.Ie)();[].concat(A,I).forEach(function(r){e.find(function(n,o){var i=n[0],a=n.slice(1);if(i===r)return t[r].apply(t,a),e.splice(o,1),!0})})}catch(t){(0,c.vU)(s.O.API_ERROR,t,{extJSON:{api:"handleP0APICache"}})}},j=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"handleGlobalCache",start:performance.now()}}catch(t){}var r=(0,l.Ie)();if(r.length>0)for(;r.length;){var n=r.shift();if(n){var o=n[0],i=n.slice(1);switch(!(0,l.ri)("Tealium")&&d(o,i),o){case"identify":t.identify(i[0],i[1]);break;case"page":t.page(i[0]);break;case"track":t.track(i[0],i[1],i[2]||{});break;case"enableCookie":t.enableCookie();break;case"disableCookie":t.disableCookie();break;case"holdConsent":t.holdConsent();break;case"revokeConsent":t.revokeConsent();break;case"grantConsent":t.grantConsent()}}}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}};function B(t,e,r){return(B=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}()?function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&U(o,r.prototype),o}:Reflect.construct.bind()).apply(null,arguments)}function U(t,e){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var q="_ttq_inject",G=function(){function t(){this.bindings={},this.rebind=this.bind}var e=t.prototype;return e.bind=function(t){var e=this;return{to:function(r){return e.bindings[t.toString()]={constructor:r,singleton:!1},e},toConstantValue:function(r){return e.bindings[t.toString()]={value:r,singleton:!0},e}}},e.isBound=function(t){return!!this.bindings[t.toString()]},e.inSingletonScope=function(){var t=Object.keys(this.bindings),e=t[t.length-1];if(e){var r=this.bindings[e];r&&(this.bindings[e]=Object.assign(Object.assign({},r),{singleton:!0}))}return this},e.get=function(t){var e=this.bindings[t.toString()];if(!e)throw Error("No binding found for identifier: "+String(t));return void 0!==e.value?e.value:e.singleton?(e.instance||(e.instance=this.createInstance(e.constructor)),e.instance):this.createInstance(e.constructor)},e.createInstance=function(t){var e=this;if(!t)throw Error("Cannot create instance because constructor is not defined.");var r=(t[q]||[]).map(function(t){try{return e.get(t.identifier)}catch(e){if(t.optional)return;throw e}});return B(t,r)},t}();function V(){return function(t){}}function H(t){return function(e,r,n){e[q]=e[q]||[],e[q][n]=Object.assign({},e[q][n],{identifier:t})}}function W(){return function(t,e,r){t[q]=t[q]||[],t[q][r]=Object.assign({},t[q][r],{optional:!0})}}(oJ=iD||(iD={})).BIND="bind",oJ.REBIND="rebind";var K=function(t){try{var e=window.sessionStorage.getItem(t);if(!e)return null;return JSON.parse(e)}catch(t){return null}},Y=function(t){try{window.sessionStorage.removeItem(t)}catch(t){}},X=function(t,e){try{var r=JSON.stringify(e);window.sessionStorage.setItem(t,r)}catch(t){}},J=r(229),Z="https://analytics.tiktok.com/api/v2",z=Z+"/pixel",Q=Z+"/performance",$=Z+"/interaction",tt=Z+"/performance_interaction",te=Z+"/pixel/perf",tr=Z+"/pixel/inter",tn=Z+"/pixel/act",to=Z+"/monitor",ti="https://analytics-ipv6.tiktokw.us/ipv6/enrich_ipv6",ta="ttclid",tu="_toutiao_params",tc=function(t,e){try{var r=m(ta,t,e)||void 0,n=m("ext_params",t,e)||void 0,o=m(tu,t,e)||void 0,i=parseInt(m("ttuts",t,e),10)||void 0,a=o?JSON.parse(o):{},u=a.log_extra,c=void 0===u?void 0:u,s=a.idc,l=void 0===s?void 0:s,f=a.cid,p=void 0===f?void 0:f;return{callback:r,ext_params:n,log_extra:c,creative_id:p,idc:l,ttuts:i,ad_info_from:(c||l||p)&&"url"}}catch(t){return{}}},ts=function(t,e){try{var r=t.log_extra,n=t.ttuts;if(!(0,f.gn)())return!0;if(!(0,f.XA)(e)){if(null!=n)return 1!==n;return!0}if(r){var o=JSON.parse(r);return 1!==o.user_tracking_status}if(null===t.ATTStatus||void 0===t.ATTStatus)return!0;return 3===t.ATTStatus}catch(t){return!1}},tl=function(t,e){var r={};try{var n=t.creative_id,o=(t.callback,t.idc),i=t.convert_id,a=t.ad_info_from,u=t.ad_info_status,c=t.log_extra,s=t.ext_params,l=t.ATTStatus;if(n&&(r.creative_id=n),o&&(r.idc=o),i&&(r.convert_id=i),a&&(r.ad_info_from=a),u&&(r.ad_info_status=u),s&&(r.ext_params=s),l&&(r.ATTStatus=l),c){var f=JSON.parse(c),p=f.ad_user_agent,h=f.ad_id,d=f.rit,v=f.ocbs,_=f.vid,m=f.idc,y=f.country_id;h&&(r.ad_id=h),d&&(r.rit=d),p&&(r.ad_user_agent=p),v&&(r.ocbs=v),_&&(r.vid=_),m&&(r.idc=m),y&&(r.country_id=y)}return r}catch(t){return e&&e(t),r}},tf=r(188),tp=function(t){void 0===t&&(t={});var e=Object.assign({},{path:"/"},t);"number"==typeof e.expires&&(e.expires=new Date(Date.now()+864e5*e.expires)),e.expires instanceof Date&&(e.expires=e.expires.toUTCString());var r="";for(var n in e)e[n]&&(r+="; "+n,!0!==e[n]&&(r+="="+e[n].split(";")[0]));return r},th=function(t,e,r,n){void 0===r&&(r="/"),void 0===n&&(n=(0,tf.pW)()),tE(t,e,{path:r,expires:n})},td=function(t){if(t&&t.cde){var e=t.cde;return Object.assign({},J.Yp,{expires:e})}return J.Yp},tv=function(){var t=tg(J.qC);if(t&&tb(t)){var e=tw(),r=window.location.hostname.split("."),n="."+r.slice(r.length-e-1).join(".");return null!=n?n:void 0}},t_=0,tm=0,ty=function(t){var e={};return document.cookie.split(";").forEach(function(t){var r=t.split("=");e[r[0].trim()]=r.slice(1).join("=")}),e[t]||""},tg=function(t){if(0===document.cookie.length)return"";var e=ty(t);return e?unescape(e):""},tE=function(t,e,r){try{if(r){var n=window.location.hostname.split(".");if(tm=n.length,(t_=tw())&&t_=3&&e.includes("tt")&&!isNaN(Number(e[2]))&&Number(e[2])>0},tw=function(){if(t_)return t_;var t=tg(J.qC);return t&&tb(t)?Number(t.split(".")[2]):0},tO=function(t,e,r){var n;return t!==J.qC||tb(e)||(e=(n=e)?n.split(".")[0]+".tt."+((0,f.z6)()?0:tw()):""),document.cookie=t+"="+e+tp(r),e===tg(t)},tA=function(t,e,r){void 0===t&&(t=""),void 0===e&&(e="");try{var n=m("tt_test_id",t,r);return n&&n!==e&&th("tt_test_id",n,void 0,"session"),n||e}catch(t){return""}},tI=r(729);function tC(){return(tC=Object.assign?Object.assign.bind():function(t){for(var e=1;e18e5?{sessionId:n.toString()+"::"+(0,p.$j)(20),sessionCount:e+1,lastEventTS:n,isSessionStart:!0}:tC({},t,{lastEventTS:n,isSessionStart:!1})},tF=function(t){var e=t.sessionId,r=t.sessionCount,n=t.lastEventTS,o=t.hasReportedES;return e+"."+r+"."+n+"."+(null!=o?o:0)},tL=function(t,e,r){var n=t||{},o=n.sessionId,i=n.sessionCount,a=n.isSessionStart;return Object.assign({csid:void 0===o?"":o,page_csid:e?e.sessionId:"",csct:void 0===i?1:i},void 0!==a&&a?{css:1}:{},r?{pixel_code:r}:{})},tP=function(){function t(t){this.pixelCode="",this.loaded=!1,this.status=1,this.name="",this.advertiserID="",this.setupMode=0,this.partner="",this.reporterInfo={},this.plugins={},this.options={},this.rules=[],this.pixelCode=t}var e=t.prototype;return e.getParameterInfo=function(){return Promise.resolve({pixelCode:this.pixelCode,name:this.name,status:this.status,setupMode:this.setupMode,advertiserID:this.advertiserID,partner:this.partner,is_onsite:!1,advancedMatchingAvailableProperties:{}})},e.getReporterId=function(){return""},e.getReporterUniqueLoadId=function(){return""},e.getReporterPartner=function(){},e.getReporterInfo=function(){return{reporter:{}}},e.getReportResultSet=function(){return[]},e.isOnsite=function(){return!1},e.isPartnerReporter=function(){return!1},e.setAdvancedMatchingAvailableProperties=function(t){},e.clearHistory=function(){},e.page=function(t){},e.identify=function(t,e){},e.track=function(t,e,r){return Promise.resolve(null)},e.getUserInfo=function(t){return{}},e.getReporterMatchedUserFormatInfo=function(){return{}},e.getReporterMatchedUserFormatInfoV2=function(){return{}},e.assemblyData=function(){return{event:"",message_id:"",event_id:"",is_onsite:!1,properties:{},context:{ad:{},device:{},library:{name:"",version:""},page:{url:""},pageview_id:"",session_id:"",variation_id:"",user:{}},partner:"",timestamp:""}},e.assemblySelfHostData=function(){return this.assemblyData()},e.trackSync=function(){},e.getReportEventHistoryKey=function(t){return"tiktok"},e.hasReportEventHistory=function(t,e){return!1},e.getCookieBasedSession=function(){return tS()},e.setCookieBasedSession=function(t){},t}();new tP("empty");var tx=function(){function t(t,e,r){this.initialize=!1,this.plugins=[],this.observers=[],this.reporters=[],this.context=t,this.reportService=e,r&&(this.emitter=r)}var e=t.prototype;return e.init=function(t,e){this.initContextInfo(t,e),this.initialize=!0},e.initContextInfo=function(t,e){var r=this;this.dispatch(im.CONTEXT_INIT_START),this.initAdInfo(t,e),this.initAppInfo(t,e),this.initLocalServiceInfo(),this.reportService.pushPreposition(Promise.resolve().then(function(){return r.initUserInfo()})),this.initTestId(t,e),this.dispatch(im.CONTEXT_INIT_END)},e.setPageIndex=function(t){},e.setPageInfo=function(t,e){var r=this.context.getPageInfo().url;if(r!==t){this.dispatch(im.PAGE_URL_WILL_CHANGE,e||r,t);var n=this.context.setPageInfo(t,e||r);(null==n?void 0:n.pageIndex)&&this.setPageIndex(n.pageIndex),this.dispatch(im.PAGE_URL_DID_CHANGE,t,r)}},e.initAdInfo=function(t,e){},e.initOffsiteAdInfo=function(t){},e.initAppInfo=function(t,e){},e.initUserInfo=function(){},e.initTestId=function(t,e){},e.usePlugin=function(t){try{if(!this.plugins.find(function(e){return e.name===t.name})){this.plugins.push(t);var e=t.name;e&&(this[e[0].toLowerCase()+e.slice(1)+"Plugin"]=t)}}catch(t){}},e.useObserver=function(t){try{if(!this.observers.find(function(e){return e.name===t.name})){this.observers.push(t);var e=t.name;e&&(this[""+(e[0].toLowerCase()+e.slice(1))]=t)}}catch(t){}},e.getPlugin=function(t){return this.plugins.find(function(e){return e.name===t})||null},e.getReporter=function(t){return this.reporters.find(function(e){return e.getReporterId()===t})},e.instance=function(t){var e=this.getReporter(t);return e||((0,c.vU)(s.O.PIXEL_EMPTY,Error(""),{pixelCode:t}),new tP(t))},e.instances=function(){return this.reporters},e.identify=function(t,e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var r={taskName:window.ttq._pf_tn||"identify_api_handler",functionName:window.ttq._pf_tn&&"identify_api_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="identify_api_handler")}}catch(t){}var n=(0,p.oh)(t,e);this.context.setUserInfo(n);try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r),"identify_api_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},e.page=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e={taskName:window.ttq._pf_tn||"page_api_handler",functionName:window.ttq._pf_tn&&"page_api_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="page_api_handler")}}catch(t){}t.url!==this.context.getPageInfo().url&&(this.setPageInfo(t.url,t.referrer),this.reporters.forEach(function(t){t.clearHistory()}));var r=Object.assign({},t);delete r.url,delete r.referrer,this.reporters.forEach(function(t){t.page(r)});try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e),"page_api_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},e.isOnsitePage=function(){return this.context.getSignalType()===D.S.ONSITE||this.reporters.every(function(t){return t.isOnsite()})},e.track=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r={});try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var n={taskName:window.ttq._pf_tn||"track_api_handler",functionName:window.ttq._pf_tn&&"track_api_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="track_api_handler")}}catch(t){}this.instances().forEach(function(n,o){n.track(t,e,Object.assign({_i:o},r))});try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n),"track_api_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},e.dispatch=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function tM(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}tx=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V()],tx);var tj=(oZ=tk().mark(function t(e,r){return tk().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===r&&(r=1),!(r>=0)){t.next=13;break}return t.prev=2,t.next=5,function(t){return new Promise(function(e,r){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=t;var o=document.getElementsByTagName("script")[0];o&&o.parentNode?o.parentNode.insertBefore(n,o):r("none element"),n.onload=function(){e(!0)},n.onerror=r})}(e);case 5:return t.abrupt("return",Promise.resolve(!0));case 8:return t.prev=8,t.t0=t.catch(2),t.abrupt("return",tj.call(null,e,r-1));case 11:t.next=14;break;case 13:throw Error;case 14:case"end":return t.stop()}},t,null,[[2,8]])}),oz=function(){var t=this,e=arguments;return new Promise(function(r,n){var o=oZ.apply(t,e);function i(t){tM(o,r,n,i,a,"next",t)}function a(t){tM(o,r,n,i,a,"throw",t)}i(void 0)})},function(t,e){return oz.apply(this,arguments)});(oQ=ib||(ib={})).TRACK="track",oQ.PERFORMANCE="performance",oQ.INTERACTION="interaction",oQ.PCM="PCM",oQ.PERFORMANCE_INTERACTION="performance_interaction",oQ.SELFHOST="selfhost",oQ.AUTO_CONFIG="auto_config",oQ.PAGE="Pf",oQ.PAGE_PERFORMANCE="page_performance",oQ.PAGE_INTERACTION="page_interaction";var tB=["EnrichAM"];(o$=iw||(iw={})).LDU="limited_data_use",o$.EVENTID="eventID",o$.EVENT_ID="event_id",(o0=iO||(iO={}))[o0.defaultReport=0]="defaultReport",o0[o0.httpReport=1]="httpReport",o0[o0.htmlHttpReport=2]="htmlHttpReport",(o1=iA||(iA={}))[o1.P0=0]="P0",o1[o1.P1=1]="P1",o1[o1.P2=2]="P2";var tU=["ttuts","ad_info_from"],tq="Pageview",tG=[],tV="EngagedSession",tH=["AED","ALL","AMD","ARS","AUD","AZN","BDT","BGN","BHD","BIF","BOB","BRL","BYN","CAD","CHF","CLP","CNY","COP","CRC","CZK","DKK","DOP","DZD","EGP","EUR","GBP","GEL","GTQ","HKD","HNL","HUF","IDR","ILS","INR","IQD","ISK","JOD","JPY","KES","KHR","KRW","KWD","KZT","LBP","MAD","MOP","MXN","MYR","NGN","NIO","NOK","NZD","OMR","PAB","PEN","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","SAR","SEK","SGD","THB","TND","TRY","TWD","TZS","UAH","USD","UZS","VES","VND","ZAR"],tW=function(){function t(){this.subscriberMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map}var e=t.prototype;return e.on=function(t,e,r){try{var n=Object.assign({throttle:!1,debounce:!1,once:!1,interval:500},r),o=this.subscriberMap.get(t)||[];if(o.some(function(t){return t.originalCallback===e}))return;o.push({originalCallback:e,wrappedCallback:this.wrapCallback(e,n),options:n}),this.subscriberMap.set(t,o)}catch(e){(0,c.vU)(s.O.CUSTOM_ERROR,e,{custom_name:"EventEmitter",custom_enum:t})}},e.emit=function(t){for(var e=this,r=arguments.length,n=Array(r>1?r-1:0),o=1;o=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V()],tW);var tK=function(t,e){if("selfhost"===t&&e&&(0,l.My)(e))return"https://"+(0,l.My)(e)+"/api/v2/pixel";var r={track:z,performance:Q,interaction:$,performance_interaction:tt,auto_config:tn,page_performance:te,page_interaction:tr}[t];return r||null};function tY(){return(tY=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V()],tJ);var tZ={ViewForm:"ViewContent",ViewConsultationPage:"ViewContent",ViewDownloadPage:"ViewContent",Checkout:"PlaceAnOrder",Registration:"CompleteRegistration",AddBilling:"AddPaymentInfo",StartCheckout:"InitiateCheckout",ClickInDownloadPage:"ClickButton",ClickInConsultationPage:"ClickButton",ClickForm:"ClickButton",ClickToDownload:"Download",Consult:"Contact",ConsultByPhone:"Contact",CompletePayment:"Purchase",SubmitForm:"Lead"},tz=["event_experiment","dynamic_parameter_config","eb_version","eb_rule_id","tf","trigger_source"],tQ=function(t){var e=t.getUserInfo().anonymous_id,r=tg(J.qC);e!==r&&t.setUserInfoWithoutIdentifyPlugin({anonymous_id:r})},t$=function(t,e,r){try{var n=window.location.hostname.split(".");if(void 0!==iI&&iI=0;o--){var i="."+n.slice(o).join(".");if(document.cookie=t+"="+e+tp(Object.assign({},r,{domain:i})),tg(t)===e){iI=o;break}}}catch(t){}},t0=function(t,e,r){var n=tS();return e&&(n=tN(e)),t$(t?J.ku+"_"+t:J.ku,tF(n),td(r)),n};function t1(t,e){return(t1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var t2=function(t){function e(e){var r,n,o=e.id,i=e.type,a=e.isOnsitePage,u=e.context,c=e.reporterInfo,s=e.ttqOptions,l=e.reportService,f=e.plugins,p=e.rules,h=e.options;return(n=t.call(this,u,l)||this).ttp="",n.loaded=!1,n.id=o,n.pixelCode=o,n.type=i,n.isOnsitePage=a,n.options=(void 0===h?{}:h)||{},n.plugins=(void 0===f?{}:f)||{},n.rules=(void 0===p?[]:p)||[],n.reporterInfo=Object.assign(c||{},((r={})[i]=o,r)),n.ttp=s.ttp||"",n.currency_list=s.currency_list||null,n.ttqPartner=s.partner||"",n.selfHostConfig=s.self_host_config||{},n.ttqOptions=s,n.pixelPromise=n.getInstance(),n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,t1(e,t);var r=e.prototype;return r.identify=function(t,e){var r=(0,p.oh)(t,e);this.context.setUserInfo(r,this.id)},r.getReporterId=function(){return this.id||""},r.getReporterUniqueLoadId=function(){return this.reporterInfo.loadId+"-"+this.getReporterId()},r.getReporterPartner=function(){var t;return(null==(t=this.reporterInfo)?void 0:t.partner)||""},r.setPixelInfo=function(t,e,r){var n,o=this.type;this.reporterInfo=Object.assign(this.reporterInfo,Object.assign({},t),((n={})[o]=this.getReporterId(),n)),e&&(this.rules=e),r&&(this.plugins=r)},r.getInstance=function(){return Promise.resolve(this)},r.getReporterInfo=function(){return this.reporterInfo.pixelCode?t.prototype.getReporterInfo.call(this):{shop_id:this.reporterInfo.shopId,eventSourceId:this.reporterInfo.eventSourceId}},r.getUserInfo=function(t){var e=this.context.getUserInfo(),r=(0,p.cm)(e,Object.assign({},this.advancedMatchingAvailableProperties));switch(t){case tI.Ts.Manual:return(0,p.cm)(this.isPartnerReporter()?r:e,{external_id:!0,email:!0,phone_number:!0,ttoclid:!0});case tI.Ts.ManualV2:return(0,p.cm)(this.isPartnerReporter()?r:e,{first_name:!0,last_name:!0,city:!0,state:!0,country:!0,zip_code:!0,partner_id:!0,ttoclid:!0});case tI.Ts.EBManual:return(0,p.cm)(e,{eb_email:this.advancedMatchingAvailableProperties.auto_email,eb_phone_number:this.advancedMatchingAvailableProperties.auto_phone_number});case tI.Ts.Auto:var n=(0,p.cm)(r,{external_id:!0,auto_email:!0,auto_phone_number:!0,ttoclid:!0});return Object.assign(n,(n.auto_email||n.auto_phone_number)&&e.auto_trigger_type?{auto_trigger_type:e.auto_trigger_type}:{});default:return r}},r.getReporterMatchedUserFormatInfo=function(){var t=this.context.getUserFormatInfo(),e=(0,p.QO)(t,this.isPartnerReporter()?this.advancedMatchingAvailableProperties:{external_id:!0,email:!0,phone_number:!0}),r=(0,p.cm)(t,{auto_email:!0,auto_phone_number:!0});return Object.keys(r).length>0&&(e.identity_params||(e.identity_params={}),Object.assign(e.identity_params,r)),e},r.getReporterMatchedUserFormatInfoV2=function(){var t=this.context.getUserFormatInfoV2(),e=this.isPartnerReporter()?this.advancedMatchingAvailableProperties:{external_id:!0,email:!0,phone_number:!0,first_name:!0,last_name:!0,city:!0,state:!0,country:!0,zip_code:!0,partner_id:!0};return(0,p.te)(t,e)},r.isOnsite=function(){var t;return!!(null==(t=this.reporterInfo)?void 0:t.is_onsite)},r.isPartnerReporter=function(){var t=this.getReporterPartner();return!!(t&&"None"!==t)},r.getSignalDiagnosticLabels=function(){var t=this.context.getSignalDiagnosticLabels();if(!t)return Object.assign({},tI.N4);var e=this.advancedMatchingAvailableProperties,r=e.email,n=e.phone_number,o=e.auto_email,i=e.auto_phone_number;r=!this.isPartnerReporter()||r,n=!this.isPartnerReporter()||n;var a=(0,p.cm)(t,{raw_email:r,raw_phone:n,hashed_email:r,hashed_phone:n,raw_auto_email:o,raw_auto_phone:i,raw_eb_email:!0,raw_eb_phone:!0});return Object.assign({},tI.N4,a)},r.setCookieBasedSession=function(t){return t&&(this.session=t),this.session},r.convertCookieBasedSession=function(t,e,r){return tT(this.reporterInfo,this.ttqOptions)&&t!==ib.AUTO_CONFIG&&e&&r?tL(e,r):{}},r.assemblyData=function(e,r,n,o,i){void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=ib.TRACK);var a,u,c=t.prototype.assemblyData.call(this,e,r,n,o,i);c.is_onsite=this.isOnsitePage.value;var s=(0,l.kW)(e)||this.ttqPartner;s&&(c.partner=s),c.signal_diagnostic_labels=this.getSignalDiagnosticLabels();var h=(0,l.ij)();h&&(c.context.userAgent=h);var d=function(){try{var t=document.readyState;if("loading"==t)return iy.LOADING;if("interactive"==t)return iy.INTERACTIVE;if("complete"==t)return iy.COMPLETE;return iy.UNKNOWN}catch(t){return iy.UNKNOWN}}();if(d&&(c.context.page.load_progress=d),E()&&!(0,l.n2)()&&Object.keys(this.context.userInfoFieldAllowlist).length){var v=Object.entries(this.context.userInfoFieldAllowlist).filter(function(t){var r=t[1];return -1===r.indexOf("all")&&-1==r.indexOf(e)}).map(function(t){return t[0]});c.context.user=(0,p.mQ)(c.context.user,v)}return a=c.properties,void 0===(u=c._inspection)&&(u={}),tz.forEach(function(t){a.hasOwnProperty(t)&&(u[t]=a[t],delete a[t])}),c._inspection=u,i!==ib.PAGE&&(c._inspection.ppf=(0,l.c6)()),c._inspection.vids=this.context.getVids(),c.context.ad.sdk_env=(0,f.RA)(),c.context.ad.jsb_status=(0,f.Fn)(),i!==ib.INTERACTION&&i!==ib.PERFORMANCE&&i!==ib.PERFORMANCE_INTERACTION||!1!==this.context.getEnableAdTracking()||this.isOnsitePage.value||(c.context.user={},c.context.ad=this.context.getOffsiteAdInfo(),c.context.ad=(0,p.mQ)(c.context.ad,tU)),c},r.page=function(t){void 0===t&&(t={});var e=y().url;e!==this.currentHref&&(this.currentHref=e,this.track(tq,t,{}))},r.track=function(e,r,n,o,i){var a=this;void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=ib.TRACK),void 0===i&&(i=iO.defaultReport);var u=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var u={taskName:window.ttq._pf_tn||"track_after_reporter_init",functionName:window.ttq._pf_tn&&"track_after_reporter_init",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="track_after_reporter_init")}}catch(t){}var c=a.getReporterId();if(tB.includes(e))return t.prototype.track.call(a,e,r,n,o,i);var s=Object.assign({},n);a.selfHostConfig[c]&&!n.eventID&&(s=Object.assign({},s,{eventID:(0,tf.gj)((0,tf.fV)(J.qf),c)}));try{window.ttq&&window.ttq._ppf&&(u.end=performance.now(),window.ttq._ppf.push(u),"track_after_reporter_init"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}return t.prototype.track.call(a,e,r,s,o,i)};return this.loaded?u():this.getInstance().then(u)},r.getEventType=function(t){return tZ[t]||t},r.trackSync=function(e,r,n,o,i,a,u){if(void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=ib.TRACK),void 0===a&&(a=iO.defaultReport),"track"===i&&(0,c.um)(s.O.PIXEL_SEND,{pixelCode:e,extJSON:{event:r}}),i!==ib.TRACK)return void t.prototype.trackSync.call(this,e,r,n,o,i,a,u);n&&"string"==typeof n.currency&&(n.currency=n.currency.toUpperCase());var l,f=this.context.getTestID();if(f){var p=this.assemblyData(e,r,n,o);return p.tt_test_id=f,p.context.ad={},null==(l=this===null||void 0===this?void 0:this.reportService)||l.report(u||z,p,iO.htmlHttpReport,iA.P0),p}if(n&&"object"==typeof n){var h,d=n,v=d.value,_=d.currency;void 0===v||!isNaN(v)&&v>=0||(0,c.um)(s.O.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_value",extJSON:{event:r,value:v,currency:_}}),void 0===_||(void 0===(h=this.currency_list)&&(h=null),(h||tH).includes(_))||(0,c.um)(s.O.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_currency",extJSON:{event:r,value:v,currency:_}})}return t.prototype.trackSync.call(this,e,r,n,o,i,a,u)},r.trackPostTask=function(t){var e=t.reporterId,r=t.eventType,n=t.properties,o=t.eventConfig;tB.includes(r)||this.selfHostConfig[e]&&!this.hasReportEventHistory(r,iO.htmlHttpReport)&&(this.pushReport(r,this.getReportEventHistoryKey(iO.htmlHttpReport)),this.trackSync(e,r,n,o,ib.SELFHOST,iO.htmlHttpReport))},r.getReportEventHistoryKey=function(t){return t===iO.htmlHttpReport?this.selfHostConfig[this.getReporterId()]:"tiktok"},r.assemblySelfHostData=function(t,e,r,n,o){void 0===r&&(r={}),void 0===n&&(n={});var i=this.assemblyData(t,e,r,n,o),a=this.ttp;return a&&(i.context.user.ttp=a),i},e}(tJ);function t3(t,e){return(t3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var t8=function(t,e){return function(r,n){e(r,n,t)}},t6=function(t){function e(e,r,n,o,i,a,u,c,s,l){return t.call(this,{id:e,type:r,isOnsitePage:n,context:o,reporterInfo:i,ttqOptions:a,reportService:u,plugins:c,rules:s,options:l})||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,t3(e,t);var r=e.prototype;return r.getInstance=function(){var t,e=this;if(this.pixelPromise)return this.pixelPromise;var r=(t=this.id,h()[t]||{});return(0,l.cH)()||r&&r.info?(this.loaded=!0,this.pixelPromise=Promise.resolve(this)):(this.pixelPromise=new Promise(function(t,r){var n=g();tj((0,p.hi)(e.id,(null==n?void 0:n.hostname)||"")).then(function(){e.loaded=!0,t(e)}).catch(function(t){e.pixelPromise=null,r(t)})}),this.pixelPromise)},r.setCookieBasedSession=function(e){var r=t0(this.pixelCode,e,this.ttqOptions);return t.prototype.setCookieBasedSession.call(this,r)},r.track=function(e,r,n,o,i){if(void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=ib.TRACK),void 0===i&&(i=iO.defaultReport),n&&n.pixel_code&&this.getReporterId()!==n.pixel_code)return Promise.resolve(null);if(tT(this.reporterInfo,this.ttqOptions)){var a=tR(document.cookie);Object.assign(n,{pixelSession:this.setCookieBasedSession(a[this.getReporterId()]),pageSession:this.context.setPageCookieBasedSession(a[""])})}return t.prototype.track.call(this,e,r,n,o,i)},e}(t2);function t9(t,e){return(t9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var t5=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,t9(e,t);var r=e.prototype;return r.getInstance=function(){return this.pixelPromise=Promise.resolve(this),this.pixelPromise},r.track=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),v(this.getReporterId(),"track",[t,e,r]),Promise.resolve(null)},e}(t6=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),t8(0,H(w.M.ID)),t8(1,H(w.M.Type)),t8(2,H(w.M.IsOnsitePage)),t8(3,H(b.CONTEXT)),t8(4,H(w.M.Info)),t8(5,H(b.TTQ_GLOBAL_OPTIONS)),t8(6,H(b.REPORT_SERVICE)),t8(7,H(w.M.Plugins)),t8(7,W()),t8(8,H(w.M.Rules)),t8(8,W()),t8(9,H(w.M.Options)),t8(9,W())],t6));function t4(){t4=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function t7(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}function et(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){t7(i,n,o,a,u,"next",t)}function u(t){t7(i,n,o,a,u,"throw",t)}a(void 0)})}}function ee(t,e){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var er=function(t,e){return function(r,n){e(r,n,t)}},en=function(t){function e(e,r,n,o,i,a,u,s,l,f,p,h,d,v,_,m,g,E,D,b,w,O,A,I,C){(T=t.call(this,e,i,l)||this).context=e,T.env=s,T.reporters=r,T.cookieService=a,T.reportService=i,T.consentService=u,T.adService=n,T.appService=o,T.eventEmitter=l,T.historyObserver=w,T.interactionObserver=O,T.autoAdvancedMatchingPlugin=p,T.callbackPlugin=h,T.identifyPlugin=d,T.monitorPlugin=f,T.shopifyPlugin=v,T.autoConfigPlugin=_,T.diagnosticsConsolePlugin=m,T.eventBuilderPlugin=g,T.pagedataPlugin=b,T.enrichIpv6Plugin=E,T.lpvPlugin=D,T.runtimeMeasurementPlugin=A,T.textTreeWalkerPlugin=I,T.cdpVisiterPlugin=C,T.eventEmitter=l,T.historyObserver&&T.useObserver(T.historyObserver),T.interactionObserver&&T.useObserver(T.interactionObserver),T.autoAdvancedMatchingPlugin&&T.usePlugin(T.autoAdvancedMatchingPlugin),T.callbackPlugin&&T.usePlugin(T.callbackPlugin),T.identifyPlugin&&T.usePlugin(T.identifyPlugin),T.monitorPlugin&&T.usePlugin(T.monitorPlugin),T.shopifyPlugin&&T.usePlugin(T.shopifyPlugin),T.autoConfigPlugin&&T.usePlugin(T.autoConfigPlugin),T.diagnosticsConsolePlugin&&T.usePlugin(T.diagnosticsConsolePlugin),T.eventBuilderPlugin&&T.usePlugin(T.eventBuilderPlugin),T.enrichIpv6Plugin&&T.usePlugin(T.enrichIpv6Plugin),T.lpvPlugin&&T.usePlugin(T.lpvPlugin),T.runtimeMeasurementPlugin&&T.usePlugin(T.runtimeMeasurementPlugin),T.textTreeWalkerPlugin&&T.usePlugin(T.textTreeWalkerPlugin),T.cdpVisiterPlugin&&T.usePlugin(T.cdpVisiterPlugin),T.monitorPlugin&&(c.qe.info.forEach(function(t){var e;null==(e=T.monitorPlugin)||e.info(t.event,t.detail,t.withoutJSB)}),c.qe.error.forEach(function(t){var e;null==(e=T.monitorPlugin)||e.error(t.event,t.err,t.detail,t.withoutJSB)}),c.qe.info=[],c.qe.error=[]),T.dispatch(im.INIT_START),T.pagedataPlugin&&T.usePlugin(T.pagedataPlugin),T.onPageLoaded(),T.initLCPListener(),T.onPageLeave();var T,S=y(),R=S.url,N=S.referrer;return T.init(R,N),T.setPageInfo(R,N),T.dispatch(im.INIT_END),T}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ee(e,t);var r,n=e.prototype;return n.initAdInfo=function(t,e){this.dispatch(im.BEFORE_AD_INFO_INIT_START);var r=K(J.dm);if(r)return void this.initAdCache(r);if((0,f.zP)()){var n=tc(t,e);n&&(n.creative_id&&n.log_extra||n.callback)&&(this.dispatch(im.AD_INFO_INIT_START),X(J.dm,n),this.setAdInfo(n),this.initOffsiteAdInfo(n));return}this.initBaseAdInfo(t,e)},n.initAdCache=function(t){this.dispatch(im.AD_INFO_INIT_START),t.ad_info_from="cache",t.ad_info_status="fulfilled(cache)",this.setAdInfo(t),this.initOffsiteAdInfo(t)},n.initBaseAdInfo=function(t,e){var r=this;this.adService.webBridgeService.jsbridge&&this.dispatch(im.AD_INFO_INIT_START),this.reportService.pushPreposition(et(t4().mark(function n(){var o;return t4().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,r.adService.getAdInfo(t,e);case 3:o=n.sent,r.context.setAdInfo(o),r.initOffsiteAdInfo(o),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(0),(0,c.vU)(s.O.INIT_ERROR,n.t0,{extJSON:{position:"initAdInfo"}});case 11:case"end":return n.stop()}},n,null,[[0,8]])}))())},n.initOffsiteAdInfo=function(t){var e=tl(t,function(t){(0,c.vU)(s.O.INIT_ERROR,t,{extJSON:{position:"handleAdInfoOfficial"}})});this.context.setOffsiteAdInfo(e);var r=ts(t,this.env);this.context.setEnableAdTracking(r),this.dispatch(im.AD_INFO_INIT_END,{extJSON:{enabledAdTracking:r}})},n.initAppInfo=function(t,e){var r=this,n=K(J.Cd);if(n)return void this.context.setAppInfo(n);this.reportService.pushPreposition(et(t4().mark(function n(){var o;return t4().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.initBaseAppInfo(t,e);case 2:return o=n.sent,n.abrupt("return",o);case 4:case"end":return n.stop()}},n)}))())},r=et(t4().mark(function t(e,r){var n;return t4().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.appService.getAppInfo(e,r);case 2:return n=t.sent,this.context.setAppInfo(n),t.abrupt("return",n);case 5:case"end":return t.stop()}},t,this)})),n.initBaseAppInfo=function(t,e){return r.apply(this,arguments)},n.initTestId=function(t,e){if(!this.context.getTestID()){var r=tA(t,tg("tt_test_id"),e);this.context.setTestID(r)}},n.initUserInfo=function(){this.setCookieInfo()},n.initLocalServiceInfo=function(){var t,e,r=K(J.RC);if(r)return void this.context.setUserInfoWithoutIdentifyPlugin(((t={})[J.RC]=r,t));var n=y(),o=n.url,i=n.referrer,a=m(J.bO[location.hostname]?J.bO[location.hostname]:J.RC,o,i);a&&(X(J.RC,a),this.context.setUserInfoWithoutIdentifyPlugin(((e={})[J.RC]=a,e)))},n.setPageIndex=function(t){t&&tD(t)},n.instance=function(t){this.beforeAPIExecution();var e=this.getReporter(t);return e||new t5(t,ih.PIXEL_CODE,{value:!1},this.context,{pixelCode:t},{},{})},n.instances=function(){return this.beforeAPIExecution(),this.reporters},n.page=function(e){this.beforeAPIExecution();var r=y(),n=r.url,o=r.referrer;t.prototype.page.call(this,Object.assign({url:(null==e?void 0:e.page)||n,referrer:(null==e?void 0:e.referrer)||o},e))},n.track=function(e,r,n){void 0===r&&(r={}),void 0===n&&(n={});try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var o={taskName:window.ttq._pf_tn,functionName:"web_track_handler",start:performance.now()}}catch(t){}this.beforeAPIExecution();var i=n.pixel_code;if(void 0===i&&t.prototype.track.call(this,e,r,n),void 0!==i){var a=this.instance(i);a instanceof t5||a.track(e,r,n)}try{window.ttq&&window.ttq._ppf&&(o.end=performance.now(),window.ttq._ppf.push(o))}catch(t){}},n.identify=function(e,r){this.beforeAPIExecution(),t.prototype.identify.call(this,e,r)},n.setAdInfo=function(t){this.context.setAdInfo(t)},n.enableFirstPartyCookie=function(t){this.cookieService.enableFirstPartyCookie(t),t&&this.setCookieInfo()},n.enableCookie=function(){this.cookieService.enableFirstPartyCookie(!0),this.setCookieInfo(),this.cookieService.enableCookie()},n.disableCookie=function(){this.cookieService.disableCookie(),this.context.setUserInfoWithoutIdentifyPlugin({anonymous_id:void 0}),this.disablePangleCookie()},n.holdConsent=function(){this.consentService.setConsentMode(tI._R.HOLD)},n.revokeConsent=function(){this.consentService.setConsentMode(tI._R.REVOKE)},n.grantConsent=function(){this.consentService.setConsentMode(tI._R.GRANT)},n.disablePangleCookie=function(){},n.setAnonymousId=function(t){this.cookieService.setAnonymousId(t),this.initUserInfo()},n.resetCookieExpires=function(){this.cookieService.resetExpires()},n.setCookieInfo=function(){if(this.cookieService.canUseCookie()){var t=this.cookieService.getAnonymousId();t&&this.context.setUserInfoWithoutIdentifyPlugin({anonymous_id:t})}},n.initLCPListener=function(){var t,e=this;(void 0===t&&(t=5e3),new Promise(function(e){var r,n,o=!1,i="timeout",a=function(){if(!o){o=!0;try{null==n||n.disconnect()}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{extJSON:{position:"waitForLCPOrTimeoutDetailed"}})}clearTimeout(u),e({reason:i,lcpTime:r})}},u=setTimeout(a,t);if("undefined"==typeof PerformanceObserver){i="unsupported",a();return}try{n=new PerformanceObserver(function(t){var e=t.getEntries();e.length>0&&(r=e[e.length-1].startTime,i="lcp",a())}),n.observe({type:"largest-contentful-paint",buffered:!0})}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{extJSON:{position:"waitForLCPOrTimeoutDetailedCatch"}}),i="unsupported",a()}})).then(function(t){"lcp"===t.reason&&void 0!==t.lcpTime&&e.dispatch(im.PAGE_LCP,{startTime:t.lcpTime,value:t.lcpTime,reason:t.reason})}).catch(function(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{extJSON:{position:"initLCPListener"}})})},n.onPageLoaded=function(){var t=this;window.addEventListener("load",function(){t.dispatch(im.PAGE_DID_LOAD)},{once:!0})},n.onPageLeave=function(){var t=this,e=(0,p.IH)(function(){var e=Date.now();t.dispatch(im.PAGE_WILL_LEAVE,e),t.consentService.updateCache()});document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()}),"onpagehide"in window&&window.addEventListener("pagehide",function(){e()}),window.addEventListener("beforeunload",function(){return e},{once:!0})},n.beforeAPIExecution=function(){try{var t,e;t=this.context,y().url===t.getPageInfo().url||this.setPageInfo(y().url),e=this.context,tg(J.qC)===e.getUserInfo().anonymous_id||tQ(this.context)}catch(t){(0,c.vU)(s.O.API_ERROR,t,{extJSON:{position:"beforeAPIExecution"}})}},n.loadPixel=function(t,e){if(t){if(this.reporters.find(function(e){return e.getReporterId()===t}))return void(0,c.ZK)(iE.DUPLICATE_PIXEL_CODE);(0,l.Ie)().load(t,e||{})}},e}(tx),eo=en=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),er(0,H(b.CONTEXT)),er(1,H(b.TTQ_REPORTERS)),er(2,H(b.AD_SERVICE)),er(3,H(b.APP_SERVICE)),er(4,H(b.REPORT_SERVICE)),er(5,H(b.COOKIE_SERVICE)),er(6,H(b.CONSENT_SERVICE)),er(7,H(b.ENV)),er(8,H(b.EVENT_EMITTER)),er(9,H(b.MONITOR_PLUGIN)),er(9,W()),er(10,H(b.AUTO_ADVANCED_MATCHING_PLUGIN)),er(10,W()),er(11,H(b.CALLBACK_PLUGIN)),er(11,W()),er(12,H(b.IDENTIFY_PLUGIN)),er(12,W()),er(13,H(b.SHOPIFY_PLUGIN)),er(13,W()),er(14,H(b.AUTO_CONFIG_PLUGIN)),er(14,W()),er(15,H(b.DIAGNOSTICS_CONSOLE_PLUGIN)),er(15,W()),er(16,H(b.EVENT_BUILDER_PLUGIN)),er(16,W()),er(17,H(b.ENRICH_IPV6_PLUGIN)),er(17,W()),er(18,H(b.LPV_PLUGIN)),er(18,W()),er(19,H(b.PAGEDATA_PLUGIN)),er(19,W()),er(20,H(b.HISTORY_OBSERVER)),er(20,W()),er(21,H(b.INTERACTION_OBSERVER)),er(21,W()),er(22,H(b.RUNTIME_MEASUREMENT_PLUGIN)),er(22,W()),er(23,H(b.TEXT_TREE_WALKER_PLUGIN)),er(23,W()),er(24,H(b.CDP_VISITER_PLUGIN)),er(24,W())],en),ei=r(118);function ea(){return(ea=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V()],eu);var el=function(t,e){return function(r,n){e(r,n,t)}},ef=function(t){function e(e,r,n,o,i){var a;return(a=t.call(this,e)||this).setSignalType(i||D.S.OFFSITE),a.pageSign={sessionId:"",pageId:"",variationId:"",vids:"",pageIndex:{main:-1,sub:-1,index:-1}},a.legacy=n.legacy||[],a.variationId=n.variation_id||"",a.vids=n.vids||"",a.serverUniqueId=n.server_unqiue_id||"",a.ttqOptions=n,a.reportService=r,a.initPageSign(),(0,f.XA)(o)&&(0,f.gn)()&&(a.enableAdTracking=!1),a.data=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(a),a}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,es(e,t);var r=e.prototype;return r.getSessionIdFromCache=function(){var t=null;try{t=JSON.parse(sessionStorage.getItem(J.Bp)||"")}catch(t){}return t},r.setSessionIdToCache=function(t){X(J.Bp,t)},r.getVariationId=function(){return this.variationId},r.getVids=function(){return this.vids},r.isLegacyPixel=function(t){return(0,l.FH)(t,this.legacy)},r.assignPageInfo=function(t){Object.assign(this.pageInfo,t)},r.getSessionIndex=function(){var t={main:-1,sub:-1,index:-1};try{var e=JSON.parse(sessionStorage.getItem(J.AU)||"{}");if(e)return Object.assign({},t,e)}catch(t){}return t},r.setUserInfo=function(t,e){var r=this;if(void 0===t&&(t={}),0!==Object.keys(t).length){var n={};Object.entries(t).forEach(function(t){var o,i,a,u=t[0],c=t[1];if(c){if(E()&&(r.userInfoFieldAllowlist[u]||(r.userInfoFieldAllowlist[u]=[]),e?null==(o=r.userInfoFieldAllowlist[u])||o.push(e):null==(i=r.userInfoFieldAllowlist[u])||i.push("all")),u===ei.Sk)return void r.setUserInfoWithoutIdentifyPlugin(((a={})[ei.Sk]=c,a));n[u]=String(c).trim()}});var o=(0,l.Ie)(),i=null==o?void 0:o.getPlugin("Identify");i&&this.reportService.pushPreposition(i.handleUserProperties(n,t).then(function(t){void 0===t&&(t={});try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var o={taskName:window.ttq._pf_tn||"identify_after_encryption",functionName:window.ttq._pf_tn&&"identify_after_encryption",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="identify_after_encryption")}}catch(t){}var a=t,u=a.userProperties,c=a.userDataFormat,s=a.userDataFormatV2;if(u){Object.assign(r.userInfo,u);var l=r.getUserFormatInfo()||{},p=r.getUserFormatInfoV2()||{},h=r.getSignalDiagnosticLabels()||{};r.setUserFormatInfo(Object.assign({},l,c)),r.setUserFormatInfoV2(Object.assign({},p,s)),r.setSignalDiagnosticLabels(Object.assign({},h,t.identifierLabel||{}));var d=Object.keys(r.userInfo);if(0===d.length||1===Object.keys(n).length&&Object.keys(n).includes("external_id"))return;var v=i.reporters[0];if(E())if(e)v=i.reporters.find(function(t){return t.getReporterId()===e});else if(null==(_=String(d))?void 0:_.includes("auto_")){if(y().url.indexOf("disneyplus.com")>-1||(0,f.b)("74680597")){for(var _,m,g,D=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ec(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ec(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(d);!(g=D()).done&&"break"!==function(){var t=g.value,e=i.reporters.find(function(e){var r,n;return null==(n=null==(r=null==e?void 0:e.plugins)?void 0:r.AutoAdvancedMatching)?void 0:n[t]});if(e)return m=e,"break"}(););m&&(v=m)}}else v=i.reporters.find(function(t){if(Object.keys(t.getUserInfo(tI.Ts.Manual)).length)return!0});var b=v?Object.keys(Object.assign({},v.getUserInfo(tI.Ts.Manual),v.getUserInfo(tI.Ts.Auto),v.getUserInfo(tI.Ts.EBManual))):[];v&&b.length&&v.track("EnrichAM",{},{},ib.TRACK)}try{window.ttq&&window.ttq._ppf&&(o.end=performance.now(),window.ttq._ppf.push(o),"identify_after_encryption"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}}).catch(function(t){(0,c.vU)(s.O.API_ERROR,t,{extJSON:{api:"identify"}})}))}},r.initPageSign=function(){var t=this.getSessionIdFromCache();null===t&&(t=(0,p.LT)(this.serverUniqueId),this.setSessionIdToCache(t));var e=this.getPageId((0,p.eD)(t)),r=this.getVariationId(),n=this.getSessionIndex(),o=tv();n.main++,this.pageSign={sessionId:t,pageId:e,variationId:r,pageIndex:n,etldPlusOne:o}},r.setPageCookieBasedSession=function(e){var r=t0("",e,this.ttqOptions);return t.prototype.setPageCookieBasedSession.call(this,r)},e}(eu);ef=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),el(0,H(w.M.WebLibraryInfo)),el(1,H(b.REPORT_SERVICE)),el(2,H(b.TTQ_GLOBAL_OPTIONS)),el(3,H(b.ENV)),el(3,W()),el(4,H(w.M.SignalType)),el(4,W())],ef);var ep=String.fromCharCode.bind(String),eh=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),ed=function(t){for(var e,r,n,o,i="",a=t.length%3,u=0;u255||(n=t.charCodeAt(u++))>255||(o=t.charCodeAt(u++))>255)throw TypeError("invalid character found");i+=eh[(e=r<<16|n<<8|o)>>18&63]+eh[e>>12&63]+eh[e>>6&63]+eh[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},ev=function(t){if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?ep(192|e>>>6)+ep(128|63&e):ep(224|e>>>12&15)+ep(128|e>>>6&63)+ep(128|63&e)}var r=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return ep(240|r>>>18&7)+ep(128|r>>>12&63)+ep(128|r>>>6&63)+ep(128|63&r)},e_=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,em=function(t){return ed(JSON.stringify(t).replace(e_,ev)).replace(/=/g,"").replace(/[+\/]/g,function(t){return"+"===t?"-":"_"})};function ey(){ey=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function eg(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}var eE=function(){function t(t,e,r){this.httpService=t,this.bridgeService=e,this.reportPreTasks=r}var e,r,n=t.prototype;return n.pushPreposition=function(t){this.reportPreTasks.push(t)},e=ey().mark(function t(e,r,n,o){return ey().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve());case 1:case"end":return t.stop()}},t)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){eg(i,n,o,a,u,"next",t)}function u(t){eg(i,n,o,a,u,"throw",t)}a(void 0)})},n.report=function(t,e,n,o){return r.apply(this,arguments)},t}();eE=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V()],eE);var eD=function(t,e){var r=new URL(t);return Object.keys(e).forEach(function(t){var n=e[t].toJSON?e[t].toJSON():String(e[t]);r.searchParams.set(t,n)}),r.toString()},eb=function(t){var e=Array(t.length),r=0;return new Promise(function(n,o){for(var i=function(o){var i=t[o];i&&"function"==typeof i.then?i.then(function(i){e[o]={status:"fulfilled",value:i},++r===t.length&&n(e)}).catch(function(i){e[o]={status:"rejected",reason:i},++r===t.length&&n(e)}):(e[o]={status:"fulfilled",value:i},++r===t.length&&n(e))},a=0;a=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function eA(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}function eI(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){eA(i,n,o,a,u,"next",t)}function u(t){eA(i,n,o,a,u,"throw",t)}a(void 0)})}}function eC(t,e){return(eC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eT=function(t,e){return function(r,n){e(r,n,t)}},eS=function(t){function e(e,r,n,o){var i;return(i=t.call(this,e,r,new ew)||this).supportSendAnalyticsEvent=!0,i.consentService=n,i.consentService.on(iv.QUEUE,function(t){t.forEach(function(t){var e=t.url,r=t.data,n=t.type;i.report(e,r,n,iA.P0)})}),i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,eC(e,t);var r,n,o,i=e.prototype;return r=eI(eO().mark(function t(e,r,n){var o,i,a,u,l,h,d;return eO().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.bridgeService.jsbridge){t.next=2;break}return t.abrupt("return");case 2:return h=!!(l=r).context&&(null==(i=null==(o=l.context)?void 0:o.ad)?void 0:i.ad_info_status)==="timeout",d={},t.prev=5,t.next=8,this.bridgeService.send(l,h);case 8:if(!(!(d=t.sent)||1!==d.code)){t.next=11;break}throw Error("[fetch bridge] sendLog error: code "+(d&&d.code)+", data: "+(d&&JSON.stringify(d)));case 11:return(0,p.WZ)(l.event)&&(0,c.um)(s.O.JSB_SEND,{pixelCode:null==(a=l.context.pixel)?void 0:a.code,app_name:(0,f.bp)()?"ultralite":"",extJSON:{event:l.event,event_id:l.event_id,need_inject_ad_info:h}}),t.abrupt("return",d);case 15:t.prev=15,t.t0=t.catch(5),(0,p.WZ)(l.event)&&(0,c.vU)(s.O.JSB_ERROR,t.t0,{pixelCode:null==(u=l.context.pixel)?void 0:u.code,custom_name:"sendReportData",custom_enum:d&&d.code?""+d.code:"non",app_name:(0,f.PO)()||"",extJSON:{position:"sendReportData"}}),(0,f.bp)()&&(0,f.Dt)()&&this.sendHttpReport(e,l,n);case 19:case"end":return t.stop()}},t,this,[[5,15]])})),i.send=function(t,e,n){return r.apply(this,arguments)},n=eI(eO().mark(function t(e,r,n,o,i){var a;return eO().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===o&&(o=!0),t.next=3,this.httpService.send(e,r,i);case 3:t.sent||this.httpService.sendByImage(e,{analytics_message:n}),o&&(0,c.um)(s.O.HTTP_SEND,{pixelCode:null==(a=r.context.pixel)?void 0:a.code,extJSON:{event:r.event,event_id:r.event_id}});case 6:case"end":return t.stop()}},t,this)})),i.sendHttpReport=function(t,e,r,o,i){return n.apply(this,arguments)},i.beforeReport=function(t,e,r){void 0===r&&(r=iO.defaultReport);var n=this.consentService.getConsentMode();return n!==tI._R.REVOKE&&(n!==tI._R.HOLD||(this.consentService.cacheReportTask(t,e,r),!1))},o=eI(eO().mark(function t(e,r,n,o){var i,a,u,l;return eO().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n&&(n=iO.defaultReport),void 0===o&&(o=iA.P0),o===iA.P0){t.next=8;break}return t.next=5,(0,p._v)(0);case 5:return t.next=7,this.report(e,r,n,iA.P0);case 7:case 15:return t.abrupt("return",t.sent);case 8:if(this.beforeReport(e,r,n)){t.next=11;break}return t.abrupt("return");case 11:if(i=em(r),!(n===iO.defaultReport&&this.bridgeService.jsbridge)){t.next=16;break}return t.next=15,this.send(e,r,i);case 16:if(!(n===iO.httpReport&&this.bridgeService.jsbridge&&(0,f.XA)(this.env)&&!(0,f.NC)()&&this.supportSendAnalyticsEvent)){t.next=35;break}return a=e,t.prev=18,a=new URL(e).pathname,t.next=22,this.bridgeService.sendAnalyticsEvent({path:a,method:"POST",data:r});case 22:if(l=Error("sendAnalyticsEvent not support: code "+(u=t.sent)+", path: "+a+", data: "+JSON.stringify(r)),null!=u&&-2!==u){t.next=27;break}throw this.supportSendAnalyticsEvent=!1,l;case 27:if(1!==u){t.next=29;break}return t.abrupt("return");case 29:throw l;case 32:t.prev=32,t.t0=t.catch(18),(0,c.vU)(s.O.CUSTOM_ERROR,t.t0,{custom_name:"sendAnalyticsEvent",custom_enum:String(u)},!0);case 35:this.sendHttpReport(e,r,i,!!((0,p.WZ)(r.event)&&(0,p.Pm)(r)),r.action?3:void 0);case 36:case"end":return t.stop()}},t,this,[[18,32]])})),i.report=function(t,e,r,n){return o.apply(this,arguments)},i.reportFL=function(t){this.bridgeService.jsbridge&&this.bridgeService.updateWebFlData(t)},e}(eE);function eR(){eR=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function eN(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}eS=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),eT(0,H(b.HTTP_SERVICE)),eT(1,H(b.BRIDGE_SERVICE)),eT(2,H(b.CONSENT_SERVICE)),eT(3,H(b.ENV)),eT(3,W())],eS);var eF=function(){function t(t){this.webBridgeService=t}var e,r,n=t.prototype;return e=eR().mark(function t(e,r){var n,o,i;return eR().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.getAdInfoFromURL(e,r),!this.webBridgeService.jsbridge){t.next=7;break}return t.next=4,this.webBridgeService.getAdInfo();case 4:t.t0=t.sent,t.next=8;break;case 7:t.t0={};case 8:return o=t.t0,(i=Object.assign({},n,o))&&(i.creative_id&&i.log_extra||i.callback)&&X(J.dm,i),t.abrupt("return",i);case 12:case"end":return t.stop()}},t,this)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){eN(i,n,o,a,u,"next",t)}function u(t){eN(i,n,o,a,u,"throw",t)}a(void 0)})},n.getAdInfo=function(t,e){return r.apply(this,arguments)},n.getAdInfoFromURL=function(t,e){return tc(t,e)},t}();function eL(){eL=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function eP(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}eF=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),(o3=H(b.BRIDGE_SERVICE),function(t,e){o3(t,e,0)})],eF);var ex=function(){function t(t){this.webBridgeService=t}var e,r,n=t.prototype;return e=eL().mark(function t(e,r){var n,o,i,a;return eL().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((n=this.getAppInfoFromURL(e,r)).platform=(0,f.Xf)(),!(0,f.Dt)()){t.next=10;break}return t.next=5,(0,f.sH)();case 5:i=(o=t.sent).model,a=o.platformVersion,n.device_model=i,n.android_version=a;case 10:return(0,tf.Qr)(n)||X(J.Cd,n),t.abrupt("return",n);case 12:case"end":return t.stop()}},t,this)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){eP(i,n,o,a,u,"next",t)}function u(t){eP(i,n,o,a,u,"throw",t)}a(void 0)})},n.getAppInfo=function(t,e){return r.apply(this,arguments)},n.getAppInfoFromURL=function(t,e){try{var r=m(tu,t,e),n=r&&JSON.parse(r),o=n.device_id,i=n.uid;return{device_id:o,user_id:i}}catch(t){return{}}},t}();ex=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),(o8=H(b.BRIDGE_SERVICE),function(t,e){o8(t,e,0)})],ex);var ek="ad_analytics_msg";function eM(){eM=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ej(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}function eB(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){ej(i,n,o,a,u,"next",t)}function u(t){ej(i,n,o,a,u,"throw",t)}a(void 0)})}}var eU=function(t,e){return function(r,n){e(r,n,t)}},eq=function(){function t(t,e){this.env=t,(0,f.Z0)(this.env)&&(this.jsbridge=e),this.bridgeTimeout=400}var e,r,n,o,i,a,u,l=t.prototype;return e=eB(eM().mark(function t(){var e=this;return eM().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.jsbridge){t.next=3;break}return(0,c.vU)(s.O.JSB_ERROR,Error("tt bridge error when getting ad info"),{extJSON:{position:"getAdInfo"}}),t.abrupt("return",Promise.resolve({}));case 3:return t.abrupt("return",new Promise(function(){var t=eB(eM().mark(function t(r){var n;return eM().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.callAdInfo();case 3:(n=t.sent).ad_info_from="jsb",n.ad_info_status=n.ad_info_status||"fulfilled",r(n),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(0),r({}),(0,c.vU)(s.O.JSB_ERROR,t.t0,{extJSON:{position:"getAdInfo"}});case 13:case"end":return t.stop()}},t,null,[[0,9]])}));return function(e){return t.apply(this,arguments)}}()));case 4:case"end":return t.stop()}},t,this)})),l.getAdInfo=function(){return e.apply(this,arguments)},r=eB(eM().mark(function t(){var e,r;return eM().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.call("adInfo",{},(0,f.zd)()?3500:5e3);case 3:if((e=t.sent).data){t.next=6;break}return t.abrupt("return",Promise.reject("adInfo no data"));case 6:return r={creative_id:e.data.cid,log_extra:e.data.log_extra},t.abrupt("return",r);case 10:if(t.prev=10,t.t0=t.catch(0),"JSBRIDGE TIMEOUT"!==t.t0){t.next=17;break}return(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"ad_info_init_timeout"}),t.abrupt("return",{ad_info_status:"timeout"});case 17:return(0,c.vU)(s.O.JSB_ERROR,t.t0,{extJSON:{position:"getAdInfo"}}),t.abrupt("return",{});case 19:case"end":return t.stop()}},t,this,[[0,10]])})),l.callAdInfo=function(){return r.apply(this,arguments)},n=eB(eM().mark(function t(){return eM().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve({}));case 1:case"end":return t.stop()}},t)})),l.getAppInfo=function(){return n.apply(this,arguments)},o=eB(eM().mark(function t(e,r){var n,o,i,a,u,l,h,d,v,_,m,y;return eM().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.jsbridge){t.next=2;break}return t.abrupt("return",Promise.resolve());case 2:return i=(null==(o=null==(n=null==e?void 0:e.context)?void 0:n.ad)?void 0:o.creative_id)||"0",a=em(e),u=(0,p.Xu)(e),l={analytics_message:a,trackLogData:JSON.stringify(e),category:"ad_analytics_msg",tag:ek,label:u},(0,f.NC)()&&(l.is_ad_event=1),v={eventName:ek,labelName:u,value:i,extValue:"0",extJson:l},"insight_log_monitor"===u&&(0,f.z1)()?(d="x.reportAppLog",_={eventName:"insight_log_monitor",params:l},h=this.call("x.reportAppLog",_,this.bridgeTimeout)):(0,f.zP)()||(0,p.iE)(e)?(d="sendLog",h=this.call("sendLog",v,this.bridgeTimeout)):(0,f.XA)(this.env)?(0,f.gn)()&&r?(m={eventName:u,params:l},d="sendLogWithAdInfo",h=this.call("sendLogWithAdInfo",m,this.bridgeTimeout)):(d="sendLog",h=this.call("sendLog",v,this.bridgeTimeout)):(y={event_name:u,version:2,properties:l},d="track_event",h=this.call("track_event",y,400)),setTimeout(function(){(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"send_report_data",extJSON:{api_name:d}})}),t.abrupt("return",h);case 11:case"end":return t.stop()}},t,this)})),l.send=function(t,e){return o.apply(this,arguments)},i=eB(eM().mark(function t(e,r,n,o){var i=this;return eM().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===r&&(r={}),void 0===n&&(n=400),void 0===o&&(o=!0),t.abrupt("return",new Promise(function(t,a){var u;if(!i.jsbridge){a("JSBRIDGE ERROR"),o&&(0,c.vU)(s.O.JSB_ERROR,Error("JSBRIDGE ERROR"),{extJSON:{position:"getCallPromise"}});return}n>0&&(u=window.setTimeout(function(){a("JSBRIDGE TIMEOUT"),o&&(0,c.vU)(s.O.JSB_ERROR,Error("JSBRIDGE TIMEOUT"),{extJSON:{position:"getCallPromise",method:e}})},n)),i.jsbridge&&i.jsbridge.call&&i.jsbridge.call(e,r,function(e){t(function(t,e){void 0===e&&(e=!0);var r={};try{if("string"==typeof t)r.data=JSON.parse(t);else if(t.code&&t.data&&t.ret?0:1)if(void 0!==t.code){var n=Object.assign({},t),o=n.code;r.code=o,delete n.code,n.data?r.data=n.data:r.data=n}else r.data=t;else(r=t).__data&&(r.data=r.__data)}catch(t){e&&(0,c.vU)(s.O.JSB_ERROR,t,{extJSON:{position:"getCallPromise bridge.call"}})}return r}(e,o)),window.clearTimeout(u)})}));case 4:case"end":return t.stop()}},t)})),l.call=function(t,e,r,n){return i.apply(this,arguments)},a=eB(eM().mark(function t(e){var r,n,o,i,a;return eM().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.method,n=e.path,o=e.params,i=e.data,t.next=3,this.call("sendAnalyticsEvent",{method:r,path:n,params:o,data:i,header:{"Content-Type":"application/json"}},0,!1);case 3:return a=t.sent,t.abrupt("return",null==a?void 0:a.code);case 5:case"end":return t.stop()}},t,this)})),l.sendAnalyticsEvent=function(t){return a.apply(this,arguments)},u=eB(eM().mark(function t(e){return eM().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!((0,f.XA)(this.env)&&(0,f.gn)())){t.next=2;break}return t.abrupt("return",this.call("updateFLLocalConv",e,this.bridgeTimeout));case 2:case"end":return t.stop()}},t,this)})),l.updateWebFlData=function(t){return u.apply(this,arguments)},t}();function eG(){eG=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function eV(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}eq=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),eU(0,H(b.ENV)),eU(0,W()),eU(1,H(b.JS_BRIDGE)),eU(1,W())],eq);var eH=function(){function t(){}var e,r,n=t.prototype;return e=eG().mark(function t(e,r,n){var o;return eG().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n&&(n=0),t.prev=1,!(!navigator||!navigator.sendBeacon)){t.next=4;break}return t.abrupt("return",!1);case 4:if(!(!(o=navigator.sendBeacon(e,JSON.stringify(r)))&&"number"==typeof n&&n>0)){t.next=10;break}return n--,t.next=9,(0,p._v)(200);case 9:return t.abrupt("return",this.send(e,r,n));case 10:return t.abrupt("return",o);case 13:return t.prev=13,t.t0=t.catch(1),t.abrupt("return",!1);case 16:case"end":return t.stop()}},t,this,[[1,13]])}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){eV(i,n,o,a,u,"next",t)}function u(t){eV(i,n,o,a,u,"throw",t)}a(void 0)})},n.send=function(t,e,n){return r.apply(this,arguments)},n.sendByImage=function(t,e){new Image().src=eD(t,e)},t}();function eW(){eW=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function eK(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}eH=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V()],eH);var eY=function(){function t(t){this.cookieExpireOption=td(t)}var e,r,n=t.prototype;return n.genCookieID=function(){return(0,p.d$)()},e=eW().mark(function t(){return eW().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return tE(J.ct,"1",this.cookieExpireOption),t.abrupt("return",tj((0,p.TX)()));case 2:case"end":return t.stop()}},t,this)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){eK(i,n,o,a,u,"next",t)}function u(t){eK(i,n,o,a,u,"throw",t)}a(void 0)})},n.enableCookie=function(){return r.apply(this,arguments)},n.enableFirstPartyCookie=function(t){if(t){tE(J.ct,"1",this.cookieExpireOption);var e=this.getAnonymousId();this.setAnonymousId(e||this.genCookieID())}},n.disableCookie=function(){tE(J.ct,"0",this.cookieExpireOption),tE(J.qC,"",Object.assign(this.cookieExpireOption,{expires:-1})),tj((0,p.X1)())},n.setAnonymousId=function(t){var e=this.getAnonymousId()||t;if(e){var r=e.split(".")[0];tE(J.qC,r,this.cookieExpireOption)}},n.getAnonymousId=function(){return tg(J.qC)||""},n.canUseCookie=function(){try{return"0"!==tg(J.ct)}catch(t){}return!1},n.resetExpires=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"resetExpires",start:performance.now()}}catch(t){}var e=tg(J.ct);e&&tE(J.ct,e,this.cookieExpireOption);var r=this.getAnonymousId();r&&this.setAnonymousId(r);try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}},t}();function eX(t,e){return(eX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}eY=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),(o6=H(b.TTQ_GLOBAL_OPTIONS),function(t,e){o6(t,e,0)})],eY),(o9=iT||(iT={}))[o9.P0=4]="P0",o9[o9.P1=3]="P1",o9[o9.P2=2]="P2",o9[o9.P3=1]="P3";var eJ="tt_hold_events",eZ=function(t){function e(){var e;return e=t.apply(this,arguments)||this,e.consentMode=tI._R.UNKNOWN,e.queue=[],e.debounceUpdateCache=(0,p.Ds)(function(){e.updateCache()},200,function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)),e.handleHistoryQueue=(0,p.IH)(function(){var t=K(eJ);Array.isArray(t)&&(e.queue=e.queue.concat(t),e.changeQueueWithConsent())}),e}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,eX(e,t);var r=e.prototype;return r.on=function(e,r){t.prototype.on.call(this,e,r,{}),this.handleHistoryQueue()},r.setConsentMode=function(t){this.consentMode=t,this.changeQueueWithConsent()},r.changeQueueWithConsent=function(){switch(this.consentMode){case tI._R.REVOKE:this.cleanQueue();break;case tI._R.GRANT:this.releaseQueue(),this.cleanQueue();case tI._R.HOLD:case tI._R.UNKNOWN:}},r.getConsentMode=function(){return this.consentMode},r.cacheReportTask=function(t,e,r){void 0===r&&(r=iO.defaultReport),this.queue.push({url:t,data:e,type:r}),this.debounceUpdateCache()},r.cleanQueue=function(){this.queue=[],Y(eJ)},r.updateCache=function(){this.queue&&this.queue.length>0&&X(eJ,this.queue)},r.releaseQueue=function(){var t=this;this.queue.sort(function(e,r){return t.getEventPriority(r.data)-t.getEventPriority(e.data)}),this.emit(iv.QUEUE,this.queue)},r.getEventPriority=function(t){return t.event&&t.event.length>0?iT.P0:t.action&&t.action.length>0?iT.P1:""===t.event?iT.P2:iT.P3},e}(tW);eZ=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V()],eZ);var ez=function(){function t(t){var e=t.name,r=t.context,n=t.reporters;this.reporters=[],this.context=r,this.reporters=n,this.name=e}var e=t.prototype;return e.initStart=function(){},e.initEnd=function(){},e.adInfoInitStart=function(){},e.adInfoInitEnd=function(){},e.contextInitStart=function(){},e.contextInitEnd=function(){},e.pageUrlWillChange=function(t,e){},e.pageUrlDidChange=function(t,e){},e.pageDidLoad=function(){},e.pageWillLeave=function(t){},e.pageLcp=function(t){},e.pixelSend=function(t,e,r,n,o){},e.pixelDidMount=function(t){},e.patchEnd=function(){},t}();function eQ(t,e){return(eQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var e$=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,eQ(e,t),e}(ez=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V()],ez));function e0(t,e){return(e0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var e1=function(t,e){return function(r,n){e(r,n,t)}},e2=function(t){function e(e,r){var n;return(n=t.call(this,{name:"Callback",reporters:r,context:e})||this).ttclidCookieValue="undefined"!=typeof document?tg(ta):"",n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,e0(e,t),e.prototype.pixelDidMount=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"callback_plugin_pixelDidMount",start:performance.now()}}catch(t){}var r=y(),n=m(ta,r.url,r.referrer);n&&this.ttclidCookieValue!==n&&th(ta,n);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},e}(e$);e2=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),e1(0,H(b.CONTEXT)),e1(1,H(b.TTQ_REPORTERS))],e2);var e3={isHash:function(t){return!1},genIdentifierLabelByUserProperties:function(t){return{}}},e8={validatePhoneNumberLength:function(t){},parsePhoneNumberFromString:function(t){}},e6={tryDecodeHashedBase64String:function(t){return null},tryDecodeHashedBase64Hex:function(t){return null}},e9={checkEmailFormat:function(t){return!1},checkMDNEmailFormat:function(t){return!1}},e5=function(t){var e=t.parsePhoneNumberFromString,r=t.validatePhoneNumberLength;e8.parsePhoneNumberFromString=e,e8.validatePhoneNumberLength=r},e4=function(t){var e=t.isHash,r=t.genIdentifierLabelByUserProperties;e3.isHash=e,e3.genIdentifierLabelByUserProperties=r},e7=function(t){var e=t.tryDecodeHashedBase64String,r=t.tryDecodeHashedBase64Hex;e6.tryDecodeHashedBase64String=e,e6.tryDecodeHashedBase64Hex=r},rt=function(t){var e=t.checkEmailFormat,r=t.checkMDNEmailFormat;e9.checkEmailFormat=e,e9.checkMDNEmailFormat=r},re=function(t){var e=t.parsePhoneNumberFromString,r=t.validatePhoneNumberLength,n=t.isHash,o=t.genIdentifierLabelByUserProperties,i=t.tryDecodeHashedBase64String,a=t.tryDecodeHashedBase64Hex,u=t.checkEmailFormat,c=t.checkMDNEmailFormat,s=t.sha256;rt({checkEmailFormat:u,checkMDNEmailFormat:c}),e7({tryDecodeHashedBase64String:i,tryDecodeHashedBase64Hex:a}),e4({isHash:n,genIdentifierLabelByUserProperties:o}),e5({parsePhoneNumberFromString:e,validatePhoneNumberLength:r}),(0,p.ZV)(s)},rr=function(t,e,r){void 0===e&&(e=""),void 0===r&&(r=e8.parsePhoneNumberFromString);var n=t,o=e?r(t,e):r(t);return o?n="86"===o.countryCallingCode?o.nationalNumber:o.number:t.replace(/[^0-9]/g,"").length>0&&(n=t.replace(/[^0-9]/g,"")),n},rn=["(null)","","''\"",void 0,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","eb045d78d273107348b0300c01d29b7552d622abbc6faf81b3ec55359aa9950c","not set",null,"6181738008c985a1b5f106b796c98e719efcc3c0ff68ddcd14a049825f4900a8","2a539d6520266b56c3b0c525b9e6128858baeccb5ee9b694a2906e123c8d6dd3","c6e52c372287175a895926604fa738a0ad279538a67371cd56909c7917e69ea1","None","74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b","f24f02d3c35894296522abac8c4b2439b1c1b650e1fb4c97c0f3c50b580b0a3c","no","a683c5c5349f6f7fb903ba8a9e7e55d0ba1b8f03579f95be83f4954c33e81098","f18a2548c063c5a2b1560c6f2b9ec44bf9ed9017884404016d74f330119aaefe","449f06574cd639e1826848ff5d70ba95904574be84f34e61baa526d517dfb493","fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa","NA","bc857c49633bbc75644c51f36b16b2f768cc0ee13f65402ec7c32c96308272dd","42cbf37902c6911d7b4e371fe8f8708a0ceda6946249d4a3e23de8d5e60ae8b7"];function ro(t,e){return(ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ri=function(t){function e(e){var r=e.name,n=e.context,o=e.reporters;return t.call(this,{name:r,reporters:o,context:n})||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ro(e,t);var r=e.prototype;return r.setIdentifyUtils=function(t){var e=t.isHash,r=t.sha256,n=t.genIdentifierLabelByUserProperties,o=t.tryDecodeHashedBase64String,i=t.tryDecodeHashedBase64Hex,a=t.validatePhoneNumberLength,u=t.parsePhoneNumberFromString,c=t.checkEmailFormat,s=t.checkMDNEmailFormat,l=t.getCookieDeprecationLabel,f=t.getAllTopics;re({isHash:e,sha256:r,genIdentifierLabelByUserProperties:n,tryDecodeHashedBase64String:o,tryDecodeHashedBase64Hex:i,validatePhoneNumberLength:a,parsePhoneNumberFromString:u,checkEmailFormat:c,checkMDNEmailFormat:s}),this.parsePhoneNumberFromString=u,this.checkMDNEmailFormat=s,this.checkEmailFormat=c,this.sha256=r,this.getCookieDeprecationLabel=void 0===l?function(){}:l,this.getAllTopics=void 0===f?function(){}:f},r.baseHandleUserProperties=function(t,e){var r=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var n={taskName:window.ttq._pf_tn||"identify_encryption",functionName:window.ttq._pf_tn&&"identify_encryption",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="identify_encryption")}}catch(t){}if(t){var o=this.identifyParamsFormattedInfo(t),i=this.identifyParamsFormattedInfoV2(t),a=e3.genIdentifierLabelByUserProperties(e);this.handlePIIDiagnostics(i),Object.entries(t).forEach(function(e){var n=e[0],o=e[1],a=void 0===o?"":o;if(a){var u=String(a);if(["email","phone_number","sha256_email","sha256_phone_number"].includes(n)){var c=r.getUserDataFormatInfoV2KeyName(n),s=e6.tryDecodeHashedBase64Hex(u);if(null!==s)t[n]=s,null!==c&&(i=r.updateUserDataFormatV2Label(c,tI.Vp.BASE64_HEX_HASHED,i));else{var l=e6.tryDecodeHashedBase64String(u);l&&(t[n]=l,null!==c&&(i=r.updateUserDataFormatV2Label(c,tI.Vp.BASE64_STRING_HASHED,i)))}}switch("zip_code"===n&&u&&(e3.isHash(u)?i=r.updateUserDataFormatV2Label("zip_code",tI.Vp.ZIP_CODE_IS_HASHED,i):(i=r.updateUserDataFormatV2Label("zip_code",tI.Vp.ZIP_CODE_IS_NOT_HASHED,i),r.isZipFromUs(t)?(t.zip_code=r.sha256(r.truncateString(u,5)),i=r.updateUserDataFormatV2Label("zip_code",tI.Vp.ZIP_CODE_IS_US,i)):(t.zip_code=r.sha256(u),i=r.updateUserDataFormatV2Label("zip_code",tI.Vp.ZIP_CODE_IS_NOT_US,i)))),n){case"email":t.email=e3.isHash(u)&&!r.checkEmailFormat(u)?u:r.sha256(r.handleEmail(u));break;case"eb_email":t.eb_email=e3.isHash(u)&&!r.checkEmailFormat(u)?u:r.sha256(r.handleEmail(u));break;case"phone_number":t.phone_number=e3.isHash(u)?u:r.sha256(r.handlePhoneNumber(u));break;case"eb_phone_number":t.eb_phone_number=r.sha256(r.handlePhoneNumber(u));break;case"auto_email":t.auto_email=r.sha256(r.handleEmail(u));break;case"auto_phone_number":t.auto_phone_number=r.sha256(r.handlePhoneNumber(u));break;case"first_name":t.first_name=e3.isHash(u)?u:r.sha256(u);break;case"last_name":t.last_name=e3.isHash(u)?u:r.sha256(u);break;case"city":t.city=r.truncateString(u,80);break;case"state":t.state=r.truncateString(u,80);break;case"country":t.country=r.truncateString(u,80);break;default:return}}}),t.sha256_email&&(t.email=this.handleCheckHashedEmailValue(String(t.sha256_email),o)),t.sha256_phone_number&&(t.phone_number=this.handleCheckHashedPhoneValue(String(t.sha256_phone_number),o));try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n),"identify_encryption"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}return{userProperties:t,userDataFormat:o,userDataFormatV2:i,identifierLabel:a}}},r.identifyParamsFormattedInfo=function(t){var e=this,r={},n=/^sha256_(.*)$/;return Object.entries(t).forEach(function(t){var o=t[0],i=t[1],a=String(void 0===i?"":i),u=o.match(n);switch(o){case"email":e.handleEmailFormat(a,o,r);break;case"phone_number":e.handlePhoneNumberFormat(a,"phone_number",r);break;case"auto_email":e.handleEmailFormat(a,"auto_email",r);break;case"auto_phone_number":e.handlePhoneNumberFormat(a,"auto_phone_number",r);break;case(u||{}).input:var c=null==u?void 0:u.pop();c&&ei.Ae.includes(c)&&(r[c]=[tI.hZ.HASHED]);break;case"first_name":case"last_name":case"city":case"state":case"country":case"zip_code":case"partner_id":e.handleNewPiisFormat(a,o,r);break;default:r[o]=[tI.hZ.CORRECT_FORMAT]}}),r},r.identifyParamsFormattedInfoV2=function(t){var e=this,r={};return Object.entries(t).forEach(function(t){var n=t[0],o=t[1],i=String(void 0===o?"":o);switch(n){case"email":e.handlePixelValidation(i,ei.X2.EMAIL_IS_HASHED,r);break;case"phone_number":e.handlePixelValidation(i,ei.X2.PHONE_IS_HASHED,r);break;case"sha256_email":e.handlePixelValidation(i,ei.X2.SHA256_EMAIL,r);break;case"sha256_phone_number":e.handlePixelValidation(i,ei.X2.SHA256_PHONE,r);break;case"first_name":case"last_name":case"city":case"state":case"country":case"zip_code":case"partner_id":break;default:r[n]=[tI.Vp.UNKNOWN_INVALID]}}),r},r.updateUserDataFormatV2Label=function(t,e,r){var n,o;return(null===r[t]||void 0===r[t]||(null==(n=r[t])?void 0:n.includes(tI.Vp.UNKNOWN_INVALID)))&&(r[t]=[]),null==(o=r[t])||o.push(e),r},r.getUserDataFormatInfoV2KeyName=function(t){return({email:"email_is_hashed",phone_number:"phone_is_hashed",sha256_email:"sha256_email",sha256_phone_number:"sha256_phone",zip_code:"zip_code"})[t]||null},r.handlePIIDiagnostics=function(t){},r.handleEmail=function(t){return t.toLowerCase()},r.handlePhoneNumber=function(t,e){return void 0===e&&(e=this.parsePhoneNumberFromString),rr(t,"",e)},r.handleCheckHashedEmailValue=function(t,e,r){return(void 0===r&&(r=this.checkEmailFormat),e.email=e.email||[],e3.isHash(t))?(null==e||e.email.push(tI.hZ.HASHED_CORRECT),t):r(t)?(null==e||e.email.push(tI.hZ.PLAINTEXT_EMAIL),this.sha256(this.handleEmail(String(t)))):(null==e||e.email.push(tI.hZ.HASHED_ERR),this.sha256(t))},r.handleCheckHashedPhoneValue=function(t,e,r){return(void 0===r&&(r=this.parsePhoneNumberFromString),e.phone_number=e.phone_number||[],e3.isHash(t))?(null==e||e.phone_number.push(tI.hZ.HASHED_CORRECT),t):r(t)?(e.phone_number.push(tI.hZ.PLAINTEXT_PHONE),this.sha256(this.handlePhoneNumber(String(t),r))):(null==e||e.phone_number.push(tI.hZ.HASHED_ERR),this.sha256(t))},r.handlePixelValidation=function(t,e,r){r[e]=[],rn.includes(t)&&r[e].push(tI.Vp.FILTER_EVENTS),t&&e3.isHash(t)&&r[e].push(tI.Vp.HASHED),t&&this.checkEmailFormat(t)&&r[e].push(tI.Vp.PLAIN_EMAIL),t&&this.checkMDNEmailFormat(t)&&r[e].push(tI.Vp.PLAIN_MDN_EMAIL),t&&this.parsePhoneNumberFromString(t)&&r[e].push(tI.Vp.PLAIN_PHONE),t&&0===r[e].length&&r[e].push(tI.Vp.UNKNOWN_INVALID)},r.isZipFromUs=function(t){var e;return(null==(e=t.country)?void 0:e.toLowerCase())==="us"},r.truncateString=function(t,e){var r=Array.from(t);return r.length<=e?t:r.slice(0,e).join("")},r.handlePhoneNumberFormat=function(t,e,r){var n=this.handleCheckPhoneNumber(String(t),this.parsePhoneNumberFromString);r[e]=n},r.handleCheckPhoneNumber=function(t,e){void 0===e&&(e=this.parsePhoneNumberFromString);var r=[];return t?e3.isHash(t)?r.push(tI.hZ.HASHED):e(t)?r.push(tI.hZ.CORRECT_FORMAT):r.push(tI.hZ.WRONG_FORMAT):r.push(tI.hZ.EMPTY_VALUE),r},r.handleCheckEmail=function(t,e){void 0===e&&(e=this.checkEmailFormat);var r=[];return t?e3.isHash(t)?r.push(tI.hZ.HASHED):e(t)?r.push(tI.hZ.CORRECT_FORMAT):r.push(tI.hZ.WRONG_FORMAT):r.push(tI.hZ.EMPTY_VALUE),r},r.handleEmailFormat=function(t,e,r){var n=this.handleCheckEmail(String(t),this.checkEmailFormat);r&&r[e]&&(r[e]||[]).includes(tI.hZ.HASHED)||(r[e]=n)},r.handleNewPiisFormat=function(t,e,r){t&&(r[e]=[tI.hZ.CORRECT_FORMAT])},e}(e$);function ra(){ra=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ru(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}function rc(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){ru(i,n,o,a,u,"next",t)}function u(t){ru(i,n,o,a,u,"throw",t)}a(void 0)})}}function rs(t,e){return(rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rl=function(t,e){return function(r,n){e(r,n,t)}},rf=function(t){function e(e,r){var n;return(n=t.call(this,{name:"Identify",reporters:r,context:e})||this).init(),n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rs(e,t);var r,n,o=e.prototype;return o.init=function(){var t=this;return this.pluginPromise||((0,c.um)(s.O.IDENTIFY_INIT_START),this.pluginPromise=tj((0,p.vO)()).then(function(){t.detectTopics(),(0,c.um)(s.O.IDENTIFY_INIT_END)}).catch(function(){var t=Error("Loading chunk identify failed.\n(error: "+window.location.host+"/static/identify.js)");return t.name="ChunkLoadError",Promise.reject(t)})),this.pluginPromise},r=rc(ra().mark(function t(e,r){return ra().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",void 0);case 2:return t.next=4,this.init();case 4:return t.abrupt("return",this.baseHandleUserProperties(e,r));case 5:case"end":return t.stop()}},t,this)})),o.handleUserProperties=function(t,e){return r.apply(this,arguments)},o.handlePIIDiagnostics=function(t){try{var e=t.email_is_hashed,r=void 0===e?[]:e,n=t.sha256_email,o=void 0===n?[]:n,i=t.phone_is_hashed,a=void 0===i?[]:i,u=t.sha256_phone,s=void 0===u?[]:u;if(r.includes(tI.Vp.UNKNOWN_INVALID)||o.includes(tI.Vp.UNKNOWN_INVALID))return void(0,c.ZK)(iE.INVALID_EMAIL_FORMAT);if(a.includes(tI.Vp.UNKNOWN_INVALID)||s.includes(tI.Vp.UNKNOWN_INVALID))return void(0,c.ZK)(iE.INVALID_PHONE_NUMBER_FORMAT);if(r.includes(tI.Vp.FILTER_EVENTS)||o.includes(tI.Vp.FILTER_EVENTS))return void(0,c.ZK)(iE.INVALID_EMAIL_INFORMATION);if(a.includes(tI.Vp.FILTER_EVENTS)||s.includes(tI.Vp.FILTER_EVENTS))return void(0,c.ZK)(iE.INVALID_PHONE_NUMBER_INFORMATION)}catch(t){}},n=rc(ra().mark(function t(){var e,r;return ra().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getCookieDeprecationLabel();case 3:return e=t.sent,t.next=6,this.getAllTopics();case 6:(r=t.sent)&&(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"topics",extJSON:{cookie_label:String(e),stack:r.toString()}}),t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}},t,this,[[0,10]])})),o.detectTopics=function(){return n.apply(this,arguments)},e}(ri);rf=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),rl(0,H(b.CONTEXT)),rl(1,H(b.TTQ_REPORTERS))],rf);var rp=function(t,e,r,n){try{var o=(0,l.Ie)().getEmitter();if(!o)return;n&&o.setObserverConfig(n);var i=r.throttle,a=r.interval;o.on(t,e,{throttle:i,interval:a})}catch(e){(0,c.vU)(s.O.CUSTOM_ERROR,e,{custom_name:"addEventListener",custom_enum:t})}};(o5=iS||(iS={})).ERROR_FORMAT="error_format",o5.OVER_LENGTH="over_length_3e4",o5.FILTER_SENSITIVE_FIELDS="filter_sensitive_fields";var rh="form_detail_error";(o4=iR||(iR={})).GET_ELEMENTS_ERROR="get_elements_error",o4.INIT_ERROR="init_error",o4.ASSEMBLE_FORM_DETAIL_ERROR="assemble_form_detail_error",o4.DETECT_FORM_ELEMENT_ERROR="detect_form_element_error",o4.GET_OVERALL_FORM_DETAIL_ERROR="get_overall_form_detail_error",o4.FORM_OBSERVER_ERROR="form_observer_error",o4.OVER_LENGTH="over_length_3e4",(o7=iN||(iN={})).METADATA="Metadata",o7.CLICK="Click",(it=iF||(iF={})).AUTO_COLLECTION="AUTO_COLLECTION",it.AUTO_FORM="AUTO_FORM",it.AUTO_CLICK="AUTO_CLICK",it.AUTO_VC="AUTO_VC",it.AUTO_VC_REVERSE="AUTO_VC_REVERSE",(ie=iL||(iL={})).AUTO_FORM="form_rules",ie.AUTO_VC="vc_rules",ie.AUTO_VC_REVERSE="vc_rules_reverse",(ir=iP||(iP={})).PAGE_LEAVE="PageLeave",ir.PAGE_VIEW="PageView",ir.DOM_CHANGE="DomChange",ir.URL_CHANGE="UrlChange",ir.CLICK="Click",ir.SCROLL="Scroll";var rd=function(t,e){if("string"!=typeof t)throw TypeError("text must be a non-empty string");if("number"!=typeof e||e<=0)throw TypeError("targetLength must be a positive integer");for(var r=[],n=0,o=t.length;n0&&rv(t[r]);)r--;for(;n",t},{}),rw={prefix:"(?|[^>]*<))"},rO=ry([/(?:\+?\d{1,3}[\s-]?|\(\+?\d{1,3}\)[\s-]?)?(?:\d{2,4}[\s-]?|\(\d{2,4}\)[\s-]?)?(?:\d[\s-]?){5,}/g],rw),rA=ry([/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi],rw),rI=ry([/(?:(?:4[0-9]{3}|5[1-5][0-9]{2}|6011|65[0-9]{2}|3[47][0-9]{2}|3(?:0[0-5]|[68][0-9])|2131|1800|35\d{2})[-\s]?(?:[0-9]{4}[-\s]?){2}[0-9]{3,4}|62[0-9]{3}[-\s]?(?:[0-9]{4}[-\s]?){2,3}[0-9]{3,4})$(?![\d])/g],rw),rC=ry([/\d{3}-\d{2}-\d{4}|\d{9}/g,/\d{17}(\d|X|x)$/g,/[A-CEGHJ-PR-TW-Z]{2}\d{6}[A-D]?/g,/(?:[A-Z]\d{10}|\d{10})/g,/[A-Z0-9]{12}/g],rw),rT=ry([/[EDS]\d{8}/g,/[A-HJ-NP-Z][A-HJ-NP-Z0-9]{8}/g,/[A-Z]{2}\d{6}/g],rw),rS=ry([/\d{17}[\dXx]/g,/[A-Z0-9]{16}/g,/[A-Z0-9]{10,12}/g,/[A-Z0-9]{12}/g],rw),rR=["AnatomicalStructure","AnatomicalSystem","ApprovedIndication","ArriveAction","Artery","BioChemEntity","BloodTest","Bone","BorrowAction","BrainStructure","BrokerageAccount","CDCPMDRecord","ChemicalSubstance","CovidTestingFacility","DDxElement","DepartAction","DepositAccount","DiagnosticLab","DiagnosticProcedure","Diet","DietarySupplement","DoseSchedule","ElementarySchool","HighSchool","ExercisePlan","Gene","GovernmentBenefitsType","GovernmentService","HealthAspectEnumeration","HealthInsurancePlan","HealthPlanCostSharingSpecification","HealthTopicContent","Hospital","ImagingTest","InfectiousAgentClass","InvestmentFund","InvestmentOrDeposit","Invoice","Joint","LendAction","LifestyleModification","Ligament","LoanOrCredit","LymphaticVessel","MaximumDoseSchedule","MedicalAudience","MedicalAudienceType","MedicalCause","MedicalCode","MedicalCondition","MedicalConditionStage","MedicalContraindication","MedicalDevice","MedicalEntity","MedicalEvidenceLevel","MedicalGuidelineContraindication","MedicalIndication","MedicalIntangible","MedicalObservationalStudy","MedicalOrganization","MedicalProcedure","MedicalProcedureType","MedicalRiskCalculator","MedicalRiskFactor","MedicalRiskScore","MedicalSign","MedicalSignOrSymptom","MedicalStudy","MedicalSymptom","MedicalTest","MedicalTestPanel","MedicalTherapy","MedicalTrial","MiddleSchool","MoneyTransfer","Muscle","Nerve","OccupationalTherapy","Order","PalliativeProcedure","ParentAudience","PathologyTest","Patient","PeopleAudience","Person","Pharmacy","PhysicalActivity","PhysicalTherapy","Physician","PoliticalParty","Preschool","PreventionIndication","Protein","PsychologicalTreatment","RadiationTherapy","RecommendedDoseSchedule","ReportedDoseSchedule","School","Substance","SuperficialAnatomy","SurgicalProcedure","Text","TherapeuticProcedure","TreatmentIndication","URL","Vein","Vessel","VitalSign","WorkersUnion"];(ii=ij||(ij={})).V1="v1",ii.V2="v2";var rN={IRRELEVANT_KEYWORDS:new Set(["CLOSE","OPEN"]),TERMINATION_TAGS:new Set(["UL","OL","BODY","HTML","DOCUMENT","MAIN"]),VALID_IMG_KEYWORDS:new Set(["https","http","product","goods","img","image","jpg","jpeg","png","webp"]),INVALID_IMG_KEYWORDS:new Set(["icon","logo","svg","gif"]),DYNAMIC_IMAGE_ATTRS:["data-src","data-original"],INVALID_LINK_PATTERNS:[/^java/i,/^#/,/^$/,/^mailto:/i,/^tel:/i,/^\/$/],EXCLUDE_CLASSES:new Set(["hover","active","focus","current","first","last"]),MAIN_IMG_MIN_SIZE:100,MAX_TRAVERSE_LAYERS:10,MAX_IMG_COUNT:6,HIGH_SIZE_THRESHOLD:.8,SKIP_ELEMENT:new Set(["SVG","POLYGON"]),SIBLING_SIMILARITY_THRESHOLD:.7,SIBLING_NODE_COUNT_THRESHOLD:10,SIMILAR_WIDTH_THRESHOLD:.1,SIMILAR_HEIGHT_THRESHOLD:.4,PRIORITY_CONFIG:{destination:["composedPath","container"],image_url:["composedPath","container"],inner_text:["container","composedPath"]},MIN_SIZE_ABSOLUTE_VALUE:100},rF={MONEY_SYMBOLS:new Set(["$","\xa5","\xa3","₩","₫","﷼","€","฿","₹","₽","zł","₦","د.إ","₱","TL","JPY","EUR","GBP","INR","BRL","CAD ","AUD","RUB","MXN","KRW","TRY","RM","SEK","THB","SGD","ARS",":-","RS"]),MIN_IMG_SIZE:30,MAX_COMPRESS_STRING_LENGTH:200,INVALID_DATA_SIMILARITY_THRESHOLD:.6,MAX_PRODUCTS_COUNT:8};(ia=iB||(iB={})).COMPOSED_PATH="composedPath",ia.FIND_PRODUCT_CARD="findProductCard",ia.CHECKOUT="checkout";var rL="checkout",rP=["destination","image_url","from"],rx=new Set(["x","y","num_child_buttons","timestamp","xpath","tag","from"]),rk=((iM={})[ik.PHONE]=rO,iM[ik.EMAIL]=rA,iM[ik.CREDIT_CARD]=rI,iM[ik.ID_SSN]=rC,iM[ik.PASSPORT]=rT,iM[ik.DRIVING_LICENSE]=rS,iM);function rM(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return rj(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rj(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<-==&_\/\?\.,0-9:; \]\[%~\"\{\}\)\(\+\@\^\`]/g.test(t)||rR.some(function(e){return t.toLowerCase().indexOf(e.toLowerCase())>-1})}var rU=function t(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return"";if(e===document.documentElement)return"/HTML";for(var r=1,n=e.previousSibling;n;)n.nodeType===Node.ELEMENT_NODE&&n.tagName===e.tagName&&r++,n=n.previousSibling;var o=e.tagName.toLowerCase();return t(e.parentNode)+"/"+o+"["+r+"]"};function rq(t,e){return function(){for(var r=arguments.length,n=Array(r),o=0;o=function(t,e){if(!t||!e)return 0;for(var r=t.length,n=e.length,o=Array.from({length:r+1},function(){return Array(n+1).fill(0)}),i=0;i<=r;i++)o[i][0]=i;for(var a=0;a<=n;a++)o[0][a]=a;for(var u=1;u<=r;u++)for(var c=1;c<=n;c++)t[u-1]===e[c-1]?o[u][c]=o[u-1][c-1]:o[u][c]=Math.min(o[u-1][c]+1,o[u][c-1]+1,o[u-1][c-1]+1);return o[r][n]}(o.value,i.value)?(l++,f+=1):f+=2}while(!o.done||!i.done);return l/f}function rX(t){if(!t)return null;for(var e,r=rM(rN.DYNAMIC_IMAGE_ATTRS);!(e=r()).done;){var n=e.value,o=t.getAttribute(n);if(o&&rH(o))return o}if(t.src&&rH(t.src))return t.src;var i=t.getAttribute("srcset");if(i){var a=i.split(",").find(function(t){return rH(t.trim().split(" ")[0])});if(a)return a.split(" ")[0]}return null}function rJ(t){return t instanceof HTMLAnchorElement&&function(t){if(!t)return!1;var e=t.trim();return!rN.INVALID_LINK_PATTERNS.some(function(t){return new RegExp(t).test(e)})}(t.getAttribute("href"))?t.href:null}function rZ(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r2(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=rN.SIBLING_SIMILARITY_THRESHOLD?t+1:t-1:c>=rN.SIBLING_SIMILARITY_THRESHOLD?t+1:t-1},0),u=t.getElementsByTagName("a").length>0,c=t.getElementsByTagName("img").length>0;return e.RequiredLinkData?a>=0&&u:e.RequiredImageData?a>=0&&c:a>=0&&(u||c)}function nt(t){var e=window.innerHeight||document.documentElement.clientHeight;return t.offsetHeight/e>rN.HIGH_SIZE_THRESHOLD?2:t.offsetHeight0&&e.some(function(e){return t.toLowerCase()===e.toLowerCase()})}(n,e)&&(r[n]=no(t[n],e));return r}function ni(t){return Array.isArray(t)?t.some(function(t){return ni(t)}):"string"==typeof t&&(t=t.toLowerCase().replace(/https?:\/\/schema\.org\//,""),rR.some(function(e){return t===e.toLowerCase()}))}var na=["form","[id*=form], [class*=form]"],nu=["label"],nc=["input,select,textarea"],ns=["radio","checkbox"],nl=["hidden","reset","submit","password"];function nf(t,e){try{for(var r=0;r0)return Array.from(n)}return[]}catch(t){return(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rh,custom_enum:iR.GET_ELEMENTS_ERROR}),[]}}function np(t){var e="";return!function t(r){for(;r;)r.nodeType===Node.TEXT_NODE?e+=r.textContent:"SELECT"!==r.nodeName&&r.firstChild&&t(r.firstChild),r=r.nextSibling}(t.firstChild),e.replace(/[\t\n]/g,"").trim()}function nh(t){if(!t)return!1;var e=window.getComputedStyle(t);return!("none"===e.display||"visible"!==e.visibility||function t(e){return!(!e||e.isSameNode(document.body)||e.isSameNode(document))&&("0"==window.getComputedStyle(e).opacity||t(e.parentElement))}(t))&&(0!==t.offsetWidth||0!==t.offsetHeight)}function nd(t){var e=t.getAttribute("type");return!!e&&nl.indexOf(e)>-1}function nv(t){return t&&rB(t)?"__Text__":t}(iu=iU||(iU={}))[iu.CONTAIN=0]="CONTAIN",iu[iu.ID=1]="ID",iu[iu.SELECTOR=2]="SELECTOR";var n_=function(){function t(t){var e=this;this.formUpdateHandlers=[],this.answerMap={},t.find(function(t){var r=e.getRules(t);return!!r&&(e.rules=r,!0)}),this.init()}var e=t.prototype;return e.getRules=function(t){var e=t.plugins&&t.plugins.AutoConfig;return e&&e[iL.AUTO_FORM]},e.init=function(){var t=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"initAutoForm_init",start:performance.now()}}catch(t){}try{this.forms=this.detectFormElement(),this.forms&&this.forms.forEach(function(e){e.formDetail=t.assembleFormDetail(e),t.startFormObserver(e,t.formUpdateHandlers)})}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rh,custom_enum:iR.INIT_ERROR})}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},e.getOverallFormDetail=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"initAutoForm_getOverallFormDetail",start:performance.now()}}catch(t){}var e="[]";try{this.forms&&this.forms.length>0&&(this.forms.some(function(t){var e=t.el;return!document.body.contains(e)})&&this.init(),e=JSON.stringify(this.forms.map(function(t){return t.formDetail}).filter(function(t){return t})))}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rh,custom_enum:iR.GET_OVERALL_FORM_DETAIL_ERROR})}try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}return e},e.addFormUpdateHandler=function(t){this.formUpdateHandlers.push(t)},e.startFormObserver=function(t,e){var r=this;try{var n=(0,p.Ds)(function(){var n=r.assembleFormDetail(t);(!t.formDetail||n&&(0,p.eh)(n,t.formDetail))&&(t.formDetail=n,e.forEach(function(e){return e.call(r,t.formDetail)}))},2e3,this);if(t.el.parentNode){var o=t.el.parentNode;this.observer&&this.observer.disconnect(),this.observer=new MutationObserver(n),this.observer.observe(o,{attributes:!0,childList:!0,subtree:!0}),o.addEventListener("click",n,{capture:!0})}}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rh,custom_enum:iR.FORM_OBSERVER_ERROR})}},e.detectFormElement=function(){try{var t,e,r=[0,0,0],n=(t=this.rules,(e=nf(t||na,document)).filter(function(t){return!e.some(function(e){return e.contains(t)&&e!==t})}));if(!n)return[];var o=n.map(function(t){return{el:t,questions:[]}});return o.forEach(function(t){var e,n,o=(e=t.el,nf(nu,e)),i=new Set([]);o.forEach(function(e){var n=function(t,e){var r=nf(nc,t);if(r&&r.length)return{els:r,from:iU.CONTAIN};var n=t.getAttribute("for");if(n&&(r=nf(["input[id='"+n+"'],select[id='"+n+"'],textarea[id='"+n+"']"],e)))return{els:r,from:iU.ID};return!1}(e,t.el);if(n){var o=n.els,a=n.from,u=o.filter(function(t){return!nd(t)}).map(function(t){return i.add(t),{el:t,from:a}});u&&u.length&&(r[a]=1,t.questions.push({el:e,answers:u}))}}),(n=t.el,nf(nc,n)).filter(function(t){return!nd(t)}).forEach(function(e){if(!i.has(e)){r[iU.SELECTOR]=1;var n,o=(n=t.el,function t(e){return null==e||e.isSameNode(n)?n:np(e).length>0?e:t(e.parentNode)}(e.parentNode));t.questions.push({el:o,answers:[{el:e,from:iU.SELECTOR}]})}})}),(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"form_detail_answer_from",custom_enum:r.join("")}),o}catch(t){return(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rh,custom_enum:iR.DETECT_FORM_ELEMENT_ERROR}),[]}},e.calculateQuestionFilledTime=function(t){var e=t.el,r=t.answers,n=rU(e),o=r.reduce(function(t,e){var r=e.el,n=r.getAttribute("type");return n&&ns.indexOf(n.toLowerCase())>-1?t+","+r.checked:t+","+r.value},"");this.answerMap[n]||(this.answerMap[n]={defaultValue:o,value:o});var i=this.answerMap[n],a=i.defaultValue,u=i.filledTime;return(this.answerMap[n].value=o,a===o)?void delete this.answerMap[n].filledTime:u||(this.answerMap[n].filledTime=+new Date)},e.assembleFormDetail=function(t){var e=this,r=t.el,n=t.questions;try{var o={xpath:rU(r),id:r.id,name:nv(r.getAttribute("name")),tag:r.tagName.toLowerCase(),class_name:r.className,questions:[],width:r.offsetWidth,height:r.offsetHeight,is_visible:nh(r)};return o.questions=n.map(function(t){var r=t.el,n=t.answers,o={xpath:rU(r),id:r.id,name:nv(np(r)),tag:r.tagName.toLowerCase(),class_name:r.className,filled_time:e.calculateQuestionFilledTime(t),answers:[],width:r.offsetWidth,height:r.offsetHeight,is_visible:nh(r)};return n.forEach(function(t){var e=t.el,r=t.from;e&&"SELECT"===e.tagName.toUpperCase()?o.answers=o.answers.concat(Array.from(e.querySelectorAll("option")).map(function(t){return{xpath:rU(t),id:t.id,name:nv(t.value||t.innerText),tag:t.tagName.toLowerCase(),class_name:t.className,from:r,width:t.offsetWidth,height:t.offsetHeight,is_visible:nh(e)}})):o.answers.push({xpath:rU(e),id:e.id,name:nv(e.getAttribute("name")),tag:e.tagName.toLowerCase(),class_name:e.className,input_type:e.getAttribute("type"),placeholder:nv(e.getAttribute("placeholder")),from:r,width:e.offsetWidth,height:e.offsetHeight,is_visible:nh(e)})}),o}),o}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rh,custom_enum:iR.ASSEMBLE_FORM_DETAIL_ERROR});return}},t}(),nm=["United States","US","Canada","CA","Australia","AU","Mexico","MX","Argentina","AR","Chile","CL","Colombia","CO","Fiji","FJ","Liberia","LR","Namibia","NA","New Zealand","NZ","Singapore","SG","Solomon Islands","SB","Suriname","SR","South Africa","ZA","Barbados","BB","Belize","BZ","Cuba","CU","Dominican Republic","DO","Guyana","GY","Jamaica","JM","Cayman Islands","KY","Trinidad and Tobago","TT","Tuvalu","TV","Zimbabwe","ZW","United Kingdom","GB","Egypt","EG","Falkland Islands","FK","Gibraltar","GI","Guernsey","GG","Isle of Man","IM","Jersey","JE","Lebanon","LB","Saint Helena","SH","Syria","SY","Sudan","SD","Japan","JP","China","CN","Japan","JP","CN","South Korea","KR","Philippines","PH","Cuba","CU","Sweden","SE","Norway","NO","Denmark","DK","Iceland","IS","Costa Rica","CR","El Salvador","SV","Bolivia","BO","Venezuela","VE","Bahamas","BS","Brunei","BN","Ethiopia","ET","Eritrea","ER","Iran","IR","Oman","OM","Qatar","QA","Saudi Arabia","SA","Yemen","YE","Bulgaria","BG","Kyrgyzstan","KG","Central African CFA franc zone","XAF","West African CFA franc zone","XOF"].map(function(t){return t.toUpperCase()}),ny=["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTC","BTN","BWP","BYN","BYR","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNH","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","ETH","EUR","FJD","FKP","GBP","GEL","GGP","GHC","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTC","LTL","LVL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RMB","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRL","TRY","TTD","TVD","TWD","TZS","UAH","UGX","USD","UYI","UYU","UYW","UZS","VEF","VES","VND","VUV","WST","XAF","XBT","XCD","XOF","XPF","XSU","XUA","YER","ZAR","ZMW","ZWD","ZWL"];function ng(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return nE(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nE(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nE(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0?r:null}catch(t){return(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"enhancement_parameter_inference"}),null}},nR=function(t,e){var r=null;for(var n in e)if(t.includes(n))return e[n];return null},nN=function(t,e){var r=function(t,e){try{for(var r,n=document.evaluate(t,document,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null),o=null;r=n.iterateNext();)/\d/.test(r.innerText)&&(o=r);if(!o&&e)for(var i=document.getElementsByClassName(e),a=0;a=a.length-3&&(o=!0),o&&(r=r.slice(0,n-(a.length-1))+"."+r.slice(n-(a.length-1))),r}return null}(n):null,textContent:n}},nF=function(t){if(!t)return{currencyCode:null,currencyCodeFromeXpath:null};var e,r=null==(e=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)?void 0:e.textContent,n=((null==r?void 0:r.trim())?ny.includes(r.toUpperCase().trim()):null)?null==r?void 0:r.toUpperCase().trim():null;return{currencyCode:r,currencyCodeFromeXpath:n}},nL=function(t){if(!t)return{countryCode:null,countryCodeFromXpath:null};var e,r=null==(e=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)?void 0:e.textContent,n=((null==r?void 0:r.trim())?nm.includes(r.toUpperCase().trim()):null)?null==r?void 0:r.toUpperCase().trim():null;return{countryCode:r,countryCodeFromXpath:n}},nP=function(t){try{var e=new URL(t).hostname.split(".");for(var r in e)if(nm.includes(e[r].toUpperCase()))return e[r].toUpperCase()}catch(t){}return null},nx=function(t,e,r){try{if(t)for(var n,o=ng(t);!(n=o()).done;){var i=n.value;if(i.valueXpath&&i.currency&&i.currency.val){var a=i.currency.val,u=nN(i.valueXpath,i.currency.val),l=u.textContent,f=u.priceNumberString;if(f&&l){var p=nF(i.currency.xpath),h=p.currencyCode,d=p.currencyCodeFromeXpath;h&&(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"auto_value_currency_currency_code_form_xpath",extJSON:{url:e,currencyCode:h,vcConfig:r}});var v=nL(i.countryCodeXpath),_=v.countryCode,m=v.countryCodeFromXpath;_&&(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"auto_value_currency_country_form_xpath",extJSON:{url:e,country:_,vcConfig:r}});var y={value:f,currency:d||a,ori_value:l,rule_key:i.rule_key,country_code:m};return m||(y.country_code=nP(e)),(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"auto_value_currency_update_info",extJSON:{url:e,autoProperties:y,vcConfig:r}}),nk(nB,y),y}}}return null}catch(t){return(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"updateAutoVCData"}),null}},nk=function(t,e){try{sessionStorage.setItem(t,JSON.stringify(e))}catch(t){}},nM=function(t){try{var e=sessionStorage.getItem(t);return e?JSON.parse(e):null}catch(t){return null}},nj=function(t){try{sessionStorage.removeItem(t)}catch(t){}},nB="value_currency_rule",nU="parameter_inference_rule",nq=[iP.CLICK,iP.SCROLL],nG=function(){function t(t){var e=this;this.handlerArray=t,nq.forEach(function(t){window.addEventListener(t.toLowerCase(),(0,p.Ds)(function(){e.interactionHandler(t)},2e3,e),{capture:!0,passive:!0})})}var e=t.prototype;return e.iterateHandlerArray=function(t){this.handlerArray.forEach(function(e){return e(t)})},e.interactionHandler=function(t){var e=this;this.timeoutId&&clearTimeout(this.timeoutId),this.iterateHandlerArray(t),this.timeoutId=setTimeout(function(){e.iterateHandlerArray(t)},2e3)},t}(),nV=function(){function t(){this.history={}}var e=t.prototype;return e.hasReport=function(t,e,r){var n=this.genHistoryKey(t,e);return this.history[n]&&this.history[n].indexOf(r)>-1},e.addHistory=function(t,e,r){var n=this.genHistoryKey(t,e);this.history[n]||(this.history[n]=[]),this.history[n].push(r)},e.clearHistory=function(){this.history={}},e.genHistoryKey=function(t,e){return t+":"+e},t}(),nH=function(){function t(t,e,r,n){this.context=t,this.reportHistory=new nV,this.reporters=e,this.reportService=r,this.ttqOptions=n}var e=t.prototype;return e.report=function(t,e,r){var n=this,o=tK(ib.AUTO_CONFIG),i=this.getReportPixelList(e,r),a=this.assemblyReportData(t,r,i);a&&o&&this.reportService.reportPreTasks.then(function(){n.reportService.report(o,a,iO.defaultReport,iA.P0)})},e.clearHistory=function(){this.reportHistory.clearHistory()},e.getReportPixelList=function(t,e){var r=this,n=JSON.stringify(Object.assign({},e,{page_trigger:void 0}));return this.reporters.filter(function(e){return!!rG(e)&&rV(e,t)}).filter(function(e){var o=e.getReporterId();return!([iF.AUTO_COLLECTION,iF.AUTO_FORM].indexOf(t)>-1&&r.reportHistory.hasReport(t,o,n))&&(r.reportHistory.addHistory(t,o,n),e)})},e.getCookieBasedSessions=function(t){var e=[],r=tR(document.cookie),n=t.filter(function(t){var e;return!!(null==(e=null==t?void 0:t.reporterInfo)?void 0:e.firstPartyCookieEnabled)});if(0===n.length)return e;var o=this.context.setPageCookieBasedSession(r[""]);return n.forEach(function(t){var n=t.getReporterId(),i=t.setCookieBasedSession(r[n]);e.push(tL(i,o,n))}),e},e.assemblyReportData=function(t,e,r){if(0!==r.length){var n,o,i,a=r.map(function(t){return t.getReporterId()}),u=this.context.getPageSign(),c=(null==(o=null==(n=this.ttqOptions)?void 0:n.cookieBasedSessionConfig)?void 0:o.enable)?this.getCookieBasedSessions(r):[],s=r[0],l=s.assemblyData(s.getReporterId(),"",{},{},ib.AUTO_CONFIG);return delete l.event,l.action=t,l.auto_collected_properties=e,l.context.pixel||(l.context.pixel={}),l.context.pixel.code=a[0],l.context.pixel.codes=a.join("|"),l.context.index=null==(i=u.pageIndex)?void 0:i.index,l.context.session_id=u.sessionId,l.context.pageview_id=(0,tf.gj)(this.context.getPageViewId(),s.reporterInfo.loadId,J.n2),l.context.sessions=c,l.message_id=l.message_id.replace(/-[^-]*$/,""),l}},t}(),nW=function(){function t(){}var e=t.prototype;return e.decompose=function(t){for(var e=[],r=0,n=0,o=t.length,i="text",a="",u="";n"===c&&(r=this.parseTag(a,e,r),i="text",a="")),n++}return r=this.processTextBuffer(u,e,r),a&&(r=this.parseTag(a,e,r)),e},e.processTextBuffer=function(t,e,r){var n=t.trim();if(!n)return r;if(n.length<=30){var o={type:"text",value:n,position:r++};return e.push(o),r}return rd(n,30).forEach(function(t){var n={type:"text",value:t,position:r++};e.push(n)}),r},e.parseTag=function(t,e,r){var n=r;if(!t)return n;if(t.startsWith("30?rd(t,30).forEach(function(t){n.push({type:"array-item",key:a,value:t,position:o++})}):n.push({type:"array-item",key:a,value:t,position:o++})}):null!==t&&"object"==typeof t&&Object.keys(t).forEach(function(i){var a=e?e+"."+i:i,u=t[i];if(null!==u&&"object"==typeof u){var c=r.decompose(u,a);n.push.apply(n,c)}else"string"===rg(u)&&u.length>30?rd(u,30).forEach(function(t){n.push({type:"object-property",key:a,value:t,name:i,position:o++})}):n.push({type:"object-property",key:a,value:u,name:i,position:o++})}),n},t}();function nY(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=o()).done;){var i=r.value;switch(i.type){case"tagStart":n+="<"+i.name;break;case"attribute":n+=" "+i.key+'="'+i.redactedValue+'"';break;case"tagStartClose":n+=">";break;case"text":n+=i.redactedValue;break;case"tagEnd":n+=""}}return n},t}(),nJ=function(){function t(){}return t.prototype.recompose=function(t,e){var r;return r=Array.isArray(e)?[]:{},0===t.length||t.forEach(function(t){var e=t.key,n=t.redactedValue,o=t.type;if(e){var i=e.split("."),a=r;i.forEach(function(t,e){var r=e===i.length-1,u=i[e+1],c="array-item"===o||!r&&void 0!==u&&!isNaN(Number(u));void 0===a[t]&&(a[t]=c?[]:{}),r?a[t]&&"string"==typeof a[t]?a[t]+=n:a[t]=n:a=a[t]})}}),r},t}();function nZ(){nZ=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var nz=function(){function t(t,e,r,n){this.replaceTag=r||ik.DEFAULT,this.regexArray=[].concat(t),this.type=n||"DEFAULT_TYPE",this.keyWords=e}return t.prototype.redact=function(t,e,r){var n,o,i,a;return n=this,o=void 0,i=void 0,a=nZ().mark(function n(){var o,i,a,u,c=this;return nZ().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t&&t.startsWith("=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var n$=function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function u(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,u)}c((n=n.apply(t,e||[])).next())})},n0=function(){function t(){this.middlewareRedactors=[],this.sensitive_data_found=!1,this.htmlDecomposer=new nW,this.elementDecomposer=new nK,this.htmlRecomposer=new nX,this.elementRecomposer=new nJ}var e=t.prototype;return e.registerRedactor=function(t){if("function"!=typeof(null==t?void 0:t.redact))throw Error("Middleware must implement `redact(value: string, next: NextFunction): Promise` method");this.middlewareRedactors.push(t)},e.process=function(t,e){return n$(this,void 0,void 0,nQ().mark(function r(){var n,o,i,a,u,c=this;return nQ().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,this.sensitive_data_found=!1,"string"==typeof t||"object"==typeof t){r.next=4;break}return r.abrupt("return",Promise.resolve({originalInput:t,success:!1,error:Error("Input must be string or object")}));case 4:if("object"!=typeof t||null!==t){r.next=6;break}return r.abrupt("return",Promise.resolve({originalInput:t,success:!1,error:Error("Input object must not be null")}));case 6:return"string"==typeof t?(n=this.htmlDecomposer,o=this.htmlRecomposer):(n=this.elementDecomposer,o=this.elementRecomposer),i=n.decompose(t),r.next=10,Promise.all(i.map(function(t){return n$(c,void 0,void 0,nQ().mark(function r(){var n,o,i;return nQ().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e&&t.name&&e.has(t.name))){r.next=2;break}return r.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:t.value}));case 2:if(!(null==(n=t.type)?void 0:n.includes("tag"))){r.next=4;break}return r.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:""}));case 4:return o=t.value||"",r.next=7,this.dispatch(0,o);case 7:return(i=r.sent)!==o&&(this.sensitive_data_found=!0),r.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:i}));case 10:case"end":return r.stop()}},r,this)}))}));case 10:return a=r.sent,u=o.recompose(a,t),r.abrupt("return",Promise.resolve({originalInput:t,success:!0,redactedOutput:u}));case 15:return r.prev=15,r.t0=r.catch(0),r.abrupt("return",Promise.resolve({originalInput:t,success:!1,error:r.t0}));case 18:case"end":return r.stop()}},r,this,[[0,15]])}))},e.createRedactor=function(t,e,r,n){void 0===t&&(t=[]),void 0===e&&(e=[]);var o=new nz(t,e,r);return n&&(o.redact=n),o},e.dispatch=function(t,e){return n$(this,void 0,void 0,nQ().mark(function r(){var n,o,i,a=this;return nQ().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n=this.middlewareRedactors[t]){r.next=3;break}return r.abrupt("return",e);case 3:return o=function(r){return void 0===r&&(r=e),n$(a,void 0,void 0,nQ().mark(function e(){return nQ().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.dispatch(t+1,r));case 1:case"end":return e.stop()}},e,this)}))},r.prev=4,r.next=7,n.redact(e,o);case 7:return i=r.sent,r.abrupt("return",i);case 11:return r.prev=11,r.t0=r.catch(4),r.abrupt("return",o(e));case 14:case"end":return r.stop()}},r,this,[[4,11]])}))},e.isHasSensitiveData=function(){return this.sensitive_data_found},t}();function n1(){n1=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function n2(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}function n3(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){n2(i,n,o,a,u,"next",t)}function u(t){n2(i,n,o,a,u,"throw",t)}a(void 0)})}}function n8(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n6(t,e){return(n6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var n9=function(t,e){return function(r,n){e(r,n,t)}},n5="AutoConfig",n4="tt_auto_config_v2_test",n7=function(t){function e(e,r,n,o){var i,a;return(i=t.call(this,{name:n5,reporters:r,context:e})||this).autoCollectedMetadata={},i.initializeVersion1=!1,i.initializeVersion2=!1,i.intent_data=[],i.currentPixelCode="",i.autoFormUpdateHandler=(0,p.Ds)(function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e={taskName:window.ttq._pf_tn||"auto_config_form_handler",functionName:window.ttq._pf_tn&&"auto_config_form_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="auto_config_form_handler")}}catch(t){}if(i.autoForm){if(i.autoCollectedFormDetail=i.autoForm.getOverallFormDetail(),i.autoCollectedFormDetail.length>3e4)return void(0,c.vU)(s.O.CUSTOM_ERROR,{message:""+String(i.autoCollectedFormDetail.length)},{custom_name:rh,custom_enum:iR.OVER_LENGTH});i.actTracker.report(iN.METADATA,iF.AUTO_FORM,{page_trigger:t,form_details:i.autoCollectedFormDetail})}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e),"auto_config_form_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},200,n8(i)),i.autoCollectionUpdateHandler=(0,p.Ds)(function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e={taskName:window.ttq._pf_tn||"auto_config_metadata_handler",functionName:window.ttq._pf_tn&&"auto_config_metadata_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="auto_config_metadata_handler")}}catch(t){}i.autoCollectedMetadata=function(t){var e={open_graph:"{}",microdata:"[]",json_ld:"[]",meta:"{}"};try{e.microdata=function(){if(!ne.getMetaData)return"[]";for(var t=document.querySelectorAll("[itemscope]"),e=[],r=nn(),n=0;n=0;o--){var i=t[o],a=i.getAttribute("itemtype");if("string"==typeof a&&""!==a){for(var u={},c=i.querySelectorAll("[itemprop]"),s=0;s0)return t.innerText;if(t.textContent&&t.textContent.length>0)return t.textContent}return""}(t)||""}return"string"==typeof e?nr(e):""}(l);if(null!=p){var h=u[f];null!=h&&function(t,e){return null!=[{property:"image",type:"Product"}].filter(function(r){return(t==="https://schema.org/"+r.type||t==="http://schema.org/"+r.type)&&r.property===e})[0]}(a,f)?Array.isArray(h)?u[f].push(p):u[f]=[h,p]:u[f]=p}}}}e.unshift({schema:{dimensions:{h:i.clientHeight,w:i.clientWidth},properties:ni(a)?{}:u,subscopes:[],type:a},scope:i})}}for(var d=[],v=[],_=0;_=0;E--)if(d[E].scope.contains(y)){d[E].schema.subscopes.push(g);break}else d.pop();0===d.length&&v.push(g),d.push({schema:g,scope:y})}var D=JSON.stringify(v);return D.length>3e4&&(D="[]",ne.getMicroData=!1),D}()}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"microdata"})}try{var r=function(){if(!ne.getJSONLD)return{data:"[]",errors:[]};for(var t=[],e=[],r=document.querySelectorAll('script[type="application/ld+json"]'),n=0,o=0;o3e4)return ne.getJSONLD=!1,{data:JSON.stringify([]),errors:[{name:iS.OVER_LENGTH,message:""+String(n)}]};var a=void 0;try{a=JSON.parse(i.replace(/[\n\r\t]+/g," "))}catch(t){e.push({name:iS.ERROR_FORMAT,message:t.message})}try{a=function t(e){if("object"!=typeof e)return e;if(Array.isArray(e))return e.map(function(e){return t(e)});var r=Object.assign({},e),n=r["@type"];for(var o in r)"@type"!==o&&"@context"!==o&&("object"==typeof r[o]?r[o]=t(r[o]):n&&ni(n)&&delete r[o]);return r}(a)}catch(t){return{data:JSON.stringify([]),errors:[{name:iS.FILTER_SENSITIVE_FIELDS,message:t.message}]}}a&&t.push(a)}}return{data:JSON.stringify(t),errors:e}}(),n=r.data,o=r.errors;e.json_ld=n,o&&o.forEach(function(t){var e=t.name,r=t.message;(0,c.vU)(s.O.CUSTOM_ERROR,{message:r},{custom_name:"parse_json_ld_failed",custom_enum:e})})}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"json_ld"})}try{e.open_graph=function(t){if(!ne.getOpenGraph)return"{}";for(var e=nn(["og","product","music","video","article","book","profile","website","twitter"]),r={},n=document.querySelectorAll("meta[property],meta[name]"),o=0;ot.width?e:t})}(t);r&&(e.image_url=r.src)}if(!e.destination){var n=r4(t);n&&(e.destination=n)}return e}(p));var h=(n={composedPath:a,container:u},o=rN.PRIORITY_CONFIG,i={},Object.entries(o).forEach(function(t){for(var e,r=t[0],o=t[1],a=rM(o);!(e=a()).done;){var u=n[e.value][r];if(u){i[r]=u;break}}}),i),d=h.destination||h.image_url;return p?h.from=iB.FIND_PRODUCT_CARD:h.from=iB.COMPOSED_PATH,h.inner_text=r0(h.inner_text),d?h:null}catch(t){return(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"findRelatedParameter_error"}),null}}(e))&&!o&&(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"auto_click",custom_enum:"findRelatedParameter"}),!("v1"===r&&!a||"v2"===r&&!o&&!u)){t.next=7;break}return t.abrupt("return");case 7:if(i.queryDeepIntentData(),i.signal_insights_config&&nw(i.context,i.signal_insights_config),!a){t.next=21;break}return l=r5(r9(a)),t.next=13,i.sensitiveFilterRedactor.process(l,rx);case 13:if((f=t.sent).success){t.next=17;break}return(0,c.vU)(s.O.CUSTOM_ERROR,f.error,{custom_name:"auto_click",custom_enum:"sensitive_filter_error"}),t.abrupt("return");case 17:p=f.redactedOutput,function(t){var e,r,n=(null==(e=t.inner_text)?void 0:e.toString().toLowerCase())||"",o=(null==(r=t.image_url)?void 0:r.toString().toLowerCase())||"",i=[];if(t.attributes){var a=t.attributes;i=[a.class,a.id,a.name,a.type,a.value,a.destination].map(function(t){return(null==t?void 0:t.toString().toLowerCase())||""})}return[n,o].concat(i).some(rB)}(l)&&(p.filter_version=ij.V1),i.sensitiveFilterRedactor.isHasSensitiveData()&&(p.filter_version=(p.filter_version?p.filter_version+",":"")+ij.V2),i.reportButtonClick({triggerElement:p,intent_data:[].concat(i.intent_data,u?[u]:[])});case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(0),(0,c.vU)(s.O.CUSTOM_ERROR,t.t0,{custom_name:"auto_click",custom_enum:"auto_click_callback_error"});case 26:case"end":return t.stop()}},t,null,[[0,23]])})),i.autoClickCallback=function(t){return a.apply(this,arguments)},i.filter=n.auto_config||{open_graph:[],microdata:[],json_ld:[],meta:[]},i.actTracker=new nH(e,r,o,n),i.ttqOptions=n,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,n6(e,t);var r,n=e.prototype;return n.initBaseFeature=function(){var t=this.getAutoConfigVersion(this.currentPixelCode),e=this.reporters.some(function(t){return rG(t)});!this.initializeVersion2&&("v1"===t&&!this.initializeVersion1&&e&&(this.initializeVersion1=!0,this.initAutoCollection(),this.initInteractionListener(),this.initAutoClick(t)),"v2"===t&&e&&(this.initializeVersion1||(this.initAutoCollection(),this.initInteractionListener()),this.initAutoClick(t),this.initializeVersion2=!0))},n.initExtraFeature=function(){!this.autoForm&&(this.initializeVersion2||this.initializeVersion1)&&this.reporters.some(function(t){return rV(t,iF.AUTO_FORM)})&&this.initAutoForm(),this.initAutoVC()},n.queryDeepIntentData=function(){try{var t=function(){try{var t=(i=(o=y()).url,a=o.title,u=new URL(i).pathname.toLowerCase().includes(rL),l=a.toLowerCase().includes(rL),{isCheckoutPage:u||l,isUrlMatch:u,isTitleMatch:l}),e=t.isCheckoutPage,r=t.isUrlMatch,n=t.isTitleMatch;if(!e)return null;rQ||(rQ=!0,(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"auto_click",custom_enum:"checkout_page_identified",extJSON:{message:+!!r+"|"+ +!!n}}));for(var o,i,a,u,l,f,p=new Set([]),h=[],d=[],v=Array.from(document.getElementsByTagName("img")).filter(function(t){for(var e=t.className,r=0,n=Array.from(rN.INVALID_IMG_KEYWORDS);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(v);!(f=_()).done;){var m=f.value;if(h.length>rF.MAX_PRODUCTS_COUNT)break;if(!rz.has(m)){if(rz.add(m),!(m.height=0;n--){var o=t[n],i=r4(o);if(r$(o))e=o,r.inner_text=r0(o.innerText),r.destination=i||r.destination;else break}if(!e||!r.inner_text||r.inner_text.length>rF.MAX_COMPRESS_STRING_LENGTH)return{intentData:null,containerNode:null};return{intentData:r,containerNode:e}}catch(t){return(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"reverseCheckoutPageInfo_error"}),{intentData:null,containerNode:null}}}(E),C=I.intentData,T=I.containerNode;T&&C&&(d.push(T),C.image_url=g,h.push(C))}}}}}if(function(t,e){if(!(t.length<=rF.MAX_PRODUCTS_COUNT)){for(var r=rK(e[rF.MAX_PRODUCTS_COUNT]),n=rF.MAX_PRODUCTS_COUNT,o=rF.MAX_PRODUCTS_COUNT-1;o>=0;o--)if(rY(r,rK(e[o]))>rF.INVALID_DATA_SIMILARITY_THRESHOLD)n--;else break;t.splice(n),e.splice(n)}}(h,d),0==h.length)return null;return h}catch(t){return(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"queryCheckoutPageIntentData_error"}),null}}();t&&(this.intent_data=function(t){for(var e,r=new Set,n=[],o=r1(t);!(e=o()).done;){var i=e.value,a=i.image_url;r.has(a)||(r.add(a),n.push(i))}return n}([].concat(this.intent_data,t)),(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"auto_click",custom_enum:"queryCheckoutPageIntentData",extJSON:{message:""+this.intent_data.length}}))}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"autoclick",custom_enum:"queryDeepIntentData"})}},n.initInteractionListener=function(){var t=this;this.reporters.some(function(t){var e=t.options;return e&&!1!==e.autoConfigListener})&&new nG([function(e){rq(t.autoCollectionUpdateHandler,t)(e)},function(e){rq(t.autoFormUpdateHandler,t)(e)}])},n.initAutoClick=function(t){var e=this;rp(id.CLICK,this.autoClickCallback,{throttle:!0,interval:1e3},{observerType:id.CLICK,pluginName:n5,pluginVersion:t,target:"v2"===t?window:p.zh,environment:"window",listenEventTypes:[id.CLICK],mode:"append"});try{if(this.sensitiveFilterRedactor)return;this.sensitiveFilterRedactor=new n0,Object.entries(rk).forEach(function(t){var r=t[0],n=t[1],o=e.sensitiveFilterRedactor.createRedactor(n,[],r);e.sensitiveFilterRedactor.registerRedactor(o)});var r=this.sensitiveFilterRedactor.createRedactor([],rD);this.sensitiveFilterRedactor.registerRedactor(r)}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"sensitive_init_error"})}},n.initAutoVC=function(){var t=this;this.reporters.find(function(e){var r=nO(e);return!!r&&(t.signal_insights_config=r,!0)})},n.initAutoCollection=function(){},n.initAutoForm=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"initAutoForm",start:performance.now()}}catch(t){}this.autoForm=new n_(this.reporters),this.autoForm.addFormUpdateHandler(this.autoFormUpdateHandler.bind(this)),this.autoCollectedFormDetail=this.autoForm.getOverallFormDetail();try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}},n.pixelDidMount=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"auto_config_plugin_pixelDidMount",start:performance.now()}}catch(t){}this.currentPixelCode=t.getReporterId(),this.initBaseFeature(),this.initExtraFeature();try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},n.patchEnd=function(){this.initBaseFeature(),this.initExtraFeature()},n.pixelSend=function(t,e,r){var n=this.reporters.find(function(e){return e.getReporterId()===t});if(this.currentPixelCode=t,this.signal_insights_config&&nw(this.context,this.signal_insights_config),n&&nO(n)&&(nM(nB)||nM(nU))){((0,p.Zq)(e)||"Pageview"===e||"InitiateCheckout"===e||"PlaceAnOrder"===e)&&(o=nM(nB));var o,i=nM(nU);r.auto_collected_properties={vc_properties:Object.assign(Object.assign({},o&&{value:o.value,currency:o.currency,ori_value:o.ori_value,rule_key:o.rule_key}),i&&{parameter_inference:i})}}(0,p.Zq)(e)&&setTimeout(function(){nj(nB)},500),"Pageview"===e&&(!n||rG(n))&&(rq(this.autoCollectionUpdateHandler,this)(iP.PAGE_VIEW),rq(this.autoFormUpdateHandler,this)(iP.PAGE_VIEW))},n.pageUrlDidChange=function(t,e){null!=e&&""!=e&&(this.autoCollectionUpdateHandler(iP.URL_CHANGE),this.autoFormUpdateHandler(iP.URL_CHANGE))},n.pageWillLeave=function(){this.autoCollectionUpdateHandler(iP.PAGE_LEAVE),this.autoFormUpdateHandler(iP.PAGE_LEAVE)},r=n3(n1().mark(function t(e){var r,n,o,i;return n1().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=nM(nB)||void 0,(n=nM(nU)||void 0)&&((r=r||{}).parameter_inference=n),("v1"==(this.initializeVersion2?"v2":"v1")||"1"===tg(n4))&&(e.intent_data=e.intent_data.filter(function(t){return t.from===iB.CHECKOUT})),o=void 0,e.intent_data.length){t.next=10;break}o=void 0,t.next=14;break;case 10:return t.next=12,this.sensitiveFilterRedactor.process(e.intent_data,new Set(rP));case 12:(i=t.sent).success&&(o=i.redactedOutput);case 14:this.actTracker.report(iN.CLICK,iF.AUTO_VC,{page_trigger:iP.CLICK,trigger_element:e.triggerElement,vc_properties:r,intent_data:o}),this.actTracker.report(iN.CLICK,iF.AUTO_VC_REVERSE,{page_trigger:iP.CLICK,trigger_element:e.triggerElement,intent_data:o});case 16:case"end":return t.stop()}},t,this)})),n.reportButtonClick=function(t){return r.apply(this,arguments)},n.getAutoConfigVersion=function(t){var e=this.reporters.find(function(e){return e.getReporterId()===t});if(!e)return"v1";var r=e.plugins,n=r&&r.AutoConfigV2,o=this.ttqOptions.vids&&this.ttqOptions.vids.includes("74539885");return tg(n4)||n&&o?"v2":"v1"},e}(e$);n7=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),n9(0,H(b.CONTEXT)),n9(1,H(b.TTQ_REPORTERS)),n9(2,H(b.TTQ_GLOBAL_OPTIONS)),n9(3,H(b.REPORT_SERVICE))],n7);var ot=r(278),oe=r.n(ot),or={EMPTY_EVENT_TYPE_NAME:{title:"Missing Event Name",desc:"The event name for one or more of your events is empty. This can affect the accuracy of reporting for your conversions.",suggestion:"Go to your source code and add a name that follows our format requirements and TikTok policies.",link:"https://ads.tiktok.com/marketing_api/docs?rid=5ipocbxyw8v&id=1701890973258754"},INVALID_CONTENT_ID:{title:"Missing value for content ID",desc:"Include a value for your 'content_id' parameter. This is required for Video Shopping Ads (VSA).",suggestion:"If you are or plan to run Video Shopping Ads (VSA), go to your source code and include a value for the 'content_id' parameter.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_CONTENT_TYPE:{title:"Invalid content type",desc:'The content type for one or more of your events is not valid. Content type must be either "product", "product_group", "destination", "hotel", "flight" or "vehicle".',suggestion:"Go to your source code and update the content type.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_CURRENCY_CODE:{title:"Invalid currency code",desc:"The currency code for one or more of your events isn't supported. This can affect the accuracy of reporting for your ROAS.",suggestion:"Go to your source code and update the 'currency' parameters with a supported currency code.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_EMAIL_FORMAT:{title:"Incorrect email format",desc:"The email format for your events does not match the format supported. This can impact Advanced Matching and your ad performance.",suggestion:"Go to your source code and update the format of your shared emails. It should follow 'xxx@xxx.com' format.",link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},INVALID_EMAIL_INFORMATION:{title:"Invalid email information",desc:"The emails shared with your events were invalid.",suggestion:'Go to your source code to double check shared emails. Leave your string empty when customer information isn\'t available. Avoid spaces, "undefined", or other hardcoded values.',link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},INVALID_EVENT_PARAMETER_VALUE:{title:"Invalid value parameter",desc:"The 'value' parameter for one or more of your events is invalid. This is used calculate ROAS for people and the bid for your highest value customers. Parameters must be an integer or in the decimal format (e.g. 9.99). Also, they can't contain currency symbols, special characters, letters, or commas.",suggestion:"Go to your source code and update the 'value' parameter. It can only include numbers greater than or equal to zero (e.g. 9.99). Do not include currency symbols, special characters, letters, or commas.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_PHONE_NUMBER_FORMAT:{title:"Incorrect phone number format",desc:"The phone number format for your events doesn't follow the E.164 format. This can affect Advanced Matching and your ad performance.",suggestion:"Go to your source code and update your shared phone numbers. It should follow the E.164 format.",link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},INVALID_PHONE_NUMBER_INFORMATION:{title:"Invalid phone number information",desc:"The phone numbers shared with your events were invalid.",suggestion:'Go to your source code to double check shared phone numbers. Leave your string empty when customer information isn\'t available. Avoid spaces, "undefined", or other hardcoded values.',link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},LONG_EVENT_TYPE_NAME:{title:"Event Name Too Long",desc:"1 event type exceeds the 50 character limit.",suggestion:"Go to your source code and make these event names 50 characters or less.",link:"https://ads.tiktok.com/help/article/custom-events?lang=en"},MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT:{title:"Invalid Event Name Format",desc:"1 event name was rejected for not following TikTok format requirements.",suggestion:"Go to your source code and update these event types according to TikTok format requirements.",link:"https://ads.tiktok.com/help/article/custom-events?lang=en"},MISSING_CONTENT_ID:{title:"Missing 'content_id' paramter",desc:"The 'content_id' parameter isn't being received. This is required for Video Shopping Ads (VSA).",suggestion:"Include the 'content_id' parameter in your source code. This is required for Video Shopping Ads (VSA).",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},MISSING_CURRENCY_PARAMETER:{title:'Missing "currency" parameter',desc:"Events shared are missing a 'currency' parameter. This impacts our ability to receive the value amount correctly, which can affect the accuracy of reporting for your return on ad spend.",suggestion:'Go to your source code and include the "currency" parameter. You can check supported currency codes. {{learn_more}}',link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},MISSING_EMAIL_AND_PHONE:{title:"Missing email and phone number",desc:"Email and phone number info isn't being received. This information is required for Complete Payment events.",suggestion:"Improve your email and phone coverage. This allows you to attribute more conversions and reach more people with your ads.",link:"https://ads.tiktok.com/marketing_api/docs?rid=5ipocbxyw8v&id=1701890972946433"},MISSING_VALUE_PARAMETER:{title:'Missing "value" parameter',desc:"Events shared are missing a 'value' parameter'. This is used calculate ROAS for people and the bid for your highest value customers. ",suggestion:'Go to your source code and include the "value" parameter.',link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},DUPLICATE_PIXEL_CODE:{title:"Duplicate Pixel ID",desc:"The pixel ID is duplicate. This could impact the pixel data accuracy.",suggestion:"Please double check and delete any unnecessary pixel code.",link:""},MISSING_PIXEL_CODE:{title:"Missing pixel ID",desc:"Some of the events sent to your TikTok account are missing a pixel ID.",suggestion:"Go to your source code and double check that the 20-character pixel ID has been added to the ttq.load() function. Don't send null values or spaces. If you edited the base code, ensure the event.js has the 'sdkid' in the Chrome network panel.",link:""},INVALID_PIXEL_CODE:{title:"Invalid pixel ID",desc:"The pixel ID is invalid. This could prevent your pixel from receiving data.",suggestion:"Please go to Events Manager and find the correct pixel ID.",link:""}},on=/^[a-zA-Z\d]([a-zA-Z_\-\d ]{0,}[a-zA-Z_\-\d])?$/,oo=["product","product_group","destination","hotel","flight","vehicle"],oi=["email_is_hashed","phone_is_hashed","sha256_email","sha256_phone"],oa=["Purchase","CompletePayment","InitiateCheckout","AddToCart","PlaceAnOrder","ViewContent","AddToWishlist"],ou=function(t){return void 0===t},oc=function(t,e){if(iE[t]){var r=(0,l.E9)(),n=or[t],o="[TikTok Pixel] - "+n.title;n.desc&&(o+="\nIssue: "+n.desc),n.suggestion&&(o+="\nSuggestion: "+n.suggestion),e&&Object.keys(e).forEach(function(t){o=o.split("{{"+t+"}}").join(e[t])}),o=o.trim(),n.link&&(o+=" See "+n.link+" for more information."),r&&r.console&&r.console.warn&&r.console.warn(o)}};(ic=iq||(iq={}))[ic.Live=0]="Live",ic[ic.NoRecord=1]="NoRecord";var os=function(t){var e=t.event,r=void 0===e?"":e;return!!(["null","undefined"].includes(r)||/^\s*$/.test(r))||!r},ol=function(t){var e=t.event;return!!os(t)||on.test(void 0===e?"":e)},of=function(t){var e=t.event;return(void 0===e?"":e).length<=50},op=function(t){var e=t.event,r=t._inspection;if((0,p.Zq)(e)){var n=(void 0===r?{}:r).identity_params,o=void 0===n?{}:n;return 0===Object.keys(o).length||oi.every(function(t){return(o[t]||[]).includes(tI.Vp.EMPTY_VALUE)})}return!1},oh=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.email_is_hashed||[]).includes(tI.Vp.FILTER_EVENTS)||(r.identity_params.sha256_email||[]).includes(tI.Vp.FILTER_EVENTS))},od=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.email_is_hashed||[]).includes(tI.Vp.UNKNOWN_INVALID)||(r.identity_params.sha256_email||[]).includes(tI.Vp.UNKNOWN_INVALID))},ov=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.phone_is_hashed||[]).includes(tI.Vp.FILTER_EVENTS)||(r.identity_params.sha256_phone||[]).includes(tI.Vp.FILTER_EVENTS))},o_=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.phone_is_hashed||[]).includes(tI.Vp.UNKNOWN_INVALID)||(r.identity_params.sha256_phone||[]).includes(tI.Vp.UNKNOWN_INVALID))},om=function(t){var e=t.event,r=t.properties,n=void 0===r?{}:r;if(oa.includes(void 0===e?"":e)){if(ou(n.contents)&&ou(n.content_id))return!0;if(!ou(n.contents))return!Array.isArray(n.contents)||n.contents.length<1||!n.contents.every(function(t){return t&&!ou(t.content_id)})}return!1},oy=function(t){var e=t.properties,r=void 0===e?{}:e,n=r.content_id,o=r.contents;return!(!ou(n)&&/^\s*$/.test(n))&&(!(!ou(o)&&Array.isArray(o))||o.every(function(t){return t&&!ou(t.content_id)&&!/^\s*$/.test(t.content_id)}))},og=function(t){var e=t.properties.content_type;return!e||oo.includes(e)},oE=function(t){var e=t.properties.value;return!e||!!("number"==typeof e||"string"==typeof e&&(/^\d+(\.\d+)?$/.test(e)||/^\d+$/.test(e)))},oD=function(t){var e=t.event,r=t.properties,n=void 0===r?{}:r;return!!((0,p.Zq)(void 0===e?"":e)&&ou(n.value)||!ou(n.currency)&&ou(n.value))},ob=function(t){var e=t.properties.currency;return!e||tH.includes(e)},ow=function(t){var e=t.event,r=t.properties,n=void 0===r?{}:r;return!!((0,p.Zq)(void 0===e?"":e)&&ou(n.currency)||!ou(n.value)&&ou(n.currency))};function oO(t,e){return(oO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var oA=function(t,e){return function(r,n){e(r,n,t)}},oI=function(t){function e(e,r,n){var o,i;return(o=t.call(this,{name:"DiagnosticsConsole",reporters:r,context:e})||this).isEnableDiagnosticsConsole=!1,o.isEnableDiagnosticsConsole=!!(null==(i=null==n?void 0:n.plugins)?void 0:i.DiagnosticsConsole),o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,oO(e,t);var r=e.prototype;return r.isDisableDiagnosticsConsole=function(){try{if(this.isEnableDiagnosticsConsole)return!!Object.values(this.reporters).some(function(t){var e,r;return void 0!==(null==(e=null==t?void 0:t.options)?void 0:e.diagnostics)&&!(null==(r=null==t?void 0:t.options)?void 0:r.diagnostics)});return!0}catch(t){return!1}},r.warn=function(t,e){try{if(this.isDisableDiagnosticsConsole())return;oc(t,e)}catch(e){(0,c.vU)(s.O.CUSTOM_ERROR,e,{custom_name:"diagnostics_console",custom_enum:t})}},r.pixelDidMount=function(t){var e=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var r={taskName:window.ttq._pf_tn,functionName:"console_plugin_pixelDidMount",start:performance.now()}}catch(t){}t.getParameterInfo().then(function(t){e.handlePixelInfoValidate(t)}).catch(function(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"diagnostics_console",custom_enum:"pixel"})});try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}},r.pixelSend=function(t,e,r,n,o){void 0===n&&(n={});try{n&&n._i||o!==ib.TRACK||e===tq||this.handleEventPayloadValidate(oe()(r||{}))}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"diagnostics_console",custom_enum:"track"})}},r.handlePixelInfoValidate=function(t){if(t.status!==iq.Live)return void this.warn(iE.INVALID_PIXEL_CODE)},r.handleEventPayloadValidate=function(t){t.properties||(t.properties={}),os(t)&&this.warn(iE.EMPTY_EVENT_TYPE_NAME),ol(t)||this.warn(iE.MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT),of(t)||this.warn(iE.LONG_EVENT_TYPE_NAME),op(t)&&this.warn(iE.MISSING_EMAIL_AND_PHONE),oh(t)&&this.warn(iE.INVALID_EMAIL_INFORMATION),od(t)&&this.warn(iE.INVALID_EMAIL_FORMAT),ov(t)&&this.warn(iE.INVALID_PHONE_NUMBER_INFORMATION),o_(t)&&this.warn(iE.INVALID_PHONE_NUMBER_FORMAT),om(t)&&this.warn(iE.MISSING_CONTENT_ID),oy(t)||this.warn(iE.INVALID_CONTENT_ID),og(t)||this.warn(iE.INVALID_CONTENT_TYPE),oE(t)||this.warn(iE.INVALID_EVENT_PARAMETER_VALUE),oD(t)&&this.warn(iE.MISSING_VALUE_PARAMETER),ob(t)||this.warn(iE.INVALID_CURRENCY_CODE),ow(t)&&this.warn(iE.MISSING_CURRENCY_PARAMETER,{learn_more:""})},e}(e$);oI=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),oA(0,H(b.CONTEXT)),oA(1,H(b.TTQ_REPORTERS)),oA(2,H(b.TTQ_GLOBAL_OPTIONS))],oI);var oC="https://analytics.tiktok.com/i18n/pixel/eb.js",oT="_tt_event_builder";function oS(t,e){return(oS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(is=iG||(iG={})).EVENT_BUILD_BOOTSTRAP_ACK="event_builder_bootstrap_ack",is.EVENT_BUILD_WRONG_CODE="event_builder_wrong_code",is.EVENT_BUILD_BOOTSTRAP="event_builder_bootstrap";var oR=function(t,e){return function(r,n){e(r,n,t)}},oN=function(t){function e(e,r){var n;return(n=t.call(this,{name:"EventBuilder",reporters:r,context:e})||this).pluginMounted=!1,n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,oS(e,t),e.prototype.pixelDidMount=function(t){var e=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var r={taskName:window.ttq._pf_tn,functionName:"event_builder_plugin_pixelDidMount",start:performance.now()}}catch(t){}if(!this.pluginMounted){this.pluginMounted=!0;var n=(0,l.Ie)(),o=function(t){t.data.type===iG.EVENT_BUILD_BOOTSTRAP&&!n._event_builder_pickup_sdk_loaded&&(e.reporters.find(function(e){return e.getReporterId()===t.data.pixelCode})?(n._event_builder_pickup_sdk_loaded=!0,X(oT,t.data),tj(oC).then(function(){window.opener.window.postMessage({type:iG.EVENT_BUILD_BOOTSTRAP_ACK},"*")}).catch(function(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"event_builder_load_error",custom_enum:"load_ebjs"})})):n._event_builder_pickup_sdk_verify_flag||(setTimeout(function(){e.reporters.find(function(e){return e.getReporterId()===t.data.pixelCode})||window.opener.window.postMessage({type:iG.EVENT_BUILD_WRONG_CODE},"*")},5e3),n._event_builder_pickup_sdk_verify_flag=!0))};!n._event_builder_pickup_sdk_loaded&&(K(oT)?tj(oC).then(function(){n._event_builder_pickup_sdk_loaded=!0}):window.opener&&(window.addEventListener("message",o),setTimeout(function(){window.removeEventListener("message",o)},8e3)));try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}}},e}(e$);function oF(t,e){return(oF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}oN=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),oR(0,H(b.CONTEXT)),oR(1,H(b.TTQ_REPORTERS))],oN);var oL=function(t,e){return function(r,n){e(r,n,t)}},oP="tt_pixel_is_enrich_ipv6_triggered_by_enrich_am",ox=function(t){function e(e,r,n,o){var i;return(i=t.call(this,{name:"EnrichIpv6",reporters:r,context:e})||this).hasReported=!1,i.shouldReportAfterEnrichAM=!1,i.reportService=n,i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,oF(e,t);var r=e.prototype;return r.isPixelEnrichIpv6=function(){var t=this.reporters;return!!t&&0!==t.length&&t.every(function(t){return t&&t.plugins&&!0===t.plugins.EnrichIpv6})},r.isEnrichIpv6V2SwitchOn=function(){var t="EnrichIpv6V2";try{var e=(0,l.Ie)()._plugins||{};if(null!=e[t])return!!e[t];return!1}catch(t){return!1}},r.buildEnrichIpv6Data=function(t){var e=this.isEnrichIpv6V2SwitchOn()?"#source=2":"#source=1";return Object.assign(Object.assign({},t),{event:"EnrichIpv6",trigger_event:t.event,message_id:t.message_id+e})},r.pixelSend=function(t,e,r,n,o){void 0===n&&(n={});try{var i;if(o!==ib.TRACK||!("Shopify"===(0,l.kW)(t)||this.isEnrichIpv6V2SwitchOn())||(0,f.Z0)(this.env)||!(r&&r.message_id)||((null==(i=this.context.getPageSign().pageIndex)?void 0:i.index)===0&&!this.hasReported&&this.isPixelEnrichIpv6()&&(this.hasReported=!0,this.reportService.report(ti,this.buildEnrichIpv6Data(r),iO.htmlHttpReport)),"true"===sessionStorage.getItem(oP)))return;"EnrichAM"===e&&(this.shouldReportAfterEnrichAM=!0),this.shouldReportAfterEnrichAM&&this.isPixelEnrichIpv6()&&(this.shouldReportAfterEnrichAM=!1,sessionStorage.setItem(oP,"true"),this.reportService.report(ti,this.buildEnrichIpv6Data(r),iO.htmlHttpReport))}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"enrich_ipv6_report"})}},e}(e$);function ok(t){return performance&&performance.timing?t?Date.now()-t:Date.now()-performance.timing.navigationStart:-1}function oM(t,e){return function(){for(var r=arguments.length,n=Array(r),o=0;o=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),oL(0,H(b.CONTEXT)),oL(1,H(b.TTQ_REPORTERS)),oL(2,H(b.REPORT_SERVICE)),oL(3,H(b.ENV))],ox),(il=iV||(iV={})).FIRST_CONTENTFUL_PAINT="fcp",il.LARGEST_CONTENTFUL_PAINT="lcp",il.FIRST_INPUT_DELAY="fid",il.TIME_TO_FIRST_BYTE="ttfb",il.PAGE_LEAVE="pl",il.LOAD_FINISH="lf",il.TIME_WINDOW_TRACKER="twt",il.TIME_TO_INTERACTIVE="tti",(ip=iH||(iH={})).performance="performance",ip.interaction="interaction";var oU=function(){function t(t,e,r,n){n?(this.reportService=r,this.context=t,this.reporters=e,this.reportUrl=n):(0,c.vU)(s.O.CUSTOM_ERROR,Error("empty reportUrl"),{custom_name:"empty_reportUrl",custom_enum:"page_perf_monitor"})}var e=t.prototype;return e.getResult=function(t){return{action_event:t}},e.report=function(t){var e=this;if(void 0!==t){var r=this.getReportPixelList(),n=this.assemblyReportData(ib.PAGE,t,r);n&&this.reportService.reportPreTasks.then(function(){e.reportService.report(e.reportUrl,n,iO.defaultReport,iA.P0)}),this.resetAfterReport()}},e.getReportPixelList=function(){return this.reporters},e.assemblyReportData=function(t,e,r){if(0!==r.length){var n,o=r.map(function(t){return t.getReporterId()}),i=this.context.getPageSign(),a=r[0],u=a.assemblyData(a.getReporterId(),"",{},{},ib.PAGE);return delete u.event,u.action=t,u.auto_collected_properties=e,u.context.pixel||(u.context.pixel={}),u.context.pixel.code=o[0],u.context.pixel.codes=o.join("|"),u.context.index=null==(n=i.pageIndex)?void 0:n.index,u.context.session_id=i.sessionId,u.context.pageview_id=(0,tf.gj)(this.context.getPageViewId(),a.reporterInfo.loadId,J.n2),u.message_id=u.message_id.replace(/-[^-]*$/,""),u}},t}();function oq(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.rules);!(t=e()).done;){var r=t.value;try{if(!r({clickTimes:this.clickTimesTotal,scrollTimes:this.scrollTimesTotal,stayTime:this.stayTime}))return!1}catch(t){return!1}}return!0},r.isUpdated=function(){return 0!=this.clickTimes||0!=this.scrollTimes},r.resetAfterReport=function(){this.clickTimes=0,this.scrollTimes=0},e}(oU),iZ=function(t){setTimeout(function(){t(iV.TIME_TO_INTERACTIVE,-1)},0)},iz=function(t){var e=function(){new Promise(function(t,e){setTimeout(function(){if(function(){try{return!!(performance&&performance.getEntriesByType)}catch(t){return!1}}()){var r=performance.getEntriesByType("navigation");if(r.length>0){var n=r[0];t(n.loadEventEnd-n.startTime)}else window.performance.timing?t(window.performance.timing.loadEventEnd-window.performance.timing.navigationStart||-1):e("Performance timing not supported")}},0)}).then(function(e){t(iV.LOAD_FINISH,e)}).catch(function(e){t(iV.LOAD_FINISH,-1)})};"complete"===window.document.readyState?e():window.addEventListener("load",e)},iQ=-1,i$=function(t){addEventListener("pageshow",function(e){e.persisted&&(iQ=e.timeStamp,t(e))},!0)},i0=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},i1=function(){var t=i0();return t&&t.activationStart||0},i2=function(t,e){var r=i0(),n="navigate";return iQ>=0?n="back-forward-cache":r&&(document.prerendering||i1()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:n}},i3=function(t,e,r){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(t){Promise.resolve().then(function(){e(t.getEntries())})});return n.observe(Object.assign({type:t,buffered:!0},r||{})),n}}catch(t){}},i8=function(t,e,r,n){var o,i;return function(a){var u;e.value>=0&&(a||n)&&((i=e.value-(o||0))||void 0===o)&&(o=e.value,e.delta=i,u=e.value,e.rating=u>r[1]?"poor":u>r[0]?"needs-improvement":"good",t(e))}},i6=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},i9=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},i5=function(t){var e=!1;return function(r){e||(t(r),e=!0)}},i4=-1,i7=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},at=function(t){"hidden"===document.visibilityState&&i4>-1&&(i4="visibilitychange"===t.type?t.timeStamp:0,ar())},ae=function(){addEventListener("visibilitychange",at,!0),addEventListener("prerenderingchange",at,!0)},ar=function(){removeEventListener("visibilitychange",at,!0),removeEventListener("prerenderingchange",at,!0)},an=function(){return i4<0&&(i4=i7(),ae(),i$(function(){setTimeout(function(){i4=i7(),ae()},0)})),{get firstHiddenTime(){return i4}}},ao=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},ai=[1800,3e3],aa=function(t,e){e=e||{},ao(function(){var r,n=an(),o=i2("FCP"),i=i3("paint",function(t){t.forEach(function(t){"first-contentful-paint"===t.name&&(i.disconnect(),t.startTimen.value&&(n.value=o,n.entries=i,r())},u=i3("layout-shift",a);u&&(r=i8(t,n,au,e.reportAllChanges),i9(function(){a(u.takeRecords()),r(!0)}),i$(function(){o=0,r=i8(t,n=i2("CLS",0),au,e.reportAllChanges),i6(function(){return r()})}),setTimeout(r,0))}))},as={passive:!0,capture:!0},al=new Date,af=function(t,e){iW||(iW=e,iK=t,iY=new Date,ad(removeEventListener),ap())},ap=function(){if(iK>=0&&iK1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?(e=function(){af(o,t),n()},r=function(){n()},n=function(){removeEventListener("pointerup",e,as),removeEventListener("pointercancel",r,as)},addEventListener("pointerup",e,as),addEventListener("pointercancel",r,as)):af(o,t)}},ad=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,ah,as)})},av=[100,300],a_=function(t,e){e=e||{},ao(function(){var r,n=an(),o=i2("FID"),i=function(t){t.startTimeperformance.now())return;r.value=Math.max(i-i1(),0),r.entries=[o],n(!0),i$(function(){(n=i8(t,r=i2("TTFB",0),aE,e.reportAllChanges))(!0)})}})};function aw(t,e){return(aw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var aO=function(t,e){return function(r,n){e(r,n,t)}},aA=function(t){function e(e,r,n,o){var i;return(i=t.call(this,e,r,n,o)||this).cls=-1,i.init(),i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,aw(e,t);var r=e.prototype;return r.init=function(){ac(this.clsHandler.bind(this),{reportAllChanges:!0}),ab(this.webVitalHandler.bind(this)),aa(this.webVitalHandler.bind(this)),ag(this.webVitalHandler.bind(this),{reportAllChanges:!0}),a_(this.webVitalHandler.bind(this)),iZ(this.baseHandler.bind(this)),iz(this.baseHandler.bind(this))},r.getResult=function(t){var e=Math.floor(ok()),r={ttns:e,cls:oj(this.cls),idx:this.getSessionIndex(),pep:oj(this.getPep())},n=["cls","idx","pep"];n.unshift(t);var o={metrics_type:n.join("|"),cls:r.cls,idx:r.idx,pep:r.pep};return o[t]=e,{action_event:t,perf:r,page_perf:o}},r.resetAfterReport=function(){},r.clsHandler=function(t){this.cls=t.value||-1},r.webVitalHandler=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e,r={taskName:window.ttq._pf_tn||"page_data_web_vital_handler",functionName:window.ttq._pf_tn&&"page_data_web_vital_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="page_data_web_vital_handler")}}catch(t){}var n=this.getResult(t.name.toLocaleLowerCase());n.perf&&(n.perf.ttns=(null==t?void 0:t.value)?Math.floor(t.value):-1),n.page_perf&&(n.page_perf[t.name.toLocaleLowerCase()]=null==(e=null==n?void 0:n.perf)?void 0:e.ttns),this.report(n),this.resetAfterReport();try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r),"page_data_web_vital_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},r.baseHandler=function(t,e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var r,n={taskName:window.ttq._pf_tn||"page_data_base_handler",functionName:window.ttq._pf_tn&&"page_data_base_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="page_data_base_handler")}}catch(t){}var o=this.getResult(t);o.perf&&(o.perf.ttns=e?Math.floor(e):-1),o.page_perf&&(o.page_perf[t]=null==(r=o.perf)?void 0:r.ttns),this.report(o),this.resetAfterReport();try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n),"page_data_base_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},r.getSessionIndex=function(){var t,e=null==(t=this.context.getPageSign().pageIndex)?void 0:t.main;return null==e?-1:e},r.getCurrScrollPosition=function(){return document.documentElement.scrollTop||document.body.scrollTop},r.getViewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},r.getMaxHeight=function(){var t=document.body,e=document.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)},r.getPep=function(){return(this.getCurrScrollPosition()+this.getViewportHeight())/this.getMaxHeight()},e}(oU);aA=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([aO(0,H(b.CONTEXT)),aO(1,H(b.TTQ_REPORTERS)),aO(2,H(b.REPORT_SERVICE))],aA);var aI=[function(t){var e=t.clickTimes,r=t.scrollTimes;return e>=1||r>=1}];function aC(t,e){return(aC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var aT=function(t,e){return function(r,n){e(r,n,t)}},aS="PageData",aR=function(t){function e(e,r,n,o){var i;return(i=t.call(this,{name:aS,reporters:r,context:e})||this).monitors=[],i.isPagePerfInit=!1,i.isPageInterInit=!1,i.reportService=n,i.context=e,i.reporters=r,i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,aC(e,t);var r=e.prototype;return r.init=function(t){this.isPageInterEnabled(t)&&this.initInteraction(),this.isPagePerfEnabled(t)&&this.initPerformance()},r.initInteraction=function(){this.isPageInterInit||(this.interactionMonitor=new iJ(this.context,this.reporters,this.reportService,tK(ib.PAGE_INTERACTION),aI),this.monitors.push(this.interactionMonitor),this.isPageInterInit=!0)},r.initPerformance=function(){this.isPagePerfInit||(this.performanceMonitor=new aA(this.context,this.reporters,this.reportService,tK(ib.PAGE_PERFORMANCE)),this.monitors.push(this.performanceMonitor),this.isPagePerfInit=!0)},r.isPagePerfEnabled=function(t){return(0,f.Z0)(this.env)||oB(t,iH.performance)},r.isPageInterEnabled=function(t){return(0,f.Z0)(this.env)||oB(t,iH.interaction)},r.report=function(t){if(this.isPageInterInit){var e=this.interactionMonitor.getResultOnPageLeave(t);void 0!==e&&(this.interactionMonitor.report(e),this.interactionMonitor.resetAfterReport())}},r.pageWillLeave=function(t){this.report(iV.PAGE_LEAVE)},r.pixelDidMount=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"page_plugin_pixelDidMount",start:performance.now()}}catch(t){}this.init(t);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},e}(e$);aR=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),aT(0,H(b.CONTEXT)),aT(1,H(b.TTQ_REPORTERS)),aT(2,H(b.REPORT_SERVICE)),aT(3,H(b.ENV))],aR);var aN={initAllModule:1,webTtqFactory:2,handleCache:3,webReporterFactory:4,initAutoForm:5,auto_config_plugin_pixelDidMount:6,callback_plugin_pixelDidMount:7,console_plugin_pixelDidMount:8,event_builder_plugin_pixelDidMount:9,shopify_plugin_pixelDidMount:10,page_plugin_pixelDidMount:11,competitor_insight_plugin_init:12,getPixelInstalledPosition:13,getPixelScriptByPixelCode:14,resetExpires:15,freezeAPI:16,handlePixelRules:17,mergeWebGlobalTtq:18,handleGlobalCache:22,getPixelDetail:19,basettq_init_context_info:20,initAutoForm_getOverallFormDetail:21,web_track_handler:23,identify_api_handler:24,updateParameterInferenceData:25},aF={identify_api_handler:{id:1,fn:[]},identify_encryption:{id:2,fn:[]},identify_after_encryption:{id:3,fn:[]},track_api_handler:{id:4,fn:[]},track_after_reporter_init:{id:5,fn:[]},track_after_report_preposition:{id:6,fn:[]},init:{id:7,fn:[aN.initAllModule,aN.webTtqFactory,aN.handleCache,aN.webReporterFactory,aN.initAutoForm,aN.freezeAPI,aN.handlePixelRules,aN.resetExpires,aN.mergeWebGlobalTtq,aN.auto_config_plugin_pixelDidMount,aN.callback_plugin_pixelDidMount,aN.console_plugin_pixelDidMount,aN.event_builder_plugin_pixelDidMount,aN.shopify_plugin_pixelDidMount,aN.page_plugin_pixelDidMount,aN.competitor_insight_plugin_init,aN.getPixelInstalledPosition,aN.getPixelScriptByPixelCode,aN.handleGlobalCache,aN.basettq_init_context_info,aN.initAutoForm_getOverallFormDetail,aN.web_track_handler,aN.identify_api_handler,aN.updateParameterInferenceData]},page_api_handler:{id:8,fn:[]},auto_advanced_matching_handler:{id:9,fn:[]},auto_config_metadata_handler:{id:10,fn:[]},auto_config_click_handler:{id:11,fn:[]},auto_config_form_handler:{id:12,fn:[]},event_builder_dispatcher:{id:13,fn:[]},page_data_web_vital_handler:{id:14,fn:[]},page_data_base_handler:{id:15,fn:[]}},aL=function(){function t(){this.queue=[],this.currentTaskMap={}}var e=t.prototype;return e.handleCache=function(t){var e=this;t.forEach(function(t){e.push(t)})},e.push=function(t){var e=t.taskName,r=t.functionName,n=t.start,o=Math.round((t.end-n)*1e3),i=e&&this.getTaskIdFromName(e);if(i){var a=this.currentTaskMap[i];if(a||(this.currentTaskMap[i]=a={id:i,d:-1}),r){var u=this.getFunctionIdFromName(r);u&&(a.f=[].concat(a.f||[],[{id:u,d:o}]))}else a.d=o,this.queue.push(a),delete this.currentTaskMap[i]}},e.print=function(){return this.queue},e.printAndClear=function(){var t=this.print();return this.clear(),t},e.clear=function(){this.queue=[]},e.getTaskIdFromName=function(t){var e;return null==(e=aF[t])?void 0:e.id},e.getFunctionIdFromName=function(t){return aN[t]},t}();function aP(t,e){return(aP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ax=function(t,e){return function(r,n){e(r,n,t)}},ak=function(t){function e(e,r){var n;return(n=t.call(this,{name:"RuntimeMeasurement",reporters:r,context:e})||this).initialize=!1,n.init(),n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,aP(e,t),e.prototype.init=function(){if(!this.initialize){this.performanceDataQueue=new aL;var t=(0,l.Ie)();t&&t._ppf&&(this.performanceDataQueue.handleCache(t._ppf),t._ppf=this.performanceDataQueue),this.initialize=!0}},e}(e$);ak=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),ax(0,H(b.CONTEXT)),ax(1,H(b.TTQ_REPORTERS))],ak),(t=n||(n={}))[t.OTHER=0]="OTHER",t[t.ANDROID=1]="ANDROID",t[t.IOS=2]="IOS";var aM=[s.O.LOAD_START,s.O.LOAD_END,s.O.INIT_START,s.O.INIT_END,s.O.JSB_INIT_START,s.O.JSB_INIT_END,s.O.AD_INFO_INIT_START,s.O.AD_INFO_INIT_END,s.O.IDENTIFY_INIT_START,s.O.IDENTIFY_INIT_END,s.O.PLUGIN_INIT_START,s.O.PLUGIN_INIT_END],aj=[s.O.BEFORE_INIT,s.O.INIT_START,s.O.INIT_END,s.O.HTTP_SEND,s.O.AD_INFO_INIT_END];function aB(t){try{if(!performance||!performance.timing)return -1;if(t)return Date.now()-t;return Date.now()-performance.timing.navigationStart}catch(t){}return -1}var aU=function(t,e){void 0===e&&(e="");try{var r=[],n=performance.getEntriesByType("resource");if(n&&Array.isArray(n)){var o=[RegExp("/i18n/pixel/events\\.js\\?sdkid="+t),RegExp("/i18n/pixel/sdk\\.js\\?sdkid="+t)];n.forEach(function(t){var e=t.name,n=t.duration;o.some(function(t){return t.test(e)})&&r.push({name:e,duration:n})});var i=document&&document.currentScript,a=i&&i.src;if(a||!a&&e){var u=n.find(function(t){return t.name.indexOf(a||e)>-1});u&&r.push({name:u.name,duration:u.duration})}}return r}catch(t){return[]}};function aq(){aq=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function aG(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}function aV(t,e){return(aV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(e=o||(o={}))[e.NOT_DETERMINED=0]="NOT_DETERMINED",e[e.RESTRICTED=1]="RESTRICTED",e[e.DENIED=2]="DENIED",e[e.AUTHORIZED=3]="AUTHORIZED";var aH=function(t){function e(e){var r,o=e.pixelDetails,i=e.context,a=e.reporters,u=e.reportService,c=e.httpService,s=e.env,l=e.ttqOptions;return(r=t.call(this,{name:"Monitor",reporters:a,context:i})||this).hasReportMap={},r.cachedData=[],r.contextInitEndStatus=!1,r.legacy=[],r.env=s,r.lib=o.lib,r.pixelCode=o.pixelCode,r.reportService=u,r.httpService=c,r.contextInitEndStatus=!1,r.platform=(0,f.Dt)()?n.ANDROID:(0,f.gn)()?n.IOS:n.OTHER,r.partner=l.partner||"",l.legacy&&(r.legacy=l.legacy),r.ttqOptions=l,r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,aV(e,t);var r,i,a=e.prototype;return a.reportSwitch=function(){return!this.reporters.some(function(t){var e;return(null==(e=t.options)?void 0:e.monitor)===!1})},a.recordReportLog=function(t){var e=t.pixel_code;this.hasReportMap[e]||(this.hasReportMap[e]=[]),this.hasReportMap[e].push(t)},r=aq().mark(function t(e,r){return aq().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.httpService.send(e,r);case 2:!t.sent&&this.httpService.sendByImage&&this.httpService.sendByImage(e,{log_message:em(r)});case 4:case"end":return t.stop()}},t,this)}),i=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){aG(i,n,o,a,u,"next",t)}function u(t){aG(i,n,o,a,u,"throw",t)}a(void 0)})},a.send=function(t,e){return i.apply(this,arguments)},a.sendByReportService=function(t){var e,r=(e=t.metric_name,aj.indexOf(e)>-1);this.reportService.report(to,t,r?iO.defaultReport:iO.htmlHttpReport,r?iA.P0:iA.P1)},a.report=function(t,e){return(void 0===e&&(e=!1),this.recordReportLog(t),e)?void this.send(to,t):this.contextInitEndStatus?void this.sendByReportService(t):void this.cachedData.push(t)},a.contextInitEnd=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"monitor_plogin_context_init_end",start:performance.now()}}catch(t){}for(this.contextInitEndStatus=!0;this.cachedData.length;){var e=this.cachedData.shift();e&&null!=e.metric_name&&this.sendByReportService(e)}try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}},a.info=function(t,e,r){if(void 0===e&&(e={}),void 0===r&&(r=!1),this.reportSwitch())try{var n=this.assemblyBaseData(t,e);if(this.isRepeatLog(n))return;this.report(n,r)}catch(t){}},a.error=function(t,e,r,n){if(void 0===r&&(r={}),void 0===n&&(n=!1),this.reportSwitch())try{var o=this.assemblyBaseData(t,r);if(Object.assign(o.ext_json||{},{message:e.message,stack:e.stack}),this.isRepeatLog(o))return;this.report(o,n)}catch(t){}},a.isRepeatLog=function(t){var e=t.pixel_code,r=t.metric_name;if(!e||!r)return!1;var n=aM.some(function(t){return r.indexOf(t)>-1}),o=this.hasReportMap[e],i=o&&o.some(function(t){return t.metric_name===r});return n&&i},a.getReportInfo=function(t){var e=this.reporters.find(function(e){return e.getReporterId()===t});if(e)return e.reporterInfo;var r=(0,l.Ie)()._i[t];if(r)return r.info},a.assemblyBaseData=function(t,e){var r=e||{},n=r.pixelCode,i=r.extJSON,a=r.custom_name,u=r.custom_enum,s=r.app_name,p=r.latency,h=(0,l.Ie)(),d=this.env,v=this.platform,_=this.context,m=this.reporters,g=_.getAllData(),E=g.libraryInfo,D=g.pageInfo,b=g.adInfo,w=g.pageSign,O=g.enableAdTracking,A=_.getVariationId(),I=_.getVids(),C=this.legacy||[],T=b&&b.log_extra&&function(t){try{return JSON.parse(t)}catch(t){return{}}}(b.log_extra)||{},S=m.map(function(t){return t.getReporterId()}),R=n||(0,c.wE)().pixelCode||this.pixelCode||this.reporters[0]&&this.reporters[0].getReporterId()||Object.keys(h._i)[0]||"",N=this.getReportInfo(R),F=C.length?C.includes(R)?"legacy-ttq":"ttq":this.lib,L=(0,l.kW)(R)||this.partner||"non",P=O?o.AUTHORIZED:o.DENIED,x={metric_name:t,pixel_code:R,platform:v,app_name:(void 0===s?"":s)||(void 0===d?"":d),net_type:function(){try{var t=navigator&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection);return t?t.effectiveType:""}catch(t){}return""}(),placement:T.placement||"non",lib:{lib_version:E&&E.version||"",ttq_name:F},in_iframe:Number((0,f.Tm)()),time_to_last_start:-1,time_to_navigation_start:-1,latency:void 0===p?0:p,page_url:D&&D.url||y().url,att_status:P,pageview_id:this.context.getPageViewId()||"",session_id:w&&w.sessionId||"",variation_id:A,vids:I,load_id:N&&N.loadId||"",ad_id:String(b.ad_id),creative_id:String(b.creative_id||T.creative_id),user_agent:(0,l.ij)(),pixel_monitor_version:"v2",custom_name:a,custom_enum:u,partner:L,ext_json:{performance:[],pixel_list:S.toString(),ad_info_from:b.ad_info_from,pixel_api_conflict_flag:(0,c.dK)()}};return i&&Object.assign(x.ext_json,i),x},a.initStart=function(t){this.info(s.O.INIT_START,t)},a.initEnd=function(t){this.info(s.O.INIT_END,t)},a.jsbInitStart=function(){this.info(s.O.JSB_INIT_START)},a.jsbInitEnd=function(){this.info(s.O.JSB_INIT_END)},a.beforeAdInfoInitStart=function(t){this.info(s.O.BEFORE_AD_INFO_INIT_START,t)},a.adInfoInitStart=function(t){this.info(s.O.AD_INFO_INIT_START,t)},a.adInfoInitEnd=function(t){this.info(s.O.AD_INFO_INIT_END,t)},a.pluginInitStart=function(t){this.info(t+s.O.PLUGIN_INIT_START)},a.pluginInitEnd=function(t){this.info(t+s.O.PLUGIN_INIT_END)},e}(e$);function aW(t,e){return(aW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var aK=function(t,e){return function(r,n){e(r,n,t)}},aY=function(t){function e(e,r,n,o,i,a){var u,s=(0,c.wE)();return(u=t.call(this,{pixelDetails:s,context:e,reporters:r,reportService:n,httpService:o,env:i,ttqOptions:a})||this).statusTimeline={},u}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,aW(e,t);var r=e.prototype;return r.getDurationTime=function(t){try{var e,r=(e=t.match(/_(start|end)$/))&&e[1];if(!r)return 0;var n=t.split("_").slice(0,-1).join("_"),o=this.statusTimeline[n];switch(!o&&(this.statusTimeline[n]={},o=this.statusTimeline[n]),r){case"start":o.start=o.start||Date.now();break;case"end":if(!o.start)return -1;return o.end=o.end||Date.now(),o.end-o.start}}catch(t){}return 0},r.assemblyBaseData=function(e,r){var n=t.prototype.assemblyBaseData.call(this,e,r),o=n.pixel_code,i=n.latency,a=this.getReportInfo(o),u=a&&a.loadStart;return Object.assign(n,{time_to_last_start:u?aB(u):-1,time_to_navigation_start:aB(),latency:i=i||this.getDurationTime(e)}),[s.O.BEFORE_INIT,s.O.IDENTIFY_INIT_END].includes(e)&&(n.ext_json=n.ext_json||{},n.ext_json.performance=aU(o,e===s.O.IDENTIFY_INIT_END?"identify":"")),n},e}(aH);function aX(t){return void 0===t&&(t=!0),new Promise(function(e){try{var r="undefined"!=typeof window?window:void 0;if(r&&"function"==typeof r.requestIdleCallback)return void(t?r.requestIdleCallback(function(){return e(!0)},{timeout:1e3}):r.requestIdleCallback(function(t){try{var r="function"==typeof t.timeRemaining?t.timeRemaining():0;e(r>3)}catch(t){e(!0)}}));if("function"==typeof requestAnimationFrame){var n=performance.now();requestAnimationFrame(function(){var r=performance.now()-n;e(r<10||t)})}else setTimeout(function(){return e(!0)},0)}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"delayidle_error",custom_enum:"catch_error"}),e(!0)}})}aY=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),aK(0,H(b.CONTEXT)),aK(1,H(b.TTQ_REPORTERS)),aK(2,H(b.REPORT_SERVICE)),aK(3,H(b.HTTP_SERVICE)),aK(4,H(b.ENV)),aK(5,H(b.TTQ_GLOBAL_OPTIONS))],aY);var aJ=["script","style","noscript","pre","code","svg","canvas","math","kbd","samp"];function aZ(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function aQ(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}function a$(){var t;return t=az().mark(function t(e){var r,n,o,i,a,u,l,f,p,h,d,v,_,m,y,g,E,D,b,w,O,A,I,C,T,S,R,N,F,L,P,x,k,M,j,B,U,q,G,V,H,W,K,Y;return az().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:var X,J;if(B=function(){var t,e=performance.now(),r=0;try{for(;rw){R++;continue}if(k(o))return F=!0,j+=performance.now()-e,{done:!1,stopped:!0,timeExceeded:!1,processed:r+1};if(performance.now()-e>=g)return j+=performance.now()-e,{done:!1,stopped:!1,timeExceeded:!0,processed:r+1}}}return j+=performance.now()-e,{done:!1,stopped:!1,timeExceeded:!1,processed:m}}catch(t){return j+=performance.now()-e,(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"run_one_batch_error"}),{done:!0,stopped:!1,timeExceeded:!1,processed:r}}},void 0===e&&(e={}),n=performance.now(),a=void 0===(i=(o=e).root)?document:i,u=o.patterns,f=void 0===(l=o.maxTotalHits)?1/0:l,h=void 0===(p=o.maxHitsPerPattern)?1/0:p,v=void 0===(d=o.ignoreTags)?aJ:d,m=void 0===(_=o.chunkSize)?500:_,g=void 0===(y=o.maxChunkMs)?8:y,D=void 0===(E=o.minTextLength)?5:E,w=void 0===(b=o.maxTextLength)?100:b,O=Array.from(new Set([].concat(v,aJ))),0!==(A=(Array.isArray(X=null==u?void 0:u.filter(function(t){return!!t}))&&X.length?X:[]).map(function(t){var e,r=null!=(e=t.regex.flags)?e:"",n=t.regex.global?t.regex:RegExp(t.regex.source,r+"g");return{name:t.name,regex:n,preCheck:"function"==typeof t.preCheck?t.preCheck:function(){return!0},normalize:"function"==typeof t.normalize?t.normalize:function(t){return t},hits:[],set:new Set,stoppedEarly:!1}})).length){t.next=9;break}return J=n,I={textNodesVisited:0,skippedByTag:0,skippedByPrecheck:0,skippedByLength:0,totalFound:0,stoppedEarly:!1,collect_ms:0,processing_ms:0,total_ms:+(performance.now()-J).toFixed(2),chunks:0},t.abrupt("return",{patterns:[],totals:I});case 9:C=0,T=0,S=0,R=0,N=0,F=!1,L=0,P={skippedByLength:{v:0},skippedByPrecheck:{v:0},totalFound:{v:0}},x=function(t,e,r){var n,o=new Set(e.map(function(t){return t.toLowerCase()})),i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,{acceptNode:function(t){if(t.nodeType===Node.ELEMENT_NODE){var e;return(e=t.tagName.toLowerCase(),o.has(e)||0)?(null==r||r(),NodeFilter.FILTER_REJECT):NodeFilter.FILTER_ACCEPT}return t.nodeType===Node.TEXT_NODE?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});return(n={next:function(){for(var t;t=i.nextNode();)if(t.nodeType===Node.TEXT_NODE){var e=t;if(!e.nodeValue||!e.nodeValue.trim())continue;return{value:e,done:!1}}return{value:void 0,done:!0}}})[Symbol.iterator]=function(){return this},n}(null!=(r=a.documentElement)?r:a,O,function(){T++}),k=function(t){var e=t.compiled,r=t.minTextLength,n=t.maxHitsPerPattern,o=t.maxTotalHits,i=t.counters;return function(t){try{if(i.totalFound.v>=o)return!0;var a=null!=(u=t.nodeValue)?u:"";if(!a)return!1;if(a.length=48&&n<=57&&e++}return e}(a):0,d=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return aZ(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aZ(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(l=d()).done;){var v=l.value;if(!v.stoppedEarly){if("email"===v.name){if(!f){i.skippedByPrecheck.v++;continue}}else if(v.name.includes("phone")&&!(p&&h>=7)){i.skippedByPrecheck.v++;continue}if(!v.preCheck(a)){i.skippedByPrecheck.v++;continue}var _=v.regex.exec(a);if(_){var m={text:a,index:_.index,node:t},y=v.normalize(_[0],m);if(y&&(i.totalFound.v++,v.hits.push(y),v.set.add(y),v.hits.length>=n&&(v.stoppedEarly=!0),i.totalFound.v>=o))return!0}}}return!1}catch(t){return(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"process_text_node_error"}),!1}}}({compiled:A,minTextLength:D,maxHitsPerPattern:h,maxTotalHits:f,counters:P}),M=performance.now(),j=0;case 22:if(L++,q=(U=B()).done,G=U.stopped,V=U.timeExceeded,H=U.processed,!(q||G)){t.next=27;break}return t.abrupt("break",48);case 27:if(!(H15)return null;var i=(t.match(/\+/g)||[]).length;return i>1||1===i&&"+"!==t.charAt(0)?null:t}},a1={name:"email",regex:/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/gi,visibilityMode:"all",preCheck:function(t){return t.includes("@")}};function a2(){a2=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function a3(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}function a8(t,e){return(a8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var a6=function(t,e){return function(r,n){e(r,n,t)}},a9=function(t){function e(e,r,n){var o;return(o=t.call(this,{name:"TextTreeWalkerPlugin",reporters:r,context:e})||this).context=e,o.reporters=r,o.lcpTriggered=!1,o.eventEmitter=n,o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,a8(e,t);var r,n,o=e.prototype;return o.pageLcp=function(){if(!this.lcpTriggered&&(this.lcpTriggered=!0,p.$9&&(0,f.b)("74653890")))try{this.getPIIFromTextNode()}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"get_pii_from_textnode"})}},r=a2().mark(function t(){var e,r,n,o,i,a,u,c,s,l,f,p,h;return a2().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(u=this.reporters.find(function(t){var e,r,n,o;return(null==(r=null==(e=t.plugins)?void 0:e.AutoAdvancedMatching)?void 0:r.auto_email)||(null==(o=null==(n=t.plugins)?void 0:n.AutoAdvancedMatching)?void 0:o.auto_phone_number)})){t.next=3;break}return t.abrupt("return");case 3:if(s=(c=null!=(r=null==(e=u.plugins)?void 0:e.AutoAdvancedMatching)?r:{}).auto_email,l=c.auto_phone_number,0!==[s&&a1,l&&a0].filter(Boolean).length){t.next=7;break}return t.abrupt("return");case 7:return t.next=9,function(t){return a$.apply(this,arguments)}({root:document.body,ignoreTags:["a"],patterns:[s&&a1,l&&a0],minTextLength:5,maxTextLength:1e3});case 9:if(p=null!=(o=null==(n=(f=t.sent.patterns).find(function(t){return"email"===t.name}))?void 0:n.values)?o:[],h=null!=(a=null==(i=f.find(function(t){return"phone_intl"===t.name}))?void 0:i.values)?a:[],0!==p.length||0!==h.length){t.next=15;break}return t.abrupt("return");case 15:return t.abrupt("return");case 17:case"end":return t.stop()}},t,this)}),n=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){a3(i,n,o,a,u,"next",t)}function u(t){a3(i,n,o,a,u,"throw",t)}a(void 0)})},o.getPIIFromTextNode=function(){return n.apply(this,arguments)},o.sendToAutoAdvancedMatchingPlugin=function(t,e){var r={source:"text_tree_walker",timestamp:Date.now(),email:t,phone:e,detectedAt:"page_load"};this.eventEmitter.emit("PII_DETECTED",r)},e}(e$);a9=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),a6(0,H(b.CONTEXT)),a6(1,H(b.TTQ_REPORTERS)),a6(2,H(b.EVENT_EMITTER))],a9);var a5=["phone","telephone","mobile","tel","cellphone","msisdn"],a4=["email"],a7="dataLayer",ut={totalEnqueued:0,totalProcessedBatches:0,totalProcessedItems:0,totalTraverseErrors:0,totalFound:0,totalRevisits:0,totalDropped:0,lastBatchDurationMs:0,lastItemDurationMs:0,maxBatchDurationMs:0,maxItemDurationMs:0},ue=function(t,e){return t.toLowerCase().includes(e.toLowerCase())},ur=function(t){return void 0===t&&(t=a4),{kind:"email",matchKey:function(e){return t.some(function(t){return ue(e,t)})},acceptValue:function(){return!0}}},un=function(t){return void 0===t&&(t=a5),{kind:"phone",matchKey:function(e){return t.some(function(t){return ue(e,t)})},acceptValue:function(){return!0}}},uo=function(t,e){void 0===t&&(t="dataLayer");var r=e.cdpRef,n=e.hookCdpPush,o=e.enqueueCurrentCdp,i=e.err,a=function(t){try{n(t),o()}catch(t){i("intercept_cdp_hook_error",t)}};try{var u=window[t],c=Array.isArray(u)?u:void 0;if(c)return r=c,a(r),r;return r=[],Object.defineProperty(window,t,{configurable:!0,enumerable:!0,get:function(){return r},set:function(t){Array.isArray(t)?(r=t,a(r)):i("intercept_cdp_set_non_array_error")}}),r}catch(t){return i("intercept_cdp_set_property_error",t),r}},ui=function(t,e){(0,c.vU)(s.O.CUSTOM_ERROR,e||Error(t),{custom_name:"cdp_visiter_plugin",custom_enum:t})},ua=function(t){try{return JSON.stringify(t)}catch(t){return"[unserializable]"}},uu=function(t){return!!t&&("object"==typeof t||"function"==typeof t)},uc=function(t,e){void 0===e&&(e=120);try{if(null==t)return String(t);if("string"==typeof t){var r=t.trim();return r.length>e?r.slice(0,e)+"…":r}if("number"==typeof t||"boolean"==typeof t)return String(t);var n=ua(t);return n.length>e?n.slice(0,e)+"…":n}catch(t){return"[unserializable]"}};function us(t){return null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"0")&&Object.prototype.hasOwnProperty.call(t,"1")&&!Object.prototype.hasOwnProperty.call(t,"event")}function ul(t){try{var e=null==t?void 0:t["0"],r=null==t?void 0:t["1"],n=null==t?void 0:t["2"];if("event"===e&&"string"==typeof r)return Object.assign(Object.assign({event:r},n&&"object"==typeof n?n:{}),{_source:"_normalized_args"});if("string"==typeof r)return Object.assign(Object.assign({event:r},n&&"object"==typeof n?n:{}),{_source:"_normalized_args_loose"})}catch(t){}return t}function uf(t){try{if(Array.isArray(t))return t.map(function(t){return us(t)?ul(t):t});if(us(t))return ul(t);return t}catch(e){return t}}function up(t){try{if(t&&"object"==typeof t&&"string"==typeof t.event)return t.event}catch(t){}}function uh(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ud(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ud(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ud(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0;)try{var t=r.pop();t&&t()}catch(t){ui("unhook_function_error",t)}},isHooked:function(t){return!!t&&"object"==typeof t&&e.has(t)}}},u_=function(t){var e=null,r=!1,n=uv(t),o=function(t){void 0===t&&(t=a7),e=uo(t,{cdpRef:e,hookCdpPush:n.hookDataLayerPush,enqueueCurrentCdp:function(){n.enqueueCurrentDataLayer(e)},err:ui})};return{init:function(){if(!r){r=!0;try{o(a7)}catch(t){ui("intercept_dataLayer",t)}}},rescan:function(){return n.enqueueCurrentDataLayer(e)},destroy:function(){n.unhook(),e=null,r=!1},getDataLayerRef:function(){return e}}};function um(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.extractors);!(u=c()).done;){var s=u.value;try{if(!s.matchKey(e)||s.acceptValue&&!s.acceptValue(r))continue;i(s.kind,e,r,n,o,a)}catch(t){ui("runExtractorsCatch"+s.kind+"Error",t)}}},u=function(e){var r=e.toLowerCase();return t.skipKeys.map(function(t){return t.toLowerCase()}).some(function(t){return r.includes(t)})};return{traverse:function e(n,i){var c=i.depth,s=i.path,l=void 0===s?"":s,f=i.source,p=i.budgetLimit,h=i.eventName;if(!(c>t.maxDepth)){var d=0;if(!(0>=p)&&(d++,uu(n))){var v=r.get(n)||0;if(v>=3)return void o.totalRevisits++;if(r.set(n,v+1),!Array.isArray(n)&&"object"==typeof n&&t.maxObjectKeyLength&&t.maxObjectKeyLength>0&&Object.keys(n).length>t.maxObjectKeyLength)return;var _="string"==typeof(null==n?void 0:n.event)?n.event:void 0,m=h||_;if(Array.isArray(n)){try{for(var y=0;y=p);y++){if(uu(n[y])){var g=n[y],E=r.get(g)||0;if(E>=3){o.totalRevisits++;continue}r.set(g,E+1)}e(n[y],{depth:c+1,path:l+"["+y+"]",source:f,budgetLimit:p,eventName:m})}}catch(t){o.totalTraverseErrors++,ui("traverse_array_error",t)}return}try{for(var D=0,b=Object.entries(n);D=p)break;uu(A)&&e(A,{depth:c+1,path:I,source:f,budgetLimit:p,eventName:m})}}}catch(t){o.totalTraverseErrors++,ui("traverse_object_entries_error",t)}}}},getDedup:function(){return Array.from(n)},getStats:function(){return Object.assign(Object.assign({},o),{totalRevisits:o.totalRevisits})},resetVisited:function(t){void 0===t&&(t=!1),t?r=new WeakMap:o.totalRevisits>100&&(r=new WeakMap,o.totalRevisits=0)}}};function ug(){ug=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,u,c,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,u=new w(o||[]),c="suspendedStart",function(t,e){if("executing"===c)throw Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return A()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,u);if(n){if(n===f)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=l(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};c(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(O([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function D(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},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;b(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function uE(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){r(t);return}u.done?e(c):Promise.resolve(c).then(n,o)}var uD=function(t,e,r){var n,o,i=[],a=Object.assign({},ut),u=!1,l=!1,f=0,p=0,h=function(){return"function"==typeof(null==performance?void 0:performance.now)?performance.now():Date.now()},d=(n=ug().mark(function n(){var o,v,_,m,y,g,E,D,b,w,O;return ug().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!u){n.next=2;break}return n.abrupt("return");case 2:return u=!0,n.prev=3,n.next=6,aX(!1);case 6:if(n.sent){n.next=13;break}return o=Math.min(1e3,20*(1<=100)){n.next=27;break}return i.length=0,p=0,a.totalDropped=(a.totalDropped||0)+i.length,(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"max_batch_count"}),e.resetVisited(!0),u=!1,n.abrupt("return");case 27:g=p%10==0,e.resetVisited(g);case 29:if(!i.length){n.next=43;break}if(!(h()-v>=t.maxMsPerBatch)){n.next=32;break}return n.abrupt("break",43);case 32:if(!(y>=_)){n.next=34;break}return n.abrupt("break",43);case 34:E=i.shift(),m++,D=h();try{e.traverse(E.node,{depth:0,path:E.path||"dataLayer.push",source:E.source||"push",budgetLimit:_,eventName:E.eventName})}catch(t){a.totalTraverseErrors+=1,ui("traverse_catch",t)}b=h()-D,a.lastItemDurationMs=b,b>a.maxItemDurationMs&&(a.maxItemDurationMs=b),n.next=29;break;case 43:w=h()-v,a.lastBatchDurationMs=w,w>a.maxBatchDurationMs&&(a.maxBatchDurationMs=w),a.totalProcessedBatches+=1,a.totalProcessedItems+=m,e.getStats&&(O=e.getStats())&&O.totalRevisits&&(a.totalRevisits=(a.totalRevisits||0)+O.totalRevisits),r(a),n.next=56;break;case 52:n.prev=52,n.t0=n.catch(3),ui("schedule_catch",n.t0),l=!0;case 56:return n.prev=56,u=!1,i.length&&!l&&d(),l=!1,n.finish(56);case 61:case"end":return n.stop()}},n,null,[[3,52,56,61]])}),o=function(){var t=this,e=arguments;return new Promise(function(r,o){var i=n.apply(t,e);function a(t){uE(i,r,o,a,u,"next",t)}function u(t){uE(i,r,o,a,u,"throw",t)}a(void 0)})},function(){return o.apply(this,arguments)});return{enqueue:function(e,r){"number"==typeof t.maxQueueSize&&t.maxQueueSize>0&&i.length>=t.maxQueueSize&&i.shift(),i.push(Object.assign({node:e},r)),a.totalEnqueued+=1,d()},getQueueSize:function(){return i.length},getStats:function(){return Object.freeze(Object.assign({},a))},updateStats:function(t){r(a=Object.assign(Object.assign({},a),t))}}},ub={maxDepth:3,maxNodesPerTraverse:1e3,maxObjectKeyLength:20,skipKeys:["html","snapshot","content","description","fullstate","raw","payload","products","catalog","recommendations","dom","tree","schema","source","trace","stack"],extractors:[],onFound:function(){},maxNodePerBatch:100,maxMsPerBatch:8,maxQueueSize:1e3},uw=function(t){if(!t)return{init:function(){},rescan:function(){},getQueueSize:function(){return 0},getStats:function(){return Object.freeze(Object.assign({},ut))},getFoundKeys:function(){return[]},destroy:function(){},config:{}};var e,r,n=Object.assign(Object.assign({},ub),{extractors:[ur(),un()]}),o=Object.assign(Object.assign(Object.assign({},n),t),{extractors:(null==t?void 0:t.extractors)||n.extractors,maxQueueSize:null!=(e=null==t?void 0:t.maxQueueSize)?e:n.maxQueueSize,maxObjectKeyLength:null!=(r=null==t?void 0:t.maxObjectKeyLength)?r:n.maxObjectKeyLength}),i=Object.assign({},ut),a=uy(o,function(t){var e,r;try{null==(r=null==(e=o.extractors.find(function(e){return e.kind===t.kind}))?void 0:e.onHit)||r.call(e,t)}catch(t){ui("extractor_onHit_error",t)}try{o.onFound(t)}catch(t){ui("on_found_error",t)}}),u=uD(o,a,function(t){i=Object.assign(Object.assign({},i),t)}),c=u_(u.enqueue);return{init:c.init,rescan:c.rescan,getQueueSize:u.getQueueSize,getStats:u.getStats,getFoundKeys:function(){return a.getDedup()},destroy:function(){try{try{var t=Object.getOwnPropertyDescriptor(window,"dataLayer");if(t&&(t.get||t.set)&&t.configurable){delete window.dataLayer;var e=c.getDataLayerRef();void 0!==e&&(window.dataLayer=e)}}catch(t){}c.destroy()}catch(t){ui("destroy_error",t)}},config:o}};function uO(t,e){return(uO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uA=function(t,e){return function(r,n){e(r,n,t)}},uI=function(t){function e(e,r,n){var o;return(o=t.call(this,{name:"CdpVisiterPlugin",reporters:r,context:e})||this).context=e,o.reporters=r,o.lcpTriggered=!1,o.scanner=null,o.eventEmitter=n,o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uO(e,t);var r=e.prototype;return r.pageLcp=function(){var t,e;if(!this.lcpTriggered){if(this.lcpTriggered=!0,!p.$9||!p.hj||!(0,f.b)("74653905")||0===(null!=(e=null==(t=null==window?void 0:window.dataLayer)?void 0:t.length)?e:0))return;try{this.extractDataLayer(),(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"extract_dataLayer_start"})}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"cdp_visiter_plugin",custom_enum:"extract_dataLayer_catch"})}}},r.extractDataLayer=function(){var t,e,r=this.reporters.find(function(t){var e,r,n,o;return(null==(r=null==(e=t.plugins)?void 0:e.AutoAdvancedMatching)?void 0:r.auto_email)||(null==(o=null==(n=t.plugins)?void 0:n.AutoAdvancedMatching)?void 0:o.auto_phone_number)});if(r){var n=null!=(e=null==(t=r.plugins)?void 0:t.AutoAdvancedMatching)?e:{},o=n.auto_email,i=n.auto_phone_number,a=uw({maxNodePerBatch:600,maxMsPerBatch:8,extractors:[o&&ur(["email"]),i&&un(["phone","mobile","tel","msisdn"])].filter(Boolean),onFound:function(t){if((null==t?void 0:t.kind)==="email"&&"string"==typeof(null==t?void 0:t.value)&&t.value.length>0||(null==t?void 0:t.kind)==="phone"&&"string"==typeof(null==t?void 0:t.value)&&t.value.length>0){var e=Object.assign(Object.assign({},"email"===t.kind&&{email:t.value}),"phone"===t.kind&&{phone:t.value});(0,c.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"pii_data_detected",extJSON:{message:JSON.stringify(Object.keys(e))}});return}}});this.scanner=a,this.scanner.init()}},r.sendToAutoAdvancedMatchingPlugin=function(t){var e=void 0===t?{}:t,r=e.email,n=e.phone;try{var o={source:"cdp_visiter",timestamp:Date.now(),email:r,phone:n,detectedAt:"data_layer"};this.eventEmitter.emit("PII_DETECTED",o)}catch(t){}},e}(e$);function uC(t,e){return(uC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}uI=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),uA(0,H(b.CONTEXT)),uA(1,H(b.TTQ_REPORTERS)),uA(2,H(b.EVENT_EMITTER))],uI);var uT=function(t,e){return function(r,n){e(r,n,t)}},uS=function(t){function e(e,r){return t.call(this,{name:"LPV",reporters:r,context:e})||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uC(e,t);var r=e.prototype;return r.isLPVSwitchOn=function(t){return t.plugins&&!0===t.plugins.EnableLPV},r.buildLPVData=function(){return{trigger_source:"pixel_self"}},r.buildSecondJumpESData=function(){return{lpv_trigger_type:"second_jump",trigger_source:"pixel_self"}},r.buildDuration10sESData=function(){return{lpv_trigger_type:"duration_10s",trigger_source:"pixel_self"}},r.startEngagedSessionTimer=function(t){var e=this,r=null,n=0,o=!0,i=null==t?void 0:t.getCookieBasedSession().hasReportedES,a=function(){(i=null==t?void 0:t.getCookieBasedSession().hasReportedES)||(t.track(tV,e.buildDuration10sESData(),{},ib.TRACK,iO.httpReport),t.setCookieBasedSession(Object.assign(Object.assign({},t.getCookieBasedSession()),{hasReportedES:1})))},u=function(e){if(!(i=null==t?void 0:t.getCookieBasedSession().hasReportedES)){r=setTimeout(a,1e3*e);var u=Date.now();document.addEventListener("visibilitychange",function t(){"hidden"!==document.visibilityState||i||(r&&clearTimeout(r),o=!1,r=null,n+=Math.floor((Date.now()-u)/1e3),document.removeEventListener("visibilitychange",t))})}};u(10),document.addEventListener("visibilitychange",function(){if(i=null==t?void 0:t.getCookieBasedSession().hasReportedES,"visible"===document.visibilityState&&!i&&!o){var e=10-n;e<=0?a():u(e)}}),window.addEventListener("beforeunload",function(){r&&clearTimeout(r)})},r.pixelSend=function(t,e,r,n,o){void 0===n&&(n={});try{if(o!==ib.TRACK||(null==(i=r._inspection)?void 0:i.trigger_source)==="pixel_self")return;var i,a=this.reporters.find(function(e){return e.getReporterId()===t});if(!a||!this.isLPVSwitchOn(a))return;var u=null==a?void 0:a.getCookieBasedSession().isSessionStart,l=this.context.getPageInfo().referrer,f=this.context.getPageSign().etldPlusOne,p=null==a?void 0:a.getCookieBasedSession().hasReportedES,h=this.context.getPageSign().pageIndex;u&&e===tq&&a.track("LandingPageView",this.buildLPVData(),{},ib.TRACK,iO.httpReport),p||(!u&&(l&&f&&l.includes(f)||h&&h.index>0)?(a.track(tV,this.buildSecondJumpESData(),{},ib.TRACK,iO.httpReport),a.setCookieBasedSession(Object.assign(Object.assign({},a.getCookieBasedSession()),{hasReportedES:1}))):this.startEngagedSessionTimer(a))}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"lpv_report"})}},e}(e$);uS=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),uT(0,H(b.CONTEXT)),uT(1,H(b.TTQ_REPORTERS))],uS);var uR=[].concat([{identifier:b.MONITOR_PLUGIN,to:aY,name:"Monitor",required:!1},{identifier:b.AUTO_CONFIG_PLUGIN,to:n7,name:"AutoConfig",required:!1},{identifier:b.DIAGNOSTICS_CONSOLE_PLUGIN,to:oI,name:"DiagnosticsConsole",required:!1},{identifier:b.RUNTIME_MEASUREMENT_PLUGIN,to:ak,name:"RuntimeMeasurement",required:!1}],[{identifier:b.CALLBACK_PLUGIN,to:e2,name:"Callback"},{identifier:b.IDENTIFY_PLUGIN,to:rf,name:"Identify",required:!0},{identifier:b.EVENT_BUILDER_PLUGIN,to:oN,name:"EventBuilder"},{identifier:b.ENRICH_IPV6_PLUGIN,to:ox,name:"EnrichIpv6"},{identifier:b.PAGEDATA_PLUGIN,to:aR,name:"PageData"},{identifier:b.LPV_PLUGIN,to:uS,name:"LPV"},{identifier:b.TEXT_TREE_WALKER_PLUGIN,to:a9,name:"TextTreeWalker",required:!1},{identifier:b.CDP_VISITER_PLUGIN,to:uI,name:"CdpVisiter",required:!1}]),uN=function(t,e){};function uF(t,e){return(uF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uL=function(t){function e(e){var r;return(r=t.call(this,e)||this).observers=new Set([]),r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uF(e,t);var r=e.prototype;return r.addObserver=function(t){this.observers.has(t)||this.observers.add(t)},r.removeObserver=function(t){this.observers.delete(t)},r.notifyObservers=function(t,e){this.observers.forEach(function(r){return r.call(e,t)})},e}(ez),uP="HistoryObserver";(i||(i={})).DYNAMIC_WEB_PAGEVIEW="dynamic_web_pageview";var ux=["GoogleTagManagerClient","GoogleTagManagerServer"];function uk(t,e){var r=history[t];return function(){var t=Array.prototype.slice.call(arguments);r.apply(history,t),e()}}function uM(t){var e=t.options,r=t.plugins;return e&&!1!==e.historyObserver&&r&&r[uP]}function uj(t,e){var r=y().url,n=t.context.getPageInfo().url;if(r!==n){var o,a=t.context.setPageInfo(r,n);a&&a.pageIndex&&tD(a.pageIndex),t.reporters.filter((o=i.DYNAMIC_WEB_PAGEVIEW,function(t){var e=t.plugins;return!!(uM(t)&&e[uP]&&e[uP][o])})).forEach(function(t){setTimeout(function(){t.page(e)})})}}function uB(t,e){return(uB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uU=function(t,e){return function(r,n){e(r,n,t)}},uq=function(t){function e(e,r){var n;return(n=t.call(this,{name:uP,reporters:r,context:e})||this).enableListenSPAHistoryChange=!1,n.listenSPAHistoryChange=(0,p.IH)(function(){var t=function(){n.enableListenSPAHistoryChange&&n.notifyObservers({tf:ig.HISTORY_CHANGE})},e=(0,p.bJ)(t);window.addEventListener("popstate",e),history.pushState=uk("pushState",t),history.replaceState=uk("replaceState",t)}),n.dynamicWebPageviewHandler=uj.bind(null,function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n)),n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uB(e,t);var r=e.prototype;return r.initListener=function(t){this.enableListenSPAHistoryChange=function(t){if(!t)return!1;var e=(0,l.kW)(),r=t.getReporterPartner();return!(e&&!ux.includes(e)||r&&t.isPartnerReporter()&&!ux.includes(r))}(t),this.enableListenSPAHistoryChange&&this.listenSPAHistoryChange()},r.pixelSend=function(t,e){var r=this.reporters.find(function(e){return e.getReporterId()===t});r&&uM(r)&&(e&&"pageview"===e.toLowerCase()&&this.addObserver(this.dynamicWebPageviewHandler),this.initListener(r))},r.pageUrlWillChange=function(){if(this.enableListenSPAHistoryChange)return void this.notifyObservers({tf:ig.HISTORY_CHANGE});this.notifyObservers({tf:ig.URL_CHANGE,event_experiment:"pageview"})},e}(uL);function uG(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return uV(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uV(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function uV(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),uU(0,H(b.CONTEXT)),uU(1,H(b.TTQ_REPORTERS))],uq);var uW=function(t){function e(e){var r;return(r=t.call(this,e)||this).handleEvent=function(t){try{r.sendEvent(t)}catch(t){t(s.O.CUSTOM_ERROR,t,{custom_name:"ClickObserver",custom_enum:"handleEvent_error"})}},r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uH(e,t);var r=e.prototype;return r.setupListeners=function(t){var e=this;try{t.forEach(function(t){"window"===t.environment&&t.listenEventTypes.forEach(function(r){Array.isArray(t.target)?document.querySelectorAll(t.target.join(", ")).forEach(function(t){e.bindListener(t,r)}):e.bindListener(t.target,r)})})}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"ClickObserver",custom_enum:"setupListeners_error"})}},r.getObserverType=function(){return"click"},r.bindListener=function(t,e){!this.listenedElementsSet.has(t)&&(this.listenedElementsSet.add(t),t instanceof Element&&p.P6.some(function(e){return t.matches(e)})||t.addEventListener(e,this.handleEvent,{capture:!0}))},e}(function(){function t(t){this.configMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map,this.listeners=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map,this.listenedElementsSet=p.$9?new WeakSet:new Set,this.eventEmitter=t,this.configMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map}var e=t.prototype;return e.teardownListeners=function(t){var e=this;if(t){var r=this.configMap.get(t);r&&r.length&&(r.forEach(function(t){var r=t.target;if(Array.isArray(r))document.querySelectorAll(r.join(", ")).forEach(function(r){for(var n,o=uG(t.listenEventTypes);!(n=o()).done;){var i=n.value;r.removeEventListener(i,e.handleEvent),e.listenedElementsSet.delete(r)}});else{for(var n,o=uG(t.listenEventTypes);!(n=o()).done;){var i=n.value;r.removeEventListener(i,e.handleEvent)}e.listenedElementsSet.delete(r)}}),this.configMap.delete(t))}},e.updateConfig=function(t){if(t){var e;if(this.validateConfig(t)){var r="append"===t.mode&&null!=(e=this.configMap.get(t.pluginName))?e:[];"append"!==t.mode&&this.teardownListeners(t.pluginName),r.push(t),this.configMap.set(t.pluginName,r),this.setupListeners([t])}}},e.sendEvent=function(t){this.eventEmitter.emit(t.type,t)},e.validateConfig=function(t){return!!t&&!!t.observerType&&!!t.listenEventTypes&&!!t.pluginName},e.getConfigMap=function(){return this.configMap},t}());function uK(t,e){return(uK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uY=function(t,e){return function(r,n){e(r,n,t)}},uX=function(t){function e(e,r,n){var o;return(o=t.call(this,{name:"INTERACTION_OBSERVER",reporters:r,context:e})||this).observersMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map([]),o.eventEmitter=n,o.eventEmitter.on(i_.UPDATE_CONFIG,o.updateObserverConfig.bind(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o)),{}),o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uK(e,t);var r=e.prototype;return r.registerObserver=function(t){var e;"click"===t&&(e=new uW(this.eventEmitter),this.observersMap.set(t,e))},r.unregisterObserver=function(t){var e=this.observersMap.get(t);e&&(e.getConfigMap().forEach(function(t,r){e.teardownListeners(r)}),this.observersMap.delete(t))},r.destroyAll=function(){var t=this;this.observersMap.forEach(function(e,r){t.unregisterObserver(r)}),this.observersMap.clear()},r.updateObserverConfig=function(t){var e=t.observerType,r=this.observersMap.get(e);r||(this.registerObserver(e),r=this.observersMap.get(e)),r&&r.updateConfig(t)},e}(uL);uX=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([V(),uY(0,H(b.CONTEXT)),uY(1,H(b.TTQ_REPORTERS)),uY(2,H(b.EVENT_EMITTER))],uX);var uJ=[{identifier:b.HISTORY_OBSERVER,to:uq,name:"HistoryObserver"},{identifier:b.INTERACTION_OBSERVER,to:uX,name:"InteractionObserver"}],uZ=(0,l.Ie)(),uz=(null==uZ?void 0:uZ._container)||new G,uQ=(null==uZ?void 0:uZ._container)?iD.REBIND:iD.BIND;(0,f.RA)();var u$=uz[uQ](b.ENV),u0=uz[uQ](w.M.SignalType);uz[uQ](w.M.ID),uz[uQ](w.M.Type),uz[uQ](w.M.Options),uz[uQ](w.M.Plugins),uz[uQ](w.M.Rules),uz[uQ](w.M.Info);var u1=uz[uQ](w.M.WebLibraryInfo),u2=uz[uQ](b.TTQ_GLOBAL_OPTIONS);try{if(!uz.get(b.TTQ_GLOBAL_OPTIONS))throw Error("")}catch(t){u2.toConstantValue({})}var u3=function(t,e){var r={name:"pixel.js",version:J.Jn,options:void 0},n=(0,f.b4)();u1.toConstantValue(r),u$.toConstantValue(e),u0.toConstantValue(n)},u8=function(t){(null==t?void 0:t._container)||(uz.bind(b.TTQ).to(eo).inSingletonScope(),uz.bind(b.CONTEXT).to(ef).inSingletonScope(),uz.bind(b.REPORTER).to(t6),uz.bind(b.TTQ_REPORTERS).toConstantValue([]),uz.bind(b.REPORT_SERVICE).to(eS).inSingletonScope(),uz.bind(b.AD_SERVICE).to(eF).inSingletonScope(),uz.bind(b.APP_SERVICE).to(ex).inSingletonScope(),uz.bind(b.BRIDGE_SERVICE).to(eq).inSingletonScope(),uz.bind(b.HTTP_SERVICE).to(eH).inSingletonScope(),uz.bind(w.M.IsOnsitePage).toConstantValue({value:!1}),uz.bind(b.COOKIE_SERVICE).to(eY).inSingletonScope(),uz.bind(b.CONSENT_SERVICE).to(eZ).inSingletonScope(),uz.bind(b.EVENT_EMITTER).to(tW).inSingletonScope()),t&&!t._container&&(t._container=uz)},u6=function(){uR.forEach(function(t){var e=t.to,r=t.name,n=void 0===r?"":r,o=t.required,i=t.identifier;(void 0!==o&&o||(0,l.Wf)(n))&&!uz.isBound(i)&&uz.bind(i).to(e).inSingletonScope(),uZ&&uZ._mounted&&!uZ.getPlugin(n)&&uz.isBound(i)&&uZ.usePlugin(uz.get(i))})},u9=function(){uJ.forEach(function(t){var e=t.to,r=t.name,n=t.identifier;(0,l.Wf)(void 0===r?"":r)&&!uz.isBound(n)&&uz.bind(n).to(e).inSingletonScope()})},u5=function(t,e,r){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var n={taskName:window.ttq._pf_tn,functionName:"initAllModule",start:performance.now()}}catch(t){}u3(t,r),P(e,t),u9(),u8(t),u6(),uN(e,t);try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}},u4=function(){try{var t=uz.get(b.MONITOR_PLUGIN);if(t)return t;return null}catch(t){return null}},u7=function(){try{uz.get(b.EVENT_EMITTER)}catch(t){(0,c.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"emitterFactory"})}},ct=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)})})},ce=function(t){return new this(function(e,r){if(!(t&&void 0!==t.length))return r(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([]);for(var o=n.length,i=0;i0&&u&&new u(t.getReporterId(),t.rules)});try{window.ttq&&window.ttq._ppf&&(v.end=performance.now(),window.ttq._ppf.push(v))}catch(t){}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e),"init"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}}}()}catch(t){(0,c.vU)(s.O.INIT_ERROR,t)}}()}();