1var __defProp=Object.defineProperty;var __defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:true,configurable:true,writable:true,value:n}):t[e]=n;var __publicField=(t,e,n)=>__defNormalProp(t,"symbol"!=typeof e?e+"":e,n);!function(){"use strict";const t="APUS - Loaded";const e=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;function n(t){return e.test(t)}function r(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();const t=new Uint8Array(16);crypto.getRandomValues(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;const e=Array.from(t,t=>t.toString(16).padStart(2,"0"));return`${e.slice(0,4).join("")}-${e.slice(4,6).join("")}-${e.slice(6,8).join("")}-${e.slice(8,10).join("")}-${e.slice(10,16).join("")}`}function i(t,e,n){const i=t.get();const o=(null==i?void 0:i.userId)??"0";const s={apVisitorId:(null==i?void 0:i.apVisitorId)??r(),userId:o,isPremium:(null==i?void 0:i.isPremium)??"0",lastActivity:Math.floor(Date.now()/1e3),loggedInAt:(null==i?void 0:i.loggedInAt)??0};return t.save(s),s}var o=(t=>(t.Affiliate="link.reference",t.Anonymous="rl_anonymous_id",t.APUS="_ap",t.Attribution="_mcool-att",t.Campaign="_ap_c",t.Identified="_mcool-rl-identified",t.SessionAttribution="_ap_s",t.RegistrationOverride="_mcool-reg-override",t))(o||{});function s(t){if(!t)return null;const[e,r,i,o,s,c,...a]=t.split("$");if("AP"!==e||a.length>0)return null;if(!s||!n(s))return null;const u=Number(r);if(!Number.isFinite(u)||u<=0)return null;const l=Number(c);return{lastActivity:u,userId:i||"0",isPremium:"1"===o?"1":"0",apVisitorId:s,loggedInAt:Number.isFinite(l)&&l>0?l:0}}const c={prefix:"AP1",separator:"$",keys:{lastActivity:"t",userId:"u",isPremium:"p",apVisitorId:"v",loggedInAt:"l"}};function a(t){if(!t)return null;const{prefix:e,separator:r,keys:i}=c;const[o,...s]=t.split(r);if(o!==e)return null;const a=new Map;for(const n of s)n.length>0&&!a.has(n[0])&&a.set(n[0],n.slice(1));const u=a.get(i.apVisitorId);if(!u||!n(u))return null;const l=Number(a.get(i.lastActivity));if(!Number.isFinite(l)||l<=0)return null;const d=Number(a.get(i.loggedInAt));return{lastActivity:l,userId:a.get(i.userId)||"0",isPremium:"1"===a.get(i.isPremium)?"1":"0",apVisitorId:u,loggedInAt:Number.isFinite(d)&&d>0?d:0}}function u(t){const{prefix:e,separator:n,keys:r}=c;const i=[`${r.lastActivity}${t.lastActivity}`];return"0"!==t.userId&&i.push(`${r.userId}${t.userId}`),"1"===t.isPremium&&i.push(`${r.isPremium}${t.isPremium}`),i.push(`${r.apVisitorId}${t.apVisitorId}`),t.loggedInAt>0&&i.push(`${r.loggedInAt}${t.loggedInAt}`),[e,...i].join(n)}function l(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var d={read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};var g=function t(e,n){function r(t,r,i){if("undefined"!=typeof document){i=l({},n,i),"number"==typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,true!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=t+"="+e.write(r,t)+o}}return Object.create({set:r,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){var n=document.cookie?document.cookie.split("; "):[];var r={};for(var i=0;i<n.length;i++){var o=n[i].split("=");var s=o.slice(1).join("=");try{var c=decodeURIComponent(o[0]);if(r[c]=e.read(s,c),t===c)break}catch(a){}}return t?r[t]:r}},remove:function(t,e){r(t,"",l({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,l({},this.attributes,e))},withConverter:function(e){return t(l({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}(d,{path:"/"});const m=class t{static get(t){return g.get(t)}static remove(e,n=t.DEFAULT_COOKIE_DAYS,r=t.DEFAULT_COOKIE_DOMAIN){const i={domain:r,expires:n,path:"/"};return g.remove(e,i)}static set(e,n,r=t.DEFAULT_COOKIE_DAYS,i=t.DEFAULT_COOKIE_DOMAIN,o){const s={domain:i,expires:r,path:"/",...o&&{secure:o.secure,sameSite:o.sameSite}};return g.set(e,n,s)}static removeFragmented(e,n=t.DEFAULT_COOKIE_DAYS,r=t.DEFAULT_COOKIE_DOMAIN,i=16){for(let t=0;t<=i;t++){const i=`${e}-${t}`;const o=this.get(i);void 0!==o&&""!==o&&this.remove(i,n,r)}}static getFragmented(t){const e=[];let n=0;for(;;){const r=`${t}-${n}`;const i=this.get(r);if(void 0===i||""===i)break;e.push(i),n++}return e.length<=0?null:e.join("")}static saveObject(e,n,r=t.DEFAULT_COOKIE_DAYS,i=t.DEFAULT_COOKIE_DOMAIN){try{const o=JSON.stringify(n);t.set(e,o,r,i)}catch(o){console.error("Error saving object to cookie",o)}}static getObject(e){const n=t.get(e);if(void 0===n||""===n)return null;let r;try{r=JSON.parse(n)}catch(i){return null}return r}static getObjectFromFragmented(t){const e=this.getFragmented(t);if(null===e)return null;let n;try{n=atob(e)}catch(r){return null}try{return JSON.parse(n)}catch(r){return null}}static saveFragmented(e,n,r=t.MAX_FRAGMENTED_SIZE,i=10,o=365,s=t.DEFAULT_COOKIE_DOMAIN,c){const a=n.match(new RegExp(`(.|[\\r\\n]){1,${r}}`,"g"));if(!a)return false;if(a.length>i)return false;for(let t=0;t<i+1;t++)this.remove(`${e}-${t}`,o,s);for(let t=0;t<a.length;t++)try{void 0!==a[t]&&this.set(`${e}-${t}`,a[t],o,s,c)}catch(u){return console.error(`Error saving fragmented cookie part ${t}:`,u),false}return true}static saveFragmentedJson(e,n,r=t.MAX_FRAGMENTED_SIZE,i=10,o=365,s=t.DEFAULT_COOKIE_DOMAIN,c){try{const t=JSON.stringify(n);const a=btoa(t);return this.saveFragmented(e,a,r,i,o,s,c)}catch(a){return false}}};__publicField(m,"DEFAULT_COOKIE_DAYS",365),__publicField(m,"DEFAULT_COOKIE_DOMAIN","metricool.com"),__publicField(m,"MAX_FRAGMENTED_SIZE",700),__publicField(m,"CROSS_SITE",{secure:true,sameSite:"None"});let f=m;class p{get(){const t=f.get(o.APUS);return a(t)??s(t)}save(t){f.set(o.APUS,u(t),730,f.DEFAULT_COOKIE_DOMAIN,f.CROSS_SITE)}}var h=(t=>(t.WordPressForm="WordPressForm",t.Application="Application",t))(h||{});
1class _ extends Error{constructor(t){super(t),this.name="MetricoolError"}}function v(t){const e=new Date;return e.setTime(e.getTime()+60*t*1e3),e}class b{constructor(){__publicField(this,"SESSION_DURATION",30)}sessionStartAttribution(){return f.getObject(o.SessionAttribution)}saveSessionStart(t){const e=v(this.SESSION_DURATION);const{first:n,GASessionID:r,GASessionNumber:i,...s}=t.object();const c=f.getObject(o.SessionAttribution);const a=c??s;let u=a;if(!t.getOrigin().isApplication()){const e=t.previousVisited();u={...a,lVisited:e.lastVisited,lVisitedCg:e.lastVisitedCategoryGroup}}f.saveObject(o.SessionAttribution,u,e)}save(t){const e=v(this.SESSION_DURATION);const n=t.object();const{GASessionID:r,GASessionNumber:i,...s}=n;f.saveFragmentedJson(o.Attribution,s,f.MAX_FRAGMENTED_SIZE,10,365,f.DEFAULT_COOKIE_DOMAIN,f.CROSS_SITE);const{first:c,...a}=s;const u=f.getObject(o.SessionAttribution);f.saveObject(o.SessionAttribution,{...u??a,...a.LastTestID&&{LastTestID:a.LastTestID},...a.LastTestVariant&&{LastTestVariant:a.LastTestVariant}},e)}loadPersistedAttribution(){const t=f.getObjectFromFragmented(o.Attribution);if(!t)return null;try{if(t.last&&"object"==typeof t.last){const{last:e,...n}=t;return{...e,...n}}if(void 0===t.lSource||void 0===t.lMedium||void 0===t.lLanding||void 0===t.lLandingCg||void 0===t.lVisited||void 0===t.lVisitedCg)throw new _("Missing required attribution properties");return t.RegistrationLocation||(t.RegistrationLocation=h.Application),t}catch{return null}}}async function y(t){const e=new b;const n=e.loadPersistedAttribution();const r=null==n?void 0:n.first;if(!r||r.sent)return;const s=i(new p).apVisitorId;const c={ap_vid:s,ga_cid:t,f_s:r.fSource??"",f_m:r.fMedium??"",f_c:r.fCampaign??"",f_co:r.fContent??"",f_t:r.fTerm??"",f_l:r.fLanding??"",f_lcg:r.fLandingCg??"",f_d:r.fDate??"",f_gclid:r.gclid??"",f_cg1:r.FirstLandingPageCG1??"",f_cg2:r.FirstLandingPageCG2??"",f_cg3:r.FirstLandingPageCG3??"",f_ua:navigator.userAgent??""};const a=await fetch("https://apus.metricool.com/s/first",{method:"POST",body:JSON.stringify(c),keepalive:true,credentials:"omit"});a.ok&&(r.sent=true,f.saveFragmentedJson(o.Attribution,{...n,first:r}))}function C(t){if(!t)return"";const e=t.toString();return e.includes(":")?e.split(":")[1]:e.includes(",")?e.split(",")[0]:e}async function w(t){const e=new b;const n=e.loadPersistedAttribution();const r=C(t.ga4_client_id);const o=C(t.ga4_session_id);const s=C(t.ga4_session_number);const c=i(new p).apVisitorId;const a={ap_vid:c,ga_cid:r,ga_sid:o,ga_sn:s,l_s:(null==n?void 0:n.lSource)??"",l_m:(null==n?void 0:n.lMedium)??"",l_c:(null==n?void 0:n.lCampaign)??"",l_co:(null==n?void 0:n.lContent)??"",l_t:(null==n?void 0:n.lTerm)??"",l_l:(null==n?void 0:n.lLanding)??"",l_lcg:(null==n?void 0:n.lLandingCg)??"",gclid:(null==n?void 0:n.gclid)??"",rl:(null==n?void 0:n.RegistrationLocation)??"",sl_cg1:(null==n?void 0:n.LandingPageCG1)??"",sl_cg2:(null==n?void 0:n.LandingPageCG2)??"",sl_cg3:(null==n?void 0:n.LandingPageCG3)??""};fetch("https://apus.metricool.com/s/session",{method:"POST",body:JSON.stringify(a),keepalive:true,credentials:"omit"}).catch(()=>{})}function I(t){if(!t)return"";const e=t.toString();return e.includes(":")?e.split(":")[1]:e.includes(",")?e.split(",")[0]:e}async function A(t){const e=new b;const n=e.loadPersistedAttribution();const r=I(t.ga4_client_id);const o=I(t.ga4_session_id);const s=I(t.ga4_session_number);const c=i(new p).apVisitorId;const a={ap_vid:c,ga_cid:r,ga_sid:o,ga_sn:s,l_v:(null==n?void 0:n.lVisited)??"",l_vcg:(null==n?void 0:n.lVisitedCg)??"",l_cg1:(null==n?void 0:n.PageCG1)??"",l_cg2:(null==n?void 0:n.PageCG2)??"",l_cg3:(null==n?void 0:n.PageCG3)??"",lt_id:(null==n?void 0:n.LastTestID)??"",lt_v:(null==n?void 0:n.LastTestVariant)??""};fetch("https://apus.metricool.com/s",{method:"POST",body:JSON.stringify(a),keepalive:true,credentials:"omit"}).catch(()=>{})}const P=(t,e)=>{try{const n="object"==typeof e?JSON.stringify(e):String(e);sessionStorage.setItem(t,n)}catch(n){console.error("Error saving to session storage:",n)}};const O=(t,e)=>{let n;try{if(n=sessionStorage.getItem(t),null===n)return void 0!==e?e:null;try{return JSON.parse(n)}catch{return n}}catch(r){return console.error("Error retrieving session storage item:",r),null}};const S="_ap:s";let T=false;function L(t){if(null===t||"object"!=typeof t||Array.isArray(t))return null;const e=t;const n=e.ga4_client_id;return null==n||""===String(n).trim()?null:{ga4_session_id:e.ga4_session_id??null,ga4_client_id:n,ga4_session_number:e.ga4_session_number??null}}function D(t){const e=t.ga4_session_id??t.ga4_session_number??null;if(null===e)return false;const n=O(S);return String(n)!==String(e)}function F(t){const e=t.ga4_session_id??t.ga4_session_number??null;null!==e&&P(S,String(e))}function U(){if(T||!window._mc.get)return;const t=L(window._mc.get("ga4"));null!==t&&(T=true,D(t)&&(w(t),F(t)),A(t),y(String(t.ga4_client_id)))}const E="Att - Visitor - FullAttributed";const j=Object.freeze(Object.defineProperty({__proto__:null,register:function(){return{eventName:E,handler:()=>{var t;(null==(t=window._mc)?void 0:t.on)&&(window._mc.on("ga4",()=>U()),U())}}}},Symbol.toStringTag,{value:"Module"}));const G="Visitor - Ready";const V="Att - Visitor - Attributed - Sync";
1const k="Att - Campaign detected";class N{constructor(t){__publicField(this,"utm_source"),__publicField(this,"utm_campaign"),__publicField(this,"utm_medium"),__publicField(this,"utm_term"),__publicField(this,"utm_content"),__publicField(this,"gclid"),Object.assign(this,t)}toObject(){const t={utm_source:this.utm_source,utm_campaign:this.utm_campaign};return void 0!==this.utm_medium&&(t.utm_medium=this.utm_medium),void 0!==this.utm_term&&(t.utm_term=this.utm_term),void 0!==this.utm_content&&(t.utm_content=this.utm_content),void 0!==this.gclid&&(t.gclid=this.gclid),t}toJson(){return JSON.stringify(this.toObject())}hasGclid(){return"string"==typeof this.gclid&&""!==this.gclid}static fromOrigin(t){const e=t.getUtmSource();const n=t.getUtmCampaign();if(!e||!n)return null;const r={utm_source:e,utm_campaign:n};const i=t.getUtmMedium();i&&(r.utm_medium=i);const o=t.getUtmTerm();o&&(r.utm_term=o);const s=t.getUtmContent();s&&(r.utm_content=s);const c=t.getURLParam("gclid");return c&&(r.gclid=c),new N(r)}}function $(t){return N.fromOrigin(t)}class M{find(){const t=f.get(o.Campaign);if(void 0===t||""===t)return null;try{return new N(JSON.parse(t))}catch{return null}}save(t){f.set(o.Campaign,t.toJson())}delete(){f.remove(o.Campaign)}}function R(t,e){"string"!=typeof t?t.forEach(t=>document.dispatchEvent(t)):document.dispatchEvent(new CustomEvent(t,{detail:e}))}function z(t,e){const n=new M;const r=null!==t.getUtmCampaign()&&null!==t.getUtmSource();const i=t.comesFromSelf();let o=n.find();o?e.isLoggedIn()&&n.delete():r&&!i&&(o=$(t),o&&n.save(o)),R(k,{campaign:o??null,visitor:e})}function x(t){if(!t)return"V";const e=t.toLowerCase().trim();if("control"===e||"original"===e)return"0";const n=e.match(/vari(?:ant|ation)\s*(\d+)/i);return n&&n[1]?`V${n[1]}`:"V"}function B(t=4096){return new Promise(e=>{var n,r,i;let o=false;let s;let c;const a=()=>{if(o)return false;try{const t=J();if(t&&t.TestID&&t.TestVariant&&!t.TestVariant.includes("undefined")&&!t.TestVariant.includes("null"))return g(),o=true,e(t),true}catch{}return false};const u=()=>{a()};const l=()=>{a()};const d=()=>{a()};const g=()=>{window.removeEventListener("abtasty_tagContentExecuted",u),window.removeEventListener("abtasty_executedCampaign",l),window.removeEventListener("abtasty_consentValid",d),s&&clearInterval(s),c&&clearTimeout(c)};if(!a()){try{const t=null==(i=null==(r=null==(n=window.ABTasty)?void 0:n.eventState)?void 0:r.tagContentExecuted)?void 0:i.status;if("complete"===t&&a())return}catch{}window.addEventListener("abtasty_tagContentExecuted",u,{once:false}),window.addEventListener("abtasty_executedCampaign",l,{once:false}),window.addEventListener("abtasty_consentValid",d,{once:false}),s=window.setInterval(()=>{a()},250),c=window.setTimeout(()=>{o||(g(),o=true,e(void 0))},t)}})}function J(){if(!window.ABTasty||"function"!=typeof window.ABTasty.getTestsOnPage)return;const t=window.ABTasty.getTestsOnPage();if(!t||0===Object.keys(t).length)return;const e=Object.entries(t);if(0===e.length)return;e.sort((t,e)=>Number(t[0])-Number(e[0]));const n=e.map(([t])=>String(t));const r=e.map(([,t])=>{const e=x(t.variationName);return`${e}_${t.variationID}`});const i={TestID:n.join(","),TestVariant:r.join(",")};return i}function W(t){return"string"!=typeof t?"":t.trim()}function K(){var t,e;const n=null==(e=null==(t=window._mc)?void 0:t.get)?void 0:e.call(t,"cgCategories");if(null===n||"object"!=typeof n||Array.isArray(n))return null;const r=n;const i=W(r.cgCategory1);const o=W(r.cgCategory2);const s=W(r.cgCategory3);return i||o||s?{CGCategory1:i,CGCategory2:o,CGCategory3:s}:null}function Y(){var t,e;const n=null==(e=null==(t=window._mc)?void 0:t.get)?void 0:e.call(t,"cgCategories");if(null===n||"object"!=typeof n||Array.isArray(n))return;const r=n.cgCategory3;return"string"==typeof r&&""!==r?r:void 0}function X(t){const e=Y();if(void 0!==e)return e;if(["","/es","/de","/fr","/it","/nl","/pt"].includes(t.currentPath(true)))return"HOME";const n=[{patterns:[/.*que-es-metricool.*/i,/.*tutoriales.*/i,/.*tutorial-metricool.*/i,/.*metricool-tutorials.*/i,/.*legal-terms.*/i],category:"Brand"},{patterns:[/.*competencia.*/i,/.*competidor.*/i],category:"Product.Competitors"},{patterns:[/.*analitica.*/i,/.*metricas-metricool.*/i,/.*estadistica.*/i,/.*tracker.*/i,/.*analytics.*/i],category:"Product.Analytics"},{patterns:[/^\/es\/premium\/$/i,/^\/pricing\/$/i,/^\/fr\/des-prix\/$/i],category:"Product.Pricing"},{patterns:[/.*planificador.*/i,/.*planificate.*/i,/.*schedule.*/i,/.*programar.*/i,/.*planificar.*/i,/.*programmer.*/i,/.*planner.*/i],category:"Product.Planner"},{patterns:[/.*report.*/i,/.*informes.*/i],category:"Product.Reports"},{patterns:[/.*link.*/i],category:"Product.Smartlink"},{patterns:[/.*instagram.*/i,/.*facebook.*/i],category:"Instagram"},{patterns:[/.*tiktok.*/i],category:"TikTok"},{patterns:[/.*x\.com.*/i,/.*twitter.*/i],category:"X-Twitter"},{patterns:[/.*linkedin.*/i],category:"LinkedIn"},{patterns:[/.*youtube.*/i],category:"YouTube"},{patterns:[/.*google.*/i],category:"Google"},{patterns:[/.*pinterest.*/i],category:"Pinterest"},{patterns:[/.*twitch.*/i],category:"Twitch"},{patterns:[/.*blog.*/i],category:"Blog"}];const r=t.currentPath(true);for(const{patterns:i,category:o}of n)if(i.some(t=>t.test(r)))return o;return"Others"}function Z(t){const e=t.currentPath()??"";const n=t.isApplication()?"DirectApp":X(t);const r=t.isApplication()?`intapp${e}`:e;return q(r,n)}function q(t,e){return{lLanding:t,lLandingCg:e}}function H(t){const e=t.currentPath()??"";let n;let r;t.isApplication()?(n=`intapp${e}`,r="DirectApp"):(n=e,r=X(t));const i=K();return{lastVisited:n,lastVisitedCategoryGroup:r,lastVisitedPageCG1:(null==i?void 0:i.CGCategory1)??"",lastVisitedPageCG2:(null==i?void 0:i.CGCategory2)??"",lastVisitedPageCG3:(null==i?void 0:i.CGCategory3)??""}}var Q=(t=>(t.Affiliate="affiliate",t.Direct="direct",t.Organic="organic",t.Other="other",t.Referral="referral",t.Social="social",t.UTM="utm",t))(Q||{});var tt=(t=>(t.Affiliate="affiliate",t.Aol="aol",t.Ask="ask",t.Baidu="baidu",t.Bing="bing",t.Direct="direct",t.DuckDuckGo="duckDuckgo",t.Facebook="facebook",t.Google="google",t.Instagram="instagram",t.LinkedIn="linkedin",t.Mcp="mcp",t.Other="other",t.Pinterest="pinterest",t.Self="self",t.TikTok="tiktok",t.Twitter="twitter",t.UTM="utm",t.Yahoo="yahoo",t.Yandex="yandex",t.YouTube="youtube",t))(tt||{});function et(){const t=f.get(o.Affiliate);if(void 0===t)return;const e=f.getObjectFromFragmented(o.Attribution);return(null==e?void 0:e.ac)!==t?t:void 0}
1function nt(t){t.startsWith("www.")&&(t=t.substring(4));const e=t.split(".");if(e.length<=2)return e[0];const n=["co.ao","co.bw","co.ck","co.cr","co.id","co.il","co.in","co.jp","co.ke","co.kr","co.ls","co.ma","co.mz","co.nz","co.th","co.tz","co.ug","co.uk","co.uz","co.ve","co.vi","co.za","co.zm","co.zw","com.af","com.ag","com.ar","com.au","com.bd","com.bh","com.bn","com.bo","com.br","com.bz","com.co","com.cu","com.cy","com.do","com.ec","com.eg","com.et","com.fj","com.gh","com.gi","com.gt","com.hk","com.jm","com.kh","com.kw","com.lb","com.ly","com.mm","com.mt","com.mx","com.my","com.na","com.ng","com.ni","com.np","com.om","com.pa","com.pe","com.pg","com.ph","com.pk","com.pr","com.py","com.qa","com.sa","com.sb","com.sg","com.sl","com.sv","com.tj","com.tr","com.tw","com.ua","com.uy","com.vc","com.vn"];for(const i of n)if(i.includes(".")&&t.endsWith(`.${i}`))return t.substring(0,t.length-i.length-1);const r=e[e.length-1];return n.includes(r)?t.substring(0,t.length-r.length-1):t.substring(0,t.lastIndexOf("."))}const rt={"claude.ai":"Claude MCP","chatgpt.com":"ChatGPT MCP"};const it="MCP";function ot(t){return st(t.current)??(null!==t.referrer?st(t.referrer):null)}function st(t){return ct(t)?at(t):null}function ct(t){const e=t.searchParams.get("scope");return null!==e&&e.split(" ").some(t=>t.startsWith("mcp:"))}function at(t){const e=t.searchParams.get("redirect_uri");if(null===e)return it;try{const t=new URL(e).host;for(const[e,n]of Object.entries(rt))if(t===e||t.endsWith(`.${e}`))return n;return it}catch{return it}}function ut(t){return/^([\w-]+\.)?google\.[a-z.]+$/i.test(t)}function lt(t){if(!ut(t.host)||"/url"!==t.pathname)return false;const e=t.searchParams.get("source");const n=t.searchParams.get("sa");return"web"!==e&&"t"!==n}function dt(t,e){if(!e.includes("*"))return t===e;const n=e.split("*").map(t=>t.replace(/[.+?^${}()|[\]\\]/g,"\\$&")).join(".+");return new RegExp(`^${n}$`,"i").test(t)}function gt(t){return["accounts.google.*"].some(e=>dt(t.host,e))}function mt(t){const e=t.host;return["metricool.com","app.metricool.com"].includes(e)}function ft(t){const e=t.referrer;const n=t.getUtmMedium();if(n)return{mediumType:Q.UTM,medium:n};if(null!==ot(t))return{mediumType:Q.Referral};if(null!==e&&(mt(e)||gt(e)))return{mediumType:Q.Direct};if(void 0!==t.getFreshAffiliateValue())return{mediumType:Q.Affiliate};if(null===e)return{mediumType:Q.Direct};if(lt(e))return{mediumType:Q.Referral};const r=e.host.toLowerCase();const i=nt(r);const o=["ask","aol","baidu","bing","duckduckgo","google","search.brave","yahoo","yandex"];const s=o.find(t=>i===t);return s?{mediumType:Q.Organic,medium:s}:{mediumType:Q.Referral}}function pt(t){if(lt(t))return{source:t.searchParams.get("source")??"google",sourceType:tt.Google};const e=t.host;return/^(www\.)?google\.[a-z.]+$/i.test(e)?{source:"google",sourceType:tt.Google}:{source:e,sourceType:tt.Google}}function ht(t){const e=t.getUtmSource();const n=t.referrer;if(e)return{sourceType:tt.UTM,source:e};const r=ot(t);if(null!==r)return{source:r,sourceType:tt.Mcp};if(null!==n&&n.host&&(mt(n)||gt(n)))return{source:n.host,sourceType:tt.Self};if(void 0!==t.getFreshAffiliateValue())return{source:tt.Affiliate,sourceType:tt.Affiliate};if(null===n)return{sourceType:tt.Direct};if(!n.host)return{sourceType:tt.Direct};if(ut(n.host))return pt(n);const i={[tt.Aol]:/^(?:[\w-]+\.)?aol\.[a-z.]+(?:\/.*)?$/i,[tt.Ask]:/^(?:[\w-]+\.)?ask\.[a-z.]+(?:\/.*)?$/i,[tt.Bing]:/^(?:[\w-]+\.)?bing\.[a-z.]+(?:\/.*)?$/i,[tt.Baidu]:/^(?:[\w-]+\.)?baidu\.[a-z.]+(?:\/.*)?$/i,[tt.Yandex]:/^(?:[\w-]+\.)?yandex\.[a-z.]+(?:\/.*)?$/i,[tt.DuckDuckGo]:/^(?:[\w-]+\.)?duckduckgo\.[a-z.]+(?:\/.*)?$/i,[tt.LinkedIn]:/^(?:[\w-]+\.)?linkedin\.[a-z.]+(?:\/.*)?$/i,[tt.Facebook]:/^(?:[\w-]+\.)?facebook\.[a-z.]+(?:\/.*)?$/i,[tt.Instagram]:/^(?:[\w-]+\.)?instagram\.[a-z.]+(?:\/.*)?$/i,[tt.TikTok]:/^(?:[\w-]+\.)?tiktok\.[a-z.]+(?:\/.*)?$/i,[tt.Twitter]:/^(?:[\w-]+\.)?twitter\.[a-z.]+(?:\/.*)?$/i,[tt.Pinterest]:/^(?:[\w-]+\.)?pinterest\.[a-z.]+(?:\/.*)?$/i,[tt.YouTube]:/^(?:[\w-]+\.)?youtube\.[a-z.]+(?:\/.*)?$/i,[tt.Yahoo]:/^(?:[\w-]+\.)?yahoo\.[a-z.]+(?:\/.*)?$/i};for(const[o,s]of Object.entries(i))if(s.test(n.host))return{source:o,sourceType:o};return{source:n.host,sourceType:tt.Other}}class _t{constructor(t,e){__publicField(this,"current"),__publicField(this,"referrer"),__publicField(this,"source"),__publicField(this,"medium"),__publicField(this,"freshAffiliateValue"),this.current=t,this.referrer=e,this.freshAffiliateValue=et(),this.source=ht(this),this.medium=ft(this)}static fromCurrentURLs(){let t;try{t=new URL(window.location.href)}catch{t=new URL("https://app.metricool.com/")}let e;try{e=document.referrer?new URL(document.referrer):null}catch{e=null}return new _t(t,e)}getFreshAffiliateValue(){return this.freshAffiliateValue}comesFromExternal(){return this.source.sourceType!==tt.Direct&&this.source.sourceType!==tt.Self}comesFromSelf(){var t;return(null==(t=this.source)?void 0:t.sourceType)==tt.Self}currentUrlHas(t){return this.current.searchParams.has(t)}hasParameters(){return this.current.searchParams.size>0}parameters(){try{return Object.fromEntries(Array.from(this.current.searchParams).map(([t,e])=>{try{return[t,decodeURIComponent(e)]}catch(n){return[t,e]}}))}catch(t){return{}}}getURLParam(t){const e=this.current.searchParams.get(t);return""===e||null===e?null:e}currentPath(t=false){return t?this.current.pathname.replace(/\/$/g,""):this.current.pathname}currentPathIncludes(t){return""!==t&&this.current.pathname.includes(t)}isLoginPath(){const t=this.currentPath(true);return"/register"===t||"/login"===t||"/logout"===t}currentUrl(){return this.current.toString()}currentUrlTests(t){return t.test(this.current.toString())}currentPathTests(t){return t.test(this.current.pathname)}getUtmCampaign(){return this.getURLParam("utm_campaign")}getUtmContent(){return this.getURLParam("utm_content")}getUtmMedium(){return this.getURLParam("utm_medium")}getUtmSource(){return this.getURLParam("utm_source")}getUtmTerm(){return this.getURLParam("utm_term")}toJSON(){var t;return{current:this.current.toString(),referrer:(null==(t=this.referrer)?void 0:t.toString())??null,source:this.source,medium:this.medium}}getMediumType(){return this.medium.mediumType}getSourceType(){return this.source.sourceType}getSource(){return this.source.source??null}getMedium(){return this.medium.medium??null}isApplication(){return"app.metricool.com"===this.current.hostname}}class vt{constructor(t,e){this.attributionObject=t,this.origin=e}static from(t,e){return new vt(t,e??_t.fromCurrentURLs())}last(){const{first:t,...e}=this.attributionObject;return e}
1first(){return this.attributionObject.first||null}subscription(){return t=this.last(),{sSource:t.lSource,sMedium:t.lMedium,sLanding:t.lLanding,sLandingCg:t.lLandingCg,sVisited:t.lVisited,sVisitedCg:t.lVisitedCg,...null!=t.lCampaign&&{sCampaign:t.lCampaign},...null!=t.lContent&&{sContent:t.lContent},...null!=t.lTerm&&{sTerm:t.lTerm},...null!=t.gclid&&{sGclid:t.gclid},...null!=t.LastTestID&&{SubscriptionTestID:t.LastTestID},...null!=t.LastTestVariant&&{SubscriptionTestVariant:t.LastTestVariant}};var t}objectV2(){return this.attributionObject}asyncIdentifiers(){const t=this.attributionObject;return t.LastTestID?{LastTestID:t.LastTestID,...t.LastTestVariant&&{LastTestVariant:t.LastTestVariant}}:null}object(){return this.attributionObject}getOrigin(){return this.origin}previousVisited(){return H(this.origin)}}function bt(t){const e=t.getSource();const n=t.getSourceType();switch(n){case tt.Self:case tt.Direct:return tt.Direct;case tt.Google:return e??tt.Google;case tt.Affiliate:return tt.Affiliate;case tt.UTM:case tt.Other:default:return e}}function yt(){return f.getObject(o.RegistrationOverride)}function Ct(){try{const t=yt();if("WordPressForm"===(null==t?void 0:t.location))return h.WordPressForm}catch(t){}return h.Application}function wt(t){const e=t.getMediumType();return e===Q.UTM?t.getMedium():e}function It(t,e,n){const r=bt(t);const i=Z(t);const o=wt(t);const s=K();const c=t.getUtmCampaign();const a=t.getUtmTerm();const u=t.getUtmContent();const l=t.getURLParam("gclid");const d=Ct();const g=t.getFreshAffiliateValue();const m={lSource:r,lMedium:o,lLanding:i.lLanding,lLandingCg:i.lLandingCg,lVisited:"",lVisitedCg:"",RegistrationLocation:d,...null!==c&&""!==c&&{lCampaign:c},...null!==a&&""!==a&&{lTerm:a},...null!==u&&""!==u&&{lContent:u},...null!==l&&""!==l&&{gclid:l},...void 0!==g&&{ac:g},...e,...null!==s&&{PageCG1:s.CGCategory1,PageCG2:s.CGCategory2,PageCG3:s.CGCategory3}};void 0!==n&&(m.LastTestVariant=n.TestVariant,m.LastTestID=n.TestID);const f=(new Date).toISOString();const p={fLanding:m.lLanding,fLandingCg:m.lLandingCg,fSource:m.lSource,fMedium:m.lMedium,fDate:f,fVisited:m.lVisited,fVisitedCg:m.lVisitedCg,...m.PageCG1&&{FirstLandingPageCG1:m.PageCG1},...m.PageCG2&&{FirstLandingPageCG2:m.PageCG2},...m.PageCG3&&{FirstLandingPageCG3:m.PageCG3},...null!=m.lCampaign&&{fCampaign:m.lCampaign},...null!=m.lContent&&{fContent:m.lContent},...null!=m.lTerm&&{fTerm:m.lTerm},...null!=m.gclid&&{gclid:m.gclid}};return{...m,first:p}}function At(t,e,n,r,i){let o=It(t,r,i);const s=n??Pt(t,e);e&&e.first&&(o.first={...e.first}),void 0===o.ac&&(null==e?void 0:e.ac)&&(o.ac=e.ac),s&&(Object.assign(o,s),o.LandingPageCG1=s.PageCG1??"",o.LandingPageCG2=s.PageCG2??"",o.LandingPageCG3=s.PageCG3??""),o.lVisited||(o.lVisited=o.lLanding,o.lVisitedCg=o.lLandingCg);const c=K();return o.PageCG1=(null==c?void 0:c.CGCategory1)??(null==e?void 0:e.PageCG1)??"",o.PageCG2=(null==c?void 0:c.CGCategory2)??(null==e?void 0:e.PageCG2)??"",o.PageCG3=(null==c?void 0:c.CGCategory3)??(null==e?void 0:e.PageCG3)??"",s||(o.LandingPageCG1=(null==c?void 0:c.CGCategory1)??"",o.LandingPageCG2=(null==c?void 0:c.CGCategory2)??"",o.LandingPageCG3=(null==c?void 0:c.CGCategory3)??""),s&&o.first&&(o.first.fVisited=s.lVisited,o.first.fVisitedCg=s.lVisitedCg),vt.from(o,t)}function Pt(t,e){if(!t.comesFromSelf()||!e)return null;const{first:n,...r}=e;return r}function Ot(t){const e=yt();const n=!!e&&("WordPressForm"===e.location||t.RegistrationLocation===h.WordPressForm);if(!n)return null;const r=e.embedUrl;if(!r||""===r.trim())return null;try{const e=new URL(r);t.lVisited=e.toString();const n=new _t(e,null);t.lVisitedCg=X(n),t.PageCG3=t.lVisitedCg;try{const e=bt(n);e&&(t.lSource=e);const r=wt(n);r&&(t.lMedium=r);const i=n.getUtmCampaign();i&&(t.lCampaign=i);const o=n.getUtmContent();o&&(t.lContent=o);const s=n.getUtmTerm();s&&(t.lTerm=s);const c=Z(n);t.lLanding=c.lLanding,t.lLandingCg=c.lLandingCg}catch(i){}}catch(i){}return f.remove(o.RegistrationOverride),t}function St(t){const e=t.object();const{first:n,...r}=e;const i=Ot(r);return null===i?null:vt.from({...e,...i},t.getOrigin())}function Tt(t,e){if(null===e||null===t)return{};const n={GASessionNumber:t.session_number};return e.clientId&&(n.GAClientID=`${e.clientId}.${e.timestampFirstVisit}`),t.session_id&&(n.GASessionID=t.session_id),n}const Lt={s:"session_id",o:"session_number",g:"session_engaged",t:"timestamp",j:"join_timer_sec",l:"is_login",h:"hit_number"};function Dt(t,e){if(["o","t","j"].includes(t)){const t=parseInt(e,10);return isNaN(t)?e:t}return["g","l"].includes(t)?"1"===e:e}const Ft={2:{versionParsers:{GS2:function(t){const e=t.split(".");if(e.length<3)return null;const n=e[2];const r={};const i=n.split("$");for(const o of i){if(!o)continue;const t=o[0];const e=o.substring(1);const n=decodeURIComponent(e);const i=Lt[t];i&&(r[i]=Dt(t,n))}return e.length>3&&(r.domain_hash=e[3]),r}
1,GS1:function(t){const e=t.split(".");const n=e.slice(2);if(!(n.length>=5&&n.length<=7))return null;const r={};const i=Ft[2].keysInGS1Order;for(let o=0;o<n.length;o++)if(o<i.length){const t=i[o];const e=Object.entries(Lt).find(([,e])=>e===t);const s=e?e[0]:void 0;r[t]=s?Dt(s,n[o]):n[o]}return r}},keysInGS1Order:["session_id","session_number","session_engaged","timestamp","join_timer_sec","is_login","hit_number"]}};function Ut(t,e){for(const n of Et(t)){const t=e(n);if(null!==t)return t}return null}function Et(t){const e=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");const n=new RegExp(`(?:^|;\\s*)${e}=([^;]*)`,"g");const r=[];for(const i of document.cookie.matchAll(n))r.push(i[1]);return r}function jt(t){const e=t.split(".");if(0===e.length)return null;const n=e[0];const r=Ft[2];if(!r)return null;const i=r.versionParsers[n];return"function"!=typeof i?null:i(t)}function Gt(t){const e=t.split(".");if(e.length<4)return null;const n=e[0];const r=parseInt(e[1],10);const i=e[2];const o=parseInt(e[3],10);return!n.startsWith("GA")||isNaN(r)||!i||isNaN(o)?null:{version:n,domainComponents:r,clientId:i,timestampFirstVisit:o}}function Vt(){return Tt(Ut("_ga_G-XNWPVKYTBS",jt),Ut("_ga",Gt))}function kt(t,e){const n=e.loadPersistedAttribution();const r=e.sessionStartAttribution();let i=At(t,n,r,Vt());e.saveSessionStart(i);const o=Nt(t,n,r,e).then(t=>{i=t});return{sync:Promise.resolve(),full:o,getCurrentAttribution:()=>i,attributeRegistration:async()=>{const t=St(i);null!==t&&(i=t,e.save(i))}}}async function Nt(t,e,n,r){const i=await B();const o=At(t,e,n,Vt(),i);return null!==e&&R("Att - User - CookieFound",{attribution:e}),r.save(o),o}function $t(t){const e=t.getOrigin();const n=kt(e,new b);window._mc.push({vsa:n});const{sync:r,full:i}=n;z(e,t),r.then(()=>{R(V,{attribution:n.getCurrentAttribution()})}),i.then(async()=>{if("/register"===e.currentPath(true))try{await n.attributeRegistration()}catch{}}).finally(()=>{R(E,{attribution:n.getCurrentAttribution()})})}const Mt=Object.freeze(Object.defineProperty({__proto__:null,register:function(){return{eventName:G,handler:t=>{$t(t.detail.visitor)}}}},Symbol.toStringTag,{value:"Module"}));const Rt="Application - Register Form - Submitted";function zt(t,e={}){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:t,...e})}function xt(t={}){window.dataLayer=window.dataLayer||[],window.dataLayer.push({...t})}const Bt=Object.freeze(Object.defineProperty({__proto__:null,register:function(){return{eventName:Rt,handler:t=>{zt("Registration - Form Submitted",{email:t.detail.email})}}}},Symbol.toStringTag,{value:"Module"}));const Jt="Att - User - ComeFromCampaign";const Wt=Object.freeze(Object.defineProperty({__proto__:null,register:function(){return{eventName:Jt,handler:t=>{zt("comeFromCampaign")}}}},Symbol.toStringTag,{value:"Module"}));const Kt=Object.freeze(Object.defineProperty({__proto__:null,register:function(){return{eventName:E,handler:t=>{const e=t.detail.attribution.asyncIdentifiers();null!==e&&xt(e)}}}},Symbol.toStringTag,{value:"Module"}));const Yt=Object.freeze(Object.defineProperty({__proto__:null,register:function(){return{eventName:V,handler:t=>{const{ac:e,...n}=t.detail.attribution.objectV2();xt(n)}}}},Symbol.toStringTag,{value:"Module"}));const Xt="dataLayer - Pushed";const Zt=Object.freeze(Object.defineProperty({__proto__:null,register:function(){return{eventName:t,handler:async t=>{if(!window.dataLayer||!Array.isArray(window.dataLayer))return;if(window.dataLayer.push.__ap)return;window.dataLayer.forEach(t=>{const e=new CustomEvent(Xt,{detail:t});window.dispatchEvent(e)});const e=window.dataLayer.push.bind(window.dataLayer);window.dataLayer.push=function(t){const n=e.call(this,t);const r=new CustomEvent(Xt,{detail:t});return window.dispatchEvent(r),n},window.dataLayer.push.__ap=true}}}},Symbol.toStringTag,{value:"Module"}));const qt=Object.freeze(Object.defineProperty({__proto__:null,register:function(){return{eventName:"DOMContentLoaded",handler:()=>{const t=document.getElementById("registrationForm");t&&t.addEventListener("submit",t=>{t.preventDefault();const e=new FormData(t.target);const n=e.get("ihnmfelkg");
1if(!n)return void t.target.submit();const r=new CustomEvent(Rt,{detail:{email:n}});document.dispatchEvent(r),t.target.submit()})}}}},Symbol.toStringTag,{value:"Module"}));const Ht=Object.freeze(Object.defineProperty({__proto__:null,register:function(){return{eventName:k,handler:t=>{const{campaign:e,visitor:n}=t.detail;if(!e||!n)return;const r=n.withCampaignAttributed(e);R(r.pullEvents()),window._mc.push({v:r})}}}},Symbol.toStringTag,{value:"Module"}));function Qt(t){const e=v(30);f.saveObject(o.RegistrationOverride,t,e)}function te(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)}function ee(){window._mc=window._mc||[];const t=window._mc;if(true===t.__mc)return;const e=[...t].filter(te);t.length=0;const n=new Map;const r=new Map;t.__mc=true,t.push=(...t)=>{var e;for(const i of t)for(const[t,o]of Object.entries(i))n.set(t,o),null==(e=r.get(t))||e(o);return n.size},t.on=(t,e)=>{r.set(t,e),n.has(t)&&e(n.get(t))},t.get=t=>n.get(t);for(const i of e)t.push(i)}function ne(t){if(!t||!t.location)return;const e=(n=t.location,"wordpressform"===n.trim().toLowerCase()?h.WordPressForm:h.Application);var n;Qt({location:e,...void 0!==t.embedUrl?{embedUrl:t.embedUrl}:{}})}class re{constructor(){__publicField(this,"_events",[])}record(t,e){const n=new CustomEvent(t,{detail:e});this._events.push(n)}pullEvents(){const t=this._events;return this._events=[],t}}function ie(t){if("string"==typeof t){const e=t.trim();if(0===e.length)throw new _("UserId must be a non-empty string or number");return e}if("number"==typeof t){if(!Number.isFinite(t))throw new _("UserId must be a finite number");return String(t)}throw new _("UserId must be a non-empty string or number")}function oe(t=null){return ie(t)}function se(t){try{return oe(t)}catch{return null}}function ce(t=null,e=null,n=null,r=null){return{userId:se(t),blogId:se(e),ownerId:se(n),agencyId:se(r)}}function ae(t){return Boolean(t)}function ue(t){const e=new Date;const n=t.date;return e>n?Math.ceil((e.getTime()-n.getTime())/864e5):-1}class le extends re{constructor(t,e,n,r,i,o=null){super(),__publicField(this,"visitorIsLoggedIn"),__publicField(this,"userIsPremium"),__publicField(this,"identifiers"),__publicField(this,"registeredDate"),__publicField(this,"origin"),__publicField(this,"userProperties"),this.identifiers=t,this.origin=e,this.visitorIsLoggedIn=n,this.userIsPremium=r,this.registeredDate=i,this.userProperties=o}get userId(){return this.identifiers.userId??null}get loggedIn(){return this.visitorIsLoggedIn}get isPremium(){return this.userIsPremium}get userAge(){return this.registeredDate?ue(this.registeredDate):null}get groups(){return{ownerId:this.identifiers.ownerId??null,blogId:this.identifiers.blogId??null}}get properties(){var t;return(null==(t=this.userProperties)?void 0:t.toObject())??null}getOrigin(){return this.origin}getTraits(){var t;return(null==(t=this.userProperties)?void 0:t.withoutConnections())??null}getProperties(){var t;return(null==(t=this.userProperties)?void 0:t.toObject())??null}isWhitelabel(){var t;return Boolean(null==(t=this.properties)?void 0:t.Whitelabel)}isAgency(){return null!==this.identifiers.agencyId}hasEmailDomain(t){var e;const n=null==(e=this.properties)?void 0:e.email;if(!n)return false;const r=t.startsWith("@")?t:`@${t}`;return n.toLowerCase().includes(r.toLowerCase())}withCampaignAttributed(t){var e;let n=(null==(e=this.userProperties)?void 0:e.withCampaign(t))??null;const r=this.loggedIn&&null!=this.registeredDate&&(i=this.registeredDate,(new Date).getTime()-i.date.getTime()<=432e5);var i;if(r&&null!==n){const e={};for(const[n,r]of Object.entries(t.toObject()))e[`r_${n}`]=r;n=n.withCampaignRegistered(e)}const o=new le(this.identifiers,this.origin,this.visitorIsLoggedIn,this.userIsPremium,this.registeredDate,n);const s=o.getTraits();return null!==s&&null!==o.userId&&o.record(Jt,{campaign:t,traits:s,userId:o.userId}),r&&o.record("User - Registered by campaign",{campaign:t,traits:o.getTraits(),userId:o.userId||""}),o}isLoggedIn(){return this.visitorIsLoggedIn}getUserId(){return this.identifiers.userId}blogId(){return this.identifiers.blogId}ownerId(){return this.identifiers.ownerId}static createAnonymous(t){const e=ce(null,null,null);const n=new le(e,t,ae(false),(r=false,Boolean(r)),null);var r;return n.record(G,{visitor:n,loggedIn:false,origin:t}),n}static createLoggedIn(t,e,n,r,i){const o=ae(true);const s=new le(t,e,o,n,r,i);return s.record("Visitor - Logged in",{visitor:s}),s.record(G,{visitor:s,loggedIn:true,origin:e}),s}toJSON(){var t;return{identifiers:this.identifiers,origin:this.origin.toJSON(),isLoggedIn:this.visitorIsLoggedIn,isPremium:this.userIsPremium,registeredDate:(null==(t=this.registeredDate)?void 0:t.value)??null}}}const de="3.24.0";!function(){const t=Object.assign({"../../attribution/event-listeners/onVisitorFullAttributedSetupGa4BeaconFromQueue.ts":j,"../../attribution/event-listeners/onVisitorReadyAttribute.ts":Mt,"../../google-analytics/event-listeners/onRegisterFormSubmittedPublishDataLayer.ts":Bt,"../../google-analytics/event-listeners/onUserComeFromCampaignPublishDataLayer.ts":Wt,"../../google-analytics/event-listeners/onVisitorAttributedPublishDataLayer.ts":Kt,"../../google-analytics/event-listeners/onVisitorAttributedSyncPublishDataLayer.ts":Yt,"../../google-tag-manager/event-listeners/onCoreGTMLoadedObserveDatalayer.ts":Zt,"../../metricool/event-listeners/onDOMContentLoadedObserveRegisterForm.ts":qt,"../../user/event-listeners/onCampaignDetected.ts":Ht});if(0!==Object.keys(t).length)for(const e in t){const n=t[e];if("function"!=typeof n.register)continue;const r=n.register();const{eventName:i,onWindow:o}=r;const s=r.handler;if("DOMContentLoaded"===i&&"loading"!==document.readyState)s(new Event("DOMContentLoaded"));else{let t=document;void 0!==o&&o&&(t=window),t.addEventListener(i,s)}}}(),ee(),window._mc.push({srs:ne}),window.attributeNow=ne,window._mc=window._mc||[],window._mc.push({v:function(){const t=_t.fromCurrentURLs();i(new p);const e=le.createAnonymous(t);return R(e.pullEvents()),e}()}),window._mc.push({version:de}),document.dispatchEvent(new CustomEvent(t))}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.