static/js/aplus_v2.js (1,219 lines of code) (raw):

/* @license v8.15.21,8.15.22,1 2024-01-25 17:04:06 */ !(function e(t, n, a) { function r(i, s) { if (!n[i]) { if (!t[i]) { var u = 'function' == typeof require && require; if (!s && u) return u(i, !0); if (o) return o(i, !0); throw new Error("Cannot find module '" + i + "'"); } var l = (n[i] = { exports: {}, }); t[i][0].call( l.exports, function (e) { var n = t[i][1][e]; return r(n ? n : e); }, l, l.exports, e, t, n, a ); } return n[i].exports; } for ( var o = 'function' == typeof require && require, i = 0; i < a.length; i++ ) r(a[i]); return r; })( { 1: [ function (e, t, n) { 'use strict'; function a(e) { var t = /AliApp|Yunos|cyclone/i.test(e), n = /iPhone|iPad|iPod/i.test(e), a = /Android/i.test(e), r = /Windows Phone/i.test(e) || /IEMobile/i.test(e) || /WPDesktop/i.test(e), o = /BlackBerry/i.test(e), i = /Opera Mini/i.test(e); return t || n || a || r || o || i; } function r(e, t) { return e && e.getAttribute ? e.getAttribute(t) || '' : ''; } function o(e) { return ( (s = s || document.getElementsByTagName('head')[0]), u && !e ? u : s ? (u = s.getElementsByTagName('meta')) : [] ); } function i(e, t) { var n; if (document.querySelector) { var a = document.querySelector('meta[name="' + e + '"]'); n = r(a, t || 'content'); } else for (var i = o(), s = i.length, u = 0; s > u; u++) { var l = i[u]; r(l, 'name') === e && (n = r(l, t || 'content')); } return n || ''; } var s, u, l = e('@ali/grey-publish').util; (n.getArgsQuery = function (e) { var t = window.location.search && window.location.search.length > 0 ? window.location.search.substring(1) : '', n = t.length > 0 ? t.split('&') : [], a = {}; return ( n.forEach(function (e) { var t = e.split('=')[0], n = e.split('=')[1]; a[t] = n; }), e ? a[e] : a ); }), (n.addScript = function (e, t) { var n = e, a = /^http(s)?:/; (n = a.test(e) ? n.replace(a, location.protocol) : location.protocol + (/^\/\//.test(n) ? '' : '//') + n), l.addScript(n, function () { 'function' == typeof t && t(); }); }), (n.tryToGetAttribute = r), (n.getMetaTags = o), (n.getMetaCnt = i), (n.indexof = function (e, t) { for (var n = 0; n < e.length; n++) if (e[n] === t) return n; return -1; }); var c = function (e, t) { return (e += ''), e.length < t && (e = '0' + e), e; }; (n.getDateMin = function () { var e = new Date(), t = ''; return ( (t += e.getFullYear()), (t += c(e.getMonth() + 1, 2)), (t += c(e.getDate(), 2)), (t += c(e.getHours(), 2)), (t += c(e.getMinutes(), 2)) ); }), (n.isMobile = a); var g = function () { var e; try { e = document.getElementById('beacon-aplus') || document.getElementById('tb-beacon-aplus'); } catch (t) {} return e; }; (n.getCurrentNode = g), (n.loopAddScript = function (e, t) { try { if (t && t instanceof Array) { var n = 0, a = function (r) { r && l.addScript(e + '/' + r, function () { a(t[++n]); }); }; a(t[n]); } } catch (r) {} }); var p = function (e, t, n) { var a = window, r = a.goldlog_queue || (a.goldlog_queue = []), o = e; 'object' == typeof t && t.message && (o = o + '_' + t.message), n && n.msg && (o += '_' + n.msg), r.push({ action: 'goldlog._aplus_cplugin_m.do_tracker_jserror', arguments: [ { ratio: window.goldlog && window.goldlog.aplusDebug ? 1 : 0.01, message: o, error: JSON.stringify(t), filename: e, }, ], }); }; (n.catchException = p), (n.getCdnpath = function () { var e = '//g.alicdn.com', t = '//g-assets.daily.taobao.net', n = '//assets.alicdn.com/g', a = '//s.alicdn.com/@g/', r = '//u.alicdn.com', o = '//laz-g-cdn.alicdn.com', i = '//g.lazcdn.com/g', s = g(), u = e, l = [n, a, t, r, o, i], c = new RegExp(r); if (s) for (var f = 0; f < l.length; f++) { var v = new RegExp(l[f]); if (v.test(s.src)) { (u = l[f]), c.test(s.src) && (u = n); break; } } if (u === o) { var d = window.navigator ? window.navigator.language : ''; p( 'getCdnpath', { lang: d, }, { msg: 'laz_g_cdn', } ); } return u; }), (n.aplusVersions = { V_O: 'aplus_o.js', V_2: 'aplus_v2.js', V_W: 'aplus_wap.js', V_S: 'aplus_std.js', V_I: 'aplus_int.js', V_U: 'aplus_u.js', }), (n.isUseNewAplusJs = function () { var e = i('aplus-core'), t = window.navigator.userAgent.toLocaleLowerCase(), n = /qq\//.test(t), a = /micromessenger/.test(t), r = /(taobao\.com)|(tmall\.com)/.test(location.hostname), o = ['www.taobao.com/', 'www.dingtalk.com/'].indexOf( location.hostname + location.pathname ) > -1, s = /aone\.alibaba-inc\.com/.test(location.hostname), u = [ 'we.taobao.com', 'creator.guanghe.taobao.com', 'h5.m.goofish.com', 'account.yuekeyun.com', 'dengta.taopiaopiao.com', 'myseller.taobao.com', 'dms.alibaba-inc.com', 'qn.taobao.com', ].indexOf(location.hostname) > -1, l = /\.wapa\./.test(location.hostname) || /^pre-/.test(location.hostname), c = ['aplus.js'].indexOf(e) > -1; return ((n || a) && r) || o || u || l || s || c; }); }, { '@ali/grey-publish': 2, }, ], 2: [ function (e, t, n) { 'use strict'; (n.grey = e('./src/grey')), (n.util = e('./src/util')); }, { './src/grey': 3, './src/util': 4, }, ], 3: [ function (e, t, n) { 'use strict'; function a(e, t) { return e + Math.floor(Math.random() * (t - e + 1)); } function r(e) { var t = !1; try { var n = e.bingo_chars || '0aAbBc1CdDeE2fFgGh3HiIjJ4kKlLm5MnNoO6pPqQr7RsStT8uUvVw9WxXyY+zZ', r = h.getCookie(e.bingo_cookiename || 'cna') || ''; if (r) { var o = r.charAt(0), i = n.indexOf(o) / n.length; t = i <= e.ratio / e.base; } else t = a(1, e.base) <= e.ratio; } catch (s) { t = a(1, e.base) <= e.ratio; } return t; } function o(e, t) { var n; for (n in t) t.hasOwnProperty(n) && (e[n] = t[n]); return e; } function i(e, t) { return function (n) { return e(o(t, n || {})); }; } function s(e, t) { var n = document; if (t) { var a = n.getElementsByTagName('script')[0], r = n.createElement('script'); e && e.nonce && r.setAttribute('nonce', e.nonce), r.appendChild(n.createTextNode(t)), a.parentNode.insertBefore(r, a); } } function u(e, t) { if (e && e.length > 0) for (var n = new RegExp('^' + t), a = 0; a < e.length; a++) { var r = e[a]; n.test(r) && _.remove(r); } } function l(e, t, n) { try { _.remove(e); var a = _.get(t); if (a) { var r = JSON.parse(a) || []; u(r, n); } } catch (o) {} try { Object && Object.keys && u(Object.keys(localStorage), n); } catch (i) {} } function c(e, t, n) { try { if (!d) { var a = function (a) { a.key === e && a.newValue && l(e, t, n); }; if (window.addEventListener) return window.addEventListener('storage', a, !1), !1; window.attachEvent('storage', a); } d = !0; } catch (r) {} } function g(e) { var t; try { var n = _.get(e.LS_KEY_CLUSTER); if (n) { var a = JSON.parse(n); t = _.get(a[0]); } } catch (r) {} return t; } function p(e, t) { h.addScript(t.url, e.callback, function () { t.oldCode && (s(e, t.oldCode), h.isFunction(e.callback) && e.callback.call(this, { from: 'oldCode', })); }); } function f(e, t) { var n, a = 'cors', r = t.code, o = t.key, i = r ? r.split('\n').length : 0; i >= t.size && (s(e, r), l(o, e.LS_KEY_CLUSTER, e.LS_PREFIX), _.set(e.LS_KEY_CLUSTER, JSON.stringify([o])), _.set(o, r), (n = !0)), i < t.size && t.oldCode && ((a = 'oldCode'), s(e, t.oldCode), (n = !0)), n || p(e, t), c(o, e.LS_KEY_CLUSTER, e.LS_PREFIX), h.isFunction(e.callback) && e.callback.call(this, { from: a, }); } function v(e, t, n) { var a = window, r = a.XDomainRequest, o = a.XMLHttpRequest && 'withCredentials' in new a.XMLHttpRequest(), i = t.after; if (!t.isDebug && _.test() && (o || r)) { var u = g(t), l = t.LS_KEY + h.hash(e), v = _.get(l), d = 'local'; v ? (c(l, t.LS_KEY_CLUSTER, t.LS_PREFIX), s(t, v), h.isFunction(i) && i.call(this, { from: d, })) : h.requestJS( e, navigator.userAgent, function (a) { f(t, { key: l, code: a, oldCode: u, size: n, url: e, }); }, function () { p(t, { url: e, oldCode: u, }); } ); } else h.addScript(e, i); } var d, h = e('./util'), _ = { set: function (e, t) { try { return localStorage.setItem(e, t), !0; } catch (n) { return !1; } }, get: function (e) { return localStorage.getItem(e); }, test: function () { var e = 'grey_test_key'; try { return ( localStorage.setItem(e, 1), localStorage.removeItem(e), !0 ); } catch (t) { return !1; } }, remove: function (e) { localStorage.removeItem(e); }, }, m = { base: 1e4, }, b = { _config: m, }; (b.load = function (e) { e = o( { LS_KEY_CLUSTER: '', LS_KEY: '', isLoadDevVersion: '', dev: '', stable: '', grey: '', base: m.base, bingo: '', nonce: '', }, e ); var t, n = {}, a = 0, s = 'function' == typeof e.bingo ? e.bingo : r; e.ratio >= e.base || s(e) ? ((t = e.grey), (n.type = 'grey'), (a = e.greySize)) : ((t = e.stable), (n.type = 'stable'), (a = e.stableSize)); try { h.isFunction(e.isLoadDevVersion) && e.isLoadDevVersion() && ((t = e.dev), (n.type = 'dev'), (a = e.devSize)); } catch (u) {} return ( (n.url = t), h.isFunction(e.before) ? e.before(n, function (t) { v(t, e, a); }) : v(t, e, a), h.isFunction(e.after) && (e.after = i(e.after, n)), this ); }), (b.config = function (e) { return o(m, e || {}), this; }), (t.exports = b); }, { './util': 4, }, ], 4: [ function (e, t, n) { 'use strict'; var a = function (e) { return 'function' == typeof e; }; n.isFunction = a; var r = function (e, t, n) { var r = document, o = r.getElementsByTagName('script')[0], i = r.getElementsByTagName('head')[0], s = r.createElement('script'); (s.type = 'text/javascript'), (s.async = !0), (s.src = e), (s.onerror = function () { a(n) && n(); }), o ? o.parentNode.insertBefore(s, o) : i && i.appendChild(s), a(t) && t.call(this, { from: 'script', }); }; (n.addScript = r), (n.getCookie = function (e) { var t = document, n = t.cookie.match(new RegExp('(?:^|;)\\s*' + e + '=([^;]+)')); return n ? n[1] : ''; }); var o = { base: 1e4, timeout: 1e4, }, i = function (e, t, n) { fetch(e) .then(function (e) { return /application\/json/.test(e.headers.get('content-type')) ? e.json() : e.text(); }) .then(function (e) { t(e); }) ['catch'](function (e) { n(e); }); }, s = function (e, t, n) { var a, r = 'GET', i = function () { a.responseText ? t(a.responseText) : n(); }, s = window.XMLHttpRequest && 'withCredentials' in new XMLHttpRequest(); s ? ((a = new XMLHttpRequest()), a.open(r, e, !0)) : ((a = new XDomainRequest()), a.open(r, e)), (a.timeout = o.timeout), (a.onload = i), (a.onerror = n), (a.ontimeout = n), a.send(); }, u = function (e, t, n) { window.fetch ? i(e, t, n) : s(e, t, n); }; (n.request = u), (n.requestJS = function (e, t, n, a) { return /blitz/i.test(t) ? void a() : void u(e, n, a); }), (n.hash = function (e) { var t, n, a = 1315423911; for (t = e.length - 1; t >= 0; t--) (n = e.charCodeAt(t)), (a ^= (a << 5) + n + (a >> 2)); return (2147483647 & a).toString(16); }); }, {}, ], 5: [ function (e, t, n) { 'use strict'; !(function (t) { try { for ( var n, a = t, r = 'g_aplus_grey_launched', o = document.getElementsByTagName('script'), i = 0; i < o.length; i++ ) /mlog\/aplus\.js/.test(o[i].getAttribute('src')) && (n = !0); if (n || a[r]) return; a[r] = 1; var s = e('./for_aplus_fns'), u = e('@ali/grey-publish').util, l = e('@ali/grey-publish').grey, c = e('../grey/util'), g = e('./utilPlugins'), p = c.isUseNewAplusJs(), f = function () { var e = a.goldlog || (a.goldlog = {}), t = !0; try { var n = a.location.href.match(/aplusDebug=(true|false)/); n && n.length > 0 && a.localStorage.setItem('aplusDebug', n[1]), (t = 'true' === a.localStorage.getItem('aplusDebug')), (e.aplusDebug = t); } catch (r) {} var o = { 'aplus_o.js': { stable_version: { value: '8.15.21', }, grey_version: { value: '8.15.22', }, dev_version: {}, }, 'aplus_std.js': { stable_version: { value: '8.15.21', }, grey_version: { value: '8.15.22', }, dev_version: {}, }, 'aplus_wap.js': { stable_version: { value: '8.15.21', }, grey_version: { value: '8.15.22', }, dev_version: {}, }, 'aplus_int.js': { stable_version: { value: '8.15.21', }, grey_version: { value: '8.15.22', }, dev_version: {}, }, 'aplus_u.js': { stable_version: { value: '8.15.21', }, grey_version: { value: '8.15.22', }, dev_version: {}, }, }, i = p ? 'APLUS_CORE' : 'APLUS_S_CORE', u = i + '_0.21.97_20240125170405_', f = a.location.protocol; 0 !== f.indexOf('http') && (f = 'https:'); var v = p ? '//d.alicdn.com' : c.getCdnpath(); e.getCdnPath = c.getCdnpath; var d = f + v + '/alilog', h = s.getAplusBuVersion(), _ = h.v, m = h.BU, b = c.getArgsQuery('aplusCoreVersion') || c.getMetaCnt('aplus-core-version'), y = b || '1.12.15', w = b || '1.12.17', S = '', j = 1e4, C = p ? S : j, E = [ { key: '202401251800', value: 0.1, }, { key: '202401301000', value: 0.5, }, { key: '202402011000', value: 1, }, ], A = function () { var e = ''; if (E && E.length > 0) for (var t = c.getDateMin(), n = 0; n < E.length; n++) { var a = E[n].key + ''; t >= a && (e = Math.floor(1e4 * E[n].value)); } return e; }, L = function (e) { var n, r = t ? [] : g.getFrontPlugins({ version: e, fn: _, BU: m, isDebug: t, isUseNewAplusJs: p, }), o = p ? [ [ 'aplus', e, c.isMobile(a.navigator.userAgent) ? 'aplus_wap.js' : 'aplus_pc.js', ].join('/'), ] : [['s', e, _].join('/')], i = t ? [] : g.getPlugins({ version: e, fn: _, BU: m, isUseNewAplusJs: p, }), s = 0; try { var u = [].concat(r, o, i); (n = d + '/??' + u.join(',') + '?v=20240125170405'), (s = u.length); } catch (l) { (n = d + '/??' + o.join(',')), (s = o.length); } return { size: s, url: n, }; }, k = A(); k && !C && (C = k), (e.aplus_cplugin_ver = '0.7.12'), e.record || (e.record = function (e, t, n, r) { (a.goldlog_queue || (a.goldlog_queue = [])).push({ action: 'goldlog.record', arguments: [e, t, n, r], }); }); var V = o[_] || {}, U = V.stable_version || {}, x = V.grey_version || {}, M = V.dev_version || {}, B = p ? y : U.value || '8.5.9', N = p ? w : x.value || B, P = M.value || N, T = L(P), O = L(B), R = L(N), q = c.getCurrentNode(), D = q ? q.getAttribute('cspx') : '', z = { LS_KEY_CLUSTER: 'APLUS_LS_KEY', LS_KEY: u, LS_PREFIX: i, isDebug: t, isLoadDevVersion: !1, dev: T.url, devSize: T.size, stable: O.url, stableSize: O.size, grey: R.url, greySize: R.size, ratio: C, nonce: D, before: function (n, a) { switch (n.type) { case 'grey': e.lver = P; break; case 'stable': e.lver = B; break; case 'dev': e.lver = P; } if (t) { var r = { version: e.lver, fn: _, BU: m, isDebug: t, isUseNewAplusJs: p, }; c.loopAddScript(d, g.getFrontPlugins(r)); } if ('function' == typeof a) { var o = L(e.lver), i = o.url; a(i); } }, }; t && (z.after = function () { var t = 0, n = function () { if (!(t >= 100)) { t++; var r = e._$ || {}; a.setTimeout(function () { 'complete' === r.status ? c.loopAddScript( d, g.getPlugins({ version: e.lver, fn: _, BU: m, isUseNewAplusJs: p, }) ) : n(); }, 100); } }; n(); }), l.load(z); }, v = s.getNewCdnpathByMeta(); v ? u.addScript( v, function () {}, function () { f(); } ) : f(); } catch (d) { t.console.log( '------------ [APLUS LOG] aplus\u52a0\u8f7d\u5668\u5f02\u5e38 ------------' ), t.console.log(d); } })(window); }, { '../grey/util': 1, './for_aplus_fns': 6, './utilPlugins': 9, '@ali/grey-publish': 2, }, ], 6: [ function (e, t, n) { 'use strict'; var a, r = e('./util'), o = r.aplusVersions, i = [o.V_O, o.V_S, o.V_I, o.V_W, o.V_U], s = function () { for ( var e, t, n = [ { version: o.V_O, domains: [ /^https?:\/\/(.*\.)?youku\.com/i, /^https?:\/\/(.*\.)?tudou\.com/i, /^https?:\/\/(.*\.)?soku\.com/i, /^https?:\/\/(.*\.)?laifeng\.com/i, ], BU: 'YT', }, ], a = 0; a < n.length; a++ ) for ( var r = n[a].domains, i = n[a].version, s = 0; s < r.length; s++ ) if (location.href.match(r[s])) return { v: i, BU: n[a].BU, }; return { v: t, BU: e, }; }, u = function () { a || (a = r.getMetaCnt('aplus-version')); var e = a; return e && (e += '.js'), r.indexof(i, e) > -1 ? e : null; }; n.getNewCdnpathByMeta = function () { a || (a = r.getMetaCnt('aplus-version')); var e = a; if (/^\d+$/.test(e)) t = '//d.alicdn.com/alilog/mlog/aplus/' + e + '.js'; else { var t, n = e.split('@'); 2 === n.length && (t = '//d.alicdn.com/alilog/mlog/aplus.js?id=' + n[1]); } return t; }; var l = function () { try { for ( var e = document, t = e.getElementsByTagName('script'), n = 0; n < t.length; n++ ) { var a = t[n].getAttribute('src'); if ( /alilog\/mlog\/aplus_\w+\.js/.test(a) || /alicdn\.com\/js\/aplus_\w+\.js/.test(a) ) return a; } return ''; } catch (r) { return ''; } }, c = function () { var e = ''; try { var t = (document, r.getCurrentNode()); if ((t && (e = t.getAttribute('src')), e || (e = l()), e)) { var n = e.match(/aplus_\w+\.js/); 'object' == typeof n && n.length > 0 && (e = n[0]); } } catch (a) { e = ''; } finally { return e; } }; n.getAplusBuVersion = function () { var e, t; try { e = o.V_S; var n = c(); n && (e = n); var a = s(); a && a.v && (e = a.v), (t = a.BU); var r = u(); r && (e = r), e === o.V_2 && (e = o.V_S); } catch (i) { e = e === o.V_O ? o.V_W : o.V_S; } finally { return { v: e, BU: t, }; } }; }, { './util': 8, }, ], 7: [ function (e, t, n) { 'use strict'; function a() { var e = '', t = /Umeng4Aplus|UT4Aplus/i.test(d); return t && (e = 'aplus4native.js'), e; } function r(e) { return h && !p.WindVane && e.fn !== v.V_O; } function o(e) { return (_ || (h && !p.WindVane)) && e.fn === v.V_O; } function i(e, t) { var n = e.trackerCfg || {}, a = n.points || []; if (a.length > 0) for (var r = new RegExp(t), o = 0; o < a.length; o++) if (r.test(a[o].trackerType)) return !0; return !1; } function s(e) { return i(e, 'exposure') || !!f.getMetaCnt('aplus-auto-exp'); } function u(e) { return i(e, 'click') || !!f.getMetaCnt('aplus-auto-clk'); } function l() { return ( !!f.getMetaCnt('aplus-vt-cfg') || !!f.getMetaCnt('aplus-vt-cfg-url') ); } function c() { return 'on' === f.getMetaCnt('aplus-apm-track'); } var g = document, p = window, f = e('./util'), v = f.aplusVersions, d = p.navigator.userAgent, h = /WindVane/i.test(d), _ = /AliBaichuan/i.test(d), m = function () { return /_a_ig_v=@aplus/.test(location.search); }, b = function (e) { return e.fn !== v.V_O && e.fn !== v.V_U; }, y = function () { try { var e = p.localStorage, t = 'aplus_track_debug_id', n = new RegExp('[?|&]' + t + '=(\\w*)'), a = location.href.match(n); if (a && a.length > 0) e.setItem(t, a[1]); else { var r = g.referrer || '', o = r.match(n); if (o && o.length > 0) e.setItem(t, o[1]); else { var i = p.name || '', s = i.match(n); s && s.length > 0 && e.setItem(t, s[1]); } } var u = e.getItem(t) || ''; return u && u.length > 50 ? !0 : !1; } catch (l) { return !1; } }, w = function () { try { return !!/lazada/.test(location.host); } catch (e) { return !1; } }, S = function (e) { try { if ('function' == typeof p.WebSocket) { var t = /alibaba-inc|aliway|alibabacorp\.com/.test( location.hostname ), n = f.getMetaCnt('aplus-channel'), a = 'GET' === n || 'POST' === n, r = /tppnext\.alibaba-inc.com/.test(location.hostname); if (a && r) return !1; var o = /aplus_ws=true/.test(location.search) || 'WS' === n || 'WS-ONLY' === n, i = location.host, s = /tmall|taobao\.com/g.test(i), u = /Qianniu\/\d/.test(d), l = t || o || (s && !f.isMobile(d) && !u && e.fn !== v.V_W); return l && (goldlog.aplusChannel = 'WS'), l; } return !1; } catch (c) { return !1; } }; (n.getFrontPlugins = function (e) { var t = e.isUseNewAplusJs, n = t ? 'aplus/' : 's/', i = e.version, c = n + i + '/plugin', g = 's/' + e.version + '/plugin', p = goldlog.aplus_cplugin_ver, f = a(e.isDebug); return [ { enable: !t && r(e), path: [c, t ? 'aplus_windvane3.js' : 'aplus_windvane2.js'].join( '/' ), }, { enable: o(e) && !t, path: [g, 'aplus_bcbridge.js'].join('/'), }, { enable: !t && !!f, path: t ? [c, 'aplus4native.js'].join('/') : ['aplus_cplugin', p, f].join('/'), }, { enable: l(), path: [c, 'aplus_webvt.js'].join('/'), }, { enable: !t, path: [c, 'aplus_client.js'].join('/'), }, { enable: !t, path: ['aplus_cplugin', p, 'toolkit.js'].join('/'), }, { enable: !t, path: ['aplus_cplugin', p, 'monitor.js'].join('/'), }, { enable: !t && y(), path: ['aplus_cplugin', p, 'track_deb.js'].join('/'), }, { enable: w(), path: ['aplus_plugin_lazada', 'lazadalog.js'].join('/'), }, { enable: !t && S(e), path: [c, 'aplus_ws.js'].join('/'), }, { enable: s(e) && !t, path: [c, 'aplus_ae.js'].join('/'), }, { enable: u(e) && !t, path: [c, 'aplus_ac.js'].join('/'), }, ]; }), (n.getPlugins = function (e) { var t = e.isUseNewAplusJs, n = t ? 'aplus/' : 's/', a = n + e.version + '/plugin'; return [ { enable: t && c(), path: [a, 'aplus_apm_trace.js'].join('/'), }, { enable: m(e), path: 'aplus_plugin_guide/index.js', }, { enable: b(e), path: [a, 'aplus_spmact.js'].join('/'), }, ]; }); }, { './util': 8, }, ], 8: [ function (e, t, n) { t.exports = e(1); }, { '@ali/grey-publish': 2, }, ], 9: [ function (e, t, n) { 'use strict'; var a = e('./plugins'), r = e('./util'), o = (document, r.getCurrentNode()), i = function (e) { var t = []; try { if (o) { var n = o.getAttribute(e || t); t = n.split(','); } } catch (a) { t = []; } finally { return t; } }, s = function (e) { var t = []; if (e) for (var n = 0; n < e.length; n++) { var a = e[n].enable, r = e[n].path; a === !0 ? t.push(r) : 'function' == typeof a && a() && t.push(r); } return t; }; (n.getPlugins = function (e) { var t = a.getPlugins(e); return [].concat(s(t), i('plugins')); }), (n.getFrontPlugins = function (e) { var t = a.getFrontPlugins(e); return [].concat(s(t), i('frontPlugins')); }), (n.getTrackerCfg = a.getTrackerCfg); }, { './plugins': 7, './util': 8, }, ], }, {}, [5] );