"use strict";var IGAWScript;!function(t){t.TrackingManager=class{constructor(){this.sck=(t,i,n,e)=>{if(i){let a=`${t}=${encodeURIComponent(i)}; path=/; samesite=strict; max-age=${60*n*60*24};`;e&&(a=`${a} domain=${e}`),document.cookie=a}},this.gck=t=>{let i=document.cookie.match(new RegExp("(?:^|; )"+t.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return i?decodeURIComponent(i[1]):null},this.call=t=>{try{const img=new Image();img.referrerPolicy="no-referrer";img.src=t+(t.includes('?')?'&':'?')+'r='+Date.now();}catch(e){if(this.log)this.log("Image beacon failed",e);}},this.beacon=t=>{navigator.sendBeacon?navigator.sendBeacon(this.ttul,JSON.stringify(t)):this.sd(t)},this.gup=t=>{var i;if(t){return null!==(i=new URL(location.href).searchParams.get(t))&&void 0!==i?i:""}return""},this.ph=t=>{let i="bid",n="";for(var e in t)"custom_param"===e?i=t[e]:"domain"===e&&(n=t[e]);const a=this.gup(i);i&&this.sck(this.cktb,a,30,n)},this.sd=t=>{var i=this.gck(this.cktb);if(i&&t.tw_type){var n=`${this.ttul}?bid=${i}&event_name=${t.tw_type}`;"purchase"===t.tw_type&&t.revenue&&(n+=`&revenue=${t.revenue}`),this.call(n)}},this.cktb="tw_uuid",this.ttul="//p.trk.tw.igaw.io/v1/postback/custom"}}}(IGAWScript||(IGAWScript={}));var igaTrackingObj=new IGAWScript.TrackingManager;window.IGATrackingConversion=()=>igaTrackingObj.sd({tw_type:"conversion"}),window.IGATrackingPurchase=t=>{t?igaTrackingObj.sd({tw_type:"purchase",revenue:t}):igaTrackingObj.sd({tw_type:"purchase"})},window.IGATrackingEvent=t=>{igaTrackingObj.sd({tw_type:t})},window.IGATrackingPush=function(t){t?igaTrackingObj.ph(t):igaTrackingObj.ph({custom_param:"bid"})},window.IGATrackingPushDomain=function(t,i="bid"){igaTrackingObj.ph({custom_param:i,domain:t})};