1 line
512 KiB
Plaintext
1 line
512 KiB
Plaintext
!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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return h.prototype=y,n(m,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:h,configurable:!0}),h.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,a,function(){return this}),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},b(m),u(m,c,"Generator"),u(m,i,function(){return this}),u(m,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},42:function(){if("undefined"!=typeof window)try{var t=new window.CustomEvent("test",{cancelable:!0});if(t.preventDefault(),!0!==t.defaultPrevented)throw Error("Could not prevent default")}catch(t){var e=function(t,e){var r,n;return(e=e||{}).bubbles=!!e.bubbles,e.cancelable=!!e.cancelable,(r=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n=r.preventDefault,r.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented=!0}},r};e.prototype=window.Event.prototype,window.CustomEvent=e}},505:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});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():c();this._observationTargets.forEach(function(n){var o=n.element,i=a(o),c=this._rootContainsTarget(o),u=n.entry,s=t&&c&&this._computeTargetAndRootIntersection(o,e),l=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:i,rootBounds:e,intersectionRect:s});u?t&&c?this._hasCrossedThreshold(u,l)&&this._queuedEntries.push(l):u&&u.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 c=null,u=1==o.nodeType?window.getComputedStyle(o):{};if("none"==u.display)return;if(o==this.root||o==t?(i=!0,c=r):o!=t.body&&o!=t.documentElement&&"visible"!=u.overflow&&(c=a(o)),c&&!(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,c=n-r;return a>=0&&c>=0&&{top:r,bottom:n,left:o,right:i,width:a,height:c}}(c,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;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==r||i==n||i<r!=i<n)return!0}},n.prototype._rootIsInDom=function(){return!this.root||u(t,this.root)},n.prototype._rootContainsTarget=function(e){return u(this.root||t,e)},n.prototype._registerInstance=function(){0>e.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||c(),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):c()}function c(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(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]",c="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",f="[object Number]",h="[object Object]",p="[object Promise]",d="[object RegExp]",v="[object Set]",_="[object String]",m="[object Symbol]",y="[object WeakMap]",g="[object ArrayBuffer]",E="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",I="[object Int16Array]",T="[object Int32Array]",S="[object Uint8Array]",R="[object Uint8ClampedArray]",N="[object Uint16Array]",L="[object Uint32Array]",A=/\w*$/,x=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,C={};C[i]=C["[object Array]"]=C[g]=C[E]=C[a]=C[c]=C[b]=C[w]=C[O]=C[I]=C[T]=C[l]=C[f]=C[h]=C[d]=C[v]=C[_]=C[m]=C[S]=C[R]=C[N]=C[L]=!0,C["[object Error]"]=C[u]=C[y]=!1;var k="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,D="object"==typeof self&&self&&self.Object===Object&&self,M=k||D||Function("return this")(),j=e&&!e.nodeType&&e,U=j&&t&&!t.nodeType&&t,F=U&&U.exports===j;function G(t,e){return t.set(e[0],e[1]),t}function V(t,e){return t.add(e),t}function H(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function B(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function K(t,e){return function(r){return t(e(r))}}function W(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var Y=Array.prototype,X=Function.prototype,J=Object.prototype,Z=M["__core-js_shared__"],z=(n=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Q=X.toString,$=J.hasOwnProperty,tt=J.toString,te=RegExp("^"+Q.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tr=F?M.Buffer:void 0,tn=M.Symbol,to=M.Uint8Array,ti=K(Object.getPrototypeOf,Object),ta=Object.create,tc=J.propertyIsEnumerable,tu=Y.splice,ts=Object.getOwnPropertySymbols,tl=tr?tr.isBuffer:void 0,tf=K(Object.keys,Object),th=tk(M,"DataView"),tp=tk(M,"Map"),td=tk(M,"Promise"),tv=tk(M,"Set"),t_=tk(M,"WeakMap"),tm=tk(Object,"create"),ty=tU(th),tg=tU(tp),tE=tU(td),tb=tU(tv),tw=tU(t_),tO=tn?tn.prototype:void 0,tI=tO?tO.valueOf:void 0;function tT(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function tS(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function tR(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function tN(t){this.__data__=new tS(t)}function tL(t,e,r){var n=t[e];$.call(t,e)&&tF(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function tA(t,e){for(var r=t.length;r--;)if(tF(t[r][0],e))return r;return -1}function tx(t){var e=new t.constructor(t.byteLength);return new to(e).set(new to(t)),e}function tP(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var a=e[o],c=n?n(r[a],t[a],a,r,t):void 0;tL(r,a,void 0===c?t[a]:c)}return r}function tC(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function tk(t,e){var r,n=null==t?void 0:t[e];return!(!tB(n)||(r=n,z&&z in r))&&(tq(n)||q(n)?te:x).test(tU(n))?n:void 0}tT.prototype.clear=function(){this.__data__=tm?tm(null):{}},tT.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},tT.prototype.get=function(t){var e=this.__data__;if(tm){var r=e[t];return r===o?void 0:r}return $.call(e,t)?e[t]:void 0},tT.prototype.has=function(t){var e=this.__data__;return tm?void 0!==e[t]:$.call(e,t)},tT.prototype.set=function(t,e){return this.__data__[t]=tm&&void 0===e?o:e,this},tS.prototype.clear=function(){this.__data__=[]},tS.prototype.delete=function(t){var e=this.__data__,r=tA(e,t);return!(r<0)&&(r==e.length-1?e.pop():tu.call(e,r,1),!0)},tS.prototype.get=function(t){var e=this.__data__,r=tA(e,t);return r<0?void 0:e[r][1]},tS.prototype.has=function(t){return tA(this.__data__,t)>-1},tS.prototype.set=function(t,e){var r=this.__data__,n=tA(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},tR.prototype.clear=function(){this.__data__={hash:new tT,map:new(tp||tS),string:new tT}},tR.prototype.delete=function(t){return tC(this,t).delete(t)},tR.prototype.get=function(t){return tC(this,t).get(t)},tR.prototype.has=function(t){return tC(this,t).has(t)},tR.prototype.set=function(t,e){return tC(this,t).set(t,e),this},tN.prototype.clear=function(){this.__data__=new tS},tN.prototype.delete=function(t){return this.__data__.delete(t)},tN.prototype.get=function(t){return this.__data__.get(t)},tN.prototype.has=function(t){return this.__data__.has(t)},tN.prototype.set=function(t,e){var r=this.__data__;if(r instanceof tS){var n=r.__data__;if(!tp||n.length<199)return n.push([t,e]),this;r=this.__data__=new tR(n)}return r.set(t,e),this};var tD=ts?K(ts,Object):function(){return[]},tM=function(t){return tt.call(t)};function tj(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||J)}function tU(t){if(null!=t){try{return Q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function tF(t,e){return t===e||t!=t&&e!=e}(th&&tM(new th(new ArrayBuffer(1)))!=E||tp&&tM(new tp)!=l||td&&tM(td.resolve())!=p||tv&&tM(new tv)!=v||t_&&tM(new t_)!=y)&&(tM=function(t){var e=tt.call(t),r=e==h?t.constructor:void 0,n=r?tU(r):void 0;if(n)switch(n){case ty:return E;case tg:return l;case tE:return p;case tb:return v;case tw:return y}return e});var tG=Array.isArray;function tV(t){var e;return null!=t&&"number"==typeof(e=t.length)&&e>-1&&e%1==0&&e<=0x1fffffffffffff&&!tq(t)}var tH=tl||function(){return!1};function tq(t){var e=tB(t)?tt.call(t):"";return e==u||e==s}function tB(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function tK(t){return tV(t)?function(t,e){var r,n,o,a,c,u=tG(t)||(o=n=r=t)&&"object"==typeof o&&tV(n)&&$.call(r,"callee")&&(!tc.call(r,"callee")||tt.call(r)==i)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],s=u.length,l=!!s;for(var f in t){$.call(t,f)&&!(l&&("length"==f||(a=f,(c=null==(c=s)?0x1fffffffffffff:c)&&("number"==typeof a||P.test(a))&&a>-1&&a%1==0&&a<c)))&&u.push(f)}return u}(t):function(t){if(!tj(t))return tf(t);var e=[];for(var r in Object(t))$.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}t.exports=function(t){return function t(e,r,n,o,p,y,x){if(o&&(P=y?o(e,p,y,x):o(e)),void 0!==P)return P;if(!tB(e))return e;var P,k=tG(e);if(k){if(M=(D=e).length,j=D.constructor(M),M&&"string"==typeof D[0]&&$.call(D,"index")&&(j.index=D.index,j.input=D.input),P=j,!r){var D,M,j,U=e,F=P,K=-1,Y=U.length;for(F||(F=Array(Y));++K<Y;)F[K]=U[K];return F}}else{var X,J,Z,z,Q,tt=tM(e),te=tt==u||tt==s;if(tH(e)){var tr=e,tn=r;if(tn)return tr.slice();var to=new tr.constructor(tr.length);return tr.copy(to),to}if(tt==h||tt==i||te&&!y){if(q(e))return y?e:{};if(P="function"!=typeof(X=te?{}:e).constructor||tj(X)?{}:tB(J=ti(X))?ta(J):{},!r){return Z=e,z=(Q=P)&&tP(e,tK(e),Q),tP(Z,tD(Z),z)}}else{if(!C[tt])return y?e:{};P=function(t,e,r,n){var o,i,u,s=t.constructor;switch(e){case g:return tx(t);case a:case c:return new s(+t);case E:return o=n?tx(t.buffer):t.buffer,new t.constructor(o,t.byteOffset,t.byteLength);case b:case w:case O:case I:case T:case S:case R:case N:case L:return i=n?tx(t.buffer):t.buffer,new t.constructor(i,t.byteOffset,t.length);case l:return H(n?r(B(t),!0):B(t),G,new t.constructor);case f:case _:return new s(t);case d:return(u=new t.constructor(t.source,A.exec(t))).lastIndex=t.lastIndex,u;case v:return H(n?r(W(t),!0):W(t),V,new t.constructor);case m:return tI?Object(tI.call(t)):{}}}(e,tt,t,r)}}x||(x=new tN);var tc=x.get(e);if(tc)return tc;if(x.set(e,P),!k)var tu=n?function(t){var e;return e=tK(t),tG(t)?e:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(e,tD(t))}(e):tK(e);return!function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(tu||e,function(i,a){tu&&(i=e[a=i]),tL(P,a,t(i,r,n,o,a,e,x))}),P}(t,!0,!0)}},616:function(){},229:function(t,e,r){"use strict";r.d(e,{AU:function(){return O},Bk:function(){return u},Bp:function(){return w},Cd:function(){return d},Jn:function(){return h},Kc:function(){return v},M0:function(){return g},MQ:function(){return P},Mm:function(){return A},Ns:function(){return S},OW:function(){return R},QN:function(){return N},Qu:function(){return y},RC:function(){return k},WO:function(){return E},Yp:function(){return C},aj:function(){return _},bk:function(){return f},ct:function(){return m},dm:function(){return p},eM:function(){return D},iG:function(){return l},ku:function(){return T},lV:function(){return L},n2:function(){return x},qC:function(){return b},qf:function(){return I},vu:function(){return s}});var n,o,i,a,c,u,s,l="TiktokAnalyticsObject",f="ttq",h="2.2.1",p="tt_adInfo",d="tt_appInfo",v="insight_log",_="insight_log_monitor",m="_tt_enable_cookie",y="sessionId",g="pageId",E="messageId",b="_ttp",w="tt_sessionId",O="tt_pixel_session_index",I="default_eventId",T="ttcsid",S="https://analytics.tiktok.com/i18n/pixel/config.js",R="https://analytics.tiktok.com/i18n/pixel/enable_cookie",N="https://analytics.tiktok.com/i18n/pixel/disable_cookie",L="https://analytics.tiktok.com/i18n/pixel/static/identify_9ff9a7bf.js",A="analytics.tiktok.com",x="::";(n=u||(u={})).WINDOWS_PHONE="Windows Phone",n.ANDROID="android",n.IOS="ios",n.PC="pc",(o=s||(s={})).MUSICAL_LY="musical_ly",o.MUSICALLY_GO="musically_go",o.TRILL="trill",o.ULTRALITE="ultralite",o.LEMON8="lemon8",o.TTLINK="ttlink";var P=((c={})[s.LEMON8]={},c[s.TTLINK]={},c[s.MUSICAL_LY]=((i={})[u.IOS]="33.4.0",i[u.ANDROID]="23.1.0",i),c[s.TRILL]=((a={})[u.IOS]="33.4.0",a[u.ANDROID]="23.1.0",a),c),C={expires:390},k="ttoclid",D={V1:"aam_v1",RM_KEYWORDS:"aam_rm_keywords",DATA_LAYER:"aam_data_layer",TEXT:"aam_text"}},408:function(t,e,r){"use strict";var n,o;r.d(e,{S:function(){return n}}),(o=n||(n={}))[o.OFFSITE=0]="OFFSITE",o[o.ONSITE=1]="ONSITE"},74:function(t,e,r){"use strict";r.d(e,{M:function(){return i},V:function(){return o}}),(n=o||(o={})).EXTERNAL="external",n.APP="app",n.TIKTOK="tiktok";var n,o,i={ID:Symbol.for("ID"),Type:Symbol.for("type"),Partner:Symbol.for("partner"),Options:Symbol.for("Options"),Plugins:Symbol.for("Plugins"),Rules:Symbol.for("Rules"),Info:Symbol.for("Info"),ExtraParams:Symbol.for("extraParams"),WebLibraryInfo:Symbol.for("WebLibraryInfo"),SignalType:Symbol.for("SignalType"),IsOnsitePage:Symbol.for("IsOnsitePage")}},255:function(t,e,r){"use strict";r.d(e,{D:function(){return n}});var n={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"),SENSITIVE_REDACTOR:Symbol.for("SENSITIVE_REDACTOR"),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"),INTER_ID_SERVICE:Symbol.for("INTER_ID_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")}},825:function(t,e,r){"use strict";var n,o;r.d(e,{O:function(){return n}}),(o=n||(n={})).LOAD_START="load_start",o.LOAD_END="load_end",o.BEFORE_INIT="before_init",o.INIT_START="init_start",o.INIT_END="init_end",o.JSB_INIT_START="jsb_init_start",o.JSB_INIT_END="jsb_init_end",o.BEFORE_AD_INFO_INIT_START="before_ad_info_init_start",o.AD_INFO_INIT_START="ad_info_init_start",o.AD_INFO_INIT_END="ad_info_init_end",o.IDENTIFY_INIT_START="identify_init_start",o.IDENTIFY_INIT_END="identify_init_end",o.PLUGIN_INIT_START="_init_start",o.PLUGIN_INIT_END="_init_end",o.PIXEL_SEND="pixel_send",o.PIXEL_SEND_PCM="pixel_send_PCM",o.JSB_SEND="jsb_send",o.HTTP_SEND="http_send",o.HANDLE_CACHE="handle_cache",o.INIT_ERROR="init_error",o.PIXEL_EMPTY="pixel_empty",o.JSB_ERROR="jsb_error",o.API_ERROR="api_error",o.PLUGIN_ERROR="plugin_error",o.CUSTOM_INFO="custom_info",o.CUSTOM_ERROR="custom_error",o.CUSTOM_TIMER="custom_timer"},118:function(t,e,r){"use strict";r.d(e,{Ae:function(){return n},Sk:function(){return i},X2:function(){return o}});var n=["phone_number","email","external_id"],o={EMAIL_IS_HASHED:"email_is_hashed",PHONE_IS_HASHED:"phone_is_hashed",SHA256_EMAIL:"sha256_email",SHA256_PHONE:"sha256_phone"},i="auto_trigger_type"},76:function(t,e,r){"use strict";var n,o,i,a,c,u,s;r.d(e,{Cr:function(){return i},IM:function(){return o},PG:function(){return n},_V:function(){return a}}),(c=n||(n={})).CLICK="click",c.SCROLL="scroll",(u=o||(o={})).BEFORE_REPORT="beforeReport",u.QUEUE="queue",(s=i||(i={})).URL_CHANGE="url_change",s.COOKIE_TTCSID_CHANGE="cookie_ttcsid_change",s.HANDLE_CACHE="handle_cache",s.LCP="lcp",(a||(a={})).UPDATE_CONFIG="observer:updateConfig"},729:function(t,e,r){"use strict";r.d(e,{Ko:function(){return g},N4:function(){return E},Ts:function(){return p},Vp:function(){return h},_R:function(){return y},hZ:function(){return f}});var n,o,i,a,c,u,s,l,f,h,p,d,v,_,m,y,g={Email:1,Phone:2};(n=f||(f={})).EMPTY_VALUE="empty_value",n.WRONG_FORMAT="wrong_format",n.CORRECT_FORMAT="correct_format",n.HASHED="hashed",n.HASHED_ERR="hashed_err",n.HASHED_CORRECT="hashed_correct",n.PLAINTEXT_EMAIL="plaintext_email",n.PLAINTEXT_PHONE="plaintext_phone",(o=h||(h={})).EMPTY_VALUE="empty_value",o.PLAIN_EMAIL="plain_email",o.PLAIN_PHONE="plain_phone",o.HASHED="hashed",o.FILTER_EVENTS="filter_events",o.UNKNOWN_INVALID="unknown_invalid",o.BASE64_STRING_HASHED="base64_string_hashed",o.BASE64_HEX_HASHED="base64_hex_hashed",o.PLAIN_MDN_EMAIL="plain_mdn_email",o.ZIP_CODE_IS_NOT_HASHED="zip_code_is_not_hashed",o.ZIP_CODE_IS_NOT_US="zip_code_is_not_us",o.ZIP_CODE_IS_HASHED="zip_code_is_hashed",o.ZIP_CODE_IS_US="zip_code_is_us",(i=p||(p={})).Manual="manual",i.ManualV2="manual_v2",i.Auto="auto",i.EBManual="eb_manual",(a=d||(d={})).empty="empty",a.whitespace="whitespace",a.hardcode="hardcode",a.encode="encode",(c=v||(v={})).letterCase="letter_case",c.isNotValidEmail="is_not_valid_email",c.isNotPossibleEmail="is_not_possible_email",c.domainTypo="domain_typo",c.addressFormat="address_format",(u=_||(_={})).invalidCountry="invalid_country",u.notANumber="not_a_number",u.tooShort="too_short",u.tooLong="too_long",u.invalidLength="invalid_length",u.emptyCountryCodeThroughIP="empty_country_code_through_ip",u.invalidCountryAfterInjectPlus="invalid_country_after_inject_plus",u.notANumberAfterInjectPlus="not_a_number_after_inject_plus",u.tooShortAfterInjectPlus="too_short_after_inject_plus",u.tooLongAfterInjectPlus="too_long_after_inject_plus",u.invalidLengthAfterInjectPlus="invalid_length_after_inject_plus",u.invalidCountryAfterInjectCountry="invalid_country_after_inject_country",u.notANumberAfterInjectCountry="not_a_number_after_inject_country",u.tooShortAfterInjectCountry="too_short_after_inject_country",u.tooLongAfterInjectCountry="too_long_after_inject_country",u.invalidLengthAfterInjectCountry="invalid_length_after_inject_country",(s=m||(m={})).missing="missing",s.valid="valid",s.invalid="invalid";var E={raw_email:{label:m.missing},raw_auto_email:{label:m.missing},raw_phone:{label:m.missing},raw_auto_phone:{label:m.missing},hashed_email:{label:m.missing},hashed_phone:{label:m.missing},raw_eb_email:{label:m.missing},raw_eb_phone:{label:m.missing},hashed_eb_email:{label:m.missing},hashed_eb_phone:{label:m.missing}};(l=y||(y={}))[l.UNKNOWN=0]="UNKNOWN",l[l.HOLD=1]="HOLD",l[l.REVOKE=2]="REVOKE",l[l.GRANT=3]="GRANT"},188:function(t,e,r){"use strict";r.d(e,{FI:function(){return c},HD:function(){return o},Kn:function(){return a},P2:function(){return h},Qr:function(){return u},eZ:function(){return p},fV:function(){return s},gj:function(){return l},hj:function(){return i},pW:function(){return f}});var n=r(688),o=function(t){return"string"==typeof t},i=function(t){return"number"==typeof t},a=function(t){return"[object Object]"===Object.prototype.toString.call(t)},c=function(t){return["[object Object]","[object Array]"].includes(Object.prototype.toString.call(t))},u=function(t){return"{}"===JSON.stringify(t)},s=function(t){return t+"-"+(0,n.u3)()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)},l=function(t,e,r){return void 0===r&&(r="-"),""+t+r+e},f=function(){return new Date((0,n.u3)()+864e5).toUTCString()};function h(t,e,r,o){void 0===e&&(e=500),void 0===r&&(r={trailing:!1});var i=0,a=null,c=null,u=o?t.bind(o):t,s=r.trailing;return function(){for(var t=(0,n.u3)(),r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];c=o;var f=e-(t-i);f<=0?(a&&(clearTimeout(a),a=null),u.apply(void 0,o),i=t):!a&&s&&(a=setTimeout(function(){a=null,i=(0,n.u3)(),u.apply(void 0,c)},f))}}var p=function(t){return/^(0|([1-9]\d*))$/.test(""+t)}},790:function(t,e,r){"use strict";r.d(e,{xD:function(){return T},Fn:function(){return I},Tm:function(){return N},zd:function(){return b},Dt:function(){return y},XA:function(){return v},bp:function(){return O},b4:function(){return p},RA:function(){return h},zP:function(){return P},z6:function(){return j},Xf:function(){return _},z1:function(){return M},NC:function(){return w},r8:function(){return E},Z0:function(){return d},gn:function(){return g},b:function(){return C},sH:function(){return m},PO:function(){return L}});var n,o,i,a,c=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 u=r(319),s=r(74),l=r(408),f=r(229),h=function(){var t,e;return(null==(t=(0,c.Ie)())||null==(e=t._env)?void 0:e.env)||s.V.EXTERNAL},p=function(){var t,e;return null!=(t=null==(e=(0,c.Ie)())?void 0:e._is_onsite)?t:l.S.OFFSITE},d=function(t){return(t||h())!==s.V.EXTERNAL},v=function(t){return(t||h())===s.V.TIKTOK},_=function(){var t=(0,c.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},b=function(){return window.top!==window},w=(0,u.IH)(function(){return/open_news/i.test((0,c.ij)())}),O=(0,u.IH)(function(){return/ultralite/i.test((0,c.ij)())});function I(){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 T=function(){try{return window&&window.top&&window.top.location.href,!1}catch(t){return!0}},S=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}},R=function(){try{if(!T())return a.NOT_CROSS_DOMAIN_IFRAME;if(S())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}},N=function(){return(0,c.n2)()?a.WEB_WORKER:b()?R():a.NORMAL},L=function(){var t=(0,c.ij)();if(t)for(var e=0,r=Object.values(f.vu);e<r.length;e++){var n=r[e];if(t.includes(n))return n}},A=function(){var t=(0,c.ij)();if(t){var e=t.match(/\bapp_version\/(\S*)/),r=e&&e[1]?e[1].match(/^\d+\.\d+\.\d+$/):void 0;if(r)return r[0];var n=RegExp("\\b("+Object.values(f.vu).join("|")+")_(\\d+\\.\\d+\\.\\d+)"),o=t.match(n);if(o)return o[2]}},x=function(){var t=(0,c.ij)();if(t)for(var e=Object.keys(f.vu),r=0;r<e.length;r++){var n=e[r],o=RegExp("\\b"+f.vu[n]+"_(\\S*)"),i=t.match(o),a=i&&i[1]?i[1].match(/^\d+\.\d+\.\d+$/):void 0;if(a)return a[0]}},P=function(){var t=L();if(!t||!f.MQ[t])return!1;var e=f.MQ[t],r=_();if(!e[r])return!0;var n=g()?x():y()?A():null;return!!n&&k(e[r],n)},C=function(t){var e=(0,c.Ie)();return!!(e._vids&&-1!==e._vids.indexOf(t))},k=function(t,e){for(var r=t.split("."),n=e.split("."),o=0;o<Math.max(r.length,n.length);o++){var i=parseInt(r[o])||Number.MAX_VALUE,a=parseInt(n[o])||-1;if(i<a)break;if(i>a)return!1}return!0},D=function(t){var e=L();return void 0!==e&&t.has(e)},M=function(){return D(new Set([f.vu.MUSICAL_LY,f.vu.TRILL,f.vu.ULTRALITE]))},j=function(){var t=(0,c.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 s},FH:function(){return _},Gp:function(){return l},Ie:function(){return f},My:function(){return v},Wf:function(){return E},c6:function(){return b},cH:function(){return p},er:function(){return w},gM:function(){return u},ij:function(){return d},kW:function(){return m},n2:function(){return h},ri:function(){return y},so:function(){return g}});var n=r(229),o=r(255),i=r(825),a=r(783),c=null,u=function(t){c=t},s=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==r.g?r.g:Function("return this")()},l=function(){return s()[n.iG]||n.bk},f=function(){var t=s();return c||t[l()]},h=function(){var t=s();return void 0!==t.DedicatedWorkerGlobalScope?t instanceof t.DedicatedWorkerGlobalScope:"DedicatedWorkerGlobalScope"===t.constructor.name},p=function(){return!!f()._is_onsite},d=function(){var t=s();return("object"==typeof navigator&&navigator.userAgent?navigator.userAgent:"")||t._userAgent},v=function(t){try{var e=f();return e&&e._self_host_config&&e._self_host_config[t]||""}catch(t){return""}},_=function(t,e){void 0===e&&(e=[]);try{return e.includes(t)}catch(t){return!1}},m=function(t){var e=f(),r=e._i||{},n=t&&r[t];return t&&n&&n._partner?n._partner:e._partner?e._partner:""},y=function(t){var e=f(),r=e._i||{};return Object.keys(r).filter(function(e){return r[e]._partner===t}).length>0||e._partner===t},g=function(){return((f()||[])._cc||"").toUpperCase()},E=function(t){try{var e=f()._plugins||{};if(null!=e[t])return!!e[t];return!0}catch(t){return!0}},b=function(){try{var t=f()._ppf;return null==t.printAndClear?void 0:t.printAndClear()}catch(t){}},w=function(){try{var t,e=f(),r=null==(t=e._container)?void 0:t.get(o.D.INTER_ID_SERVICE);if(r)return r.getInterId()||null}catch(t){(0,a.vU)(i.O.CUSTOM_ERROR,t,{custom_name:"getCurrentInterId"})}return null}},52:function(t,e,r){"use strict";r.d(e,{Kn:function(){return u},Oo:function(){return c},o5:function(){return s}});var n=r(332),o=r(783),i=r(255),a=r(825),c=function(t,e,r,c){try{var u,s=(0,n.Ie)(),l=null==(u=s._container)?void 0:u.get(i.D.EVENT_EMITTER);if(!l)throw Error("EventEmitter is not found - addEventListener");c&&l.setObserverConfig(c);var f=r.throttle,h=r.interval;l.on(t,e,{throttle:f,interval:h})}catch(e){(0,o.vU)(a.O.CUSTOM_ERROR,e,{custom_name:"addEventListener",custom_enum:t})}},u=function(t){try{var e,r=(0,n.Ie)(),c=null==(e=r._container)?void 0:e.get(i.D.EVENT_EMITTER);if(!c)throw Error("EventEmitter is not found - emitEvent");for(var u=arguments.length,s=Array(u>1?u-1:0),l=1;l<u;l++)s[l-1]=arguments[l];c.emit.apply(c,[t].concat(s))}catch(e){(0,o.vU)(a.O.CUSTOM_ERROR,e,{custom_name:"emitEvent",custom_enum:t})}},s=function(t,e,r){try{var c,u=(0,n.Ie)(),s=null==(c=u._container)?void 0:c.get(i.D.EVENT_EMITTER);if(!s)throw Error("EventEmitter is not found - subscribeEvent");s.on(t,e,r)}catch(e){(0,o.vU)(a.O.CUSTOM_ERROR,e,{custom_name:"subscribeEvent",custom_enum:t})}}},783:function(t,e,r){"use strict";r.d(e,{ZK:function(){return c},dK:function(){return s},qe:function(){return o},um:function(){return i},vU:function(){return a},wE:function(){return u}});var n=r(332),o={info:[],error:[]};function i(t,e,r,i){void 0===e&&(e={}),void 0===r&&(r=!1),void 0===i&&(i=!1);try{var a=(0,n.Ie)(),c=null==a.getPlugin?void 0:a.getPlugin("Monitor");c&&c.info&&"function"==typeof c.info?c.info.call(c,t,e,r,i):(0,n.Wf)("Monitor")&&o.info.push({event:t,detail:e,withoutJSB:r,forceReport:i})}catch(t){}}function a(t,e,r,i){void 0===r&&(r={}),void 0===i&&(i=!1);try{var a=(0,n.Ie)(),c=null==a.getPlugin?void 0:a.getPlugin("Monitor");c&&c.error&&"function"==typeof c.error?c.error.call(c,t,e,r,i):(0,n.Wf)("Monitor")&&o.error.push({event:t,err:e,detail:r,withoutJSB:i})}catch(t){}}function c(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 u(){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}}},688:function(t,e,r){"use strict";var n,o;function i(){var t=Date.now();return("number"!=typeof t||isNaN(t)||!isFinite(t)||t<0)&&(t=new Date().getTime()),t}r.d(e,{u3:function(){return i}}),(o=n||(n={})).AUTO_CONFIG_CONTENT="auto_config_content",o.AUTO_CONFIG_FORM="auto_config_form",o.AUTO_CONFIG_CLICK="auto_config_click",o.EB_RULE_COMPUTE_TOKENIZE_TEXT="eb_rule_compute_tokenize_text",o.EB_RULE_COMPUTE_IMG_SRC="eb_rule_compute_img_src",o.EB_RULE_COMPUTE_ELEMENT_XPATH="eb_rule_compute_element_xpath",o.EB_PARAMETER_V2="eb_parameter_v2",o.EB_PARAMETER_V1="eb_parameter_v1"},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 U},QO:function(){return k},TX:function(){return A},hi:function(){return L},te:function(){return C},ZV:function(){return m},Ds:function(){return j},eh:function(){return q},aN:function(){return tt},iE:function(){return E},LT:function(){return S},Pm:function(){return O},Zq:function(){return b},JQ:function(){return y},bJ:function(){return Z},cm:function(){return M},d$:function(){return R},X1:function(){return x},vO:function(){return P},zh:function(){return G},oh:function(){return B},$9:function(){return Q},mQ:function(){return D},Xu:function(){return w},$j:function(){return T},IH:function(){return I},iK:function(){return H},WZ:function(){return g},xF:function(){return W},b2:function(){return z},eD:function(){return N},P6:function(){return V},hj:function(){return $}});var o,i="0123456789ABCDEFGHJKMNPQRSTVWXYZ",a=i.length,c=(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)}),u=r(729),s=r(229),l=r(118),f=r(188),h=r(790),p=r(688);function d(){d=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new I(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return S()}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 h(){}function p(){}function v(){}var _={};u(_,i,function(){return this});var m=Object.getPrototypeOf,y=m&&m(m(T([])));y&&y!==e&&r.call(y,i)&&(_=y);var g=v.prototype=h.prototype=Object._ttq_create(_);function E(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(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 w(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=v,n(g,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=u(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(g),t},t.awrap=function(t){return{__await:t}},E(b.prototype),u(b.prototype,a,function(){return this}),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},E(g),u(g,c,"Generator"),u(g,i,function(){return this}),u(g,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=T,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(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;O(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,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}var _=function(t){return t},m=function(t){_=t},y=function(t){return _(t)},g=function(t){return!!t},E=function(t){return void 0!==t.metric_name},b=function(t){return"CompletePayment"===t||"Purchase"===t},w=function(t){return E(t)?s.aj:s.Kc},O=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 I(t,e){var r,n=t;return function(){if(n){for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];r=t.apply(e,i),n=null}return r}}var T=function(t){var e;return void 0===(e=t)&&(e=21),crypto.getRandomValues(new Uint8Array(e)).reduce(function(t,e){return(e&=63)<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t},"")},S=function(t){return t?""+t+s.n2+T(20):(0,f.fV)("sessionId")},R=function(){for(var t=c((0,p.u3)());27!==t.length;)t.length>27?t=t.slice(0,27):t+="_";return t},N=function(t){return t?t.split(s.n2)[0]:""},L=function(t,e){return((0,h.r8)()?"/static/config.js":s.Ns)+"?sdkid="+t+"&hostname="+e},A=function(){return(0,h.r8)()?"/static/enable_cookie.js":s.OW},x=function(){return(0,h.r8)()?"/static/disable_cookie.js":s.QN},P=function(){return(0,h.r8)()?"/static/identify.js":s.lV},C=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]=[u.hZ.EMPTY_VALUE],t[e]){var n=t[e]||[u.hZ.EMPTY_VALUE];r.identity_params&&(r.identity_params[e]=[].concat(n))}})}),r},k=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]||[u.hZ.EMPTY_VALUE];r.identity_params[n]=[].concat(o)}else r.identity_params[n]=[u.hZ.EMPTY_VALUE]}),r)};function D(t,e){var r=Object.assign({},t);return e.forEach(function(t){null!==r[t]&&void 0!==r[t]&&delete r[t]}),r}var M=function(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){e[n]&&(r[n]=t[n])}),r};function j(t,e,r){var n,o=r?t.bind(r):t;return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];clearTimeout(n),n=setTimeout(function(){o.apply(void 0,r)},e)}}function U(t){return F.apply(this,arguments)}function F(){var t;return t=d().mark(function t(e){return d().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===e&&(e=500),t.abrupt("return",new Promise(function(t){setTimeout(function(){t(!0)},e)}));case 2:case"end":return t.stop()}},t)}),(F=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){v(i,n,o,a,c,"next",t)}function c(t){v(i,n,o,a,c,"throw",t)}a(void 0)})}).apply(this,arguments)}var G=["input[type='button']","input[type='image']","input[type='submit']","button","[class*=btn]","[class*=Btn]","[class*=button]","[class*=Button]","[role*=button]","[id*=btn]","[id*=Btn]","[id*=button]","[id*=Button]","a"],V=["[href^='tel:']","[href^='callto:']","[href^='sms:']","[href^='skype:']","[href^='whatsapp:']","[href^='mailto:']"],H=function(t){var e=G.some(function(e){return t.matches(e)}),r=V.some(function(e){return t.matches(e)});return e&&!r};function q(t,e){return Object.keys(function t(e,r){var n={};for(var o in e)if(e.hasOwnProperty(o)&&!r.hasOwnProperty(o))n[o]=e[o];else if(e.hasOwnProperty(o)&&r.hasOwnProperty(o)&&e[o]!==r[o])if("object"==typeof e[o]&&"object"==typeof r[o]){var i=t(e[o],r[o]);Object.keys(i).length>0&&(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 B(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 K=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<n.length;o++){var i=n[o];if(i.innerHTML&&i.innerHTML.indexOf(t)>-1){e=i;break}}try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}return e},W=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&&K(t);n&&(Y(n)&&(r="isInHead"),J(n)&&(r="isInBodyTop10"))}catch(t){}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}return r},Y=function t(e){var r=e.parentElement;return!!r&&("HEAD"===r.tagName||t(r))},X=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},J=function(t){return X(10,t)},Z=function(t){return function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];setTimeout(function(){return t.apply(void 0,r)},0)}},z=function(t){return function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];Promise.resolve().then(function(){return t.apply(void 0,r)})}},Q=/function WeakSet\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(WeakSet.toString()),$=/function WeakMap\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(WeakMap.toString());/function Date\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Date.toString());var tt=function(t,e,r){var n=Object.getPrototypeOf(t);"proto"===r&&n&&"function"==typeof n[e]&&(n[e]=function(){}),"instance"===r&&t&&"function"==typeof t[e]&&(t[e]=function(){})}},344:function(t,e,r){"use strict";r.d(e,{Z:function(){return t_}}),r(42),r(505);var n,o,i,a,c,u,s,l,f,h,p=r(319),d=r(783),v=r(825),_=r(52),m=r(76);(n=u||(u={})).V1="v1",n.V2="v2",(o=s||(s={})).ELEMENT_V2="ELEMENT_V2",o.IMG_SRC="IMG_SRC",o.TOKENIZE_TEXT="TOKENIZE_TEXT",o.PAGE_URL_V2="PAGE_URL_V2",(i=l||(l={}))[i.WRONG=-1]="WRONG",i[i.KEEP=0]="KEEP",i[i.ARRAY=-2]="ARRAY",i[i.TURNINTOINTEGER=1]="TURNINTOINTEGER",i[i.TURNINTODECIMAL=2]="TURNINTODECIMAL",(a=f||(f={}))[a.CLICK_EVENT=0]="CLICK_EVENT",a[a.DESTINATION_URL=1]="DESTINATION_URL";var y=function(t,e,r){var n=document.querySelectorAll(e);for(var o in n)if(r){if(Object.is(o,t))return!0}else if(!Object.is(o,t))return!0;return!1},g=function(t){var e=document.createRange(),r=document.body?document.body:document.head;e.selectNode(r);var n=e.createContextualFragment(t);r.appendChild(n)},E=function(){var t={},e=new Promise(function(e,r){t.resolve=e,t.reject=r});return t.promise=e,t},b=function(t,e,r){var n=E();return new IntersectionObserver(function(t){t.forEach(function(t){if(t.isIntersecting){var o={result:t.isIntersecting,curValue:e,condition:r};n.resolve(o)}})},{root:null,rootMargin:"0px",threshold:.5}).observe(t),n.promise};function w(t,e){var r=history[t],n=t+"-"+e;return function(){r.apply(history,arguments);var t=new CustomEvent(n,{detail:arguments});window.dispatchEvent(t)}}var O=function(t){history.pushState=w("pushState",t),history.replaceState=w("replaceState",t)},I=function(t,e){var r=t.getComputedStyle(e);return!("none"===r.display||"visible"!==r.visibility||.1>Number(r.opacity))},T=function(t){var e=t;if("string"==typeof t)try{e=decodeURI(t)}catch(r){e=t}return e},S=function(t,e){try{var r=new URL(t);return r.searchParams.delete(e),r.toString()}catch(e){return t}},R=function(t){return Object.values(s).includes(t)?u.V2:u.V1},N='"pixelMethod":"standard"',L=function(t,e){try{var r=t.split(N),n="";if(e&&(n+=',"is_button":"true"'),n)return r[0]+N+n+r[1];return t}catch(e){return t}},A=function(t){try{var e=t.split(N);return e[0]+N+',"is_standard_mode":"1"'+e[1]}catch(e){return t}},x=/[\-!$><-==&_\/\?\.,0-9:; \]\[%~\"\{\}\)\(\+\@\^\`]/g,P=/((([a-z])(?=[A-Z]))|(([A-Z])(?=[A-Z][a-z])))/g,C=/\s+/g,k={TOKENIZE_TEXT:"rule_compute_tokenize_text_error",IMG_SRC:"rule_compute_img_src_error",ELEMENT_V2:"rule_compute_element_v2_xpath_error"},D=function(t){var e;return null===t?null:(null==(e=t.innerText)?void 0:e.length)>0?t.innerText.replace(x," ").replace(P,function(t){return t+" "}).replace(C," ").toLowerCase().trim():null},M=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},j=function(t,e){var r;return(null==(r=D(t))?void 0:r.toLowerCase())===e},U=function(t,e){return M(t)===e},F=function(t,e){var r;return null!=(r=null==t?void 0:t.matches)&&!!r.call(t,e)},G=function(t,e,r,n){var o=!1,i=null,a=null;switch(e){case"TOKENIZE_TEXT":a=j;break;case"IMG_SRC":a=U;break;case"ELEMENT_V2":a=F}for(var c=0;c<5&&!["HTML","BODY"].includes(null==t?void 0:t.tagName);c++){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 V=function(t,e,r,n){switch(e){case"EQUALS":if([s.TOKENIZE_TEXT,s.IMG_SRC,s.ELEMENT_V2].includes(n))try{return G(t,n,r,!1)}catch(t){(0,d.vU)(v.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:k[n]});break}if("ELEMENT"==n)try{for(var o=document.querySelectorAll(r),i=Array.prototype.slice.call(o),a=0;a<i.length;a++)if(i[a].contains(t))return!0}catch(t){(0,d.vU)(v.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"rule_compute_element_xpath_error"});break}if(r.split(";").filter(function(e){return t==e}).length>0)return!0;break;case"LT":if(t<r)return!0;break;case"GT":if(t>r)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(y(t,r,!0))return!0;break;case"DOSE_NOT_MATCHES_CSS_SELECTOR":if(y(t,r,!1))return!0}return!1};function H(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var q={click:["ELEMENT","TOKENIZE_TEXT","IMG_SRC","ELEMENT_V2","ELEMENT_CLASSES","ELEMENT_ID","ELEMENT_TARGET","ElEMENT_URL","ELEMENT_TEXT"],pageview:["PAGE_URL","PAGE_URL_V2","PAGE_HOSTNAME","PAGE_PATH","REFERRER"],visibility:["ELEMENT","ELEMENT_CLASSES","ELEMENT_ID"],history_change:["NEW_HISTORY_FRAGMENT","OLD_HISTORY_FRAGMENT","NEW_HISTORY_STATE","OLD_HISTORY_STATE","HISTORY_SOURCE"]},B="ttclid",K=function(){function t(){}var e=t.prototype;return e.dispatcher=function(t,e,r,n,o){void 0===o&&(o=document);for(var i=e.variable_type,a,c=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 H(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 H(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.")}("visibility"==t?["pageview","history_change","visibility"]:["pageview","history_change","click"]);!(a=c()).done;){var u=a.value;if(q[u].indexOf(i)>-1){var s=void 0;switch(u){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=S(location.href,B);break;case"PAGE_HOSTNAME":e=location.hostname;break;case"PAGE_PATH":e=location.pathname;break;case"REFERRER":e=S(document.referrer,B);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}(),W=r(515),Y=r.n(W);function X(t,e){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var J=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,X(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}(Y()),Z=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=z(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===f.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===f.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 c=new URLSearchParams(a.search),u=t.contents[0].content_id.split("|")[1];r.content_id=c.get(u)}}}return r}catch(t){return(0,d.vU)(v.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v1_error"}),r}},z=function(t,e,r){var n="";if(-1===e||void 0===e){var o=$(t)[0];n=void 0!==o?Q(o,r):""}else{var i=$(t)[e];n=void 0!==i?Q(i,r):""}return n},Q=function(t,e){var r="";if((e===l.KEEP||e===l.WRONG)&&(r=t),e===l.TURNINTOINTEGER&&(r=t.replace(/[,\.]/g,"")),e===l.TURNINTODECIMAL){var n=t.split(/[,\.]/g),o="";n.forEach(function(t,e){e<n.length-1?o+=t:o+="."+t}),r=o}return r},$=function(t){for(var e,r=/[\d|\.|,]+/gm,n=[];null!==(e=r.exec(t));)e.index===r.lastIndex&&r.lastIndex++,e.forEach(function(t){n.push(t)});return n},tt=function(t,e,r){try{var n=t.split(N),o="";if(Object.keys(e).forEach(function(t){(null!==e[t]||void 0!==e[t])&&(o+=',"'+t+'":"'+("value"!==t?encodeURIComponent(e[t]):e[t])+'"')}),r&&(o+=',"dynamic_parameter_config":'+JSON.stringify(r)),o)return n[0]+N+o+n[1];return t}catch(e){return(0,d.vU)(v.O.CUSTOM_ERROR,e,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v1_transform_code_error"}),t}};(c=h||(h={}))[c.PAGE_RAW_STRING=0]="PAGE_RAW_STRING",c[c.PAGE_RAW_STRING_ARRAY=1]="PAGE_RAW_STRING_ARRAY",c[c.PAGE_EMAIL=2]="PAGE_EMAIL",c[c.PAGE_PHONE_NUM=3]="PAGE_PHONE_NUM",c[c.URL_SUBSTRING=4]="URL_SUBSTRING";var te=function(t,e,r,n){void 0===n&&(n=!1);var o,i,a=null;if(!t||""===t)return null;if(n&&r)a=document.querySelector(r);else{var c=null==(o=t.match(/closest\$([^$]+)\$/))?void 0:o[1],u=null==(i=t.match(/children\$([^$]+)\$/))?void 0:i[1];if(e&&c&&u){Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;if(!document.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});var s=e.closest(c);a=null==s?void 0:s.querySelector(u)}else a=e&&u?e.querySelector(u):document.querySelector(r||t)}return a},tr=function(t,e,r){t.map(function(t){var n=t.content_type,o=t.content_id,i=t.content_from,a={};if(n&&(1===n?a.content_type="product":2===n&&(a.content_type="product_group")),o){if(i===f.CLICK_EVENT){var c=te(o,r);(null==c?void 0:c.innerText)&&(a.content_id=null==c?void 0:c.innerText)}else if(i===f.DESTINATION_URL){var u=new URL(location.href);if(o.startsWith("path")&&(a.content_id=u.pathname.split("/")[o.split("|")[1]]),o.startsWith("search")){var s=new URLSearchParams(u.search),l=o.split("|")[1];a.content_id=s.get(l)||void 0}}a.content_id||(0,d.um)(v.O.CUSTOM_INFO,{custom_name:"eb_jelly_info",custom_enum:"dynamic_parameter_v2_content_id_empty",extJSON:{selector:o}})}i&&(a.content_from=i),e.push(a)})},tn=function(t,e,r,n){var o,i=t.relativePath,a=t.absolutePath;void 0===n&&(n=!1);var c=te(i,e,a,n);if(!c)return{text:"",nearbyLink:void 0};var u="";if(r&&(o=function(t){for(var e=t,r=/^(https?:\/\/|ftps?:\/\/|mailto:|tel:|[^:]*\/|\.\.?\/|#)/i,n=0;n<3&&e;n++){if("A"===e.tagName&&e.hasAttribute("href")){var o=e.getAttribute("href");if(o&&r.test(o))try{return new URL(o,window.location.origin).href}catch(t){}}if(e.parentElement)e=e.parentElement;else break}}(c)),"INPUT"===c.tagName||"TEXTAREA"===c.tagName)u=c.value||"";else if("SELECT"===c.tagName){var s=c.selectedOptions[0];u=s&&s.textContent||""}else u=c.innerText;return{text:u,nearbyLink:o}},to=function(t,e){var r={};try{if(t.parameter_list_v2){var n=t.parameter_list_v2;Object.keys(n).forEach(function(t){var o,i="content_name"===t,a=(o=["eb_email","eb_phone_number"],void 0===o)?void 0:o.includes(t);n[t].forEach(function(n){var o,c=n.absolute_path,u=n.relative_path;Array.isArray(r[t])||(r[t]=[]);var s=tn({relativePath:u,absolutePath:c},e,i,a),l=s.text,f=s.nearbyLink;l&&(null==(o=r[t])||o.push(i?Object.assign({content_name:l},f&&{link:f}):l))})})}}catch(t){(0,d.vU)(v.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"handle_parameter_list_v2_error"})}return r},ti=function(t,e){var r,n,o,i={};try{if(t.currency&&(i.currency=t.currency),t.value){var a=te(t.value,e);(null==a?void 0:a.innerHTML)&&(i.ori_value=a.innerHTML,i.value=z(null==(r=a.innerHTML)?void 0:r.trim(),t.value_index,t.value_parsing_method)),i.value||(0,d.um)(v.O.CUSTOM_INFO,{custom_name:"eb_jelly_info",custom_enum:"dynamic_parameter_v2_value_empty",extJSON:{selector:t.value}})}t.contents&&t.contents.length>0&&(i.contents=[],tr(t.contents,i.contents,e)),t.parameter_list_v2&&Object.assign(i,to(t,e));var c={};return i.eb_email&&(null==(n=i.eb_email)?void 0:n.length)>0&&(c.eb_email=i.eb_email),i.eb_phone_number&&(null==(o=i.eb_phone_number)?void 0:o.length)>0&&(c.eb_phone_number=i.eb_phone_number),i}catch(t){return(0,d.vU)(v.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v2_error"}),i}},ta=function(t,e,r){try{var n=t.split(N),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]+N+o+n[1];return t}catch(e){return(0,d.vU)(v.O.CUSTOM_ERROR,e,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v2_transform_error"}),t}},tc=r(332),tu=function(t,e,r,n,o,i){var a,c,u,s;try{var l={},f={},h=null==(c=null==(a=(0,tc.Ie)())?void 0:a.instance)?void 0:c.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==(u=Object.keys(f))?void 0:u.length)>0&&(null==(s=null==h?void 0:h.identify)||s.call(h,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==h||h.track(e,l,{})}catch(t){(0,d.vU)(v.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"normalize_payload_error"})}};function ts(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 tl(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 tl(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 tl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function tf(t,e){return(tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var th=new K,tp=function(t){function e(e,r,n,o){var i;return(i=t.call(this)||this).on("jelly_message",o),i.SendEvent=new J(r,n),i.SendEvent.on("jelly_message",function(t){i.emit("jelly_message",t)}),i.dispatchImpl=i._newDispatcher,i.CLICK=e.CLICK||[],i.PAGEVIEW=e.PAGEVIEW||[],i.VISIBILITY=e.VISIBILITY||[],i.HISTORY_CHANGE=e.HISTORY_CHANGE||[],i.SDK_ID=n||"",i.click(),i.pageview(),i.visibility(),i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,tf(e,t);var r=e.prototype;return r.dispatcher=function(t,e,r,n){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var o={taskName:window.ttq._pf_tn||"event_builder_dispatcher",functionName:window.ttq._pf_tn&&"event_builder_dispatcher",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="event_builder_dispatcher")}}catch(t){}this.dispatchImpl(t,e,r,n);try{window.ttq&&window.ttq._ppf&&(o.end=performance.now(),window.ttq._ppf.push(o),"event_builder_dispatcher"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},r._newDispatcher=function(t,e,r,n){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var o={taskName:window.ttq._pf_tn||"event_builder_dispatcher",functionName:window.ttq._pf_tn&&"event_builder_dispatcher",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="event_builder_dispatcher")}}catch(t){}if(e){for(var i,a=ts(e);!(i=a()).done;){var c=i.value,u=function(t){var e=t.match(/\.track\s*\(\s*"([^"\)]+)"/);return e&&e[1]?e[1]:null}(c.code);if(!u)return;for(var l,f=ts(c.conditions);!(l=f()).done;){var h=l.value,_=th.dispatcher(t,h,r,n),m=V(_,h.operator,h.value,h.variable_type);if(("history_change"===t||"pageview"===t)&&(m=m||V(T(_),h.operator,h.value,h.variable_type)),m){var y=!1,g=R(h.variable_type);try{y=["ELEMENT",s.TOKENIZE_TEXT,s.IMG_SRC,s.ELEMENT_V2].includes(h.variable_type)&&(0,p.iK)(_)}catch(t){y=!1,(0,d.vU)(v.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_v2_error",custom_enum:"eb_is_button_check",extJSON:{element:_}})}var E={};if(h.dynamic_parameter)try{var b=null;[s.ELEMENT_V2,s.TOKENIZE_TEXT,s.IMG_SRC].includes(h.variable_type)&&(b=G(_,h.variable_type,h.value,!0)),E=ti(h.dynamic_parameter,b)}catch(t){(0,d.vU)(v.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_v2_error",custom_enum:"get_dynamic_arameter_v2_func_error",extJSON:{element:_}})}tu(String(this.SDK_ID),u,y,g,E,h.rule_id)}}}try{window.ttq&&window.ttq._ppf&&(o.end=performance.now(),window.ttq._ppf.push(o),"event_builder_dispatcher"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}}},r._oldDispatcher=function(t,e,r,n){if(e)for(var o,i=ts(e);!(o=i()).done;)for(var a,c=o.value,u=ts(c.conditions);!(a=u()).done;){var l=a.value,f=th.dispatcher(t,l,r,n),h=V(f,l.operator,l.value,l.variable_type);if(("history_change"===t||"pageview"===t)&&(h=h||V(T(f),l.operator,l.value,l.variable_type)),h){var _=!1,m=R(l.variable_type);try{_=["ELEMENT",s.TOKENIZE_TEXT,s.IMG_SRC,s.ELEMENT_V2].includes(l.variable_type)&&(0,p.iK)(f)}catch(t){_=!1,(0,d.vU)(v.O.CUSTOM_ERROR,t,{custom_name:"button_check_jelly_error",custom_enum:"auto_click",extJSON:{element:f}})}var y=L(c.code,_);if(y=function(t,e){try{var r=t.split(N),n=Object.entries(e).map(function(t){var e=t[0],r=t[1];return',"'+e+'":"'+r+'"'}).join("");return r[0]+N+n+r[1]}catch(e){return t}}(y=A(y),Object.assign({eb_version:m},l.rule_id&&{eb_rule_id:l.rule_id})),l.dynamic_parameter)try{var E=void 0,b=void 0;switch(l.variable_type){case s.PAGE_URL_V2:E=ti(l.dynamic_parameter,null),b=ta(y,E,l.dynamic_parameter);break;case s.ELEMENT_V2:case s.TOKENIZE_TEXT:case s.IMG_SRC:var w=G(f,l.variable_type,l.value,!0);E=ti(l.dynamic_parameter,w),b=ta(y,E,l.dynamic_parameter);break;default:E=Z(l.dynamic_parameter),b=tt(y,E,l.dynamic_parameter)}g(b)}catch(t){(0,d.vU)(v.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"dynamic_parameter_code_concat"}),g(y)}else g(y)}}},r.click=function(){var t=this;(0,_.Oo)(m.PG.CLICK,function(e){t.dispatcher("click",t.CLICK,e)},{throttle:!0,interval:250},{observerType:m.PG.CLICK,pluginName:"Jelly",target:window,environment:"window",listenEventTypes:[m.PG.CLICK],mode:"append"})},r.pageview=function(){this.dispatcher("pageview",this.PAGEVIEW),this.history_change(this.PAGEVIEW)},r.history_change=function(t){void 0===t&&(t=this.HISTORY_CHANGE);var e=this,r=history.state,n=location.hash,o=location.href;O(this.SDK_ID),window.addEventListener("pushState-"+this.SDK_ID,function(n){if(location.href!=o){var i={old_state:r};e.dispatcher("history_change",t,n,i),r=history.state,o=location.href}}),window.addEventListener("replaceState-"+this.SDK_ID,function(){if(location.href!=o){var n={old_state:r};e.dispatcher("history_change",t,n),r=history.state,o=location.href}}),window.addEventListener("popstate",function(r){if(location.href!=o){var i={old_hash:n};e.dispatcher("history_change",t,r,i),n=location.hash,o=location.href}})},r.visibility=function(){if(!(this.VISIBILITY.length<1)){var t=this.VISIBILITY;new MutationObserver(td(t,window)).observe(document,{childList:!0,characterData:!0,subtree:!0,attributes:!0});for(var e=document.getElementsByTagName("iframe"),r=0;r<e.length;r++)try{var n=e[r].contentWindow;null!=n&&new MutationObserver(td(t,n)).observe(n.document,{childList:!0,characterData:!0,subtree:!0,attributes:!0})}catch(t){}}},e}(Y()),td=function(t,e){void 0===e&&(e=window);var r={};return function(){t.forEach(function(t){var n=!0,o=[];t.conditions.forEach(function(t){if(q.visibility.indexOf(t.variable_type)>-1){var i=th.dispatcher("visibility",t,null,null,e.document),a="_"+t.value;i&&I(e,i)&&!r[a]&&(o.push(b(i,"",t)),r[a]=!0)}else V(th.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=ts(e);!(r=i()).done;)r.value.result&&n||(o=!1);o&&g(t.code)},function(){})})}};function tv(t,e){return(tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var t_=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 tp(o,r,e,function(t){n.emit("jelly_message",t)})}return n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,tv(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}(Y());window.TiktokJelly=t_}},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,c,u=r(783),s=r(825),l=r(332),f=r(790),h=r(319),p=function(){var t=(0,l.Ie)();return"object"==typeof t&&t._i?t._i:{}},d=function(t,e){var r=p()||{};Object.keys(r).forEach(function(n){var o=r[n];o._init||o.push([t].concat(e))})},v=function(t,e,r){var n=(p()||{})[t];if(n){if(n._init)return;n.push([e].concat(r))}},_=r(52);(o8=iP||(iP={})).PIXEL_CODE="pixelCode",o8.EVENT_SOURCE_ID="eventSourceId",o8.SHOP_ID="shopId";var m=r(76),y=r(408),g=r(255),E=r(74);(o4=iC||(iC={})).INIT_START="initStart",o4.INIT_END="initEnd",o4.PATCH_END="patchEnd",o4.CONTEXT_INIT_START="contextInitStart",o4.CONTEXT_INIT_END="contextInitEnd",o4.PAGE_URL_WILL_CHANGE="pageUrlWillChange",o4.PAGE_URL_DID_CHANGE="pageUrlDidChange",o4.PAGE_DID_LOAD="pageDidLoad",o4.PAGE_WILL_LEAVE="pageWillLeave",o4.PAGE_LCP="pageLcp",o4.AD_INFO_INIT_START="adInfoInitStart",o4.AD_INFO_INIT_END="adInfoInitEnd",o4.BEFORE_AD_INFO_INIT_START="beforeAdInfoInitStart",o4.PIXEL_SEND="pixelSend",o4.PIXEL_DID_MOUNT="pixelDidMount",(o9=ik||(ik={})).UNKNOWN="-1",o9.LOADING="0",o9.INTERACTIVE="1",o9.COMPLETE="2",(o7=iD||(iD={})).HISTORY_CHANGE="hc",o7.URL_CHANGE="uc";var b=["page","track","identify"],w=["holdConsent","revokeConsent","grantConsent"],O=["identify"],I=["instance","instances","loadPixel","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"];(it=iM||(iM={})).EMPTY_EVENT_TYPE_NAME="EMPTY_EVENT_TYPE_NAME",it.MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT="MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT",it.LONG_EVENT_TYPE_NAME="LONG_EVENT_TYPE_NAME",it.MISSING_VALUE_PARAMETER="MISSING_VALUE_PARAMETER",it.MISSING_CURRENCY_PARAMETER="MISSING_CURRENCY_PARAMETER",it.MISSING_CONTENT_ID="MISSING_CONTENT_ID",it.MISSING_EMAIL_AND_PHONE="MISSING_EMAIL_AND_PHONE",it.INVALID_EVENT_PARAMETER_VALUE="INVALID_EVENT_PARAMETER_VALUE",it.INVALID_CURRENCY_CODE="INVALID_CURRENCY_CODE",it.INVALID_CONTENT_ID="INVALID_CONTENT_ID",it.INVALID_CONTENT_TYPE="INVALID_CONTENT_TYPE",it.INVALID_EMAIL_FORMAT="INVALID_EMAIL_FORMAT",it.INVALID_PHONE_NUMBER_FORMAT="INVALID_PHONE_NUMBER_FORMAT",it.INVALID_EMAIL_INFORMATION="INVALID_EMAIL_INFORMATION",it.INVALID_PHONE_NUMBER_INFORMATION="INVALID_PHONE_NUMBER_INFORMATION",it.DUPLICATE_PIXEL_CODE="DUPLICATE_PIXEL_CODE",it.MISSING_PIXEL_CODE="MISSING_PIXEL_CODE",it.INVALID_PIXEL_CODE="INVALID_PIXEL_CODE";var T="Pageview",S=[],R="EngagedSession",N="RevokeConsent",L=function(t,e,r){t.isBound(e)?t.rebind(e).toConstantValue(r):t.bind(e).toConstantValue(r)},A=function(){var t=(0,l.Ie)();return t&&t._i||{}},x=function(t,e,r){void 0===r&&(r=y.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){}L(t,g.D.ENV,e),L(t,E.M.SignalType,r);var o=t.get(g.D.TTQ);try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}return o},P=function(t,e){var r,n=e.id,o=e.type,i=void 0===o?iP.PIXEL_CODE:o,a=e.info,c=e.options,u=e.plugins,s=void 0===u?{}:u,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 h=t.get(g.D.TTQ),p=t.get(g.D.TTQ_REPORTERS);if(!p.some(function(t){return t.getReporterId()===n})){L(t,E.M.ID,n),L(t,E.M.Type,i),L(t,E.M.Info,a||((r={})[i]=n,r)),L(t,E.M.Options,void 0===c?{}:c),L(t,E.M.Plugins,s),L(t,E.M.Rules,void 0===l?[]:l),h.enableFirstPartyCookie((null==a?void 0:a.firstPartyCookieEnabled)||!1);var d=t.get(g.D.REPORTER);if(s){var v=s.AdvancedMatching,_=s.AutoAdvancedMatching,y={};v&&Object.assign(y,v),_&&Object.assign(y,_),d.setAdvancedMatchingAvailableProperties(y)}d.on(m.IM.BEFORE_REPORT,function(t,e,r,n,o){h.dispatch(iC.PIXEL_SEND,t,e,r,n,o)},{}),p.push(d),t.rebind(g.D.TTQ_REPORTERS).toConstantValue(p),h.dispatch(iC.PIXEL_DID_MOUNT,d);try{window.ttq&&window.ttq._ppf&&(f.end=performance.now(),window.ttq._ppf.push(f))}catch(t){}return d}},C=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"].forEach(function(r){t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return e[r].apply(e,n)}}),t.context=e.context,t.reporters=e.reporters;try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}return t},k=function(t,e){var r=t||{},n=r._partner,o=r._ttp,i=r._self_host_config,a=r._usd_exchange_rate,c=r._legacy;return Object.assign(e,{partner:n,ttp:o,cc:r._cc,self_host_config:i,usd_exchange_rate:a,legacy:c,variation_id:r._variation_id,vids:r._vids,server_unqiue_id:r._server_unique_id,currency_list:r._currency_list,plugins:r._plugins,aam:r._aam,auto_config:r._auto_config,cde:r._cde,cookieBasedSessionConfig:r._csid_config,localServiceConfig:r._ttls_config}),e},D=function(t,e){var r=t.get(g.D.TTQ_GLOBAL_OPTIONS)||{};k(e,r),t.isBound(g.D.TTQ_GLOBAL_OPTIONS)?t.rebind(g.D.TTQ_GLOBAL_OPTIONS).toConstantValue(r):t.bind(g.D.TTQ_GLOBAL_OPTIONS).toConstantValue(r)},M=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:"freezeAPI",start:performance.now()}}catch(t){}var r=(0,l.E9)(),n=(0,l.Gp)(),o=(0,l.Ie)(),i=(0,u.wE)().pixelCode,a=void 0===i?"":i;I.forEach(function(e){Object.defineProperty(o,e,{get:function(){return function(){try{var r=Array.prototype.slice.call(arguments);return w.indexOf(e)>-1&&setTimeout(function(){(0,u.um)(s.O.CUSTOM_INFO,{pixelCode:a,custom_name:e})}),t[e].apply(t,r)}catch(t){return(0,u.vU)(s.O.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),b.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,u.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){}},j=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){}(0,_.Kn)(m.Cr.HANDLE_CACHE),U(e),Object.entries(A()).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,u.ZK)(iM.DUPLICATE_PIXEL_CODE):(r||P)(t,{id:o,type:iP.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 c=a[0],f=a.slice(1),h=e.instance(o);if(h)switch(c){case"identify":h.identify(f[0],f[1]);break;case"page":e.page(f[0]);break;case"track":h.track(f[0],f[1],f[2]||{});break;default:h[c]?h[c](f[0],f[1],f[2]||{}):(0,u.vU)(s.O.CUSTOM_ERROR,Error("action not find: "+c))}}}}),F(e);try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}},U=function(t){try{var e=(0,l.Ie)();[].concat(w,O).forEach(function(r){e.find(function(n,o){var i=n[0],a=n.slice(1);if(i===r)return"revokeConsent"===r&&d("track",[N]),t[r].apply(t,a),e.splice(o,1),!0})})}catch(t){(0,u.vU)(s.O.API_ERROR,t,{extJSON:{api:"handleP0APICache"}})}},F=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 G(t,e,r){return(G=!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&&V(o,r.prototype),o}:Reflect.construct.bind()).apply(null,arguments)}function V(t,e){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var H="_ttq_inject",q=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[H]||[]).map(function(t){try{return e.get(t.identifier)}catch(e){if(t.optional)return;throw e}});return G(t,r)},t}();function B(){return function(t){}}function K(t){return function(e,r,n){e[H]=e[H]||[],e[H][n]=Object.assign({},e[H][n],{identifier:t})}}function W(){return function(t,e,r){t[H]=t[H]||[],t[H][r]=Object.assign({},t[H][r],{optional:!0})}}(ie=ij||(ij={})).BIND="bind",ie.REBIND="rebind";var Y=r(229),X={cachedReferrer:"",cachedTitle:"",cachedHref:"",timer:null};function J(t,e){try{var r=new URL(t),n=r.searchParams.getAll(e);if(0!==n.length)return n[n.length-1]||"";return new URLSearchParams(r.hash).get(e)||""}catch(t){return""}}var Z=function(t,e,r){try{var n=J(e,t);if(n)return n;return J(r||"",t)}catch(t){}return""};function z(){X.cachedHref=window.location.href,X.cachedReferrer=document.referrer,X.cachedTitle=document.title,X.timer&&clearTimeout(X.timer),X.timer=setTimeout(function(){X.cachedHref="",X.cachedReferrer="",X.cachedTitle="",X.timer=null},3e3)}var Q=function(){if(!(0,f.zd)())return(window.location.href!==X.cachedHref||null===X.timer)&&z(),{url:X.cachedHref,referrer:X.cachedReferrer,title:X.cachedTitle};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)||""}}if((null===X.timer||window.location.href!==X.cachedHref)&&z(),/doubleclick\.net/.test(window.location.hostname)){var a=window.location.pathname,c={};return a.split(";").forEach(function(t){var e=t.split("="),r=e[0],n=e[1];r&&n&&(c[r]=decodeURIComponent(n))}),{url:c["~oref"]||X.cachedHref,referrer:X.cachedReferrer,title:X.cachedTitle}}return{url:X.cachedHref,referrer:X.cachedReferrer,title:X.cachedTitle}},$=function(t){var e=Q().url;try{return new URL(t||e)}catch(t){}return null},tt=function(t){var e;return(null==t||null==(e=t.localServiceConfig)?void 0:e.key)||Y.RC},te=function(t){try{var e=window.sessionStorage.getItem(t);if(!e)return null;return JSON.parse(e)}catch(t){return null}},tr=function(t){try{window.sessionStorage.removeItem(t)}catch(t){}},tn=function(t,e){try{var r=JSON.stringify(e);window.sessionStorage.setItem(t,r)}catch(t){}},to="https://analytics.tiktok.com/api/v2",ti=to+"/pixel",ta=to+"/performance",tc=to+"/interaction",tu=to+"/performance_interaction",ts=to+"/pixel/perf",tl=to+"/pixel/inter",tf=to+"/pixel/act",th=to+"/monitor",tp="https://analytics-ipv6.tiktokw.us/ipv6/enrich_ipv6",td="ttclid",tv="_toutiao_params",t_=function(t,e){try{var r=Z(td,t,e)||void 0,n=Z("ext_params",t,e)||void 0,o=Z(tv,t,e)||void 0,i=parseInt(Z("ttuts",t,e),10)||void 0,a=o?JSON.parse(o):{},c=a.log_extra,u=void 0===c?void 0:c,s=a.idc,l=void 0===s?void 0:s,f=a.cid,h=void 0===f?void 0:f;return{callback:r,ext_params:n,log_extra:u,creative_id:h,idc:l,ttuts:i,ad_info_from:(u||l||h)&&"url"}}catch(t){return{}}},tm=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}},ty=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,c=t.ad_info_status,u=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),c&&(r.ad_info_status=c),s&&(r.ext_params=s),l&&(r.ATTStatus=l),u){var f=JSON.parse(u),h=f.ad_user_agent,p=f.ad_id,d=f.rit,v=f.ocbs,_=f.vid,m=f.idc,y=f.country_id;p&&(r.ad_id=p),d&&(r.rit=d),h&&(r.ad_user_agent=h),v&&(r.ocbs=v),_&&(r.vid=_),m&&(r.idc=m),y&&(r.country_id=y)}return r}catch(t){return e&&e(t),r}},tg=r(188),tE=r(688),tb=function(t){void 0===t&&(t={});var e=Object.assign({},{path:"/"},t);"number"==typeof e.expires&&(e.expires=new Date((0,tE.u3)()+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},tw=function(t,e,r,n){void 0===r&&(r="/"),void 0===n&&(n=(0,tg.pW)()),tL(t,e,{path:r,expires:n})},tO=function(t){if(t&&t.cde){var e=t.cde;return Object.assign({},Y.Yp,{expires:e})}return Y.Yp},tI=function(){var t=tN(Y.qC);if(t&&tx(t)){var e=tP(),r=window.location.hostname.split("."),n="."+r.slice(r.length-e-1).join(".");return null!=n?n:void 0}},tT=0,tS=0,tR=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]||""},tN=function(t){if(0===document.cookie.length)return"";var e=tR(t);return e?unescape(e):""},tL=function(t,e,r){try{if(r){var n=window.location.hostname.split(".");if(tS=n.length,(tT=tP())&&tT<tS){r.domain="."+n.slice(tS-tT-1).join("."),tC(t,e,r);return}for(var o="",i=0;i<tS&&(r.domain=o="."+n[tS-i-1]+o,tT=i,!tC(t,e,r));i++);}else document.cookie=t+"="+e+tb(r)}catch(t){(0,u.vU)(s.O.API_ERROR,t,{extJSON:{position:"setCookieToHighestDomain"}})}},tA=function(t){var e=t.index,r=t.main;sessionStorage.setItem(Y.AU,JSON.stringify({index:e,main:r}))},tx=function(t){var e=t.split(".");return e.length>=3&&e.includes("tt")&&!isNaN(Number(e[2]))&&Number(e[2])>0},tP=function(){if(tT)return tT;var t=tN(Y.qC);return t&&tx(t)?Number(t.split(".")[2]):0},tC=function(t,e,r){var n;return t!==Y.qC||tx(e)||(e=(n=e)?n.split(".")[0]+".tt."+((0,f.z6)()?0:tP()):""),document.cookie=t+"="+e+tb(r),e===tN(t)},tk=function(t,e,r){void 0===t&&(t=""),void 0===e&&(e="");try{var n=Z("tt_test_id",t,r);return n&&n!==e&&tw("tt_test_id",n,void 0,"session"),n||e}catch(t){return""}},tD=r(729);function tM(){return(tM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}(ir=iU||(iU={})).INTER_ID_TRIGGER="inter_id",ir.ORIGIN_TRIGGER="origin_trigger";var tj=function(t,e){var r;return!!(null!=e&&null!=(r=e.cookieBasedSessionConfig)&&r.enable&&t.firstPartyCookieEnabled)},tU=function(){var t=new Date().getTime();return{sessionId:t.toString()+"::"+(0,h.$j)(20),sessionCount:1,lastEventTS:t,isSessionStart:!0,hasReportedES:0}},tF=function(t){var e={};return t.split("; ").forEach(function(t){var r=t.split("="),n=r[0],o=r[1];if(n.startsWith(Y.ku)){var i=n.replace(Y.ku,"").replace("_",""),a=o.split("::"),c=(a[0]+"::"+a[1]).split("."),u=c[0],s=c[1],l=c[2],f=c[3],h="";2!==a.length&&""===i&&(h=a.splice(2).join("::")),u&&(0,tg.eZ)(s)&&(0,tg.eZ)(l)&&(e[i]=tM({sessionId:u,sessionCount:Number(s),lastEventTS:Number(l),hasReportedES:Number(+("1"===f))},h&&{inter_id:h}))}}),e},tG=function(t,e){void 0===e&&(e=iU.ORIGIN_TRIGGER);var r=t.sessionCount,n=t.lastEventTS,o=(0,tE.u3)();return o-n>18e5?{sessionId:o.toString()+"::"+(0,h.$j)(20),sessionCount:r+1,lastEventTS:o,isSessionStart:!0}:tM({},t,{lastEventTS:e===iU.INTER_ID_TRIGGER?n:o,isSessionStart:!1})},tV=function(t){var e=t.sessionId,r=t.sessionCount,n=t.lastEventTS,o=t.hasReportedES,i=t.inter_id;return e+"."+r+"."+n+"."+(null!=o?o:0)+(i?"::"+i:"")},tH=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}:{})},tq=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 tU()},e.setCookieBasedSession=function(t){},t}();new tq("empty");var tB=function(){function t(t,e,r,n){this.initialize=!1,this.plugins=[],this.observers=[],this.reporters=[],this.context=t,this.reportService=e,r&&(this.emitter=r),n&&(this.sensitiveRedactor=n)}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(iC.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(iC.CONTEXT_INIT_END)},e.setPageIndex=function(t){},e.setPageInfo=function(t,e){var r=this.context.getPageInfo().url;if(r!==t){this.dispatch(iC.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(iC.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,u.vU)(s.O.PIXEL_EMPTY,Error(""),{pixelCode:t}),new tq(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,h.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()===y.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<e;n++)r[n-1]=arguments[n];this.plugins.concat(this.observers).forEach(function(e){if("function"==typeof e[t])try{e[t].apply(e,r)}catch(n){(0,u.vU)(s.O.PLUGIN_ERROR,n,{extJSON:{plugin_name:e.name,cycle_name:t,data:r}})}})},e.getAllReportResultSet=function(){return this.instances().reduce(function(t,e){return t.concat(e.getReportResultSet())},[])},e.resetCookieExpires=function(){},e.enableCookie=function(){},e.disableCookie=function(){},e.enableFirstPartyCookie=function(t){},e.holdConsent=function(){},e.revokeConsent=function(){},e.grantConsent=function(){},e.initLocalServiceInfo=function(){},t}();function tK(){tK=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function tW(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}tB=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B()],tB);var tY=(io=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",tY.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]])}),ii=function(){var t=this,e=arguments;return new Promise(function(r,n){var o=io.apply(t,e);function i(t){tW(o,r,n,i,a,"next",t)}function a(t){tW(o,r,n,i,a,"throw",t)}i(void 0)})},function(t,e){return ii.apply(this,arguments)});(ia=iF||(iF={})).TRACK="track",ia.PERFORMANCE="performance",ia.INTERACTION="interaction",ia.PCM="PCM",ia.PERFORMANCE_INTERACTION="performance_interaction",ia.SELFHOST="selfhost",ia.AUTO_CONFIG="auto_config",ia.PAGE="Pf",ia.PAGE_PERFORMANCE="page_performance",ia.PAGE_INTERACTION="page_interaction";var tX=["EnrichAM"];function tJ(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}(ic=iG||(iG={})).LDU="limited_data_use",ic.EVENTID="eventID",ic.EVENT_ID="event_id",(iu=iV||(iV={}))[iu.defaultReport=0]="defaultReport",iu[iu.httpReport=1]="httpReport",iu[iu.htmlHttpReport=2]="htmlHttpReport",(is=iH||(iH={}))[is.P0=0]="P0",is[is.P1=1]="P1",is[is.P2=2]="P2";var tZ=["ttuts","ad_info_from"],tz=["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"],tQ=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}),o.sort(function(t,e){return(e.options.priority||0)-(t.options.priority||0)}),this.subscriberMap.set(t,o)}catch(e){(0,u.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<r;o++)n[o-1]=arguments[o];(this.subscriberMap.get(t)||[]).forEach(function(r){try{r.wrappedCallback.apply(r,n)}catch(r){(0,u.vU)(s.O.CUSTOM_ERROR,r,{custom_name:"EventEmitter",custom_enum:t,extJSON:{message:""+JSON.stringify(e.subscriberMap.get(t))}})}})},e.off=function(t,e){var r=this.subscriberMap.get(t)||[];this.subscriberMap.set(t,r.filter(function(t){return t.originalCallback!==e}))},e.clear=function(){this.subscriberMap.clear()},e.wrapCallback=function(t,e){return e.async&&(t=(0,h.b2)(t)),e.throttle&&(t=(0,tg.P2)(t,e.interval||500,{trailing:e.trailing||!1})),e.debounce&&(t=(0,h.Ds)(t,e.interval||500)),e.once&&(t=(0,h.IH)(t)),t},e.setObserverConfig=function(t){this.emit(m._V.UPDATE_CONFIG,t)},t}();tQ=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B()],tQ);var t$=function(t,e){if("selfhost"===t&&e&&(0,l.My)(e))return"https://"+(0,l.My)(e)+"/api/v2/pixel";var r={track:ti,performance:ta,interaction:tc,performance_interaction:tu,auto_config:tf,page_performance:ts,page_interaction:tl}[t];return r||null};function t0(){return(t0=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}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,r){var n;return(n=t.call(this)||this).reporterInfo={},n.options={},n.plugins={},n.rules=[],n.reportEventHistory={},n.reportResultSet=[],n.selfHostConfig={},n.currentHref="",n.advancedMatchingAvailableProperties={external_id:!0,partner_id:!0},n.session=tU(),n.reportService=r,n.context=e,n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,t1(e,t);var r=e.prototype;return r.getParameterInfo=function(){var t=this;return this.getInstance().then(function(){var e=t.reporterInfo,r=e.name,n=e.status,o=e.setupMode,i=e.advertiserID,a=e.is_onsite;return{pixelCode:t.getReporterId(),name:void 0===r?"":r,status:void 0===n?1:n,setupMode:void 0===o?0:o,advertiserID:(void 0===i?"":i).toString(),partner:t.getReporterPartner()||"",is_onsite:void 0!==a&&a,advancedMatchingAvailableProperties:t.advancedMatchingAvailableProperties,rules:t.rules}})},r.getInstance=function(){return this.pixelPromise=Promise.resolve(this)},r.getReporterId=function(){return""},r.getReporterUniqueLoadId=function(){return""+this.getReporterId()},r.getReporterPartner=function(){},r.getReporterInfo=function(){return{pixel:{code:this.getReporterId()}}},r.setAdvancedMatchingAvailableProperties=function(t){this.advancedMatchingAvailableProperties=Object.assign({},this.advancedMatchingAvailableProperties,t)},r.isOnsite=function(){return!1},r.isPartnerReporter=function(){return!1},r.getReportResultSet=function(){return this.reportResultSet},r.getUserInfo=function(t){return{}},r.getReporterMatchedUserFormatInfo=function(){return{}},r.getReporterMatchedUserFormatInfoV2=function(){return{}},r.getReportEventHistoryKey=function(t){return"tiktok"},r.getCookieBasedSession=function(){return this.session},r.setCookieBasedSession=function(t){return t&&(this.session=t),this.session},r.convertCookieBasedSession=function(t,e,r){return{}},r.clearHistory=function(){this.reportEventHistory={}},r.pushReport=function(t,e){void 0===e&&(e="tiktok"),this.reportEventHistory[e]||(this.reportEventHistory[e]=[]),this.reportEventHistory[e].push(t)},r.hasReportEventHistory=function(t,e){var r=this.getReportEventHistoryKey(e);return this.reportEventHistory[r]?!!(S.includes(t)&&this.reportEventHistory[r].includes(t)):(this.reportEventHistory[r]=[],!1)},r.page=function(t){void 0===t&&(t={})},r.identify=function(t,e){},r.track=function(t,e,r,n,o){var i=this,a=n||iF.TRACK,c=o||iV.defaultReport;return!this.reportService||this.hasReportEventHistory(t,c)?Promise.resolve(null):(this.pushReport(t,this.getReportEventHistoryKey(c)),this.reportService.reportPreTasks.then(function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var n={taskName:window.ttq._pf_tn||"track_after_report_preposition",functionName:window.ttq._pf_tn&&"track_after_report_preposition",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="track_after_report_preposition")}}catch(t){}var o=i.getReporterId(),u=i.trackSync(o,t,e,r,a,c);i.trackPostTask({reporterId:o,eventType:t,properties:e,eventConfig:r,type:a,reportType:c,reportData:u});try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n),"track_after_report_preposition"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}return Promise.resolve({reporterId:o,eventType:t,properties:e,eventConfig:r,type:a,reportType:c,reportData:u})}))},r.getEventType=function(t){return t},r.trackPostTask=function(t){},r.trackSync=function(t,e,r,n,o,i,a){void 0===o&&(o=iF.TRACK),void 0===i&&(i=iV.defaultReport);var c=o!==iF.SELFHOST?this.assemblyData(t,e,r,n,o):this.assemblySelfHostData(t,e,r,n,o),u=a||t$(o,t);if(null!==u&&this.reportService)return this.emit(m.IM.BEFORE_REPORT,t,e,c,n,o),this.reportResultSet.push(this.reportService.report(u,c,i,iH.P0)),c},r.handlePropertiesToOptions=function(t,e){var r={};return e.forEach(function(e){r[e]=t[e],delete t[e]}),r},r.assemblyData=function(t,e,r,n,o){void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=iF.TRACK);var i=this.context.getAllData(),a=i.adInfo,c=i.userInfo,u=i.appInfo,s=i.pageSign,l=i.libraryInfo,p=i.pageInfo,d=i.signalType,v=s.sessionId,_=s.variationId,m=Object.assign({},r),y=m&&m.is_standard_mode;m&&m.pixelMethod&&delete m.pixelMethod;var g=Object.assign({},l,{version:this.context.isLegacyPixel(t)?"legacy-"+l.version:l.version}),E=Object.assign({},(0,h.mQ)(a,tZ),{device_id:u.device_id,uid:u.user_id}),b=this.handlePropertiesToOptions(m,[iG.LDU,iG.EVENTID,iG.EVENT_ID]),w=this.options.limited_data_use,O=null!==b.limited_data_use&&void 0!==b.limited_data_use?b.limited_data_use:w;null==O?delete b.limited_data_use:b.limited_data_use=!!O;var I=n&&(n.event_id||n.eventID)||"";b.event_id=I||b.event_id||b.eventID||"",delete b.eventID;var T=this.getReporterInfo();T.pixel&&(T.pixel.runtime=(0,f.Tm)(),y&&(T.pixel.mode="standard"));var S=this.getUserInfo(tD.Ts.Manual)||{},R=this.getUserInfo(tD.Ts.ManualV2)||{},N=this.getReporterMatchedUserFormatInfoV2()||{},L=this.getUserInfo(tD.Ts.Auto)||{};L.auto_trigger_type&&(Object.assign(m,{auto_trigger_type:L.auto_trigger_type}),delete L.auto_trigger_type);var A=this.getUserInfo(tD.Ts.EBManual)||{};(0,f.Dt)()&&Object.assign(m,{android_version:u.android_version,device_model:u.device_model});var x={};c.anonymous_id&&(x.anonymous_id=c.anonymous_id);var P=this.getEventType(e),C=this.convertCookieBasedSession(o,n.pixelSession,n.pageSession);return Object.assign({event:P,event_id:I,message_id:(0,tg.gj)((0,tg.fV)(Y.WO),t),is_onsite:!!d,timestamp:new Date().toJSON(),context:t0({ad:E,device:{platform:u.platform},user:Object.assign({},x,S,R,L,A)},T,{page:Object.assign({},p),library:Object.assign({},g),session_id:(0,tg.gj)(v,t),pageview_id:(0,tg.gj)(this.context.getPageViewId(),this.getReporterUniqueLoadId(),Y.n2),variation_id:_||""},C),_inspection:N,properties:m},b)},r.assemblySelfHostData=function(t,e,r,n,o){return void 0===r&&(r={}),void 0===n&&(n={}),this.assemblyData(t,e,r,n,o)},e}(tQ);t2=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B()],t2);var t3={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"},t6=["event_experiment","dynamic_parameter_config","eb_version","eb_rule_id","tf","trigger_source","inter_id"],t5=function(t){var e=t.getUserInfo().anonymous_id,r=tN(Y.qC);e!==r&&t.setUserInfoWithoutIdentifyPlugin({anonymous_id:r})},t8=function(t,e,r){try{var n=window.location.hostname.split(".");if(void 0!==iq&&iq<n.length){document.cookie=t+"="+e+tb(Object.assign({},r,{domain:"."+n.slice(iq).join(".")}));return}for(var o=n.length-2;o>=0;o--){var i="."+n.slice(o).join(".");if(document.cookie=t+"="+e+tb(Object.assign({},r,{domain:i})),tN(t)===e){iq=o;break}}}catch(t){}},t4=function(t,e,r,n){void 0===n&&(n=iU.ORIGIN_TRIGGER);var o=tU();return e&&(o=tG(e,n)),t8(t?Y.ku+"_"+t:Y.ku,tV(o),tO(r)),o},t9=new Set([",","?",";","!","、",",","。","?",";","!",":",":"," "]);(il=iK||(iK={})).ID_SSN="ID_SSN",il.PASSPORT="PASSPORT",il.DRIVING_LICENSE="DRIVING_LICENSE",il.PHONE="PHONE",il.EMAIL="EMAIL",il.CREDIT_CARD="CREDIT_CARD",il.RACE_ETHNIC="RACE_ETHNIC",il.RELIGION="RELIGION",il.SEXUAL_ORIENTATION="SEXUAL_ORIENTATION",il.POLITICAL_AFFILIATION="POLITICAL_AFFILIATION",il.UNION_MEMBERSHIP="UNION_MEMBERSHIP",il.CRIMINAL_RECORD="CRIMINAL_RECORD",il.DEFAULT="***";var t7=((iB={})[iK.RACE_ETHNIC]=["asian","black","white","caucasian","hispanic","latino","arab","middle eastern","african american","native american","indigenous","pacific islander","jewish","afro","mulatto","mestizo","racial","ethnicity","ethnic group"],iB[iK.RELIGION]=["christian","catholic","protestant","baptist","orthodox","muslim","islam","islamic","sunni","shia","jewish","judaism","synagogue","hebrew","hindu","hinduism","vedic","bhagavad","buddhist","buddhism","taoism","shinto","atheist","agnostic","secular","religious belief"],iB[iK.SEXUAL_ORIENTATION]=["heterosexual","homosexual","bisexual","pansexual","gay","lesbian","lgbt","lgbtq","queer","asexual","sexual orientation","gender identity","trans","transgender","nonbinary","non-binary"],iB[iK.POLITICAL_AFFILIATION]=["democrat","democratic","republican","libertarian","conservative","liberal","progressive","nationalist","communist","socialism","socialist","marxist","left-wing","right-wing","maga","antifa","alt-right","green party","political party","political ideology"],iB[iK.UNION_MEMBERSHIP]=["labor union","trade union","union member","collective bargaining","strike","unionized","organized labor","workers' union","teamsters","AFL-CIO","IBEW","union dues","union card"],iB[iK.CRIMINAL_RECORD]=["arrest","arrested","convicted","conviction","felony","felon","misdemeanor","parole","probation","criminal record","jail","prison","inmate","suspect","indictment","charged with","mugshot"],iB),et=Object.values(iK).reduce(function(t,e){return t[e]="<#"+e+"#>",t},{}),ee={prefix:"(?<!<#)",suffix:"(?!(?:[^<]*>|[^>]*<))"},er=eu(["(?:\\+?\\d{1,3}[\\s-]?|\\(\\+?\\d{1,3}\\)[\\s-]?)?(?:\\d{2,4}[\\s-]?|\\(\\d{2,4}\\)[\\s-]?)?(?:\\d[\\s-]?){5,}"],ee,"g"),en=eu(["([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\\.[a-zA-Z0-9._-]+)"],ee,"gi"),eo=eu(["(?:(?: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])"],ee,"g"),ei=eu(["\\d{3}-\\d{2}-\\d{4}|\\d{9}","\\d{17}(\\d|X|x)$","[A-CEGHJ-PR-TW-Z]{2}\\d{6}[A-D]?","(?:[A-Z]\\d{10}|\\d{10})","[A-Z0-9]{12}"],ee,"g"),ea=eu(["[EDS]\\d{8}","[A-HJ-NP-Z][A-HJ-NP-Z0-9]{8}","[A-Z]{2}\\d{6}"],ee,"g"),ec=eu(["\\d{17}[\\dXx]","[A-Z0-9]{16}","[A-Z0-9]{10,12}","[A-Z0-9]{12}"],ee,"g");function eu(t,e,r){return void 0===e&&(e={prefix:"",suffix:""}),void 0===r&&(r=""),t.map(function(t){try{var n,o,i,a=new RegExp(t,r),c=a.source;if(c.startsWith("^")&&c.endsWith("$"))return a;return n=a,o=e.prefix,i=e.suffix,void 0===o&&(o=""),void 0===i&&(i=""),RegExp(""+o+n.source+i,n.flags)}catch(t){return/[]/}})}function es(t,e){return(es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var el=function(t){function e(e){(n=t.call(this,e.context,e.reportService)||this).ttp="",n.loaded=!1;var r,n,o=e.id,i=e.type,a=e.isOnsitePage,c=e.reporterInfo,u=e.ttqOptions,s=e.plugins,l=e.rules,f=e.options;return n.id=o,n.pixelCode=o,n.type=i,n.isOnsitePage=a,n.options=(void 0===f?{}:f)||{},n.plugins=(void 0===s?{}:s)||{},n.rules=(void 0===l?[]:l)||[],n.reporterInfo=Object.assign(c||{},((r={})[i]=o,r)),n.ttp=u.ttp||"",n.currency_list=u.currency_list||null,n.ttqPartner=u.partner||"",n.selfHostConfig=u.self_host_config||{},n.ttqOptions=u,n.pixelPromise=n.getInstance(),n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,es(e,t);var r=e.prototype;return r.identify=function(t,e){var r=(0,h.oh)(t,e);this.context.setUserInfo(r,Object.assign({reporterId:this.id},(null==e?void 0:e.trigger_source)&&{trigger_source:e.trigger_source}))},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,h.cm)(e,Object.assign({},this.advancedMatchingAvailableProperties));switch(t){case tD.Ts.Manual:return(0,h.cm)(this.isPartnerReporter()?r:e,{external_id:!0,email:!0,phone_number:!0,ttoclid:!0});case tD.Ts.ManualV2:return(0,h.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 tD.Ts.EBManual:return(0,h.cm)(e,{eb_email:this.advancedMatchingAvailableProperties.auto_email,eb_phone_number:this.advancedMatchingAvailableProperties.auto_phone_number,auto_collected_piis:this.advancedMatchingAvailableProperties.auto_email||this.advancedMatchingAvailableProperties.auto_phone_number});case tD.Ts.Auto:var n=(0,h.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,h.QO)(t,this.isPartnerReporter()?this.advancedMatchingAvailableProperties:{external_id:!0,email:!0,phone_number:!0}),r=(0,h.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,h.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({},tD.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,h.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,hashed_eb_email:!0,hashed_eb_phone:!0}),c={};return(o||i)&&Object.keys(t).forEach(function(e){e.startsWith("aam_")&&(c[e]=t[e])}),Object.assign({},tD.N4,a,c)},r.setCookieBasedSession=function(t){return t&&(this.session=t),this.session},r.convertCookieBasedSession=function(t,e,r){return tj(this.reporterInfo,this.ttqOptions)&&t!==iF.AUTO_CONFIG&&e&&r?tH(e,r):{}},r.assemblyData=function(e,r,n,o,i){void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=iF.TRACK);var a,c,p,d=t.prototype.assemblyData.call(this,e,r,n,o,i);d.is_onsite=this.isOnsitePage.value;var v=(0,l.kW)(e)||this.ttqPartner;v&&(d.partner=v),d.signal_diagnostic_labels=this.getSignalDiagnosticLabels();var _=(0,l.Ie)().getPlugin("SensitiveRedactor");if(_){_.registerEncryptRedactor({keywords:[],regexArray:en},h.JQ);var m=_.processSync(d.signal_diagnostic_labels,"encrypt");m.success?d.signal_diagnostic_labels=m.redactedOutput:(0,u.vU)(s.O.CUSTOM_ERROR,m.error,{custom_name:"sensitive_redactor_error",extJSON:{message:"signal_diagnostic_labels"}})}var y=(0,l.ij)();y&&(d.context.userAgent=y);var E=function(){try{var t=document.readyState;if("loading"==t)return ik.LOADING;if("interactive"==t)return ik.INTERACTIVE;if("complete"==t)return ik.COMPLETE;return ik.UNKNOWN}catch(t){return ik.UNKNOWN}}();if(E&&(d.context.page.load_progress=E),!(0,l.n2)()&&Object.keys(this.context.userInfoFieldAllowlist).length){var b=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]});d.context.user=(0,h.mQ)(d.context.user,b)}if(null==(p=d.context.user.auto_collected_piis)?void 0:p.length){var w=!!d.context.user.eb_email,O=!!d.context.user.eb_phone_number,I=d.context.user.auto_collected_piis.filter(function(t){var e=t.type;return e===tD.Ko.Email?w:e===tD.Ko.Phone&&O});I.length>0?d.context.user.auto_collected_piis=I:delete d.context.user.auto_collected_piis}a=d.properties,void 0===(c=d._inspection)&&(c={}),t6.forEach(function(t){a.hasOwnProperty(t)&&(c[t]=a[t],delete a[t])}),d._inspection=c,i!==iF.PAGE&&(d._inspection.ppf=(0,l.c6)()),d._inspection.vids=this.context.getVids();var T=(0,l.er)();if(T&&tj(this.reporterInfo,this.ttqOptions)&&function(){try{var t=(0,l.Ie)(),e=null==t||null==(r=t._container)?void 0:r.get(g.D.TTQ_REPORTERS);if(!e)return!1;for(var r,n,o=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 tJ(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 tJ(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);!(n=o()).done;){var i=n.value;if(i.plugins&&!0===i.plugins.AutoConfigV2)return!0}return!1}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"jelly-core_config",custom_enum:"hasPixelEnableAutoConfigV2"}),!1}}()&&(d._inspection.inter_id=T),(0,h.Zq)(r)&&this.plugins.AutoConfigV2){var S=this.context.getTransactionId();S&&(d._inspection.dynamic_parameter_config={value:S})}return d.context.ad.sdk_env=(0,f.RA)(),d.context.ad.jsb_status=(0,f.Fn)(),i!==iF.INTERACTION&&i!==iF.PERFORMANCE&&i!==iF.PERFORMANCE_INTERACTION||!1!==this.context.getEnableAdTracking()||this.isOnsitePage.value||(d.context.user={},d.context.ad=this.context.getOffsiteAdInfo(),d.context.ad=(0,h.mQ)(d.context.ad,tZ)),d.properties.reporterId&&delete d.properties.reporterId,d},r.page=function(t){void 0===t&&(t={});var e=Q().url;e!==this.currentHref&&(this.currentHref=e,this.track(T,t,{}))},r.track=function(e,r,n,o,i){var a=this;void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=iF.TRACK),void 0===i&&(i=iV.defaultReport);var c=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var c={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 u=a.getReporterId();if(tX.includes(e))return t.prototype.track.call(a,e,r,n,o,i);var s=Object.assign({},n);a.selfHostConfig[u]&&!n.eventID&&(s=Object.assign({},s,{eventID:(0,tg.gj)((0,tg.fV)(Y.qf),u)}));try{window.ttq&&window.ttq._ppf&&(c.end=performance.now(),window.ttq._ppf.push(c),"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?c():this.getInstance().then(c)},r.getEventType=function(t){return t3[t]||t},r.trackSync=function(e,r,n,o,i,a,c){if(void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=iF.TRACK),void 0===a&&(a=iV.defaultReport),"track"===i&&(0,u.um)(s.O.PIXEL_SEND,{pixelCode:e,extJSON:{event:r}}),i!==iF.TRACK)return void t.prototype.trackSync.call(this,e,r,n,o,i,a,c);n&&"string"==typeof n.currency&&(n.currency=n.currency.toUpperCase());var l,f=this.context.getTestID();if(f){var h=this.assemblyData(e,r,n,o);return h.tt_test_id=f,h.context.ad={},null==(l=this===null||void 0===this?void 0:this.reportService)||l.report(c||ti,h,iV.htmlHttpReport,iH.P0),h}if(n&&"object"==typeof n){var p,d=n,v=d.value,_=d.currency;void 0===v||!isNaN(v)&&v>=0||(0,u.um)(s.O.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_value",extJSON:{event:r,value:v,currency:_}}),void 0===_||(void 0===(p=this.currency_list)&&(p=null),(p||tz).includes(_))||(0,u.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,c)},r.trackPostTask=function(t){var e=t.reporterId,r=t.eventType,n=t.properties,o=t.eventConfig;tX.includes(r)||this.selfHostConfig[e]&&!this.hasReportEventHistory(r,iV.htmlHttpReport)&&(this.pushReport(r,this.getReportEventHistoryKey(iV.htmlHttpReport)),this.trackSync(e,r,n,o,iF.SELFHOST,iV.htmlHttpReport))},r.getReportEventHistoryKey=function(t){return t===iV.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}(t2);function ef(t,e){return(ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eh=function(t,e){return function(r,n){e(r,n,t)}},ep=function(t){function e(e,r,n,o,i,a,c,u,s,l){return t.call(this,{id:e,type:r,isOnsitePage:n,context:o,reporterInfo:i,ttqOptions:a,reportService:c,plugins:u,rules:s,options:l})||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ef(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,p()[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=$();tY((0,h.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=t4(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=iF.TRACK),void 0===i&&(i=iV.defaultReport),(0,tg.FI)(r)||(r={description:JSON.stringify(r)}),n&&n.pixel_code&&this.getReporterId()!==n.pixel_code)return Promise.resolve(null);if(tj(this.reporterInfo,this.ttqOptions)){var a=tF(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}(el);function ed(t,e){return(ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ev=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ed(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}(ep=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),eh(0,K(E.M.ID)),eh(1,K(E.M.Type)),eh(2,K(E.M.IsOnsitePage)),eh(3,K(g.D.CONTEXT)),eh(4,K(E.M.Info)),eh(5,K(g.D.TTQ_GLOBAL_OPTIONS)),eh(6,K(g.D.REPORT_SERVICE)),eh(7,K(E.M.Plugins)),eh(7,W()),eh(8,K(E.M.Rules)),eh(8,W()),eh(9,K(E.M.Options)),eh(9,W())],ep));function e_(){e_=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function em(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function ey(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){em(i,n,o,a,c,"next",t)}function c(t){em(i,n,o,a,c,"throw",t)}a(void 0)})}}function eg(t,e){return(eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eE=function(t,e){return function(r,n){e(r,n,t)}},eb=function(t){function e(e,r,n,o,i,a,c,s,l,f,h,p,d,v,_,m,y,g,E,b,w,O,I,T,S,R,N,L){(A=t.call(this,e,i,f,h)||this).context=e,A.env=l,A.reporters=r,A.globalTtqOption=p,A.cookieService=a,A.reportService=i,A.consentService=c,A.adService=n,A.appService=o,A.clickInteractionIdService=s,A.historyObserver=T,A.interactionObserver=S,A.autoAdvancedMatchingPlugin=v,A.callbackPlugin=_,A.identifyPlugin=m,A.monitorPlugin=d,A.shopifyPlugin=y,A.autoConfigPlugin=g,A.diagnosticsConsolePlugin=E,A.eventBuilderPlugin=b,A.pagedataPlugin=I,A.enrichIpv6Plugin=w,A.lpvPlugin=O,A.runtimeMeasurementPlugin=R,A.textTreeWalkerPlugin=N,A.cdpVisiterPlugin=L,A.eventEmitter=f,A.sensitiveRedactor=h,A.historyObserver&&A.useObserver(A.historyObserver),A.interactionObserver&&A.useObserver(A.interactionObserver),A.autoAdvancedMatchingPlugin&&A.usePlugin(A.autoAdvancedMatchingPlugin),A.callbackPlugin&&A.usePlugin(A.callbackPlugin),A.identifyPlugin&&A.usePlugin(A.identifyPlugin),A.monitorPlugin&&A.usePlugin(A.monitorPlugin),A.shopifyPlugin&&A.usePlugin(A.shopifyPlugin),A.autoConfigPlugin&&A.usePlugin(A.autoConfigPlugin),A.diagnosticsConsolePlugin&&A.usePlugin(A.diagnosticsConsolePlugin),A.eventBuilderPlugin&&A.usePlugin(A.eventBuilderPlugin),A.enrichIpv6Plugin&&A.usePlugin(A.enrichIpv6Plugin),A.lpvPlugin&&A.usePlugin(A.lpvPlugin),A.runtimeMeasurementPlugin&&A.usePlugin(A.runtimeMeasurementPlugin),A.textTreeWalkerPlugin&&A.usePlugin(A.textTreeWalkerPlugin),A.cdpVisiterPlugin&&A.usePlugin(A.cdpVisiterPlugin),A.sensitiveRedactor&&A.usePlugin(A.sensitiveRedactor),A.monitorPlugin&&(u.qe.info.forEach(function(t){var e;null==(e=A.monitorPlugin)||e.info(t.event,t.detail,t.withoutJSB)}),u.qe.error.forEach(function(t){var e;null==(e=A.monitorPlugin)||e.error(t.event,t.err,t.detail,t.withoutJSB)}),u.qe.info=[],u.qe.error=[]),A.dispatch(iC.INIT_START),A.pagedataPlugin&&A.usePlugin(A.pagedataPlugin),A.onPageLoaded(),A.initLCPListener(),A.onPageLeave();var A,x=Q(),P=x.url,C=x.referrer;return A.init(P,C),A.setPageInfo(P,C),A.dispatch(iC.INIT_END),A}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,eg(e,t);var r,n=e.prototype;return n.initAdInfo=function(t,e){this.dispatch(iC.BEFORE_AD_INFO_INIT_START);var r=te(Y.dm);if(r)return void this.initAdCache(r);if((0,f.zP)()){var n=t_(t,e);n&&(n.creative_id&&n.log_extra||n.callback)&&(this.dispatch(iC.AD_INFO_INIT_START),tn(Y.dm,n),this.setAdInfo(n),this.initOffsiteAdInfo(n));return}this.initBaseAdInfo(t,e)},n.initAdCache=function(t){this.dispatch(iC.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(iC.AD_INFO_INIT_START),this.reportService.pushPreposition(ey(e_().mark(function n(){var o;return e_().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,u.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=ty(t,function(t){(0,u.vU)(s.O.INIT_ERROR,t,{extJSON:{position:"handleAdInfoOfficial"}})});this.context.setOffsiteAdInfo(e);var r=tm(t,this.env);this.context.setEnableAdTracking(r),this.dispatch(iC.AD_INFO_INIT_END,{extJSON:{enabledAdTracking:r}})},n.initAppInfo=function(t,e){var r=this,n=te(Y.Cd);if(n)return void this.context.setAppInfo(n);this.reportService.pushPreposition(ey(e_().mark(function n(){var o;return e_().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=ey(e_().mark(function t(e,r){var n;return e_().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=tk(t,tN("tt_test_id"),e);this.context.setTestID(r)}},n.initUserInfo=function(){this.setCookieInfo()},n.initLocalServiceInfo=function(){var t,e,r=te(Y.RC);if(r)return void this.context.setUserInfoWithoutIdentifyPlugin(((t={})[Y.RC]=r,t));var n=Q(),o=n.url,i=n.referrer,a=Z(tt(this.globalTtqOption),o,i);a&&(tn(Y.RC,a),this.context.setUserInfoWithoutIdentifyPlugin(((e={})[Y.RC]=a,e)))},n.setPageIndex=function(t){t&&tA(t)},n.instance=function(t){this.beforeAPIExecution();var e=this.getReporter(t);return e||new ev(t,iP.PIXEL_CODE,{value:!1},this.context,{pixelCode:t},{},{})},n.instances=function(){return this.beforeAPIExecution(),this.reporters},n.page=function(e){this.beforeAPIExecution();var r=Q(),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 ev||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(tD._R.HOLD)},n.revokeConsent=function(){this.consentService.setConsentMode(tD._R.REVOKE),this.track(N)},n.grantConsent=function(){this.consentService.setConsentMode(tD._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,u.vU)(s.O.CUSTOM_ERROR,t,{extJSON:{position:"waitForLCPOrTimeoutDetailed"}})}clearTimeout(c),e({reason:i,lcpTime:r})}},c=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,u.vU)(s.O.CUSTOM_ERROR,t,{extJSON:{position:"waitForLCPOrTimeoutDetailedCatch"}}),i="unsupported",a()}})).then(function(t){"lcp"===t.reason&&void 0!==t.lcpTime&&((0,_.Kn)(m.Cr.LCP),e.dispatch(iC.PAGE_LCP,{startTime:t.lcpTime,value:t.lcpTime,reason:t.reason}))}).catch(function(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{extJSON:{position:"initLCPListener"}})})},n.onPageLoaded=function(){var t=this;window.addEventListener("load",function(){t.dispatch(iC.PAGE_DID_LOAD)},{once:!0})},n.onPageLeave=function(){var t=this,e=(0,h.IH)(function(){var e=(0,tE.u3)();t.dispatch(iC.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,Q().url===t.getPageInfo().url||this.setPageInfo(Q().url),e=this.context,tN(Y.qC)===e.getUserInfo().anonymous_id||t5(this.context)}catch(t){(0,u.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,u.ZK)(iM.DUPLICATE_PIXEL_CODE);(0,l.Ie)().load(t,e||{})}},e}(tB),ew=eb=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),eE(0,K(g.D.CONTEXT)),eE(1,K(g.D.TTQ_REPORTERS)),eE(2,K(g.D.AD_SERVICE)),eE(3,K(g.D.APP_SERVICE)),eE(4,K(g.D.REPORT_SERVICE)),eE(5,K(g.D.COOKIE_SERVICE)),eE(6,K(g.D.CONSENT_SERVICE)),eE(7,K(g.D.INTER_ID_SERVICE)),eE(8,K(g.D.ENV)),eE(9,K(g.D.EVENT_EMITTER)),eE(10,K(g.D.SENSITIVE_REDACTOR)),eE(11,K(g.D.TTQ_GLOBAL_OPTIONS)),eE(12,K(g.D.MONITOR_PLUGIN)),eE(12,W()),eE(13,K(g.D.AUTO_ADVANCED_MATCHING_PLUGIN)),eE(13,W()),eE(14,K(g.D.CALLBACK_PLUGIN)),eE(14,W()),eE(15,K(g.D.IDENTIFY_PLUGIN)),eE(15,W()),eE(16,K(g.D.SHOPIFY_PLUGIN)),eE(16,W()),eE(17,K(g.D.AUTO_CONFIG_PLUGIN)),eE(17,W()),eE(18,K(g.D.DIAGNOSTICS_CONSOLE_PLUGIN)),eE(18,W()),eE(19,K(g.D.EVENT_BUILDER_PLUGIN)),eE(19,W()),eE(20,K(g.D.ENRICH_IPV6_PLUGIN)),eE(20,W()),eE(21,K(g.D.LPV_PLUGIN)),eE(21,W()),eE(22,K(g.D.PAGEDATA_PLUGIN)),eE(22,W()),eE(23,K(g.D.HISTORY_OBSERVER)),eE(23,W()),eE(24,K(g.D.INTERACTION_OBSERVER)),eE(24,W()),eE(25,K(g.D.RUNTIME_MEASUREMENT_PLUGIN)),eE(25,W()),eE(26,K(g.D.TEXT_TREE_WALKER_PLUGIN)),eE(26,W()),eE(27,K(g.D.CDP_VISITER_PLUGIN)),eE(27,W())],eb),eO=r(118);function eI(){return(eI=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var eT=function(){function t(t,e){this.userFormatInfo={},this.userFormatInfoV2={},this.enableAdTracking=!0,this.offsiteAdInfo={},this.tt_test_id="",this.transactionId="",this.signalDiagnosticLabels=eI({},tD.N4),this.pageCookieBasedSession=tU(),this.userInfoFieldAllowlist={},this.init(t),this.eventEmitter=e}var e=t.prototype;return e.init=function(t){this.userInfo={},this.adInfo={},this.appInfo={},this.pageInfo={url:"",referrer:""},this.pageSign={sessionId:"",pageId:""},this.libraryInfo=t},e.getAllData=function(){return{userInfo:this.userInfo,adInfo:this.adInfo,appInfo:this.appInfo,libraryInfo:this.libraryInfo,pageInfo:this.pageInfo,pageSign:this.pageSign,signalType:this.signalType,userFormatInfo:this.userFormatInfo,userFormatInfoV2:this.userFormatInfoV2,enableAdTracking:this.enableAdTracking,offsiteAdInfo:this.offsiteAdInfo,tt_test_id:this.tt_test_id,transactionId:this.transactionId}},e.getLibraryInfo=function(){return this.libraryInfo},e.setSignalType=function(t){this.signalType=t},e.getSignalType=function(){return this.signalType},e.setTestID=function(t){this.tt_test_id=t},e.getTestID=function(){return this.tt_test_id},e.setTransactionId=function(t){this.transactionId=t},e.getTransactionId=function(){return this.transactionId},e.setEnableAdTracking=function(t){this.enableAdTracking=t},e.getEnableAdTracking=function(){return this.enableAdTracking},e.setOffsiteAdInfo=function(t){this.offsiteAdInfo=Object.assign({},this.offsiteAdInfo,t)},e.getOffsiteAdInfo=function(){return this.offsiteAdInfo},e.getUserFormatInfo=function(){return this.userFormatInfo},e.setUserFormatInfo=function(t){void 0===t&&(t={}),Object.assign(this.userFormatInfo,t)},e.getUserFormatInfoV2=function(){return this.userFormatInfoV2},e.setUserFormatInfoV2=function(t){void 0===t&&(t={}),Object.assign(this.userFormatInfoV2,t)},e.setUserInfo=function(t,e){void 0===t&&(t={}),Object.assign(this.userInfo,t)},e.setUserInfoWithoutIdentifyPlugin=function(t){t&&Object.assign(this.userInfo,t)},e.getUserInfo=function(){return this.userInfo},e.getAdInfo=function(){return this.adInfo},e.setAdInfo=function(t){t&&(this.adInfo?this.adInfo=Object.assign({},this.adInfo,t):this.adInfo=t)},e.getAppInfo=function(){return this.appInfo},e.setAppInfo=function(t){t&&(this.appInfo=Object.assign({},this.appInfo,t))},e.getPageInfo=function(){return this.pageInfo},e.getPageSign=function(){return this.pageSign},e.setPageInfo=function(t,e){var r=eI({},this.pageInfo),n=eI({},this.pageSign);if(r.url!==t){var o=r.url;if(void 0!==r.url&&(r.referrer=r.url),void 0!==e&&(r.referrer=e),void 0!==n.pageIndex){var i=n.pageIndex,a=i.index,c=i.sub,u=i.main;n.pageIndex={index:++a,sub:++c,main:u}}return r.url=t,this.pageInfo=r,this.pageSign=n,{from:o,pageIndex:n.pageIndex}}},e.setPageInfoData=function(t){this.pageInfo=Object.assign({},this.pageInfo,t)},e.getSessionIdFromCache=function(){return null},e.setSessionIdToCache=function(t){},e.setSignalDiagnosticLabels=function(t){Object.assign(this.signalDiagnosticLabels,t)},e.getSignalDiagnosticLabels=function(){return this.signalDiagnosticLabels},e.getPageId=function(t){return void 0===t&&(t=""+(0,tE.u3)()),t+"-"+(0,h.$j)(5)},e.getPageViewId=function(){var t=this.pageSign,e=t.pageId,r=t.pageIndex;return""+e+(r?"."+r.main+"."+r.sub:"")},e.getVariationId=function(){return""},e.getVids=function(){return""},e.isLegacyPixel=function(t){return!1},e.initPageSign=function(){var t=this.getSessionIdFromCache();null===t&&(t=(0,tg.fV)(Y.Qu),this.setSessionIdToCache(t));var e={sessionId:t,pageId:(0,tg.fV)(Y.M0)};this.pageSign=e},e.getPageCookieBasedSession=function(){return this.pageCookieBasedSession},e.setPageCookieBasedSession=function(t,e){return void 0===e&&(e=iU.ORIGIN_TRIGGER),t&&(this.pageCookieBasedSession=t),this.eventEmitter&&this.eventEmitter.emit(m.Cr.COOKIE_TTCSID_CHANGE,this.pageCookieBasedSession),this.pageCookieBasedSession},t}();function eS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function eR(t,e){return(eR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}eT=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B()],eT);var eN=function(t,e){return function(r,n){e(r,n,t)}},eL=function(t){function e(e,r,n,o,i,a){var c;return(c=t.call(this,e,o)||this).setSignalType(a||y.S.OFFSITE),c.pageSign={sessionId:"",pageId:"",variationId:"",vids:"",pageIndex:{main:-1,sub:-1,index:-1}},c.legacy=n.legacy||[],c.variationId=n.variation_id||"",c.vids=n.vids||"",c.serverUniqueId=n.server_unqiue_id||"",c.ttqOptions=n,c.reportService=r,c.initPageSign(),(0,f.XA)(i)&&(0,f.gn)()&&(c.enableAdTracking=!1),c.data=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(c),c}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,eR(e,t);var r=e.prototype;return r.getSessionIdFromCache=function(){var t=null;try{t=JSON.parse(sessionStorage.getItem(Y.Bp)||"")}catch(t){}return t},r.setSessionIdToCache=function(t){tn(Y.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.mergeAutoCollectedPiis=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=[]);var r=t.slice();return e.forEach(function(t){var e=r.findIndex(function(e){return e.source===t.source});e>-1?r[e]=t:r.push(t)}),r},r.getSessionIndex=function(){var t={main:-1,sub:-1,index:-1};try{var e=JSON.parse(sessionStorage.getItem(Y.AU)||"{}");if(e)return Object.assign({},t,e)}catch(t){}return t},r.setUserInfo=function(t,e){var r=this;void 0===t&&(t={});var n=null==e?void 0:e.reporterId,o=null==e?void 0:e.trigger_source;if(0!==Object.keys(t).length){var i={};Object.entries(t).forEach(function(t){var e,o,a,c=t[0],u=t[1];if(u){if(r.userInfoFieldAllowlist[c]||(r.userInfoFieldAllowlist[c]=[]),n?null==(e=r.userInfoFieldAllowlist[c])||e.push(n):null==(o=r.userInfoFieldAllowlist[c])||o.push("all"),c===eO.Sk)return void r.setUserInfoWithoutIdentifyPlugin(((a={})[eO.Sk]=String(u),a));i[c]=String(u).trim()}});var a=(0,l.Ie)(),c=null==a?void 0:a.getPlugin("Identify");c&&this.reportService.pushPreposition(c.handleUserProperties(i,t,o).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,s=a.userDataFormat,l=a.userDataFormatV2;if(u){t.auto_collected_piis&&t.auto_collected_piis.length>0&&(u.auto_collected_piis=r.mergeAutoCollectedPiis(r.userInfo.auto_collected_piis,t.auto_collected_piis)),Object.assign(r.userInfo,u);var f=r.getUserFormatInfo()||{},h=r.getUserFormatInfoV2()||{},p=r.getSignalDiagnosticLabels()||{};r.setUserFormatInfo(Object.assign({},f,s)),r.setUserFormatInfoV2(Object.assign({},h,l)),r.setSignalDiagnosticLabels(Object.assign({},p,t.identifierLabel||{}));var d=Object.keys(r.userInfo);if(0===d.length||1===Object.keys(i).length&&Object.keys(i).includes("external_id"))return;var v=c.reporters[0];if(n)v=c.reporters.find(function(t){return t.getReporterId()===n});else if(null==(_=String(d))?void 0:_.includes("auto_")){for(var _,m,y,g=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 eS(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 eS(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);!(y=g()).done&&"break"!==function(){var t=y.value,e=c.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=c.reporters.find(function(t){if(Object.keys(t.getUserInfo(tD.Ts.Manual)).length)return!0});var E=v?Object.keys(Object.assign({},v.getUserInfo(tD.Ts.Manual),v.getUserInfo(tD.Ts.Auto),v.getUserInfo(tD.Ts.EBManual))):[];v&&E.length&&v.track("EnrichAM",e||{},{},iF.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,u.vU)(s.O.API_ERROR,t,{extJSON:{api:"identify"}})}))}},r.initPageSign=function(){var t=this.getSessionIdFromCache();null===t&&(t=(0,h.LT)(this.serverUniqueId),this.setSessionIdToCache(t));var e=this.getPageId((0,h.eD)(t)),r=this.getVariationId(),n=this.getSessionIndex(),o=tI();n.main++,this.pageSign={sessionId:t,pageId:e,variationId:r,pageIndex:n,etldPlusOne:o}},r.setPageCookieBasedSession=function(e,r){void 0===r&&(r=iU.ORIGIN_TRIGGER);var n=t4("",e,this.ttqOptions,r);return t.prototype.setPageCookieBasedSession.call(this,n)},e}(eT);eL=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),eN(0,K(E.M.WebLibraryInfo)),eN(1,K(g.D.REPORT_SERVICE)),eN(2,K(g.D.TTQ_GLOBAL_OPTIONS)),eN(3,K(g.D.EVENT_EMITTER)),eN(4,K(g.D.ENV)),eN(4,W()),eN(5,K(E.M.SignalType)),eN(5,W())],eL);var eA=String.fromCharCode.bind(String),ex=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),eP=function(t){for(var e,r,n,o,i="",a=t.length%3,c=0;c<t.length;){if((r=t.charCodeAt(c++))>255||(n=t.charCodeAt(c++))>255||(o=t.charCodeAt(c++))>255)throw TypeError("invalid character found");i+=ex[(e=r<<16|n<<8|o)>>18&63]+ex[e>>12&63]+ex[e>>6&63]+ex[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},eC=function(t){if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?eA(192|e>>>6)+eA(128|63&e):eA(224|e>>>12&15)+eA(128|e>>>6&63)+eA(128|63&e)}var r=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return eA(240|r>>>18&7)+eA(128|r>>>12&63)+eA(128|r>>>6&63)+eA(128|63&r)},ek=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,eD=function(t){return eP(JSON.stringify(t).replace(ek,eC)).replace(/=/g,"").replace(/[+\/]/g,function(t){return"+"===t?"-":"_"})};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",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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(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 c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}var eU=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=eM().mark(function t(e,r,n,o){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)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){ej(i,n,o,a,c,"next",t)}function c(t){ej(i,n,o,a,c,"throw",t)}a(void 0)})},n.report=function(t,e,n,o){return r.apply(this,arguments)},t}();eU=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B()],eU);var eF=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()},eG=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<t.length;a++)i(a)})};(ih=iW||(iW={}))[ih.PENDING=0]="PENDING",ih[ih.FULFILLED=1]="FULFILLED";var eV=function(){function t(){this.promiseQueue=[],this.status=iW.FULFILLED}var e=t.prototype;return e.push=function(t){this.status=iW.PENDING,this.promiseQueue.push(t)},e.then=function(t){var e,r=this;return this.status===iW.FULFILLED?Promise.resolve(t()):(e=this.promiseQueue,"function"==typeof Promise.allSettled?Promise.allSettled(e):eG(e)).then(function(){return r.status=iW.FULFILLED,t()})},t}();function eH(){eH=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function eq(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).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){eq(i,n,o,a,c,"next",t)}function c(t){eq(i,n,o,a,c,"throw",t)}a(void 0)})}}function eK(t,e){return(eK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eW=function(t,e){return function(r,n){e(r,n,t)}},eY=function(t){function e(e,r,n,o){var i;return(i=t.call(this,e,r,new eV)||this).supportSendAnalyticsEvent=!0,i.consentService=n,i.consentService.on(m.IM.QUEUE,function(t){t.forEach(function(t){var e=t.url,r=t.data,n=t.type;i.report(e,r,n,iH.P0)})}),i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,eK(e,t);var r,n,o,i=e.prototype;return r=eB(eH().mark(function t(e,r,n){var o,i,a,c,l,p,d;return eH().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 p=!!(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,p);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,h.WZ)(l.event)&&(0,u.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:p}}),t.abrupt("return",d);case 15:t.prev=15,t.t0=t.catch(5),(0,h.WZ)(l.event)&&(0,u.vU)(s.O.JSB_ERROR,t.t0,{pixelCode:null==(c=l.context.pixel)?void 0:c.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=eB(eH().mark(function t(e,r,n,o,i){var a;return eH().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===o&&(o=!0),!((0,h.WZ)(r.event)&&(0,f.b)("75804114"))){t.next=6;break}this.httpService.sendByImage(e,{analytics_message:n},!0),t.next=10;break;case 6:return t.next=8,this.httpService.send(e,r,i);case 8:t.sent||this.httpService.sendByImage(e,{analytics_message:n});case 10:o&&(0,u.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 11: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=iV.defaultReport);var n=this.consentService.getConsentMode();return n===tD._R.REVOKE?e.event===N:n!==tD._R.HOLD||(this.consentService.cacheReportTask(t,e,r),!1)},o=eB(eH().mark(function t(e,r,n,o){var i,a,c,l;return eH().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n&&(n=iV.defaultReport),void 0===o&&(o=iH.P0),o===iH.P0){t.next=8;break}return t.next=5,(0,h._v)(0);case 5:return t.next=7,this.report(e,r,n,iH.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=eD(r),!(n===iV.defaultReport&&this.bridgeService.jsbridge)){t.next=16;break}return t.next=15,this.send(e,r,i);case 16:if(!(n===iV.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 "+(c=t.sent)+", path: "+a+", data: "+JSON.stringify(r)),null!=c&&-2!==c){t.next=27;break}throw this.supportSendAnalyticsEvent=!1,l;case 27:if(1!==c){t.next=29;break}return t.abrupt("return");case 29:throw l;case 32:t.prev=32,t.t0=t.catch(18),(0,u.vU)(s.O.CUSTOM_ERROR,t.t0,{custom_name:"sendAnalyticsEvent",custom_enum:String(c)},!0);case 35:this.sendHttpReport(e,r,i,!!((0,h.WZ)(r.event)&&(0,h.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}(eU);function eX(){eX=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(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 c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),eW(0,K(g.D.HTTP_SERVICE)),eW(1,K(g.D.BRIDGE_SERVICE)),eW(2,K(g.D.CONSENT_SERVICE)),eW(3,K(g.D.ENV)),eW(3,W())],eY);var eZ=function(){function t(t){this.webBridgeService=t}var e,r,n=t.prototype;return e=eX().mark(function t(e,r){var n,o,i;return eX().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)&&tn(Y.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){eJ(i,n,o,a,c,"next",t)}function c(t){eJ(i,n,o,a,c,"throw",t)}a(void 0)})},n.getAdInfo=function(t,e){return r.apply(this,arguments)},n.getAdInfoFromURL=function(t,e){return t_(t,e)},t}();function ez(){ez=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function eQ(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),(ip=K(g.D.BRIDGE_SERVICE),function(t,e){ip(t,e,0)})],eZ);var e$=function(){function t(t){this.webBridgeService=t}var e,r,n=t.prototype;return e=ez().mark(function t(e,r){var n,o,i,a;return ez().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,tg.Qr)(n)||tn(Y.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){eQ(i,n,o,a,c,"next",t)}function c(t){eQ(i,n,o,a,c,"throw",t)}a(void 0)})},n.getAppInfo=function(t,e){return r.apply(this,arguments)},n.getAppInfoFromURL=function(t,e){try{var r=Z(tv,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}();e$=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),(id=K(g.D.BRIDGE_SERVICE),function(t,e){id(t,e,0)})],e$);var e0="ad_analytics_msg";function e1(){e1=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function e2(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function e3(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){e2(i,n,o,a,c,"next",t)}function c(t){e2(i,n,o,a,c,"throw",t)}a(void 0)})}}var e6=function(t,e){return function(r,n){e(r,n,t)}},e5=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,c,l=t.prototype;return e=e3(e1().mark(function t(){var e=this;return e1().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.jsbridge){t.next=3;break}return(0,u.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=e3(e1().mark(function t(r){var n;return e1().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,u.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=e3(e1().mark(function t(){var e,r;return e1().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,u.um)(s.O.CUSTOM_INFO,{custom_name:"ad_info_init_timeout"}),t.abrupt("return",{ad_info_status:"timeout"});case 17:return(0,u.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=e3(e1().mark(function t(){return e1().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=e3(e1().mark(function t(e,r){var n,o,i,a,c,l,p,d,v,_,m,y;return e1().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=eD(e),c=(0,h.Xu)(e),l={analytics_message:a,trackLogData:JSON.stringify(e),category:"ad_analytics_msg",tag:e0,label:c},(0,f.NC)()&&(l.is_ad_event=1),v={eventName:e0,labelName:c,value:i,extValue:"0",extJson:l},"insight_log_monitor"===c&&(0,f.z1)()?(d="x.reportAppLog",_={eventName:"insight_log_monitor",params:l},p=this.call("x.reportAppLog",_,this.bridgeTimeout)):(0,f.zP)()||(0,h.iE)(e)?(d="sendLog",p=this.call("sendLog",v,this.bridgeTimeout)):(0,f.XA)(this.env)?(0,f.gn)()&&r?(m={eventName:c,params:l},d="sendLogWithAdInfo",p=this.call("sendLogWithAdInfo",m,this.bridgeTimeout)):(d="sendLog",p=this.call("sendLog",v,this.bridgeTimeout)):(y={event_name:c,version:2,properties:l},d="track_event",p=this.call("track_event",y,400)),setTimeout(function(){(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"send_report_data",extJSON:{api_name:d}})}),t.abrupt("return",p);case 11:case"end":return t.stop()}},t,this)})),l.send=function(t,e){return o.apply(this,arguments)},i=e3(e1().mark(function t(e,r,n,o){var i=this;return e1().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 c;if(!i.jsbridge){a("JSBRIDGE ERROR"),o&&(0,u.vU)(s.O.JSB_ERROR,Error("JSBRIDGE ERROR"),{extJSON:{position:"getCallPromise"}});return}n>0&&(c=window.setTimeout(function(){a("JSBRIDGE TIMEOUT"),o&&(0,u.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,u.vU)(s.O.JSB_ERROR,t,{extJSON:{position:"getCallPromise bridge.call"}})}return r}(e,o)),window.clearTimeout(c)})}));case 4:case"end":return t.stop()}},t)})),l.call=function(t,e,r,n){return i.apply(this,arguments)},a=e3(e1().mark(function t(e){var r,n,o,i,a;return e1().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)},c=e3(e1().mark(function t(e){return e1().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 c.apply(this,arguments)},t}();function e8(){e8=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function e4(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}e5=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),e6(0,K(g.D.ENV)),e6(0,W()),e6(1,K(g.D.JS_BRIDGE)),e6(1,W())],e5);var e9=function(){function t(){}var e,r,n=t.prototype;return e=e8().mark(function t(e,r,n){var o;return e8().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,h._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){e4(i,n,o,a,c,"next",t)}function c(t){e4(i,n,o,a,c,"throw",t)}a(void 0)})},n.send=function(t,e,n){return r.apply(this,arguments)},n.sendByImage=function(t,e,r,n){void 0===r&&(r=!1);var o=new Image;n&&(o.onerror=function(){n()}),r&&o.setAttribute("fetchpriority","high"),o.src=eF(t,e)},t}();function e7(){e7=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rt(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}e9=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B()],e9);var re=function(){function t(t){this.cookieExpireOption=tO(t)}var e,r,n=t.prototype;return n.genCookieID=function(){return(0,h.d$)()},e=e7().mark(function t(){return e7().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return tL(Y.ct,"1",this.cookieExpireOption),t.abrupt("return",tY((0,h.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){rt(i,n,o,a,c,"next",t)}function c(t){rt(i,n,o,a,c,"throw",t)}a(void 0)})},n.enableCookie=function(){return r.apply(this,arguments)},n.enableFirstPartyCookie=function(t){if(t){tL(Y.ct,"1",this.cookieExpireOption);var e=this.getAnonymousId();this.setAnonymousId(e||this.genCookieID())}},n.disableCookie=function(){tL(Y.ct,"0",this.cookieExpireOption),tL(Y.qC,"",Object.assign(this.cookieExpireOption,{expires:-1})),tY((0,h.X1)())},n.setAnonymousId=function(t){var e=this.getAnonymousId()||t;if(e){var r=e.split(".")[0];tL(Y.qC,r,this.cookieExpireOption)}},n.getAnonymousId=function(){return tN(Y.qC)||""},n.canUseCookie=function(){try{return"0"!==tN(Y.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=tN(Y.ct);e&&tL(Y.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 rr(t,e){return(rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}re=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),(iv=K(g.D.TTQ_GLOBAL_OPTIONS),function(t,e){iv(t,e,0)})],re),(i_=iY||(iY={}))[i_.P0=4]="P0",i_[i_.P1=3]="P1",i_[i_.P2=2]="P2",i_[i_.P3=1]="P3";var rn="tt_hold_events",ro=function(t){function e(){var e;return e=t.apply(this,arguments)||this,e.consentMode=tD._R.UNKNOWN,e.queue=[],e.debounceUpdateCache=(0,h.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,h.IH)(function(){var t=te(rn);Array.isArray(t)&&(e.queue=e.queue.concat(t),e.changeQueueWithConsent())}),e}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rr(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 tD._R.REVOKE:this.cleanQueue();break;case tD._R.GRANT:this.releaseQueue(),this.cleanQueue();case tD._R.HOLD:case tD._R.UNKNOWN:}},r.getConsentMode=function(){return this.consentMode},r.cacheReportTask=function(t,e,r){void 0===r&&(r=iV.defaultReport),this.queue.push({url:t,data:e,type:r}),this.debounceUpdateCache()},r.cleanQueue=function(){this.queue=[],tr(rn)},r.updateCache=function(){this.queue&&this.queue.length>0&&tn(rn,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(m.IM.QUEUE,this.queue)},r.getEventPriority=function(t){return t.event&&t.event.length>0?iY.P0:t.action&&t.action.length>0?iY.P1:""===t.event?iY.P2:iY.P3},e}(tQ);function ri(){return document.visibilityState}ro=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B()],ro),(im=iX||(iX={})).CLICK="click",im.SCROLL="scroll",im.COOKIE_CHANGE="cookie_change",im.PAGE_START="page_start",im.URL_CHANGE="url_change",im.SELF="self",im.PIXEL_INIT="pixel_init",im.PAGE_SHOW="page_show";var ra=function(t,e){return function(r,n){e(r,n,t)}},rc=function(){function t(t,e){this.clickContext={type:"click",clickX:0,clickY:0,last_inter_relative_ts:0,seq:0},this.scrollContext={type:"scroll",scrollY:0,last_inter_relative_ts:0,seq:0},this.sessionLoadTS=0,this.last_page_start_relative_ts=0,this.last_pixel_init_relative_ts=0,this.inter_id="",this.INTER_ID_SEPARATOR="::",this.documentVisibleStateCode=0,this.hasInit=!1,this.eventEmitter=t,this.webContext=e,function(){try{var t=A(),e=(0,l.Ie)();return Object.values(t).some(function(t){var r,n;return(null==(r=t.info)?void 0:r.firstPartyCookieEnabled)&&(null==(n=null==e?void 0:e._csid_config)?void 0:n.enable)})}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"hasPixelEnabledSessionCookie"}),!1}}()&&!1===this.hasInit&&(this.hasInit=!0,this.init())}var e=t.prototype;return e.init=function(){this.subscribeEvents(),this.listenEvents()},e.subscribeEvents=function(){this.subscribePixelInitEvent(),this.subscribeSessionCookieChangeEvent(),this.subscribeURLChangeEvent(),this.subscribeClickEvent(),this.subscribeScrollEvent()},e.listenEvents=function(){this.listenPageShowEvent()},e.initInterIdFromSessionCookie=function(t){try{var e=t.inter_id.split("::"),r=e[0].split(".");r[0],r[1],r[2];var n=e[1],o=e[2];this.updateSessionLoadTS(t,!1),this.updatePageStartTS(iX.PAGE_START,!1),this.updatePixelInitTS(!1),this.updateClickContext(function(t){try{var e=t.split(".");if(4!==e.length)return;var r=e[0],n=e[1],o=e[2],i=e[3];return{type:"click",clickX:Number(o),clickY:Number(i),last_inter_relative_ts:Number(r),seq:Number(n)}}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"getClickContextFromString"})}}(n),!1),this.updateScrollContext(function(t){try{var e=t.split(".");if(3!==e.length)return;var r=e[0],n=e[1],o=e[2];return{type:"scroll",scrollY:Number(o),last_inter_relative_ts:Number(r),seq:Number(n)}}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"getScrollContextFromString"})}}(o),!0)}catch(e){(0,u.vU)(s.O.CUSTOM_ERROR,e,{custom_name:"WebInterIdService",custom_enum:"initInterIdFromSessionCookie",extJSON:{message:""+t.inter_id}})}},e.generateInterId=function(t){try{return this.inter_id=""+this.assemblyPageContext()+this.INTER_ID_SEPARATOR+this.assemblyClickContext(this.clickContext)+this.INTER_ID_SEPARATOR+this.assemblyScrollContext(this.scrollContext),this.inter_id}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"generateInterId"}),""}},e.updateClickContext=function(t,e){void 0===e&&(e=!0),this.clickContext=t,e&&this.setInterIdInPageSessionCookie(this.getInterId())},e.updateScrollContext=function(t,e){var r=this;void 0===e&&(e=!0),this.scrollContext=t,this.throttleScrollSetInCookieHandler||(this.throttleScrollSetInCookieHandler=(0,tg.P2)(function(){r.setInterIdInPageSessionCookie(r.getInterId())},1e3,{trailing:!0})),e&&this.throttleScrollSetInCookieHandler()},e.updatePageStartTS=function(t,e){void 0===e&&(e=!0);var r=this.getSessionLoadTS();if(0===r&&t===iX.PAGE_START){var n=parseInt(performance.now().toString(),10);this.last_page_start_relative_ts=0-n}else if(0!==r&&t===iX.PAGE_START){var o=parseInt(performance.now().toString(),10);this.last_page_start_relative_ts=(0,tE.u3)()-o-r}else this.last_page_start_relative_ts=(0,tE.u3)()-r;e&&this.setInterIdInPageSessionCookie(this.getInterId())},e.updateSessionLoadTS=function(t,e){void 0===e&&(e=!0);var r=t.sessionId.split("::")[0],n=this.getSessionLoadTS();n!==Number(r)&&(0===n&&this.updatePageStartTS(iX.PAGE_START,!1),this.setSessionLoadTS(r?Number(r):0),e&&this.setInterIdInPageSessionCookie(this.getInterId()))},e.updatePixelInitTS=function(t){void 0===t&&(t=!0);var e=this.getSessionLoadTS();0===e?this.last_pixel_init_relative_ts=0:this.last_pixel_init_relative_ts=(0,tE.u3)()-e,t&&this.setInterIdInPageSessionCookie(this.getInterId())},e.assemblyClickContext=function(t){return t.last_inter_relative_ts+"."+t.seq+"."+t.clickX+"."+t.clickY},e.assemblyScrollContext=function(t){return t.last_inter_relative_ts+"."+t.seq+"."+t.scrollY},e.assemblyPageContext=function(){return"visible"===ri()?this.documentVisibleStateCode=1:"prerender"===ri()?this.documentVisibleStateCode=-1:this.documentVisibleStateCode=0,this.documentVisibleStateCode+"."+this.last_page_start_relative_ts+"."+this.last_pixel_init_relative_ts},e.subscribeClickEvent=function(){var t=this;this.eventEmitter.on(m.PG.CLICK,function(e){var r=t.getSessionLoadTS(),n=function(t,e,r){var n,o;try{if(!1===t.isTrusted)return;return{type:"click",clickX:null!=(n=parseInt(t.pageX.toString(),10))?n:0,clickY:null!=(o=parseInt(t.pageY.toString(),10))?o:0,last_inter_relative_ts:(0,tE.u3)()-r,seq:e.seq+1}}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"getClickContextFromEvent"})}}(e,t.clickContext,r);n&&t.updateClickContext(n)},{})},e.subscribeScrollEvent=function(){var t=this;(0,_.Oo)(m.PG.SCROLL,function(e){var r=t.getSessionLoadTS(),n=function(t,e,r){var n;try{if(!1===t.isTrusted)return;return{type:"scroll",scrollY:null!=(n=parseInt(window.scrollY.toString(),10))?n:0,last_inter_relative_ts:(0,tE.u3)()-r,seq:e.seq+1}}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"updateScrollContext",extJSON:{message:""+t.type}})}}(e,t.scrollContext,r);n&&t.updateScrollContext(n)},{throttle:!0,interval:200},{observerType:m.PG.SCROLL,pluginName:"WebInterIdService",target:window,environment:"window",listenEventTypes:[m.PG.SCROLL],mode:"append"})},e.subscribeSessionCookieChangeEvent=function(){var t=this;this.eventEmitter.on(m.Cr.COOKIE_TTCSID_CHANGE,function(e){var r=t.getSessionLoadTS();if(0===r&&0===t.clickContext.seq&&0===t.scrollContext.seq&&e.inter_id)return void t.initInterIdFromSessionCookie(e);t.updateSessionLoadTS(e,0===r)},{})},e.subscribePixelInitEvent=function(){var t=this;this.eventEmitter.on(m.Cr.HANDLE_CACHE,function(){t.updatePixelInitTS(!1)},{})},e.subscribeURLChangeEvent=function(){var t=this;this.eventEmitter.on(m.Cr.URL_CHANGE,function(e,r){t.updatePageStartTS(iX.URL_CHANGE)},{})},e.listenPageShowEvent=function(){var t=this;"onpageshow"in window&&window.addEventListener("pageshow",function(e){if(e.persisted){var r=t.getInterId();t.updatePageStartTS(iX.PAGE_SHOW),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"WebInterIdService",custom_enum:"BFCache",extJSON:{message:r+"|"+t.getInterId()}})}})},e.setInterIdInPageSessionCookie=function(t){var e=this.webContext.getPageCookieBasedSession();e.inter_id=t,this.webContext.setPageCookieBasedSession(e,iU.INTER_ID_TRIGGER)},e.setSessionLoadTS=function(t){this.sessionLoadTS=t},e.getSessionLoadTS=function(){return this.sessionLoadTS},e.getInterId=function(){return this.isPerformanceNowSupported()?this.generateInterId(iX.SELF):""},e.isPerformanceNowSupported=function(){return"undefined"!=typeof globalThis&&"object"==typeof globalThis.performance&&"function"==typeof globalThis.performance.now},t}();rc=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([ra(0,K(g.D.EVENT_EMITTER)),ra(1,K(g.D.CONTEXT))],rc);var ru=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 rs(t,e){return(rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rl=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rs(e,t),e}(ru=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B()],ru));function rf(t,e){return(rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rh=function(t,e){return function(r,n){e(r,n,t)}},rp=function(t){function e(e,r){var n;return(n=t.call(this,{name:"Callback",reporters:r,context:e})||this).ttclidCookieValue="undefined"!=typeof document?tN(td):"",n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rf(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=Q(),n=Z(td,r.url,r.referrer);n&&this.ttclidCookieValue!==n&&tw(td,n);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},e}(rl);rp=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),rh(0,K(g.D.CONTEXT)),rh(1,K(g.D.TTQ_REPORTERS))],rp);var rd={isHash:function(t){return!1},genIdentifierLabelByUserProperties:function(t){return{}}},rv={validatePhoneNumberLength:function(t){},parsePhoneNumberFromString:function(t){}},r_={tryDecodeHashedBase64String:function(t){return null},tryDecodeHashedBase64Hex:function(t){return null}},rm={checkEmailFormat:function(t){return!1},checkMDNEmailFormat:function(t){return!1}},ry=function(t){var e=t.parsePhoneNumberFromString,r=t.validatePhoneNumberLength;rv.parsePhoneNumberFromString=e,rv.validatePhoneNumberLength=r},rg=function(t){var e=t.isHash,r=t.genIdentifierLabelByUserProperties;rd.isHash=e,rd.genIdentifierLabelByUserProperties=r},rE=function(t){var e=t.tryDecodeHashedBase64String,r=t.tryDecodeHashedBase64Hex;r_.tryDecodeHashedBase64String=e,r_.tryDecodeHashedBase64Hex=r},rb=function(t){var e=t.checkEmailFormat,r=t.checkMDNEmailFormat;rm.checkEmailFormat=e,rm.checkMDNEmailFormat=r},rw=function(t){var e=t.parsePhoneNumberFromString,r=t.validatePhoneNumberLength,n=t.isHash,o=t.genIdentifierLabelByUserProperties,i=t.tryDecodeHashedBase64String,a=t.tryDecodeHashedBase64Hex,c=t.checkEmailFormat,u=t.checkMDNEmailFormat,s=t.sha256;rb({checkEmailFormat:c,checkMDNEmailFormat:u}),rE({tryDecodeHashedBase64String:i,tryDecodeHashedBase64Hex:a}),rg({isHash:n,genIdentifierLabelByUserProperties:o}),ry({parsePhoneNumberFromString:e,validatePhoneNumberLength:r}),(0,h.ZV)(s)},rO=function(t,e,r){void 0===e&&(e=""),void 0===r&&(r=rv.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},rI=["(null)","","''\"",void 0,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","eb045d78d273107348b0300c01d29b7552d622abbc6faf81b3ec55359aa9950c","not set",null,"6181738008c985a1b5f106b796c98e719efcc3c0ff68ddcd14a049825f4900a8","2a539d6520266b56c3b0c525b9e6128858baeccb5ee9b694a2906e123c8d6dd3","c6e52c372287175a895926604fa738a0ad279538a67371cd56909c7917e69ea1","None","74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b","f24f02d3c35894296522abac8c4b2439b1c1b650e1fb4c97c0f3c50b580b0a3c","no","a683c5c5349f6f7fb903ba8a9e7e55d0ba1b8f03579f95be83f4954c33e81098","f18a2548c063c5a2b1560c6f2b9ec44bf9ed9017884404016d74f330119aaefe","449f06574cd639e1826848ff5d70ba95904574be84f34e61baa526d517dfb493","fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa","NA","bc857c49633bbc75644c51f36b16b2f768cc0ee13f65402ec7c32c96308272dd","42cbf37902c6911d7b4e371fe8f8708a0ceda6946249d4a3e23de8d5e60ae8b7"];function rT(t,e){return(rT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rS=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,rT(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,c=t.parsePhoneNumberFromString,u=t.checkEmailFormat,s=t.checkMDNEmailFormat,l=t.getCookieDeprecationLabel,f=t.getAllTopics;rw({isHash:e,sha256:r,genIdentifierLabelByUserProperties:n,tryDecodeHashedBase64String:o,tryDecodeHashedBase64Hex:i,validatePhoneNumberLength:a,parsePhoneNumberFromString:c,checkEmailFormat:u,checkMDNEmailFormat:s}),this.parsePhoneNumberFromString=c,this.checkMDNEmailFormat=s,this.checkEmailFormat=u,this.sha256=r,this.getCookieDeprecationLabel=void 0===l?function(){}:l,this.getAllTopics=void 0===f?function(){}:f},r.baseHandleUserProperties=function(t,e,r){var n=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var o={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 i=this.identifyParamsFormattedInfo(t),a=this.identifyParamsFormattedInfoV2(t),c=rd.genIdentifierLabelByUserProperties(e),u=[];this.handlePIIDiagnostics(a),Object.entries(t).forEach(function(e){var o=e[0],i=e[1],s=void 0===i?"":i;if(s){var l=String(s);if(["email","phone_number","sha256_email","sha256_phone_number"].includes(o)){var f=n.getUserDataFormatInfoV2KeyName(o),h=r_.tryDecodeHashedBase64Hex(l);if(null!==h)t[o]=h,null!==f&&(a=n.updateUserDataFormatV2Label(f,tD.Vp.BASE64_HEX_HASHED,a));else{var p=r_.tryDecodeHashedBase64String(l);p&&(t[o]=p,null!==f&&(a=n.updateUserDataFormatV2Label(f,tD.Vp.BASE64_STRING_HASHED,a)))}}switch("zip_code"===o&&l&&(rd.isHash(l)?a=n.updateUserDataFormatV2Label("zip_code",tD.Vp.ZIP_CODE_IS_HASHED,a):(a=n.updateUserDataFormatV2Label("zip_code",tD.Vp.ZIP_CODE_IS_NOT_HASHED,a),n.isZipFromUs(t)?(t.zip_code=n.sha256(n.truncateString(l,5)),a=n.updateUserDataFormatV2Label("zip_code",tD.Vp.ZIP_CODE_IS_US,a)):(t.zip_code=n.sha256(l),a=n.updateUserDataFormatV2Label("zip_code",tD.Vp.ZIP_CODE_IS_NOT_US,a)))),o){case"email":t.email=rd.isHash(l)&&!n.checkEmailFormat(l)?l:n.sha256(n.handleEmail(l));break;case"eb_email":var d=rd.isHash(l)&&!n.checkEmailFormat(l);t.eb_email=d?l:n.sha256(n.handleEmail(l)),n.collectAutoPii(u,c,{triggerSource:r,type:tD.Ko.Email,piiWord:"email",isHashed:d,value:t.eb_email,rawLabelKey:"raw_eb_email",hashedLabelKey:"hashed_eb_email"});break;case"phone_number":t.phone_number=rd.isHash(l)?l:n.sha256(n.handlePhoneNumber(l));break;case"eb_phone_number":var v=rd.isHash(l);t.eb_phone_number=v?l:n.sha256(n.handlePhoneNumber(l)),n.collectAutoPii(u,c,{triggerSource:r,type:tD.Ko.Phone,piiWord:"phone",isHashed:v,value:t.eb_phone_number,rawLabelKey:"raw_eb_phone",hashedLabelKey:"hashed_eb_phone"});break;case"auto_email":t.auto_email=n.sha256(n.handleEmail(l));break;case"auto_phone_number":t.auto_phone_number=n.sha256(n.handlePhoneNumber(l));break;case"first_name":t.first_name=rd.isHash(l)?l:n.sha256(l);break;case"last_name":t.last_name=rd.isHash(l)?l:n.sha256(l);break;case"city":t.city=n.truncateString(l,80);break;case"state":t.state=n.truncateString(l,80);break;case"country":t.country=n.truncateString(l,80);break;default:return}}}),t.sha256_email&&(t.email=this.handleCheckHashedEmailValue(String(t.sha256_email),i)),t.sha256_phone_number&&(t.phone_number=this.handleCheckHashedPhoneValue(String(t.sha256_phone_number),i));try{window.ttq&&window.ttq._ppf&&(o.end=performance.now(),window.ttq._ppf.push(o),"identify_encryption"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}return{userProperties:t,userDataFormat:i,userDataFormatV2:a,identifierLabel:c,auto_collected_piis:u}}},r.getAutoCollectedSource=function(t,e,r){var n,o=((n={})[Y.eM.DATA_LAYER]="dl",n[Y.eM.TEXT]="ts",n),i=t?o[t]:void 0;return i?"aam_"+i+"_"+(r?"hash":"raw")+"_"+({email:"em",phone:"ph"})[e]:null},r.collectAutoPii=function(t,e,r){var n=r.triggerSource,o=r.type,i=r.piiWord,a=r.isHashed,c=r.value,u=r.rawLabelKey,s=r.hashedLabelKey;if(c){var l=this.getAutoCollectedSource(n,i,a);if(l){t.push({type:o,value:c,source:l});var f=e[a?s:u];f&&(e[l]=f)}}},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),c=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(c||{}).input:var u=null==c?void 0:c.pop();u&&eO.Ae.includes(u)&&(r[u]=[tD.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]=[tD.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,eO.X2.EMAIL_IS_HASHED,r);break;case"phone_number":e.handlePixelValidation(i,eO.X2.PHONE_IS_HASHED,r);break;case"sha256_email":e.handlePixelValidation(i,eO.X2.SHA256_EMAIL,r);break;case"sha256_phone_number":e.handlePixelValidation(i,eO.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]=[tD.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(tD.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),rO(t,"",e)},r.handleCheckHashedEmailValue=function(t,e,r){return(void 0===r&&(r=this.checkEmailFormat),e.email=e.email||[],rd.isHash(t))?(null==e||e.email.push(tD.hZ.HASHED_CORRECT),t):r(t)?(null==e||e.email.push(tD.hZ.PLAINTEXT_EMAIL),this.sha256(this.handleEmail(String(t)))):(null==e||e.email.push(tD.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||[],rd.isHash(t))?(null==e||e.phone_number.push(tD.hZ.HASHED_CORRECT),t):r(t)?(e.phone_number.push(tD.hZ.PLAINTEXT_PHONE),this.sha256(this.handlePhoneNumber(String(t),r))):(null==e||e.phone_number.push(tD.hZ.HASHED_ERR),this.sha256(t))},r.handlePixelValidation=function(t,e,r){r[e]=[],rI.includes(t)&&r[e].push(tD.Vp.FILTER_EVENTS),t&&rd.isHash(t)&&r[e].push(tD.Vp.HASHED),t&&this.checkEmailFormat(t)&&r[e].push(tD.Vp.PLAIN_EMAIL),t&&this.checkMDNEmailFormat(t)&&r[e].push(tD.Vp.PLAIN_MDN_EMAIL),t&&this.parsePhoneNumberFromString(t)&&r[e].push(tD.Vp.PLAIN_PHONE),t&&0===r[e].length&&r[e].push(tD.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?rd.isHash(t)?r.push(tD.hZ.HASHED):e(t)?r.push(tD.hZ.CORRECT_FORMAT):r.push(tD.hZ.WRONG_FORMAT):r.push(tD.hZ.EMPTY_VALUE),r},r.handleCheckEmail=function(t,e){void 0===e&&(e=this.checkEmailFormat);var r=[];return t?rd.isHash(t)?r.push(tD.hZ.HASHED):e(t)?r.push(tD.hZ.CORRECT_FORMAT):r.push(tD.hZ.WRONG_FORMAT):r.push(tD.hZ.EMPTY_VALUE),r},r.handleEmailFormat=function(t,e,r){var n=this.handleCheckEmail(String(t),this.checkEmailFormat);r&&r[e]&&(r[e]||[]).includes(tD.hZ.HASHED)||(r[e]=n)},r.handleNewPiisFormat=function(t,e,r){t&&(r[e]=[tD.hZ.CORRECT_FORMAT])},e}(rl);function rR(){rR=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rN(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function rL(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){rN(i,n,o,a,c,"next",t)}function c(t){rN(i,n,o,a,c,"throw",t)}a(void 0)})}}function rA(t,e){return(rA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rx=function(t,e){return function(r,n){e(r,n,t)}},rP=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,rA(e,t);var r,n,o=e.prototype;return o.init=function(){var t=this;return this.pluginPromise||((0,u.um)(s.O.IDENTIFY_INIT_START),this.pluginPromise=tY((0,h.vO)()).then(function(){t.detectTopics(),(0,u.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=rL(rR().mark(function t(e,r,n){return rR().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,n));case 5:case"end":return t.stop()}},t,this)})),o.handleUserProperties=function(t,e,n){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,c=t.sha256_phone,s=void 0===c?[]:c;if(r.includes(tD.Vp.UNKNOWN_INVALID)||o.includes(tD.Vp.UNKNOWN_INVALID))return void(0,u.ZK)(iM.INVALID_EMAIL_FORMAT);if(a.includes(tD.Vp.UNKNOWN_INVALID)||s.includes(tD.Vp.UNKNOWN_INVALID))return void(0,u.ZK)(iM.INVALID_PHONE_NUMBER_FORMAT);if(r.includes(tD.Vp.FILTER_EVENTS)||o.includes(tD.Vp.FILTER_EVENTS))return void(0,u.ZK)(iM.INVALID_EMAIL_INFORMATION);if(a.includes(tD.Vp.FILTER_EVENTS)||s.includes(tD.Vp.FILTER_EVENTS))return void(0,u.ZK)(iM.INVALID_PHONE_NUMBER_INFORMATION)}catch(t){}},n=rL(rR().mark(function t(){var e,r;return rR().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,u.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}(rS);rP=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),rx(0,K(g.D.CONTEXT)),rx(1,K(g.D.TTQ_REPORTERS))],rP),(iy=iJ||(iJ={})).ERROR_FORMAT="error_format",iy.OVER_LENGTH="over_length_3e4",iy.FILTER_SENSITIVE_FIELDS="filter_sensitive_fields";var rC="form_detail_error";(ig=iZ||(iZ={})).GET_ELEMENTS_ERROR="get_elements_error",ig.INIT_ERROR="init_error",ig.ASSEMBLE_FORM_DETAIL_ERROR="assemble_form_detail_error",ig.DETECT_FORM_ELEMENT_ERROR="detect_form_element_error",ig.GET_OVERALL_FORM_DETAIL_ERROR="get_overall_form_detail_error",ig.FORM_OBSERVER_ERROR="form_observer_error",ig.OVER_LENGTH="over_length_3e4",(iE=iz||(iz={})).METADATA="Metadata",iE.CLICK="Click",(ib=iQ||(iQ={})).AUTO_COLLECTION="AUTO_COLLECTION",ib.AUTO_FORM="AUTO_FORM",ib.AUTO_CLICK="AUTO_CLICK",ib.AUTO_VC="AUTO_VC",ib.AUTO_VC_REVERSE="AUTO_VC_REVERSE",(iw=i$||(i$={})).AUTO_FORM="form_rules",iw.AUTO_VC="vc_rules",iw.AUTO_VC_REVERSE="vc_rules_reverse",(iO=i0||(i0={})).PAGE_LEAVE="PageLeave",iO.PAGE_VIEW="PageView",iO.DOM_CHANGE="DomChange",iO.URL_CHANGE="UrlChange",iO.CLICK="Click",iO.SCROLL="Scroll";var rk=["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","PostalAddress","AddressLocality","StreetAddress"];(iI=i2||(i2={})).V1="v1",iI.V2="v2";var rD={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:[],VALID_LINK_PATTERNS:[/^https?:\/\//],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,MAX_INNER_TEXT_LENGTH:2e3},rM={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};(iT=i3||(i3={})).COMPOSED_PATH="composedPath",iT.FIND_PRODUCT_CARD="findProductCard",iT.CHECKOUT="checkout";var rj="checkout",rU=new Set(["destination","image_url","from"]),rF=new Set(["x","y","num_child_buttons","timestamp","xpath","tag","from","destination"]),rG=((i1={})[iK.EMAIL]=en,i1[iK.PASSPORT]=ea,i1[iK.ID_SSN]=ei,i1[iK.CREDIT_CARD]=eo,i1[iK.DRIVING_LICENSE]=ec,i1[iK.PHONE]=er,i1);function rV(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 rH(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 rH(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 rH(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var rq=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 rB(t,e){return function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];window.requestIdleCallback&&window.requestIdleCallback(t.bind.apply(t,[e].concat(n))),t.apply(e,n)}}function rK(t){var e=t.options,r=t.plugins;return e&&!1!==e.autoConfig&&r&&r[oh]}function rW(t,e){if(!i$[e])return!0;var r=t.plugins;return e===iQ.AUTO_VC_REVERSE?rK(t)&&r[oh]&&!r[oh][i$.AUTO_VC]:rK(t)&&r[oh]&&r[oh][i$[e]]}function rY(t){if(!t)return!1;var e=t.toLowerCase();return Array.from(rD.VALID_IMG_KEYWORDS).some(function(t){return e.includes(t)})&&!Array.from(rD.INVALID_IMG_KEYWORDS).some(function(t){return e.includes(t)})}function rX(t){var e;return!!t&&t instanceof Element&&rD.TERMINATION_TAGS.has(null==(e=t.tagName)?void 0:e.toUpperCase())}function rJ(t){return new Set(t.className.split(/\s+/).filter(Boolean))}function rZ(t,e,r){if(void 0===r&&(r=new Set([])),0===t.size&&0===e.size)return 1;if(0===t.size||0===e.size)return 0;function n(t){var e=Array.from(r);return new Set(Array.from(t).filter(function(t){return!e.some(function(e){return t.includes(e)})}))}var o,i,a=n(t),c=n(e),u=a[Symbol.iterator](),s=c[Symbol.iterator](),l=0,f=0;do{if(o=u.next(),i=s.next(),!o.value||!i.value)break;o.value===i.value||c.has(o.value)||2>=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 c=1;c<=r;c++)for(var u=1;u<=n;u++)t[c-1]===e[u-1]?o[c][u]=o[c-1][u-1]:o[c][u]=Math.min(o[c-1][u]+1,o[c][u-1]+1,o[c-1][u-1]+1);return o[r][n]}(o.value,i.value)?(l++,f+=1):f+=2}while(!o.done||!i.done);return l/f}function rz(t){if(!t)return null;for(var e,r=rV(rD.DYNAMIC_IMAGE_ATTRS);!(e=r()).done;){var n=e.value,o=t.getAttribute(n);if(o&&rY(o))return o}if(t.src&&rY(t.src))return t.src;var i=t.getAttribute("srcset");if(i){var a=i.split(",").find(function(t){return rY(t.trim().split(" ")[0])});if(a)return a.split(" ")[0]}return null}function rQ(t){if(!(t instanceof HTMLAnchorElement))return null;var e=t.href;return!function(t){if(!t)return!1;var e=t.trim();return rD.VALID_LINK_PATTERNS.some(function(t){return new RegExp(t).test(e)})&&!rD.INVALID_LINK_PATTERNS.some(function(t){return new RegExp(t).test(e)})}(e)?null:e}function r$(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var r0=h.$9?new WeakSet:new Set,r1=!1;function r2(t){var e=r3(t.innerText).toUpperCase();if(!t||""==e)return!1;for(var r=Array.from(rM.MONEY_SYMBOLS),n=0;n<r.length;n++){var o=r[n];if(e.includes(o))return!0}return!1}function r3(t){return t?t.replace(/\n/g," ").replace(/\s+/g," ").trim():""}function r6(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 r5(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 r5(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 r5(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var r8=function(t){var e=t.parentNode,r=0,n=!1;try{n=(0,h.iK)(t)}catch(e){(0,u.vU)(s.O.CUSTOM_ERROR,e,{custom_name:"button_check_error",custom_enum:"auto_click",extJSON:{element:t}}),n=!1}if(n)return{buttonFlag:!0,triggerElement:t};for(;r<5&&e&&e!==document;){var o=!1;try{o=(0,h.iK)(e)}catch(e){(0,u.vU)(s.O.CUSTOM_ERROR,e,{custom_name:"button_check_error",custom_enum:"auto_click",extJSON:{element:t}}),o=!1}if(o)return{buttonFlag:!0,triggerElement:e};e=e.parentNode,r++}return{buttonFlag:!1,triggerElement:t}},r4=function t(e){for(var r=0,n=e.children,o=0;o<n.length;o++){var i=n[o],a=!1;try{a=(0,h.iK)(i)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"button_check_error",custom_enum:"auto_click",extJSON:{element:i}}),a=!1}a&&r++,r+=t(i)}return r},r9=function(t){var e,r,n,o,i="";if("A"===t.tagName.toUpperCase())i=null!=(e=t.getAttribute("href"))?e:"";else if("BUTTON"===t.tagName.toUpperCase()){var a=null!=(r=t.getAttribute("onclick"))?r:"",c=null!=(n=t.getAttribute("formaction"))?n:"",u=a.match(/^.*=(['"])(.*)\1.*$/);c?i=c:u&&(i=u[2])}else"FORM"===t.tagName.toUpperCase()&&(i=null!=(o=t.getAttribute("action"))?o:"");return i},r7=function(t,e){void 0===e&&(e=!0);for(var r,n,o,i,a,c,l,f=t.attributes,h={type:"",value:"",name:"",class:"",dataset:"",id:"",tag:"",destination:"",xpath:"",inner_text:"",image_url:"",num_child_buttons:0},p=0;p<f.length;p++){var d=f[p];h[d.name]=d.value}h.dataset=JSON.stringify(t.dataset),h.id=null!=(r=t.id)?r:"",h.class=null!=(n=t.className)?n:"",h.tag=t.tagName,h.destination=r9(t),h.name=null!=(o=t.getAttribute("name"))?o:"",h.value=null!=(i=t.getAttribute("value"))?i:"",h.type=null!=(a=t.getAttribute("type"))?a:"",h.rect=t.getBoundingClientRect();try{h.xpath=rq(t)}catch(e){h.xpath="",(0,u.vU)(s.O.CUSTOM_ERROR,e,{custom_name:"button_check_error",custom_enum:"auto_click",extJSON:{element:t}})}return h.inner_text=null!=(c=t.innerText)?c:"",h.image_url=null!=(l=t.getAttribute("src"))?l:"",h.num_child_buttons=e?r4(t):0,h},nt=function(t){var e=t.tag,r=t.class,n=t.destination,o=t.id,i=t.name,a=t.type,c=t.value,u=t.rect,s=t.xpath,l=t.inner_text,f=t.image_url,h={tag:e,attributes:{},inner_text:l,xpath:s,num_child_buttons:t.num_child_buttons,timestamp:new Date().toISOString(),position:u?{x:u.x,y:u.y}:{x:"",y:""}};return r&&(h.attributes.class=r),n&&(h.attributes.destination=n),o&&(h.attributes.id=o),i&&(h.attributes.name=i),a&&(h.attributes.type=a),c&&(h.attributes.value=c),f&&(h.image_url=f),h};function ne(t){if(!t)return null;for(var e,r=Array.from(t.querySelectorAll("a")),n=r.filter(function(t){return 0!==t.getElementsByTagName("img").length}),o=r6(n);!(e=o()).done;){var i=rQ(e.value);if(i)return i}for(var a=0;a<r.length;a++){var c=r[a];if(!n.includes(c)){var u=rQ(c);if(u)return u}}return null}function nr(t,e){if(void 0===e&&(e={RequiredLinkData:!1,RequiredImageData:!1,RequiredWeightAndHeight:!0}),!(t instanceof HTMLElement)||!t.tagName||rX(t)||rD.SKIP_ELEMENT.has(null==(r=t.tagName)?void 0:r.toUpperCase())||!t.parentNode||e.RequiredWeightAndHeight&&1!=nn(t))return!1;var r,n=function(t,e){if(!t||!t.parentElement||e<=0)return[];var r=Array.from(t.parentElement.children).filter(function(e){return e instanceof HTMLElement&&e.tagName==t.tagName}),n=r.indexOf(t);if(-1===n)return[];var o=r.length-n-1,i=Math.min(Math.ceil(e/2),n),a=Math.min(e-i,o);i+a<e&&(i=Math.min(e-a,n));for(var c=[],u=1;u<=i;u++)c.push(r[n-u]);for(var s=[],l=1;l<=a;l++)s.push(r[n+l]);return[].concat(c,s).slice(0,e)}(t,rD.SIBLING_NODE_COUNT_THRESHOLD);if(e.RequiredWeightAndHeight&&(n=n.filter(function(t){return 1==nn(t)})),0===n.length)return!1;var o=t.offsetWidth,i=t.offsetHeight,a=rJ(t),c=n.slice(0,rD.SIBLING_NODE_COUNT_THRESHOLD).reduce(function(t,r){var n=Math.abs(r.offsetWidth-o)/o,c=Math.abs(r.offsetHeight-i)/i,u=rZ(a,rJ(r),rD.EXCLUDE_CLASSES);return e.RequiredWeightAndHeight?n<=rD.SIMILAR_WIDTH_THRESHOLD&&c<=rD.SIMILAR_HEIGHT_THRESHOLD&&u>=rD.SIBLING_SIMILARITY_THRESHOLD?t+1:t-1:u>=rD.SIBLING_SIMILARITY_THRESHOLD?t+1:t-1},0),u=t.getElementsByTagName("a").length>0,s=t.getElementsByTagName("img").length>0;return e.RequiredLinkData?c>=0&&u:e.RequiredImageData?c>=0&&s:c>0&&(u||s)}function nn(t){if(!t)return 0;var e=window.innerHeight||document.documentElement.clientHeight;return t.offsetHeight/e>rD.HIGH_SIZE_THRESHOLD?2:t.offsetHeight<rD.MIN_SIZE_ABSOLUTE_VALUE?0:1}var no={getMicroData:!0,getJSONLD:!0,getOpenGraph:!0,getMetaData:!0};function ni(t,e){return(void 0===e&&(e=500),"string"!=typeof t)?"":(t=t.trim()).length<e?t:t.slice(0,500)}function na(t){return void 0===t&&(t=[]),{items:t,has:function(t){return this.items.some(function(e){return e===t})},add:function(t){this.has(t)||this.items.push(t)}}}function nc(t,e){if("object"!=typeof t)return t;if(Array.isArray(t))return t.map(function(t){return nc(t,e)});var r={};for(var n in t)!function(t,e){return!!e&&e.length>0&&e.some(function(e){return t.toLowerCase()===e.toLowerCase()})}(n,e)&&(r[n]=nc(t[n],e));return r}function nu(t){return Array.isArray(t)?t.some(function(t){return nu(t)}):"string"==typeof t&&(t=t.toLowerCase().replace(/https?:\/\/schema\.org\//,""),rk.some(function(e){return t===e.toLowerCase()}))}var ns=["form","[id*=form], [class*=form]"],nl=["label"],nf=["input,select,textarea"],nh=["radio","checkbox"],np=["hidden","reset","submit","password"];function nd(t,e){try{for(var r=0;r<t.length;r++){var n=e.querySelectorAll(t[r]);if(n&&n.length>0)return Array.from(n)}return[]}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rC,custom_enum:iZ.GET_ELEMENTS_ERROR}),[]}}function nv(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 n_(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 nm(t){var e=t.getAttribute("type");return!!e&&np.indexOf(e)>-1}function ny(t){return t&&(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi.test(t)||/(\+?0?86-?)?1[3-9]\d{9}/g.test(t)||/(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}/g.test(t)||/^[\-!$><-==&_\/\?\.,0-9:; \]\[%~\"\{\}\)\(\+\@\^\`]/g.test(t)||rk.some(function(e){return t.toLowerCase().indexOf(e.toLowerCase())>-1}))?"__Text__":t}(iS=i6||(i6={}))[iS.CONTAIN=0]="CONTAIN",iS[iS.ID=1]="ID",iS[iS.SELECTOR=2]="SELECTOR";var ng=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[i$.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,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rC,custom_enum:iZ.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,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rC,custom_enum:iZ.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,h.Ds)(function(){var n=r.assembleFormDetail(t);(!t.formDetail||n&&(0,h.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,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rC,custom_enum:iZ.FORM_OBSERVER_ERROR})}},e.detectFormElement=function(){try{var t,e,r=[0,0,0],n=(t=this.rules,(e=nd(t||ns,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,nd(nl,e)),i=new Set([]);o.forEach(function(e){var n=function(t,e){var r=nd(nf,t);if(r&&r.length)return{els:r,from:i6.CONTAIN};var n=t.getAttribute("for");if(n&&(r=nd(["input[id='"+n+"'],select[id='"+n+"'],textarea[id='"+n+"']"],e)))return{els:r,from:i6.ID};return!1}(e,t.el);if(n){var o=n.els,a=n.from,c=o.filter(function(t){return!nm(t)}).map(function(t){return i.add(t),{el:t,from:a}});c&&c.length&&(r[a]=1,t.questions.push({el:e,answers:c}))}}),(n=t.el,nd(nf,n)).filter(function(t){return!nm(t)}).forEach(function(e){if(!i.has(e)){r[i6.SELECTOR]=1;var n,o=(n=t.el,function t(e){return null==e||e.isSameNode(n)?n:nv(e).length>0?e:t(e.parentNode)}(e.parentNode));t.questions.push({el:o,answers:[{el:e,from:i6.SELECTOR}]})}})}),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"form_detail_answer_from",custom_enum:r.join("")}),o}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rC,custom_enum:iZ.DETECT_FORM_ELEMENT_ERROR}),[]}},e.calculateQuestionFilledTime=function(t){var e=t.el,r=t.answers,n=rq(e),o=r.reduce(function(t,e){var r=e.el,n=r.getAttribute("type");return n&&nh.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,c=i.filledTime;return(this.answerMap[n].value=o,a===o)?void delete this.answerMap[n].filledTime:c||(this.answerMap[n].filledTime=+new Date)},e.assembleFormDetail=function(t){var e=this,r=t.el,n=t.questions;try{var o={xpath:rq(r),id:r.id,name:ny(r.getAttribute("name")),tag:r.tagName.toLowerCase(),class_name:r.className,questions:[],width:r.offsetWidth,height:r.offsetHeight,is_visible:n_(r)};return o.questions=n.map(function(t){var r=t.el,n=t.answers,o={xpath:rq(r),id:r.id,name:ny(nv(r)),tag:r.tagName.toLowerCase(),class_name:r.className,filled_time:e.calculateQuestionFilledTime(t),answers:[],width:r.offsetWidth,height:r.offsetHeight,is_visible:n_(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:rq(t),id:t.id,name:ny(t.value||t.innerText),tag:t.tagName.toLowerCase(),class_name:t.className,from:r,width:t.offsetWidth,height:t.offsetHeight,is_visible:n_(e)}})):o.answers.push({xpath:rq(e),id:e.id,name:ny(e.getAttribute("name")),tag:e.tagName.toLowerCase(),class_name:e.className,input_type:e.getAttribute("type"),placeholder:ny(e.getAttribute("placeholder")),from:r,width:e.offsetWidth,height:e.offsetHeight,is_visible:n_(e)})}),o}),o}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rC,custom_enum:iZ.ASSEMBLE_FORM_DETAIL_ERROR});return}},t}(),nE=["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()}),nb=["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 nw(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 nO(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 nO(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 nO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var nI=["firstidxpath","absolutexpath","threeleveltagclassxpath"],nT=["modelxpath"],nS=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:"updateParameterInferenceData",start:performance.now()}}catch(t){}try{var n=t.getPageInfo(),o=nC(n.url,e);n.url.includes("checkout")&&o&&nU(o,n.url,e),o&&nP(o)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData"})}try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}},nR=function(t){try{var e=t.plugins&&t.plugins.AutoConfig;return e&&e.vc_rules}catch(t){return}},nN=function(t){try{if(!t)return null;for(var e,r=nw(t);!(e=r()).done;){var n=e.value;if(n.parameter_enhancement)return n.parameter_enhancement}}catch(t){t(s.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"getEnhancementRules"})}return null},nL=function(t){var e;try{if(!t)return null;var r=null,n=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(n){var o=(null==(e=n.textContent)?void 0:e.trim())||null;o&&(r=o)}return r}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"getEnhancementRuleDataByXPath"}),null}},nA=function(t){if(!t)return null;var e=t.split("|||").filter(function(t){return""!==t});if(e.length<2)return null;var r=e[0],n=e[1],o=e[2];return{pattern:r,replacement:n,flags:void 0===o?"":o}},nx=function(t,e){if(!t)return null;for(var r,n=null,o=nw(e);!(r=o()).done&&!(n=nL(t[r.value])););if(!n)return null;var i=n,a=(null==t?void 0:t.format_method)&&nA(t.format_method);if(a)try{var c=a.pattern,l=a.replacement,f=a.flags,h=new RegExp(c,f);i=n.replace(h,l)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"parseFormatMethod"})}var p=Object.assign({},t,{parameterOriValue:n,parameterValue:i});return nI.forEach(function(t){delete p[t]}),nT.forEach(function(t){delete p[t]}),p},nP=function(t){try{var e=nN(t);if(!e)return null;var r={};for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];if(o){var i=void 0;(i=(i=nx(o.helper_rule,nI))&&i.parameterValue?i:nx(o.model_rule,nT))&&(r[n]=Object.assign({},i),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"updateParameterInferenceData",custom_enum:"enhancement_rule_result",extJSON:{message:JSON.stringify(o)+"||"+JSON.stringify(i)}}))}}return nF(nq,r),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"updateParameterInferenceData",custom_enum:"enhancement_properties",extJSON:{message:""+JSON.stringify(r)}}),Object.keys(r).length>0?r:null}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"enhancement_parameter_inference"}),null}},nC=function(t,e){var r=null;for(var n in e)if(t.includes(n))return e[n];return null},nk=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<i.length;a++){var c=i[a];c instanceof HTMLElement&&/\d/.test(c.innerText)&&(o=c)}return o}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"getLastElementWithNumber"}),null}}(t,e),n=null==r?void 0:r.textContent;return{priceNumberString:n?function(t){var e=t.match(/(?:\d[\d\s,.]*\d|\d)/g);if(e){for(var r,n,o,i,a=e[0],c=nw(e);!(i=c()).done;)if(i.value!==a)return null;return r=a.replace(/[\s,\.]/g,""),n=Math.max(a.lastIndexOf("."),a.lastIndexOf(",")),o=!1,-1!==n&&n>=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}},nD=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())?nb.includes(r.toUpperCase().trim()):null)?null==r?void 0:r.toUpperCase().trim():null;return{currencyCode:r,currencyCodeFromeXpath:n}},nM=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())?nE.includes(r.toUpperCase().trim()):null)?null==r?void 0:r.toUpperCase().trim():null;return{countryCode:r,countryCodeFromXpath:n}},nj=function(t){try{var e=new URL(t).hostname.split(".");for(var r in e)if(nE.includes(e[r].toUpperCase()))return e[r].toUpperCase()}catch(t){}return null},nU=function(t,e,r){try{if(t)for(var n,o=nw(t);!(n=o()).done;){var i=n.value;if(i.valueXpath&&i.currency&&i.currency.val){var a=i.currency.val,c=nk(i.valueXpath,i.currency.val),l=c.textContent,f=c.priceNumberString;if(f&&l){var h=nD(i.currency.xpath),p=h.currencyCode,d=h.currencyCodeFromeXpath;p&&(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"auto_value_currency_currency_code_form_xpath",extJSON:{url:e,currencyCode:p,vcConfig:r}});var v=nM(i.countryCodeXpath),_=v.countryCode,m=v.countryCodeFromXpath;_&&(0,u.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=nj(e)),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"auto_value_currency_update_info",extJSON:{url:e,autoProperties:y,vcConfig:r}}),nF(nH,y),y}}}return null}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"updateAutoVCData"}),null}},nF=function(t,e){try{sessionStorage.setItem(t,JSON.stringify(e))}catch(t){}},nG=function(t){try{var e=sessionStorage.getItem(t);return e?JSON.parse(e):null}catch(t){return null}},nV=function(t){try{sessionStorage.removeItem(t)}catch(t){}},nH="value_currency_rule",nq="parameter_inference_rule",nB=[i0.CLICK,i0.SCROLL],nK=function(){function t(t){var e=this;this.handlerArray=t,nB.forEach(function(t){window.addEventListener(t.toLowerCase(),(0,h.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}(),nW=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}(),nY=function(){function t(t,e,r,n){this.context=t,this.reportHistory=new nW,this.reporters=e,this.reportService=r,this.ttqOptions=n}var e=t.prototype;return e.report=function(t,e,r){var n=this,o=t$(iF.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,iV.defaultReport,iH.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!!rK(e)&&rW(e,t)}).filter(function(e){var o=e.getReporterId();return!([iQ.AUTO_COLLECTION,iQ.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=tF(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(tH(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()}),c=this.context.getPageSign(),u=(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(),"",{},{},iF.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=c.pageIndex)?void 0:i.index,l.context.session_id=c.sessionId,l.context.pageview_id=(0,tg.gj)(this.context.getPageViewId(),s.reporterInfo.loadId,Y.n2),l.context.sessions=u,l.message_id=l.message_id.replace(/-[^-]*$/,""),l}},t}(),nX=["form",'[id*="form" i]','[class*="form" i]','[id*="lead" i]','[class*="lead" i]','[id*="contact" i]','[class*="contact" i]'],nJ=["input[type=submit]","button[type=submit]"],nZ=/submit|send|apply|contact|lead/i,nz=/mail/i,nQ=/phone|mobile|tel/i,n$=/search/i,n0=/password/i,n1={FIELD_ACTIVATION:"field_activation",FIELD_EXTRA:"field_extra",SUBMIT_STRONG:"submit_strong",SUBMIT_WEAK:"submit_weak",NATIVE_FORM:"native_form",EMAIL:"email",PHONE:"phone",VISIBLE:"visible",STRONG_FORM_PASSWORD:"strong_form_password",WEAK_FORM_PASSWORD:"weak_form_password",STRONG_FORM_SEARCH:"strong_form_search",WEAK_FORM_SEARCH:"weak_form_search",ZERO_SIZE:"zero_size",ZERO_FIELD:"zero_field"},n2=((i5={})[n1.FIELD_ACTIVATION]=4,i5[n1.FIELD_EXTRA]=2,i5[n1.SUBMIT_STRONG]=5,i5[n1.SUBMIT_WEAK]=2,i5[n1.NATIVE_FORM]=5,i5[n1.EMAIL]=12,i5[n1.PHONE]=12,i5[n1.VISIBLE]=5,i5[n1.STRONG_FORM_SEARCH]=-15,i5[n1.WEAK_FORM_SEARCH]=-50,i5[n1.ZERO_SIZE]=-50,i5[n1.ZERO_FIELD]=-30,i5[n1.WEAK_FORM_PASSWORD]=-30,i5[n1.STRONG_FORM_PASSWORD]=-15,i5),n3={FORM_VISIBLE:"form_visible",START_FILL_FORM:"start_fill_form",KEY_FIELD_FILL:"key_field_fill"},n6="form_funnel",n5="default_id";function n8(t){return"form"===t.tagName.toLowerCase()}function n4(t){return t.querySelectorAll('input:not([type="hidden"]), textarea, select').length}function n9(t){try{if(!1===t.isTrusted)return!1;return t.composedPath().some(function(t){if(!(t instanceof HTMLElement))return!1;var e=t.tagName;return!!("INPUT"===e||"TEXTAREA"===e||"SELECT"===e||"BUTTON"===e||"A"===e&&/btn|submit|apply/i.test(t.className))||"LABEL"===e||"button"===t.getAttribute("role")})}catch(t){return!1}}(iR=i8||(i8={})).INIT="init",iR.CLICK="click",iR.SCROLL="scroll";var n7=function(){function t(t,e){this.visibleReported=!1,this.firstInteractReported=!1,this.keyInputInteractReported={phone:!1,email:!1},this.formId=t,this.root=e}var e=t.prototype;return e.updateRoot=function(t){this.root=t},e.destroy=function(){this.visibleTimer&&clearTimeout(this.visibleTimer)},e.handleScroll=function(){return this.checkVisible(i8.SCROLL),!0},e.handleClick=function(t){try{var e=t.composedPath().filter(function(t){return t instanceof HTMLElement});if(!e.includes(this.root))return!1;return this.checkVisible(i8.CLICK),this.handleFirstInteract(t),this.handleInputInteract(e),!0}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:n6,custom_enum:"handle_click",extJSON:{message:this.formId+"|"+(0,l.er)()}}),!1}},e.checkVisible=function(t){var e=this;try{if(this.visibleReported||!this.isInViewport())return;if(t===i8.CLICK)return void this.reportVisible();if(this.visibleTimer)return;this.visibleTimer=setTimeout(function(){try{e.visibleTimer=void 0,!e.visibleReported&&e.isInViewport()&&e.reportVisible()}catch(t){}},500)}catch(e){(0,u.vU)(s.O.CUSTOM_ERROR,e,{custom_name:n6,custom_enum:"check_visible",extJSON:{message:t+"|"+this.formId+"|"+(0,l.er)()}})}},e.reportVisible=function(){this.visibleReported||(this.visibleReported=!0,this.report(n6,n3.FORM_VISIBLE))},e.handleFirstInteract=function(t){try{if(this.firstInteractReported||!n9(t))return;this.firstInteractReported=!0,this.report(n6,n3.START_FILL_FORM)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:n6,custom_enum:n3.START_FILL_FORM,extJSON:{message:this.formId+"|"+(0,l.er)()}})}},e.handleInputInteract=function(t){try{if(this.keyInputInteractReported.phone&&this.keyInputInteractReported.email)return;var e=null;if(!(e=t.find(function(t){return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement})||null)){var r=t.find(function(t){return t instanceof HTMLLabelElement});r&&(r.htmlFor&&(e=document.getElementById(r.htmlFor)),e||(e=r.querySelector("input,textarea")))}if(!e){var n=document.activeElement;(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&this.root.contains(n)&&(e=n)}if(!e)return;var o=[e.name,e.id,e.placeholder,e.type,e.title,e.className,e.getAttribute("aria-label")].filter(Boolean).join(" "),i=null;if("email"===e.type||/mail/i.test(o)?i="email":("tel"===e.type||/phone|mobile/i.test(o))&&(i="phone"),!i)return;this.keyInputInteractReported[i]||(this.keyInputInteractReported[i]=!0,this.report(n6,n3.KEY_FIELD_FILL,i))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:n6,custom_enum:n3.KEY_FIELD_FILL,extJSON:{message:this.formId+"|"+(0,l.er)()}})}},e.isInViewport=function(){var t=this.root.getBoundingClientRect();return t.width>0&&t.height>0&&t.bottom>0&&t.right>0&&t.top<window.innerHeight&&t.left<window.innerWidth},e.report=function(t,e,r){(0,u.um)(s.O.CUSTOM_INFO,{custom_name:t,custom_enum:e,extJSON:{message:this.formId+"|"+(0,l.er)()+"|"+(r||"")}},!1,!0)},t}(),ot=function(){function t(){this.weakMap=new WeakMap,this.fingerprintMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map,this.beginFormIdSeed=0}var e=t.prototype;return e.resolve=function(t){var e=this.weakMap.get(t);if(e)return e;var r=this.computeFingerprint(t),n=this.fingerprintMap.get(r);if(n)return this.weakMap.set(t,n),n;var o=this.generateFormId();return this.weakMap.set(t,o),this.fingerprintMap.set(r,o),o},e.computeFingerprint=function(t){try{var e=t.getBoundingClientRect(),r=[Math.round(e.top/20),Math.round(e.left/20),Math.round(e.width/20),Math.round(e.height/20)].join("_"),n=t.querySelectorAll("input,textarea,select"),o={};n.forEach(function(t){var e=t.tagName.toLowerCase();o[e]=(o[e]||0)+1});for(var i=Object.entries(o).sort().map(function(t){var e=t[0],r=t[1];return e+":"+r}).join("|"),a=0,c=t;c;)a++,c=c.parentElement;return[t.tagName,r,i,Math.floor(a/3)].join("::")}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:n6,custom_enum:"resolver_computerFingerprint"}),n5}},e.generateFormId=function(){return"form_"+ ++this.beginFormIdSeed},t}();function oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var or=function(){function t(t,e){this.TOP_K=0,this.MIN_SCORE_THRESHOLD=0,this.TOP_K=t,this.MIN_SCORE_THRESHOLD=e}var e=t.prototype;return e.score=function(t){var e=this;try{return t.map(function(t){return e.scoreSingle(t)}).filter(function(t){return t.score>=e.MIN_SCORE_THRESHOLD}).sort(function(t,e){return e.score-t.score}).slice(0,this.TOP_K)}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:n6,custom_enum:"scorer_score"}),[]}},e.scoreSingle=function(t){try{var e=this.extractFeatures(t),r=this.calculateScore(e);return{el:t,score:r,breakdown:e}}catch(e){return(0,u.vU)(s.O.CUSTOM_ERROR,e,{custom_name:n6,custom_enum:"scorer_scoreSingle",extJSON:{message:(t?null==t?void 0:t.className:"")+"|"+(t?null==t?void 0:t.id:"")}}),{score:0,el:t,breakdown:null}}},e.extractFeatures=function(t){var e=Array.from(t.querySelectorAll("input,select,textarea")).filter(function(t){return t&&(null==t?void 0:t.type)!=="hidden"&&!(null==t?void 0:t.disabled)}),r=t.getBoundingClientRect();return{fieldCount:e.length,submiButtontLevel:this.detectSubmit(t),hasEmail:this.detectEmail(e),hasPhone:this.detectPhone(e),hasPassword:e.some(function(t){return"password"===t.type||n0.test(t.className||"")}),hasSearch:e.some(function(t){return"search"===t.type||n$.test(t.className||"")}),isForm:"FORM"===t.tagName,visible:r.width>50&&r.height>50,zeroSize:0===r.width||0===r.height,scoreMap:{}}},e.calculateScore=function(t){try{var e=0,r=function(r,n){0!==n&&(t.scoreMap[r]=n),e+=n};if(t.fieldCount>=1){r(n1.FIELD_ACTIVATION,n2[n1.FIELD_ACTIVATION]);var n=Math.min(t.fieldCount-1,2);n>0&&r(n1.FIELD_EXTRA,n*n2[n1.FIELD_EXTRA])}else r(n1.ZERO_FIELD,n2[n1.ZERO_FIELD]);return"strong"===t.submiButtontLevel?r(n1.SUBMIT_STRONG,n2[n1.SUBMIT_STRONG]):"weak"===t.submiButtontLevel&&r(n1.SUBMIT_WEAK,n2[n1.SUBMIT_WEAK]),t.isForm&&r(n1.NATIVE_FORM,n2[n1.NATIVE_FORM]),t.hasEmail&&r(n1.EMAIL,n2[n1.EMAIL]),t.hasPhone&&r(n1.PHONE,n2[n1.PHONE]),t.visible&&r(n1.VISIBLE,n2[n1.VISIBLE]),t.zeroSize&&r(n1.ZERO_SIZE,n2[n1.ZERO_SIZE]),t.hasPassword&&t.hasPhone?r(n1.STRONG_FORM_PASSWORD,n2[n1.STRONG_FORM_PASSWORD]):t.hasPassword&&r(n1.WEAK_FORM_PASSWORD,n2[n1.WEAK_FORM_PASSWORD]),t.hasSearch&&t.hasPhone?r(n1.STRONG_FORM_SEARCH,n2[n1.STRONG_FORM_SEARCH]):t.hasSearch&&r(n1.WEAK_FORM_SEARCH,n2[n1.WEAK_FORM_SEARCH]),e}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:n6,custom_enum:"scorer_calculateScore"}),0}},e.detectSubmit=function(t){for(var e,r=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 oe(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 oe(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.")}(nJ);!(e=r()).done;){var n=e.value;if(t.querySelector(n))return"strong"}for(var o=Array.from(t.querySelectorAll("button,a,[role=button]")),i=0;i<o.length;i++){var a=o[i],c=((null==a?void 0:a.textContent)||"").toLowerCase(),u=((a.id||"")+" "+(a.className||"")).toLowerCase();if(nZ.test(c+u))return"strong"}return o.length>0?"weak":"none"},e.detectEmail=function(t){return t.some(function(t){return"email"===t.type||nz.test((t.name||"")+(t.id||"")+(t.placeholder||"")+((null==t?void 0:t.className)||""))})},e.detectPhone=function(t){return t.some(function(t){return"tel"===t.type||nQ.test((t.name||"")+(t.id||"")+(t.placeholder||"")+((null==t?void 0:t.className)||""))})},t}(),on=function(){function t(){}var e=t.prototype;return e.scan=function(){try{var t=[],e=this.getExplicitRoots();if(t.push.apply(t,e),0===t.length){var r=this.getFallbackRoots();t.push.apply(t,r)}return this.normalizeRoots(t)}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:n6,custom_enum:"scanner_scan"}),[]}},e.getExplicitRoots=function(){try{var t=new Set;return nX.forEach(function(e){try{var r=document.querySelectorAll(e);r.length<=100&&r.forEach(function(e){t.add(e)})}catch(t){}}),Array.from(t)}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:n6,custom_enum:"scanner_get_explicit_roots"}),[]}},e.getFallbackRoots=function(){return[]},e.normalizeRoots=function(t){if(!t.length)return[];var e=this.filterRootCandidates(t);if(e.length<=1)return e;var r=new Set;return this.resolveContainment(e,r),e.filter(function(t){return!r.has(t)})},e.filterRootCandidates=function(t){return t.filter(function(t){try{return["FORM","DIV","SECTION","ARTICLE","ASIDE","MAIN","NAV","HEADER","FOOTER"].includes(t.tagName)}catch(t){return!1}})},e.resolveContainment=function(t,e){try{for(var r=0;r<t.length;r++){var n=t[r];if(!e.has(n))for(var o=0;o<t.length;o++){if(r!==o){var i=t[o];!e.has(i)&&n.contains(i)&&(this.resolveFormPriority(n,i,e)||this.resolveFieldAggregation(n,i,e))}}}}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:n6,custom_enum:"scanner_resolve_containment"})}},e.resolveFormPriority=function(t,e,r){var n=n8(t),o=n8(e);return o&&!n?(r.add(t),!0):!!n&&!o&&(r.add(e),!0)},e.resolveFieldAggregation=function(t,e,r){if(!(n8(t)||n8(e))){var n=n4(t),o=n4(e);if(n===o)return void r.add(t);n>o&&r.add(e)}},t}();function oo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var oi=function(){function t(){this.interactors={},this.hasReportPerformance=!1,this.scanner=new on,this.scorer=new or(3,18),this.identity=new ot,this.init()}var e=t.prototype;return e.init=function(){this.subscribeEvents(),this.refreshForms(i8.INIT),this.dispatchVisible(i8.INIT)},e.subscribeEvents=function(){var t=this;(0,_.o5)(m.PG.CLICK,function(e){return t.handleClick(e)},{throttle:!0,interval:500}),(0,_.o5)(m.PG.SCROLL,function(){return t.handleScroll()},{throttle:!0,interval:1e3,trailing:!0}),(0,_.o5)(m.Cr.URL_CHANGE,function(){t.refreshForms(i8.INIT),t.dispatchVisible(i8.INIT)},{throttle:!0,interval:500}),(0,_.o5)(m.Cr.LCP,function(){t.refreshForms(i8.INIT)},{})},e.handleScroll=function(){var t=this;Object.keys(this.interactors).forEach(function(e){t.interactors[e].handleScroll()})},e.handleClick=function(t){var e=this;!1!==t.isTrusted&&(!0===n9(t)&&this.refreshForms(i8.CLICK),Object.keys(this.interactors).forEach(function(r){e.interactors[r].handleClick(t)}))},e.dispatchVisible=function(t){var e=this;Object.keys(this.interactors).forEach(function(r){e.interactors[r].checkVisible(t)})},e.refreshForms=function(t){var e=this;try{for(var r,n=performance.now(),o=this.scanner.scan(),i=this.scorer.score(o),a={},c=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 oo(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 oo(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.")}(i);!(r=c()).done;){var l=r.value.el,f=this.identity.resolve(l);if(f!==n5)if(this.interactors[f]){var h=this.interactors[f];h.updateRoot(l),a[f]=h}else a[f]=new n7(f,l)}Object.keys(this.interactors).forEach(function(t){a[t]||e.interactors[t].destroy()}),this.interactors=a;var p=performance.now();this.hasReportPerformance||t===i8.INIT||(this.hasReportPerformance=!0,(0,u.um)(s.O.CUSTOM_INFO,{custom_name:n6,custom_enum:"performance_refresh_forms",extJSON:{message:""+(p-n)}}))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:n6,custom_enum:"refresh_forms"})}},t}();function oa(){oa=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function oc(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function ou(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){oc(i,n,o,a,c,"next",t)}function c(t){oc(i,n,o,a,c,"throw",t)}a(void 0)})}}function os(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ol(t,e){return(ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var of=function(t,e){return function(r,n){e(r,n,t)}},oh="AutoConfig",op="tt_auto_config_v2_test",od=[8,12],ov=["7039626978839838722"],o_=function(t){function e(e,r,n,o){var i,a,c,l;(i=t.call(this,{name:oh,reporters:r,context:e})||this).autoCollectedMetadata={},i.initializeVersion1=!1,i.initializeVersion2=!1,i.intent_data=[],i.currentPixelCode="",i.hasFormFunnelInit=!1,i.autoFormUpdateHandler=(0,h.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,u.vU)(s.O.CUSTOM_ERROR,{message:""+String(i.autoCollectedFormDetail.length)},{custom_name:rC,custom_enum:iZ.OVER_LENGTH});i.actTracker.report(iz.METADATA,iQ.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,os(i)),i.autoCollectionUpdateHandler=(0,h.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(!no.getMetaData)return"[]";for(var t=document.querySelectorAll("[itemscope]"),e=[],r=na(),n=0;n<t.length;n++)r.add(t[n]);for(var o=t.length-1;o>=0;o--){var i=t[o],a=i.getAttribute("itemtype");if("string"==typeof a&&""!==a){for(var c={},u=i.querySelectorAll("[itemprop]"),s=0;s<u.length;s++){var l=u[s];if(!r.has(l)){r.add(l);var f=l.getAttribute("itemprop");if("string"==typeof f&&""!==f){var h=function(t){var e;switch(t.tagName.toLowerCase()){case"meta":e=t.getAttribute("content");break;case"audio":case"embed":case"iframe":case"img":case"source":case"track":case"video":e=t.getAttribute("src");break;case"a":case"area":case"link":e=t.getAttribute("href");break;case"object":e=t.getAttribute("data");break;case"data":case"meter":e=t.getAttribute("value");break;case"time":e=t.getAttribute("datetime");break;default:e=function(t){if(t){if(t.innerText&&t.innerText.length>0)return t.innerText;if(t.textContent&&t.textContent.length>0)return t.textContent}return""}(t)||""}return"string"==typeof e?ni(e):""}(l);if(null!=h){var p=c[f];null!=p&&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(p)?c[f].push(h):c[f]=[p,h]:c[f]=h}}}}e.unshift({schema:{dimensions:{h:i.clientHeight,w:i.clientWidth},properties:nu(a)?{}:c,subscopes:[],type:a},scope:i})}}for(var d=[],v=[],_=0;_<e.length;_++){for(var m=e[_],y=m.scope,g=m.schema,E=d.length-1;E>=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 b=JSON.stringify(v);return b.length>3e4&&(b="[]",no.getMicroData=!1),b}()}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"microdata"})}try{var r=function(){if(!no.getJSONLD)return{data:"[]",errors:[]};for(var t=[],e=[],r=document.querySelectorAll('script[type="application/ld+json"]'),n=0,o=0;o<r.length;o++){var i=r[o].innerText;if(null!=i&&""!==i){if((n+=i.length)>3e4)return no.getJSONLD=!1,{data:JSON.stringify([]),errors:[{name:iJ.OVER_LENGTH,message:""+String(n)}]};var a=void 0;try{a=JSON.parse(i.replace(/[\n\r\t]+/g," "))}catch(t){e.push({name:iJ.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&&nu(n)&&delete r[o]);return r}(a)}catch(t){return{data:JSON.stringify([]),errors:[{name:iJ.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,u.vU)(s.O.CUSTOM_ERROR,{message:r},{custom_name:"parse_json_ld_failed",custom_enum:e})})}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"json_ld"})}try{e.open_graph=function(t){if(!no.getOpenGraph)return"{}";for(var e=na(["og","product","music","video","article","book","profile","website","twitter"]),r={},n=document.querySelectorAll("meta[property],meta[name]"),o=0;o<n.length;o++){var i=n[o],a=i.getAttribute("property")||i.getAttribute("name"),c=ni(i.getAttribute("content"));if("string"==typeof a&&-1!==a.indexOf(":")&&"string"==typeof c&&e.has(a.split(":")[0])){var u=r[a];null!=u&&function(t){return null!=["og:image"].filter(function(e){return e===t})[0]}(a)?Array.isArray(u)?r[a].push(c):r[a]=[u,c]:r[a]=c}}return JSON.stringify(nc(r,t))}(t.open_graph)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"open_graph"})}try{e.meta=function(t){if(!no.getMetaData)return"{}";var e={},r=na(["description","keywords","keyword"]),n=document.querySelector("title");n&&(e.title=ni(n.innerText));for(var o=document.querySelectorAll("meta[property],meta[name]"),i=0;i<o.length;i++){var a=o[i],c=a.getAttribute("name")||a.getAttribute("property"),u=ni(a.getAttribute("content"));"string"==typeof c&&"string"==typeof u&&r.has(c)&&(e[c]=u)}return JSON.stringify(nc({title:e.title,"meta:description":e.description,"meta:keywords":e.keywords||e.keyword},t))}(t.meta)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"meta"})}return e}(i.filter),i.actTracker.report(iz.METADATA,iQ.AUTO_COLLECTION,{page_trigger:t,content_data:i.autoCollectedMetadata});try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e),"auto_config_metadata_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},200,os(i)),l=ou(oa().mark(function t(e){var r,n,o,a,c,l,f,p;return oa().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r=i.initializeVersion2?"v2":"v1",o=(n=r8(e.target)).buttonFlag,a=n.triggerElement,c=function(t){var e;try{var r,n,o,i,a,c,l,f={},h={},p=t.composedPath(),d=function(t){for(var e=t.target;e;)if(e instanceof Node){if(e.nodeType===Node.ELEMENT_NODE)return e;e=e.parentNode}else break;return null}(t);if(!d||rX(d)||d instanceof HTMLElement&&(o=(null==(r=d.className)?void 0:r.toUpperCase())||"",i=(null==(n=d.id)?void 0:n.toUpperCase())||"",Array.from(rD.IRRELEVANT_KEYWORDS).some(function(t){return o.includes(t)||i.includes(t)})))return null;f=function(t){for(var e,r={from:i3.COMPOSED_PATH},n=!1,o=!1,i=r6(t);!(e=i()).done;){var a=e.value;if(!o&&a instanceof HTMLImageElement){var c=rz(a);c&&(r.image_url=c,o=!0)}if(!n&&a instanceof HTMLAnchorElement){var u=rQ(a);if(u){r.destination=u,r.inner_text=a.innerText,n=!0;break}}}return r}(p);var v=function(t){for(var e,r=r6(t);!(e=r()).done;){var n=e.value;try{if(nr(n))return n}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"find_card_container_error"});break}}return null}(p);v&&(h=function(t){var e={from:i3.FIND_PRODUCT_CARD};if(e.inner_text=t.innerText,!e.image_url){var r=function(t){if(!t)return null;var e=Array.from(t.getElementsByTagName("img"));if(0===e.length)return null;var r=e.reduce(function(t,e){var r=rz(e);if(!r)return t;var n=e.offsetWidth,o=e.offsetHeight;return n<rD.MAIN_IMG_MIN_SIZE&&o<rD.MAIN_IMG_MIN_SIZE?t:[].concat(t,[{img:e,src:r,width:n,height:o}])},[]);return 0===r.length?null:r.reduce(function(t,e){return e.width>t.width?e:t})}(t);r&&(e.image_url=r.src)}if(!e.destination){var n=ne(t);n&&(e.destination=n)}return e}(v));var _=(a={composedPath:f,container:h},c=rD.PRIORITY_CONFIG,l={},Object.entries(c).forEach(function(t){for(var e,r=t[0],n=t[1],o=rV(n);!(e=o()).done;){var i=a[e.value][r];if(i){l[r]=i;break}}}),l),m=_.destination||_.image_url;if(v?_.from=i3.FIND_PRODUCT_CARD:_.from=i3.COMPOSED_PATH,_.inner_text=r3(_.inner_text),(null==(e=_.inner_text)?void 0:e.length)>rD.MAX_INNER_TEXT_LENGTH)return null;return m?_:null}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"findRelatedParameter_error"}),null}}(e),!("v1"===r&&!a||"v1"===r&&!(0,h.iK)(a)||"v2"===r&&!o&&!c)){t.next=6;break}return t.abrupt("return");case 6:if(i.queryDeepIntentData(),i.signal_insights_config&&nS(i.context,i.signal_insights_config),!a){t.next=19;break}return l=nt(r7(a)),t.next=12,i.sensitiveRedactor.processAsync(l,"replace",rF);case 12:if((f=t.sent).success){t.next=16;break}return(0,u.vU)(s.O.CUSTOM_ERROR,f.error,{custom_name:"auto_click",custom_enum:"sensitive_filter_error"}),t.abrupt("return");case 16:p=f.redactedOutput,c&&o?p.filter_version=i2.V1:c&&!o&&(p.filter_version=i2.V2),i.reportButtonClick({triggerElement:p,intent_data:[].concat(i.intent_data,c?[c]:[])});case 19:t.next=24;break;case 21:t.prev=21,t.t0=t.catch(0),(0,u.vU)(s.O.CUSTOM_ERROR,t.t0,{custom_name:"auto_click",custom_enum:"auto_click_callback_error"});case 24:case"end":return t.stop()}},t,null,[[0,21]])})),i.autoClickCallback=function(t){return l.apply(this,arguments)},i.filter=n.auto_config||{open_graph:[],microdata:[],json_ld:[],meta:[]},i.actTracker=new nY(e,r,o,n);try{((null==(a=null==n?void 0:n.plugins)?void 0:a.AutoClick)===!1||-1!==tN(op).indexOf("1"))&&(0,h.aN)(os(i),"autoClickCallback","instance"),((null==(c=null==n?void 0:n.plugins)?void 0:c.Metadata)===!1||-1!==tN(op).indexOf("2"))&&(0,h.aN)(os(i),"autoCollectionUpdateHandler","instance")}catch(t){}return i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ol(e,t);var r,n=e.prototype;return n.initBaseFeature=function(){var t=this.getAutoConfigVersion(this.currentPixelCode),e=this.reporters.some(function(t){return rK(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,this.initFormFunnel()))},n.initExtraFeature=function(){!this.autoForm&&(this.initializeVersion2||this.initializeVersion1)&&this.reporters.some(function(t){return rW(t,iQ.AUTO_FORM)})&&this.initAutoForm(),this.initAutoVC()},n.queryDeepIntentData=function(){try{var t=function(){try{var t=(i=(o=Q()).url,a=o.title,c=new URL(i).pathname.toLowerCase().includes(rj),l=a.toLowerCase().includes(rj),{isCheckoutPage:c||l,isUrlMatch:c,isTitleMatch:l}),e=t.isCheckoutPage,r=t.isUrlMatch,n=t.isTitleMatch;if(!e)return null;r1||(r1=!0,(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"auto_click",custom_enum:"checkout_page_identified",extJSON:{message:+!!r+"|"+ +!!n}}));for(var o,i,a,c,l,f,h=new Set([]),p=[],d=[],v=Array.from(document.getElementsByTagName("img")).filter(function(t){for(var e=t.className,r=0,n=Array.from(rD.INVALID_IMG_KEYWORDS);r<n.length;r++){var o=n[r];if(e.includes(o))return!1}return!0}),_=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 r$(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 r$(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.")}(v);!(f=_()).done;){var m=f.value;if(p.length>rM.MAX_PRODUCTS_COUNT)break;if(!r0.has(m)){if(r0.add(m),!(m.height<rM.MIN_IMG_SIZE)){var y=rz(m);if(y){for(var g=[],E=p.length,b=m.parentElement,w=0;w<15&&b&&2!=nn(b)&&(w++,!h.has(b));){if(g.push(b),nr(b,{RequiredWeightAndHeight:!!b.clientWidth,RequiredImageData:!0,RequiredLinkData:!1})&&r2(b)&&r3(b.innerText).length<=rM.MAX_COMPRESS_STRING_LENGTH){d.push(b);var O=ne(b),I=r3(b.innerText);p.push({image_url:y,inner_text:I,destination:O||"",from:i3.CHECKOUT}),h.add(b);break}b=b.parentElement}if(E==p.length){var T=function(t){var e=null;try{var r={from:i3.CHECKOUT};if(0==t.length)return{intentData:null,containerNode:null};for(var n=t.length-1;n>=0;n--){var o=t[n],i=ne(o);if(r2(o))e=o,r.inner_text=r3(o.innerText),r.destination=i||r.destination;else break}if(!e||!r.inner_text||r.inner_text.length>rM.MAX_COMPRESS_STRING_LENGTH)return{intentData:null,containerNode:null};return{intentData:r,containerNode:e}}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"reverseCheckoutPageInfo_error"}),{intentData:null,containerNode:null}}}(g),S=T.intentData,R=T.containerNode;R&&S&&(d.push(R),S.image_url=y,p.push(S))}}}}}if(function(t,e){if(!(t.length<=rM.MAX_PRODUCTS_COUNT)){for(var r=rJ(e[rM.MAX_PRODUCTS_COUNT]),n=rM.MAX_PRODUCTS_COUNT,o=rM.MAX_PRODUCTS_COUNT-1;o>=0;o--)if(rZ(r,rJ(e[o]))>rM.INVALID_DATA_SIMILARITY_THRESHOLD)n--;else break;t.splice(n),e.splice(n)}}(p,d),0==p.length)return null;return p}catch(t){return(0,u.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=r6(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,u.um)(s.O.CUSTOM_INFO,{custom_name:"auto_click",custom_enum:"queryCheckoutPageIntentData",extJSON:{message:""+this.intent_data.length}}))}catch(t){(0,u.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 nK([function(e){rB(t.autoCollectionUpdateHandler,t)(e)},function(e){rB(t.autoFormUpdateHandler,t)(e)}])},n.initAutoClick=function(t){var e=this;(0,_.Oo)(m.PG.CLICK,this.autoClickCallback,{throttle:!0,interval:1e3},{observerType:m.PG.CLICK,pluginName:oh,pluginVersion:t,target:"v2"===t?window:h.zh,environment:"window",listenEventTypes:[m.PG.CLICK],mode:"append"});try{if(this.sensitiveRedactor)return;this.sensitiveRedactor=(0,l.Ie)().getPlugin("SensitiveRedactor"),Object.entries(rG).forEach(function(t){var r=t[0],n=t[1];e.sensitiveRedactor.registerReplaceRedactor({keywords:[],regexArray:n,tag:r})}),Object.entries(t7).forEach(function(t){var r=t[0],n=t[1];e.sensitiveRedactor.registerReplaceRedactor({keywords:n,regexArray:[],tag:r})})}catch(t){(0,u.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=nR(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 ng(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.isFormFunnelAdvertiserVerticalAllowed=function(){return this.reporters.some(function(t){var e;return!od.includes(Number(null==(e=t.reporterInfo)?void 0:e.advertiserVertical))})},n.initFormFunnel=function(){!this.hasFormFunnelInit&&"v2"===this.getAutoConfigVersion(this.currentPixelCode)&&this.isFormFunnelAdvertiserVerticalAllowed()&&(this.hasFormFunnelInit=!0,this.formTracker=new oi)},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&&nS(this.context,this.signal_insights_config),n&&nR(n)&&(nG(nH)||nG(nq))){((0,h.Zq)(e)||"Pageview"===e||"InitiateCheckout"===e||"PlaceAnOrder"===e)&&(o=nG(nH));var o,i=nG(nq);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,h.Zq)(e)&&setTimeout(function(){nV(nH)},500),"Pageview"===e&&(!n||rK(n))&&(rB(this.autoCollectionUpdateHandler,this)(i0.PAGE_VIEW),rB(this.autoFormUpdateHandler,this)(i0.PAGE_VIEW))},n.pageUrlDidChange=function(t,e){null!=e&&""!=e&&(this.autoCollectionUpdateHandler(i0.URL_CHANGE),this.autoFormUpdateHandler(i0.URL_CHANGE))},n.pageWillLeave=function(){this.autoCollectionUpdateHandler(i0.PAGE_LEAVE),this.autoFormUpdateHandler(i0.PAGE_LEAVE)},r=ou(oa().mark(function t(e){var r,n,o,i;return oa().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=nG(nH)||void 0,(n=nG(nq)||void 0)&&((r=r||{}).parameter_inference=n),("v1"==(this.initializeVersion2?"v2":"v1")||"1"===tN(op))&&(e.intent_data=e.intent_data.filter(function(t){return t.from===i3.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.sensitiveRedactor.processAsync(e.intent_data,"replace",rU);case 12:(i=t.sent).success&&(o=i.redactedOutput);case 14:this.actTracker.report(iz.CLICK,iQ.AUTO_VC,{page_trigger:i0.CLICK,trigger_element:e.triggerElement,vc_properties:r,intent_data:o}),this.actTracker.report(iz.CLICK,iQ.AUTO_VC_REVERSE,{page_trigger:i0.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){try{var e=this.reporters.find(function(e){return e.getReporterId()===t});if(!e)return"v1";var r=e.plugins,n=r&&r.AutoConfigV2;if(tN(op)||Object.values(this.reporters).some(function(t){var e;return ov.includes(null==(e=t.reporterInfo)?void 0:e.advertiserID)})&&n)return"v2";return n?"v2":"v1"}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"get_auto_config_version_error"}),"v1"}},e}(rl);o_=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),of(0,K(g.D.CONTEXT)),of(1,K(g.D.TTQ_REPORTERS)),of(2,K(g.D.TTQ_GLOBAL_OPTIONS)),of(3,K(g.D.REPORT_SERVICE))],o_);var om=r(278),oy=r.n(om),og={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:""}},oE=/^[a-zA-Z\d]([a-zA-Z_\-\d ]{0,}[a-zA-Z_\-\d])?$/,ob=["product","product_group","destination","hotel","flight","vehicle"],ow=["email_is_hashed","phone_is_hashed","sha256_email","sha256_phone"],oO=["Purchase","CompletePayment","InitiateCheckout","AddToCart","PlaceAnOrder","ViewContent","AddToWishlist"],oI=function(t){return void 0===t},oT=function(t,e){if(iM[t]){var r=(0,l.E9)(),n=og[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)}};(iN=i4||(i4={}))[iN.Live=0]="Live",iN[iN.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},oR=function(t){var e=t.event;return!!oS(t)||oE.test(void 0===e?"":e)},oN=function(t){var e=t.event;return(void 0===e?"":e).length<=50},oL=function(t){var e=t.event,r=t._inspection;if((0,h.Zq)(e)){var n=(void 0===r?{}:r).identity_params,o=void 0===n?{}:n;return 0===Object.keys(o).length||ow.every(function(t){return(o[t]||[]).includes(tD.Vp.EMPTY_VALUE)})}return!1},oA=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.email_is_hashed||[]).includes(tD.Vp.FILTER_EVENTS)||(r.identity_params.sha256_email||[]).includes(tD.Vp.FILTER_EVENTS))},ox=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.email_is_hashed||[]).includes(tD.Vp.UNKNOWN_INVALID)||(r.identity_params.sha256_email||[]).includes(tD.Vp.UNKNOWN_INVALID))},oP=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.phone_is_hashed||[]).includes(tD.Vp.FILTER_EVENTS)||(r.identity_params.sha256_phone||[]).includes(tD.Vp.FILTER_EVENTS))},oC=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.phone_is_hashed||[]).includes(tD.Vp.UNKNOWN_INVALID)||(r.identity_params.sha256_phone||[]).includes(tD.Vp.UNKNOWN_INVALID))},ok=function(t){var e=t.event,r=t.properties,n=void 0===r?{}:r;if(oO.includes(void 0===e?"":e)){if(oI(n.contents)&&oI(n.content_id))return!0;if(!oI(n.contents))return!Array.isArray(n.contents)||n.contents.length<1||!n.contents.every(function(t){return t&&!oI(t.content_id)})}return!1},oD=function(t){var e=t.properties,r=void 0===e?{}:e,n=r.content_id,o=r.contents;return!(!oI(n)&&/^\s*$/.test(n))&&(!(!oI(o)&&Array.isArray(o))||o.every(function(t){return t&&!oI(t.content_id)&&!/^\s*$/.test(t.content_id)}))},oM=function(t){var e=t.properties.content_type;return!e||ob.includes(e)},oj=function(t){var e=t.properties.value;return!e||!!("number"==typeof e||"string"==typeof e&&(/^\d+(\.\d+)?$/.test(e)||/^\d+$/.test(e)))},oU=function(t){var e=t.event,r=t.properties,n=void 0===r?{}:r;return!!((0,h.Zq)(void 0===e?"":e)&&oI(n.value)||!oI(n.currency)&&oI(n.value))},oF=function(t){var e=t.properties.currency;return!e||tz.includes(e)},oG=function(t){var e=t.event,r=t.properties,n=void 0===r?{}:r;return!!((0,h.Zq)(void 0===e?"":e)&&oI(n.currency)||!oI(n.value)&&oI(n.currency))};function oV(t,e){return(oV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var oH=function(t,e){return function(r,n){e(r,n,t)}},oq=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,oV(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;oT(t,e)}catch(e){(0,u.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,u.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!==iF.TRACK||e===T||this.handleEventPayloadValidate(oy()(r||{}))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"diagnostics_console",custom_enum:"track"})}},r.handlePixelInfoValidate=function(t){if(t.status!==i4.Live)return void this.warn(iM.INVALID_PIXEL_CODE)},r.handleEventPayloadValidate=function(t){t.properties||(t.properties={}),oS(t)&&this.warn(iM.EMPTY_EVENT_TYPE_NAME),oR(t)||this.warn(iM.MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT),oN(t)||this.warn(iM.LONG_EVENT_TYPE_NAME),oL(t)&&this.warn(iM.MISSING_EMAIL_AND_PHONE),oA(t)&&this.warn(iM.INVALID_EMAIL_INFORMATION),ox(t)&&this.warn(iM.INVALID_EMAIL_FORMAT),oP(t)&&this.warn(iM.INVALID_PHONE_NUMBER_INFORMATION),oC(t)&&this.warn(iM.INVALID_PHONE_NUMBER_FORMAT),ok(t)&&this.warn(iM.MISSING_CONTENT_ID),oD(t)||this.warn(iM.INVALID_CONTENT_ID),oM(t)||this.warn(iM.INVALID_CONTENT_TYPE),oj(t)||this.warn(iM.INVALID_EVENT_PARAMETER_VALUE),oU(t)&&this.warn(iM.MISSING_VALUE_PARAMETER),oF(t)||this.warn(iM.INVALID_CURRENCY_CODE),oG(t)&&this.warn(iM.MISSING_CURRENCY_PARAMETER,{learn_more:""})},e}(rl);oq=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),oH(0,K(g.D.CONTEXT)),oH(1,K(g.D.TTQ_REPORTERS)),oH(2,K(g.D.TTQ_GLOBAL_OPTIONS))],oq);var oB="https://analytics.tiktok.com/i18n/pixel/eb.js",oK="_tt_event_builder";function oW(t,e){return(oW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(iL=i9||(i9={})).EVENT_BUILD_BOOTSTRAP_ACK="event_builder_bootstrap_ack",iL.EVENT_BUILD_WRONG_CODE="event_builder_wrong_code",iL.EVENT_BUILD_BOOTSTRAP="event_builder_bootstrap";var oY=function(t,e){return function(r,n){e(r,n,t)}},oX=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,oW(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===i9.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,tn(oK,t.data),tY(oB).then(function(){window.opener.window.postMessage({type:i9.EVENT_BUILD_BOOTSTRAP_ACK},"*")}).catch(function(t){(0,u.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:i9.EVENT_BUILD_WRONG_CODE},"*")},5e3),n._event_builder_pickup_sdk_verify_flag=!0))};!n._event_builder_pickup_sdk_loaded&&(te(oK)?tY(oB).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}(rl);function oJ(t,e){return(oJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}oX=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),oY(0,K(g.D.CONTEXT)),oY(1,K(g.D.TTQ_REPORTERS))],oX);var oZ=function(t,e){return function(r,n){e(r,n,t)}},oz="tt_pixel_is_enrich_ipv6_triggered_by_enrich_am",oQ=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,oJ(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!==iF.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(tp,this.buildEnrichIpv6Data(r),iV.htmlHttpReport)),"true"===sessionStorage.getItem(oz)))return;"EnrichAM"===e&&(this.shouldReportAfterEnrichAM=!0),this.shouldReportAfterEnrichAM&&this.isPixelEnrichIpv6()&&(this.shouldReportAfterEnrichAM=!1,sessionStorage.setItem(oz,"true"),this.reportService.report(tp,this.buildEnrichIpv6Data(r),iV.htmlHttpReport))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"enrich_ipv6_report"})}},e}(rl);function o$(t){return performance&&performance.timing?t?(0,tE.u3)()-t:(0,tE.u3)()-performance.timing.navigationStart:-1}function o0(t,e){return function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];window.requestIdleCallback?window.requestIdleCallback(t.bind.apply(t,[e].concat(n))):t.apply(e,n)}}function o1(t,e){void 0===e&&(e=4);try{if(Number.isInteger(t))return t;return parseFloat(t.toFixed(e))}catch(t){return -1}}function o2(t,e){var r=t.plugins;return!at[e]||r[aJ]&&r[aJ][at[e]]}oQ=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),oZ(0,K(g.D.CONTEXT)),oZ(1,K(g.D.TTQ_REPORTERS)),oZ(2,K(g.D.REPORT_SERVICE)),oZ(3,K(g.D.ENV))],oQ),(iA=i7||(i7={})).FIRST_CONTENTFUL_PAINT="fcp",iA.LARGEST_CONTENTFUL_PAINT="lcp",iA.FIRST_INPUT_DELAY="fid",iA.TIME_TO_FIRST_BYTE="ttfb",iA.PAGE_LEAVE="pl",iA.LOAD_FINISH="lf",iA.TIME_WINDOW_TRACKER="twt",iA.TIME_TO_INTERACTIVE="tti",(ix=at||(at={})).performance="performance",ix.interaction="interaction";var o3=function(){function t(t,e,r,n){n?(this.reportService=r,this.context=t,this.reporters=e,this.reportUrl=n):(0,u.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(iF.PAGE,t,r);n&&this.reportService.reportPreTasks.then(function(){e.reportService.report(e.reportUrl,n,iV.defaultReport,iH.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],c=a.assemblyData(a.getReporterId(),"",{},{},iF.PAGE);return delete c.event,c.action=t,c.auto_collected_properties=e,c.context.pixel||(c.context.pixel={}),c.context.pixel.code=o[0],c.context.pixel.codes=o.join("|"),c.context.index=null==(n=i.pageIndex)?void 0:n.index,c.context.session_id=i.sessionId,c.context.pageview_id=(0,tg.gj)(this.context.getPageViewId(),a.reporterInfo.loadId,Y.n2),c.message_id=c.message_id.replace(/-[^-]*$/,""),c}},t}();function o6(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function o5(t,e){return(o5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var o8,o4,o9,o7,it,ie,ir,io,ii,ia,ic,iu,is,il,ih,ip,id,iv,i_,im,iy,ig,iE,ib,iw,iO,iI,iT,iS,iR,iN,iL,iA,ix,iP,iC,ik,iD,iM,ij,iU,iF,iG,iV,iH,iq,iB,iK,iW,iY,iX,iJ,iZ,iz,iQ,i$,i0,i1,i2,i3,i6,i5,i8,i4,i9,i7,at,ae,ar,an,ao,ai=function(t){function e(e,r,n,o,i){var a;return void 0===i&&(i=[]),(a=t.call(this,e,r,n,o)||this).clickTimes=0,a.clickTimesTotal=0,a.scrollTimes=0,a.scrollTimesTotal=0,a.stayTime=0,a.stayTimeReported=!1,a.rules=[],a.rules=i,a.init(),a}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,o5(e,t);var r=e.prototype;return r.init=function(){var t,e,r=this;t=o0(this.updateClickTimes,this),(0,_.Oo)(m.PG.CLICK,function(e){t()},{throttle:!0,interval:100},{observerType:m.PG.CLICK,pluginName:"PageInteractionMonitor",target:window,environment:"window",listenEventTypes:[m.PG.CLICK],mode:"append"}),e=o0(this.updateScrollTimes,this),(0,_.Oo)(m.PG.SCROLL,function(t){e()},{throttle:!0,interval:500},{observerType:m.PG.SCROLL,pluginName:"PageInteractionMonitor",target:window,environment:"window",listenEventTypes:[m.PG.SCROLL],mode:"append"}),setInterval(function(){r.reportInteraction()},1e4)},r.reportInteraction=function(){this.isUpdated()&&(this.report(this.getResult(i7.TIME_WINDOW_TRACKER)),this.resetAfterReport())},r.getResult=function(t){return this.getResultOnWindowTracker(t)},r.getResultOnPageLeave=function(t){var e;if(this.updateStayTime(),this.shouldReport()&&!this.stayTimeReported)return this.stayTimeReported=!0,e={metrics_type:"ct|st|pl",ct:this.clickTimes,st:this.scrollTimes,pl:this.stayTime},{action_event:t,inter:{ct:this.clickTimes,st:this.scrollTimes,pl:this.stayTime},page_inter:e}},r.getResultOnWindowTracker=function(t){var e;return e={metrics_type:"ct|st",ct:this.clickTimes,st:this.scrollTimes},{action_event:t,inter:{ct:this.clickTimes,st:this.scrollTimes},page_inter:e}},r.updateClickTimes=function(){this.clickTimes+=1,this.clickTimesTotal+=1},r.updateScrollTimes=function(){this.scrollTimes+=1,this.scrollTimesTotal+=1},r.updateStayTime=function(){this.stayTime=Math.floor(o$())},r.shouldReport=function(){for(var t,e=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 o6(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 o6(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.")}(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}(o3),aa=function(t){setTimeout(function(){t(i7.TIME_TO_INTERACTIVE,-1)},0)},ac=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(i7.LOAD_FINISH,e)}).catch(function(e){t(i7.LOAD_FINISH,-1)})};"complete"===window.document.readyState?e():window.addEventListener("load",e)},au=-1,as=function(t){addEventListener("pageshow",function(e){e.persisted&&(au=e.timeStamp,t(e))},!0)},al=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},af=function(){var t=al();return t&&t.activationStart||0},ah=function(t,e){var r=al(),n="navigate";return au>=0?n="back-forward-cache":r&&(document.prerendering||af()>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}},ap=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){}},ad=function(t,e,r,n){var o,i;return function(a){var c;e.value>=0&&(a||n)&&((i=e.value-(o||0))||void 0===o)&&(o=e.value,e.delta=i,c=e.value,e.rating=c>r[1]?"poor":c>r[0]?"needs-improvement":"good",t(e))}},av=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},a_=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},am=function(t){var e=!1;return function(r){e||(t(r),e=!0)}},ay=-1,ag=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},aE=function(t){"hidden"===document.visibilityState&&ay>-1&&(ay="visibilitychange"===t.type?t.timeStamp:0,aw())},ab=function(){addEventListener("visibilitychange",aE,!0),addEventListener("prerenderingchange",aE,!0)},aw=function(){removeEventListener("visibilitychange",aE,!0),removeEventListener("prerenderingchange",aE,!0)},aO=function(){return ay<0&&(ay=ag(),ab(),as(function(){setTimeout(function(){ay=ag(),ab()},0)})),{get firstHiddenTime(){return ay}}},aI=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},aT=[1800,3e3],aS=function(t,e){e=e||{},aI(function(){var r,n=aO(),o=ah("FCP"),i=ap("paint",function(t){t.forEach(function(t){"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(o.value=Math.max(t.startTime-af(),0),o.entries.push(t),r(!0)))})});i&&(r=ad(t,o,aT,e.reportAllChanges),as(function(n){r=ad(t,o=ah("FCP"),aT,e.reportAllChanges),av(function(){o.value=performance.now()-n.timeStamp,r(!0)})}))})},aR=[.1,.25],aN=function(t,e){e=e||{},aS(am(function(){var r,n=ah("CLS",0),o=0,i=[],a=function(t){t.forEach(function(t){if(!t.hadRecentInput){var e=i[0],r=i[i.length-1];o&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(o+=t.value,i.push(t)):(o=t.value,i=[t])}}),o>n.value&&(n.value=o,n.entries=i,r())},c=ap("layout-shift",a);c&&(r=ad(t,n,aR,e.reportAllChanges),a_(function(){a(c.takeRecords()),r(!0)}),as(function(){o=0,r=ad(t,n=ah("CLS",0),aR,e.reportAllChanges),av(function(){return r()})}),setTimeout(r,0))}))},aL={passive:!0,capture:!0},aA=new Date,ax=function(t,e){ae||(ae=e,ar=t,an=new Date,ak(removeEventListener),aP())},aP=function(){if(ar>=0&&ar<an-aA){var t={entryType:"first-input",name:ae.type,target:ae.target,cancelable:ae.cancelable,startTime:ae.timeStamp,processingStart:ae.timeStamp+ar};ao.forEach(function(e){e(t)}),ao=[]}},aC=function(t){if(t.cancelable){var e,r,n,o=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?(e=function(){ax(o,t),n()},r=function(){n()},n=function(){removeEventListener("pointerup",e,aL),removeEventListener("pointercancel",r,aL)},addEventListener("pointerup",e,aL),addEventListener("pointercancel",r,aL)):ax(o,t)}},ak=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,aC,aL)})},aD=[100,300],aM=function(t,e){e=e||{},aI(function(){var r,n=aO(),o=ah("FID"),i=function(t){t.startTime<n.firstHiddenTime&&(o.value=t.processingStart-t.startTime,o.entries.push(t),r(!0))},a=function(t){t.forEach(i)},c=ap("first-input",a);r=ad(t,o,aD,e.reportAllChanges),c&&a_(am(function(){a(c.takeRecords()),c.disconnect()})),c&&as(function(){r=ad(t,o=ah("FID"),aD,e.reportAllChanges),ao=[],ar=-1,ae=null,ak(addEventListener),ao.push(i),aP()})})},aj=[2500,4e3],aU={},aF=function(t,e){e=e||{},aI(function(){var r,n=aO(),o=ah("LCP"),i=function(t){var e=t[t.length-1];e&&e.startTime<n.firstHiddenTime&&(o.value=Math.max(e.startTime-af(),0),o.entries=[e],r())},a=ap("largest-contentful-paint",i);if(a){r=ad(t,o,aj,e.reportAllChanges);var c=am(function(){aU[o.id]||(i(a.takeRecords()),a.disconnect(),aU[o.id]=!0,r(!0))});["keydown","click"].forEach(function(t){addEventListener(t,function(){return setTimeout(c,0)},!0)}),a_(c),as(function(n){r=ad(t,o=ah("LCP"),aj,e.reportAllChanges),av(function(){o.value=performance.now()-n.timeStamp,aU[o.id]=!0,r(!0)})})}})},aG=[800,1800],aV=function t(e){document.prerendering?aI(function(){return t(e)}):"complete"!==document.readyState?addEventListener("load",function(){return t(e)},!0):setTimeout(e,0)},aH=function(t,e){e=e||{};var r=ah("TTFB"),n=ad(t,r,aG,e.reportAllChanges);aV(function(){var o=al();if(o){var i=o.responseStart;if(i<=0||i>performance.now())return;r.value=Math.max(i-af(),0),r.entries=[o],n(!0),as(function(){(n=ad(t,r=ah("TTFB",0),aG,e.reportAllChanges))(!0)})}})};function aq(t,e){return(aq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var aB=function(t,e){return function(r,n){e(r,n,t)}},aK=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,aq(e,t);var r=e.prototype;return r.init=function(){aN(this.clsHandler.bind(this),{reportAllChanges:!0}),aH(this.webVitalHandler.bind(this)),aS(this.webVitalHandler.bind(this)),aF(this.webVitalHandler.bind(this),{reportAllChanges:!0}),aM(this.webVitalHandler.bind(this)),aa(this.baseHandler.bind(this)),ac(this.baseHandler.bind(this))},r.getResult=function(t){var e=Math.floor(o$()),r={ttns:e,cls:o1(this.cls),idx:this.getSessionIndex(),pep:o1(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}(o3);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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([aB(0,K(g.D.CONTEXT)),aB(1,K(g.D.TTQ_REPORTERS)),aB(2,K(g.D.REPORT_SERVICE))],aK);var aW=[function(t){var e=t.clickTimes,r=t.scrollTimes;return e>=1||r>=1}];function aY(t,e){return(aY=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)}},aJ="PageData",aZ=function(t){function e(e,r,n,o){var i;return(i=t.call(this,{name:aJ,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,aY(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 ai(this.context,this.reporters,this.reportService,t$(iF.PAGE_INTERACTION),aW),this.monitors.push(this.interactionMonitor),this.isPageInterInit=!0)},r.initPerformance=function(){this.isPagePerfInit||(this.performanceMonitor=new aK(this.context,this.reporters,this.reportService,t$(iF.PAGE_PERFORMANCE)),this.monitors.push(this.performanceMonitor),this.isPagePerfInit=!0)},r.isPagePerfEnabled=function(t){return(0,f.Z0)(this.env)||o2(t,at.performance)},r.isPageInterEnabled=function(t){return(0,f.Z0)(this.env)||o2(t,at.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(i7.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}(rl);aZ=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),aX(0,K(g.D.CONTEXT)),aX(1,K(g.D.TTQ_REPORTERS)),aX(2,K(g.D.REPORT_SERVICE)),aX(3,K(g.D.ENV))],aZ);var az={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},aQ={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:[az.initAllModule,az.webTtqFactory,az.handleCache,az.webReporterFactory,az.initAutoForm,az.freezeAPI,az.handlePixelRules,az.resetExpires,az.mergeWebGlobalTtq,az.auto_config_plugin_pixelDidMount,az.callback_plugin_pixelDidMount,az.console_plugin_pixelDidMount,az.event_builder_plugin_pixelDidMount,az.shopify_plugin_pixelDidMount,az.page_plugin_pixelDidMount,az.competitor_insight_plugin_init,az.getPixelInstalledPosition,az.getPixelScriptByPixelCode,az.handleGlobalCache,az.basettq_init_context_info,az.initAutoForm_getOverallFormDetail,az.web_track_handler,az.identify_api_handler,az.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:[]}},a$=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 c=this.getFunctionIdFromName(r);c&&(a.f=[].concat(a.f||[],[{id:c,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=aQ[t])?void 0:e.id},e.getFunctionIdFromName=function(t){return az[t]},t}();function a0(t,e){return(a0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var a1=function(t,e){return function(r,n){e(r,n,t)}},a2=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,a0(e,t),e.prototype.init=function(){if(!this.initialize){this.performanceDataQueue=new a$;var t=(0,l.Ie)();t&&t._ppf&&(this.performanceDataQueue.handleCache(t._ppf),t._ppf=this.performanceDataQueue),this.initialize=!0}},e}(rl);a2=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),a1(0,K(g.D.CONTEXT)),a1(1,K(g.D.TTQ_REPORTERS))],a2),(t=n||(n={}))[t.OTHER=0]="OTHER",t[t.ANDROID=1]="ANDROID",t[t.IOS=2]="IOS";var a3=[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],a6=[s.O.BEFORE_INIT,s.O.INIT_START,s.O.INIT_END,s.O.HTTP_SEND,s.O.AD_INFO_INIT_END];function a5(t){try{if(!performance||!performance.timing)return -1;if(t)return(0,tE.u3)()-t;return(0,tE.u3)()-performance.timing.navigationStart}catch(t){}return -1}var a8=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 c=n.find(function(t){return t.name.indexOf(a||e)>-1});c&&r.push({name:c.name,duration:c.duration})}}return r}catch(t){return[]}};function a4(){a4=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function a9(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function a7(t,e){return(a7=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 ct=function(t){function e(e){(r=t.call(this,{name:"Monitor",reporters:e.reporters,context:e.context})||this).hasReportMap={},r.cachedData=[],r.contextInitEndStatus=!1,r.legacy=[];var r,o=e.pixelDetails,i=e.reportService,a=e.httpService,c=e.env,u=e.ttqOptions;return r.env=c,r.lib=o.lib,r.pixelCode=o.pixelCode,r.reportService=i,r.httpService=a,r.contextInitEndStatus=!1,r.platform=(0,f.Dt)()?n.ANDROID:(0,f.gn)()?n.IOS:n.OTHER,r.partner=u.partner||"",u.legacy&&(r.legacy=u.legacy),r.ttqOptions=u,r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,a7(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=a4().mark(function t(e,r){return a4().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:eD(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){a9(i,n,o,a,c,"next",t)}function c(t){a9(i,n,o,a,c,"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,a6.indexOf(e)>-1);this.reportService.report(th,t,r?iV.defaultReport:iV.htmlHttpReport,r?iH.P0:iH.P1)},a.report=function(t,e){return(void 0===e&&(e=!1),this.recordReportLog(t),e)?void this.send(th,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,n){if(void 0===e&&(e={}),void 0===r&&(r=!1),void 0===n&&(n=!1),this.reportSwitch()&&(0,l.Wf)("Monitor")||n)try{var o=this.assemblyBaseData(t,e);if(this.isRepeatLog(o))return;this.report(o,r)}catch(t){}},a.error=function(t,e,r,n){if(void 0===r&&(r={}),void 0===n&&(n=!1),this.reportSwitch()&&(0,l.Wf)("Monitor"))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=a3.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,c=r.custom_enum,s=r.app_name,h=r.latency,p=(0,l.Ie)(),d=this.env,v=this.platform,_=this.context,m=this.reporters,y=_.getAllData(),g=y.libraryInfo,E=y.pageInfo,b=y.adInfo,w=y.pageSign,O=y.enableAdTracking,I=_.getVariationId(),T=_.getVids(),S=this.legacy||[],R=b&&b.log_extra&&function(t){try{return JSON.parse(t)}catch(t){return{}}}(b.log_extra)||{},N=m.map(function(t){return t.getReporterId()}),L=n||(0,u.wE)().pixelCode||this.pixelCode||this.reporters[0]&&this.reporters[0].getReporterId()||Object.keys(p._i)[0]||"",A=this.getReportInfo(L),x=S.length?S.includes(L)?"legacy-ttq":"ttq":this.lib,P=(0,l.kW)(L)||this.partner||"non",C=O?o.AUTHORIZED:o.DENIED,k={metric_name:t,pixel_code:L,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:R.placement||"non",lib:{lib_version:g&&g.version||"",ttq_name:x},in_iframe:Number((0,f.Tm)()),time_to_last_start:-1,time_to_navigation_start:-1,latency:void 0===h?0:h,page_url:E&&E.url||Q().url,att_status:C,pageview_id:this.context.getPageViewId()||"",session_id:w&&w.sessionId||"",variation_id:I,vids:T,load_id:A&&A.loadId||"",ad_id:String(b.ad_id),creative_id:String(b.creative_id||R.creative_id),user_agent:(0,l.ij)(),pixel_monitor_version:"v2",custom_name:a,custom_enum:c,partner:P,ext_json:{performance:[],pixel_list:N.toString(),ad_info_from:b.ad_info_from,pixel_api_conflict_flag:(0,u.dK)()}};return i&&Object.assign(k.ext_json,i),k},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}(rl);function ce(t,e){return(ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cr=function(t,e){return function(r,n){e(r,n,t)}},cn=function(t){function e(e,r,n,o,i,a){var c;return(c=t.call(this,{pixelDetails:(0,u.wE)(),context:e,reporters:r,reportService:n,httpService:o,env:i,ttqOptions:a})||this).statusTimeline={},c}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ce(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||(0,tE.u3)();break;case"end":if(!o.start)return -1;return o.end=o.end||(0,tE.u3)(),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),c=a&&a.loadStart;return Object.assign(n,{time_to_last_start:c?a5(c):-1,time_to_navigation_start:a5(),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=a8(o,e===s.O.IDENTIFY_INIT_END?"identify":"")),n},e}(ct);function co(){return(0,f.b)("76071264")}function ci(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,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"delayidle_error",custom_enum:"catch_error"}),e(!0)}})}cn=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),cr(0,K(g.D.CONTEXT)),cr(1,K(g.D.TTQ_REPORTERS)),cr(2,K(g.D.REPORT_SERVICE)),cr(3,K(g.D.HTTP_SERVICE)),cr(4,K(g.D.ENV)),cr(5,K(g.D.TTQ_GLOBAL_OPTIONS))],cn);var ca=["script","style","noscript","pre","code","svg","canvas","math","kbd","samp"];function cc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function cu(){cu=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function cs(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function cl(){var t;return t=cu().mark(function t(e){var r,n,o,i,a,c,l,f,h,p,d,v,_,m,y,g,E,b,w,O,I,T,S,R,N,L,A,x,P,C,k,D,M,j,U,F,G,V,H,q,B,K,W,Y;return cu().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:var X,J;if(F=function(){var t,e=performance.now(),r=0;try{for(;r<m;r++){var n=D.next(),o=n.value;if(n.done)return U+=performance.now()-e,{done:!0,stopped:!1,timeExceeded:!1,processed:r};R++;var i=null!=(t=null==o?void 0:o.nodeValue)?t:"";if(i){if(i.length>O){A++;continue}if(M(o))return P=!0,U+=performance.now()-e,{done:!1,stopped:!0,timeExceeded:!1,processed:r+1};if(performance.now()-e>=g)return U+=performance.now()-e,{done:!1,stopped:!1,timeExceeded:!0,processed:r+1}}}return U+=performance.now()-e,{done:!1,stopped:!1,timeExceeded:!1,processed:m}}catch(t){return U+=performance.now()-e,(0,u.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,c=o.patterns,f=void 0===(l=o.maxTotalHits)?60:l,p=void 0===(h=o.maxHitsPerPattern)?50:h,v=void 0===(d=o.ignoreTags)?ca:d,m=void 0===(_=o.chunkSize)?500:_,g=void 0===(y=o.maxChunkMs)?8:y,b=void 0===(E=o.minTextLength)?5:E,O=void 0===(w=o.maxTextLength)?100:w,I=Array.from(new Set([].concat(v,ca))),0!==(T=(Array.isArray(X=null==c?void 0:c.filter(function(t){return!!t}))&&X.length?X:[]).map(function(t){return{name:t.name,regex:t.regex,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,resultDomDetail:[]}})).length){t.next=9;break}return J=n,S={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:S});case 9:R=0,N=0,L=0,A=0,x=0,P=!1,C=0,k={skippedByLength:{v:0},skippedByPrecheck:{v:0},totalFound:{v:0}},D=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,I,function(){N++}),M=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!=(c=t.nodeValue)?c:"";if(!a)return!1;if(a.length<r)return i.skippedByLength.v++,!1;for(var c,l,f,h,p,d,v,_,m=-1!==a.indexOf("@"),y=/\d/.test(a),g=e.some(function(t){return t.name.includes("phone")})&&y?function(t){for(var e=0,r=0;r<t.length;r++){var n=t.charCodeAt(r);n>=48&&n<=57&&e++}return e}(a):0,E=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 cc(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 cc(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);!(_=E()).done;){var b=_.value;if(!b.stoppedEarly){if("email"===b.name){if(!m){i.skippedByPrecheck.v++;continue}}else if(b.name.includes("phone")&&!(y&&g>=7)){i.skippedByPrecheck.v++;continue}if(!b.preCheck(a)){i.skippedByPrecheck.v++;continue}var w=void 0;try{w=RegExp(b.regex,"ig").exec(a)}catch(t){return!0}if(w){var O={text:a,index:w.index,node:t},I=b.normalize(w[0],O);if(I&&(i.totalFound.v++,b.hits.push(I),b.set.add(I),t.parentElement&&b.resultDomDetail.push({id:null!=(f=null==(l=t.parentElement)?void 0:l.id)?f:"",className:null!=(p=null==(h=t.parentElement)?void 0:h.className)?p:"",tagName:null!=(v=null==(d=t.parentElement)?void 0:d.tagName)?v:""}),b.hits.length>=n&&(b.stoppedEarly=!0),i.totalFound.v>=o))return!0}}}return!1}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"process_text_node_error"}),!1}}}({compiled:T,minTextLength:b,maxHitsPerPattern:p,maxTotalHits:f,counters:k}),j=performance.now(),U=0;case 22:if(C++,V=(G=F()).done,H=G.stopped,q=G.timeExceeded,B=G.processed,!(V||H)){t.next=27;break}return t.abrupt("break",48);case 27:if(!(B<m)){t.next=38;break}if(!q){t.next=37;break}return t.prev=29,t.next=32,ci(!1);case 32:t.next=37;break;case 34:return t.prev=34,t.t0=t.catch(29),t.abrupt("break",48);case 37:return t.abrupt("break",48);case 38:return t.prev=38,t.next=41,ci(!1);case 41:t.next=46;break;case 43:return t.prev=43,t.t1=t.catch(38),t.abrupt("break",48);case 46:t.next=22;break;case 48:return K=performance.now(),L=k.skippedByPrecheck.v,A+=k.skippedByLength.v,x=k.totalFound.v,!function(t,e){(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"text_tree_walker_plugin",custom_enum:"perf_log",extJSON:{message:JSON.stringify(e)}});var r=t.map(function(t){return{pattern:t.name,hits:t.hits,unique:t.unique,resultDomDetails:t.resultDomDetail}});(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"text_tree_walker_plugin",custom_enum:"results_log",extJSON:{message:JSON.stringify(r)}})}(W=T.map(function(t){return{name:t.name,hits:t.hits.length,unique:t.set.size,values:Array.from(t.set),resultDomDetail:t.resultDomDetail}}),Y={textNodesVisited:R,skippedByTag:N,skippedByPrecheck:L,skippedByLength:A,totalFound:x,stoppedEarly:P,collect_ms:+(K-j).toFixed(2),processing_ms:+U.toFixed(2),total_ms:+(performance.now()-n).toFixed(2),chunks:C}),t.abrupt("return",{patterns:W,totals:Y});case 56:case"end":return t.stop()}},t,null,[[29,34],[38,43]])}),(cl=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){cs(i,n,o,a,c,"next",t)}function c(t){cs(i,n,o,a,c,"throw",t)}a(void 0)})}).apply(this,arguments)}var cf=/\D/g,ch=/\+/g,cp={name:"phone_intl",regex:"(?<![A-Za-z0-9])(?:\\+\\d{1,3})?(?:\\(\\d{1,4}\\)|\\d{1,4})?(?:[ -])?\\d{5,12}(?![A-Za-z0-9])",preCheck:function(t){return/\d/.test(t)&&!/@/.test(t)},normalize:function(t){var e=t.trim();if(!/^[\d()\s\-+]+$/.test(e))return null;var r=(e.match(ch)||[]).length;if(r>1||1===r&&"+"!==e[0])return null;var n=e.replace(cf,"").length;if(n<7||n>15)return null;var o=(e.match(/\(/g)||[]).length;if(o!==(e.match(/\)/g)||[]).length||o>0&&!/\(\d{1,4}\)/.test(e))return null;var i=e;if(i.startsWith("+")){var a=i.match(/^\+\d{1,3}/);if(!a)return null;i=i.slice(a[0].length)}var c=i.match(/^(?:\(\d{1,4}\)|\d{1,4})(?:[ -])?/);return(c&&(i=i.slice(c[0].length)),/^\d{5,12}$/.test(i))?e:null}},cd={name:"email",regex:"[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}",visibilityMode:"all",preCheck:function(t){return t.includes("@")}};function cv(){cv=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function c_(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function cm(t,e){return(cm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cy=function(t,e){return function(r,n){e(r,n,t)}},cg=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.hasDoneFirstScan=!1,o.isScanning=!1,o.eventEmitter=n,o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,cm(e,t);var r,n,o=e.prototype;return o.pageLcp=function(){var t=this;this.lcpTriggered||(this.lcpTriggered=!0,setTimeout(function(){try{t.getPIIFromTextNode(),t.hasDoneFirstScan=!0}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"get_pii_from_textnode"})}},2e3))},r=cv().mark(function t(){var e,r,n,o,i,a,c,u,s,l,p,d;return cv().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isScanning){t.next=2;break}return t.abrupt("return");case 2:if(this.activeReporter||(this.activeReporter=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)})),!(!h.$9||!(0,f.b)("76066548")||!this.activeReporter)){t.next=5;break}return t.abrupt("return");case 5:if(u=(c=null!=(r=null==(e=this.activeReporter.plugins)?void 0:e.AutoAdvancedMatching)?r:{}).auto_email,s=c.auto_phone_number,0!==[u&&cd,s&&cp].filter(Boolean).length){t.next=9;break}return t.abrupt("return");case 9:return this.isScanning=!0,t.next=12,function(t){return cl.apply(this,arguments)}({root:document.body,ignoreTags:["a"],patterns:[u&&cd,!1],minTextLength:5,maxTextLength:1e3});case 12:if(p=null!=(o=null==(n=(l=t.sent.patterns).find(function(t){return"email"===t.name}))?void 0:n.values)?o:[],d=null!=(a=null==(i=l.find(function(t){return"phone_intl"===t.name}))?void 0:i.values)?a:[],this.isScanning=!1,0!==p.length||0!==d.length){t.next=19;break}return t.abrupt("return");case 19:this.sendToAutoAdvancedMatchingPlugin(p[0],d[0]);case 20: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){c_(i,n,o,a,c,"next",t)}function c(t){c_(i,n,o,a,c,"throw",t)}a(void 0)})},o.getPIIFromTextNode=function(){return n.apply(this,arguments)},o.sendToAutoAdvancedMatchingPlugin=function(t,e){var r={source:Y.eM.TEXT,timestamp:(0,tE.u3)(),email:t,phone:e,detectedAt:"page_load"};this.eventEmitter.emit("PII_DETECTED",r)},o.pixelSend=function(t,e){if(this.hasDoneFirstScan&&"Pageview"===e){var r,n=null==(r=this.activeReporter)?void 0:r.getReporterId();n&&n===t&&this.getPIIFromTextNode()}},e}(rl);cg=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),cy(0,K(g.D.CONTEXT)),cy(1,K(g.D.TTQ_REPORTERS)),cy(2,K(g.D.EVENT_EMITTER))],cg);var cE=["phone","telephone","cellphone"],cb=["email"],cw="dataLayer",cO={totalEnqueued:0,totalProcessedBatches:0,totalProcessedItems:0,totalTraverseErrors:0,totalFound:0,totalRevisits:0,totalDropped:0,lastBatchDurationMs:0,lastItemDurationMs:0,maxBatchDurationMs:0,maxItemDurationMs:0},cI=function(t,e){return t.toLowerCase().includes(e.toLowerCase())},cT=function(t){return void 0===t&&(t=cb),{kind:"email",matchKey:function(e){return t.some(function(t){return cI(e,t)})},acceptValue:function(){return!0}}},cS=function(t){return void 0===t&&(t=cE),{kind:"phone",matchKey:function(e){return t.some(function(t){return cI(e,t)})},acceptValue:function(){return!0}}},cR=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 c=window[t],u=Array.isArray(c)?c:void 0;if(u)return r=u,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}},cN=function(t,e){(0,u.vU)(s.O.CUSTOM_ERROR,e||Error(t),{custom_name:"cdp_visiter_plugin",custom_enum:t})},cL=function(t){try{return JSON.stringify(t)}catch(t){return"[unserializable]"}},cA=function(t){return!!t&&("object"==typeof t||"function"==typeof t)},cx=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=cL(t);return n.length>e?n.slice(0,e)+"…":n}catch(t){return"[unserializable]"}};function cP(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 cC(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 ck(t){try{if(Array.isArray(t))return t.map(function(t){return cP(t)?cC(t):t});if(cP(t))return cC(t);return t}catch(e){return t}}function cD(t){try{if(t&&"object"==typeof t&&"string"==typeof t.event)return t.event}catch(t){}}function cM(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 cj(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 cj(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 cj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var cU=function(t){var e=new WeakMap,r=[],n=function(t,e,r,n){try{for(var o,i=cM(t);!(o=i()).done;)for(var a,c=o.value,u=ck(c),s=Array.isArray(u)?u:[u],l=cM(s);!(a=l()).done;){var f=a.value,h=cD(f);e(f,{path:n,source:r,eventName:h})}}catch(t){cN("hooked_push_catch",t)}};return{hookDataLayerPush:function(o){if(!(!Array.isArray(o)||e.has(o))){var i=o.push;if("function"==typeof i){var a=function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];var a=i.apply(this,r);return n(r,t,"push","dataLayer.push"),a};try{var c,l=Object.getOwnPropertyDescriptor(o,"push"),f=l&&("get"in l||"set"in l);if(!l||!f&&l.configurable&&l.writable)Object.defineProperty(o,"push",{configurable:!0,writable:!0,enumerable:!!l&&l.enumerable,value:a}),e.set(o,!0),c=function(){try{Object.defineProperty(o,"push",{configurable:!0,writable:!0,enumerable:!!l&&l.enumerable,value:i});try{e.delete(o)}catch(t){}}catch(t){cN("unhook_error",t)}},r.push(c);else if(f&&!0===l.configurable){(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"push_accessor_property"});var h=l.get,p=l.set;Object.defineProperty(o,"push",{configurable:!0,enumerable:l.enumerable,get:function(){var e;if("function"==typeof h)try{e=h.call(this)}catch(t){cN("original_getter_error",t)}return"function"==typeof e?function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=e.apply(this,o);return n(o,t,"push","dataLayer.push"),a}:a},set:function(t){if("function"==typeof p)try{p.call(this,t)}catch(t){cN("original_setter_error",t)}i=t,"function"!=typeof p&&Object.defineProperty(this,"push",{configurable:!0,writable:!0,enumerable:l.enumerable,value:t})}}),e.set(o,!0),c=function(){try{Object.defineProperty(o,"push",{configurable:!0,writable:!0,enumerable:l.enumerable,value:i});try{e.delete(o)}catch(t){}}catch(t){cN("unhook_error",t)}},r.push(c)}else(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"push_unwritable"})}catch(t){cN("hooked_defineProperty_error",t)}}}},enqueueCurrentDataLayer:function(e){try{var r=e||window.dataLayer;if(Array.isArray(r))for(var n=ck(r),o=Array.isArray(n)?n:r,i=0;i<o.length;i++){var a=o[i],c=cD(a);t(a,{path:"dataLayer["+i+"]",source:"initial",eventName:c})}else if(r&&"object"==typeof r){var u=ck(r),s=cD(u);t(u,{path:"dataLayer",source:"initial",eventName:s})}}catch(t){cN("initial_enqueue_error",t)}},unhook:function(){for(;r.length>0;)try{var t=r.pop();t&&t()}catch(t){cN("unhook_function_error",t)}},isHooked:function(t){return!!t&&"object"==typeof t&&e.has(t)}}},cF=function(t){var e=null,r=!1,n=cU(t),o=function(t){void 0===t&&(t=cw),e=cR(t,{cdpRef:e,hookCdpPush:n.hookDataLayerPush,enqueueCurrentCdp:function(){n.enqueueCurrentDataLayer(e)},err:cN})};return{init:function(){if(!r){r=!0;try{o(cw)}catch(t){cN("intercept_dataLayer",t)}}},rescan:function(){return n.enqueueCurrentDataLayer(e)},destroy:function(){n.unhook(),e=null,r=!1},getDataLayerRef:function(){return e}}};function cG(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var cV=function(t,e){var r=new WeakMap,n=new Set,o={totalFound:0,totalTraverseErrors:0,totalRevisits:0},i=function(t,r,i,a,c,u){var s={kind:t,key:r,value:i,path:a,source:c,event:u,ts:(0,tE.u3)()},l=cx(s.value,200),f=s.kind+"|"+l;n.has(f)||(n.add(f),o.totalFound+=1,e(s))},a=function(e,r,n,o,a){for(var c,u=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 cG(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 cG(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.")}(t.extractors);!(c=u()).done;){var s=c.value;try{if(!s.matchKey(e)||s.acceptValue&&!s.acceptValue(r,n))continue;i(s.kind,e,r,n,o,a)}catch(t){cN("runExtractorsCatch"+s.kind+"Error",t)}}},c=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 l=i.depth,f=i.path,h=void 0===f?"":f,p=i.source,d=i.budgetLimit,v=i.eventName;if(!(l>t.maxDepth)){var _=0;if(!(0>=d)&&(_++,!(!cA(n)||cA(n)&&n instanceof Element))){var m=r.get(n)||0;if(m>=3)return void o.totalRevisits++;if(r.set(n,m+1),!Array.isArray(n)&&"object"==typeof n&&t.maxObjectKeyLength&&t.maxObjectKeyLength>0&&Object.keys(n).length>t.maxObjectKeyLength)return;var y="string"==typeof(null==n?void 0:n.event)?n.event:void 0,g=v||y;if(Array.isArray(n)){try{for(var E=0;E<n.length&&!(_>=d);E++){if(cA(n[E])){var b=n[E],w=r.get(b)||0;if(w>=3){o.totalRevisits++;continue}r.set(b,w+1)}e(n[E],{depth:l+1,path:h+"["+E+"]",source:p,budgetLimit:d,eventName:g})}}catch(t){o.totalTraverseErrors++,cN("traverse_array_error",t)}return}try{for(var O=0,I=Object.entries(n);O<I.length;O++){var T=I[O],S=T[0],R=T[1];if(!c(S)){var N=h?h+"."+S:S;if(a(S,R,N,p,g),_>=d)break;cA(R)&&e(R,{depth:l+1,path:N,source:p,budgetLimit:d,eventName:g})}}}catch(t){o.totalTraverseErrors++,cN("traverse_object_entries_error",t),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"traverse_object_entries_error_stats",extJSON:{message:JSON.stringify(Object.assign({path:h||""},o))}})}}}},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 cH(){cH=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function cq(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}var cB=function(t,e,r){var n,o,i=[],a=Object.assign({},cO),c=!1,l=!1,f=0,h=0,p=function(){return"function"==typeof(null==performance?void 0:performance.now)?performance.now():(0,tE.u3)()},d=(n=cH().mark(function n(){var o,v,_,m,y,g,E,b,w,O,I;return cH().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!c){n.next=2;break}return n.abrupt("return");case 2:return c=!0,n.prev=3,n.next=6,ci(!1);case 6:if(n.sent){n.next=13;break}return o=Math.min(1e3,20*(1<<f)),f=Math.min(f+1,10),c=!1,i.length&&setTimeout(d,Math.floor(o)),n.abrupt("return");case 13:if(f=0,v=p(),_=Math.min(t.maxNodesPerTraverse,t.maxNodePerBatch),m=0,y=0,!(++h>=100)){n.next=27;break}return i.length=0,h=0,a.totalDropped=(a.totalDropped||0)+i.length,(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"max_batch_count"}),e.resetVisited(!0),c=!1,n.abrupt("return");case 27:g=h%10==0,e.resetVisited(g);case 29:if(!i.length){n.next=43;break}if(!(p()-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++,b=p();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,cN("traverse_catch",t)}w=p()-b,a.lastItemDurationMs=w,w>a.maxItemDurationMs&&(a.maxItemDurationMs=w),n.next=29;break;case 43:O=p()-v,a.lastBatchDurationMs=O,O>a.maxBatchDurationMs&&(a.maxBatchDurationMs=O),a.totalProcessedBatches+=1,a.totalProcessedItems+=m,e.getStats&&(I=e.getStats())&&I.totalRevisits&&(a.totalRevisits=(a.totalRevisits||0)+I.totalRevisits),r(a),n.next=56;break;case 52:n.prev=52,n.t0=n.catch(3),cN("schedule_catch",n.t0),l=!0;case 56:return n.prev=56,c=!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){cq(i,r,o,a,c,"next",t)}function c(t){cq(i,r,o,a,c,"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))}}},cK={maxDepth:3,maxNodesPerTraverse:1e3,maxObjectKeyLength:20,skipKeys:["html","snapshot","content","description","fullstate","raw","payload","products","catalog","recommendations","dom","tree","schema","source","trace","stack","contact","setting","fake","visitor","allow","md5"],extractors:[],onFound:function(){},maxNodePerBatch:100,maxMsPerBatch:8,maxQueueSize:1e3},cW=function(t){if(!t)return{init:function(){},rescan:function(){},getQueueSize:function(){return 0},getStats:function(){return Object.freeze(Object.assign({},cO))},getFoundKeys:function(){return[]},destroy:function(){},config:{}};var e,r,n=Object.assign(Object.assign({},cK),{extractors:[cT(),cS()]}),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({},cO),a=cV(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){cN("extractor_onHit_error",t)}try{o.onFound(t)}catch(t){cN("on_found_error",t)}}),c=cB(o,a,function(t){i=Object.assign(Object.assign({},i),t)}),u=cF(c.enqueue);return{init:u.init,rescan:u.rescan,getQueueSize:c.getQueueSize,getStats:c.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=u.getDataLayerRef();void 0!==e&&(window.dataLayer=e)}}catch(t){}u.destroy()}catch(t){cN("destroy_error",t)}},config:o}};function cY(t,e){return(cY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cX=function(t,e){return function(r,n){e(r,n,t)}},cJ=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,cY(e,t);var r=e.prototype;return r.pageLcp=function(){if(!this.lcpTriggered){this.lcpTriggered=!0;var t=this.reporters.some(function(t){var e;return(e=t.plugins)&&e.EnableDatalayerVisiter||!1});h.$9&&h.hj&&t&&this.tryProxyDataLayer()}},r.tryProxyDataLayer=function(){var t=this,e=function(){var t,e;return(null!=(e=null==(t=null==window?void 0:window.dataLayer)?void 0:t.length)?e:0)>0};if(e())return void this.extractDataLayerIfReady();setTimeout(function(){e()&&t.extractDataLayerIfReady()},3e3)},r.extractDataLayerIfReady=function(){try{this.extractDataLayer(),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"extract_dataLayer_start"})}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"cdp_visiter_plugin",custom_enum:"extract_dataLayer_catch"})}},r.extractDataLayer=function(){var t,e,r=this,n=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(n){var o,i,a=null!=(e=null==(t=n.plugins)?void 0:t.AutoAdvancedMatching)?e:{},c=a.auto_email,l=a.auto_phone_number,f=this.reporters.some(function(t){var e;return null==(e=t.plugins)?void 0:e.AutoConfigV2})||!1,h=cW({maxNodePerBatch:600,maxMsPerBatch:8,extractors:[c&&cT(["email"]),l&&cS(["phone","telephone"]),f&&(o=["transaction_id"],{kind:"ga_data",matchKey:function(t){return o.some(function(e){return cI(t,e)})},acceptValue:function(){return!0}}),f&&(i=["id"],{kind:"ga_data",matchKey:function(t){return i.some(function(e){return cI(t,e)})},acceptValue:function(t,e){return!!((null==e?void 0:e.includes("ecommerce.purchase.actionField.id"))||(null==e?void 0:e.includes("order_id")))}})].filter(Boolean),onFound:function(t){if((null==t?void 0:t.kind)==="email"&&"string"==typeof(null==t?void 0:t.value)&&(t.value.includes("@")||64===t.value.length)||(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,u.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"pii_data_detected",extJSON:{message:JSON.stringify({kind:t.kind,path:t.path})}}),r.sendToAutoAdvancedMatchingPlugin(e)}else(null==t?void 0:t.kind)==="ga_data"&&t.value&&((0,u.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"ga_data_detected",extJSON:{message:JSON.stringify({path:t.path,event:t.event||"",value:String(t.value)})}},!1,!0),r.context.setTransactionId(String(t.value)))}});this.scanner=h,this.scanner.init()}},r.sendToAutoAdvancedMatchingPlugin=function(t){var e=void 0===t?{}:t,r=e.email,n=e.phone;try{var o={source:Y.eM.DATA_LAYER,timestamp:(0,tE.u3)(),email:r,phone:n,detectedAt:"data_layer"};this.eventEmitter.emit("PII_DETECTED",o)}catch(t){}},e}(rl);function cZ(t,e){return(cZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}cJ=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),cX(0,K(g.D.CONTEXT)),cX(1,K(g.D.TTQ_REPORTERS)),cX(2,K(g.D.EVENT_EMITTER))],cJ);var cz=function(t,e){return function(r,n){e(r,n,t)}},cQ=function(t){function e(e,r){var n;return(n=t.call(this,{name:"LPV",reporters:r,context:e})||this).pluginHasReportedESRecord={},n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,cZ(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,e){var r=this;void 0===e&&(e={});var n=null,o=0,i=!0,a=null==t?void 0:t.getCookieBasedSession().hasReportedES,c=function(){r.checkHasReportedES(e,t.getReporterId())||(r.pluginHasReportedESRecord[t.getReporterId()]=!0,t.track(R,r.buildDuration10sESData(),{},iF.TRACK,iV.defaultReport),t.setCookieBasedSession(Object.assign(Object.assign({},null==e?void 0:e.pixelSession),{hasReportedES:1})))},u=function(e){if(!(a=null==t?void 0:t.getCookieBasedSession().hasReportedES)){n=setTimeout(c,1e3*e);var r=(0,tE.u3)();document.addEventListener("visibilitychange",function t(){"hidden"!==document.visibilityState||a||(n&&clearTimeout(n),i=!1,n=null,o+=Math.floor(((0,tE.u3)()-r)/1e3),document.removeEventListener("visibilitychange",t))})}};u(10),document.addEventListener("visibilitychange",function(){if(a=null==t?void 0:t.getCookieBasedSession().hasReportedES,"visible"===document.visibilityState&&!a&&!i){var e=10-o;e<=0?c():u(e)}}),window.addEventListener("beforeunload",function(){n&&clearTimeout(n)})},r.pixelSend=function(t,e,r,n,o){void 0===n&&(n={});try{if(o!==iF.TRACK||(null==(i=r._inspection)?void 0:i.trigger_source)==="pixel_self")return;var i,a,c=this.reporters.find(function(e){return e.getReporterId()===t});if(!c||!this.isLPVSwitchOn(c))return;var l=(null==(a=null==n?void 0:n.pixelSession)?void 0:a.isSessionStart)||!1,f=this.context.getPageInfo().referrer,h=this.context.getPageSign().etldPlusOne,p=this.context.getPageSign().pageIndex;l&&c.track("LandingPageView",this.buildLPVData(),{},iF.TRACK,iV.defaultReport),this.checkHasReportedES(n,t)||(!l&&(f&&h&&f.includes(h)||p&&p.index>0)?(c.track(R,this.buildSecondJumpESData(),{},iF.TRACK,iV.defaultReport),c.setCookieBasedSession(Object.assign(Object.assign({},null==n?void 0:n.pixelSession),{hasReportedES:1}))):this.startEngagedSessionTimer(c,n))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"lpv_report"})}},r.checkHasReportedES=function(t,e){var r;return!!(this.pluginHasReportedESRecord[e]||(null==(r=null==t?void 0:t.pixelSession)?void 0:r.hasReportedES))},e}(rl);cQ=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),cz(0,K(g.D.CONTEXT)),cz(1,K(g.D.TTQ_REPORTERS))],cQ);var c$=[].concat([{identifier:g.D.MONITOR_PLUGIN,to:cn,name:"Monitor",required:!0},{identifier:g.D.AUTO_CONFIG_PLUGIN,to:o_,name:"AutoConfig",required:!1},{identifier:g.D.DIAGNOSTICS_CONSOLE_PLUGIN,to:oq,name:"DiagnosticsConsole",required:!1},{identifier:g.D.RUNTIME_MEASUREMENT_PLUGIN,to:a2,name:"RuntimeMeasurement",required:!1}],[{identifier:g.D.CALLBACK_PLUGIN,to:rp,name:"Callback"},{identifier:g.D.IDENTIFY_PLUGIN,to:rP,name:"Identify",required:!0},{identifier:g.D.EVENT_BUILDER_PLUGIN,to:oX,name:"EventBuilder"},{identifier:g.D.ENRICH_IPV6_PLUGIN,to:oQ,name:"EnrichIpv6"},{identifier:g.D.PAGEDATA_PLUGIN,to:aZ,name:"PageData"},{identifier:g.D.LPV_PLUGIN,to:cQ,name:"LPV"},{identifier:g.D.TEXT_TREE_WALKER_PLUGIN,to:cg,name:"TextTreeWalker",required:!1},{identifier:g.D.CDP_VISITER_PLUGIN,to:cJ,name:"CdpVisiter",required:!1}]),c0=/^[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+(:?\.[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+)*@(?:[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?$/,c1=function(t){return"function"==typeof Element?t instanceof Element:t&&"object"==typeof t&&t.nodeType===Node.ELEMENT_NODE&&"string"==typeof t.nodeName},c2=function(t,e){var r=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||null;return!!(null!==r&&r.call(t,e.join(",")))||t instanceof HTMLButtonElement&&!!e.includes("button[type='"+t.type+"']")},c3=function(t){if(!t||t===document.body)return!1;if(t.getBoundingClientRect&&"function"==typeof t.getBoundingClientRect){var e=t.getBoundingClientRect().height||t.offsetHeight||11;return e>10&&e<600}return!0},c6=function(t){return t.trim().toLowerCase()},c5=function(t,e){return!!t&&!!e&&t.indexOf(e)>=0},c8=function(t){return"string"==typeof t&&c0.test(t)},c4=function(t){if(!t)return null;for(var e=t.parentElement,r=t,n="";r;)(r=r.previousElementSibling)&&(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement)&&(n=r.value,r=null);if(!n||"string"!=typeof n||!e||0>(e.innerText||e.textContent||"").indexOf("@"))return null;var o=n+"@"+t.value;return c8(o)?o:null},c9=function(t,e){var r=t.id,n=t.name,o=t.placeholder,i=void 0===o?"":o,a=t.value,c=void 0===a?"":a;return e.filter(function(t){return t.length>2?c5(n,t)||c5(r,t)||c5(i,t)||c5(c,t):n===t||r===t||i===t||c===t})};function c7(t,e){return(c7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ut=function(t,e){return function(r,n){e(r,n,t)}},ue="AutoAdvancedMatching",ur=function(t){function e(e,r,n,o){var i;return(i=t.call(this,{name:ue,reporters:r,context:e})||this).rateMS=1e3,i.lastTime=0,i.lastElement=null,i.matchHistory=[],i.handleUserAction=function(t){try{var e=(0,l.Ie)()||[],r=t&&t.target&&t.target instanceof Node&&c1(t.target)?t.target:null;if(!r||!i.throttle(r))return;var n=i.getWrappingButton(r);if(!n)return;var o=i.getFormByButton(n);if(i.config.in_form&&!o)return;var a=i.getUserDataByForm(o);if(0===Object.keys(a).length)return;null==e||e.identify(Object.assign(a||{},{auto_trigger_type:i.getTriggerType(n,!!o),trigger_source:a.eb_email?Y.eM.RM_KEYWORDS:Y.eM.V1})),i.matchHistory.push(Object.assign({},a))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"advancedMatching"})}},i.eventEmitter=o,i.config=n.aam||{in_form:!0,selectors:{},exclude_selectors:[],phone_regex:"",phone_selectors:[],restricted_keywords:[]},i.phoneRegex=i.config.phone_regex?new RegExp(i.config.phone_regex):null,i.init(),i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,c7(e,t);var r=e.prototype;return r.init=function(){if(this.eventEmitter.on("PII_DETECTED",this.handlePIIDetected.bind(this),{}),co()){if("undefined"==typeof window)return;this.eventEmitter.on(m.PG.CLICK,this.handleUserAction,{priority:100}),this.eventEmitter.setObserverConfig({observerType:m.PG.CLICK,pluginName:ue,target:window,listenEventTypes:[m.PG.CLICK],environment:"window",mode:"append"});return}"undefined"!=typeof document&&document.addEventListener("click",this.handleUserAction,{capture:!0,once:!1,passive:!0})},r.handlePIIDetected=function(t){var e=t.email,r=t.phone,n=t.source,o=Object.assign(Object.assign({},e&&{eb_email:e}),r&&{eb_phone_number:r});if(0!==Object.keys(o).length){var i=e?"auto_email":"auto_phone_number",a=this.reporters.find(function(t){var e;return null==(e=t.plugins.AutoAdvancedMatching)?void 0:e[i]});null==a||a.identify(o,{trigger_source:n}),this.mergeTextPIIIntoMatchHistory(o,n)}},r.mergeTextPIIIntoMatchHistory=function(t,e){var r=Object.assign(Object.assign({},t),{auto_trigger_type:e,auto_timestamp:(0,tE.u3)()});this.matchHistory.push(r)},r.throttle=function(t){var e=!1;return(!this.lastElement||!this.lastTime||(0,tE.u3)()-this.lastTime>=this.rateMS||this.lastElement!==t)&&(e=!0),this.lastElement=t,this.lastTime=(0,tE.u3)(),e},r.getWrappingButton=function(t){if(!t||!c3(t)||(this.config.exclude_selectors||[]).length>0&&c2(t,this.config.exclude_selectors||[]))return null;if(c2(t,Object.keys(this.config.selectors||{})))return t;var e=t.parentNode;return e&&c1(e)?this.getWrappingButton(e):null},r.getFormByButton=function(t){if(t instanceof HTMLInputElement)return t.form;for(var e=t;"FORM"!==e.nodeName.toUpperCase();){var r=e.parentElement;if(!r)return null;e=r}return e},r.getUserDataByForm=function(t){for(var e={},r=t||document,n=r.querySelectorAll("input,textarea,select"),o=0;o<n.length;o++){var i=n[o];if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement){var a=this.getPIIFieldsByInput(i);a&&Object.assign(e,a)}}return e},r.getPIIFieldsByInput=function(t){var e=t.getAttribute("type")||"",r=t.getAttribute("inputmode")||"",n=t.value,o=c6(t.placeholder?t.placeholder:"").replace(/[_-]/g,""),i={id:c6(t.id).replace(/[_-]/g,""),name:c6(t.name).replace(/[_-]/g,"")};if("password"===e||!n||c9(i,this.config.restricted_keywords).length>0&&!co())return null;if(c8(n))return{auto_email:c6(n)};var a=c4(t);if(a)return{auto_email:c6(a)};if("US"===(0,l.so)()&&n.replace(/\D/g,"").length<10)return null;var c=!(this.config.phone_selectors.length>0)||"tel"===e||"tel"===r||c9(Object.assign(i,{placeholder:o}),this.config.phone_selectors).length>0,u=!this.phoneRegex||this.phoneRegex.test(n);return c&&u?{auto_phone_number:n}:null},r.getTriggerType=function(t,e){var r=this;try{var n=[];if(Object.keys(this.config.selectors).forEach(function(e){c2(t,[e])&&n.push(r.config.selectors[e])}),0===n.length)return"";return n.join(",")+"-"+ +!!e}catch(t){return""}},e}(rl);ur=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),ut(0,K(g.D.CONTEXT)),ut(1,K(g.D.TTQ_REPORTERS)),ut(2,K(g.D.TTQ_GLOBAL_OPTIONS)),ut(3,K(g.D.EVENT_EMITTER))],ur);var un=function(t,e){t.isBound(g.D.AUTO_ADVANCED_MATCHING_PLUGIN)||t.bind(g.D.AUTO_ADVANCED_MATCHING_PLUGIN).to(ur).inSingletonScope(),u9(g.D.AUTO_ADVANCED_MATCHING_PLUGIN,"AutoAdvancedMatching")&&e.usePlugin(t.get(g.D.AUTO_ADVANCED_MATCHING_PLUGIN))};function uo(t,e){return(uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ui=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,uo(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}(ru),ua="HistoryObserver";(i||(i={})).DYNAMIC_WEB_PAGEVIEW="dynamic_web_pageview";var uc=["GoogleTagManagerClient","GoogleTagManagerServer"];function uu(t,e){var r=history[t];return function(){var t=Array.prototype.slice.call(arguments);r.apply(history,t),e()}}function us(t){var e=t.options,r=t.plugins;return e&&!1!==e.historyObserver&&r&&r[ua]}function ul(t,e){var r=Q().url,n=t.context.getPageInfo().url;if(r!==n){var o,a=t.context.setPageInfo(r,n);a&&a.pageIndex&&tA(a.pageIndex),(0,_.Kn)(m.Cr.URL_CHANGE,r,n),t.reporters.filter((o=i.DYNAMIC_WEB_PAGEVIEW,function(t){var e=t.plugins;return!!(us(t)&&e[ua]&&e[ua][o])})).forEach(function(t){setTimeout(function(){t.page(e)})})}}function uf(t,e){return(uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uh=function(t,e){return function(r,n){e(r,n,t)}},up=function(t){function e(e,r){var n;return(n=t.call(this,{name:ua,reporters:r,context:e})||this).enableListenSPAHistoryChange=!1,n.listenSPAHistoryChange=(0,h.IH)(function(){var t=function(){n.enableListenSPAHistoryChange&&n.notifyObservers({tf:iD.HISTORY_CHANGE})},e=(0,h.bJ)(t);window.addEventListener("popstate",e),history.pushState=uu("pushState",t),history.replaceState=uu("replaceState",t)}),n.dynamicWebPageviewHandler=ul.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,uf(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&&!uc.includes(e)||r&&t.isPartnerReporter()&&!uc.includes(r))}(t),this.enableListenSPAHistoryChange&&this.listenSPAHistoryChange()},r.pixelSend=function(t,e){var r=this.reporters.find(function(e){return e.getReporterId()===t});r&&us(r)&&(e&&"string"==typeof e&&"pageview"===e.toLowerCase()&&this.addObserver(this.dynamicWebPageviewHandler),this.initListener(r))},r.pageUrlWillChange=function(){if(this.enableListenSPAHistoryChange)return void this.notifyObservers({tf:iD.HISTORY_CHANGE});this.notifyObservers({tf:iD.URL_CHANGE,event_experiment:"pageview"})},e}(ui);function ud(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}up=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),uh(0,K(g.D.CONTEXT)),uh(1,K(g.D.TTQ_REPORTERS))],up);var uv=function(){function t(t){var e=this;this.configMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map,this.listeners=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map,this.listenedElementsSet=h.$9?new WeakSet:new Set,this.handleEvent=function(t){try{e.sendEvent(t)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:e.getObserverType()+"Observer",custom_enum:"handleEvent_error"})}},this.eventEmitter=t,this.configMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map}var e=t.prototype;return e.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,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:this.getObserverType()+"Observer",custom_enum:"setupListeners_error"})}},e.teardownListeners=function(t){var e=this;if(t){var r=this.configMap.get(t);r&&r.length&&r.forEach(function(r){var n,o=r.target;if(Array.isArray(o)){var i=o.join(", ");n=document.querySelectorAll(i)}else n=[o];n.forEach(function(t){for(var n,o=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 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))){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.")}(r.listenEventTypes);!(n=o()).done;){var i=n.value,a=e.listeners.get(i)||e.handleEvent;t.removeEventListener(i,a),e.listenedElementsSet.delete(t),e.listeners.delete(i)}}),e.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 u_(t,e){return(u_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var um=function(t){function e(e){return t.call(this,e)||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,u_(e,t);var r=e.prototype;return r.bindListener=function(t,e){!this.listenedElementsSet.has(t)&&(this.listenedElementsSet.add(t),t instanceof Element&&h.P6.some(function(e){return t.matches(e)})||t.addEventListener(e,this.handleEvent,{capture:!0,passive:!0}))},r.getObserverType=function(){return"click"},e}(uv);function uy(t,e){return(uy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ug=function(t){function e(e){return t.call(this,e)||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uy(e,t);var r=e.prototype;return r.bindListener=function(t,e){var r=this;if(!this.listenedElementsSet.has(t)){this.listenedElementsSet.add(t);var n=(0,tg.P2)(function(t){return r.handleEvent(t)},200,{trailing:!0});t.addEventListener(e,n,{passive:!0,capture:!0}),this.listeners.set(e,n)}},r.getObserverType=function(){return"scroll"},e}(uv);function uE(t,e){return(uE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ub=function(t,e){return function(r,n){e(r,n,t)}},uw=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(m._V.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,uE(e,t);var r=e.prototype;return r.registerObserver=function(t){var e;switch(t){case"click":e=new um(this.eventEmitter);break;case"scroll":e=new ug(this.eventEmitter);break;default:return}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}(ui);uw=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 c=t.length-1;c>=0;c--)(o=t[c])&&(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}([B(),ub(0,K(g.D.CONTEXT)),ub(1,K(g.D.TTQ_REPORTERS)),ub(2,K(g.D.EVENT_EMITTER))],uw);var uO=[{identifier:g.D.HISTORY_OBSERVER,to:up,name:"HistoryObserver"},{identifier:g.D.INTERACTION_OBSERVER,to:uw,name:"InteractionObserver"}];function uI(){uI=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function uT(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 uS(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 uS(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 uS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var uR=function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,c)}u((n=n.apply(t,e||[])).next())})},uN=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;n<o;){var i=Math.min(n+e,o);if(i===o){var a=t.slice(n).trim();a&&r.push(a);break}if(uL(t[i]||"")){var c=uA(t,i),u=c.leftBound,s=c.rightBound;if(i-u<=s-i){var l=t.slice(n,u+1).trim();l&&r.push(l);var f=t.slice(u+1,s+1).trim();f&&r.push(f),n=s+1}else{var h=t.slice(n,s+1).trim();h&&r.push(h),n=s+1}}else{var p=t.slice(n,i).trim();p&&r.push(p),n=i}}return r},uL=function(t){if(1!==t.length)throw TypeError("char must be a single character");return!t9.has(t)},uA=function(t,e){for(var r=e,n=e;r>0&&uL(t[r]);)r--;for(;n<t.length&&uL(t[n]);)n++;return{leftBound:r,rightBound:n}},ux=function(t){return et[t]||et[iK.DEFAULT]};function uP(t){return null===t?"null":void 0===t?"undefined":Array.isArray(t)?"array":t instanceof Date?"date":t instanceof RegExp?"regexp":t instanceof Map?"map":t instanceof Set?"set":"symbol"==typeof t?"symbol":typeof t}function uC(t){if(!(null==t?void 0:t.length))return[];for(var e=t.slice().sort(function(t,e){return t.start-e.start||e.end-t.end}),r=[],n=e[0],o=1;o<e.length;o++){var i=e[o];i.start>=n.end?(r.push(n),n=i):i.end>n.end&&(n={start:n.start,end:i.end,value:i.value})}return r.push(n),r}var uk=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="",c="";n<o;){var u=t[n];"text"===i?"<"===u?(r=this.processTextBuffer(c,e,r),c="",i="tag",a="<"):c+=u:(a+=u,">"===u&&(r=this.parseTag(a,e,r),i="text",a="")),n++}return r=this.processTextBuffer(c,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 uN(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("</")){var o={type:"tagEnd",name:t.slice(2,-1).trim(),position:n++};return e.push(o),n}var i=t.slice(1,-1).trim(),a=i.indexOf(" ");if(-1===a){var c={type:"tagStart",name:i,position:n++},u={type:"tagStartClose",name:i,position:n++};return e.push(c,u),n}var s=i.slice(0,a).trim(),l=i.slice(a+1).trim(),f=this.parseAttributes(l),h={type:"tagStart",name:s,position:n++};e.push(h),f.forEach(function(t){var r={type:"attribute",key:t[0],value:t[1],position:n++};e.push(r)});var p={type:"tagStartClose",name:s,position:n++};return e.push(p),n},e.parseAttributes=function(t){for(var e,r,n,o,i=[],a=/([\w-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s'"]+)))?/g;null!==(o=a.exec(t));){var c=o[1].trim(),u=null!=(n=null!=(r=null!=(e=o[2])?e:o[3])?r:o[4])?n:"";i.push([c,u])}return i},t}(),uD=function(){function t(){}return t.prototype.decompose=function(t,e){var r=this;void 0===e&&(e="");var n=[],o=0;return Array.isArray(t)?t.forEach(function(t,i){var a=e?e+"."+i:String(i);if(null!==t&&"object"==typeof t){var c=r.decompose(t,a);n.push.apply(n,c)}else"string"===uP(t)&&t.length>30?uN(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,c=t[i];if(null!==c&&"object"==typeof c){var u=r.decompose(c,a);n.push.apply(n,u)}else"string"===uP(c)&&c.length>30?uN(c,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:c,name:i,position:o++})}),n},t}();function uM(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var uj=function(){function t(){}return t.prototype.recompose=function(t,e){for(var r,n="",o=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 uM(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 uM(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.")}(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+="</"+i.name+">"}}return n},t}(),uU=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,c=i[e+1],u="array-item"===o||!r&&void 0!==c&&!isNaN(Number(c));void 0===a[t]&&(a[t]=u?[]:{}),r?a[t]&&"string"==typeof a[t]?a[t]+=n:a[t]=n:a=a[t]})}}),r},t}();function uF(){uF=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var uG=function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,c)}u((n=n.apply(t,e||[])).next())})},uV=function(){function t(t){this.matcher=t}var e=t.prototype;return e.redactSync=function(t,e){var r=this,n=uC(this.matcher.match(t));return e(function(t,e,r){if(!e||0===e.length)return t;for(var n,o="",i=0,a=uT(e);!(n=a()).done;){var c=n.value;c.start>i&&(o+=t.slice(i,c.start)),o+=r(c),i=c.end}return i<t.length&&(o+=t.slice(i)),o}(t,n,function(t){return r.processMatchSync(t.value)}))},e.redactAsync=function(t,e){return uG(this,void 0,void 0,uF().mark(function r(){var n,o,i=this;return uF().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=uC(this.matcher.match(t)),r.next=3,function(t,e,r){return uR(this,void 0,void 0,uI().mark(function n(){var o,i,a,c,u,s;return uI().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!(!e||0===e.length)){n.next=2;break}return n.abrupt("return",t);case 2:o="",i=0,a=uT(e);case 5:if((c=a()).done){n.next=15;break}return(u=c.value).start>i&&(o+=t.slice(i,u.start)),n.next=10,r(u);case 10:s=n.sent,o+=s,i=u.end;case 13:n.next=5;break;case 15:return i<t.length&&(o+=t.slice(i)),n.abrupt("return",o);case 17:case"end":return n.stop()}},n)}))}(t,n,function(t){return uG(i,void 0,void 0,uF().mark(function e(){return uF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.processMatchAsync(t.value);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}))});case 3:return o=r.sent,r.next=6,e(o);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}},r,this)}))},t}();function uH(){uH=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function uq(t,e){return(uq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uB=function(t){function e(e,r){var n;return void 0===r&&(r=iK.DEFAULT),(n=t.call(this,e)||this).tag=r,n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uq(e,t);var r=e.prototype;return r.processMatchSync=function(){return ux(this.tag)},r.processMatchAsync=function(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=uH().mark(function t(){return uH().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ux(this.tag));case 1:case"end":return t.stop()}},t,this)}),new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,c)}u((n=n.apply(t,e||[])).next())})},e}(uV);function uK(){uK=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function uW(t,e){return(uW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uY=function(t){function e(e,r,n){var o;return(o=t.call(this,e)||this).hashSync=r,o.hashAsync=n,o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uW(e,t);var r=e.prototype;return r.processMatchSync=function(t){return this.hashSync(t)},r.processMatchAsync=function(t){var e,r,n,o;return e=this,r=void 0,n=void 0,o=uK().mark(function e(){return uK().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.hashAsync?this.hashAsync(t):function(t){return uR(this,void 0,void 0,uI().mark(function e(){var r,n;return uI().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=new TextEncoder().encode(t),e.next=4,crypto.subtle.digest("SHA-256",r);case 4:return n=Array.from(new Uint8Array(e.sent)).map(function(t){return t.toString(16).padStart(2,"0")}).join(""),e.abrupt("return",n);case 8:case"end":return e.stop()}},e)}))}(t));case 1:case"end":return e.stop()}},e,this)}),new(n||(n=Promise))(function(t,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(e){var r;e.done?t(e.value):((r=e.value)instanceof n?r:new n(function(t){t(r)})).then(a,c)}u((o=o.apply(e,r||[])).next())})},e}(uV);function uX(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function uJ(t,e){return(uJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uZ=function(t){function e(e){var r,n,o=t.call(this)||this;return o.patterns=[].concat((null!=(r=null==e?void 0:e.keywords)?r:[]).map(function(t){return RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi")}),null!=(n=null==e?void 0:e.regexArray)?n:[]),o}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uJ(e,t),e.prototype.match=function(t){if(!t)return[];for(var r,n=[],o=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 uX(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 uX(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.")}(this.patterns);!(r=o()).done;){var i=r.value;try{i.lastIndex=0}catch(t){}for(var a=void 0,c=0;null!==(a=i.exec(t))&&c++<e.MAX_LOOP_COUNT&&a[0]&&(n.push({start:a.index,end:a.index+a[0].length,value:a[0]}),i.global););}return n},e}(function(){});function uz(){uz=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._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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 h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=d.prototype=h.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){u(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,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 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 I(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<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object._ttq_create(y),t},t.awrap=function(t){return{__await:t}},g(E.prototype),u(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},g(y),u(y,c,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}uZ.MAX_LOOP_COUNT=5;var uQ=function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,c)}u((n=n.apply(t,e||[])).next())})},u$=function(){function t(){this.pipelines={replace:[],encrypt:[]},this.htmlDecomposer=new uk,this.elementDecomposer=new uD,this.htmlRecomposer=new uj,this.elementRecomposer=new uU}var e=t.prototype;return e.registerReplaceRedactor=function(t){if("function"!=typeof t.redactSync||"function"!=typeof t.redactAsync)throw Error("Redactor must implement redactSync and redactAsync");this.pipelines.replace.push(t)},e.registerEncryptRedactor=function(t){if("function"!=typeof t.redactSync||"function"!=typeof t.redactAsync)throw Error("Redactor must implement redactSync and redactAsync");this.pipelines.encrypt.push(t)},e.createReplaceRedactor=function(t){var e;return new uB(new uZ({keywords:null==t?void 0:t.keywords,regexArray:null==t?void 0:t.regexArray}),null!=(e=null==t?void 0:t.tag)?e:iK.DEFAULT)},e.createEncryptionRedactor=function(t,e,r){return new uY(new uZ({keywords:null==t?void 0:t.keywords,regexArray:null==t?void 0:t.regexArray}),e,r)},e.dispatchSync=function(t,e,r){var n=this,o=t[e];if(!o)return r;var i=function(o){return void 0===o&&(o=r),n.dispatchSync(t,e+1,o)};try{return o.redactSync(r,i)}catch(t){return i(r)}},e.dispatchAsync=function(t,e,r){return uQ(this,void 0,void 0,uz().mark(function n(){var o,i,a=this;return uz().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(o=t[e]){n.next=3;break}return n.abrupt("return",r);case 3:return i=function(n){return void 0===n&&(n=r),uQ(a,void 0,void 0,uz().mark(function r(){return uz().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.dispatchAsync(t,e+1,n));case 1:case"end":return r.stop()}},r,this)}))},n.prev=4,n.next=7,o.redactAsync(r,i);case 7:case 14:return n.abrupt("return",n.sent);case 10:return n.prev=10,n.t0=n.catch(4),n.next=14,i(r);case 15:case"end":return n.stop()}},n,null,[[4,10]])}))},e.selectEngines=function(t){return"string"==typeof t?{decomposer:this.htmlDecomposer,recomposer:this.htmlRecomposer}:{decomposer:this.elementDecomposer,recomposer:this.elementRecomposer}},e.processSync=function(t,e,r){var n=this;try{if("string"!=typeof t&&"object"!=typeof t||"object"==typeof t&&null===t)return{originalInput:t,success:!1,error:Error("Input must be string or object")};var o=this.selectEngines(t),i=o.decomposer,a=o.recomposer,c=i.decompose(t),u="encrypt"==e?this.pipelines.encrypt:this.pipelines.replace,s=c.map(function(t){if(r&&t.name&&r.has(t.name))return Object.assign(Object.assign({},t),{redactedValue:null!=(e=t.value)?e:""});if(null==(o=t.type)?void 0:o.includes("tag"))return Object.assign(Object.assign({},t),{redactedValue:""});var e,o,i,a=null!=(i=t.value)?i:"",c=n.dispatchSync(u,0,a);return Object.assign(Object.assign({},t),{redactedValue:c})}),l=a.recompose(s,t);return{originalInput:t,success:!0,redactedOutput:l}}catch(e){return{originalInput:t,success:!1,error:e}}},e.processAsync=function(t,e,r){return uQ(this,void 0,void 0,uz().mark(function n(){var o,i,a,c,u,s,l,f=this;return uz().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,("string"==typeof t||"object"==typeof t)&&("object"!=typeof t||null!==t)){n.next=3;break}return n.abrupt("return",{originalInput:t,success:!1,error:Error("Input must be string or object")});case 3:return i=(o=this.selectEngines(t)).decomposer,a=o.recomposer,c=i.decompose(t),u="encrypt"==e?this.pipelines.encrypt:this.pipelines.replace,n.next=8,Promise.all(c.map(function(t){return uQ(f,void 0,void 0,uz().mark(function e(){var n,o,i,a,c;return uz().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r&&t.name&&r.has(t.name))){e.next=2;break}return e.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:null!=(n=t.value)?n:""}));case 2:if(!(null==(o=t.type)?void 0:o.includes("tag"))){e.next=4;break}return e.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:""}));case 4:return a=null!=(i=t.value)?i:"",e.next=7,this.dispatchAsync(u,0,a);case 7:return c=e.sent,e.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:c}));case 9:case"end":return e.stop()}},e,this)}))}));case 8:return s=n.sent,l=a.recompose(s,t),n.abrupt("return",{originalInput:t,success:!0,redactedOutput:l});case 13:return n.prev=13,n.t0=n.catch(0),n.abrupt("return",{originalInput:t,success:!1,error:n.t0});case 16:case"end":return n.stop()}},n,this,[[0,13]])}))},t}(),u0=function(){function t(){this.name="SensitiveRedactor",this.engine=new u$}var e=t.prototype;return e.registerReplaceRedactor=function(t){var e=this.engine.createReplaceRedactor(t);return this.engine.registerReplaceRedactor(e),this},e.registerEncryptRedactor=function(t,e,r){var n=this.engine.createEncryptionRedactor(t,e,r);return this.engine.registerEncryptRedactor(n),this},e.processSync=function(t,e,r){return void 0===e&&(e="replace"),this.engine.processSync(t,e,r)},e.processAsync=function(t,e,r){return void 0===e&&(e="replace"),this.engine.processAsync(t,e,r)},t}(),u1=(0,l.Ie)(),u2=(null==u1?void 0:u1._container)||new q,u3=(null==u1?void 0:u1._container)?ij.REBIND:ij.BIND;(0,f.RA)();var u6=u2[u3](g.D.ENV),u5=u2[u3](E.M.SignalType);u2[u3](E.M.ID),u2[u3](E.M.Type),u2[u3](E.M.Options),u2[u3](E.M.Plugins),u2[u3](E.M.Rules),u2[u3](E.M.Info);var u8=u2[u3](E.M.WebLibraryInfo),u4=u2[u3](g.D.TTQ_GLOBAL_OPTIONS);try{if(!u2.get(g.D.TTQ_GLOBAL_OPTIONS))throw Error("")}catch(t){u4.toConstantValue({})}function u9(t,e){return!!(u1&&u1._mounted&&!u1.getPlugin(e)&&u2.isBound(t))}var u7=function(t,e){var r={name:"pixel.js",version:Y.Jn,options:void 0},n=(0,f.b4)();u8.toConstantValue(r),u6.toConstantValue(e),u5.toConstantValue(n)},st=function(t){(null==t?void 0:t._container)||(u2.bind(g.D.TTQ).to(ew).inSingletonScope(),u2.bind(g.D.CONTEXT).to(eL).inSingletonScope(),u2.bind(g.D.REPORTER).to(ep),u2.bind(g.D.TTQ_REPORTERS).toConstantValue([]),u2.bind(g.D.REPORT_SERVICE).to(eY).inSingletonScope(),u2.bind(g.D.AD_SERVICE).to(eZ).inSingletonScope(),u2.bind(g.D.APP_SERVICE).to(e$).inSingletonScope(),u2.bind(g.D.BRIDGE_SERVICE).to(e5).inSingletonScope(),u2.bind(g.D.HTTP_SERVICE).to(e9).inSingletonScope(),u2.bind(E.M.IsOnsitePage).toConstantValue({value:!1}),u2.bind(g.D.COOKIE_SERVICE).to(re).inSingletonScope(),u2.bind(g.D.CONSENT_SERVICE).to(ro).inSingletonScope(),u2.bind(g.D.EVENT_EMITTER).to(tQ).inSingletonScope(),u2.bind(g.D.INTER_ID_SERVICE).to(rc).inSingletonScope(),u2.bind(g.D.SENSITIVE_REDACTOR).to(u0).inSingletonScope()),t&&!t._container&&(t._container=u2)},se=function(){c$.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))&&!u2.isBound(i)&&u2.bind(i).to(e).inSingletonScope(),u9(i,n)&&u1.usePlugin(u2.get(i))})},sr=function(){uO.forEach(function(t){var e=t.to,r=t.name,n=t.identifier;(0,l.Wf)(void 0===r?"":r)&&!u2.isBound(n)&&u2.bind(n).to(e).inSingletonScope()})},sn=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){}u7(t,r),D(e,t),sr(),st(t),se(),un(e,t);try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}},so=function(){try{var t=u2.get(g.D.MONITOR_PLUGIN);if(t)return t;return null}catch(t){return null}},si=function(){try{u2.get(g.D.EVENT_EMITTER)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"emitterFactory"})}},sa=function(){try{u2.get(g.D.SENSITIVE_REDACTOR)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"sensitiveRedactorFactory"})}},sc=function(){try{u2.isBound(g.D.INTERACTION_OBSERVER)&&u2.get(g.D.INTERACTION_OBSERVER)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"interactionObserverFactory"})}},su=function(){si(),sc(),sa()},ss=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)})})},sl=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;i<n.length;i++)!function t(r,i){if(i&&("object"==typeof i||"function"==typeof i)){var a=i.then;if("function"==typeof a)return void a.call(i,function(e){t(r,e)},function(t){n[r]={status:"rejected",reason:t},0==--o&&e(n)})}n[r]={status:"fulfilled",value:i},0==--o&&e(n)}(i,n[i])})};function sf(t,e){this.name="AggregateError",this.errors=t,this.message=e||""}sf.prototype=Error.prototype;var sh=function(t){var e=this;return new e(function(r,n){if(!(t&&void 0!==t.length))return n(TypeError("Promise.any accepts an array"));var o=Array.prototype.slice.call(t);if(0===o.length)return n();for(var i=[],a=0;a<o.length;a++)try{e.resolve(o[a]).then(r).catch(function(t){i.push(t),i.length===o.length&&n(new sf(i,"All promises were rejected"))})}catch(t){n(t)}})},sp=setTimeout;function sd(t){return!!(t&&void 0!==t.length)}function sv(){}function s_(t){if(!(this instanceof s_))throw TypeError("Promises must be constructed via new");if("function"!=typeof t)throw TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],sw(t,this)}function sm(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,s_._immediateFn(function(){var r,n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?sy:sg)(e.promise,t._value);try{r=n(t._value)}catch(t){sg(e.promise,t);return}sy(e.promise,r)})}function sy(t,e){try{if(e===t)throw TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if(e instanceof s_){t._state=3,t._value=e,sE(t);return}if("function"==typeof r)return void sw(function(){r.apply(e,arguments)},t)}t._state=1,t._value=e,sE(t)}catch(e){sg(t,e)}}function sg(t,e){t._state=2,t._value=e,sE(t)}function sE(t){2===t._state&&0===t._deferreds.length&&s_._immediateFn(function(){t._handled||s_._unhandledRejectionFn(t._value)});for(var e=0,r=t._deferreds.length;e<r;e++)sm(t,t._deferreds[e]);t._deferreds=null}function sb(t,e,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=r}function sw(t,e){var r=!1;try{t(function(t){r||(r=!0,sy(e,t))},function(t){r||(r=!0,sg(e,t))})}catch(t){if(r)return;r=!0,sg(e,t)}}s_.prototype.catch=function(t){return this.then(null,t)},s_.prototype.then=function(t,e){var r=new this.constructor(sv);return sm(this,new sb(t,e,r)),r},s_.prototype.finally=ss,s_.all=function(t){return new s_(function(e,r){if(!sd(t))return r(TypeError("Promise.all accepts an array"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);for(var o=n.length,i=0;i<n.length;i++)!function t(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var c=a.then;if("function"==typeof c)return void c.call(a,function(e){t(i,e)},r)}n[i]=a,0==--o&&e(n)}catch(t){r(t)}}(i,n[i])})},s_.any=sh,s_.allSettled=sl,s_.resolve=function(t){return t&&"object"==typeof t&&t.constructor===s_?t:new s_(function(e){e(t)})},s_.reject=function(t){return new s_(function(e,r){r(t)})},s_.race=function(t){return new s_(function(e,r){if(!sd(t))return r(TypeError("Promise.race accepts an array"));for(var n=0,o=t.length;n<o;n++)s_.resolve(t[n]).then(e,r)})},s_._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){sp(t,0)},s_._unhandledRejectionFn=function(t){};var sO=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("unable to locate global object")}();"function"!=typeof sO.Promise?sO.Promise=s_:(sO.Promise.prototype.finally||(sO.Promise.prototype.finally=ss),sO.Promise.allSettled||(sO.Promise.allSettled=sl),sO.Promise.any||(sO.Promise.any=sh));var sI=(0,l.Gp)();c=r(344).Z;try{!function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var t,e={taskName:window.ttq._pf_tn||"init",functionName:window.ttq._pf_tn&&"init",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="init")}}catch(t){}var r=(0,u.wE)().pixelCode,n=(0,l.Ie)(),o=(0,f.RA)(),i=(0,f.b4)();if(sn(n,u2,o),(0,l.Wf)("Monitor")){var p=so();null==p||p.info(s.O.BEFORE_INIT,{pixelCode:r,extJSON:{stack:(0,h.xF)(r)}})}if(su(),n){if(n._mounted){(0,u.um)(s.O.HANDLE_CACHE,{pixelCode:r}),j(u2,n);try{u2.get(E.M.ID)}catch(e){(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"troubleshooting",custom_enum:"container_get_id_false",extJSON:{message:(null==n?void 0:n.initialize)+"|"+(null==n?void 0:n._mounted)+"|"+(null==(t=null==n?void 0:n._i[r])?void 0:t._init)}})}u2.get(g.D.TTQ).dispatch(iC.PATCH_END)}else a=x(u2,o,i),window[sI]=C(n,a),n.resetCookieExpires&&n.resetCookieExpires(),j(u2,a),M(a);var d=u2.get(E.M.IsOnsitePage);d.value=i===y.S.ONSITE||n.reporters.every(function(t){return t.isOnsite()}),u2.rebind(E.M.IsOnsitePage).toConstantValue(d);try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var v={taskName:window.ttq._pf_tn,functionName:"handlePixelRules",start:performance.now()}}catch(t){}n.reporters.forEach(function(t){var e;(null==(e=t.rules)?void 0:e.length)>0&&c&&new c(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,u.vU)(s.O.INIT_ERROR,t)}}()}(); |