if(typeof(DMP) === 'undefined') {
	window.DMP = {};
}
if(typeof(DMP.onetag) === 'undefined') {
	DMP.onetag = {};
}

if(typeof(DMP.onetag.system) === 'undefined') {
	DMP.onetag.system = {};

	DMP.onetag.system.pageName = function(){
		var pageName = (location.hostname + location.pathname).replace(/\//g, ':');
		var addPageName = (typeof(window.s_AddPageName) === 'undefined') ? '' : '_' + window.s_AddPageName;
		return pageName + addPageName;
	};

}

if(typeof(DMP.onetag.site) === 'undefined') {
	DMP.onetag.site = {};
}

DMP.onetag.error = [];
try {
window.ignoreAdobeTagManager = true;
} catch(e) {
DMP.onetag.error.push(262);
}
try {
(function(w){
	if (w.sc_p) return;
	w.sc_p = function(v) {
		var n = "ex-" + v;
		if (w.s_sc_cd && w.s_sc_cd.tl) {
			w.s_sc_cd.tl(this, "o", n, { linkTrackVars:"prop33", prop33:w.s_sc_cd.pageName });
		}
		if (w.DMP && w.DMP.getRequest) {
			w.DMP.getRequest("click", {
				additional_fields: {
					sub_type: "siteclickcount",
					field01: n,
					field02: (new Date).getTime()
				}
			}, { toUrl:(typeof this.getAttribute==="function"?this.getAttribute("href"):"") });
		}
	};
})(window);
} catch(e) {
DMP.onetag.error.push(1423);
}
try {
(function () {
    var p1 = '', p2 = '', is_hiding = false, ht = '', run = true;
    var hf = function () {
        if (!p1 || !p2 || !is_hiding || !ht)
            return;        
        // <style>.async-hide {opacity: 0 !important} </style>
        var st = document.createElement('style');
        document.head.appendChild(st);
        st.textContent = '.async-hide {opacity: 0 !important}';
    
        (function (a, s, y, n, c, h, i, d, e) {
            s.className += ' ' + y;
            h.end = i = function () { s.className = s.className.replace(RegExp(' ?' + y), '') };
            (a[n] = a[n] || []).hide = h; setTimeout(function () { i(); h.end = null }, c);
        })(window, document.documentElement, 'async-hide', 'dataLayer', ht, { p2: true });
    };

    var f = function () {
        if (!p1 || !p2)
            return;
        (function () {
            var e = document.createElement("script");
            var s = document.getElementsByTagName("script")[0];
            e.type = "text/javascript";
            e.async = 1;
            e.setAttribute("src", "https://www.googletagmanager.com/gtag/js?id=" + p1);
            s.parentNode.insertBefore(e, s);
        })();

        window.dataLayer = window.dataLayer || [];
        function gtag() { dataLayer.push(arguments); }
        gtag('js', new Date());

        gtag('config', p1, {
            'optimize_id': p2,
            'send_page_view': false
        });
    }
run = false;
if((new RegExp("^/U-Car(/|/index\.html)?$")).test(location.pathname)===true){
    p1 = 'UA-176963352-2';
    p2 = 'OPT-5HP4L8R';
    run = true;
}
    if(!run) return;
    hf();
    f();
})();
} catch(e) {
DMP.onetag.error.push(2023);
}
