(function () { window.parent.dataLayer = window.parent.dataLayer || []; var current_url = location.href; var insertScriptFile = function(src, domID = null, cb = null){ var d = window.parent.document.getElementsByTagName("script")[0]; if (domID) { if (window.parent.document.getElementById(domID)) { if(cb) { cb(domID); } return true; } } var o = window.parent.document.createElement("script"); o.async = 1; if (domID) { o.id = domID; } o.onload = function(){ if(cb) { cb(); } }; o.src = src; d.parentNode.insertBefore(o, d); }; var removeScriptContent = function(str){ return str.replace(/)<[^<]*)*<\/script>/gi, ""); }; var extractScripts = function(str){ var s1 = null, s2 = null; var a1 = str.match(/([\s\S]*?)<\/script>/gm); if (a1) { s1 = a1.map(function(x){ return x.replace(/]*>([\s\S]*?)<\/script>/, '$1'); }); } var a2 = str.match(/