1!function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var o=location.hash.indexOf("tracking-off=true")<0,r=n(15),a=r.trackGA4PageViewEvent,i=r.trackGA4Event,c=function(){function e(t){var e,n;if("pagename"===t[0]&&o.setPagename(t[1]),"gtm"===t[0]&&(e=o[t[1]],n=t.slice(2),"function"==typeof e&&e.apply(o,n)),"dealer-gtm"===t[0]&&(e=r[t[1]],n=t.slice(2),"function"==typeof e&&e.apply(r,n)),"cmp"===t[0]&&window.__tcfapi&&"onPersonalizedCookiesAllowed"===t[1]&&"function"==typeof t[2]){var a=t[2],i=function t(e,n){!n||"tcloaded"!==e.eventStatus&&"useractioncomplete"!==e.eventStatus||window.__tcfapi("getFullTCData",2,function(e){e.purpose.legitimateInterests[25]&&e.purpose.consents[26]&&a(),window.__tcfapi("removeEventListener",2,t)})};window.__tcfapi("addEventListener",2,i)}}var o=n(18),r=n(13),c=window.ut||(window.ut=[]);c.push===Array.prototype.push&&(c.push=function(){Array.prototype.push.apply(window.ut,arguments),e.apply({},arguments)},c.forEach(e)),window.ga4=window.ga4||{},window.ga4.trackGA4PageViewEvent=a,window.ga4.trackGA4Event=i,n(21),t.exports={gtm:o,ut:c}};n(12);var u=function(){return o?void c():void console.log("Tracking disabled")};u()},function(t,e){"use strict";function n(t){var e=t.endsWith(".com.tr")||t.endsWith(".com.ua")?3:2;return t.split(".").slice(-1*e).join(".").replace(/:.*$/,"")}function o(t){if(!t)return void console.error("Google Tag Manager container ID is required");window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtm.js?id="+t;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)}var r=["autohebdo.net","autotrader.ca"];t.exports={loadGtmScript:o,calculateEtldPlusOne:n,domainsWithoutTcfConsent:r}},function(t,e){"use strict";function n(t,e){if(!t)return null;var n=e&&e.decodingFunction||decodeURIComponent;return n(i.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}function o(t,e,n){if(!t||/^(?:expires|max\-age|path|domain|secure)$/i.test(t))return!1;var o="";if(n.expires){var r=new Date;r.setTime(+r+n.expires),o="; expires="+r.toGMTString()}return n.encodingFunction=n.encodingFunction||encodeURIComponent,document.cookie=encodeURIComponent(t)+"="+n.encodingFunction(e)+o+(n.domain?"; domain="+n.domain:"")+(n.path?"; path="+n.path:"")+(n.secure?"; secure":""),!0}function r(t,e){return!a(t)&&(document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(t?"; domain="+e.domain:"")+(e.path?"; path="+e.path:""),!0)}function a(t){return!!t&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}var i=document;t.exports={read:n,set:o,remove:r}},function(t,e,n){"use strict";var o=n(2),r=o.read,a=n(8),i=a.ssoToken,c=a.parseJwt,u=function(){var t=s();return t&&t.customerId},s=function(){var t=d();return t||l()},d=function(){var t=i();if(t){var e=c(t);if(e){var n=""!==e.ctid?e.ctid:void 0,o=""!==e.cty?e.cty:void 0;return n&&o?{customerId:n,customerType:o}:void 0}}},l=function(){var t=r("User");if(t){var e=new URLSearchParams(t),n=e.get("CustomerID");n=n?n.replace(/[()]+/g,""):n;var o=e.get("CustomerType");return n&&o?{customerId:n,customerType:o}:void 0}};t.exports={customerId:u,getCustomerInfo:s}},function(t,e,n){"use strict";var o=n(8),r=o.ssoToken,a=o.parseJwt,i="D",c="B",u="P",s=function(){var t=r();if(!t)return"not_logged_in";var e=a(t);if(!e)return"not_logged_in";switch(e.cty){case c:case u:return"logged-in|b2c";case i:return"logged-in|b2b";default:return"logged-in|other"}};t.exports={loginStatus:s,DEALER:i}},function(t,e,n){"use strict";var o=n(14),r=o.getAdBlocker,a=function(t){return new Promise(function(e){return r(t),"undefined"==typeof t.adblockDetector?e("init adblock detector failed"):void t.adblockDetector.init({debug:!1,found:function(){return e("adblock active")},notfound:function(){return e("no adblock detected")}})})};t.exports={adBlockerUsage:a}},function(t,e,n){"use strict";var o=n(2),r=n(3),a=r.getCustomerInfo,i=n(4),c=i.DEALER,u=function t(e){window.dataLayer.some(function(t){return"page_view"===t.event})?e():setTimeout(function(){return t(e)},100)},s=function(){var t=a();return t&&t.customerType===c?t.customerId:void 0},d=function(){var t=o.read("_asga");if(t){var e=t.split(".");return e[2]+"."+e[3]}},l=function(){var t=o.read("as24Visitor");return t?t:void 0};t.exports={waitTillGA4PageView:u,dealerId:s,gaClientId:d,as24VisitorId:l}},function(t,e,n){"use strict";var o=n(1),r=o.calculateEtldPlusOne,a=["de","at","be","it","hu","es","fr","lu","nl","bg","cz","ro","hu","int","pl","hr","ru","se","tr","ua","at_ca","ah_ca","at_nl","ak_nl","gw_at"],i=function(t){return a.some(function(e){return e===t})},c={"autotrader.nl":"at_nl","autotrack.nl":"ak_nl","gebrauchtwagen.at":"gw_at","autotrader.ca":"at_ca","autohebdo.net":"ah_ca"},u=function(){try{var t=window.location.hostname.split(".").pop(),e=r(window.location.hostname),n="com"===t?"int":t,o=c[e]||n;return i(o)?o:void 0}catch(t){return}};t.exports={ga4Market:u}},function(t,e,n){"use strict";var o=n(2),r=function(t){var e=t.split("."),n=decodeURIComponent(atob(e[1]));try{return JSON.parse(n)}catch(t){return}},a=function(){var t=o.read("sso");return t&&t.trim().length>0?t:null};t.exports={parseJwt:r,ssoToken:a}},function(t,e,n){"use strict";var o=n(10);t.exports=function(t){if(!o(t))return t;for(var e,n,r=1,a=arguments.length;r<a;r++){e=arguments[r];for(n in e)t[n]=e[n]}return t}},function(t,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e="undefined"==typeof t?"undefined":n(t);return!!t&&("function"===e||"object"===e)}},function(t,e,n){"use strict";var o=n(9);t.exports=function(){var t=[].slice.call(arguments);return t.unshift({}),o.apply(this,t)}},function(t,e){"use strict";window.addEventListener("click",function(t){window.dataLayer=window.dataLayer||[];var e=t.target;do{var n=e.getAttribute("data-click-datalayer-push");if(n)try{!function(){var t=JSON.parse(n);setTimeout(function(){window.dataLayer.push(t)},0)}()}catch(t){console.error("Cannot parse tracking value",n,e)}e=e.parentNode}while(e&&e.getAttribute)})},function(t,e){"use strict";function n(t){r.push(t)}function o(){window.dataLayer=window.dataLayer||[],setTimeout(function(){window.dataLayer.push({list_productidsall:r}),r=[]},0)}var r=[];t.exports={add:n,commit:o}},function(t,e){"use strict";var n=function(t){function e(t){return"function"==typeof t}function n(t,e){var n=e,o=document.createElement(t),r=void 0;if(n)for(r in n)n.hasOwnProperty(r)&&o.setAttribute(r,n[r]);return o}function o(t,e,n){v?t.attachEvent("on"+e,n):t.addEventListener(e,n,!1)}function r(e,n){(g.debug||n)&&t.console&&t.console.log&&(n?console.error("[ABD] "+e):console.log("[ABD] "+e))}function a(t){r("start beginTest"),k!==!0&&(i(t),b.quick="testing",T.test=setTimeout(function(){c(t,1)},5))}function i(t){var e=document,o=e.body,a="width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;";return null===t||"string"==typeof t?void r("invalid bait being cast"):(null!==t.style&&(a+=t.style),y=n("div",{class:t.cssClass,style:a}),r("adding bait node to DOM"),void o.appendChild(y))}function c(t,e){var n=void 0,o=document.body,a=!1;if(null===y&&(r("recast bait"),i(t||h)),"string"==typeof t)return r("invalid bait used",!0),void(u()&&setTimeout(function(){},5));for(T.test>0&&(clearTimeout(T.test),T.test=0),null!==o.getAttribute("abp")&&(r("found adblock body attribute"),a=!0),n=0;n<_.nullProps.length;n++){if(null===y[_.nullProps[n]]){e>4&&(a=!0),r("found adblock null attr: "+_.nullProps[n]);break}if(a===!0)break}for(n=0;n<_.zeroProps.length&&a!==!0;n++)0===y[_.zeroProps[n]]&&(e>4&&(a=!0),r("found adblock zero attr: "+_.zeroProps[n]));if(void 0!==window.getComputedStyle){var d=window.getComputedStyle(y,null);
1"none"!==d.getPropertyValue("display")&&"hidden"!==d.getPropertyValue("visibility")||(e>4&&(a=!0),r("found adblock computedStyle indicator"))}a||e++>=g.maxLoop?(k=a,r("exiting test loop - value: "+k),s(),u()&&setTimeout(function(){},5)):T.test=setTimeout(function(){c(t,e)},g.loopDelay)}function u(){if(null===y)return!0;try{e(y.remove)&&y.remove(),document.body.removeChild(y)}catch(t){}return y=null,!0}function s(){var t=void 0,n=void 0;if(null!==k)for(t=0;t<w.length;t++){n=w[t];try{null!==n&&(e(n.complete)&&n.complete(k),k&&e(n.found)?n.found():k===!1&&e(n.notfound)&&n.notfound())}catch(t){r("Failure in notify listeners "+t.Message,!0)}}}function d(){var e=!1;document.readyState&&"complete"===document.readyState&&(e=!0);var n=function(){a(h,!1)};e?n():o(t,"load",n)}var l="1.0",p="offset",f="client",m=function(){},v=void 0===t.addEventListener,g={loopDelay:50,maxLoop:5,debug:!0,found:m,notfound:m,complete:m},w=[],y=null,h={cssClass:"ad-banner banner_ad adsbygoogle ad_block adslot ad_slot advert1 content-ad"},_={nullProps:[p+"Parent"],zeroProps:[]};_.zeroProps=[p+"Height",p+"Left",p+"Top",p+"Width",p+"Height",f+"Height",f+"Width"];var b={quick:null,remote:null},k=null,T={test:0,download:0};t.adblockDetector={version:l,init:function(t){var e=void 0;if(t){var n={complete:m,found:m,notfound:m};for(e in t)t.hasOwnProperty(e)&&("complete"===e||"found"===e||"notfound"===e?n[e.toLowerCase()]=t[e]:g[e]=t[e]);w.push(n),d()}}}};t.exports={getAdBlocker:n}},function(t,e,n){"use strict";var o=function(){function t(t,e){var n=[],o=!0,r=!1,a=void 0;try{for(var i,c=t[Symbol.iterator]();!(o=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);o=!0);}catch(t){r=!0,a=t}finally{try{!o&&c.return&&c.return()}finally{if(r)throw a}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=n(5),a=r.adBlockerUsage,i=n(3),c=i.customerId,u=n(6),s=u.dealerId,d=u.gaClientId,l=u.as24VisitorId,p=u.waitTillGA4PageView,f=n(7),m=f.ga4Market,v=n(4),g=v.loginStatus,w=function(t,e){setTimeout(function(){window.dataLayer=window.dataLayer||[];var n=sessionStorage.getItem("adBlockerStatus");null===n&&a(window).then(function(t){return sessionStorage.setItem("adBlockerStatus",t)}).catch(function(t){return console.error("trackGA4PageViewEvent: Couldn't get adBlockerStatus",t)}),e&&window.dataLayer.push(e);var o=s();window.dataLayer.push({event_name:"page_view",event_type:"page_load",market:m(),dealer_id:o,ga4_client_id:d(),as24_visitor_id:l(),login_status:g(),adblocker_usage:n,customer_id:c(),content_id:t?t.content_id:"all",content_group:t?t.content_group:void 0,page_title:t?t.page_title:void 0,content_type:t?t.content_type:void 0}),window.dataLayer.push({event:"page_view"})},0)},y=function(t,e){if(!t||t.name.indexOf("_")===-1)throw new Error("Event name must follow naming convention: {feature}_{action}");setTimeout(function(){window.dataLayer=window.dataLayer||[];var n=t.details?Object.entries(t.details).map(function(t){var e=o(t,2),n=e[0],r=e[1];return n+"="+r}).join(";"):void 0;p(function(){e&&window.dataLayer.push(e),window.dataLayer.push({event:"ga4_event",event_name:t.name,event_type:t.type,event_details:n,event_category:t.category,event_action:t.action,event_label:t.label})})},0)};t.exports={trackGA4PageViewEvent:w,trackGA4Event:y}},function(t,e,n){"use strict";var o=n(1),r=o.calculateEtldPlusOne,a={"autoscout24.de":"GTM-MK57H2","autoscout24.at":"GTM-WBZ87G","autoscout24.be":"GTM-5BWB2M","autoscout24.lu":"GTM-NDBDCZ","autoscout24.es":"GTM-PS6QHN","autoscout24.fr":"GTM-PD93LD","autoscout24.it":"GTM-WTCSNR","autoscout24.nl":"GTM-TW48BJ","autoscout24.com":"GTM-KWX9NX","gebrauchtwagen.at":"GTM-KPJB2BN","autotrader.nl":"GTM-5J7WWB3","autotrader.ca":"GTM-TTQ59MMB","autohebdo.net":"GTM-TTQ59MMB","autotrack.nl":"GTM-WRHCNB"},i=function(t){return"accounts.autoscout24.com"===t},c=function(t){var e=new RegExp(/ui_locales=([a-z]+)/g),n=window.location.href.match(e),o="com";if(n){var r=n.join("");o=r.split("=")[1]}var a={de:"autoscout24.de",at:"autoscout24.at",be:"autoscout24.be",lu:"autoscout24.lu",es:"autoscout24.es",fr:"autoscout24.fr",it:"autoscout24.it",nl:"autoscout24.nl",com:"autoscout24.com"};return a[o]||"autoscout24.com"};t.exports=function(t){var e=i(t)?c(window.location.href):r(t);return a[e]||a["autoscout24.com"]}},function(t,e,n){"use strict";function o(t){return t&&(""+t).toLowerCase()}var r=window.dataLayer=window.dataLayer||[],a=window.location.href.indexOf("tracking-arrays=true")>=0,i=n(1),c=i.calculateEtldPlusOne,u=i.domainsWithoutTcfConsent,s=i.loadGtmScript;t.exports={loadContainer:function t(e){function t(){return u.includes(c(location.hostname))?void s(e):void window.__tcfapi("addEventListener",2,function(t,n){!n||"tcloaded"!==t.eventStatus&&"useractioncomplete"!==t.eventStatus||(window.__tcfapi("removeEventListener",2,function(){},t.listenerId),s(e))})}var n="gtm-main-container-load-initiated",o=document.documentElement.className.indexOf(n)>=0;o||(document.documentElement.className+=" "+n,t())},push:function(){if(arguments.length){var t=[].slice.call(arguments);t.map(function(t){for(var e in t)a&&"string"!=typeof t[e]||(t[e]=o(t[e]));return t}),setTimeout(function(){r.push.apply(r,t)},0)}}}},function(t,e,n){"use strict";function o(t){u=t}function r(t){switch(t){case"autoscout24.com":return"gb";case"autotrader.nl":return"at.nl";case"autotrack.nl":return"ak.nl";case"gebrauchtwagen.at":return"gw.at";case"autotrader.ca":return"at.ca";case"autohebdo.net":return"ah.ca";default:return t.split(".").pop()}}function a(t){var e=s({},u,t);if(!(e&&e.country&&e.market&&e.category&&e.pageid&&e.environment)){if("test"!==e.environment||"live"!==e.environment)throw new Error("Invalid environment type, "+JSON.stringify(e));throw new Error("Incorrect pagename, "+JSON.stringify(e))}var n=[e.country,e.market,e.category,e.group,e.pageid].filter(function(t){return t}).join("/");e.layer&&(n+="|"+e.layer);var o=S("adBlockerStatus");return null===o&&_(window).then(function(t){return I("adBlockerStatus",t)}).catch(function(t){return console.error("trackPageview: Couldn't get adBlockerStatus",t)}),{common_country:r(C(window.location.hostname))||e.country,common_market:e.market,common_category:e.category,common_pageid:e.pageid,common_pageName:n,common_environment:e.environment,common_language:e.language||"",common_group:e.group||"",common_layer:e.layer||"",common_attribute:e.attribute||"",common_linkgroup:e.linkgroup||"",common_linkid:e.linkid||"",common_techState:e.techState||"",common_brand:e.common_brand||"",dealer_id:m(),ga_client_id:v(),as24_visitor_id:g(),login_status:y(),adblocker_usage:null===o?void 0:o,customer_id:k(),market:x()}}function i(t){t.eventcategory&&t.eventaction?d.push({event:"event_trigger",event_category:t.eventcategory,event_action:t.eventaction,event_label:t.eventlabel||"",event_non_interaction:!1}):(d.push(a(t)),d.push({event:"click"}))}function c(t){P&&d.push(p);var e=a(t);d.push(e),setTimeout(function(){P?(d.loadContainer(l),d.push({event:"common_data_ready"}),d.push({event:"data_ready"}),P=!1):d.push({event:"pageview"})},10)}var u,s=n(11),d=n(17),l=n(16)(location.hostname),p=n(19),f=n(6),m=f.dealerId,v=f.gaClientId,g=f.as24VisitorId,w=n(4),y=w.loginStatus,h=n(5),_=h.adBlockerUsage,b=n(3),k=b.customerId,T=n(7),x=T.ga4Market,E=n(20),S=E.getItem,I=E.setItem,L=n(1),C=L.calculateEtldPlusOne,P=!0;t.exports={setPagename:o,trackClick:i,set:d.push,pageview:c,click:i}},function(t,e){"use strict";var n=Math.min(document.documentElement.clientWidth,window.innerWidth||screen.width);t.exports={session_viewport:n>=994?"l":n>=768?"m":n>=480?"s":"xs"}},function(t,e){"use strict";var n=function(t){try{return sessionStorage.getItem(t)}catch(t){return null}},o=function(t,e){try{sessionStorage.setItem(t,e)}catch(t){console.error("sessionStorage.setItem: Failed to set item",t)}};t.exports={getItem:n,setItem:o}},function(t,e){"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},o=n(Object.create(HTMLElement.prototype),{inDev:!1,supportedActions:["set","click","pageview"],supportedTypes:["gtm","pagename"],reservedWords:["type","action","as24-tracking-value","as24-tracking-click-target"],attachedCallback:function(){var t=this,e=this.getAdditionalProperties(),n=this.getAttribute("type"),o=this.getAttribute("action"),r=[n,o];Object.keys(e).length>0&&r.push(e),"pagename"===n&&r.splice(1,1);var a=this.getAttribute("as24-tracking-click-target");if(a)for(var i=document.querySelectorAll(a),c=0;c<i.length;c++)i[c].addEventListener("click",function(){return t.track(r)});else this.track(r)},getAdditionalProperties:function(){var t=this,e=this.getAttribute("as24-tracking-value"),n=e?JSON.parse(e):{};return Array.isArray(n)?n:Array.prototype.slice.call(this.attributes).filter(function(e){return!(t.reservedWords.indexOf(e.nodeName)>-1)}).reduce(function(e,n){var o=t.decodeAttributeName(n.nodeName);return e[o]=n.nodeValue,e},n)},decodeAttributeName:function(t){return t.indexOf("-")>-1&&(t=t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})),t},track:function(t){this.inDev?console.log(t):(window.ut=window.ut||[],window.ut.push(t))}});try{var r=document.createElement("as24-tracking").constructor;r!==HTMLElement&&r!==HTMLUnknownElement||document.registerElement("as24-tracking",{prototype:o})}catch(t){window&&window.console&&window.console.warn('Failed to register CustomElement "as24-tracking".',t)}}]); 2//# sourceMappingURL=/assets/external/brave-flamingo/master/a33b7270228d8656a58833cb9891e562da483acd/index.min.js.map
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.