1 line
57 KiB
Plaintext
1 line
57 KiB
Plaintext
(function () { var AdmicroTagManagerData = {"tag":[{"id":8973,"name":"camcode_header_Fo","code":"\u003Cscript\u003E\r\nvar script = document.createElement('script');\r\nscript.type = 'text\/javascript';\r\nscript.src = '\/\/s.eclick.vn\/delivery\/eclick.js'; \r\n\r\ndocument.head.appendChild(script);\r\n\u003C\/script\u003E","template_id":0,"parameter":[],"option":[{"key":"canBeRestarted","value":"true","type":"BOOL"},{"key":"useDocumentWrite","value":"false","type":"BOOL"},{"key":"loadCoreAfter","value":"false","type":"BOOL"}],"dependence":[],"firing":[11504]},{"id":8982,"name":"Admicro Analytics PC","code":"","template_id":6,"parameter":[{"key":"domain","value":"thanhnien.vn","type":"TEXT"},{"key":"domain_id","value":"62","type":"INTEGER"}],"option":[{"key":"canBeRestarted","value":"true","type":"BOOL"},{"key":"useDocumentWrite","value":"false","type":"BOOL"},{"key":"loadCoreAfter","value":"false","type":"BOOL"}],"dependence":[],"firing":[11501]},{"id":8990,"name":"anymin360","code":"\u003Cscript\u003E\r\n \r\nvar script = document.createElement('script');\r\nscript.type = 'text\/javascript';\r\nscript.src = '\/\/anymind360.com\/js\/743\/ats.js'; \r\n\r\ndocument.head.appendChild(script);\r\n\u003C\/script\u003E","template_id":0,"parameter":[],"option":[{"key":"canBeRestarted","value":"true","type":"BOOL"},{"key":"useDocumentWrite","value":"false","type":"BOOL"},{"key":"loadCoreAfter","value":"false","type":"BOOL"}],"dependence":[],"firing":[11504]},{"id":11981,"name":"th\u00eam m\u00e3 921701","code":"\u003Cscript\u003E\r\ntry {\r\n (function() {\r\n \/\/ Danh s\u00e1ch URL c\u1ea7n ki\u1ec3m tra\r\n const urlsToCheck = [\r\n 'https:\/\/thanhnien.vn\/giai-tri.htm',\r\n 'https:\/\/thanhnien.vn\/con-gai-16-tuoi-cua-thien-nga-nuoc-uc-nicole-kidman-gay-chu-y-18524100308340663.htm'\r\n ];\r\n\r\n \/\/ L\u1ea5y URL hi\u1ec7n t\u1ea1i c\u1ee7a trang\r\n const currentUrl = window.location.href;\r\n\r\n \/\/ Ki\u1ec3m tra xem URL hi\u1ec7n t\u1ea1i c\u00f3 kh\u1edbp v\u1edbi m\u1ed9t trong c\u00e1c URL trong danh s\u00e1ch kh\u00f4ng\r\n if (urlsToCheck.some(url =\u003E currentUrl.includes(url))) {\r\n \/\/ T\u1ea1o th\u1ebb \u003Cscript\u003E\r\n const script = document.createElement('script');\r\n script.src = 'https:\/\/jsc.mgid.com\/site\/921701.js';\r\n script.async = true;\r\n document.head.appendChild(script);\r\n }\r\n})();\r\n} catch (error) {\r\n \r\n}\r\n\u003C\/script\u003E","template_id":0,"parameter":[],"option":[{"key":"canBeRestarted","value":"true","type":"BOOL"},{"key":"useDocumentWrite","value":"false","type":"BOOL"},{"key":"loadCoreAfter","value":"false","type":"BOOL"}],"dependence":[],"firing":[11501]},{"id":12269,"name":"\u1ea9n b\u00ean box chinh tri","code":"\u003Cscript\u003E\r\ntry {\r\n if (allzone.includes('chinh-tri')) {\r\n (function(){\r\nvar bindCSS=function(c){var e=document.createElement(\"style\");e.type=\"text\/css\";document.getElementsByTagName(\"head\")[0].appendChild(e);e.styleSheet?e.styleSheet.cssText=c:e.appendChild(document.createTextNode(c))};\r\n\/\/bindCSS('.super-masthead{display: none !important;}');\r\nbindCSS('.top-banner{display: none !important;}');\r\nbindCSS('.d-block.min-h-250{display: none !important;}');\r\nbindCSS('#zone-lborwieh{display: none !important;}'); \r\n})();\r\n}\r\n} catch (error) {\r\n \r\n}\r\ntry {\r\n if (_ADM_Channel.includes('chinh-tri')) {\r\n (function(){\r\nvar bindCSS=function(c){var e=document.createElement(\"style\");e.type=\"text\/css\";document.getElementsByTagName(\"head\")[0].appendChild(e);e.styleSheet?e.styleSheet.cssText=c:e.appendChild(document.createTextNode(c))};\r\n\/\/bindCSS('.super-masthead{display: none !important;}');\r\nbindCSS('.top-banner{display: none !important;}');\r\nbindCSS('.d-block.min-h-250{display: none !important;}');\r\nbindCSS('#zone-lborwieh{display: none !important;}');\r\n})();\r\n}\r\n} catch (error) {\r\n \r\n}\r\n try {\r\n if (window._isAdsHidden == true||window.location.href.includes(\"tran-duc-luong\")) {\r\n (function(){\r\nvar bindCSS=function(c){var e=document.createElement(\"style\");e.type=\"text\/css\";document.getElementsByTagName(\"head\")[0].appendChild(e);e.styleSheet?e.styleSheet.cssText=c:e.appendChild(document.createTextNode(c))};\r\n\/\/bindCSS('.super-masthead{display: none !important;}');\r\nbindCSS('.top-banner{display: none !important;}');\r\nbindCSS('.super-masthead{display: none !important;}');\r\nbindCSS('.d-block.min-h-250{display: none !important;}');\r\nbindCSS('#zone-lborwieh{display: none !important;}');\r\n})();\r\n}\r\n} catch (error) {\r\n \r\n}\r\n\u003C\/script\u003E","template_id":0,"parameter":[],"option":[{"key":"canBeRestarted","value":"true","type":"BOOL"},{"key":"useDocumentWrite","value":"false","type":"BOOL"},{"key":"loadCoreAfter","value":"false","type":"BOOL"}],"dependence":[],"firing":[11501]},{"id":12984,"name":"check core arf load","code":"\u003Cscript\u003E\r\n const pcScriptsTN = [\r\n \"https:\/\/qwe.populartooth.com\/rec\/thanhnien_8tinnoibat_pc.js\",\r\n \"https:\/\/qwe.populartooth.com\/rec\/thanhnien_cothebanquantam_web.js\",\r\n \"https:\/\/qwe.populartooth.com\/rec\/thanhnien_danhchoban_web.js\",\r\n \"https:\/\/qwe.populartooth.com\/rec\/thanhnien_docthem_web.js\",\r\n \"https:\/\/qwe.populartooth.com\/rec\/thanhnien_popup_web.js\",\r\n \"https:\/\/qwe.populartooth.com\/rec\/thanhnien_tin24h_web.js\",\r\n \"https:\/\/qwe.populartooth.com\/rec\/thanhnien_tinthitruong_web.js\",\r\n \"https:\/\/qwe.populartooth.com\/rec\/thanhnien_web_boxtest_1.js\",\r\n \"https:\/\/qwe.populartooth.com\/rec\/thanhnien_web_boxtest_2.js\",\r\n \"https:\/\/qwe.populartooth.com\/rec\/thanhnien_web_boxtest_3.js\",\r\n \"https:\/\/qwe.populartooth.com\/rec\/thanhnien_web_boxtest_4.js\",\r\n];\r\n\r\nfunction loadPCScripts(urls) {\r\n const ua = navigator.userAgent;\r\n const isFirefox = ua.indexOf(\"Firefox\") !== -1;\r\n const hasError = window.admerrorload || window.arferrorload;\r\n \r\n \/\/ N\u1ebfu c\u00f3 l\u1ed7i v\u00e0 kh\u00f4ng ph\u1ea3i Firefox (t\u1ee9c l\u00e0 Chrome, Edge, Opera,...)\r\n if (hasError && !isFirefox) {\r\n console.warn(\"\u26a0\ufe0f Ph\u00e1t hi\u1ec7n admerrorload\/arferrorload \u2014 CocCoc load scripts PC.\");\r\n } else {\r\n console.warn(\"\u26a0\ufe0f Ph\u00e1t hi\u1ec7n l\u1ed7i admerrorload\/arferrorload \u2014 Chrome kh\u00f4ng load scripts PC.\");\r\n return;\r\n }\r\n\r\n \/\/ Ti\u1ebfn h\u00e0nh load script n\u1ebfu h\u1ee3p l\u1ec7\r\n urls.forEach(url =\u003E {\r\n const s = document.createElement(\"script\");\r\n s.src = url;\r\n s.async = false; \/\/ \u0111\u1ea3m b\u1ea3o load theo th\u1ee9 t\u1ef1\r\n document.head.appendChild(s);\r\n });\r\n window[\"ADMCorePathBlockList\"] = [\"core\/visen.js\"];\r\n setInterval(() =\u003E {\r\n window[\"ADMCorePathBlockList\"] = [\"core\/visen.js\"];\r\n }, 3000);\r\n}\r\n\r\n\/\/ G\u1ecdi h\u00e0m \u0111\u1ec3 load\r\nloadPCScripts(pcScriptsTN);\r\n\r\n(function() {\r\n var script = document.createElement('script');\r\n script.src = 'https:\/\/media1.admicro.vn\/cms\/Arf.min.js';\r\n script.async = true;\r\n\r\n script.onerror = function() {\r\n window.arferrorload = true;\r\n console.log(\"ARF b\u1ecb block ho\u1eb7c l\u1ed7i load\");\r\n };\r\n\r\n document.head.appendChild(script);\r\n})();\r\n\r\ntry {\r\n \/\/ Ki\u1ec3m tra n\u1ebfu bi\u1ebfn _ADM_Channel t\u1ed3n t\u1ea1i v\u00e0 ch\u1ee9a 'hat-mam-suc-khoe'\r\n if (typeof _ADM_Channel !== 'undefined' && _ADM_Channel.includes('hat-mam-suc-khoe') || _ADM_Channel.includes('tin-hay-y-te')) {\r\n\r\n function bindCSS(b) {\r\n var e = document.createElement(\"style\");\r\n e.type = \"text\/css\";\r\n parent.document.getElementsByTagName(\"head\")[0].appendChild(e);\r\n if (e.styleSheet) {\r\n e.styleSheet.cssText = b;\r\n } else {\r\n e.appendChild(document.createTextNode(b));\r\n }\r\n }\r\n\r\n \/\/ G\u1ecdi h\u00e0m \u0111\u1ec3 \u00e1p d\u1ee5ng CSS\r\n bindCSS(`\r\n .top-banner { \r\n min-height: 0px !important; \r\n padding-top: 0px !important; \r\n }\r\n #zone-ks04evil { \r\n min-height: 0px !important; \r\n margin-top: 0px !important; \r\n }\r\n `);\r\n }\r\n} catch (error) {\r\n console.error('L\u1ed7i khi \u00e1p d\u1ee5ng CSS cho hat-mam-suc-khoe:', error);\r\n}\r\n\r\n\u003C\/script\u003E","template_id":0,"parameter":[],"option":[{"key":"canBeRestarted","value":"true","type":"BOOL"},{"key":"useDocumentWrite","value":"false","type":"BOOL"},{"key":"loadCoreAfter","value":"false","type":"BOOL"}],"dependence":[],"firing":[11501]}],"trigger":[{"type_name":"PAGE_VIEW","id":11501,"setting":[],"autoSettingRule":[],"rule":[]},{"type_name":"DOM_READY","id":11502,"setting":[],"autoSettingRule":[],"rule":[]},{"type_name":"WINDOW_LOADED","id":11503,"setting":[],"autoSettingRule":[],"rule":[]},{"type_name":"DOM_READY","id":11504,"setting":[],"autoSettingRule":[],"rule":[{"operator":"DOES_NOT_CONTAINS","variable_name":"channelVariable","value":"home"}]},{"type_name":"DOM_READY","id":11511,"setting":[],"autoSettingRule":[],"rule":[{"operator":"EQUALS","variable_name":"Page URL","value":"https:\/\/thanhnien.vn\/avatar-the-way-of-water-vuot-211-ti-usd-doanh-thu-toan-cau-18523013008101886.htm"}]},{"type_name":"DOM_READY","id":11524,"setting":[],"autoSettingRule":[],"rule":[{"operator":"EQUALS","variable_name":"Page URL","value":"https:\/\/thanhnien.vn\/ve-den-het-xem-le-hoi-vat-cau-185230130095607621.htm"}]}],"variable":[{"name":"channelVariable","value":"_ADM_Channel","type":"JAVASCRIPT_VARIABLE"},{"name":"Click ID","type":"DATA_LAYER"},{"name":"Has Cookie","type":"DATA_LAYER"},{"name":"Visitor Number","type":"DATA_LAYER"},{"name":"Page URL","type":"DATA_LAYER"},{"name":"Click URL","type":"DATA_LAYER"},{"name":"Click Classes","type":"DATA_LAYER"},{"name":"Click Element","type":"DATA_LAYER"},{"name":"Form Classes","type":"DATA_LAYER"},{"name":"Form Element","type":"DATA_LAYER"},{"name":"Form ID","type":"DATA_LAYER"},{"name":"Has Element ID","type":"DATA_LAYER"},{"name":"Form URL","type":"DATA_LAYER"},{"name":"Page Path","type":"DATA_LAYER"},{"name":"Page Hostname","type":"DATA_LAYER"},{"name":"Click Text","type":"DATA_LAYER"},{"name":"Referrer","type":"DATA_LAYER"},{"name":"Scroll Depth Units","type":"DATA_LAYER"}],"template":[{"name":"Tracking PageView","id":6,"type_id":4,"code":function(){window.admicro_analytics_q = window.admicro_analytics_q || []; window.admicro_analytics_q.push({event: "pageviews", domain: getParameter('domain'), id: +getParameter('domain_id')});},"code_load":function(){window['admicroAnalyticsObject']='admicro_analytics'; window['admicro_analytics']=window['admicro_analytics'] || function(){ (window['admicro_analytics_q'] = window['admicro_analytics_q'] || []).push(arguments); }; window['admicro_analytics'].t=1 * new Date(); var a = document.createElement("script"); a.type = "text/javascript"; a.async = !0; a.src = "//static.amcdn.vn/core/analytics.js"; var b = document.getElementsByTagName("script")[0]; b.parentNode.insertBefore(a, b);}},{"name":"Admicro Arf Banner","id":28,"type_id":14,"code":function(){console.log("Da gan arf core");},"code_load":function(){var a = document.createElement("script"); a.type = "text/javascript"; a.src = "https://static.amcdn.vn/tka/cdn.js"; var b = document.getElementsByTagName("script")[0]; b.parentNode.insertBefore(a, b); var c = document.createElement("script"); c.type = "text/javascript"; c.async = !0; c.id = "arf-core-js"; c.setAttribute("onerror","window.arferrorload=true;"); c.src = "//media1.admicro.vn/cms/Arf.min.js"; var d = document.getElementsByTagName("script")[0]; d.parentNode.insertBefore(c, d);}}]}; var s=window.location.search;if(s.indexOf("atm_preview")>0){var m=new RegExp("[?&]uid=([^&#]*)").exec(s);if(document.currentScript){var d=document.currentScript.src,w=document.getElementsByTagName("script")[0],g=document.createElement("script");d=d.replace("corejs","previewjs");var u=s.indexOf("atm_debug")>0?"debug":(new Date) * 1;return d=d.replace(".js",m[1]+".js?"+u),g.src=d,g.async=!0,void w.parentNode.insertBefore(g,w)}alert("Trinh duyet khong ho tro preview")}; /* @file postscribe * @description Asynchronously write javascript, even with document.write. * @version v2.0.8 * @see {@link https://krux.github.io/postscribe} * @license MIT * @author Derek Brans * @copyright 2016 Krux Digital, Inc */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["postscribe"]=e():t["postscribe"]=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={"exports":{},"id":n,"loaded":!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var o=r(1),i=n(o);t.exports=i["default"]},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(){}function a(){var t=m.shift();if(t){var e=h.last(t);e.afterDequeue(),t.stream=s.apply(void 0,t),e.afterStreamStart()}}function s(t,e,r){function n(t){t=r.beforeWrite(t),g.write(t),r.afterWrite(t)}g=new p["default"](t,r),g.id=y++,g.name=r.name||g.id,u.streams[g.name]=g;var o=t.ownerDocument,s={"close":o.close,"open":o.open,"write":o.write,"writeln":o.writeln};c(o,{"close":i,"open":i,"write":function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n(e.join(""))},"writeln":function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n(e.join("")+"\n")}});var l=g.win.onerror||i;return g.win.onerror=function(t,e,n){r.error({"msg":t+" - "+e+": "+n}),l.apply(g.win,[t,e,n])},g.write(e,function(){c(o,s),g.win.onerror=l,r.done(),g=null,a()}),g}function u(t,e,r){if(h.isFunction(r))r={"done":r};else if("clear"===r)return m=[],g=null,void(y=0);r=h.defaults(r,d),t=/^#/.test(t)?window.document.getElementById(t.substr(1)):t.jquery?t[0]:t;var n=[t,e,r];return t.postscribe={"cancel":function(){n.stream?n.stream.abort():n[1]=i}},r.beforeEnqueue(n),m.push(n),g||a(),t.postscribe}e.__esModule=!0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e["default"]=u;var l=r(2),p=o(l),f=r(4),h=n(f),d={"afterAsync":i,"afterDequeue":i,"afterStreamStart":i,"afterWrite":i,"autoFix":!0,"beforeEnqueue":i,"beforeWriteToken":function(t){return t},"beforeWrite":function(t){return t},"done":i,"error":function(t){throw new Error(t.msg)},"releaseAsync":!1},y=0,m=[],g=null;c(u,{"streams":{},"queue":m,"WriteStream":p["default"]})},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){var r=d+e,n=t.getAttribute(r);return f.existy(n)?String(n):n}function s(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=d+e;f.existy(r)&&""!==r?t.setAttribute(n,r):t.removeAttribute(n)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},c=r(3),l=o(c),p=r(4),f=n(p),h=!1,d="data-ps-",y="ps-style",m="ps-script",g=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t),this.root=e,this.options=r,this.doc=e.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new l["default"]("",{"autoFix":r.autoFix}),this.actuals=[e],this.proxyHistory="",this.proxyRoot=this.doc.createElement(e.nodeName),this.scriptStack=[],this.writeQueue=[],s(this.proxyRoot,"proxyof",0)}return t.prototype.write=function(){var t;for((t=this.writeQueue).push.apply(t,arguments);!this.deferredRemote&&this.writeQueue.length;){var e=this.writeQueue.shift();f.isFunction(e)?this._callFunction(e):this._writeImpl(e)}},t.prototype._callFunction=function(t){var e={"type":"function","value":t.name||t.toString()};this._onScriptStart(e),t.call(this.win,this.doc),this._onScriptDone(e)},t.prototype._writeImpl=function(t){this.parser.append(t);for(var e=void 0,r=void 0,n=void 0,o=[];(e=this.parser.readToken())&&!(r=f.isScript(e))&&!(n=f.isStyle(e));)e=this.options.beforeWriteToken(e),e&&o.push(e);o.length>0&&this._writeStaticTokens(o),r&&this._handleScriptToken(e),n&&this._handleStyleToken(e)},t.prototype._writeStaticTokens=function(t){var e=this._buildChunk(t);return e.actual?(e.html=this.proxyHistory+e.actual,this.proxyHistory+=e.proxy,this.proxyRoot.innerHTML=e.html,h&&(e.proxyInnerHTML=this.proxyRoot.innerHTML),this._walkChunk(),h&&(e.actualInnerHTML=this.root.innerHTML),e):null},t.prototype._buildChunk=function(t){for(var e=this.actuals.length,r=[],n=[],o=[],i=t.length,a=0;a<i;a++){var s=t[a],u=s.toString();if(r.push(u),s.attrs){if(!/^noscript$/i.test(s.tagName)){var c=e++;n.push(u.replace(/(\/?>)/," "+d+"id="+c+" $1")),s.attrs.id!==m&&s.attrs.id!==y&&o.push("atomicTag"===s.type?"":"<"+s.tagName+" "+d+"proxyof="+c+(s.unary?" />":">"))}}else n.push(u),o.push("endTag"===s.type?u:"")}return{"tokens":t,"raw":r.join(""),"actual":n.join(""),"proxy":o.join("")}},t.prototype._walkChunk=function(){for(var t=void 0,e=[this.proxyRoot];f.existy(t=e.shift());){var r=1===t.nodeType,n=r&&a(t,"proxyof");if(!n){r&&(this.actuals[a(t,"id")]=t,s(t,"id"));var o=t.parentNode&&a(t.parentNode,"proxyof");o&&this.actuals[o].appendChild(t)}e.unshift.apply(e,f.toArray(t.childNodes))}},t.prototype._handleScriptToken=function(t){var e=this,r=this.parser.clear();r&&this.writeQueue.unshift(r),t.src=t.attrs.src||t.attrs.SRC,t=this.options.beforeWriteToken(t),t&&(t.src&&this.scriptStack.length?this.deferredRemote=t:this._onScriptStart(t),this._writeScriptToken(t,function(){e._onScriptDone(t)}))},t.prototype._handleStyleToken=function(t){var e=this.parser.clear();e&&this.writeQueue.unshift(e),t.type=t.attrs.type||t.attrs.TYPE||"text/css",t=this.options.beforeWriteToken(t),t&&this._writeStyleToken(t),e&&this.write()},t.prototype._writeStyleToken=function(t){var e=this._buildStyle(t);this._insertCursor(e,y),t.content&&(e.styleSheet&&!e.sheet?e.styleSheet.cssText=t.content:e.appendChild(this.doc.createTextNode(t.content)))},t.prototype._buildStyle=function(t){var e=this.doc.createElement(t.tagName);return e.setAttribute("type",t.type),f.eachKey(t.attrs,function(t,r){e.setAttribute(t,r)}),e},t.prototype._insertCursor=function(t,e){this._writeImpl('<span id="'+e+'"/>');var r=this.doc.getElementById(e);r&&r.parentNode.replaceChild(t,r)},t.prototype._onScriptStart=function(t){t.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(t)},t.prototype._onScriptDone=function(t){return t!==this.scriptStack[0]?void this.options.error({"msg":"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,t.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},t.prototype._writeScriptToken=function(t,e){var r=this._buildScript(t),n=this._shouldRelease(r),o=this.options.afterAsync;t.src&&(r.src=t.src,this._scriptLoadHandler(r,n?o:function(){e(),o()}));try{this._insertCursor(r,m),r.src&&!n||e()}catch(t){this.options.error(t),e()}},t.prototype._buildScript=function(t){var e=this.doc.createElement(t.tagName);return f.eachKey(t.attrs,function(t,r){e.setAttribute(t,r)}),t.content&&(e.text=t.content),e},t.prototype._scriptLoadHandler=function(t,e){function r(){t=t.onload=t.onreadystatechange=t.onerror=null}function n(){r(),null!=e&&e(),e=null}function o(t){r(),a(t),null!=e&&e(),e=null}function i(t,e){var r=t["on"+e];null!=r&&(t["_on"+e]=r)}var a=this.options.error;i(t,"load"),i(t,"error"),u(t,{"onload":function(){if(t._onload)try{t._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){o({"msg":"onload handler failed "+e+" @ "+t.src})}n()},"onerror":function(){if(t._onerror)try{t._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){return void o({"msg":"onerror handler failed "+e+" @ "+t.src})}o({"msg":"remote script failed "+t.src})},"onreadystatechange":function(){/^(loaded|complete)$/.test(t.readyState)&&n()}})},t.prototype._shouldRelease=function(t){var e=/^script$/i.test(t.nodeName);return!e||!!(this.options.releaseAsync&&t.src&&t.hasAttribute("async"))},t}();e["default"]=g},function(t,e,r){!function(e,r){t.exports=r()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={"exports":{},"id":n,"loaded":!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var o=r(1),i=n(o);t.exports=i["default"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=r(2),s=o(a),u=r(3),c=o(u),l=r(6),p=n(l),f=r(5),h={"comment":/^<!--/,"endTag":/^<\//,"atomicTag":/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,"startTag":/^</,"chars":/^[^<]/},d=function(){function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t),this.stream=r;var o=!1,a={};for(var u in s)s.hasOwnProperty(u)&&(n.autoFix&&(a[u+"Fix"]=!0),o=o||a[u+"Fix"]);o?(this._readToken=(0,p["default"])(this,a,function(){return e._readTokenImpl()}),this._peekToken=(0,p["default"])(this,a,function(){return e._peekTokenImpl()})):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return t.prototype.append=function(t){this.stream+=t},t.prototype.prepend=function(t){this.stream=t+this.stream},t.prototype._readTokenImpl=function(){var t=this._peekTokenImpl();if(t)return this.stream=this.stream.slice(t.length),t},t.prototype._peekTokenImpl=function(){for(var t in h)if(h.hasOwnProperty(t)&&h[t].test(this.stream)){var e=c[t](this.stream);if(e)return"startTag"===e.type&&/script|style/i.test(e.tagName)?null:(e.text=this.stream.substr(0,e.length),e)}},t.prototype.peekToken=function(){return this._peekToken()},t.prototype.readToken=function(){return this._readToken()},t.prototype.readTokens=function(t){for(var e=void 0;e=this.readToken();)if(t[e.type]&&t[e.type](e)===!1)return},t.prototype.clear=function(){var t=this.stream;return this.stream="",t},t.prototype.rest=function(){return this.stream},t}();e["default"]=d,d.tokenToString=function(t){return t.toString()},d.escapeAttributes=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[r]=(0,f.escapeQuotes)(t[r],null));return e},d.supports=s;for(var y in s)s.hasOwnProperty(y)&&(d.browserHasFlaw=d.browserHasFlaw||!s[y]&&y)},function(t,e){"use strict";e.__esModule=!0;var r=!1,n=!1,o=window.document.createElement("div");try{var i="<P><I></P></I>";o.innerHTML=i,e.tagSoup=r=o.innerHTML!==i}catch(t){e.tagSoup=r=!1}try{o.innerHTML="<P><i><P></P></i></P>",e.selfClose=n=2===o.childNodes.length}catch(t){e.selfClose=n=!1}o=null,e.tagSoup=r,e.selfClose=n},function(t,e,r){"use strict";function n(t){var e=t.indexOf("-->");if(e>=0)return new c.CommentToken(t.substr(4,e-1),e+3)}function o(t){var e=t.indexOf("<");return new c.CharsToken(e>=0?e:t.length)}function i(t){var e=t.indexOf(">");if(e!==-1){var r=t.match(l.startTag);if(r){var n=function(){var t={},e={},n=r[2];return r[2].replace(l.attr,function(r,o){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(t[arguments[5]]="",e[arguments[5]]=!0):t[o]=arguments[2]||arguments[3]||arguments[4]||l.fillAttr.test(o)&&o||"":t[o]="",n=n.replace(r,"")}),{"v":new c.StartTagToken(r[1],r[0].length,t,e,(!!r[3]),n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===("undefined"==typeof n?"undefined":u(n)))return n.v}}}function a(t){var e=i(t);if(e){var r=t.slice(e.length);if(r.match(new RegExp("</\\s*"+e.tagName+"\\s*>","i"))){var n=r.match(new RegExp("([\\s\\S]*?)</\\s*"+e.tagName+"\\s*>","i"));if(n)return new c.AtomicTagToken(e.tagName,n[0].length+e.length,e.attrs,e.booleanAttrs,n[1])}}}function s(t){var e=t.match(l.endTag);if(e)return new c.EndTagToken(e[1],e[0].length)}e.__esModule=!0;var u="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};e.comment=n,e.chars=o,e.startTag=i,e.atomicTag=a,e.endTag=s;var c=r(4),l={"startTag":/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,"endTag":/^<\/([\-A-Za-z0-9_]+)[^>]*>/,"attr":/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,"fillAttr":/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0,e.EndTagToken=e.AtomicTagToken=e.StartTagToken=e.TagToken=e.CharsToken=e.CommentToken=e.Token=void 0;var o=r(5),i=(e.Token=function t(e,r){n(this,t),this.type=e,this.length=r,this.text=""},e.CommentToken=function(){function t(e,r){n(this,t),this.type="comment",this.length=r||(e?e.length:0),this.text="",this.content=e}return t.prototype.toString=function(){return"<!--"+this.content},t}(),e.CharsToken=function(){function t(e){n(this,t),this.type="chars",this.length=e,this.text=""}return t.prototype.toString=function(){return this.text},t}(),e.TagToken=function(){function t(e,r,o,i,a){n(this,t),this.type=e,this.length=o,this.text="",this.tagName=r,this.attrs=i,this.booleanAttrs=a,this.unary=!1,this.html5Unary=!1}return t.formatTag=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r="<"+t.tagName;for(var n in t.attrs)if(t.attrs.hasOwnProperty(n)){r+=" "+n;var i=t.attrs[n];"undefined"!=typeof t.booleanAttrs&&"undefined"!=typeof t.booleanAttrs[n]||(r+='="'+(0,o.escapeQuotes)(i)+'"')}return t.rest&&(r+=" "+t.rest),r+=t.unary&&!t.html5Unary?"/>":">",void 0!==e&&null!==e&&(r+=e+"</"+t.tagName+">"),r},t}());e.StartTagToken=function(){function t(e,r,o,i,a,s){n(this,t),this.type="startTag",this.length=r,this.text="",this.tagName=e,this.attrs=o,this.booleanAttrs=i,this.html5Unary=!1,this.unary=a,this.rest=s}return t.prototype.toString=function(){return i.formatTag(this)},t}(),e.AtomicTagToken=function(){function t(e,r,o,i,a){n(this,t),this.type="atomicTag",this.length=r,this.text="",this.tagName=e,this.attrs=o,this.booleanAttrs=i,this.unary=!1,this.html5Unary=!1,this.content=a}return t.prototype.toString=function(){return i.formatTag(this,this.content)},t}(),e.EndTagToken=function(){function t(e,r){n(this,t),this.type="endTag",this.length=r,this.text="",this.tagName=e}return t.prototype.toString=function(){return"</"+this.tagName+">"},t}()},function(t,e){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t?t.replace(/([^"]*)"/g,function(t,e){return/\\/.test(e)?e+'"':e+'\\"'}):e}e.__esModule=!0,e.escapeQuotes=r},function(t,e){"use strict";function r(t){return t&&"startTag"===t.type&&(t.unary=s.test(t.tagName)||t.unary,t.html5Unary=!/\/>$/.test(t.text)),t}function n(t,e){var n=t.stream,o=r(e());return t.stream=n,o}function o(t,e){var r=e.pop();t.prepend("</"+r.tagName+">")}function i(){var t=[];return t.last=function(){return this[this.length-1]},t.lastTagNameEq=function(t){var e=this.last();return e&&e.tagName&&e.tagName.toUpperCase()===t.toUpperCase()},t.containsTagName=function(t){for(var e,r=0;e=this[r];r++)if(e.tagName===t)return!0;return!1},t}function a(t,e,a){function s(){var e=n(t,a);e&&l[e.type]&&l[e.type](e)}var c=i(),l={"startTag":function(r){var n=r.tagName;"TR"===n.toUpperCase()&&c.lastTagNameEq("TABLE")?(t.prepend("<TBODY>"),s()):e.selfCloseFix&&u.test(n)&&c.containsTagName(n)?c.lastTagNameEq(n)?o(t,c):(t.prepend("</"+r.tagName+">"),s()):r.unary||c.push(r)},"endTag":function(r){var n=c.last();n?e.tagSoupFix&&!c.lastTagNameEq(r.tagName)?o(t,c):c.pop():e.tagSoupFix&&(a(),s())}};return function(){return s(),r(a())}}e.__esModule=!0,e["default"]=a;var s=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,u=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i}])})},function(t,e){"use strict";function r(t){return void 0!==t&&null!==t}function n(t){return"function"==typeof t}function o(t,e,r){var n=void 0,o=t&&t.length||0;for(n=0;n<o;n++)e.call(r,t[n],n)}function i(t,e,r){for(var n in t)t.hasOwnProperty(n)&&e.call(r,n,t[n])}function a(t,e){return t=t||{},i(e,function(e,n){r(t[e])||(t[e]=n)}),t}function s(t){try{return Array.prototype.slice.call(t)}catch(r){var e=function(){var e=[];return o(t,function(t){e.push(t)}),{"v":e}}();if("object"===("undefined"==typeof e?"undefined":f(e)))return e.v}}function u(t){return t[t.length-1]}function c(t,e){return!(!t||"startTag"!==t.type&&"atomicTag"!==t.type||!("tagName"in t))&&!!~t.tagName.toLowerCase().indexOf(e)}function l(t){return c(t,"script")}function p(t){return c(t,"style")}e.__esModule=!0;var f="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};e.existy=r,e.isFunction=n,e.each=o,e.eachKey=i,e.defaults=a,e.toArray=s,e.last=u,e.isTag=c,e.isScript=l,e.isStyle=p}])}); var _=Object.defineProperty;var L=(n,t,e)=>t in n?_(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var T=(n,t,e)=>(L(n,typeof t!="symbol"?t+"":t,e),e);(function(){"use strict";function noop(){}function run(n){return n()}function blank_object(){return Object.create(null)}function run_all(n){n.forEach(run)}function is_function(n){return typeof n=="function"}function safe_not_equal(n,t){return n!=n?t==t:n!==t||n&&typeof n=="object"||typeof n=="function"}function is_empty(n){return Object.keys(n).length===0}function detach(n){n.parentNode&&n.parentNode.removeChild(n)}function children(n){return Array.from(n.childNodes)}let current_component;function set_current_component(n){current_component=n}function get_current_component(){if(!current_component)throw new Error("Function called outside component initialization");return current_component}function onMount(n){get_current_component().$$.on_mount.push(n)}const dirty_components=[],binding_callbacks=[];let render_callbacks=[];const flush_callbacks=[],resolved_promise=Promise.resolve();let update_scheduled=!1;function schedule_update(){update_scheduled||(update_scheduled=!0,resolved_promise.then(flush))}function add_render_callback(n){render_callbacks.push(n)}const seen_callbacks=new Set;let flushidx=0;function flush(){if(flushidx!==0)return;const n=current_component;do{try{for(;flushidx<dirty_components.length;){const t=dirty_components[flushidx];flushidx++,set_current_component(t),update(t.$$)}}catch(t){throw dirty_components.length=0,flushidx=0,t}for(set_current_component(null),dirty_components.length=0,flushidx=0;binding_callbacks.length;)binding_callbacks.pop()();for(let t=0;t<render_callbacks.length;t+=1){const e=render_callbacks[t];seen_callbacks.has(e)||(seen_callbacks.add(e),e())}render_callbacks.length=0}while(dirty_components.length);for(;flush_callbacks.length;)flush_callbacks.pop()();update_scheduled=!1,seen_callbacks.clear(),set_current_component(n)}function update(n){if(n.fragment!==null){n.update(),run_all(n.before_update);const t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(add_render_callback)}}function flush_render_callbacks(n){const t=[],e=[];render_callbacks.forEach(r=>n.indexOf(r)===-1?t.push(r):e.push(r)),e.forEach(r=>r()),render_callbacks=t}const outroing=new Set;function transition_in(n,t){n&&n.i&&(outroing.delete(n),n.i(t))}function mount_component(n,t,e){const{fragment:r,after_update:i}=n.$$;r&&r.m(t,e),add_render_callback(()=>{const l=n.$$.on_mount.map(run).filter(is_function);n.$$.on_destroy?n.$$.on_destroy.push(...l):run_all(l),n.$$.on_mount=[]}),i.forEach(add_render_callback)}function destroy_component(n,t){const e=n.$$;e.fragment!==null&&(flush_render_callbacks(e.after_update),run_all(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function make_dirty(n,t){n.$$.dirty[0]===-1&&(dirty_components.push(n),schedule_update(),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}function init(n,t,e,r,i,l,s=null,c=[-1]){const o=current_component;set_current_component(n);const a=n.$$={fragment:null,ctx:[],props:l,update:noop,not_equal:i,bound:blank_object(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:blank_object(),dirty:c,skip_bound:!1,root:t.target||o.$$.root};s&&s(a.root);let f=!1;if(a.ctx=e?e(n,t.props||{},(g,h,...u)=>{const m=u.length?u[0]:h;return a.ctx&&i(a.ctx[g],a.ctx[g]=m)&&(!a.skip_bound&&a.bound[g]&&a.bound[g](m),f&&make_dirty(n,g)),h}):[],a.update(),f=!0,run_all(a.before_update),a.fragment=r?r(a.ctx):!1,t.target){if(t.hydrate){const g=children(t.target);a.fragment&&a.fragment.l(g),g.forEach(detach)}else a.fragment&&a.fragment.c();t.intro&&transition_in(n.$$.fragment),mount_component(n,t.target,t.anchor),flush()}set_current_component(o)}class SvelteComponent{constructor(){T(this,"$$");T(this,"$$set")}$destroy(){destroy_component(this,1),this.$destroy=noop}$on(t,e){if(!is_function(e))return noop;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const i=r.indexOf(e);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!is_empty(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const PUBLIC_VERSION="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(PUBLIC_VERSION);const utis={mergeObjects:function(){for(var n={},t=0;t<arguments.length;t++)for(let e in arguments[t])n[e]=arguments[t][e];return n},random:function(){return"_"+(Math.random()+Date.now()*1).toString(36).replace(".","")},strToUni:function(n){if(n===""||n===void 0||n===null)return n;var t=n;t=t.toLowerCase(),t=t.replace(/\à|\á|\ạ|\ả|\ã|\â|\ầ|\ấ|\ậ|\ẩ|\ẫ|\ă|\ằ|\ắ|\ặ|\ẳ|\ẵ/g,"a"),t=t.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e"),t=t.replace(/ì|í|ị|ỉ|ĩ/g,"i"),t=t.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o"),t=t.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,"u"),t=t.replace(/ỳ|ý|ỵ|ỷ|ỹ/g,"y"),t=t.replace(/đ/g,"d"),t=t.replace(/!|@|%|\^|\*|\(|\)|\+|\=|\<|\>|\?|\/|,|\.|\:|\;|\'|\"|\&|\#|\[|\]|~|\$|_|`|-|{|}|\||\\/g," "),t=t.replace(/ + /g," "),t=t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");for(var e=t.replace(/[^a-zA-Z ]/g,"").split(" "),r=e.length,i=0;i<r;i++)i===0?e[i]=e[i].toLowerCase():e[i]=e[i].charAt(0).toUpperCase()+e[i].slice(1).toLowerCase();return e.join("")},getCookie:function(n){if(document.cookie){n=n+"=";let r=document.cookie.split("; ");if(r.length)for(var t=0;t<r.length;t++){var e=r[t].replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");if(e.indexOf(n)===0)return e.substring(n.length,e.length)}}},getCustomDataLayer:function(str){try{var d="atm.dataLayer."+str;return eval(d)}catch(n){this.error(n);return}},getFromBetween:{results:[],string:"",getFromBetween:function(n,t){if(this.string.indexOf(n)<0||this.string.indexOf(t)<0)return!1;var e=this.string.indexOf(n)+n.length,r=this.string.substr(0,e),i=this.string.substr(e),l=r.length+i.indexOf(t);return this.string.substring(e,l)},removeFromBetween:function(n,t){if(this.string.indexOf(n)<0||this.string.indexOf(t)<0)return!1;var e=n+this.getFromBetween(n,t)+t;this.string=this.string.replace(e,"")},getAllResults:function(n,t){if(!(this.string.indexOf(n)<0||this.string.indexOf(t)<0)){var e=this.getFromBetween(n,t);if(this.results.push(e),this.removeFromBetween(n,t),this.string.indexOf(n)>-1&&this.string.indexOf(t)>-1)this.getAllResults(n,t);else return}},get:function(n,t,e){return this.results=[],this.string=n,n===null||n===""||n===void 0?n:(this.getAllResults(t,e),this.results)}},getSettingValue:function(n,t){for(var e=0;e<n.length;e++)if(n[e].key===t)return n[e].value},getUA:function(){var n=navigator.userAgent,t,e=n.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(e[1])?(t=/\brv[ :]+(\d+)/g.exec(n)||[],"IE "+(t[1]||"")):e[1]==="Chrome"&&(t=n.match(/\b(OPR|Edge)\/(\d+)/),t!=null)?t.slice(1).join(" ").replace("OPR","Opera"):(e=e[2]?[e[1],e[2]]:[navigator.appName,navigator.appVersion,"-?"],(t=n.match(/version\/(\d+)/i))!=null&&e.splice(1,1,t[1]),e.join(" "))},sendLog:function(n,t){},errorType:{element:function(n){return console.error("Error at clicked element"),n.target||void 0},rule:function(n){return console.error("Error at trigger's rule"),JSON.stringify(n)},variable:function(n){return console.error("Error at variables"),n},code:function(n){return console.error("Error at template code"),n.toString()},custom:function(n){return console.error("Error at custom code"),n},customevent:function(n){return console.error("Error at custom event"),JSON.stringify(n)},d:function(n){return console.error("Loi tag manager"),n}},error:function(n,t,e){this.errorType[t]?this.sendLog(n,this.errorType[t](e)):this.sendLog(n,this.errorType.d(e)),window.atmError.push({message:n.message,stack:n.stack,error:n})},checkIndex:function(n,t){if(!n.length)return-1;if(Array.prototype.indexOf)return n.indexOf(t);for(var e=n.length,r=0;r<e;r++)if(n[r]===t)return r;return-1},getUrlParam:function(n){for(var t=window.location.search.substring(1)||"",e=t.split("&"),r=e.length,i=0;i<r;i++)if(e[i].indexOf(n)===0)return decodeURI(e[i].split("=")[1])||"";return null},dupArr:function(n){for(var t=[],e=0;e<n.length;e++)t[e]=n[e];return t}};function clickEvent(n,t){try{const e=n.target||n.srcElement;if(!e)return;t.eventList.clickClasses=e.className?e.className:"",t.eventList.clickElement=e||void 0,t.eventList.clickText=e.innerText&&e.innerText.match(/\s{2,}/gm)==null?e.innerText:"",t.eventList.clickId=e.id?e.id:"",t.eventList.clickUrl=e.href?e.href:"",t.eventList.target=e.target?e.target:"_self",t.dataLayerPush()}catch(e){utis.error(e)}}function getElementInfo(n,t){try{t.eventList.clickClasses=n.className||"",t.eventList.clickElement=n,t.eventList.clickText=n.innerText&&n.innerText.match(/\s{2,}/gm)==null?n.innerText:"",t.eventList.clickId=n.id||"",t.eventList.clickUrl=n.href||"",t.eventList.target=n.target||"",t.dataLayerPush()}catch(e){utis.error(e)}}function customEventTrigger(n){let t=!0;for(let r=0;r<n.triggers.length&&t;r++)if(utis.getSettingValue(n.triggers[r].setting,"usePostmessage")==="true"){let i=function(l){if(typeof l.data=="object"&&typeof l.data.event<"u"){const s=n.getVariable("{{Event Prefix}}","TEXT");s&&(l.data.event.indexOf(s)>=0||l.data.event.indexOf("atm.")>=0)&&window.atmDataLayer.push({event:l.data.event,data:l.data,time:Date.now()*1})}};t=!1,window.addEventListener("message",i,!1)}const e=function(r,i){r.push=function(l){Array.prototype.push.call(r,l),i(l)}};n.dataLayer.customEvent=[];try{e(window.atmDataLayer,function(r){window.atmCustomEventData=r,n.checkTrigger(n.customEvents)})}catch(r){utis.error(r,"customevent",window.atmDataLayer)}}function checkCustomEventSetting(n,t){const e=n.setting;return t.getVariable(e[0].value,"TEXT")===window.atmCustomEventData.event}function observeHistoryChange(n,t,e){const r=e,i=window.history.replaceState,l=window.history.pushState,s=window.onpopstate,c=function(o,a,f){r.atmDataLayerPush({event:"atm.historyChange",time:Date.now()*1,oldFragment:a.eventList.newFragment||void 0,newFragment:f.newFragment||void 0,newState:o,oldState:a.eventList.newState||void 0}),a.eventList.newUrl=f.newUrl||window.location||void 0,a.eventList.oldUrl=f.oldUrl||a.eventList.newUrl||void 0,a.eventList.oldFragment=a.eventList.newFragment||void 0,a.eventList.newFragment=f.newFragment||void 0,a.eventList.oldState=a.eventList.newState||void 0,a.eventList.newState=o,a.dataLayerPush(),a.checkTrigger(a.historyChanges)};window.history.replaceState=function(){const o={oldUrl:window.location.href,newUrl:arguments[2]};i.apply(window.history,arguments),c("replaceState",r,o)},window.history.pushState=function(){const o={oldUrl:window.location.href,newUrl:arguments[2]};l.apply(window.history,arguments),c("pushState",r,o)},window.onpopstate=function(){c("popState",r,{newFragment:window.location.hash.substring(1)}),typeof s=="function"&&s()}}function checkScrollThreshold(n,t){const e=document.documentElement||document.scrollingElement||document.body||document.getElementsByTagName("body")[0],r=n.setting;let i=e.scrollHeight,l=e.scrollWidth,s=[],c=[];function o(a,f,g,h){let u=utis.getSettingValue(a,f),m=[];if(u!==null&&u!=="")try{if(u=t.getVariable(u,"TEXT").replace(/([^\d\,])/g,"").split(","),typeof u=="object"){const p=[];for(let E=0;E<u.length;E++)p.push(g?Math.round(h*+u[E]/100):Number(u[E]));m=p}return m}catch(p){t.error(p)}}r.length&&(utis.getSettingValue(r,t.config.VERTICAL_SCROLL_DEPTH)==="true"&&(s=o(r,t.config.VERTICAL_PERCENT,!0,i)||o(r,t.config.VERTICAL_PIXEL,!1,i)),utis.getSettingValue(r,t.config.HORIZONTAL_SCROLL_DEPTH)==="true"&&(c=o(r,t.config.HORIZONTAL_PERCENT,!0,l)||o(r,t.config.HORIZONTAL_PIXEL,!1,l))),t.dataLayer.event.scrollDepth[n.id]=[s,c]}function checkScrollDepthSetting(n,t){const e=document.documentElement||document.scrollingElement||document.getElementsByTagName("body")[0],r=e.scrollTop,i=e.clientHeight,l=e.scrollLeft,s=e.clientWidth,c=t.dataLayer.event.scrollDepth?t.dataLayer.event.scrollDepth[n.id].slice():[];function o(a,f,g){const h=[];for(let u=0;u<a.length;u++)a[u]<f?(t.atmDataLayerPush({event:"atm.scrollDepth",time:Date.now()*1,scrollThreshold:a[u],scrollDirection:g}),t.runTagWithTriggerId(n.id)):h.push(a[u]);return h}try{t.dataLayer.event.scrollDepth[n.id][0]=o(c[0],r+i,"vertical"),t.dataLayer.event.scrollDepth[n.id][1]=o(c[1],l+s,"horizontal")}catch(a){utis.error(a)}return!1}function checkTimeLoadSetting(n){let t=n.setting,e=this,r,i,l,s,c;for(let a=0;a<t.length;a++)t[a].key==="eventName"&&(r=this.getVariable(t[a].value,"TEXT")),t[a].key==="interval"&&(i=Number(this.getVariable(t[a].value,"TEXT"))),t[a].key==="limit"&&(t[a].value!==null?(t[a].value=this.getVariable(t[a].value,"TEXT"),l=Number(t[a].value),s=Number(t[a].value)):(l=1e9,s=1e9));if(typeof i!="number"||typeof l!="number")return!1;let o=Date.now()*1;return c=setInterval(function(){s===0?clearInterval(c):(e.atmDataLayerPush({event:r,timerCurrentTime:Date.now()*1,timerStartTime:o,timerInterval:i,timerLimit:l,timerEventNumber:l-s+1,timerElapsedTime:Date.now()*1-o,timerId:c}),e.runTagWithTriggerId(n.id),s--)},i),!1}function checkLinkClickSetting(n,t){let e=0,r=n.setting;return utis.getSettingValue(r,t.config.WAIT_FOR_TAG)==="true"&&(e=Number(utis.getSettingValue(r,t.config.TIME_WAIT))),t.dataLayer.event.linkClick.isOpen=!1,e!=0?e=Date.now()*1+e:e=0,t.dataLayer.event.linkClick.timeWait=t.dataLayer.event.linkClick.timeWait?t.dataLayer.event.linkClick.timeWait<e?e:t.dataLayer.event.linkClick.timeWait:e,!0}function javascriptErrorTrigger(n,t){const e=t,r=window.onerror;function i(l,s,c,o,a){for(let f=0;f<n.length;f++)e.atmDataLayerPush({event:"atm.javascriptError",time:Date.now()*1,errorMessage:l,errorLine:c,errorSource:s,error:a,errorCol:o}),e.checkTriggerRule(n[f])&&e.runTagWithTriggerId(n[f].id),e.dataLayerPush();return!0}window.addEventListener?window.addEventListener("error",function(l,s,c,o,a){i(l,s,c,o,a)}):window.onerror=function(l,s,c,o,a){i(l,s,c,o,a),typeof r=="function"&&r(l,s,c,o,a)}}window.atmDataLayer=window.atmDataLayer||[],window.atmVariables=window.atmVariables||[],window.atmDataLayer.length===0&&window.atmDataLayer.push({"atm.start":Date.now()*1,event:"atm.js",id:0});let paramTemp=[];utis.random();const atmTriggers={},atmTags={},atmTemplates={},atmCodeLoad={};class Atm{constructor(){this.data={},this.dataLayer={},this.tagsFired=[],this.eventList={},this.doms=[],this.pageView=[],this.pvWithRule=[],this.pvNoRule=[],this.windowLoaded=[],this.clickElements=[],this.customEvents=[],this.scrollElements=[],this.historyChanges=[],this.javascriptError=[],this.elementVisibility=[],this.justLink=[],this.timeLoad=[],this.variableData={},this.params=[],this.codeLoaded=[],this.triggers={},this.tags={},this.variables={},this.templates={},this.config={DOCUMENT_WRITE:"useDocumentWrite",RESTART:"canBeRestarted",IS_RAN:"isRan",VERTICAL_SCROLL_DEPTH:"verticalScrollDepths",VERTICAL_PERCENT:"verticalPercentages",VERTICAL_PIXEL:"verticalPixels",HORIZONTAL_SCROLL_DEPTH:"horizontalScrollDepths",HORIZONTAL_PERCENT:"horizontalPercentages",HORIZONTAL_PIXEL:"horizontalPixels",ID:"id",CLASS:"class",TIMES:"times",PERCENT_VISIBLE:"percentVisible",ONSCREEN_DURATION:"onscreenDuration",OBSERVE_DOM_CHANGE:"observeDomChange",WAIT_FOR_TAG:"waitForTag",TIME_WAIT:"timeWait",DEFAULT:"default"},this.setVariableType={STRING:function(t,e){t.variableData[t.variables[e].name]=typeof t.variables[e].value=="string"?t.variables[e].value:""},DATA_LAYER:function(t,e){const r=utis.strToUni(t.variables[e].name);t.variableData[t.variables[e].name]=t.dataLayer[t.config.DEFAULT].hasOwnProperty(r)?t.dataLayer[t.config.DEFAULT][r]:""},CUSTOM_DATALAYER:function(t,e){t.variableData[t.variables[e].name]=t.getCustomDataLayer(t.variables[e].value)||""},DOM_TEXT:function(t,e){t.variableData[t.variables[e].name]=document.getElementById(t.variables[e].value)},COOKIE_VALUE:function(t,e){t.variableData[t.variables[e].name]=utis.getCookie(t.variables[e].value)||""},ARRAY:function(t,e){try{t.variableData[t.variables[e].name]=new Function("return "+t.variables[e].value)()||""}catch(r){t.variableData[t.variables[e].name]=[],utis.error(r,"variable",t.variables[e].value)}},URL_QUERY:function(t,e){t.variableData[t.variables[e].name]=utis.getUrlParam(t.variables[e].value)||""},JAVASCRIPT_VARIABLE:function(t,e){try{t.variableData[t.variables[e].name]=new Function("return "+t.variables[e].value)()||void 0}catch{t.variableData[t.variables[e].name]=void 0}},Datalayer:function(t,e){}},this.checkRuleFunction={CONTAINS:function(e,r){return typeof e=="string"?e.indexOf(r)>-1:utis.checkIndex(e,r)>-1},DOES_NOT_CONTAINS:function(e,r){return typeof e=="string"?e.indexOf(r)==-1:utis.checkIndex(e,r)==-1},EQUALS:function(e,r){return e==r},DOES_NOT_EQUALS:function(e,r){return e!=r},STARTS_WITH:function(e,r){return typeof e=="string"?e.indexOf(r)==0:e.length?e[0]==r:!1},DOES_NOT_START_WITH:function(e,r){return typeof e=="string"?e.indexOf(r)!=0:e.length?e[0]!=r:!1},ENDS_WITH:function(e,r){return typeof e=="string"?e.indexOf(r)+r.length==e.length:e.length?e[e.length-1]==r:!1},DOES_NOT_END_WITH:function(e,r){return typeof e=="string"?e.indexOf(r)+r.length!=e.length:e.length?e[e.length-1]!=r:!1},LESS_THAN:function(e,r){return e=Number(e),r=Number(r),isNaN(e)||isNaN(r)?!1:e<r},LESS_OR_EQUAL:function(e,r){return e=Number(e),r=Number(r),isNaN(e)||isNaN(r)?!1:e<=r},GREATER_THAN:function(e,r){return e=Number(e),r=Number(r),isNaN(e)||isNaN(r)?!1:e>r},GREATER_OR_EQUAL:function(e,r){return e=Number(e),r=Number(r),isNaN(e)||isNaN(r)?!1:e>=r},IS_EXISTS:function(e,r,i){if(i==="Has Element ID")return document.getElementById(r)!==null;if(i==="Has Cookie")return utis.getCookie(r)!==void 0},MATCH_CSS_SELECTOR:function(e,r){if(!document.querySelectorAll)return!1;const i=document.querySelectorAll(r),l=i.length;if(!l||!e)return!1;for(let s=0;s<l;s++)if(i[s]==e)return!0;return!1},DOES_NOT_MATCH_CSS_SELECTOR:function(e,r){if(!document.querySelectorAll)return!1;const i=document.querySelectorAll(r),l=i.length;let s=0;if(!l||!e)return!1;for(let c=0;c<l;c++)i[c]==e&&s++;return!s},MATCH_REGEX:function(e,r){return r=RegExp(r,"g"),typeof e=="string"?e.match(r)!==null:!1},MATCH_REGEX_IGNORE_CASE:function(e,r){return r=RegExp(r,"gi"),typeof e=="string"?e.match(r)!==null:!1},DOES_NOT_MATCH_REGEX:function(e,r){return r=RegExp(r,"g"),typeof e=="string"?e.match(r)===null:!1},err:function(){return!1}},this.triggerClassify={PAGE_VIEW:function(t,e){t.triggers[e].rule.length?(t.pvWithRule.push(t.triggers[e]),t.pageView.push(t.triggers[e])):(t.pvNoRule.push(t.triggers[e].id),t.pageView.unshift(t.triggers[e]))},DOM_READY:function(t,e){t.doms.push(t.triggers[e])},WINDOW_LOADED:function(t,e){t.windowLoaded.push(t.triggers[e])},CLICK_ELEMENT:function(t,e){t.clickElements.push(t.triggers[e])},SCROLL_DEPTHS:function(t,e){t.scrollElements.push(t.triggers[e])},HISTORY_CHANGE:function(t,e){t.historyChanges.push(t.triggers[e])},JAVASCRIPT_ERROR:function(t,e){t.javascriptError.push(t.triggers[e])},ELEMENT_VISIBILITY:function(t,e){t.elementVisibility.push(t.triggers[e])},LINK_CLICK:function(t,e){t.justLink.push(t.triggers[e])},CUSTOM_EVENT:function(t,e){t.customEvents.push(t.triggers[e])},TIME_LOAD:function(t,e){t.timeLoad.push(t.triggers[e])},err:function(){}}}init(){let t,e=this,r=!1,i=!1,l=!1;function s(u){t&&window.clearTimeout(t),t=window.setTimeout(function(){e.checkTrigger(e.scrollElements)},100)}function c(u,m,p){u.addEventListener(m,p,!1)}function o(u,m,p){u.removeEventListener(m,p,!1)}document.getElementsByTagName("body")[0]&&(this.checkTrigger(this.pageView,"custom"),l=!0),this.timeLoad.length&&this.checkTrigger(this.timeLoad);function a(){return r||(r=!0,l||e.checkTrigger(e.pageView,"custom"),e.atmDataLayerPush({event:"atm.domReady",time:Date.now()*1}),e.checkTrigger(e.doms)),o(document,"DOMContentLoaded",a),o(document,"readystatechange",g),!0}function f(){o(document,"DOMContentLoaded",a),o(window,"load",f),i||(i=!0,e.atmDataLayerPush({event:"atm.windowLoaded",time:Date.now()*1}),e.windowLoaded.length&&e.checkTrigger(e.windowLoaded));const u=e.scrollElements.length;if(u){for(let m=0;m<u;m++)checkScrollThreshold(e.scrollElements[m],e);document.addEventListener("scroll",s),window.scrollTo(window.scrollX,window.scrollY+1)}}function g(){document.readyState==="interactive"&&(a(),o(document,"DOMContentLoaded",a),o(document,"readystatechange",g)),document.readyState==="complete"&&(o(document,"DOMContentLoaded",a),o(window,"load",f),a(),f())}c(document,"readystatechange",g),c(document,"DOMContentLoaded",a),c(window,"load",function(){a(),f()}),document.readyState==="interactive"&&a(),document.readyState==="complete"&&(a(),f()),(this.clickElements.length||this.justLink.length)&&c(document,"mouseup",function(u){if(clickEvent(u,e),e.atmDataLayerPush({event:"atm.click",time:Date.now()*1,element:u.target||u.srcElement,elementClasses:(u.target||u.srcElement).className,elementId:(u.target||u.srcElement).id,elementUrl:(u.target||u.srcElement).href||"",elementTarget:(u.target||u.srcElement).target}),e.clickElements.length&&e.checkTrigger(e.clickElements),e.justLink.length)try{return u.button!==2&&h(u.target||u.srcElement),!0}catch(m){utis.error(m,"element",u)}});function h(u){u&&(u.tagName==="A"&&u.href?u.href!=="javascript:void(0)"&&u.href!=="javascript:;"&&u.href!=="javascript:void(0);"&&(getElementInfo(u,e),e.atmDataLayerPush({event:"atm.linkClick",time:Date.now()*1,element:u,elementClasses:u.className,elementId:u.id,elementUrl:u.href||"",elementTarget:u.target}),e.dataLayer.event.linkClick={href:u.href,target:u.target||"_self",triggerTime:Date.now()*1-100},e.checkTrigger(e.justLink)):u.parentElement&&h(u.parentElement))}this.historyChanges.length&&observeHistoryChange(this.getHistoryChange,this.historyChanges,this),this.javascriptError.length&&javascriptErrorTrigger(this.javascriptError,this),this.customEvents.length&&customEventTrigger(this)}getScrollPercent(t){const e=document.documentElement||document.scrollingElement||document.getElementsByTagName("body")[0],r=e.scrollTop,i=e.scrollHeight,l=e.scrollLeft,s=e.scrollWidth,c=Math.floor(r/i*100),o=Math.floor(l/s*100);return t?c:o}atmDataLayerPush(t){t.id=window.atmDataLayer.length;const e=utis.mergeObjects({},this.variableData);window.atmVariables.push(e),window.atmDataLayer.push(t),this.dataLayerPush()}isMobile(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}setVariable(){const t=this.variables.length;if(t)for(let e=0;e<t;e++)this.setVariableType[this.variables[e].type]&&this.setVariableType[this.variables[e].type](this,e)}dataLayerPush(){this.dataLayer.attributes={pixel:10},this.dataLayer.event=this.dataLayer.event||{},this.dataLayer.event.scrollDepth=this.dataLayer.event.scrollDepth||{},this.eventList.device=this.isMobile()?"mobile":"pc",this.eventList.referer=document.referrer||"",this.eventList.pageUrl=window.location.href||"",this.eventList.pagePath=window.location.pathname||"",this.eventList.pageHostname=window.location.hostname||"",this.eventList.scrollDepthUnits=this.getScrollPercent(1),this.dataLayer[this.config.DEFAULT]=this.eventList||[],this.setVariable()}checkTagOption(){this.dataLayer.tagOption={};for(let t=0;t<this.tags.length;t++){this.dataLayer.tagOption[this.tags[t].id]={};for(let e=0;e<this.tags[t].option.length;e++)this.dataLayer.tagOption[this.tags[t].id][this.tags[t].option[e].key]=this.tags[t].option[e].value==="true"?!0:this.tags[t].option[e].value==="false"?!1:this.tags[t].option[e].value}}runCode(t,e,r){let i=e;if(r){paramTemp=JSON.parse(JSON.stringify(r));const l=paramTemp.length;if(l){for(let s=0;s<l;s++)paramTemp[s].value=this.getVariable(paramTemp[s].value,paramTemp[s].type);i&&i(),paramTemp=[]}}else{i.indexOf("%")>0&&(i=i.replace(/%/g,"%25"));const l=decodeURIComponent(this.getVariable(i,"TEXT"));let s;if(document.getElementsByTagName("body")[0]){t?(s=document.createElement("div"),s.style.visibility="hidden",s.style.display="none",document.getElementsByTagName("body")[0].appendChild(s)):s=document.getElementsByTagName("body")[0];try{postscribe(s,l)}catch(c){utis.error(c,"custom",l)}}}}checkTrigger(t,e){const r=t.length;if(r)for(let i=0;i<r;i++)this.checkTriggerRule(t[i])&&t[i].isEnabled&&this.checkTriggerSetting(t[i])&&this.runTagWithTriggerId(t[i].id,e)}checkTriggerRule(t,e,r){const i=e?"autoSettingRule":"rule";if(t[i].length){let l=0,s=t[i],c=s.length;if(c){for(let o=0;o<c;o++)for(const a in this.variableData)if(s[o].variable_name===a){let f;try{f=this.checkRule(s[o].operator,s[o].value,this.variableData[a],s[o].variable_name),l=f?l+1:l}catch(g){const h=[s[o].operator,s[o].value,this.variableData[a],s[o].variable_name];utis.error(g,"rule",h)}}}return l===s.length?(e&&(this.triggers[r].isEnabled=!0),!0):(e&&(this.triggers[r].isEnabled=!1),!1)}else return e&&(this.triggers[r].isEnabled=!0),!0}checkTriggerSetting(t){const e=t.type_name;return e==="PAGE_VIEW"||e==="DOM_READY"||e==="WINDOW_LOADED"||e==="CLICK_ELEMENT"||e==="HISTORY_CHANGE"?!0:e==="LINK_CLICK"?checkLinkClickSetting(t,this):e==="SCROLL_DEPTHS"?checkScrollDepthSetting(t,this):e==="CUSTOM_EVENT"?checkCustomEventSetting(t,this):e==="TIME_LOAD"?checkTimeLoadSetting(t):!1}runTagWithTriggerId(t,e,r){const i=atmTriggers[t];if(i){const l=i.length;for(let s=0;s<l;s++){const c=[],o=i[s],a=atmTags[o],f=r||this.dataLayer.tagOption[o];if(r||f[this.config.RESTART]||!f[this.config.RESTART]&&utis.checkIndex(this.tagsFired,o)<0){if(a.templateId!==0&&e!=="custom"){const h=atmTemplates[a.templateId].code,u=atmCodeLoad[atmTemplates[a.templateId].type_id];u(),r?this.runCode(!1,h,a.parameter):this.runCode(f[this.config.DOCUMENT_WRITE],h,a.parameter),c.push(o),this.tagsFired.push(o)}else if(a.templateId===0&&e!=="template"){const h=a.code;this.runCode(f[this.config.DOCUMENT_WRITE],h),c.push(o),this.tagsFired.push(o)}}c.length&&(window.atmDataLayer[window.atmDataLayer.length-1].tagID=window.atmDataLayer[window.atmDataLayer.length-1].tagID||[],window.atmDataLayer[window.atmDataLayer.length-1].tagID=window.atmDataLayer[window.atmDataLayer.length-1].tagID.concat(c))}}}checkRule(t,e,r,i){return r=r||"",e=e||"",typeof r=="number"&&(r=r.toString()),this.checkRuleFunction[t]&&this.checkRuleFunction[t](r,e,i)||!1}getVariable(t,e){let r=t,i=[];if(r===""||r===void 0||r===null)return 0;if(typeof r=="string"&&(i=utis.getFromBetween.get(r,"{{","}}")),i.length===0&&e==="TEXT")return r;if(i.length===0&&e==="INTEGER")return parseFloat(r)!==NaN?parseFloat(r):r;const l=i.length;if(l)for(let s=0;s<l;s++)typeof r=="string"&&(r=r.replace("{{"+i[s]+"}}",this.variableData[i[s]])),typeof this.variableData[i[s]]=="object"&&(r=this.variableData[i[s]]);if(i=[],e==="TEXT"||e==="OBJECT")return r;if(e==="INTEGER")return parseFloat(r)!==NaN?parseFloat(r):r}setData(t){this.triggers=t.trigger,this.tags=t.tag,this.variables=t.variable,this.templates=t.template,window.previewTags=this.tags,window.triggersList=this.triggers;const e=this.templates.length,r=this.tags.length,i=this.triggers.length,l=Math.max(e,r,i);for(let s=0;s<l;s++){if(s<e){const c=this.templates[s],o=c.id;atmTemplates[o]={},atmTemplates[o].code=c.code,atmTemplates[o].type_id=c.type_id,atmCodeLoad[c.type_id]=c.code_load}if(s<i&&this.triggerClassify[this.triggers[s].type_name]&&this.triggerClassify[this.triggers[s].type_name](this,s),s<r){const c=this.tags[s],o=c.id;atmTags[o]={},atmTags[o].templateId=c.template_id,atmTags[o].code=c.code,atmTags[o].parameter=c.parameter,atmTags[o].option=c.option;const a=c.firing.length;for(let f=0;f<a;f++)atmTriggers[c.firing[f]]=atmTriggers[c.firing[f]]||[],c.template_id==2?atmTriggers[c.firing[f]].unshift(o):atmTriggers[c.firing[f]].push(o)}}}checkAutoSettingRule(){const t=this.triggers.length;if(t)for(let e=0;e<t;e++)this.checkTriggerRule(this.triggers[e],!0,e)}runTriggerPageview(){window.atmError=window.atmError||[],this.dataLayerPush(),this.atmDataLayerPush({event:"atm.pageView",time:Date.now()*1});const t=this.pvNoRule,e=t.length;for(let r=0;r<e;r++)this.runTagWithTriggerId(t[r],"template",!0);this.checkAutoSettingRule(),this.checkTagOption(),this.checkTrigger(this.pvWithRule,"template")}}var getParameter=function(n,t){var e=utis.getSettingValue(paramTemp,n);return t==="true"?e?e=e+".":e="":t==="false"&&(e?e=e:e=""),e};window.getParameter=getParameter;function instance(n){const t=new Atm;return t.setData(AdmicroTagManagerData),t.runTriggerPageview(),onMount(()=>{t.init()}),[]}class App extends SvelteComponent{constructor(t){super(),init(this,t,instance,null,safe_not_equal,{})}}new App({target:document.querySelector("head")})})(); })(); |