(()=>{"use strict";var t=function(){!function(t,e,n){t.TiktokAnalyticsObject=n;var o=t[n]=t[n]||[];o.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],o.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var r=0;r0?(o=(t+o)%16|0,t=Math.floor(t/16)):(o=(e+o)%16|0,e=Math.floor(e/16)),("x"==n?o:7&o|8).toString(16)}))};function i(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{};return r.call(window,t,i).then((function(r){if("string"==typeof t&&t.includes(a))try{console.log("Tracking CompletePayment");var i=e();d("CompletePayment",i[0],n,o)}catch(t){console.log(t)}return r}))}}(0,n,o),function(t,n,o){var r=window.XMLHttpRequest.prototype.send;window.XMLHttpRequest.prototype.send=function(){var t=this;this.addEventListener("load",(function(){if(t._url&&"string"==typeof t._url&&t._url.includes(a))try{console.log("Tracking CompletePayment");var r=e();d("CompletePayment",r[0],n,o)}catch(t){console.log(t)}}));for(var i=arguments.length,c=new Array(i),u=0;u