import{s as A}from"/accounts/build/_shared/chunk-2OSNKVOL.js";import{c as I,d as z}from"/accounts/build/_shared/chunk-GOPQ4PBN.js";var L1=I(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.getCookie=n1;function n1(C){let l=document.cookie.match(new RegExp("(^| )"+C+"=([^;]+)"));return l?l[2]:null}});var A1=I(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.dataLayer=void 0;P.initializeGTM=c1;var a1=L1(),s,F;function c1(C,l=void 0,L=void 0){(function(a,t,M,h,H){typeof window<"u"&&(a.dataLayer=a.dataLayer||[],a.dataLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js"}));let V=t.getElementsByTagName(M)[0],i=t.createElement(M),e=h!=="dataLayer"?"&l="+h:"";i.async=!0,i.src="https://data.statista.com/gtm.js?id="+H+e,V.parentNode.insertBefore(i,V)})(window,document,"script","dataLayer",C),window.dataLayer||(window.dataLayer=[]),s=r1(l),F=L,z1(),u1()}function r1(C){return C?.includes("|")?C.split("|").pop()||"":C}function s1(){let C=window;if(Array.isArray(C.dataLayer)){for(let l of C.dataLayer)if(l.event==="udpInit")return!0}return!1}function u1(){let C=setInterval(()=>{s1()&&(v1(),clearInterval(C))},1e3)}function c(C){if(!C)return null;let l=document.querySelector(`meta#${C}`)||document.querySelector(`meta[name="${C}"]`);return l instanceof HTMLMetaElement&&(l.content||l.getAttribute("data-page"))||null}function f(C){let l=window;if(Array.isArray(l.dataLayer))for(let L of l.dataLayer){let a=L;if(a.event==="udpInit")return Object.prototype.hasOwnProperty.call(a,C)?a[C]:void 0}else{console.warn("DataLayer is not defined.");return}}function r(C){if(!C||!C.event)return;let l={};for(let L in C)Object.prototype.hasOwnProperty.call(C,L)&&C[L]!==void 0&&C[L]!==null&&C[L]!==""&&(l[L]=C[L]);typeof window<"u"&&!window.dataLayer&&(window.dataLayer=[]),window.dataLayer.push(l)}function v1(){var C,l,L,a,t,M,h,H,V,i,e,Z,o,d,u,p,n,v,w,m,_,B,b,E,q,N,U;window.dataLayer=window.dataLayer||[];let p1={event:"init",statistaTrackingUUID:(C=(0,a1.getCookie)("statistaTrackingUUID"))!==null&&C!==void 0?C:void 0,user_id:(l=s??f("userId"))!==null&&l!==void 0?l:void 0,user_country_id:(L=f("userCountryId"))!==null&&L!==void 0?L:void 0,user_date_registered:(a=f("userDateRegistered"))!==null&&a!==void 0?a:void 0,user_email:(t=F??f("userEmail"))!==null&&t!==void 0?t:void 0,user_firstname:(M=f("userFirstname"))!==null&&M!==void 0?M:void 0,user_language:(h=f("userLanguage"))!==null&&h!==void 0?h:void 0,user_lastname:(H=f("userLastname"))!==null&&H!==void 0?H:void 0,user_phase:(V=f("userPhase"))!==null&&V!==void 0?V:void 0,user_platform_id:(i=f("userPlatformId"))!==null&&i!==void 0?i:void 0,user_ab_test_version:(Z=(e=f("userTestGroup"))!==null&&e!==void 0?e:c("gtm_automatedTest"))!==null&&Z!==void 0?Z:void 0,user_product_id:(o=f("subscriptionProductId"))!==null&&o!==void 0?o:void 0,user_product_group_id:(d=f("groupId"))!==null&&d!==void 0?d:void 0,user_log:(p=(u=c("gtm_userLog"))!==null&&u!==void 0?u:f("lastvisitLoggedin"))!==null&&p!==void 0?p:void 0,account_type:(n=f("userTypeAccount"))!==null&&n!==void 0?n:void 0,content_access:(w=(v=c("gtm_contentAccess"))!==null&&v!==void 0?v:f("lastvisitContentAccess"))!==null&&w!==void 0?w:void 0,content_id:(_=(m=c("gtm_contentId"))!==null&&m!==void 0?m:f("lastvisitContentId"))!==null&&_!==void 0?_:void 0,content_title:(b=(B=c("gtm_contentTitle"))!==null&&B!==void 0?B:f("lastvisitContentTitle"))!==null&&b!==void 0?b:void 0,content_type:(q=(E=c("gtm_contentType"))!==null&&E!==void 0?E:f("lastvisitContentType"))!==null&&q!==void 0?q:void 0,stroeer_page_type:(N=c("gtm_stroeer_pageType"))!==null&&N!==void 0?N:void 0,stroeer_g_id:(U=c("gtm_stroeer_gid"))!==null&&U!==void 0?U:void 0};r(p1)}function b1(C){var l,L,a;let t={event:"checkout_account",account_type:C.accountType,funnel_step:C.funnelStepProgress,purchase_journey:C.registrationType,product_id:(a=(L=(l=C.productId)===null||l===void 0?void 0:l.toString())!==null&&L!==void 0?L:f("subscriptionProductId"))!==null&&a!==void 0?a:void 0,payment_method:C.paymentType};r(t)}function k1(C,l){var L,a;let t={event:"account_checkout_criteo",account_type:(a=(L=C?.toString())!==null&&L!==void 0?L:f("subscriptionProductId"))!==null&&a!==void 0?a:void 0,price:l};r(t)}function m1(C){var l,L;let a={event:"checkout_account",account_type:"basic_account",product_id:(L=(l=C?.toString())!==null&&l!==void 0?l:f("subscriptionProductId"))!==null&&L!==void 0?L:void 0};r(a)}function E1(C){var l,L,a,t;let M=h=>{r({event:"browse_account",account_type:h})};if(typeof C=="string"){let h=(t=(a=(L=(l=C?.toLowerCase())===null||l===void 0?void 0:l.split("-"))===null||L===void 0?void 0:L.join("_"))===null||a===void 0?void 0:a.split(" "))===null||t===void 0?void 0:t.join("_");M(h)}else for(let h of C)M(h)}function g1(C){let l={event:"register_account",isUpgrade:C.isUpgrade,account_type:C.accountType,registration_type:C.registerType};r(l)}function z1(){var C;let l={event:"customer_data",user_id:s?.toString()||f("userId"),user_email:F?.toString()||f("userEmail"),statistaTrackingUUID:(C=(0,a1.getCookie)("statistaTrackingUUID"))!==null&&C!==void 0?C:void 0};r(l)}function F1(){let C={event:"login",user_id:s?.toString()||f("userId")};r(C)}function y1(){r({event:"logout",user_id:"null"})}function w1(C){var l,L,a,t,M;let h={event:"page_view",page_location:C.pageLocation,page_type:(a=(L=(l=C.pageType)!==null&&l!==void 0?l:c("gtm_pageType"))!==null&&L!==void 0?L:c("gtm_contentTitle"))!==null&&a!==void 0?a:void 0,content_type:C.contentType,content_id:(t=c("gtm_contentId"))!==null&&t!==void 0?t:void 0,route_name:(M=c("gtm_routeName"))!==null&&M!==void 0?M:void 0};r(h)}function _1(C){let l={event:"file_download",content_type:C.contentType,file_name:C.fileName,file_extension:C.fileExtension};r(l)}function B1(C){var l,L;let a={event:"get_access",content_type:C.contentType,page_location:(l=C.pageLocation)!==null&&l!==void 0?l:void 0,route_name:(L=c("gtm_routeName"))!==null&&L!==void 0?L:void 0};r(a)}P.dataLayer={pushBrowseAccount:E1,pushCheckoutAccount:b1,pushCheckoutAccountCriteo:k1,pushCheckoutAccountBasicForm:m1,pushRegisterAccount:g1,pushLogin:F1,pushLogout:y1,pushGetAccess:B1,pushFileDownload:_1,pushPageView:w1}});var M1=I((s0,e1)=>{"use strict";function T1(C){try{return JSON.stringify(C)}catch{return'"[Circular]"'}}e1.exports=q1;function q1(C,l,L){var a=L&&L.stringify||T1,t=1;if(typeof C=="object"&&C!==null){var M=l.length+t;if(M===1)return C;var h=new Array(M);h[0]=a(C);for(var H=1;H