(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;r2&&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;e1&&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)/," "+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('');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":/^");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("","i"))){var n=r.match(new RegExp("([\\s\\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"