Last active
February 17, 2022 00:25
-
-
Save fhferreira/3edfc270141b464df462c63235e41672 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://analytics.tiktok.com/i18n/pixel/events.js?sdkid=C5O44L5Q5ECR7VU4C09G&lib=ttq | |
//https://analytics.tiktok.com/i18n/pixel/identify.js | |
//https://analytics.tiktok.com/i18n/pixel/config.js?sdkid=C5O44L5Q5ECR7VU4C09G&hostname=wnonline.com.br | |
window[window["TiktokAnalyticsObject"]]._env = { | |
"env": "external" | |
}; | |
window[window["TiktokAnalyticsObject"]]._variation_id = 'test'; | |
! function(e) { | |
var i = {}; | |
function r(t) { | |
if (i[t]) return i[t].exports; | |
var n = i[t] = { | |
i: t, | |
l: !1, | |
exports: {} | |
}; | |
return e[t].call(n.exports, n, n.exports, r), n.l = !0, n.exports | |
} | |
r.m = e, r.c = i, r.d = function(t, n, e) { | |
r.o(t, n) || Object.defineProperty(t, n, { | |
enumerable: !0, | |
get: e | |
}) | |
}, r.r = function(t) { | |
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { | |
value: "Module" | |
}), Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}) | |
}, r.t = function(n, t) { | |
if (1 & t && (n = r(n)), 8 & t) return n; | |
if (4 & t && "object" == typeof n && n && n.__esModule) return n; | |
var e = Object.create(null); | |
if (r.r(e), Object.defineProperty(e, "default", { | |
enumerable: !0, | |
value: n | |
}), 2 & t && "string" != typeof n) | |
for (var i in n) r.d(e, i, function(t) { | |
return n[t] | |
}.bind(null, i)); | |
return e | |
}, r.n = function(t) { | |
var n = t && t.__esModule ? function() { | |
return t["default"] | |
} : function() { | |
return t | |
}; | |
return r.d(n, "a", n), n | |
}, r.o = function(t, n) { | |
return Object.prototype.hasOwnProperty.call(t, n) | |
}, r.p = "https://analytics.tiktok.com/i18n/pixel/", r(r.s = "ranp") | |
}({ | |
"/6w+": function(t, n, e) { | |
"use strict"; | |
var i, r; | |
e.d(n, "b", function() { | |
return i | |
}), e.d(n, "a", function() { | |
return r | |
}), (n = i = i || {})[n.OTHER = 0] = "OTHER", n[n.ANDROID = 1] = "ANDROID", n[n.IOS = 2] = "IOS", (n = r = r || {}).LOAD_START = "load_start", n.LOAD_END = "load_end", n.BEFORE_INIT = "before_init", n.INIT_START = "init_start", n.INIT_END = "init_end", n.JSB_INIT_START = "jsb_init_start", n.JSB_INIT_END = "jsb_init_end", n.BEFORE_AD_INFO_INIT_START = "before_ad_info_init_start", n.AD_INFO_INIT_START = "ad_info_init_start", n.AD_INFO_INIT_END = "ad_info_init_end", n.IDENTIFY_INIT_START = "identify_init_start", n.IDENTIFY_INIT_END = "identify_init_end", n.PLUGIN_INIT_START = "_init_start", n.PLUGIN_INIT_END = "_init_end", n.PIXEL_SEND = "pixel_send", n.PIXEL_SEND_PCM = "pixel_send_PCM", n.JSB_SEND = "jsb_send", n.HTTP_SEND = "http_send", n.HANDLE_CACHE = "handle_cache", n.INIT_ERROR = "init_error", n.PIXEL_EMPTY = "pixel_empty", n.JSB_ERROR = "jsb_error", n.API_ERROR = "api_error", n.PLUGIN_ERROR = "plugin_error", n.CUSTOM_INFO = "custom_info", n.CUSTOM_ERROR = "custom_error" | |
}, | |
GJ6r: function(t, n, e) { | |
"use strict"; | |
e.d(n, "a", function() { | |
return o | |
}), e.d(n, "c", function() { | |
return c | |
}), e.d(n, "b", function() { | |
return a | |
}); | |
e("SbFU"), e("w0s3"); | |
var i = "object" == typeof navigator ? navigator.userAgent : "", | |
r = function() { | |
return /windows phone/i.test(i) ? "Windows Phone" : /android/i.test(i) ? "android" : /iPad|iPhone|iPod/.test(i) ? "ios" : "pc" | |
}, | |
o = function() { | |
return "android" === r() | |
}, | |
c = function() { | |
return "ios" === r() | |
}, | |
a = function() { | |
return "development" === "production".trim() | |
} | |
}, | |
Pd38: function(t, n, e) { | |
"use strict"; | |
e.d(n, "a", function() { | |
return r | |
}); | |
var i = e("SbFU"), | |
r = function(n, t) { | |
var e = Object(i.b)() || []; | |
e.dynamicPlugins || (e.dynamicPlugins = []), e.dynamicPlugins.find(function(t) { | |
return t.name === n | |
}) || e.dynamicPlugins.push({ | |
name: n, | |
handler: t | |
}) | |
} | |
}, | |
Rtpk: function(t, n, e) { | |
"use strict"; | |
e.d(n, "a", function() { | |
return i | |
}); | |
var o = e("SbFU"), | |
c = e("fe1q"), | |
a = e("/6w+"), | |
i = function(e) { | |
for (var i = [], t = 1; t < arguments.length; t++) i[t - 1] = arguments[t]; | |
try { | |
var n = Object(o.b)() || []; | |
n.context && n.context.plugins && n.context.plugins.forEach(function(t) { | |
if ("function" == typeof t[e]) try { | |
t[e].apply(t, i) | |
} catch (n) { | |
Object(c.a)(a.a.PLUGIN_ERROR, n, { | |
extJSON: { | |
plugin_name: t.name, | |
cycle_name: e, | |
data: i | |
} | |
}) | |
} | |
}) | |
} catch (r) {} | |
} | |
}, | |
STkE: function(t, n, e) { | |
"use strict"; | |
var i; | |
e.d(n, "a", function() { | |
return i | |
}), (n = i = i || {}).INIT_START = "initStart", n.INIT_END = "initEnd", n.CONTEXT_INIT_START = "contextInitStart", n.CONTEXT_INIT_END = "contextInitEnd", n.BEFORE_AD_INFO_INIT_START = "beforeAdInfoInitStart", n.AD_INFO_INIT_START = "adInfoInitStart", n.AD_INFO_INIT_END = "adInfoInitEnd", n.PLUGIN_INIT_START = "pluginInitStart", n.PLUGIN_INIT_END = "pluginInitEnd", n.PIXEL_CREATE_START = "pixelCreateStart", n.PIXEL_CREATE_END = "pixelCreateEnd" | |
}, | |
SbFU: function(t, n, e) { | |
"use strict"; | |
e.d(n, "c", function() { | |
return o | |
}), e.d(n, "b", function() { | |
return c | |
}), e.d(n, "d", function() { | |
return a | |
}), e.d(n, "e", function() { | |
return u | |
}), e.d(n, "g", function() { | |
return s | |
}), e.d(n, "a", function() { | |
return p | |
}), e.d(n, "f", function() { | |
return f | |
}); | |
e("GJ6r"); | |
var i, r = e("w0s3"); | |
(e = i = i || {}).EMPTY_VALUE = "empty_value", e.WRONG_FORMAT = "wrong_format", e.CORRECT_FORMAT = "correct_format", e.HASHED = "hashed", e.HASHED_ERR = "hashed_err", e.HASHED_CORRECT = "hashed_correct", e.PLAINTEXT_EMAIL = "plaintext_email", e.PLAINTEXT_PHONE = "plaintext_phone"; | |
undefined && undefined.__spreadArrays; | |
var o = function() { | |
var t = c(); | |
return t._partner || "" | |
}, | |
c = function() { | |
return "object" == typeof window && window["object" == typeof window && window[r.f] || r.c] | |
}, | |
a = function() { | |
try { | |
return c()._variation_id | |
} catch (t) { | |
return "" | |
} | |
}, | |
u = function() { | |
try { | |
var t = c(); | |
return t && t._legacy && 0 !== t._legacy.length ? Object.keys(t._t).length > Object.keys(t._legacy).length || Object.keys(t.context.data.pixelMap).length > Object.keys(t._legacy).length : !1 | |
} catch (n) { | |
return !1 | |
} | |
}, | |
s = function(t) { | |
return "number" != typeof t ? t : parseInt(t.toFixed(0), 10) | |
}, | |
p = function() { | |
return new Date(Date.now() + 864e5).toUTCString() | |
}; | |
function f(e, i) { | |
void 0 === i && (i = 500); | |
var r = Date.now(); | |
return function() { | |
var t = arguments, | |
n = Date.now(); | |
i <= n - r && (e.apply(null, t), r = Date.now()) | |
} | |
} | |
}, | |
SnBs: function(t, n, e) { | |
"use strict"; | |
e.d(n, "a", function() { | |
return r | |
}), e.d(n, "b", function() { | |
return a | |
}); | |
var i, n = undefined && undefined.__extends || (i = function(t, n) { | |
return (i = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, n) { | |
t.__proto__ = n | |
} || function(t, n) { | |
for (var e in n) n.hasOwnProperty(e) && (t[e] = n[e]) | |
})(t, n) | |
}, function(t, n) { | |
function e() { | |
this.constructor = t | |
} | |
i(t, n), t.prototype = null === n ? Object.create(n) : (e.prototype = n.prototype, new e) | |
}), | |
r = (o.prototype.pageDidLoad = function() {}, o.prototype.pixelDidMount = function(t) {}, o.prototype.pageUrlWillChange = function(t, n) {}, o.prototype.pageUrlDidChange = function(t) {}, o.prototype.initStart = function() {}, o.prototype.initEnd = function() {}, o.prototype.adInfoInitStart = function() {}, o.prototype.adInfoInitEnd = function() {}, o.prototype.contextInitStart = function() {}, o.prototype.contextInitEnd = function() {}, o.prototype.pluginInitStart = function(t) {}, o.prototype.pluginInitEnd = function(t) {}, o.prototype.pixelCreateStart = function(t) {}, o.prototype.pixelCreateEnd = function(t) {}, o.prototype.pageWillLeave = function(t) {}, o); | |
function o(t) { | |
t && (this.context = t) | |
} | |
var c, a = (n(u, c = r), u.prototype.pixelDidMount = function(t) { | |
var n = t.pixelCode, | |
t = this.getTrackType(), | |
e = this.context.methods.batchTrack.bind(this.context, { | |
pixelCode: n, | |
type: t | |
}); | |
this.batchReportFunctions.push(e), this.stash.forEach(function(t) { | |
e(t, !1) | |
}) | |
}, u.prototype.pageUrlWillChange = function(t, n) {}, u.prototype.pageUrlDidChange = function(t) { | |
t !== this.currentUrl && (this.oldUrl = this.currentUrl, this.currentUrl = t) | |
}, u.prototype.handleCacheData = function() { | |
var t = this; | |
this.stash.forEach(function(n) { | |
t.batchReportFunctions.forEach(function(t) { | |
t(n, !1) | |
}) | |
}) | |
}, u.prototype.track = function(n, e) { | |
this.stash.push(n), this.batchReportFunctions.forEach(function(t) { | |
t(n, e) | |
}) | |
}, u); | |
function u(t) { | |
var e = c.call(this, t) || this; | |
return e.batchReportFunctions = [], e.currentUrl = "", e.oldUrl = "", e.stash = [], e.batchReportFunctions = e.context.methods.getAllPixels().map(function(t) { | |
var n = t.pixelCode, | |
t = e.getTrackType(); | |
return e.context.methods.batchTrack.bind(e.context, { | |
pixelCode: n, | |
type: t | |
}) | |
}), e | |
} | |
}, | |
fe1q: function(t, n, e) { | |
"use strict"; | |
e.d(n, "a", function() { | |
return i | |
}), e.d(n, "b", function() { | |
return o | |
}); | |
var r = e("SbFU"); | |
function i() { | |
for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n]; | |
try { | |
var e = Object(r.b)().monitor; | |
e && e.error.apply(e, t) | |
} catch (i) {} | |
} | |
function o() { | |
try { | |
0; | |
var t = document && document.currentScript && document.currentScript.src || "http://emptyURLSrc", | |
n = /i18n\/pixel\/events\.js/.test(t), | |
e = /i18n\/pixel\/sdk\.js/.test(t), | |
i = new URL(t).searchParams; | |
return n ? { | |
lib: i.get("lib") || "ttq", | |
pixelCode: i.get("sdkid") || "" | |
} : e ? { | |
lib: "_taq", | |
pixelCode: i.get("sdkid") || "" | |
} : { | |
lib: "ttq", | |
pixelCode: "" | |
} | |
} catch (r) { | |
return { | |
lib: "ttq", | |
pixelCode: "" | |
} | |
} | |
} | |
}, | |
ranp: function(t, n, e) { | |
"use strict"; | |
e.r(n); | |
var i = e("SnBs"), | |
r = e("Rtpk"); | |
function o(t, n) { | |
try { | |
return new URL(t).searchParams.get(n) || "" | |
} catch (e) { | |
return "" | |
} | |
} | |
var c, a, u = e("SbFU"), | |
s = ["ac", "ad", "ae", "af", "ag", "ai", "al", "am", "ao", "aq", "ar", "as", "at", "au", "aw", "ax", "az", "ba", "bb", "bd", "be", "bf", "bg", "bh", "bi", "bj", "bm", "bn", "bo", "br", "bs", "bt", "bw", "by", "bz", "ca", "cc", "cd", "cf", "cg", "ch", "ci", "ck", "cl", "cm", "cn", "co", "cr", "cu", "cv", "cw", "cx", "cy", "cz", "de", "dj", "dk", "dm", "do", "dz", "ec", "ee", "eg", "er", "es", "et", "eu", "fi", "fj", "fk", "fm", "fo", "fr", "ga", "gd", "ge", "gf", "gg", "gh", "gi", "gl", "gm", "gn", "gp", "gq", "gr", "gs", "gt", "gu", "gw", "gy", "hk", "hm", "hn", "hr", "ht", "hu", "id", "ie", "il", "im", "in", "io", "iq", "ir", "is", "it", "je", "jm", "jo", "jp", "ke", "kg", "kh", "ki", "km", "kn", "kp", "kr", "kw", "ky", "kz", "la", "lb", "lc", "li", "lk", "lr", "ls", "lt", "lu", "lv", "ly", "ma", "mc", "md", "me", "mg", "mh", "mk", "ml", "mm", "mn", "mo", "mp", "mq", "mr", "ms", "mt", "mu", "mv", "mw", "mx", "my", "mz", "na", "nc", "ne", "nf", "ng", "ni", "nl", "no", "np", "nr", "nu", "nz", "om", "pa", "pe", "pf", "pg", "ph", "pk", "pl", "pm", "pn", "pr", "ps", "pt", "pw", "py", "qa", "re", "ro", "rs", "ru", "rw", "sa", "sb", "sc", "sd", "se", "sg", "sh", "si", "sk", "sl", "sm", "sn", "so", "sr", "ss", "st", "su", "sv", "sx", "sy", "sz", "tc", "td", "tf", "tg", "th", "tj", "tk", "tl", "tm", "tn", "to", "tr", "tt", "tv", "tw", "tz", "ua", "ug", "uk", "us", "uy", "uz", "va", "vc", "ve", "vg", "vi", "vn", "vu", "wf", "ws", "ye", "yt", "za", "zm", "zw", "bar", "bible", "biz", "church", "club", "college", "com", "design", "dev", "download", "eco", "eus", "google", "green", "hiv", "icu", "info", "kaufen", "kiwi", "lat", "lgbt", "moe", "name", "net", "ninja", "ngo", "one", "ong", "ooo", "org", "top", "pro", "wiki", "wtf", "xyz", "app", "aero", "asia", "cat", "coop", "edu", "gov", "int", "jobs", "mil", "mobi", "museum", "post", "tel", "travel", "xxx", "africa", "alsace", "amsterdam", "bcn", "berlin", "brussels", "bzh", "cymru", "eu", "eus", "frl", "gal", "gent", "irish", "ist ", "istanbul", "kiwi", "krd", "lat", "london", "melbourne", "miami", "nyc", "paris", "quebec", "rio", "saarland", "scot", "sydney", "taipei", "tokyo", "vegas", "vlaanderen", "wales", "wien", "arpa", "nato", "example", "invalid", "localhost", "test", "onion", "bit", "bitnet", "csnet", "exit", "local", "onion", "root", "uucp", "chn", "africa", "bcn", "wales", "bzh", "cym", "cymru", "eng", "lli", "sic", "wales", "geo", "mail", "web", "free", "kid", "kids", "music", "bl ", "bq ", "eh ", "mf", "bv ", "gb ", "sj", "an ", "bu ", "cs ", "dd ", "tp ", "um ", "yu ", "zr"], | |
p = function(t, n, e, i) { | |
void 0 === e && (e = "/"), void 0 === i && (i = Object(u.a)()), document.cookie = t + "=" + n + "; expires=" + i + "; path=" + e + ";domain=" + function(t) { | |
var n = (t = void 0 === t ? window.location.hostname : t).split("."), | |
e = n.length; | |
if (!isNaN(Number.parseInt(n[e - 1]))) return t; | |
for (var i = []; n.length;) { | |
var r = n.pop(); | |
if (!r) break; | |
if (i.unshift(r), -1 === s.indexOf(r)) break | |
} | |
return "." + i.join(".") | |
}() | |
}, | |
f = e("STkE"), | |
d = undefined && undefined.__extends || (c = function(t, n) { | |
return (c = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, n) { | |
t.__proto__ = n | |
} || function(t, n) { | |
for (var e in n) n.hasOwnProperty(e) && (t[e] = n[e]) | |
})(t, n) | |
}, function(t, n) { | |
function e() { | |
this.constructor = t | |
} | |
c(t, n), t.prototype = null === n ? Object.create(n) : (e.prototype = n.prototype, new e) | |
}), | |
l = "callback", | |
_ = (a = i.a, d(b, a), b.prototype.contextInitStart = function() { | |
Object(r.a)(f.a.PLUGIN_INIT_START, this.name), Object(r.a)(f.a.PLUGIN_INIT_END, this.name) | |
}, b.prototype.pixelDidMount = function() { | |
var t, t = (t = "ttclid", o(window.location.href, t) || o(document.referrer, t)); | |
t && p("ttclid", t) | |
}, b); | |
function b(t) { | |
t = a.call(this, t) || this; | |
return t.name = l, t | |
} | |
e = e("Pd38"); | |
Object(e.a)(l, function(t) { | |
return new _(t) | |
}); | |
n["default"] = _ | |
}, | |
w0s3: function(t, n, e) { | |
"use strict"; | |
e.d(n, "f", function() { | |
return i | |
}), e.d(n, "c", function() { | |
return r | |
}), e.d(n, "b", function() { | |
return o | |
}), e.d(n, "i", function() { | |
return c | |
}), e.d(n, "a", function() { | |
return a | |
}), e.d(n, "g", function() { | |
return u | |
}), e.d(n, "h", function() { | |
return s | |
}), e.d(n, "e", function() { | |
return p | |
}), e.d(n, "d", function() { | |
return f | |
}); | |
var i = "TiktokAnalyticsObject", | |
r = "ttq", | |
o = "external", | |
c = "tiktok", | |
a = "https://analytics.tiktok.com/i18n/pixel/config.js", | |
u = "https://analytics.tiktok.com/i18n/pixel/pickup.js", | |
s = "https://analytics.tiktok.com/i18n/pixel/identify.js", | |
p = "https://analytics.tiktok.com/i18n/pixel/enable_cookie", | |
f = "https://analytics.tiktok.com/i18n/pixel/disable_cookie" | |
} | |
}); | |
! function(c) { | |
function t(t) { | |
for (var e, n, r = t[0], o = t[1], i = 0, a = []; i < r.length; i++) n = r[i], Object.prototype.hasOwnProperty.call(s, n) && s[n] && a.push(s[n][0]), s[n] = 0; | |
for (e in o) Object.prototype.hasOwnProperty.call(o, e) && (c[e] = o[e]); | |
for (f && f(t); a.length;) a.shift()() | |
} | |
var n = {}, | |
s = { | |
0: 0 | |
}; | |
function u(t) { | |
if (n[t]) return n[t].exports; | |
var e = n[t] = { | |
i: t, | |
l: !1, | |
exports: {} | |
}; | |
return c[t].call(e.exports, e, e.exports, u), e.l = !0, e.exports | |
} | |
u.e = function(r) { | |
var o, i, t, a, e, n = [], | |
c = s[r]; | |
return 0 !== c && (c ? n.push(c[2]) : (e = new Promise(function(t, e) { | |
c = s[r] = [t, e] | |
}), n.push(c[2] = e), (o = document.createElement("script")).charset = "utf-8", o.timeout = 120, u.nc && o.setAttribute("nonce", u.nc), o.src = u.p + "" + ({ | |
1: "identify" | |
} [e = r] || e) + ".js", i = new Error, t = function(t) { | |
o.onerror = o.onload = null, clearTimeout(a); | |
var e, n = s[r]; | |
0 !== n && (n && (e = t && ("load" === t.type ? "missing" : t.type), t = t && t.target && t.target.src, i.message = "Loading chunk " + r + " failed.\n(" + e + ": " + t + ")", i.name = "ChunkLoadError", i.type = e, i.request = t, n[1](i)), s[r] = undefined) | |
}, a = setTimeout(function() { | |
t({ | |
type: "timeout", | |
target: o | |
}) | |
}, 12e4), o.onerror = o.onload = t, document.head.appendChild(o))), Promise.all(n) | |
}, u.m = c, u.c = n, u.d = function(t, e, n) { | |
u.o(t, e) || Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: n | |
}) | |
}, u.r = function(t) { | |
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { | |
value: "Module" | |
}), Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}) | |
}, u.t = function(e, t) { | |
if (1 & t && (e = u(e)), 8 & t) return e; | |
if (4 & t && "object" == typeof e && e && e.__esModule) return e; | |
var n = Object.create(null); | |
if (u.r(n), Object.defineProperty(n, "default", { | |
enumerable: !0, | |
value: e | |
}), 2 & t && "string" != typeof e) | |
for (var r in e) u.d(n, r, function(t) { | |
return e[t] | |
}.bind(null, r)); | |
return n | |
}, u.n = function(t) { | |
var e = t && t.__esModule ? function() { | |
return t["default"] | |
} : function() { | |
return t | |
}; | |
return u.d(e, "a", e), e | |
}, u.o = function(t, e) { | |
return Object.prototype.hasOwnProperty.call(t, e) | |
}, u.p = "https://analytics.tiktok.com/i18n/pixel/", u.oe = function(t) { | |
throw console.error(t), t | |
}; | |
var e = (r = window["webpackJsonp.TiktTokAnalytics"] = window["webpackJsonp.TiktTokAnalytics"] || []).push.bind(r); | |
r.push = t; | |
for (var r = r.slice(), o = 0; o < r.length; o++) t(r[o]); | |
var f = e; | |
u(u.s = 0) | |
}({ | |
"/6w+": function(t, e, n) { | |
"use strict"; | |
var r; | |
n.d(e, "a", function() { | |
return r | |
}), (e = {})[e.OTHER = 0] = "OTHER", e[e.ANDROID = 1] = "ANDROID", e[e.IOS = 2] = "IOS", (e = r = r || {}).LOAD_START = "load_start", e.LOAD_END = "load_end", e.BEFORE_INIT = "before_init", e.INIT_START = "init_start", e.INIT_END = "init_end", e.JSB_INIT_START = "jsb_init_start", e.JSB_INIT_END = "jsb_init_end", e.BEFORE_AD_INFO_INIT_START = "before_ad_info_init_start", e.AD_INFO_INIT_START = "ad_info_init_start", e.AD_INFO_INIT_END = "ad_info_init_end", e.IDENTIFY_INIT_START = "identify_init_start", e.IDENTIFY_INIT_END = "identify_init_end", e.PLUGIN_INIT_START = "_init_start", e.PLUGIN_INIT_END = "_init_end", e.PIXEL_SEND = "pixel_send", e.PIXEL_SEND_PCM = "pixel_send_PCM", e.JSB_SEND = "jsb_send", e.HTTP_SEND = "http_send", e.HANDLE_CACHE = "handle_cache", e.INIT_ERROR = "init_error", e.PIXEL_EMPTY = "pixel_empty", e.JSB_ERROR = "jsb_error", e.API_ERROR = "api_error", e.PLUGIN_ERROR = "plugin_error", e.CUSTOM_INFO = "custom_info", e.CUSTOM_ERROR = "custom_error" | |
}, | |
"/EAr": function(t, e, n) { | |
var r = n("KRib"), | |
o = Math.max, | |
i = Math.min; | |
t.exports = function(t, e) { | |
t = r(t); | |
return t < 0 ? o(t + e, 0) : i(t, e) | |
} | |
}, | |
"/WcL": function(t, e, n) { | |
var r = n("89xZ"), | |
o = n("rCb6").f, | |
i = {}.toString, | |
a = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; | |
t.exports.f = function(t) { | |
return a && "[object Window]" == i.call(t) ? function(t) { | |
try { | |
return o(t) | |
} catch (e) { | |
return a.slice() | |
} | |
}(t) : o(r(t)) | |
} | |
}, | |
"/XoZ": function(t, e, n) { | |
var r = n("hYRU"), | |
o = n("g2s6"), | |
i = n("GgRh"); | |
t.exports = !r && !o(function() { | |
return 7 != Object.defineProperty(i("div"), "a", { | |
get: function() { | |
return 7 | |
} | |
}).a | |
}) | |
}, | |
"/YXv": function(t, e, n) { | |
"use strict"; | |
var r = n("tNbY"), | |
o = n("hYRU"), | |
i = n("ElIT"), | |
a = n("Xp4F"), | |
c = n("5BnI"), | |
s = n("tC/m"), | |
u = n("1EXu").f; | |
o && r({ | |
target: "Object", | |
proto: !0, | |
forced: i | |
}, { | |
__lookupGetter__: function(t) { | |
var e, n = a(this), | |
r = c(t, !0); | |
do { | |
if (e = u(n, r)) return e.get | |
} while (n = s(n)) | |
} | |
}) | |
}, | |
0: function(t, e, n) { | |
t.exports = n("oe+7") | |
}, | |
"01Y7": function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("g2s6"), | |
i = n("nY95"), | |
a = Object.isExtensible; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: o(function() { | |
a(1) | |
}) | |
}, { | |
isExtensible: function(t) { | |
return !!i(t) && (!a || a(t)) | |
} | |
}) | |
}, | |
"0RwH": function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("g2s6"), | |
i = n("Xp4F"), | |
a = n("tC/m"), | |
n = n("iGP5"); | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: o(function() { | |
a(1) | |
}), | |
sham: !n | |
}, { | |
getPrototypeOf: function(t) { | |
return a(i(t)) | |
} | |
}) | |
}, | |
"0kdU": function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("g2s6"), | |
i = n("nY95"), | |
a = Object.isFrozen; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: o(function() { | |
a(1) | |
}) | |
}, { | |
isFrozen: function(t) { | |
return !i(t) || !!a && a(t) | |
} | |
}) | |
}, | |
"0rPq": function(t, e, n) { | |
var r, o, i = n("j16E"), | |
n = n("olJS"), | |
i = i.process, | |
i = i && i.versions, | |
i = i && i.v8; | |
i ? o = (r = i.split("."))[0] + r[1] : n && (!(r = n.match(/Edge\/(\d+)/)) || 74 <= r[1]) && (r = n.match(/Chrome\/(\d+)/)) && (o = r[1]), t.exports = o && +o | |
}, | |
"1EXu": function(t, e, n) { | |
var r = n("hYRU"), | |
o = n("kr2p"), | |
i = n("ywqg"), | |
a = n("89xZ"), | |
c = n("5BnI"), | |
s = n("edxO"), | |
u = n("/XoZ"), | |
f = Object.getOwnPropertyDescriptor; | |
e.f = r ? f : function(t, e) { | |
if (t = a(t), e = c(e, !0), u) try { | |
return f(t, e) | |
} catch (n) {} | |
if (s(t, e)) return i(!o.f.call(t, e), t[e]) | |
} | |
}, | |
"2AMv": function(t, e, n) { | |
var o = n("uoAl"), | |
i = n("O+no"); | |
t.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() { | |
var n, r = !1, | |
t = {}; | |
try { | |
(n = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set).call(t, []), r = t instanceof Array | |
} catch (e) {} | |
return function(t, e) { | |
return o(t), i(e), r ? n.call(t, e) : t.__proto__ = e, t | |
} | |
}() : undefined) | |
}, | |
"2gBf": function(t, e, n) { | |
var r = n("uoY4"), | |
o = n("lWKF"), | |
i = n("mRBh")("toStringTag"), | |
a = "Arguments" == o(function() { | |
return arguments | |
}()); | |
t.exports = r ? o : function(t) { | |
var e; | |
return t === undefined ? "Undefined" : null === t ? "Null" : "string" == typeof(t = function(t, e) { | |
try { | |
return t[e] | |
} catch (n) {} | |
}(e = Object(t), i)) ? t : a ? o(e) : "Object" == (t = o(e)) && "function" == typeof e.callee ? "Arguments" : t | |
} | |
}, | |
"5BnI": function(t, e, n) { | |
var o = n("nY95"); | |
t.exports = function(t, e) { | |
if (!o(t)) return t; | |
var n, r; | |
if (e && "function" == typeof(n = t.toString) && !o(r = n.call(t))) return r; | |
if ("function" == typeof(n = t.valueOf) && !o(r = n.call(t))) return r; | |
if (!e && "function" == typeof(n = t.toString) && !o(r = n.call(t))) return r; | |
throw TypeError("Can't convert object to primitive value") | |
} | |
}, | |
"72RN": function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("hYRU"); | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: !o, | |
sham: !o | |
}, { | |
defineProperties: n("JMA6") | |
}) | |
}, | |
"7Kz8": function(t, e, n) { | |
var r = n("mRBh"), | |
o = n("ncq0"), | |
i = r("iterator"), | |
a = Array.prototype; | |
t.exports = function(t) { | |
return t !== undefined && (o.Array === t || a[i] === t) | |
} | |
}, | |
"7bkZ": function(t, e, n) { | |
"use strict"; | |
var r = n("tNbY"), | |
o = n("hYRU"), | |
i = n("ElIT"), | |
a = n("Xp4F"), | |
c = n("mb4w"), | |
s = n("jk77"); | |
o && r({ | |
target: "Object", | |
proto: !0, | |
forced: i | |
}, { | |
__defineGetter__: function(t, e) { | |
s.f(a(this), t, { | |
get: c(e), | |
enumerable: !0, | |
configurable: !0 | |
}) | |
} | |
}) | |
}, | |
"8+Rt": function(t, e, n) { | |
var r = n("g2s6"), | |
o = /#|\.prototype\./, | |
n = function(t, e) { | |
t = a[i(t)]; | |
return t == s || t != c && ("function" == typeof e ? r(e) : !!e) | |
}, | |
i = n.normalize = function(t) { | |
return String(t).replace(o, ".").toLowerCase() | |
}, | |
a = n.data = {}, | |
c = n.NATIVE = "N", | |
s = n.POLYFILL = "P"; | |
t.exports = n | |
}, | |
"89xZ": function(t, e, n) { | |
var r = n("vcnZ"), | |
o = n("eVlr"); | |
t.exports = function(t) { | |
return r(o(t)) | |
} | |
}, | |
"96W2": function(t, e, n) { | |
var r = n("j16E"); | |
n("npvp")(r.JSON, "JSON", !0) | |
}, | |
"9Zby": function(t, e, n) { | |
var r = n("iBW0"), | |
o = n("nY95"), | |
i = n("edxO"), | |
a = n("jk77").f, | |
c = n("L5Il"), | |
s = n("j3DO"), | |
u = c("meta"), | |
f = 0, | |
l = Object.isExtensible || function() { | |
return !0 | |
}, | |
p = function(t) { | |
a(t, u, { | |
value: { | |
objectID: "O" + ++f, | |
weakData: {} | |
} | |
}) | |
}, | |
d = t.exports = { | |
REQUIRED: !1, | |
fastKey: function(t, e) { | |
if (!o(t)) return "symbol" == typeof t ? t : ("string" == typeof t ? "S" : "P") + t; | |
if (!i(t, u)) { | |
if (!l(t)) return "F"; | |
if (!e) return "E"; | |
p(t) | |
} | |
return t[u].objectID | |
}, | |
getWeakData: function(t, e) { | |
if (!i(t, u)) { | |
if (!l(t)) return !0; | |
if (!e) return !1; | |
p(t) | |
} | |
return t[u].weakData | |
}, | |
onFreeze: function(t) { | |
return s && d.REQUIRED && l(t) && !i(t, u) && p(t), t | |
} | |
}; | |
r[u] = !0 | |
}, | |
ARxZ: function(t, e, n) { | |
var n = n("twmF"), | |
r = Function.toString; | |
"function" != typeof n.inspectSource && (n.inspectSource = function(t) { | |
return r.call(t) | |
}), t.exports = n.inspectSource | |
}, | |
Ax39: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("nY95"), | |
i = n("9Zby").onFreeze, | |
a = n("j3DO"), | |
n = n("g2s6"), | |
c = Object.preventExtensions; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: n(function() { | |
c(1) | |
}), | |
sham: !a | |
}, { | |
preventExtensions: function(t) { | |
return c && o(t) ? c(i(t)) : t | |
} | |
}) | |
}, | |
BVjT: function(t, e, n) { | |
var r = n("uoY4"), | |
o = n("eT3W"), | |
n = n("ZMju"); | |
r || o(Object.prototype, "toString", n, { | |
unsafe: !0 | |
}) | |
}, | |
Bnag: function(t, e) { | |
t.exports = function() { | |
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") | |
}, t.exports["default"] = t.exports, t.exports.__esModule = !0 | |
}, | |
ByEr: function(t, e, n) { | |
var r = n("ilFY"), | |
o = n("0rPq"), | |
n = n("g2s6"); | |
t.exports = !!Object.getOwnPropertySymbols && !n(function() { | |
return !Symbol.sham && (r ? 38 === o : 37 < o && o < 41) | |
}) | |
}, | |
"C+w0": function(t, e, n) { | |
var r = n("2gBf"), | |
o = n("ncq0"), | |
i = n("mRBh")("iterator"); | |
t.exports = function(t) { | |
if (t != undefined) return t[i] || t["@@iterator"] || o[r(t)] | |
} | |
}, | |
DFn4: function(t, e, n) { | |
var _ = n("q7hU"), | |
x = n("vcnZ"), | |
O = n("Xp4F"), | |
w = n("OblR"), | |
I = n("yFXH"), | |
S = [].push, | |
n = function(p) { | |
var d = 1 == p, | |
h = 2 == p, | |
b = 3 == p, | |
g = 4 == p, | |
y = 6 == p, | |
v = 7 == p, | |
m = 5 == p || y; | |
return function(t, e, n, r) { | |
for (var o, i, a = O(t), c = x(a), s = _(e, n, 3), u = w(c.length), f = 0, r = r || I, l = d ? r(t, u) : h || v ? r(t, 0) : undefined; f < u; f++) | |
if ((m || f in c) && (i = s(o = c[f], f, a), p)) | |
if (d) l[f] = i; | |
else if (i) switch (p) { | |
case 3: | |
return !0; | |
case 5: | |
return o; | |
case 6: | |
return f; | |
case 2: | |
S.call(l, o) | |
} else switch (p) { | |
case 4: | |
return !1; | |
case 7: | |
S.call(l, o) | |
} | |
return y ? -1 : b || g ? g : l | |
} | |
}; | |
t.exports = { | |
forEach: n(0), | |
map: n(1), | |
filter: n(2), | |
some: n(3), | |
every: n(4), | |
find: n(5), | |
findIndex: n(6), | |
filterOut: n(7) | |
} | |
}, | |
EbDI: function(t, e) { | |
t.exports = function(t) { | |
if ("undefined" != typeof Symbol && null != t[Symbol.iterator] || null != t["@@iterator"]) return Array.from(t) | |
}, t.exports["default"] = t.exports, t.exports.__esModule = !0 | |
}, | |
ElIT: function(t, e, n) { | |
"use strict"; | |
var r = n("eKW+"), | |
o = n("j16E"), | |
n = n("g2s6"); | |
t.exports = r || !n(function() { | |
var t = Math.random(); | |
__defineSetter__.call(null, t, function() {}), delete o[t] | |
}) | |
}, | |
FY8A: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("g2s6"), | |
i = n("89xZ"), | |
a = n("1EXu").f, | |
n = n("hYRU"), | |
o = o(function() { | |
a(1) | |
}); | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: !n || o, | |
sham: !n | |
}, { | |
getOwnPropertyDescriptor: function(t, e) { | |
return a(i(t), e) | |
} | |
}) | |
}, | |
FgOo: function(t, e, n) { | |
var r, o, i, a, c, s, u, f, l = n("iKAX"), | |
p = n("j16E"), | |
d = n("nY95"), | |
h = n("VFIL"), | |
b = n("edxO"), | |
g = n("twmF"), | |
y = n("bQ5J"), | |
n = n("iBW0"), | |
v = "Object already initialized", | |
p = p.WeakMap; | |
u = l ? (r = g.state || (g.state = new p), o = r.get, i = r.has, a = r.set, c = function(t, e) { | |
if (i.call(r, t)) throw new TypeError(v); | |
return e.facade = t, a.call(r, t, e), e | |
}, s = function(t) { | |
return o.call(r, t) || {} | |
}, function(t) { | |
return i.call(r, t) | |
}) : (n[f = y("state")] = !0, c = function(t, e) { | |
if (b(t, f)) throw new TypeError(v); | |
return e.facade = t, h(t, f, e), e | |
}, s = function(t) { | |
return b(t, f) ? t[f] : {} | |
}, function(t) { | |
return b(t, f) | |
}), t.exports = { | |
set: c, | |
get: s, | |
has: u, | |
enforce: function(t) { | |
return u(t) ? s(t) : c(t, {}) | |
}, | |
getterFor: function(n) { | |
return function(t) { | |
var e; | |
if (!d(t) || (e = s(t)).type !== n) throw TypeError("Incompatible receiver, " + n + " required"); | |
return e | |
} | |
} | |
} | |
}, | |
GJ6r: function(t, e, n) { | |
"use strict"; | |
n.d(e, "d", function() { | |
return c | |
}), n.d(e, "f", function() { | |
return s | |
}), n.d(e, "a", function() { | |
return u | |
}), n.d(e, "c", function() { | |
return f | |
}), n.d(e, "b", function() { | |
return l | |
}), n.d(e, "e", function() { | |
return p | |
}); | |
var r = n("SbFU"), | |
o = n("w0s3"), | |
i = "object" == typeof navigator ? navigator.userAgent : "", | |
a = function() { | |
var t; | |
return (null === (t = null === (t = Object(r.i)()) || void 0 === t ? void 0 : t._env) || void 0 === t ? void 0 : t.env) || o.b | |
}, | |
c = function() { | |
return a() !== o.b | |
}, | |
s = function() { | |
return a() === o.n | |
}, | |
u = function() { | |
return /windows phone/i.test(i) ? "Windows Phone" : /android/i.test(i) ? "android" : /iPad|iPhone|iPod/.test(i) ? "ios" : "pc" | |
}, | |
f = function() { | |
return "ios" === u() | |
}, | |
l = function() { | |
return "development" === "production".trim() | |
}, | |
p = function() { | |
return s() && f() | |
} | |
}, | |
"Gd/C": function(t, e, n) { | |
var r = n("WgSG"), | |
o = n("j16E"), | |
i = function(t) { | |
return "function" == typeof t ? t : undefined | |
}; | |
t.exports = function(t, e) { | |
return arguments.length < 2 ? i(r[t]) || i(o[t]) : r[t] && r[t][e] || o[t] && o[t][e] | |
} | |
}, | |
GgRh: function(t, e, n) { | |
var r = n("j16E"), | |
n = n("nY95"), | |
o = r.document, | |
i = n(o) && n(o.createElement); | |
t.exports = function(t) { | |
return i ? o.createElement(t) : {} | |
} | |
}, | |
HF0W: function(t, e, n) { | |
n("tNbY")({ | |
target: "Object", | |
stat: !0, | |
sham: !n("hYRU") | |
}, { | |
create: n("Yp42") | |
}) | |
}, | |
HyyX: function(t, e, n) { | |
"use strict"; | |
n.d(e, "b", function() { | |
return o | |
}), n.d(e, "a", function() { | |
return r | |
}); | |
var r, o = ["email", "phone_number", "external_id", "sha256_email", "sha256_phone_number", "sha256_external_id"]; | |
(e = r = r || {}).EMPTY_VALUE = "empty_value", e.WRONG_FORMAT = "wrong_format", e.CORRECT_FORMAT = "correct_format", e.HASHED = "hashed", e.HASHED_ERR = "hashed_err", e.HASHED_CORRECT = "hashed_correct", e.PLAINTEXT_EMAIL = "plaintext_email", e.PLAINTEXT_PHONE = "plaintext_phone" | |
}, | |
Ijbi: function(t, e, n) { | |
var r = n("WkPL"); | |
t.exports = function(t) { | |
if (Array.isArray(t)) return r(t) | |
}, t.exports["default"] = t.exports, t.exports.__esModule = !0 | |
}, | |
Ivt0: function(t, e, n) { | |
"use strict"; | |
var r = n("tNbY"), | |
o = n("hYRU"), | |
i = n("ElIT"), | |
a = n("Xp4F"), | |
c = n("5BnI"), | |
s = n("tC/m"), | |
u = n("1EXu").f; | |
o && r({ | |
target: "Object", | |
proto: !0, | |
forced: i | |
}, { | |
__lookupSetter__: function(t) { | |
var e, n = a(this), | |
r = c(t, !0); | |
do { | |
if (e = u(n, r)) return e.set | |
} while (n = s(n)) | |
} | |
}) | |
}, | |
JMA6: function(t, e, n) { | |
var r = n("hYRU"), | |
a = n("jk77"), | |
c = n("uoAl"), | |
s = n("pO6F"); | |
t.exports = r ? Object.defineProperties : function(t, e) { | |
c(t); | |
for (var n, r = s(e), o = r.length, i = 0; i < o;) a.f(t, n = r[i++], e[n]); | |
return t | |
} | |
}, | |
KKIa: function(t, e, n) { | |
var r = n("tNbY"), | |
n = n("freY"); | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: Object.assign !== n | |
}, { | |
assign: n | |
}) | |
}, | |
KRib: function(t, e) { | |
var n = Math.ceil, | |
r = Math.floor; | |
t.exports = function(t) { | |
return isNaN(t = +t) ? 0 : (0 < t ? r : n)(t) | |
} | |
}, | |
L5Il: function(t, e) { | |
var n = 0, | |
r = Math.random(); | |
t.exports = function(t) { | |
return "Symbol(" + String(t === undefined ? "" : t) + ")_" + (++n + r).toString(36) | |
} | |
}, | |
Lk6y: function(t, e, n) { | |
var y = n("uoAl"), | |
v = n("7Kz8"), | |
m = n("OblR"), | |
_ = n("q7hU"), | |
x = n("C+w0"), | |
O = n("yYan"), | |
w = function(t, e) { | |
this.stopped = t, this.result = e | |
}; | |
t.exports = function(t, e, n) { | |
var r, o, i, a, c, s, u = n && n.that, | |
f = !(!n || !n.AS_ENTRIES), | |
l = !(!n || !n.IS_ITERATOR), | |
p = !(!n || !n.INTERRUPTED), | |
d = _(e, u, 1 + f + p), | |
h = function(t) { | |
return r && O(r), new w(!0, t) | |
}, | |
b = function(t) { | |
return f ? (y(t), p ? d(t[0], t[1], h) : d(t[0], t[1])) : p ? d(t, h) : d(t) | |
}; | |
if (l) r = t; | |
else { | |
if ("function" != typeof(l = x(t))) throw TypeError("Target is not iterable"); | |
if (v(l)) { | |
for (o = 0, i = m(t.length); o < i; o++) | |
if ((a = b(t[o])) && a instanceof w) return a; | |
return new w(!1) | |
} | |
r = l.call(t) | |
} | |
for (c = r.next; !(s = c.call(r)).done;) { | |
try { | |
a = b(s.value) | |
} catch (g) { | |
throw O(r), g | |
} | |
if ("object" == typeof a && a && a instanceof w) return a | |
} | |
return new w(!1) | |
} | |
}, | |
NoR1: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("Lk6y"), | |
i = n("dotx"); | |
r({ | |
target: "Object", | |
stat: !0 | |
}, { | |
fromEntries: function(t) { | |
var n = {}; | |
return o(t, function(t, e) { | |
i(n, t, e) | |
}, { | |
AS_ENTRIES: !0 | |
}), n | |
} | |
}) | |
}, | |
"O+no": function(t, e, n) { | |
var r = n("nY95"); | |
t.exports = function(t) { | |
if (!r(t) && null !== t) throw TypeError("Can't set " + String(t) + " as a prototype"); | |
return t | |
} | |
}, | |
OblR: function(t, e, n) { | |
var r = n("KRib"), | |
o = Math.min; | |
t.exports = function(t) { | |
return 0 < t ? o(r(t), 9007199254740991) : 0 | |
} | |
}, | |
PpL8: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("g2s6"), | |
n = n("/WcL").f; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: o(function() { | |
return !Object.getOwnPropertyNames(1) | |
}) | |
}, { | |
getOwnPropertyNames: n | |
}) | |
}, | |
Pt9r: function(t, e, n) { | |
n = n("mRBh"); | |
e.f = n | |
}, | |
R6QP: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("WuDU").values; | |
r({ | |
target: "Object", | |
stat: !0 | |
}, { | |
values: function(t) { | |
return o(t) | |
} | |
}) | |
}, | |
RIqP: function(t, e, n) { | |
var r = n("Ijbi"), | |
o = n("EbDI"), | |
i = n("ZhPi"), | |
a = n("Bnag"); | |
t.exports = function(t) { | |
return r(t) || o(t) || i(t) || a() | |
}, t.exports["default"] = t.exports, t.exports.__esModule = !0 | |
}, | |
Rdpx: function(t, e, n) { | |
var r = n("WgSG"), | |
o = n("edxO"), | |
i = n("Pt9r"), | |
a = n("jk77").f; | |
t.exports = function(t) { | |
var e = r.Symbol || (r.Symbol = {}); | |
o(e, t) || a(e, t, { | |
value: i.f(t) | |
}) | |
} | |
}, | |
SbFU: function(t, e, n) { | |
"use strict"; | |
n.d(e, "f", function() { | |
return c | |
}), n.d(e, "j", function() { | |
return s | |
}), n.d(e, "t", function() { | |
return u | |
}), n.d(e, "u", function() { | |
return f | |
}), n.d(e, "k", function() { | |
return l | |
}), n.d(e, "s", function() { | |
return p | |
}), n.d(e, "q", function() { | |
return d | |
}), n.d(e, "r", function() { | |
return h | |
}), n.d(e, "o", function() { | |
return b | |
}), n.d(e, "p", function() { | |
return g | |
}), n.d(e, "l", function() { | |
return y | |
}), n.d(e, "h", function() { | |
return m | |
}), n.d(e, "g", function() { | |
return _ | |
}), n.d(e, "m", function() { | |
return x | |
}), n.d(e, "i", function() { | |
return O | |
}), n.d(e, "n", function() { | |
return w | |
}), n.d(e, "e", function() { | |
return I | |
}), n.d(e, "d", function() { | |
return S | |
}), n.d(e, "a", function() { | |
return k | |
}), n.d(e, "b", function() { | |
return j | |
}), n.d(e, "c", function() { | |
return E | |
}), n.d(e, "v", function() { | |
return P | |
}); | |
var r = n("GJ6r"), | |
o = n("w0s3"), | |
i = n("HyyX"), | |
a = undefined && undefined.__spreadArrays || function() { | |
for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length; | |
for (var r = Array(t), o = 0, e = 0; e < n; e++) | |
for (var i = arguments[e], a = 0, c = i.length; a < c; a++, o++) r[o] = i[a]; | |
return r | |
}, | |
c = function() { | |
return O() | |
}, | |
s = function() { | |
return O()._i | |
}, | |
u = function(e, n) { | |
var r = O()._i; | |
Object.keys(r).forEach(function(t) { | |
t = r[t]; | |
t._init || t.push([e].concat(n)) | |
}) | |
}, | |
f = function(t, e, n) { | |
t = O()._i[t]; | |
t && (t._init || t.push([e].concat(n))) | |
}, | |
l = function() { | |
var t = O(); | |
return t._partner || "" | |
}, | |
p = function(t) { | |
return "string" == typeof t | |
}, | |
d = function(t) { | |
return "number" == typeof t | |
}, | |
h = function(t) { | |
return "[object Object]" == Object.prototype.toString.call(t) | |
}, | |
b = function(t) { | |
return "{}" === JSON.stringify(t) | |
}, | |
g = function() { | |
var t = O(); | |
return t && t.initialize | |
}, | |
y = function(t, e) { | |
return v() + "?sdkid=" + t + "&hostname=" + e | |
}, | |
v = function() { | |
return Object(r.b)() ? "/config.js" : o.a | |
}, | |
m = function() { | |
return Object(r.b)() ? "/enable_cookie.js" : o.f | |
}, | |
_ = function() { | |
return Object(r.b)() ? "/disable_cookie.js" : o.d | |
}, | |
x = function() { | |
return "object" == typeof window && window[o.g] || o.c | |
}, | |
O = function() { | |
return "object" == typeof window && window[x()] | |
}, | |
w = function() { | |
try { | |
return O()._variation_id | |
} catch (t) { | |
return "" | |
} | |
}, | |
I = function(t) { | |
return t + "-" + Date.now() + "-" + (Math.floor(Math.random() * (9e12 - 1)) + 1e12) | |
}, | |
S = function(t, e) { | |
return t + "-" + e | |
}, | |
k = function(e, n) { | |
if (!e) return null; | |
var r = {}; | |
return Object.keys(e).forEach(function(t) { | |
n[t] && (r[t] = e[t]) | |
}), r | |
}, | |
j = function(n, t) { | |
var r = { | |
identity_params: {} | |
}; | |
return 0 === Object.keys(n).length ? {} : (Object.entries(t).forEach(function(t) { | |
var e = t[0]; | |
t[1] && (r.identity_params && (r.identity_params[e] = [i.a.EMPTY_VALUE]), n[e] && (t = n[e] || [i.a.EMPTY_VALUE], r.identity_params && (r.identity_params[e] = a(t)))) | |
}), r) | |
}, | |
E = function() { | |
return new Date(Date.now() + 864e5).toUTCString() | |
}; | |
function P(t, e, n) { | |
return void 0 === t && (t = 0), void 0 === e && (e = Number.MIN_SAFE_INTEGER), t < (n = void 0 === n ? Number.MAX_SAFE_INTEGER : n) && e <= t | |
} | |
}, | |
Si2v: function(t, e) { | |
e.f = Object.getOwnPropertySymbols | |
}, | |
Thaq: function(t, e, n) { | |
var r = n("eKW+"), | |
o = n("twmF"); | |
(t.exports = function(t, e) { | |
return o[t] || (o[t] = e !== undefined ? e : {}) | |
})("versions", []).push({ | |
version: "3.11.0", | |
mode: r ? "pure" : "global", | |
copyright: "© 2021 Denis Pushkarev (zloirock.ru)" | |
}) | |
}, | |
Tuz7: function(t, e, n) { | |
var a = n("edxO"), | |
c = n("89xZ"), | |
s = n("Vl7W").indexOf, | |
u = n("iBW0"); | |
t.exports = function(t, e) { | |
var n, r = c(t), | |
o = 0, | |
i = []; | |
for (n in r) !a(u, n) && a(r, n) && i.push(n); | |
for (; e.length > o;) a(r, n = e[o++]) && (~s(i, n) || i.push(n)); | |
return i | |
} | |
}, | |
Ujv9: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("nY95"), | |
i = n("9Zby").onFreeze, | |
a = n("j3DO"), | |
n = n("g2s6"), | |
c = Object.seal; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: n(function() { | |
c(1) | |
}), | |
sham: !a | |
}, { | |
seal: function(t) { | |
return c && o(t) ? c(i(t)) : t | |
} | |
}) | |
}, | |
VFIL: function(t, e, n) { | |
var r = n("hYRU"), | |
o = n("jk77"), | |
i = n("ywqg"); | |
t.exports = r ? function(t, e, n) { | |
return o.f(t, e, i(1, n)) | |
} : function(t, e, n) { | |
return t[e] = n, t | |
} | |
}, | |
"Vi/0": function(t, e, n) { | |
n = n("ByEr"); | |
t.exports = n && !Symbol.sham && "symbol" == typeof Symbol.iterator | |
}, | |
Vl7W: function(t, e, n) { | |
var s = n("89xZ"), | |
u = n("OblR"), | |
f = n("/EAr"), | |
n = function(c) { | |
return function(t, e, n) { | |
var r, o = s(t), | |
i = u(o.length), | |
a = f(n, i); | |
if (c && e != e) { | |
for (; a < i;) | |
if ((r = o[a++]) != r) return !0 | |
} else | |
for (; a < i; a++) | |
if ((c || a in o) && o[a] === e) return c || a || 0; | |
return !c && -1 | |
} | |
}; | |
t.exports = { | |
includes: n(!0), | |
indexOf: n(!1) | |
} | |
}, | |
WgSG: function(t, e, n) { | |
n = n("j16E"); | |
t.exports = n | |
}, | |
WkPL: function(t, e) { | |
t.exports = function(t, e) { | |
(null == e || e > t.length) && (e = t.length); | |
for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n]; | |
return r | |
}, t.exports["default"] = t.exports, t.exports.__esModule = !0 | |
}, | |
WuDU: function(t, e, n) { | |
var s = n("hYRU"), | |
u = n("pO6F"), | |
f = n("89xZ"), | |
l = n("kr2p").f, | |
n = function(c) { | |
return function(t) { | |
for (var e, n = f(t), r = u(n), o = r.length, i = 0, a = []; i < o;) e = r[i++], s && !l.call(n, e) || a.push(c ? [e, n[e]] : n[e]); | |
return a | |
} | |
}; | |
t.exports = { | |
entries: n(!0), | |
values: n(!1) | |
} | |
}, | |
Xp4F: function(t, e, n) { | |
var r = n("eVlr"); | |
t.exports = function(t) { | |
return Object(r(t)) | |
} | |
}, | |
Yp42: function(t, e, n) { | |
var r, o = n("uoAl"), | |
i = n("JMA6"), | |
a = n("mzWg"), | |
c = n("iBW0"), | |
s = n("dhZJ"), | |
u = n("GgRh"), | |
n = n("bQ5J"), | |
f = "prototype", | |
l = "script", | |
p = n("IE_PROTO"), | |
d = function() {}, | |
h = function(t) { | |
return "<script>" + t + "</" + l + ">" | |
}, | |
b = function() { | |
try { | |
r = document.domain && new ActiveXObject("htmlfile") | |
} catch (n) {} | |
var t; | |
b = r ? function(t) { | |
t.write(h("")), t.close(); | |
var e = t.parentWindow.Object; | |
return t = null, e | |
}(r) : ((t = u("iframe")).style.display = "none", s.appendChild(t), t.src = String("javascript:"), (t = t.contentWindow.document).open(), t.write(h("document.F=Object")), t.close(), t.F); | |
for (var e = a.length; e--;) delete b[f][a[e]]; | |
return b() | |
}; | |
c[p] = !0, t.exports = Object.create || function(t, e) { | |
var n; | |
return null !== t ? (d[f] = o(t), n = new d, d[f] = null, n[p] = t) : n = b(), e === undefined ? n : i(n, e) | |
} | |
}, | |
ZMju: function(t, e, n) { | |
"use strict"; | |
var r = n("uoY4"), | |
o = n("2gBf"); | |
t.exports = r ? {}.toString : function() { | |
return "[object " + o(this) + "]" | |
} | |
}, | |
ZhPi: function(t, e, n) { | |
var r = n("WkPL"); | |
t.exports = function(t, e) { | |
if (t) { | |
if ("string" == typeof t) return r(t, e); | |
var n = Object.prototype.toString.call(t).slice(8, -1); | |
return "Map" === (n = "Object" === n && t.constructor ? t.constructor.name : n) || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? r(t, e) : void 0 | |
} | |
}, t.exports["default"] = t.exports, t.exports.__esModule = !0 | |
}, | |
aJVn: function(t, e, n) { | |
var c = n("edxO"), | |
s = n("wUKj"), | |
u = n("1EXu"), | |
f = n("jk77"); | |
t.exports = function(t, e) { | |
for (var n = s(e), r = f.f, o = u.f, i = 0; i < n.length; i++) { | |
var a = n[i]; | |
c(t, a) || r(t, a, o(e, a)) | |
} | |
} | |
}, | |
ah02: function(t, e, n) { | |
"use strict"; | |
var r = n("tNbY"), | |
o = n("hYRU"), | |
i = n("ElIT"), | |
a = n("Xp4F"), | |
c = n("mb4w"), | |
s = n("jk77"); | |
o && r({ | |
target: "Object", | |
proto: !0, | |
forced: i | |
}, { | |
__defineSetter__: function __defineSetter__(t, e) { | |
s.f(a(this), t, { | |
set: c(e), | |
enumerable: !0, | |
configurable: !0 | |
}) | |
} | |
}) | |
}, | |
bQ5J: function(t, e, n) { | |
var r = n("Thaq"), | |
o = n("L5Il"), | |
i = r("keys"); | |
t.exports = function(t) { | |
return i[t] || (i[t] = o(t)) | |
} | |
}, | |
blhV: function(t, e, n) { | |
n("npvp")(Math, "Math", !0) | |
}, | |
cKix: function(t, e, n) { | |
var r = n("j16E"), | |
o = n("VFIL"); | |
t.exports = function(t, e) { | |
try { | |
o(r, t, e) | |
} catch (n) { | |
r[t] = e | |
} | |
return e | |
} | |
}, | |
cpc2: function(t, e, n) { | |
function r(t) { | |
if (t) return function(t) { | |
for (var e in r.prototype) t[e] = r.prototype[e]; | |
return t | |
}(t) | |
}(t.exports = r).prototype.on = r.prototype.addEventListener = function(t, e) { | |
return this._callbacks = this._callbacks || {}, (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(e), this | |
}, r.prototype.once = function(t, e) { | |
function n() { | |
this.off(t, n), e.apply(this, arguments) | |
} | |
return n.fn = e, this.on(t, n), this | |
}, r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function(t, e) { | |
if (this._callbacks = this._callbacks || {}, 0 == arguments.length) return this._callbacks = {}, this; | |
var n, r = this._callbacks["$" + t]; | |
if (!r) return this; | |
if (1 == arguments.length) return delete this._callbacks["$" + t], this; | |
for (var o = 0; o < r.length; o++) | |
if ((n = r[o]) === e || n.fn === e) { | |
r.splice(o, 1); | |
break | |
} return 0 === r.length && delete this._callbacks["$" + t], this | |
}, r.prototype.emit = function(t) { | |
this._callbacks = this._callbacks || {}; | |
for (var e = new Array(arguments.length - 1), n = this._callbacks["$" + t], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; | |
if (n) | |
for (var r = 0, o = (n = n.slice(0)).length; r < o; ++r) n[r].apply(this, e); | |
return this | |
}, r.prototype.listeners = function(t) { | |
return this._callbacks = this._callbacks || {}, this._callbacks["$" + t] || [] | |
}, r.prototype.hasListeners = function(t) { | |
return !!this.listeners(t).length | |
} | |
}, | |
dhZJ: function(t, e, n) { | |
n = n("Gd/C"); | |
t.exports = n("document", "documentElement") | |
}, | |
dotx: function(t, e, n) { | |
"use strict"; | |
var r = n("5BnI"), | |
o = n("jk77"), | |
i = n("ywqg"); | |
t.exports = function(t, e, n) { | |
e = r(e); | |
e in t ? o.f(t, e, i(0, n)) : t[e] = n | |
} | |
}, | |
"eKW+": function(t, e) { | |
t.exports = !1 | |
}, | |
eT3W: function(t, e, n) { | |
var c = n("j16E"), | |
s = n("VFIL"), | |
u = n("edxO"), | |
f = n("cKix"), | |
r = n("ARxZ"), | |
n = n("FgOo"), | |
o = n.get, | |
l = n.enforce, | |
p = String(String).split("String"); | |
(t.exports = function(t, e, n, r) { | |
var o = !!r && !!r.unsafe, | |
i = !!r && !!r.enumerable, | |
a = !!r && !!r.noTargetGet; | |
"function" == typeof n && ("string" != typeof e || u(n, "name") || s(n, "name", e), (r = l(n)).source || (r.source = p.join("string" == typeof e ? e : ""))), t !== c ? (o ? !a && t[e] && (i = !0) : delete t[e], i ? t[e] = n : s(t, e, n)) : i ? t[e] = n : f(e, n) | |
})(Function.prototype, "toString", function() { | |
return "function" == typeof this && o(this).source || r(this) | |
}) | |
}, | |
eVlr: function(t, e) { | |
t.exports = function(t) { | |
if (t == undefined) throw TypeError("Can't call method on " + t); | |
return t | |
} | |
}, | |
edxO: function(t, e, n) { | |
var r = n("Xp4F"), | |
o = {}.hasOwnProperty; | |
t.exports = function(t, e) { | |
return o.call(r(t), e) | |
} | |
}, | |
f2VU: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("WuDU").entries; | |
r({ | |
target: "Object", | |
stat: !0 | |
}, { | |
entries: function(t) { | |
return o(t) | |
} | |
}) | |
}, | |
fKdN: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("hYRU"), | |
s = n("wUKj"), | |
u = n("89xZ"), | |
f = n("1EXu"), | |
l = n("dotx"); | |
r({ | |
target: "Object", | |
stat: !0, | |
sham: !o | |
}, { | |
getOwnPropertyDescriptors: function(t) { | |
for (var e, n, r = u(t), o = f.f, i = s(r), a = {}, c = 0; i.length > c;)(n = o(r, e = i[c++])) !== undefined && l(a, e, n); | |
return a | |
} | |
}) | |
}, | |
fe1q: function(t, e, n) { | |
"use strict"; | |
n.d(e, "c", function() { | |
return r | |
}), n.d(e, "a", function() { | |
return i | |
}), n.d(e, "b", function() { | |
return a | |
}); | |
var o = n("SbFU"); | |
function r() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
try { | |
var n = Object(o.i)().monitor; | |
n && n.info.apply(n, t) | |
} catch (r) {} | |
} | |
function i() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
try { | |
var n = Object(o.i)().monitor; | |
n && n.error.apply(n, t) | |
} catch (r) {} | |
} | |
function a() { | |
try { | |
0; | |
var t = document && document.currentScript && document.currentScript.src || "http://emptyURLSrc", | |
e = /i18n\/pixel\/events\.js/.test(t), | |
n = /i18n\/pixel\/sdk\.js/.test(t), | |
r = new URL(t).searchParams; | |
return e ? { | |
lib: r.get("lib") || "ttq", | |
pixelCode: r.get("sdkid") || "" | |
} : n ? { | |
lib: "_taq", | |
pixelCode: r.get("sdkid") || "" | |
} : { | |
lib: "ttq", | |
pixelCode: "" | |
} | |
} catch (o) { | |
return { | |
lib: "ttq", | |
pixelCode: "" | |
} | |
} | |
} | |
}, | |
freY: function(t, e, n) { | |
"use strict"; | |
var p = n("hYRU"), | |
r = n("g2s6"), | |
d = n("pO6F"), | |
h = n("Si2v"), | |
b = n("kr2p"), | |
g = n("Xp4F"), | |
y = n("vcnZ"), | |
o = Object.assign, | |
i = Object.defineProperty; | |
t.exports = !o || r(function() { | |
if (p && 1 !== o({ | |
b: 1 | |
}, o(i({}, "a", { | |
enumerable: !0, | |
get: function() { | |
i(this, "b", { | |
value: 3, | |
enumerable: !1 | |
}) | |
} | |
}), { | |
b: 2 | |
})).b) return !0; | |
var t = {}, | |
e = {}, | |
n = Symbol(), | |
r = "abcdefghijklmnopqrst"; | |
return t[n] = 7, r.split("").forEach(function(t) { | |
e[t] = t | |
}), 7 != o({}, t)[n] || d(o({}, e)).join("") != r | |
}) ? function(t, e) { | |
for (var n = g(t), r = arguments.length, o = 1, i = h.f, a = b.f; o < r;) | |
for (var c, s = y(arguments[o++]), u = i ? d(s).concat(i(s)) : d(s), f = u.length, l = 0; l < f;) c = u[l++], p && !a.call(s, c) || (n[c] = s[c]); | |
return n | |
} : o | |
}, | |
g2s6: function(t, e) { | |
t.exports = function(t) { | |
try { | |
return !!t() | |
} catch (e) { | |
return !0 | |
} | |
} | |
}, | |
gsVl: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("j3DO"), | |
i = n("g2s6"), | |
a = n("nY95"), | |
c = n("9Zby").onFreeze, | |
s = Object.freeze; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: i(function() { | |
s(1) | |
}), | |
sham: !o | |
}, { | |
freeze: function(t) { | |
return s && a(t) ? s(c(t)) : t | |
} | |
}) | |
}, | |
hYRU: function(t, e, n) { | |
n = n("g2s6"); | |
t.exports = !n(function() { | |
return 7 != Object.defineProperty({}, 1, { | |
get: function() { | |
return 7 | |
} | |
})[1] | |
}) | |
}, | |
iBW0: function(t, e) { | |
t.exports = {} | |
}, | |
iGP5: function(t, e, n) { | |
n = n("g2s6"); | |
t.exports = !n(function() { | |
function t() {} | |
return t.prototype.constructor = null, Object.getPrototypeOf(new t) !== t.prototype | |
}) | |
}, | |
iKAX: function(t, e, n) { | |
var r = n("j16E"), | |
n = n("ARxZ"), | |
r = r.WeakMap; | |
t.exports = "function" == typeof r && /native code/.test(n(r)) | |
}, | |
ilFY: function(t, e, n) { | |
var r = n("lWKF"), | |
n = n("j16E"); | |
t.exports = "process" == r(n.process) | |
}, | |
j16E: function(n, t, e) { | |
! function(t) { | |
var e = function(t) { | |
return t && t.Math == Math && t | |
}; | |
n.exports = e("object" == typeof globalThis && globalThis) || e("object" == typeof window && window) || e("object" == typeof self && self) || e("object" == typeof t && t) || function() { | |
return this | |
}() || Function("return this")() | |
}.call(this, e("yLpj")) | |
}, | |
j3DO: function(t, e, n) { | |
n = n("g2s6"); | |
t.exports = !n(function() { | |
return Object.isExtensible(Object.preventExtensions({})) | |
}) | |
}, | |
jk77: function(t, e, n) { | |
var r = n("hYRU"), | |
o = n("/XoZ"), | |
i = n("uoAl"), | |
a = n("5BnI"), | |
c = Object.defineProperty; | |
e.f = r ? c : function(t, e, n) { | |
if (i(t), e = a(e, !0), i(n), o) try { | |
return c(t, e, n) | |
} catch (r) {} | |
if ("get" in n || "set" in n) throw TypeError("Accessors not supported"); | |
return "value" in n && (t[e] = n.value), t | |
} | |
}, | |
kr2p: function(t, e, n) { | |
"use strict"; | |
var r = {}.propertyIsEnumerable, | |
o = Object.getOwnPropertyDescriptor, | |
i = o && !r.call({ | |
1: 2 | |
}, 1); | |
e.f = i ? function(t) { | |
t = o(this, t); | |
return !!t && t.enumerable | |
} : r | |
}, | |
lWKF: function(t, e) { | |
var n = {}.toString; | |
t.exports = function(t) { | |
return n.call(t).slice(8, -1) | |
} | |
}, | |
mFs5: function(t, e, n) { | |
"use strict"; | |
n.d(e, "a", function() { | |
return r | |
}); | |
var r = ["phone_number", "email", "external_id"] | |
}, | |
mRBh: function(t, e, n) { | |
var r = n("j16E"), | |
o = n("Thaq"), | |
i = n("edxO"), | |
a = n("L5Il"), | |
c = n("ByEr"), | |
n = n("Vi/0"), | |
s = o("wks"), | |
u = r.Symbol, | |
f = n ? u : u && u.withoutSetter || a; | |
t.exports = function(t) { | |
return i(s, t) && (c || "string" == typeof s[t]) || (c && i(u, t) ? s[t] = u[t] : s[t] = f("Symbol." + t)), s[t] | |
} | |
}, | |
mb4w: function(t, e) { | |
t.exports = function(t) { | |
if ("function" != typeof t) throw TypeError(String(t) + " is not a function"); | |
return t | |
} | |
}, | |
mzWg: function(t, e) { | |
t.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"] | |
}, | |
nY95: function(t, e) { | |
t.exports = function(t) { | |
return "object" == typeof t ? null !== t : "function" == typeof t | |
} | |
}, | |
ncq0: function(t, e) { | |
t.exports = {} | |
}, | |
npvp: function(t, e, n) { | |
var r = n("jk77").f, | |
o = n("edxO"), | |
i = n("mRBh")("toStringTag"); | |
t.exports = function(t, e, n) { | |
t && !o(t = n ? t : t.prototype, i) && r(t, i, { | |
configurable: !0, | |
value: e | |
}) | |
} | |
}, | |
"oe+7": function(t, e, n) { | |
"use strict"; | |
n.r(e); | |
n("ya48"); | |
var f = n("SbFU"); | |
function r() {} | |
new(r.prototype.log = function() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
t[0] = "[TT] " + t[0], this.console && this.console.log.apply(this.console, t) | |
}, r.prototype.info = function() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
this.group(t.shift() + "💡"), t.unshift("=>"), this.console && this.console.info.apply(this.console, t), this.groupEnd() | |
}, r.prototype.warn = function() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
t[0] = "[TT] " + t[0], this.console && this.console.warn.apply(this.console, t) | |
}, r.prototype.error = function() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
t[0] = "[TT] " + t[0], this.console && this.console.error.apply(this.console, t) | |
}, r.prototype.group = function() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
t[0] = "[TT] " + t[0], this.console && this.console.group.apply(this.console, t) | |
}, r.prototype.groupEnd = function() { | |
this.console && this.console.groupEnd.apply(this.console, ["groupEnd"]) | |
}, r); | |
var u, o = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
i = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}, | |
a = function(e, n) { | |
return void 0 === n && (n = 1), o(this, void 0, void 0, function() { | |
return i(this, function(t) { | |
switch (t.label) { | |
case 0: | |
if (!(0 <= n)) return [3, 5]; | |
t.label = 1; | |
case 1: | |
return t.trys.push([1, 3, , 4]), [4, (o = e, new Promise(function(t, e) { | |
var n = document.createElement("script"); | |
n.type = "text/javascript", n["async"] = !0, n.src = o; | |
var r = document.getElementsByTagName("script")[0]; | |
r && r.parentNode ? r.parentNode.insertBefore(n, r) : e("none element"), n.onload = function() { | |
t() | |
}, n.onerror = e | |
}))]; | |
case 2: | |
return t.sent(), [2, Promise.resolve(!0)]; | |
case 3: | |
return t.sent(), [2, a.call(null, e, n - 1)]; | |
case 4: | |
return [3, 6]; | |
case 5: | |
throw Error; | |
case 6: | |
return [2] | |
} | |
var o | |
}) | |
}) | |
}; | |
(O = u = u || {}).TRACK = "track", O.PERFORMANCE = "performance", O.INTERACTION = "interaction", O.PCM = "PCM"; | |
var c = n("GJ6r"), | |
s = (l.prototype.setAdvancedMatchingAvailableProperties = function(t) { | |
this.advancedMatchingAvailableProperties = Object.assign({}, this.advancedMatchingAvailableProperties, t) | |
}, l.prototype.setPixelInfo = function(t) { | |
this.name = t.name, this.status = t.status, this.setupMode = t.setupMode, this.advertiserID = t.advertiserID, this.partner = t.partner, this.is_onsite = t.is_onsite | |
}, l.prototype.getUserInfo = function() { | |
var t = this.context.methods.getUserInfo(); | |
return Object(f.a)(t, this.advancedMatchingAvailableProperties) | |
}, l.prototype.getPixelMatchedUserFormatInfo = function() { | |
var t = this.context.methods.getUserFormatInfo(); | |
return Object(f.b)(t, this.advancedMatchingAvailableProperties) | |
}, l.prototype.track = function(t, e) { | |
var n = this; | |
this.getInstance().then(function() { | |
n.context.methods.track(n.pixelCode, t, e, u.TRACK); | |
Object(c.e)() && !n.context.methods.isOnSitePage() && n.context.methods.trackPCM(n.pixelCode, t, e) | |
}) | |
}, l); | |
function l(t) { | |
this.advancedMatchingAvailableProperties = { | |
external_id: !0 | |
}; | |
var e = t.pixelCode, | |
t = t.context; | |
this.pixelCode = e, this.context = t, this.loaded = !1, this.pixelPromise = this.getInstance() | |
} | |
var p, d, e = undefined && undefined.__extends || (p = function(t, e) { | |
return (p = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, e) { | |
t.__proto__ = e | |
} || function(t, e) { | |
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) | |
})(t, e) | |
}, function(t, e) { | |
function n() { | |
this.constructor = t | |
} | |
p(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n) | |
}), | |
h = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
b = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}, | |
g = (e(y, d = s), y.prototype.identify = function(t, e) { | |
t && (Object(f.s)(t) || Object(f.q)(t) ? this.context.setUserInfo({ | |
external_id: t.toString() | |
}) : Object(f.r)(t) && this.context.setUserInfo(t)), e && Object(f.r)(e) && this.context.setUserInfo(e) | |
}, y.prototype.page = function(t) { | |
window.location.href !== this.currentHref && (this.track("Pageview", t), this.currentHref = window.location.href) | |
}, y.prototype.getInstance = function() { | |
return h(this, void 0, void 0, function() { | |
var n = this; | |
return b(this, function(t) { | |
return this.pixelPromise || (this.pixelPromise = new Promise(function(t, e) { | |
a(Object(f.l)(n.pixelCode, location && location.hostname)).then(function() { | |
n.loaded = !0, t(n) | |
})["catch"](function(t) { | |
n.pixelPromise = null, e(t) | |
}) | |
})), [2, this.pixelPromise] | |
}) | |
}) | |
}, y); | |
function y(t) { | |
t = d.call(this, t) || this; | |
return t.currentHref = "", t | |
} | |
var v = (m.prototype.setAdvancedMatchingAvailableProperties = function(t) {}, m.prototype.getUserInfo = function() { | |
return {} | |
}, m.prototype.getPixelMatchedUserFormatInfo = function() { | |
return {} | |
}, m.prototype.page = function() {}, m.prototype.track = function(t, e) { | |
Object(f.u)(this.pixelCode, "track", [t, e]) | |
}, m.prototype.setPixelInfo = function(t) {}, m); | |
function m(t) { | |
this.pixelCode = "", this.loaded = !1, this.status = 1, this.name = "", this.advertiserID = "", this.setupMode = 0, this.partner = "", this.is_onsite = !1, this.pixelCode = t | |
} | |
new v("empty"); | |
var _ = n("fe1q"), | |
x = n("/6w+"), | |
O = (w.prototype.loadPixel = function(t) { | |
Object(f.s)(t) && (this.context.methods.getPixel(t) || (t = this.createPixel(t), this.context.methods.addPixel(t))) | |
}, w.prototype.setPageInfo = function(t, e) { | |
this.context.methods.setPageInfo(t, e) | |
}, w.prototype.usePlugin = function(t) { | |
try { | |
var e = new t(this.context); | |
this.context.usePlugin(e) | |
} catch (n) {} | |
}, w.prototype.useDynamicPlugin = function(t) { | |
try { | |
var e = t(this.context); | |
this.context.usePlugin(e) | |
} catch (n) { | |
console.error("use dynamic plugin failed") | |
} | |
}, w.prototype.instance = function(t) { | |
var e = this.context.methods.getPixel(t); | |
return e || (Object(_.a)(x.a.PIXEL_EMPTY, { | |
message: "", | |
stack: "" | |
}, { | |
pixelCode: t | |
}), new v(t)) | |
}, w.prototype.instances = function() { | |
return this.context.methods.getAllPixels() | |
}, w.prototype.identify = function(t, e) { | |
t && (Object(f.s)(t) || Object(f.q)(t) ? this.context.setUserInfo({ | |
external_id: t.toString() | |
}) : Object(f.r)(t) && this.context.setUserInfo(t)), e && Object(f.r)(e) && this.context.setUserInfo(e) | |
}, w.prototype.page = function(e) { | |
this.instances().forEach(function(t) { | |
t.page(e) | |
}) | |
}, w.prototype.track = function(e, n) { | |
this.instances().forEach(function(t) { | |
t.track(e, n) | |
}) | |
}, w); | |
function w() { | |
this.initialize = !0 | |
} | |
var I = function(t) { | |
var e = S(window.location.href, t); | |
return e || S(document.referrer, t) | |
}; | |
function S(t, e) { | |
try { | |
return new URL(t).searchParams.get(e) || "" | |
} catch (n) { | |
return "" | |
} | |
} | |
var k = ["ac", "ad", "ae", "af", "ag", "ai", "al", "am", "ao", "aq", "ar", "as", "at", "au", "aw", "ax", "az", "ba", "bb", "bd", "be", "bf", "bg", "bh", "bi", "bj", "bm", "bn", "bo", "br", "bs", "bt", "bw", "by", "bz", "ca", "cc", "cd", "cf", "cg", "ch", "ci", "ck", "cl", "cm", "cn", "co", "cr", "cu", "cv", "cw", "cx", "cy", "cz", "de", "dj", "dk", "dm", "do", "dz", "ec", "ee", "eg", "er", "es", "et", "eu", "fi", "fj", "fk", "fm", "fo", "fr", "ga", "gd", "ge", "gf", "gg", "gh", "gi", "gl", "gm", "gn", "gp", "gq", "gr", "gs", "gt", "gu", "gw", "gy", "hk", "hm", "hn", "hr", "ht", "hu", "id", "ie", "il", "im", "in", "io", "iq", "ir", "is", "it", "je", "jm", "jo", "jp", "ke", "kg", "kh", "ki", "km", "kn", "kp", "kr", "kw", "ky", "kz", "la", "lb", "lc", "li", "lk", "lr", "ls", "lt", "lu", "lv", "ly", "ma", "mc", "md", "me", "mg", "mh", "mk", "ml", "mm", "mn", "mo", "mp", "mq", "mr", "ms", "mt", "mu", "mv", "mw", "mx", "my", "mz", "na", "nc", "ne", "nf", "ng", "ni", "nl", "no", "np", "nr", "nu", "nz", "om", "pa", "pe", "pf", "pg", "ph", "pk", "pl", "pm", "pn", "pr", "ps", "pt", "pw", "py", "qa", "re", "ro", "rs", "ru", "rw", "sa", "sb", "sc", "sd", "se", "sg", "sh", "si", "sk", "sl", "sm", "sn", "so", "sr", "ss", "st", "su", "sv", "sx", "sy", "sz", "tc", "td", "tf", "tg", "th", "tj", "tk", "tl", "tm", "tn", "to", "tr", "tt", "tv", "tw", "tz", "ua", "ug", "uk", "us", "uy", "uz", "va", "vc", "ve", "vg", "vi", "vn", "vu", "wf", "ws", "ye", "yt", "za", "zm", "zw", "bar", "bible", "biz", "church", "club", "college", "com", "design", "dev", "download", "eco", "eus", "google", "green", "hiv", "icu", "info", "kaufen", "kiwi", "lat", "lgbt", "moe", "name", "net", "ninja", "ngo", "one", "ong", "ooo", "org", "top", "pro", "wiki", "wtf", "xyz", "app", "aero", "asia", "cat", "coop", "edu", "gov", "int", "jobs", "mil", "mobi", "museum", "post", "tel", "travel", "xxx", "africa", "alsace", "amsterdam", "bcn", "berlin", "brussels", "bzh", "cymru", "eu", "eus", "frl", "gal", "gent", "irish", "ist ", "istanbul", "kiwi", "krd", "lat", "london", "melbourne", "miami", "nyc", "paris", "quebec", "rio", "saarland", "scot", "sydney", "taipei", "tokyo", "vegas", "vlaanderen", "wales", "wien", "arpa", "nato", "example", "invalid", "localhost", "test", "onion", "bit", "bitnet", "csnet", "exit", "local", "onion", "root", "uucp", "chn", "africa", "bcn", "wales", "bzh", "cym", "cymru", "eng", "lli", "sic", "wales", "geo", "mail", "web", "free", "kid", "kids", "music", "bl ", "bq ", "eh ", "mf", "bv ", "gb ", "sj", "an ", "bu ", "cs ", "dd ", "tp ", "um ", "yu ", "zr"], | |
j = function(t) { | |
var e = (t = void 0 === t ? window.location.hostname : t).split("."), | |
n = e.length; | |
if (!isNaN(Number.parseInt(e[n - 1]))) return t; | |
for (var r = []; e.length;) { | |
var o = e.pop(); | |
if (!o) break; | |
if (r.unshift(o), -1 === k.indexOf(o)) break | |
} | |
return "." + r.join(".") | |
}, | |
E = function() { | |
var t, e, n, r, o = I("tt_test_id"), | |
i = function(t) { | |
if (0 < document.cookie.length) { | |
var e = document.cookie.indexOf(t + "="); | |
if (-1 !== e) { | |
e = e + t.length + 1, t = document.cookie.indexOf(";", e); | |
return -1 === t ? unescape(document.cookie.substring(e)) : unescape(document.cookie.substring(e, t)) | |
} | |
} | |
return "" | |
}("tt_test_id"); | |
return o && o !== i && (t = "tt_test_id", e = o, void 0 === (n = undefined) && (n = "/"), void 0 === (r = "session") && (r = Object(f.c)()), document.cookie = t + "=" + e + "; expires=" + r + "; path=" + n + ";domain=" + j()), o || i | |
}, | |
P = function(n) { | |
for (var r = [], t = 1; t < arguments.length; t++) r[t - 1] = arguments[t]; | |
try { | |
var e = Object(f.i)() || []; | |
e.context && e.context.plugins && e.context.plugins.forEach(function(t) { | |
if ("function" == typeof t[n]) try { | |
t[n].apply(t, r) | |
} catch (e) { | |
Object(_.a)(x.a.PLUGIN_ERROR, e, { | |
extJSON: { | |
plugin_name: t.name, | |
cycle_name: n, | |
data: r | |
} | |
}) | |
} | |
}) | |
} catch (o) {} | |
}, | |
A = function(t) { | |
try { | |
var e = window.sessionStorage.getItem(t); | |
return e ? JSON.parse(e) : null | |
} catch (n) { | |
return null | |
} | |
}, | |
T = function(t, e) { | |
try { | |
var n = JSON.stringify(e); | |
window.sessionStorage.setItem(t, n) | |
} catch (r) {} | |
}, | |
e = Object(f.i)() || []; | |
e.identifyPlugin ? L = e.identifyPlugin : (J = n("wK/p")["default"], e.identifyPlugin = L = new J, L.init()); | |
var C, N, R, M, F, D, B = L, | |
s = n("RIqP"), | |
e = "function" == typeof atob, | |
J = "function" == typeof btoa, | |
L = "function" == typeof Buffer, | |
U = "function" == typeof TextDecoder ? new TextDecoder : undefined, | |
Y = "function" == typeof TextEncoder ? new TextEncoder : undefined, | |
H = s("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="), | |
W = (C = {}, H.forEach(function(t, e) { | |
return C[t] = e | |
}), C), | |
z = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, | |
X = String.fromCharCode.bind(String), | |
G = "function" == typeof Uint8Array.from ? Uint8Array.from.bind(Uint8Array) : function(t) { | |
var e = 1 < arguments.length && arguments[1] !== undefined ? arguments[1] : function(t) { | |
return t | |
}; | |
return new Uint8Array(Array.prototype.slice.call(t, 0).map(e)) | |
}, | |
q = function q(t) { | |
return t.replace(/[+\/]/g, function(t) { | |
return "+" == t ? "-" : "_" | |
}).replace(/=+$/m, "") | |
}, | |
K = function K(t) { | |
return t.replace(/[^A-Za-z0-9\+\/]/g, "") | |
}, | |
V = function V(t) { | |
for (var e, n, r, o = "", i = t.length % 3, a = 0; a < t.length;) { | |
if (255 < (e = t.charCodeAt(a++)) || 255 < (n = t.charCodeAt(a++)) || 255 < (r = t.charCodeAt(a++))) throw new TypeError("invalid character found"); | |
o += H[(e = e << 16 | n << 8 | r) >> 18 & 63] + H[e >> 12 & 63] + H[e >> 6 & 63] + H[63 & e] | |
} | |
return i ? o.slice(0, i - 3) + "===".substring(i) : o | |
}, | |
Z = J ? function(t) { | |
return btoa(t) | |
} : L ? function(t) { | |
return Buffer.from(t, "binary").toString("base64") | |
} : V, | |
Q = L ? function(t) { | |
return Buffer.from(t).toString("base64") | |
} : function(t) { | |
for (var e = [], n = 0, r = t.length; n < r; n += 4096) e.push(X.apply(null, t.subarray(n, n + 4096))); | |
return Z(e.join("")) | |
}, | |
$ = function $(t) { | |
if (t.length < 2) return (e = t.charCodeAt(0)) < 128 ? t : e < 2048 ? X(192 | e >>> 6) + X(128 | 63 & e) : X(224 | e >>> 12 & 15) + X(128 | e >>> 6 & 63) + X(128 | 63 & e); | |
var e = 65536 + 1024 * (t.charCodeAt(0) - 55296) + (t.charCodeAt(1) - 56320); | |
return X(240 | e >>> 18 & 7) + X(128 | e >>> 12 & 63) + X(128 | e >>> 6 & 63) + X(128 | 63 & e) | |
}, | |
tt = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, | |
et = L ? function(t) { | |
return Buffer.from(t, "utf8").toString("base64") | |
} : Y ? function(t) { | |
return Q(Y.encode(t)) | |
} : function(t) { | |
return Z(R(t)) | |
}, | |
nt = function(t) { | |
return M(t, !0) | |
}, | |
rt = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, | |
ot = function ot(t) { | |
switch (t.length) { | |
case 4: | |
var e = ((7 & t.charCodeAt(0)) << 18 | (63 & t.charCodeAt(1)) << 12 | (63 & t.charCodeAt(2)) << 6 | 63 & t.charCodeAt(3)) - 65536; | |
return X(55296 + (e >>> 10)) + X(56320 + (1023 & e)); | |
case 3: | |
return X((15 & t.charCodeAt(0)) << 12 | (63 & t.charCodeAt(1)) << 6 | 63 & t.charCodeAt(2)); | |
default: | |
return X((31 & t.charCodeAt(0)) << 6 | 63 & t.charCodeAt(1)) | |
} | |
}, | |
it = function it(t) { | |
if (t = t.replace(/\s+/g, ""), !z.test(t)) throw new TypeError("malformed base64."); | |
t += "==".slice(2 - (3 & t.length)); | |
for (var e, n, r, o = "", i = 0; i < t.length;) e = W[t.charAt(i++)] << 18 | W[t.charAt(i++)] << 12 | (n = W[t.charAt(i++)]) << 6 | (r = W[t.charAt(i++)]), o += 64 === n ? X(e >> 16 & 255) : 64 === r ? X(e >> 16 & 255, e >> 8 & 255) : X(e >> 16 & 255, e >> 8 & 255, 255 & e); | |
return o | |
}, | |
at = e ? function(t) { | |
return atob(K(t)) | |
} : L ? function(t) { | |
return Buffer.from(t, "base64").toString("binary") | |
} : it, | |
ct = L ? function(t) { | |
return G(Buffer.from(t, "base64")) | |
} : function(t) { | |
return G(at(t), function(t) { | |
return t.charCodeAt(0) | |
}) | |
}, | |
st = function st(t) { | |
return ct(ft(t)) | |
}, | |
ut = L ? function(t) { | |
return Buffer.from(t, "base64").toString("utf8") | |
} : U ? function(t) { | |
return U.decode(ct(t)) | |
} : function(t) { | |
return F(at(t)) | |
}, | |
ft = function ft(t) { | |
return K(t.replace(/[-_]/g, function(t) { | |
return "-" == t ? "+" : "/" | |
})) | |
}, | |
lt = function lt(t) { | |
return { | |
value: t, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}, | |
pt = function pt() { | |
var n; | |
(n = function n(t, e) { | |
return Object.defineProperty(String.prototype, t, lt(e)) | |
})("fromBase64", function() { | |
return D(this) | |
}), n("toBase64", function(t) { | |
return M(this, t) | |
}), n("toBase64URI", function() { | |
return M(this, !0) | |
}), n("toBase64URL", function() { | |
return M(this, !0) | |
}), n("toUint8Array", function() { | |
return st(this) | |
}) | |
}, | |
dt = function dt() { | |
var n; | |
(n = function n(t, e) { | |
return Object.defineProperty(Uint8Array.prototype, t, lt(e)) | |
})("toBase64", function(t) { | |
return N(this, t) | |
}), n("toBase64URI", function() { | |
return N(this, !0) | |
}), n("toBase64URL", function() { | |
return N(this, !0) | |
}) | |
}, | |
ht = function ht() { | |
pt(), dt() | |
}, | |
bt = (D = function D(t) { | |
return ut(ft(t)) | |
}, M = function M(t) { | |
return 1 < arguments.length && arguments[1] !== undefined && arguments[1] ? q(et(t)) : et(t) | |
}, R = function R(t) { | |
return t.replace(tt, $) | |
}, F = function F(t) { | |
return t.replace(rt, ot) | |
}, function(t) { | |
if ("string" != typeof t) return !1; | |
t = t.replace(/\s+/g, "").replace(/=+$/, ""); | |
return !/[^\s0-9a-zA-Z\+/]/.test(t) || !/[^\s0-9a-zA-Z\-_]/.test(t) | |
}, N = function N(t) { | |
return 1 < arguments.length && arguments[1] !== undefined && arguments[1] ? q(Q(t)) : Q(t) | |
}, "tt_adInfo"), | |
gt = "tt_appInfo", | |
yt = "tt_sessionId", | |
vt = "tt_pixel_event_has_reported_map", | |
mt = "ad_analytics_msg", | |
_t = "insight_log", | |
xt = "https://analytics.tiktok.com/api/v2/pixel", | |
Ot = function(t) { | |
t = { | |
PCM: "https://analytics.tiktok.com/api/v2/pcm", | |
track: xt, | |
performance: "https://analytics.tiktok.com/api/v2/performance", | |
interaction: "https://analytics.tiktok.com/api/v2/interaction" | |
} [t]; | |
return t || null | |
}, | |
wt = function(t) { | |
var r, t = t.reduce(function(t, e) { | |
var n = e.info, | |
e = e.data, | |
n = n.pixelCode + "-" + n.type; | |
return t[n] === undefined && (t[n] = []), t[n].push(e), t | |
}, {}); | |
return r = t, Object.keys(r).map(function(t) { | |
var e = t.split("-"), | |
n = e[0], | |
e = e[1], | |
t = r[t]; | |
return { | |
info: { | |
pixelCode: n, | |
type: e | |
}, | |
data: It(t) | |
} | |
}) | |
}; | |
var It = function(t) { | |
var o = ["click", "scroll"]; | |
return t.reduce(function(n, r) { | |
return Object.keys(r).forEach(function(t) { | |
var e = r[t]; - 1 < o.indexOf(t) ? n[t] ? n[t].push(e) : n[t] = [e] : n[t] = e | |
}), n | |
}, {}) | |
}, | |
St = (kt.prototype.push = function(t, e) { | |
this.stash.push(t), this.observer(e) | |
}, kt.prototype.clear = function() { | |
this.stash = [] | |
}, kt.prototype.observer = function(t) { | |
(t = void 0 === t ? !1 : t) && (this.triggerHandler(), this.clear()) | |
}, kt.prototype.setBatchParameter = function(t) { | |
var e = t.interval, | |
t = t.handler; | |
this.triggerHandler(), t && (this.handler = t), e && (clearInterval(this.timer), this.interval = e, this.startInterval()) | |
}, kt.prototype.startInterval = function() { | |
var t = this; | |
return setInterval(function() { | |
t.triggerHandler() | |
}, this.interval) | |
}, kt.prototype.triggerHandler = function() { | |
var t = this.stash.slice(); | |
this.clear(), t.length && this.handler && this.handler(t) | |
}, kt); | |
function kt(t) { | |
var e = t.interval, | |
t = t.handler; | |
this.stash = [], this.interval = 1e3, this.interval = e || 1e3, this.handler = t || function() {}, this.timer = this.startInterval() | |
} | |
var jt = ["ttuts", "ad_info_from", "ad_info_status"], | |
Et = n("mFs5"), | |
Pt = function(t, e) { | |
var n = {}; | |
try { | |
var r, o, i, a, c, s, u = t.creative_id, | |
f = t.callback, | |
l = t.idc, | |
p = t.convert_id, | |
d = t.ad_info_from, | |
h = t.ad_info_status, | |
b = t.log_extra, | |
g = t.ext_params, | |
y = t.ATTStatus; | |
return u && (n.creative_id = u), l && (n.idc = l), f && (n.callback = f), p && (n.convert_id = p), d && (n.ad_info_from = d), h && (n.ad_info_status = h), g && (n.ext_params = g), y && (n.ATTStatus = y), b && (o = (r = JSON.parse(b)).ad_user_agent, i = r.ad_id, a = r.rit, c = r.ocbs, s = r.vid, i && (n.ad_id = i), a && (n.rit = a), o && (n.ad_user_agent = o), c && (n.ocbs = c), s && (n.vid = s)), n | |
} catch (v) { | |
return e && e(v), n | |
} | |
}, | |
At = function() { | |
var t = A(vt); | |
return t || {} | |
}; | |
function Tt(t, e) { | |
var n = Object.assign({}, t); | |
return e.forEach(function(t) { | |
null != n[t] && delete n[t] | |
}), n | |
} | |
var Ct, J = (Object.defineProperty(Nt.prototype, "pixels", { | |
get: function() { | |
var e = this.data.pixelMap; | |
return Object.keys(e).map(function(t) { | |
return e[t] | |
}) | |
}, | |
enumerable: !1, | |
configurable: !0 | |
}), Nt.prototype.usePlugin = function(t) { | |
this.plugins.push(t) | |
}, Nt.prototype.getInitContextData = function(t) { | |
return { | |
pixelMap: {}, | |
customData: {}, | |
userInfo: {}, | |
userFormatInfo: {}, | |
adInfo: {}, | |
appInfo: {}, | |
libraryInfo: t, | |
pageInfo: { | |
url: "" | |
}, | |
pageSign: this.initPageSign() | |
} | |
}, Nt.prototype.getInitContextMethods = function() { | |
return { | |
addPixel: this.addPixel.bind(this), | |
getAllPixels: this.getAllPixels.bind(this), | |
getPixel: this.getPixel.bind(this), | |
getUserFormatInfo: this.getUserFormatInfo.bind(this), | |
getUserInfo: this.getUserInfo.bind(this), | |
setUserInfo: this.setUserInfo.bind(this), | |
getAdInfo: this.getAdInfo.bind(this), | |
setAdInfo: this.setAdInfo.bind(this), | |
addCustomMethod: this.addCustomMethod.bind(this), | |
callCustomMethod: this.callCustomMethod.bind(this), | |
setPageInfo: this.setPageInfo.bind(this), | |
getCustomData: this.getCustomData.bind(this), | |
setCustomData: this.setCustomData.bind(this), | |
track: this.track.bind(this), | |
batchTrack: this.batchTrack.bind(this), | |
trackPCM: this.trackPCM.bind(this), | |
setBatchConfig: this.setBatchConfig.bind(this), | |
trackBloomFilter: this.trackBloomFilter.bind(this), | |
isOnSitePage: this.isOnSitePage.bind(this) | |
} | |
}, Nt.prototype.track = function(t, e, n, r, o) { | |
var i = this; | |
return Promise.all(this.reportPreposition).then(function() { | |
return i.trackSync(t, e, n, r, o) | |
}) | |
}, Nt.prototype.trackPCM = function(t, e, n) {}, Nt.prototype.trackBloomFilter = function(t, e, n) {}, Nt.prototype.trackSync = function(t, e, n, r, o) { | |
if (null !== this.methods.getPixel(t)) { | |
n = this.assemblyData(t, e, n), r = Ot(r); | |
if (null !== r) return this.reportService.report(r, n, o), n | |
} | |
}, Nt.prototype.batchTrack = function(t, e, n) { | |
this.batch.push({ | |
info: t, | |
data: e | |
}, n = void 0 === n ? !1 : n) | |
}, Nt.prototype.setBatchConfig = function(t) { | |
this.batch.setBatchParameter(t) | |
}, Nt.prototype.addPixel = function(e) { | |
var t = e.pixelCode; | |
this.data.pixelMap[t] = e, this.plugins.forEach(function(t) { | |
t.pixelDidMount(e) | |
}) | |
}, Nt.prototype.getUserInfo = function() { | |
return this.data.userInfo | |
}, Nt.prototype.getUserFormatInfo = function() { | |
return this.data.userFormatInfo || {} | |
}, Nt.prototype.setUserInfo = function(t) { | |
var e = this; | |
if (!t) return undefined; | |
var n = {}; | |
Object.entries(t).forEach(function(t) { | |
var e = t[0], | |
t = t[1]; | |
t && (n[e] = String(t).trim()) | |
}), this.reportPreposition.push(B.handleUserProperties(n).then(function(t) { | |
t && t.userProperties && (Object.assign(e.data.userInfo, t.userProperties), Object.assign(e.data.userFormatInfo, t.userDataFormat)) | |
})) | |
}, Nt.prototype.setUserInfoWithoutIdentifyPlugin = function(t) { | |
t && Object.assign(this.data.userInfo, t) | |
}, Nt.prototype.getAllPixels = function() { | |
return this.pixels | |
}, Nt.prototype.setAdInfo = function(t) { | |
t && (this.data.adInfo ? this.data.adInfo = Object.assign({}, this.data.adInfo, t) : this.data.adInfo = t) | |
}, Nt.prototype.getAdInfo = function() { | |
return this.data.adInfo | |
}, Nt.prototype.setAppInfo = function(t) { | |
t && (this.data.appInfo = Object.assign({}, this.data.appInfo, t)) | |
}, Nt.prototype.getAppInfo = function() { | |
return this.data.appInfo | |
}, Nt.prototype.getPixel = function(t) { | |
var e = this.data.pixelMap; | |
return e[t] || null | |
}, Nt.prototype.addCustomMethod = function(t, e) { | |
this.customMethods[t] || (this.customMethods[t] = e) | |
}, Nt.prototype.callCustomMethod = function(t) { | |
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n]; | |
t = this.customMethods[t]; | |
return t ? t.apply(this, e) : null | |
}, Nt.prototype.setPageInfo = function(e, t) { | |
var n = this.data.pageInfo, | |
r = this.data.pageSign; | |
n.url !== e && (this.plugins.forEach(function(t) { | |
t.pageUrlWillChange.call(t, n.url, e) | |
}), n.url !== undefined && (n.referrer = n.url), t && (n.referrer = t), r.pageId = Object(f.e)("pageId"), n.url = e, this.plugins.forEach(function(t) { | |
t.pageUrlDidChange.call(t, e) | |
})) | |
}, Nt.prototype.getCustomData = function(t) { | |
var t = t.split("."), | |
e = this.data.customData; | |
try { | |
for (var n = 0, r = t; n < r.length; n++) e = e[r[n]] | |
} catch (o) { | |
return null | |
} | |
return e | |
}, Nt.prototype.setCustomData = function(t, e) { | |
var n = t.split("."), | |
r = this.data.customData; | |
try { | |
for (var o = 0; o < n.length; o++) { | |
var i = n[o]; | |
r[i] === undefined && (r[i] = {}), o === n.length - 1 ? r[i] = e : r = r[i] | |
} | |
} catch (a) { | |
return !1 | |
} | |
return !0 | |
}, Nt.prototype.getSessionIdFromCache = function() { | |
return null | |
}, Nt.prototype.setSessionIdToCache = function(t) {}, Nt.prototype.getVariationId = function() { | |
return "" | |
}, Nt.prototype.isLegacyPixel = function(t) { | |
return !1 | |
}, Nt.prototype.initPageSign = function() { | |
var t = this.getSessionIdFromCache(); | |
return null === t && (t = Object(f.e)("sessionId"), this.setSessionIdToCache(t)), { | |
sessionId: t, | |
pageId: Object(f.e)("pageId"), | |
variationId: this.getVariationId() | |
} | |
}, Nt.prototype.batchTrackHandler = function(t) { | |
var r = this; | |
wt(t).forEach(function(t) { | |
var e = t.info, | |
n = t.data, | |
t = e.pixelCode, | |
e = e.type; | |
r.trackSync(t, "", n, e, !0) | |
}) | |
}, Nt.prototype.isOnSitePage = function() { | |
return this.getAllPixels().every(function(t) { | |
return t.is_onsite | |
}) | |
}, Nt.prototype.assemblyData = function(t, e, n) { | |
var r = n && n.pixelMethod; | |
n && n.pixelMethod && delete n.pixelMethod; | |
var o = this.data, | |
i = this.methods.getPixel(t), | |
a = o.adInfo, | |
c = o.appInfo, | |
s = o.pageSign, | |
u = o.libraryInfo, | |
u = Object.assign({}, u, { | |
version: this.isLegacyPixel(t) ? "legacy-" + u.version : u.version | |
}), | |
a = Tt(a, jt), | |
a = Object.assign({}, a, { | |
device_id: c.device_id, | |
uid: c.user_id | |
}); | |
return { | |
event: e, | |
event_id: Object(f.d)(Object(f.e)("eventId"), t), | |
is_onsite: this.isOnSitePage(), | |
timestamp: (new Date).toJSON(), | |
context: { | |
ad: a, | |
user: Object.assign({ | |
anonymous_id: o.userInfo.anonymous_id | |
}, i && i.getUserInfo()), | |
pixel: { | |
code: t, | |
mode: r | |
}, | |
page: o.pageInfo, | |
library: u, | |
device: { | |
platform: c.platform | |
}, | |
session_id: Object(f.d)(o.pageSign.sessionId, t), | |
pageview_id: Object(f.d)(o.pageSign.pageId, t), | |
variation_id: s.variationId | |
}, | |
properties: n | |
} | |
}, Nt); | |
function Nt(t) { | |
this.plugins = [], this.customMethods = {}, this.batch = new St({ | |
handler: this.batchTrackHandler.bind(this) | |
}), this.reportPreposition = [], this.data = this.getInitContextData(t), this.methods = this.getInitContextMethods() | |
}(e = Ct = Ct || {}).INIT_START = "initStart", e.INIT_END = "initEnd", e.CONTEXT_INIT_START = "contextInitStart", e.CONTEXT_INIT_END = "contextInitEnd", e.BEFORE_AD_INFO_INIT_START = "beforeAdInfoInitStart", e.AD_INFO_INIT_START = "adInfoInitStart", e.AD_INFO_INIT_END = "adInfoInitEnd", e.PLUGIN_INIT_START = "pluginInitStart", e.PLUGIN_INIT_END = "pluginInitEnd", e.PIXEL_CREATE_START = "pixelCreateStart", e.PIXEL_CREATE_END = "pixelCreateEnd"; | |
var Rt = function(t, e) { | |
return (Rt = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, e) { | |
t.__proto__ = e | |
} || function(t, e) { | |
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) | |
})(t, e) | |
}; | |
function Mt(t, e) { | |
function n() { | |
this.constructor = t | |
} | |
Rt(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n) | |
} | |
var Ft = function() { | |
return (Ft = Object.assign || function Ft(t) { | |
for (var e, n = 1, r = arguments.length; n < r; n++) | |
for (var o in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); | |
return t | |
}).apply(this, arguments) | |
}; | |
(L = {})[L.Failure = 0] = "Failure", L[L.Success = 1] = "Success", L[L.Unauthorized = -1] = "Unauthorized", L[L.NotExist = -2] = "NotExist"; | |
Dt.prototype.call = function(t, e, n, r) { | |
void 0 === r && (r = this.version); | |
var o, i = this.version; | |
t && "string" == typeof t && ("string" == typeof r ? i = r || this.version : "object" == typeof r && (o = r.namespace, i = r.sdkVersion || this.version), o = { | |
func: t, | |
params: e = "object" != typeof e ? {} : e, | |
JSSDK: i, | |
__msg_type: "call", | |
namespace: o | |
}, "function" == typeof n && (n = this.registerCallback(t, n), o.__callback_id = n), window.parent !== window && (o.__iframe_url = window.location.href), this.sendMessageToNative(o)) | |
}, Dt.prototype.on = function(t, e, n) { | |
if (void 0 === n && (n = !1), t && "string" == typeof t && "function" == typeof e) { | |
e = this.registerCallback(t, e); | |
return this.eventMap[t] = this.eventMap[t] || {}, this.eventMap[t][e] = { | |
once: n | |
}, this.listenNativeEvent && (this.nativeEventListener ? this.nativeEventListener(t) : this.call("addEventListener", { | |
name: t | |
}, null, { | |
sdkVersion: 1 | |
})), e | |
} | |
}, Dt.prototype.once = function(t, e) { | |
return this.on(t, e, !0) | |
}, Dt.prototype.off = function(t, e) { | |
if (!t || "string" != typeof t) return !0; | |
t = this.eventMap[t]; | |
return t && "object" == typeof t && t.hasOwnProperty(e) && (this.deregisterCallback(e), delete t[e]), !0 | |
}, Dt.prototype.trigger = function(t, e) { | |
return this.handleMessageFromNative({ | |
__msg_type: "event", | |
__params: e, | |
__event_id: t | |
}) | |
}, Dt.prototype.handleMessageFromNative = function(t) { | |
var r = this, | |
e = t, | |
n = String(e.__callback_id); | |
this.callbackProcessor && "function" == typeof this.callbackProcessor && (t = (this.callbackMap && this.callbackMap[n] || {}).method, this.callbackProcessor(e, t)); | |
var o = e.__params, | |
i = String(e.__event_id || ""), | |
e = e.__msg_type; | |
this.callbackMap[n] ? e = "callback" : this.eventMap[n] && (e = "event", i = i || n); | |
var a = { | |
__err_code: "cb404" | |
}; | |
switch (e) { | |
case "callback": | |
var c = (this.callbackMap && this.callbackMap[n] || {}).callback; | |
"function" == typeof c && (a = c(o)), this.deregisterCallback(n); | |
break; | |
case "event": | |
var s = this.eventMap[i]; | |
s && "object" == typeof s && Object.keys(s).forEach(function(t) { | |
var e = (r.callbackMap && r.callbackMap[t] || {}).callback, | |
n = s[t]; | |
"function" == typeof e && (a = e(o)), n && n.once && (r.deregisterCallback(t), delete s[t]) | |
}) | |
} | |
return a | |
}, Dt.prototype.fetchJavaScriptMessageQueue = function() { | |
var t = JSON.stringify(this.javascriptMessageQueue), | |
e = btoa(unescape(encodeURIComponent(t))); | |
return this.setResultIFrame && 0 < this.javascriptMessageQueue.length && (this.setResultIFrame.src = "" + this.scheme + this.setResultPath + "&" + e), this.javascriptMessageQueue.splice(0, this.javascriptMessageQueue.length), t | |
}, Dt.prototype.sendMessageToNative = function(t) { | |
var e; | |
"1" !== String(t.JSSDK) && this.nativeMethodInvoker ? (e = this.nativeMethodInvoker(t)) && (e = JSON.parse(e), this.handleMessageFromNative(e)) : (this.javascriptMessageQueue.push(t), this.dispatchMessageIFrame ? this.dispatchMessageIFrame.src = "" + this.scheme + this.dispatchMessagePath : this.tryCreateIFrames()) | |
}, Dt.prototype.registerCallback = function(t, e) { | |
var n = String(this.callbackId++); | |
return this.callbackMap[n] = { | |
method: t, | |
callback: e | |
}, n | |
}, Dt.prototype.deregisterCallback = function(t) { | |
delete this.callbackMap[t] | |
}, Dt.prototype.tryCreateIFrames = function() { | |
this.dispatchMessageIFrame = this.createIFrame(this.dispatchMessageIFrameId), this.setResultIFrame = this.createIFrame(this.setResultIFrameId) | |
}, Dt.prototype.createIFrame = function(t) { | |
var e = document.getElementById(t); | |
return e && "IFRAME" === e.tagName || ((e = document.createElement("iframe")).style.display = "none", e.id = t, document.documentElement.appendChild(e)), e | |
}, e = Dt; | |
function Dt(t) { | |
this.version = t.version || "1.0.2", this.nativeMethodInvoker = t.nativeMethodInvoker, this.nativeEventListener = t.nativeEventListener, this.scheme = t.scheme || "nativeapp://", this.dispatchMessagePath = t.dispatchMessagePath || "dispatch_message/", this.setResultPath = t.setResultPath || "private/setresult/SCENE_FETCHQUEUE", this.dispatchMessageIFrameId = t.dispatchMessageIFrameId || "__JSBridgeIframe__", this.setResultIFrameId = t.setResultIFrameId || "__JSBridgeIframe_SetResult__", this.listenNativeEvent = !0 === t.listenNativeEvent, this.callbackId = 1023, this.callbackMap = {}, this.eventMap = {}, this.javascriptMessageQueue = [], this.callbackProcessor = t.callbackProcessor, "undefined" != typeof window && this.tryCreateIFrames() | |
} | |
var Bt = "2.2.5", | |
L = "undefined" != typeof window ? window.navigator.userAgent : "", | |
Jt = (!!L.match(/(newsarticle|videoarticle|lv|faceu|ulike|beauty_me_|faceu-os|ulike-os|beauty_me_oversea_|retouch)\/([\d.]+)/i) || /super|automobile/gi.test(L)) && !/webcast/gi.test(L) && !/luckycatversion/gi.test(L), | |
Lt = !!L.match(/(faceu)\/([\d.]+)/i) || /gsdk/gi.test(L), | |
Ut = !!L.match(/ttad\/0/i), | |
Yt = !!L.match(/aweme|trill|musical_ly/i), | |
Ht = !!L.match(/live_stream/i), | |
Wt = !!L.match(/Webcast/i), | |
zt = !!L.match(/super/i), | |
Xt = /super/gi.test(L), | |
Gt = "undefined" != typeof window ? window : {}, | |
qt = "undefined" != typeof window ? window : {}; | |
function Kt() { | |
var t; | |
if (Jt) return qt.JSBridge && qt.JSBridge.on ? t = qt.JSBridge.on : qt.JS2NativeBridge && qt.JS2NativeBridge.on ? t = function(t) { | |
qt.JS2NativeBridge.on(t, JSON.stringify({ | |
JSSDK: Bt, | |
__msg_type: "event", | |
__callback_id: t, | |
func: t | |
})) | |
} : qt.webkit && qt.webkit.messageHandlers && qt.webkit.messageHandlers.onMethodParams ? t = function(t) { | |
qt.webkit.messageHandlers.onMethodParams.postMessage({ | |
JSSDK: Bt, | |
__msg_type: "event", | |
__callback_id: t, | |
func: t | |
}) | |
} : qt.onMethodParams && (t = function(t) { | |
return qt.onMethodParams(t, { | |
JSSDK: Bt, | |
__msg_type: "event", | |
__callback_id: t, | |
func: t | |
}) | |
}), t | |
} | |
function Vt(t, e) { | |
"string" == typeof e && !0 === /^(x|tc)\./.test(e) || (Yt || Ht || Wt) && (e = t.__params, qt.JS2NativeBridge && qt.JS2NativeBridge._invokeMethod && (t.__params = Ft({ | |
code: e.code | |
}, e.data))) | |
} | |
var Zt, L = (Mt(Qt, Zt = e), Qt.prototype.exposePublicApiToGlobal = function() { | |
Gt.ToutiaoJSBridge = Object.assign(Gt.ToutiaoJSBridge || {}, this.publicApi) | |
}, Qt); | |
function Qt() { | |
var t = Zt.call(this, { | |
version: Bt, | |
scheme: "bytedance://", | |
listenNativeEvent: !0, | |
dispatchMessageIFrameId: "__JSBridgeIframe_1.0__", | |
setResultIFrameId: "__JSBridgeIframe_SetResult_1.0__", | |
nativeEventListener: Kt(), | |
callbackProcessor: Vt | |
}) || this; | |
return t.publicApi = { | |
call: t.call.bind(t), | |
on: t.on.bind(t), | |
once: t.once.bind(t), | |
off: t.off.bind(t), | |
trigger: t.trigger.bind(t), | |
_fetchQueue: t.fetchJavaScriptMessageQueue.bind(t), | |
_handleMessageFromToutiao: t.handleMessageFromNative.bind(t) | |
}, t | |
} | |
var $t, e = (Mt(te, $t = e), te.prototype.call = function(t, e, n, r) { | |
void 0 === r && (r = Bt), this.isLegacyCall(t) ? this.toutiaoLegacyJSB.call(t, e, n, r) : $t.prototype.call.call(this, t, e, n, r) | |
}, te.prototype.on = function(t, e, n, r) { | |
return void 0 === n && (n = !1), (r || {}).useLegacy || this.isLegacyCall(t) ? this.toutiaoLegacyJSB.on(t, e, n) : $t.prototype.on.call(this, t, e, n) | |
}, te.prototype.once = function(t, e) { | |
return this.isLegacyCall(t) ? this.toutiaoLegacyJSB.once(t, e) : $t.prototype.once.call(this, t, e) | |
}, te.prototype.off = function(t, e) { | |
return this.isLegacyCall(t) ? this.toutiaoLegacyJSB.off(t, e) : $t.prototype.off.call(this, t, e) | |
}, te.prototype.trigger = function(t, e) { | |
return this.isLegacyCall(t) ? this.toutiaoLegacyJSB.trigger(t, e) : $t.prototype.trigger.call(this, t, e) | |
}, te.prototype.exposePublicApiToGlobal = function() { | |
var e = this; | |
Gt.JSBridge = Object.assign(Gt.JSBridge || {}, this.publicApi), Gt.__DISABLE_JSB_PROTOCAL2__ || (Gt.Native2JSBridge = Object.assign(Gt.Native2JSBridge || {}, this.publicApi)), !Xt && (Jt || Ut) && this.toutiaoLegacyJSB ? this.toutiaoLegacyJSB.exposePublicApiToGlobal() : Gt.ToutiaoJSBridge = Object.assign(Gt.ToutiaoJSBridge || {}, this.publicApi), Gt.parent !== Gt && Gt.addEventListener && Gt.addEventListener("message", function(t) { | |
t && t.data && t.data.__callback_id && e.handleMessageFromNative(t.data) | |
}, !1), Object.defineProperties(Gt, { | |
JSBridge: { | |
writable: !1 | |
}, | |
Native2JSBridge: { | |
writable: !1 | |
}, | |
ToutiaoJSBridge: { | |
writable: !1 | |
} | |
}), Object.freeze(Gt.JSBridge), Object.freeze(Gt.Native2JSBridge), Object.freeze(Gt.ToutiaoJSBridge) | |
}, te.prototype.isLegacyCall = function(t) { | |
return !(!t || "string" != typeof t || !this.toutiaoLegacyJSB) && (Ut || !Lt && !Xt && (Jt && t.indexOf(".") < 0)) | |
}, te); | |
function te(t) { | |
var e, e = $t.call(this, { | |
version: Bt, | |
nativeMethodInvoker: (qt.JS2NativeBridge && qt.JS2NativeBridge._invokeMethod ? e = function(t) { | |
return qt.JS2NativeBridge._invokeMethod(JSON.stringify(t)) | |
} : qt.ToutiaoJSBridge && qt.ToutiaoJSBridge.invokeMethod ? e = function(t) { | |
return qt.ToutiaoJSBridge.invokeMethod(JSON.stringify(t)) | |
} : qt.JS2NativeBridge && qt.JS2NativeBridge.call ? e = function(t) { | |
return qt.JS2NativeBridge.call(t.func, JSON.stringify(t)) | |
} : qt.webkit && qt.webkit.messageHandlers && qt.webkit.messageHandlers.callMethodParams ? e = function(t) { | |
qt.webkit.messageHandlers.callMethodParams.postMessage(t) | |
} : qt.callMethodParams && (e = function(t) { | |
return qt.callMethodParams(t.func, t) | |
}), e), | |
nativeEventListener: Kt(), | |
scheme: zt ? "bds://" : !Xt && (Jt || qt.JSBridge && qt.JSBridge._invokeMethod) ? "nativeapp://" : "bytedance://", | |
listenNativeEvent: Jt, | |
callbackProcessor: Vt | |
}) || this; | |
return e.toutiaoLegacyJSB = t, e.publicApi = { | |
call: e.call.bind(e), | |
on: e.on.bind(e), | |
once: e.once.bind(e), | |
off: e.off.bind(e), | |
trigger: e.trigger.bind(e), | |
_fetchQueue: e.fetchJavaScriptMessageQueue.bind(e), | |
_handleMessageFromApp: e.handleMessageFromNative.bind(e), | |
_handleMessageFromToutiao: e.handleMessageFromNative.bind(e) | |
}, e | |
} | |
function ee(t, e) { | |
if (t === undefined || null === t) throw new TypeError("Cannot convert first argument to object"); | |
for (var n = Object(t), r = 1; r < arguments.length; r++) { | |
var o = arguments[r]; | |
if (o !== undefined && null !== o) | |
for (var i = Object.keys(Object(o)), a = 0, c = i.length; a < c; a++) { | |
var s = i[a], | |
u = Object.getOwnPropertyDescriptor(o, s); | |
u !== undefined && u.enumerable && (n[s] = o[s]) | |
} | |
} | |
return n | |
}({ | |
assign: ee, | |
polyfill: function() { | |
Object.assign || Object.defineProperty(Object, "assign", { | |
enumerable: !1, | |
configurable: !0, | |
writable: !0, | |
value: ee | |
}) | |
} | |
}).polyfill(); | |
L = new e(new L); | |
try { | |
L.exposePublicApiToGlobal() | |
} catch (tn) { | |
console.warn(tn.message) | |
} | |
var ne = L.publicApi; | |
window.CustomEvent || ((Te = function(t, e) { | |
var n; | |
return e = e || { | |
bubbles: !1, | |
cancelable: !1, | |
detail: void 0 | |
}, (n = document.createEvent("CustomEvent")).initCustomEvent(t, e.bubbles, e.cancelable, e.detail), n | |
}).prototype = window.Event.prototype, window.CustomEvent = Te); | |
var re, oe, ie, ae, ce = (re = !!window.globalConfig && window.globalConfig.isDebug, ie = function(t) { | |
var e = document.createElement("iframe"); | |
e.style.display = "none", e.src = t, document.body.appendChild(e), setTimeout(function() { | |
document.body.removeChild(e) | |
}, 100) | |
}, ae = window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.pacific ? function(t, e) { | |
oe = { | |
action: t, | |
parameters: (e = e || {}).params, | |
print: !!e.print | |
}, "string" == typeof e.callback ? oe.callback = { | |
type: 0, | |
name: e.callback, | |
parameters: ["key"] | |
} : oe.callback = e.callback, window.webkit.messageHandlers.pacific.postMessage(oe) | |
} : function(t, e) { | |
var n, r, o, i = [], | |
a = ((e = e || {}).protocol || "sslocal") + "://" + t; | |
if (e.callback && (e.params = e.params || {}, e.params.callback = e.callback), e.params) { | |
for (n in r = e.params) r.hasOwnProperty(n) && ("object" == typeof(o = r[n]) && (o = JSON.stringify(o)), i.push(encodeURIComponent(n) + "=" + encodeURIComponent(o))); | |
i.push("r=" + (Math.random() + "").slice(2)), a += "?" + i.join("&") | |
} | |
re ? (e.debugCall && e.debugCall(t, e.params), (console.dir || console.log)(a)) : ie(a) | |
}, { | |
call: function(t, e, n) { | |
var r, o, e = e = e || {}; | |
n && "function" == typeof n && (r = t + "DidFinish" + (re ? "" : "_" + Math.random().toString(36).slice(2)), o = function(t) { | |
"success" === t.detail.message && n(t.detail.data), document.removeEventListener(r, o) | |
}, document.addEventListener(r, o)), ae(t, { | |
callback: r, | |
params: e | |
}) | |
} | |
}), | |
se = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
ue = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}, | |
fe = (le.prototype.getAdInfo = function() { | |
return se(this, void 0, void 0, function() { | |
var e = this; | |
return ue(this, function(t) { | |
return Object(f.r)(this.jsbridge) || Object(_.a)(x.a.JSB_ERROR, new Error("tt bridge error when getting ad info"), { | |
extJSON: { | |
position: "getAdInfo" | |
} | |
}), P(Ct.AD_INFO_INIT_START), [2, new Promise(function(n, r) { | |
return se(e, void 0, void 0, function() { | |
var e; | |
return ue(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return t.trys.push([0, 2, , 3]), [4, this.callAdInfo()]; | |
case 1: | |
return (e = t.sent()).ad_info_from = "jsb", e.ad_info_status = "fulfilled", n(e), [3, 3]; | |
case 2: | |
return e = t.sent(), Object(_.a)(x.a.JSB_ERROR, e, { | |
extJSON: { | |
position: "getAdInfo" | |
} | |
}), r(e), [3, 3]; | |
case 3: | |
return [2] | |
} | |
}) | |
}) | |
})] | |
}) | |
}) | |
}, le.prototype.sendReportData = function(n, r) { | |
return void 0 === r && (r = "0"), se(this, void 0, void 0, function() { | |
var e; | |
return ue(this, function(t) { | |
return n.category = "ad_analytics_msg", n.tag = mt, n.label = _t, Object(c.f)() ? (e = { | |
eventName: mt, | |
labelName: _t, | |
value: r, | |
extValue: "0", | |
extJson: n | |
}, this.call("sendLog", e, 400)) : (e = { | |
event_name: _t, | |
version: 2, | |
properties: n | |
}, this.call("track_event", e, 400)), [2] | |
}) | |
}) | |
}, le.prototype.updatePCMData = function(e) { | |
return se(this, void 0, void 0, function() { | |
return ue(this, function(t) { | |
return Object(c.f)() && this.call("updatePCMData", e, 400), [2] | |
}) | |
}) | |
}, le.prototype.getATTStatus = function() { | |
return se(this, void 0, void 0, function() { | |
return ue(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return t.trys.push([0, 2, , 3]), [4, this.call("getATTStatus", {}, 400)]; | |
case 1: | |
return [2, { | |
ATTStatus: t.sent().ATTStatus | |
}]; | |
case 2: | |
return t.sent(), [3, 3]; | |
case 3: | |
return [2] | |
} | |
}) | |
}) | |
}, le.prototype.callAdInfo = function() { | |
return se(this, void 0, void 0, function() { | |
var n, r; | |
return ue(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return [4, this.call("adInfo", {}, 0, function(t) { | |
return t | |
})]; | |
case 1: | |
return n = t.sent(), r = {}, r = "string" == typeof n ? JSON.parse(n) : (e = n).code && e.data && e.ret ? n.data : n, [2, { | |
creative_id: r.cid, | |
log_extra: r.log_extra, | |
convert_id: undefined | |
}] | |
} | |
var e | |
}) | |
}) | |
}, le.prototype.call = function(i, a, c, s) { | |
return void 0 === a && (a = {}), void 0 === c && (c = 400), se(this, void 0, void 0, function() { | |
var e, n, r, o; | |
return ue(this, function(t) { | |
return e = this.getCallPromise(i, a, s), n = [e], 0 < c && (o = new Promise(function(t, e) { | |
r = window.setTimeout(e, c) | |
}), n.push(o), o = function() { | |
window.clearTimeout(r) | |
}, e.then(o, o)), [2, Promise.race(n)] | |
}) | |
}) | |
}, le.prototype.getCallPromise = function(o, i, a) { | |
return se(this, void 0, void 0, function() { | |
var e = this; | |
return ue(this, function(t) { | |
return [2, new Promise(function(n, r) { | |
if (!e.jsbridge) return r("JSBRIDGE ERROR"), void Object(_.a)(x.a.JSB_ERROR, new Error("JSBRIDGE ERROR"), { | |
extJSON: { | |
position: "getCallPromise" | |
} | |
}); | |
e.jsbridge.call(o, i, function(t) { | |
if (t = (t = void 0 === t ? {} : t) || {}, Object(f.s)(t)) try { | |
t = JSON.parse(t) | |
} catch (e) { | |
Object(_.a)(x.a.JSB_ERROR, e, { | |
extJSON: { | |
position: "getCallPromise bridge.call" | |
} | |
}), r(e) | |
}(t = t.data ? t.data : t).__data && (t = t.__data), n(a ? a(t) : t) | |
}) | |
})] | |
}) | |
}) | |
}, le); | |
function le() { | |
this.jsbridge = Object(c.f)() ? function() { | |
if (window && window.ToutiaoJSBridge && window.ToutiaoJSBridge.call) return window.ToutiaoJSBridge | |
}() || ne : ce | |
} | |
var pe, de = (pe = undefined, function() { | |
return pe = pe === undefined ? Object(c.d)() ? new fe : null : pe | |
}), | |
he = "_toutiao_params", | |
be = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
ge = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}; | |
function ye() {} | |
var ve = new(ye.prototype.getAdInfo = function() { | |
return be(this, void 0, void 0, function() { | |
var n, r, o, i, a, c, s, u, f, l, p; | |
return ge(this, function(t) { | |
try { | |
return n = I("ttclid") || undefined, r = I("ext_params") || undefined, o = I(he) || undefined, i = parseInt(I("ttuts")) || undefined, a = o ? JSON.parse(o) : {}, c = a.log_extra, s = void 0 === c ? undefined : c, u = a.idc, f = void 0 === u ? undefined : u, l = a.cid, p = void 0 === l ? undefined : l, [2, { | |
callback: n, | |
ext_params: r, | |
log_extra: s, | |
creative_id: p, | |
idc: f, | |
ttuts: i, | |
ad_info_from: (s || f || p) && "url" | |
}] | |
} catch (e) { | |
return [2, {}] | |
} | |
return [2] | |
}) | |
}) | |
}, ye.prototype.getAppInfo = function() { | |
return be(this, void 0, void 0, function() { | |
var n, r, o, i; | |
return ge(this, function(t) { | |
try { | |
return n = I(he), r = n && JSON.parse(n), o = r.device_id, i = r.uid, [2, { | |
device_id: o, | |
user_id: i | |
}] | |
} catch (e) { | |
return [2, {}] | |
} | |
return [2] | |
}) | |
}) | |
}, ye), | |
me = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
_e = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}, | |
xe = (Oe.prototype.getAdInfo = function() { | |
return me(this, void 0, void 0, function() { | |
var e, n, r, o, i; | |
return _e(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return e = A(bt), P(Ct.BEFORE_AD_INFO_INIT_START), null !== e ? (P(Ct.AD_INFO_INIT_START), e.ad_info_from = "cache", e.ad_info_status = "fulfilled(cache)", [2, e]) : [4, this.params.getAdInfo()]; | |
case 1: | |
return n = t.sent(), this.bridge ? [4, this.bridge.getAdInfo()] : [3, 3]; | |
case 2: | |
return o = t.sent(), [3, 4]; | |
case 3: | |
o = {}, t.label = 4; | |
case 4: | |
return r = o, this.bridge && Object(c.e)() ? [4, this.bridge.getATTStatus()] : [3, 6]; | |
case 5: | |
return i = t.sent(), [3, 7]; | |
case 6: | |
i = {}, t.label = 7; | |
case 7: | |
return (i = Object.assign({}, n, r, i)) && (i.creative_id && i.log_extra || i.callback) && T(bt, i), [2, i] | |
} | |
}) | |
}) | |
}, Oe); | |
function Oe() { | |
this.bridge = de(), this.params = ve | |
} | |
function we() {} | |
var Ie = new(we.prototype.send = function(t, e) { | |
this.sendBeacon(t, e) || this.getByImage(t, e) | |
}, we.prototype.sendBeacon = function(t, e) { | |
return !!navigator.sendBeacon && navigator.sendBeacon(t, JSON.stringify(e)) | |
}, we.prototype.getByImage = function(t, e) { | |
var n, r; | |
(new Image).src = (n = e, r = new URL(t), Object.keys(n).forEach(function(t) { | |
var e = n[t].toJSON ? n[t].toJSON() : String(n[t]); | |
r.searchParams.set(t, e) | |
}), r.toString()) | |
}, we), | |
Se = (ke.prototype.report = function(t, e, n) { | |
var r, r = (r = e, nt(JSON.stringify(r))); | |
if (!n && null !== this.bridge) { | |
var o = e.context.ad.creative_id || "0", | |
i = { | |
analytics_message: r, | |
trackLogData: JSON.stringify(e) | |
}; | |
return this.bridge.sendReportData(i, o), void Object(_.c)(x.a.JSB_SEND, { | |
pixelCode: e.context.pixel.code, | |
extJSON: { | |
event: e.event, | |
event_id: e.event_id | |
} | |
}) | |
} | |
i = this.httpService.sendBeacon(t, e); | |
o = e.event, Boolean(o) && (o = e, Object.keys(o.context.user).some(function(t) { | |
return -1 !== Et.a.indexOf(t) | |
})) && Object(_.c)(x.a.HTTP_SEND, { | |
pixelCode: e.context.pixel.code, | |
extJSON: { | |
event: e.event, | |
event_id: e.event_id | |
} | |
}), i || this.httpService.getByImage(t, { | |
analytics_message: r | |
}) | |
}, ke.prototype.reportPCM = function(e, t, n) { | |
var r = this; | |
return this.pcmReportList.push(t), this.pcmReportPromise || (this.pcmReportPromise = Promise.resolve().then(function() { | |
r.pcmReportList = r.pcmReportList.sort(function(t, e) { | |
return e.priority - t.priority | |
}); | |
var t = r.pcmReportList[0]; | |
n || null === r.bridge ? r.httpService.sendBeacon(e, t) : r.bridge.updatePCMData(t), r.pcmReportList = [], r.pcmReportPromise = null | |
})), this.pcmReportPromise | |
}, ke); | |
function ke() { | |
this.pcmReportList = [], this.bridge = de(), this.httpService = Ie | |
} | |
var je = (Ee.prototype.setPCMDomain = function(t) { | |
this.PCMDomain = t | |
}, Ee.prototype.getPCMDomain = function() { | |
return this.PCMDomain | |
}, Ee.prototype.setPCMConfig = function(t) { | |
t && (t.sort(function(t, e) { | |
return e.priority - t.priority | |
}), this.PCMConfig = t) | |
}, Ee.prototype.getPCMEvent = function(e, r, t) { | |
var n = this; | |
void 0 === t && (t = !0); | |
try { | |
var o = this.PCMConfig; | |
return 0 < (o = t ? o.filter(function(t) { | |
return t.pixelCode === e && n.endsWith(r.name, t.eventFunnel) | |
}) : o).length ? (o = o.filter(function(t) { | |
var e = t.revenueMin, | |
n = t.revenueMax, | |
t = r.value; | |
return !(n && 0 < n || e && 0 < e) || null != t && Object(f.v)(t, e, n) | |
}))[0] : void 0 | |
} catch (i) { | |
return | |
} | |
}, Ee.prototype.endsWith = function(t, e) { | |
e = e.slice().pop(); | |
return !!e && (e.eventNameReportAliases ? -1 < e.eventNameReportAliases.indexOf(t) : e.eventNameReport === t) | |
}, Ee); | |
function Ee() { | |
this.PCMDomain = "", this.PCMConfig = [] | |
} | |
var Pe, Ae, L = n("cpc2"), | |
Te = undefined && undefined.__extends || (Pe = function(t, e) { | |
return (Pe = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, e) { | |
t.__proto__ = e | |
} || function(t, e) { | |
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) | |
})(t, e) | |
}, function(t, e) { | |
function n() { | |
this.constructor = t | |
} | |
Pe(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n) | |
}); | |
function Ce() { | |
var e = Ae.call(this) || this; | |
return window.track_tool_events && window.track_tool_events.length && window.track_tool_events.forEach(function(t) { | |
e.on(t.name, t.callback) | |
}), e | |
} | |
var Ne = new(Ae = n.n(L).a, Te(Ce, Ae), Ce.prototype.sendDebugEvent = function(t, e) { | |
this.emit("manual_track", { | |
pixelCode: t, | |
event_type: e, | |
id: t + "-" + e | |
}) | |
}, Ce); | |
var Re = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
Me = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}; | |
function Fe() {} | |
var De = new(Fe.prototype.getAppInfo = function() { | |
return Re(this, void 0, void 0, function() { | |
var e; | |
return Me(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return null !== (e = A(gt)) ? [2, e] : [4, ve.getAppInfo()]; | |
case 1: | |
return (e = t.sent()).platform = Object(c.a)(), Object(f.o)(e) || T(gt, e), [2, e] | |
} | |
}) | |
}) | |
}, Fe), | |
Te = n("p46w"), | |
Be = n.n(Te), | |
Je = n("w0s3"), | |
Le = { | |
expires: 390, | |
domain: j() | |
}, | |
Ue = (Ye.prototype.enableCookie = function() { | |
return Be.a.set(Je.e, "1", Le), a(Object(f.h)()) | |
}, Ye.prototype.disableCookie = function() { | |
Be.a.set(Je.e, "0", Le), Be.a.remove(Je.m, Le), a(Object(f.g)()) | |
}, Ye.prototype.setAnonymousId = function(t) { | |
t = this.getAnonymousId() || t, Be.a.set(Je.m, t, Le) | |
}, Ye.prototype.getAnonymousId = function() { | |
return Be.a.get(Je.m) || "" | |
}, Ye.prototype.canUseCookie = function() { | |
return "1" === Be.a.get(Je.e) | |
}, Ye.prototype.resetExpires = function() { | |
var t; | |
this.canUseCookie() && (Be.a.set(Je.e, "1", Le), (t = this.getAnonymousId()) && this.setAnonymousId(t)) | |
}, Ye); | |
function Ye() {} | |
var He, We, ze, Xe, n = undefined && undefined.__extends || (He = function(t, e) { | |
return (He = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, e) { | |
t.__proto__ = e | |
} || function(t, e) { | |
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) | |
})(t, e) | |
}, function(t, e) { | |
function n() { | |
this.constructor = t | |
} | |
He(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n) | |
}), | |
Ge = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
qe = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}, | |
Ke = (n(Ve, We = J), Ve.prototype.init = function() { | |
this.tt_test_id = E(), this.reportService = new Se, this.cookieService = new Ue, this.browserAdService = new xe, this.pcmService = new je, this.reportPreposition.push(this.initAdInfo()), this.initAppInfo(), this.initUserInfo(), this.listenSPAHistoryChange(), this.onPageLoaded(), this.onPageLeave() | |
}, Ve.prototype.enableCookie = function() { | |
this.reportPreposition.push(this.cookieService.enableCookie()) | |
}, Ve.prototype.disableCookie = function() { | |
this.cookieService.disableCookie(), this.data.userInfo.anonymous_id = undefined | |
}, Ve.prototype.setAnonymousId = function(t) { | |
this.cookieService.setAnonymousId(t), this.initUserInfo() | |
}, Ve.prototype.resetCookieExpires = function() { | |
this.cookieService.resetExpires() | |
}, Ve.prototype.getVariationId = function() { | |
return Object(f.n)() | |
}, Ve.prototype.isLegacyPixel = function(t) { | |
var e = Object(f.i)(); | |
return !(!e || !e._legacy || -1 === e._legacy.indexOf(t)) | |
}, Ve.prototype.initAdInfo = function() { | |
return Ge(this, void 0, void 0, function() { | |
var n; | |
return qe(this, function(t) { | |
switch (t.label) { | |
case 0: | |
if (!Object(f.o)(this.methods.getAdInfo())) return [2, Promise.resolve()]; | |
if (this.adInfoPromise) return [2, this.adInfoPromise]; | |
t.label = 1; | |
case 1: | |
return t.trys.push([1, 3, , 4]), this.adInfoPromise = this.browserAdService.getAdInfo(), [4, this.adInfoPromise]; | |
case 2: | |
return n = t.sent(), this.setAdInfo(n), e = n, Object(f.i)()._adInfo = e, this.offsiteAdInfo = Pt(n, function(t) { | |
Object(_.a)(x.a.INIT_ERROR, t, { | |
extJSON: { | |
position: "handleAdInfoOfficial" | |
} | |
}) | |
}), n = function(t) { | |
try { | |
var e = t.log_extra, | |
n = t.ttuts; | |
return Object(c.c)() ? Object(c.f)() ? e ? 1 !== JSON.parse(e).user_tracking_status : 3 === t.ATTStatus : null == n || 1 !== n : !0 | |
} catch (r) { | |
return !1 | |
} | |
}(n), this.enableAdTracking = n, P(Ct.AD_INFO_INIT_END, { | |
extJSON: { | |
enabledAdTracking: n | |
} | |
}), [3, 4]; | |
case 3: | |
return n = t.sent(), this.adInfoPromise = null, Object(_.a)(x.a.INIT_ERROR, n, { | |
extJSON: { | |
position: "initAdInfo" | |
} | |
}), [3, 4]; | |
case 4: | |
return [2] | |
} | |
var e | |
}) | |
}) | |
}, Ve.prototype.onPageLoaded = function() { | |
var t = this; | |
window.addEventListener("load", function() { | |
t.batch.setBatchParameter({ | |
interval: 2e4 | |
}), t.plugins.forEach(function(t) { | |
t.pageDidLoad() | |
}) | |
}, { | |
once: !0 | |
}) | |
}, Ve.prototype.onPageLeave = function() { | |
var t = this; | |
window.addEventListener("beforeunload", function() { | |
var e = Date.now(); | |
t.plugins.forEach(function(t) { | |
t.pageWillLeave(e) | |
}) | |
}, { | |
once: !0 | |
}) | |
}, Ve.prototype.initAppInfo = function() { | |
return Ge(this, void 0, void 0, function() { | |
var e; | |
return qe(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return [4, De.getAppInfo()]; | |
case 1: | |
return e = t.sent(), this.setAppInfo(e), [2] | |
} | |
}) | |
}) | |
}, Ve.prototype.initUserInfo = function() { | |
var t; | |
this.cookieService.canUseCookie() && (t = { | |
anonymous_id: this.cookieService.getAnonymousId() | |
}, this.setUserInfoWithoutIdentifyPlugin(t)) | |
}, Ve.prototype.getSessionIdFromCache = function() { | |
return A(yt) | |
}, Ve.prototype.setSessionIdToCache = function(t) { | |
T(yt, t) | |
}, Ve.prototype.track = function(t, e, n, r, o) { | |
return "track" === r && Object(_.c)(x.a.PIXEL_SEND, { | |
pixelCode: t, | |
extJSON: { | |
event: e | |
} | |
}), We.prototype.track.call(this, t, e, n, r, o) | |
}, Ve.prototype.trackSync = function(t, e, n, r, o) { | |
if (r !== u.TRACK) return We.prototype.trackSync.call(this, t, e, n, r, o); | |
var i, a, c = this.methods.getPixel(t); | |
if (c && (i = t, s = e, Ne.sendDebugEvent(i, s)), this.tt_test_id) { | |
var s = this.assemblyData(t, e, n); | |
s.tt_test_id = this.tt_test_id, c && (s._inspection = c.getPixelMatchedUserFormatInfo()); | |
c = ((a = s).context.ad = {}, Object.keys(a.context.user).forEach(function(t) { | |
a.context.user[t] = "" | |
}), a); | |
return this.reportService.report(xt, c, !0), s | |
} | |
return this.enableAdTracking || this.isOnSitePage() ? We.prototype.trackSync.call(this, t, e, n, r, o) : We.prototype.trackSync.call(this, t, e, n, r, !0) | |
}, Ve.prototype.assemblyData = function(t, e, n) { | |
var r, o = We.prototype.assemblyData.call(this, t, e, n), | |
i = Object(f.k)(); | |
return i && (o.partner = i), !1 !== this.enableAdTracking || this.isOnSitePage() || (o.context.user = {}, o.context.ad = this.offsiteAdInfo, o.context.ad = Tt(o.context.ad, jt), e && (o.context.device.enable_ad_tracking = this.enableAdTracking, this.pixelEventReportMap = At(), r = t, n = e, (i = this.pixelEventReportMap)[r] && -1 !== i[r].indexOf(n) ? o.context.ad.is_first = 0 : (o.context.ad.is_first = 1, n = t, t = e, (e = this.pixelEventReportMap)[n] || (e[n] = []), -1 === e[n].indexOf(t) && e[n].push(t), T(vt, e)))), o | |
}, Ve.prototype.listenSPAHistoryChange = function() { | |
var e = this, | |
n = this.data.pageInfo.url, | |
t = function() { | |
var t = location.href; | |
t !== n && e.setPageInfo(t) | |
}; | |
window.addEventListener("popstate", t), history.pushState = Ze("pushState", t), history.replaceState = Ze("replaceState", t) | |
}, Ve.prototype.setPCMDomain = function(t) { | |
this.pcmService.setPCMDomain(t) | |
}, Ve.prototype.setPCMConfig = function(t) { | |
this.pcmService.setPCMConfig(t) | |
}, Ve.prototype.trackPCM = function(t, e, n) { | |
n = this.assemblyDataPCM(t, e, n); | |
n && (Object(_.c)(x.a.PIXEL_SEND_PCM, { | |
pixelCode: t, | |
extJSON: { | |
event: e, | |
trigger_data: n.trigger_data | |
} | |
}), null !== (e = Ot(u.PCM)) && this.reportService.reportPCM && this.reportService.reportPCM(e, n, !1)) | |
}, Ve.prototype.assemblyDataPCM = function(t, e, n) { | |
n = { | |
name: e, | |
value: n && n.value | |
}, t = this.pcmService.getPCMEvent(t, n), n = this.pcmService.getPCMDomain(); | |
if (t && n) return { | |
trigger_data: t.triggerData, | |
priority: t.priority, | |
hostname: n | |
} | |
}, Ve.prototype.trackBloomFilter = function(t, e, n) { | |
var r = this; | |
Promise.all(this.reportPreposition).then(function() { | |
r.bloomFilterService && r.bloomFilterService.track(t, e, n) | |
}) | |
}, Ve); | |
function Ve(t) { | |
t = We.call(this, t) || this; | |
return t.enableAdTracking = !0, t.pixelEventReportMap = {}, t.offsiteAdInfo = {}, t.onPageLoaded(), Object(c.f)() && Object(c.c)() && (t.enableAdTracking = !1), t.pixelEventReportMap = At(), t | |
} | |
function Ze(t, e) { | |
var n = history[t]; | |
return function() { | |
n.apply(history, arguments), e() | |
} | |
} | |
function Qe() { | |
var t = Xe.call(this) || this; | |
return t.tt_test_id = E(), t.context = new Ke(t.getLibraryInfo()), t.initDynamicPlugin(), t | |
} | |
var $e = ((undefined && undefined.__extends || (ze = function(t, e) { | |
return (ze = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, e) { | |
t.__proto__ = e | |
} || function(t, e) { | |
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) | |
})(t, e) | |
}, function(t, e) { | |
function n() { | |
this.constructor = t | |
} | |
ze(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n) | |
}))(Qe, Xe = O), Qe.prototype.init = function() { | |
P(Ct.INIT_START), P(Ct.CONTEXT_INIT_START), this.context.init(), P(Ct.CONTEXT_INIT_END), this.setPageInfo(window.location.href, document.referrer), this.handleCache(), P(Ct.INIT_END) | |
}, Qe.prototype.handleCache = function() { | |
var c = this; | |
this.context.resetCookieExpires(); | |
var t = Object(f.f)(), | |
e = Object(f.j)(); | |
if (Object.entries(e).forEach(function(t) { | |
var e = t[0], | |
n = t[1]; | |
if (!n._init && (c.loadPixel(e), n._init = !0, 0 < n.length)) | |
for (0; n.length;) { | |
var r = n.shift(); | |
if (r) { | |
var o = r[0], | |
i = r.slice(1); | |
0; | |
var a = c.instance(e); | |
if (a) switch (o) { | |
case "identify": | |
Xe.prototype.identify.call(c, i[0], i[1]); | |
break; | |
case "page": | |
Xe.prototype.page.call(c, i[0]); | |
break; | |
case "track": | |
a.track(i[0], i[1]) | |
} | |
} | |
} | |
}), 0 < t.length) | |
for (; t.length;) { | |
var n = t.shift(); | |
if (n) { | |
var r = n[0], | |
o = n.slice(1); | |
switch (0, r) { | |
case "identify": | |
this.identify(o[0], o[1]); | |
break; | |
case "page": | |
this.page(o[0]); | |
break; | |
case "track": | |
this.track(o[0], o[1]); | |
break; | |
case "enableCookie": | |
this.enableCookie(); | |
break; | |
case "disableCookie": | |
this.disableCookie() | |
} | |
} | |
} | |
}, Qe.prototype.enableCookie = function() { | |
this.context.enableCookie() | |
}, Qe.prototype.disableCookie = function() { | |
this.context.disableCookie() | |
}, Qe.prototype.setAnonymousId = function(t) { | |
this.context.setAnonymousId(t) | |
}, Qe.prototype.setPCMDomain = function(t) { | |
this.context.setPCMDomain(t) | |
}, Qe.prototype.setPCMConfig = function(t) { | |
this.context.setPCMConfig(t) | |
}, Qe.prototype.createPixel = function(t) { | |
P(Ct.PIXEL_CREATE_START, t); | |
var e = new g({ | |
pixelCode: t, | |
context: this.context | |
}); | |
return P(Ct.PIXEL_CREATE_END, t), e | |
}, Qe.prototype.getLibraryInfo = function() { | |
return { | |
name: Je.j, | |
version: Je.k | |
} | |
}, Qe.prototype.initDynamicPlugin = function() { | |
var n = this, | |
t = Object(f.i)().dynamicPlugins; | |
t && t.forEach(function(t) { | |
try { | |
n.useDynamicPlugin(t.handler) | |
} catch (e) { | |
Object(_.a)(x.a.PLUGIN_ERROR, e, { | |
extJSON: { | |
plugin_name: t.name | |
} | |
}) | |
} | |
}) | |
}, Qe), | |
O = function() { | |
var t = Object(_.b)().pixelCode; | |
Object(_.c)(x.a.BEFORE_INIT, { | |
pixelCode: t | |
}); | |
var r = Object(f.i)() || []; | |
if (Object(f.p)()) return Object(_.c)(x.a.HANDLE_CACHE, { | |
pixelCode: t | |
}), void r.handleCache(); | |
var o = new $e, | |
t = Object(f.m)(); | |
["instance", "instances", "usePlugin", "loadPixel", "enableCookie", "disableCookie"].forEach(function(e) { | |
Object.defineProperty(r, e, { | |
get: function() { | |
return function() { | |
try { | |
return o[e].apply(o, Array.prototype.slice.call(arguments)) | |
} catch (t) { | |
return Object(_.a)(x.a.API_ERROR, t, { | |
extJSON: { | |
api: e | |
} | |
}), {} | |
} | |
} | |
}, | |
set: function() {} | |
}) | |
}), ["page", "track", "identify"].forEach(function(n) { | |
Object.defineProperty(r, n, { | |
get: function() { | |
return function() { | |
try { | |
var t = Array.prototype.slice.call(arguments); | |
return Object(f.t)(n, t), o[n].apply(o, t) | |
} catch (e) { | |
return Object(_.a)(x.a.API_ERROR, e, { | |
extJSON: { | |
api: n | |
} | |
}), {} | |
} | |
} | |
}, | |
set: function() {} | |
}) | |
}), window[t] = Object.assign(r, o, Object.getPrototypeOf(o)), o.init() | |
}; | |
try { | |
O() | |
} catch (en) { | |
Object(_.a)(x.a.INIT_ERROR, en) | |
} | |
}, | |
olJS: function(t, e, n) { | |
n = n("Gd/C"); | |
t.exports = n("navigator", "userAgent") || "" | |
}, | |
p46w: function(t, e, n) { | |
var r, o; | |
(r = "function" == typeof(r = o = function() { | |
function s() { | |
for (var t = 0, e = {}; t < arguments.length; t++) { | |
var n, r = arguments[t]; | |
for (n in r) e[n] = r[n] | |
} | |
return e | |
} | |
function f(t) { | |
return t.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent) | |
} | |
return function t(u) { | |
function c() {} | |
function n(t, e, n) { | |
if ("undefined" != typeof document) { | |
"number" == typeof(n = s({ | |
path: "/" | |
}, c.defaults, n)).expires && (n.expires = new Date(+new Date + 864e5 * n.expires)), n.expires = n.expires ? n.expires.toUTCString() : ""; | |
try { | |
var r = JSON.stringify(e); | |
/^[\{\[]/.test(r) && (e = r) | |
} catch (a) {} | |
e = u.write ? u.write(e, t) : encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), t = encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape); | |
var o, i = ""; | |
for (o in n) n[o] && (i += "; " + o, !0 !== n[o] && (i += "=" + n[o].split(";")[0])); | |
return document.cookie = t + "=" + e + i | |
} | |
} | |
function e(t, e) { | |
if ("undefined" != typeof document) { | |
for (var n = {}, r = document.cookie ? document.cookie.split("; ") : [], o = 0; o < r.length; o++) { | |
var i = r[o].split("="), | |
a = i.slice(1).join("="); | |
e || '"' !== a.charAt(0) || (a = a.slice(1, -1)); | |
try { | |
var c = f(i[0]), | |
a = (u.read || u)(a, c) || f(a); | |
if (e) try { | |
a = JSON.parse(a) | |
} catch (s) {} | |
if (n[c] = a, t === c) break | |
} catch (s) {} | |
} | |
return t ? n[t] : n | |
} | |
} | |
return c.set = n, c.get = function(t) { | |
return e(t, !1) | |
}, c.getJSON = function(t) { | |
return e(t, !0) | |
}, c.remove = function(t, e) { | |
n(t, "", s(e, { | |
expires: -1 | |
})) | |
}, c.defaults = {}, c.withConverter = t, c | |
}(function() {}) | |
}) ? r.call(e, n, e, t) : r) === undefined || (t.exports = r), t.exports = o() | |
}, | |
pO6F: function(t, e, n) { | |
var r = n("Tuz7"), | |
o = n("mzWg"); | |
t.exports = Object.keys || function(t) { | |
return r(t, o) | |
} | |
}, | |
pRsG: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("Xp4F"), | |
i = n("pO6F"); | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: n("g2s6")(function() { | |
i(1) | |
}) | |
}, { | |
keys: function(t) { | |
return i(o(t)) | |
} | |
}) | |
}, | |
q7hU: function(t, e, n) { | |
var i = n("mb4w"); | |
t.exports = function(r, o, t) { | |
if (i(r), o === undefined) return r; | |
switch (t) { | |
case 0: | |
return function() { | |
return r.call(o) | |
}; | |
case 1: | |
return function(t) { | |
return r.call(o, t) | |
}; | |
case 2: | |
return function(t, e) { | |
return r.call(o, t, e) | |
}; | |
case 3: | |
return function(t, e, n) { | |
return r.call(o, t, e, n) | |
} | |
} | |
return function() { | |
return r.apply(o, arguments) | |
} | |
} | |
}, | |
qDMJ: function(t, e, n) { | |
var r = n("lWKF"); | |
t.exports = Array.isArray || function(t) { | |
return "Array" == r(t) | |
} | |
}, | |
rCb6: function(t, e, n) { | |
var r = n("Tuz7"), | |
o = n("mzWg").concat("length", "prototype"); | |
e.f = Object.getOwnPropertyNames || function(t) { | |
return r(t, o) | |
} | |
}, | |
sJZI: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("g2s6"), | |
i = n("nY95"), | |
a = Object.isSealed; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: o(function() { | |
a(1) | |
}) | |
}, { | |
isSealed: function(t) { | |
return !i(t) || !!a && a(t) | |
} | |
}) | |
}, | |
"tC/m": function(t, e, n) { | |
var r = n("edxO"), | |
o = n("Xp4F"), | |
i = n("bQ5J"), | |
n = n("iGP5"), | |
a = i("IE_PROTO"), | |
c = Object.prototype; | |
t.exports = n ? Object.getPrototypeOf : function(t) { | |
return t = o(t), r(t, a) ? t[a] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? c : null | |
} | |
}, | |
tNbY: function(t, e, n) { | |
var u = n("j16E"), | |
f = n("1EXu").f, | |
l = n("VFIL"), | |
p = n("eT3W"), | |
d = n("cKix"), | |
h = n("aJVn"), | |
b = n("8+Rt"); | |
t.exports = function(t, e) { | |
var n, r, o, i = t.target, | |
a = t.global, | |
c = t.stat, | |
s = a ? u : c ? u[i] || d(i, {}) : (u[i] || {}).prototype; | |
if (s) | |
for (n in e) { | |
if (r = e[n], o = t.noTargetGet ? (o = f(s, n)) && o.value : s[n], !b(a ? n : i + (c ? "." : "#") + n, t.forced) && o !== undefined) { | |
if (typeof r == typeof o) continue; | |
h(r, o) | |
}(t.sham || o && o.sham) && l(r, "sham", !0), p(s, n, r, t) | |
} | |
} | |
}, | |
twmF: function(t, e, n) { | |
var r = n("j16E"), | |
o = n("cKix"), | |
n = "__core-js_shared__", | |
n = r[n] || o(n, {}); | |
t.exports = n | |
}, | |
uoAl: function(t, e, n) { | |
var r = n("nY95"); | |
t.exports = function(t) { | |
if (!r(t)) throw TypeError(String(t) + " is not an object"); | |
return t | |
} | |
}, | |
uoY4: function(t, e, n) { | |
var r = {}; | |
r[n("mRBh")("toStringTag")] = "z", t.exports = "[object z]" === String(r) | |
}, | |
uziP: function(t, e, n) { | |
n("tNbY")({ | |
target: "Object", | |
stat: !0 | |
}, { | |
is: n("weR8") | |
}) | |
}, | |
vcnZ: function(t, e, n) { | |
var r = n("g2s6"), | |
o = n("lWKF"), | |
i = "".split; | |
t.exports = r(function() { | |
return !Object("z").propertyIsEnumerable(0) | |
}) ? function(t) { | |
return "String" == o(t) ? i.call(t, "") : Object(t) | |
} : Object | |
}, | |
vusn: function(t, e, n) { | |
n("tNbY")({ | |
target: "Object", | |
stat: !0 | |
}, { | |
setPrototypeOf: n("2AMv") | |
}) | |
}, | |
"w/+3": function(t, e, n) { | |
"use strict"; | |
var r = n("tNbY"), | |
o = n("j16E"), | |
i = n("Gd/C"), | |
a = n("eKW+"), | |
c = n("hYRU"), | |
s = n("ByEr"), | |
u = n("Vi/0"), | |
f = n("g2s6"), | |
l = n("edxO"), | |
p = n("qDMJ"), | |
d = n("nY95"), | |
h = n("uoAl"), | |
b = n("Xp4F"), | |
g = n("89xZ"), | |
y = n("5BnI"), | |
v = n("ywqg"), | |
m = n("Yp42"), | |
_ = n("pO6F"), | |
x = n("rCb6"), | |
O = n("/WcL"), | |
w = n("Si2v"), | |
I = n("1EXu"), | |
S = n("jk77"), | |
k = n("kr2p"), | |
j = n("VFIL"), | |
E = n("eT3W"), | |
P = n("Thaq"), | |
A = n("bQ5J"), | |
T = n("iBW0"), | |
C = n("L5Il"), | |
N = n("mRBh"), | |
R = n("Pt9r"), | |
M = n("Rdpx"), | |
F = n("npvp"), | |
D = n("FgOo"), | |
B = n("DFn4").forEach, | |
J = A("hidden"), | |
L = "Symbol", | |
U = "prototype", | |
A = N("toPrimitive"), | |
Y = D.set, | |
H = D.getterFor(L), | |
W = Object[U], | |
z = o.Symbol, | |
X = i("JSON", "stringify"), | |
G = I.f, | |
q = S.f, | |
K = O.f, | |
V = k.f, | |
Z = P("symbols"), | |
Q = P("op-symbols"), | |
$ = P("string-to-symbol-registry"), | |
tt = P("symbol-to-string-registry"), | |
P = P("wks"), | |
o = o.QObject, | |
et = !o || !o[U] || !o[U].findChild, | |
nt = c && f(function() { | |
return 7 != m(q({}, "a", { | |
get: function() { | |
return q(this, "a", { | |
value: 7 | |
}).a | |
} | |
})).a | |
}) ? function(t, e, n) { | |
var r = G(W, e); | |
r && delete W[e], q(t, e, n), r && t !== W && q(W, e, r) | |
} : q, | |
rt = function(t, e) { | |
var n = Z[t] = m(z[U]); | |
return Y(n, { | |
type: L, | |
tag: t, | |
description: e | |
}), c || (n.description = e), n | |
}, | |
ot = u ? function(t) { | |
return "symbol" == typeof t | |
} : function(t) { | |
return Object(t) instanceof z | |
}, | |
it = function(t, e, n) { | |
t === W && it(Q, e, n), h(t); | |
e = y(e, !0); | |
return h(n), l(Z, e) ? (n.enumerable ? (l(t, J) && t[J][e] && (t[J][e] = !1), n = m(n, { | |
enumerable: v(0, !1) | |
})) : (l(t, J) || q(t, J, v(1, {})), t[J][e] = !0), nt(t, e, n)) : q(t, e, n) | |
}, | |
at = function(e, t) { | |
h(e); | |
var n = g(t), | |
t = _(n).concat(st(n)); | |
return B(t, function(t) { | |
c && !ct.call(n, t) || it(e, t, n[t]) | |
}), e | |
}, | |
ct = function(t) { | |
var e = y(t, !0), | |
t = V.call(this, e); | |
return !(this === W && l(Z, e) && !l(Q, e)) && (!(t || !l(this, e) || !l(Z, e) || l(this, J) && this[J][e]) || t) | |
}, | |
o = function(t, e) { | |
var n = g(t), | |
t = y(e, !0); | |
if (n !== W || !l(Z, t) || l(Q, t)) { | |
e = G(n, t); | |
return !e || !l(Z, t) || l(n, J) && n[J][t] || (e.enumerable = !0), e | |
} | |
}, | |
u = function(t) { | |
var t = K(g(t)), | |
e = []; | |
return B(t, function(t) { | |
l(Z, t) || l(T, t) || e.push(t) | |
}), e | |
}, | |
st = function(t) { | |
var e = t === W, | |
t = K(e ? Q : g(t)), | |
n = []; | |
return B(t, function(t) { | |
!l(Z, t) || e && !l(W, t) || n.push(Z[t]) | |
}), n | |
}; | |
s || (E((z = function Symbol() { | |
if (this instanceof z) throw TypeError("Symbol is not a constructor"); | |
var t = arguments.length && arguments[0] !== undefined ? String(arguments[0]) : undefined, | |
e = C(t), | |
n = function(t) { | |
this === W && n.call(Q, t), l(this, J) && l(this[J], e) && (this[J][e] = !1), nt(this, e, v(1, t)) | |
}; | |
return c && et && nt(W, e, { | |
configurable: !0, | |
set: n | |
}), rt(e, t) | |
})[U], "toString", function() { | |
return H(this).tag | |
}), E(z, "withoutSetter", function(t) { | |
return rt(C(t), t) | |
}), k.f = ct, S.f = it, I.f = o, x.f = O.f = u, w.f = st, R.f = function(t) { | |
return rt(N(t), t) | |
}, c && (q(z[U], "description", { | |
configurable: !0, | |
get: function() { | |
return H(this).description | |
} | |
}), a || E(W, "propertyIsEnumerable", ct, { | |
unsafe: !0 | |
}))), r({ | |
global: !0, | |
wrap: !0, | |
forced: !s, | |
sham: !s | |
}, { | |
Symbol: z | |
}), B(_(P), function(t) { | |
M(t) | |
}), r({ | |
target: L, | |
stat: !0, | |
forced: !s | |
}, { | |
"for": function(t) { | |
var e = String(t); | |
if (l($, e)) return $[e]; | |
t = z(e); | |
return $[e] = t, tt[t] = e, t | |
}, | |
keyFor: function(t) { | |
if (!ot(t)) throw TypeError(t + " is not a symbol"); | |
if (l(tt, t)) return tt[t] | |
}, | |
useSetter: function() { | |
et = !0 | |
}, | |
useSimple: function() { | |
et = !1 | |
} | |
}), r({ | |
target: "Object", | |
stat: !0, | |
forced: !s, | |
sham: !c | |
}, { | |
create: function(t, e) { | |
return e === undefined ? m(t) : at(m(t), e) | |
}, | |
defineProperty: it, | |
defineProperties: at, | |
getOwnPropertyDescriptor: o | |
}), r({ | |
target: "Object", | |
stat: !0, | |
forced: !s | |
}, { | |
getOwnPropertyNames: u, | |
getOwnPropertySymbols: st | |
}), r({ | |
target: "Object", | |
stat: !0, | |
forced: f(function() { | |
w.f(1) | |
}) | |
}, { | |
getOwnPropertySymbols: function(t) { | |
return w.f(b(t)) | |
} | |
}), X && r({ | |
target: "JSON", | |
stat: !0, | |
forced: !s || f(function() { | |
var t = z(); | |
return "[null]" != X([t]) || "{}" != X({ | |
a: t | |
}) || "{}" != X(Object(t)) | |
}) | |
}, { | |
stringify: function(t, e, n) { | |
for (var r, o = [t], i = 1; i < arguments.length;) o.push(arguments[i++]); | |
if ((d(r = e) || t !== undefined) && !ot(t)) return p(e) || (e = function(t, e) { | |
if ("function" == typeof r && (e = r.call(this, t, e)), !ot(e)) return e | |
}), o[1] = e, X.apply(null, o) | |
} | |
}), z[U][A] || j(z[U], A, z[U].valueOf), F(z, L), T[J] = !0 | |
}, | |
w0s3: function(t, e, n) { | |
"use strict"; | |
n.d(e, "g", function() { | |
return r | |
}), n.d(e, "c", function() { | |
return o | |
}), n.d(e, "j", function() { | |
return i | |
}), n.d(e, "k", function() { | |
return a | |
}), n.d(e, "e", function() { | |
return c | |
}), n.d(e, "m", function() { | |
return s | |
}), n.d(e, "b", function() { | |
return u | |
}), n.d(e, "n", function() { | |
return f | |
}), n.d(e, "l", function() { | |
return l | |
}), n.d(e, "a", function() { | |
return p | |
}), n.d(e, "h", function() { | |
return d | |
}), n.d(e, "i", function() { | |
return h | |
}), n.d(e, "f", function() { | |
return b | |
}), n.d(e, "d", function() { | |
return g | |
}); | |
var r = "TiktokAnalyticsObject", | |
o = "ttq", | |
i = "pixel.js", | |
a = "2.1.33", | |
c = "_tt_enable_cookie", | |
s = "_ttp", | |
u = "external", | |
f = "tiktok", | |
l = 64, | |
p = "https://analytics.tiktok.com/i18n/pixel/config.js", | |
d = "https://analytics.tiktok.com/i18n/pixel/pickup.js", | |
h = "https://analytics.tiktok.com/i18n/pixel/identify.js", | |
b = "https://analytics.tiktok.com/i18n/pixel/enable_cookie", | |
g = "https://analytics.tiktok.com/i18n/pixel/disable_cookie" | |
}, | |
"wK/p": function(t, e, n) { | |
"use strict"; | |
n.r(e); | |
var u = n("mFs5"), | |
r = n("w0s3"), | |
f = n("HyyX"), | |
o = n("fe1q"), | |
i = n("/6w+"), | |
a = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
c = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}, | |
s = (l.prototype.init = function() { | |
var r = this; | |
return this.pluginPromise || (Object(o.c)(i.a.IDENTIFY_INIT_START), this.pluginPromise = n.e(1).then(n.bind(null, "6rls")).then(function(t) { | |
var e = t.parsePhoneNumberFromString, | |
n = t.sha256, | |
t = t.checkEmailFormat; | |
return Object(o.c)(i.a.IDENTIFY_INIT_END), r.parsePhoneNumberFromString = e, r.checkEmailFormat = t, r.sha256 = n, !0 | |
})) | |
}, l.prototype.handleUserProperties = function(i) { | |
return a(this, void 0, void 0, function() { | |
var r, o = this; | |
return c(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return i ? [4, this.init()] : [2, undefined]; | |
case 1: | |
return t.sent(), r = this.identifyParamsFormattedInfo(i), Object.entries(i).forEach(function(t) { | |
var e = t[0], | |
n = t[1]; | |
if (n) switch (e) { | |
case "email": | |
i.email = o.sha256(o.handleEmail(String(n))); | |
break; | |
case "phone_number": | |
i.phone_number = o.sha256(o.handlePhoneNumber(String(n), o.parsePhoneNumberFromString)) | |
} | |
}), Object.entries(i).forEach(function(t) { | |
var e = t[0], | |
n = t[1]; | |
if (n) switch (e) { | |
case "sha256_email": | |
i.email = o.handleCheckHashedEmailValue(n, r, o.checkEmailFormat); | |
break; | |
case "sha256_phone_number": | |
i.phone_number = o.handleCheckHashedPhoneValue(n, r, o.parsePhoneNumberFromString) | |
} | |
}), [2, { | |
userProperties: i, | |
userDataFormat: r | |
}] | |
} | |
}) | |
}) | |
}, l.prototype.handleEmail = function(t) { | |
return t.toLowerCase() | |
}, l.prototype.handlePhoneNumber = function(t, e) { | |
var n = t, | |
t = e(t); | |
return n = t ? "86" === t.countryCallingCode ? t.nationalNumber : t.number : n | |
}, l.prototype.identifyParamsFormattedInfo = function(t) { | |
var a = this, | |
c = {}, | |
s = /^sha256_(.*)$/; | |
return Object.entries(t).forEach(function(t) { | |
var e = t[0], | |
n = t[1], | |
r = e.match(s); | |
switch (e) { | |
case "email": | |
var o = a.handleCheckEmail(String(n), a.checkEmailFormat); | |
c.email && -1 !== c.email.indexOf(f.a.HASHED) || (c.email = o); | |
break; | |
case "phone_number": | |
var i = a.handleCheckPhoneNumber(String(n), a.parsePhoneNumberFromString); | |
c.phone_number && -1 !== c.phone_number.indexOf(f.a.HASHED) || (c.phone_number = i), c.phone_number = i; | |
break; | |
case (r || {}).input: | |
i = null == r ? void 0 : r.pop(); | |
i && -1 !== u.a.indexOf(i) && (c[i] = [f.a.HASHED]); | |
break; | |
default: | |
c[e] = [f.a.CORRECT_FORMAT] | |
} | |
}), c | |
}, l.prototype.handleCheckPhoneNumber = function(t, e) { | |
var n = []; | |
return t ? e(t) ? n.push(f.a.CORRECT_FORMAT) : n.push(f.a.WRONG_FORMAT) : n.push(f.a.EMPTY_VALUE), n | |
}, l.prototype.handleCheckEmail = function(t, e) { | |
var n = []; | |
return t ? e(t) ? n.push(f.a.CORRECT_FORMAT) : n.push(f.a.WRONG_FORMAT) : n.push(f.a.EMPTY_VALUE), n | |
}, l.prototype.handleCheckHashedEmailValue = function(t, e, n) { | |
return t.length === r.l ? (null != e && e.email.push(f.a.HASHED_CORRECT), t) : n(t) ? (null != e && e.email.push(f.a.PLAINTEXT_EMAIL), this.sha256(this.handleEmail(String(t)))) : (e.email.push(f.a.HASHED_ERR), t) | |
}, l.prototype.handleCheckHashedPhoneValue = function(t, e, n) { | |
return t.length === r.l ? (null != e && e.phone_number.push(f.a.HASHED_CORRECT), t) : n(t) ? (e.phone_number.push(f.a.PLAINTEXT_PHONE), this.sha256(this.handlePhoneNumber(String(t), n))) : (null != e && e.phone_number.push(f.a.HASHED_ERR), t) | |
}, l); | |
function l() {} | |
e["default"] = s | |
}, | |
wUKj: function(t, e, n) { | |
var r = n("Gd/C"), | |
o = n("rCb6"), | |
i = n("Si2v"), | |
a = n("uoAl"); | |
t.exports = r("Reflect", "ownKeys") || function(t) { | |
var e = o.f(a(t)), | |
n = i.f; | |
return n ? e.concat(n(t)) : e | |
} | |
}, | |
weR8: function(t, e) { | |
t.exports = Object.is || function(t, e) { | |
return t === e ? 0 !== t || 1 / t == 1 / e : t != t && e != e | |
} | |
}, | |
wf5p: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("j16E"), | |
n = n("npvp"); | |
r({ | |
global: !0 | |
}, { | |
Reflect: {} | |
}), n(o.Reflect, "Reflect", !0) | |
}, | |
yFXH: function(t, e, n) { | |
var r = n("nY95"), | |
o = n("qDMJ"), | |
i = n("mRBh")("species"); | |
t.exports = function(t, e) { | |
var n; | |
return new((n = o(t) && ("function" == typeof(n = t.constructor) && (n === Array || o(n.prototype)) || r(n) && null === (n = n[i])) ? undefined : n) === undefined ? Array : n)(0 === e ? 0 : e) | |
} | |
}, | |
yLpj: function(t, e) { | |
var n = function() { | |
return this | |
}(); | |
try { | |
n = n || new Function("return this")() | |
} catch (r) { | |
"object" == typeof window && (n = window) | |
} | |
t.exports = n | |
}, | |
yYan: function(t, e, n) { | |
var r = n("uoAl"); | |
t.exports = function(t) { | |
var e = t["return"]; | |
if (e !== undefined) return r(e.call(t)).value | |
} | |
}, | |
ya48: function(t, e, n) { | |
n("w/+3"), n("KKIa"), n("HF0W"), n("yy2C"), n("72RN"), n("f2VU"), n("gsVl"), n("NoR1"), n("FY8A"), n("fKdN"), n("PpL8"), n("0RwH"), n("uziP"), n("01Y7"), n("0kdU"), n("sJZI"), n("pRsG"), n("Ax39"), n("Ujv9"), n("vusn"), n("R6QP"), n("BVjT"), n("7bkZ"), n("ah02"), n("/YXv"), n("Ivt0"), n("96W2"), n("blhV"), n("wf5p"); | |
n = n("WgSG"); | |
t.exports = n.Object | |
}, | |
ywqg: function(t, e) { | |
t.exports = function(t, e) { | |
return { | |
enumerable: !(1 & t), | |
configurable: !(2 & t), | |
writable: !(4 & t), | |
value: e | |
} | |
} | |
}, | |
yy2C: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("hYRU"); | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: !o, | |
sham: !o | |
}, { | |
defineProperty: n("jk77").f | |
}) | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window[window["TiktokAnalyticsObject"]]._env = { | |
"env": "external" | |
}; | |
window[window["TiktokAnalyticsObject"]]._variation_id = 'test'; | |
! function(e) { | |
var i = {}; | |
function r(t) { | |
if (i[t]) return i[t].exports; | |
var n = i[t] = { | |
i: t, | |
l: !1, | |
exports: {} | |
}; | |
return e[t].call(n.exports, n, n.exports, r), n.l = !0, n.exports | |
} | |
r.m = e, r.c = i, r.d = function(t, n, e) { | |
r.o(t, n) || Object.defineProperty(t, n, { | |
enumerable: !0, | |
get: e | |
}) | |
}, r.r = function(t) { | |
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { | |
value: "Module" | |
}), Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}) | |
}, r.t = function(n, t) { | |
if (1 & t && (n = r(n)), 8 & t) return n; | |
if (4 & t && "object" == typeof n && n && n.__esModule) return n; | |
var e = Object.create(null); | |
if (r.r(e), Object.defineProperty(e, "default", { | |
enumerable: !0, | |
value: n | |
}), 2 & t && "string" != typeof n) | |
for (var i in n) r.d(e, i, function(t) { | |
return n[t] | |
}.bind(null, i)); | |
return e | |
}, r.n = function(t) { | |
var n = t && t.__esModule ? function() { | |
return t["default"] | |
} : function() { | |
return t | |
}; | |
return r.d(n, "a", n), n | |
}, r.o = function(t, n) { | |
return Object.prototype.hasOwnProperty.call(t, n) | |
}, r.p = "https://analytics.tiktok.com/i18n/pixel/", r(r.s = "ranp") | |
}({ | |
"/6w+": function(t, n, e) { | |
"use strict"; | |
var i, r; | |
e.d(n, "b", function() { | |
return i | |
}), e.d(n, "a", function() { | |
return r | |
}), (n = i = i || {})[n.OTHER = 0] = "OTHER", n[n.ANDROID = 1] = "ANDROID", n[n.IOS = 2] = "IOS", (n = r = r || {}).LOAD_START = "load_start", n.LOAD_END = "load_end", n.BEFORE_INIT = "before_init", n.INIT_START = "init_start", n.INIT_END = "init_end", n.JSB_INIT_START = "jsb_init_start", n.JSB_INIT_END = "jsb_init_end", n.BEFORE_AD_INFO_INIT_START = "before_ad_info_init_start", n.AD_INFO_INIT_START = "ad_info_init_start", n.AD_INFO_INIT_END = "ad_info_init_end", n.IDENTIFY_INIT_START = "identify_init_start", n.IDENTIFY_INIT_END = "identify_init_end", n.PLUGIN_INIT_START = "_init_start", n.PLUGIN_INIT_END = "_init_end", n.PIXEL_SEND = "pixel_send", n.PIXEL_SEND_PCM = "pixel_send_PCM", n.JSB_SEND = "jsb_send", n.HTTP_SEND = "http_send", n.HANDLE_CACHE = "handle_cache", n.INIT_ERROR = "init_error", n.PIXEL_EMPTY = "pixel_empty", n.JSB_ERROR = "jsb_error", n.API_ERROR = "api_error", n.PLUGIN_ERROR = "plugin_error", n.CUSTOM_INFO = "custom_info", n.CUSTOM_ERROR = "custom_error" | |
}, | |
GJ6r: function(t, n, e) { | |
"use strict"; | |
e.d(n, "a", function() { | |
return o | |
}), e.d(n, "c", function() { | |
return c | |
}), e.d(n, "b", function() { | |
return a | |
}); | |
e("SbFU"), e("w0s3"); | |
var i = "object" == typeof navigator ? navigator.userAgent : "", | |
r = function() { | |
return /windows phone/i.test(i) ? "Windows Phone" : /android/i.test(i) ? "android" : /iPad|iPhone|iPod/.test(i) ? "ios" : "pc" | |
}, | |
o = function() { | |
return "android" === r() | |
}, | |
c = function() { | |
return "ios" === r() | |
}, | |
a = function() { | |
return "development" === "production".trim() | |
} | |
}, | |
Pd38: function(t, n, e) { | |
"use strict"; | |
e.d(n, "a", function() { | |
return r | |
}); | |
var i = e("SbFU"), | |
r = function(n, t) { | |
var e = Object(i.b)() || []; | |
e.dynamicPlugins || (e.dynamicPlugins = []), e.dynamicPlugins.find(function(t) { | |
return t.name === n | |
}) || e.dynamicPlugins.push({ | |
name: n, | |
handler: t | |
}) | |
} | |
}, | |
Rtpk: function(t, n, e) { | |
"use strict"; | |
e.d(n, "a", function() { | |
return i | |
}); | |
var o = e("SbFU"), | |
c = e("fe1q"), | |
a = e("/6w+"), | |
i = function(e) { | |
for (var i = [], t = 1; t < arguments.length; t++) i[t - 1] = arguments[t]; | |
try { | |
var n = Object(o.b)() || []; | |
n.context && n.context.plugins && n.context.plugins.forEach(function(t) { | |
if ("function" == typeof t[e]) try { | |
t[e].apply(t, i) | |
} catch (n) { | |
Object(c.a)(a.a.PLUGIN_ERROR, n, { | |
extJSON: { | |
plugin_name: t.name, | |
cycle_name: e, | |
data: i | |
} | |
}) | |
} | |
}) | |
} catch (r) {} | |
} | |
}, | |
STkE: function(t, n, e) { | |
"use strict"; | |
var i; | |
e.d(n, "a", function() { | |
return i | |
}), (n = i = i || {}).INIT_START = "initStart", n.INIT_END = "initEnd", n.CONTEXT_INIT_START = "contextInitStart", n.CONTEXT_INIT_END = "contextInitEnd", n.BEFORE_AD_INFO_INIT_START = "beforeAdInfoInitStart", n.AD_INFO_INIT_START = "adInfoInitStart", n.AD_INFO_INIT_END = "adInfoInitEnd", n.PLUGIN_INIT_START = "pluginInitStart", n.PLUGIN_INIT_END = "pluginInitEnd", n.PIXEL_CREATE_START = "pixelCreateStart", n.PIXEL_CREATE_END = "pixelCreateEnd" | |
}, | |
SbFU: function(t, n, e) { | |
"use strict"; | |
e.d(n, "c", function() { | |
return o | |
}), e.d(n, "b", function() { | |
return c | |
}), e.d(n, "d", function() { | |
return a | |
}), e.d(n, "e", function() { | |
return u | |
}), e.d(n, "g", function() { | |
return s | |
}), e.d(n, "a", function() { | |
return p | |
}), e.d(n, "f", function() { | |
return f | |
}); | |
e("GJ6r"); | |
var i, r = e("w0s3"); | |
(e = i = i || {}).EMPTY_VALUE = "empty_value", e.WRONG_FORMAT = "wrong_format", e.CORRECT_FORMAT = "correct_format", e.HASHED = "hashed", e.HASHED_ERR = "hashed_err", e.HASHED_CORRECT = "hashed_correct", e.PLAINTEXT_EMAIL = "plaintext_email", e.PLAINTEXT_PHONE = "plaintext_phone"; | |
undefined && undefined.__spreadArrays; | |
var o = function() { | |
var t = c(); | |
return t._partner || "" | |
}, | |
c = function() { | |
return "object" == typeof window && window["object" == typeof window && window[r.f] || r.c] | |
}, | |
a = function() { | |
try { | |
return c()._variation_id | |
} catch (t) { | |
return "" | |
} | |
}, | |
u = function() { | |
try { | |
var t = c(); | |
return t && t._legacy && 0 !== t._legacy.length ? Object.keys(t._t).length > Object.keys(t._legacy).length || Object.keys(t.context.data.pixelMap).length > Object.keys(t._legacy).length : !1 | |
} catch (n) { | |
return !1 | |
} | |
}, | |
s = function(t) { | |
return "number" != typeof t ? t : parseInt(t.toFixed(0), 10) | |
}, | |
p = function() { | |
return new Date(Date.now() + 864e5).toUTCString() | |
}; | |
function f(e, i) { | |
void 0 === i && (i = 500); | |
var r = Date.now(); | |
return function() { | |
var t = arguments, | |
n = Date.now(); | |
i <= n - r && (e.apply(null, t), r = Date.now()) | |
} | |
} | |
}, | |
SnBs: function(t, n, e) { | |
"use strict"; | |
e.d(n, "a", function() { | |
return r | |
}), e.d(n, "b", function() { | |
return a | |
}); | |
var i, n = undefined && undefined.__extends || (i = function(t, n) { | |
return (i = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, n) { | |
t.__proto__ = n | |
} || function(t, n) { | |
for (var e in n) n.hasOwnProperty(e) && (t[e] = n[e]) | |
})(t, n) | |
}, function(t, n) { | |
function e() { | |
this.constructor = t | |
} | |
i(t, n), t.prototype = null === n ? Object.create(n) : (e.prototype = n.prototype, new e) | |
}), | |
r = (o.prototype.pageDidLoad = function() {}, o.prototype.pixelDidMount = function(t) {}, o.prototype.pageUrlWillChange = function(t, n) {}, o.prototype.pageUrlDidChange = function(t) {}, o.prototype.initStart = function() {}, o.prototype.initEnd = function() {}, o.prototype.adInfoInitStart = function() {}, o.prototype.adInfoInitEnd = function() {}, o.prototype.contextInitStart = function() {}, o.prototype.contextInitEnd = function() {}, o.prototype.pluginInitStart = function(t) {}, o.prototype.pluginInitEnd = function(t) {}, o.prototype.pixelCreateStart = function(t) {}, o.prototype.pixelCreateEnd = function(t) {}, o.prototype.pageWillLeave = function(t) {}, o); | |
function o(t) { | |
t && (this.context = t) | |
} | |
var c, a = (n(u, c = r), u.prototype.pixelDidMount = function(t) { | |
var n = t.pixelCode, | |
t = this.getTrackType(), | |
e = this.context.methods.batchTrack.bind(this.context, { | |
pixelCode: n, | |
type: t | |
}); | |
this.batchReportFunctions.push(e), this.stash.forEach(function(t) { | |
e(t, !1) | |
}) | |
}, u.prototype.pageUrlWillChange = function(t, n) {}, u.prototype.pageUrlDidChange = function(t) { | |
t !== this.currentUrl && (this.oldUrl = this.currentUrl, this.currentUrl = t) | |
}, u.prototype.handleCacheData = function() { | |
var t = this; | |
this.stash.forEach(function(n) { | |
t.batchReportFunctions.forEach(function(t) { | |
t(n, !1) | |
}) | |
}) | |
}, u.prototype.track = function(n, e) { | |
this.stash.push(n), this.batchReportFunctions.forEach(function(t) { | |
t(n, e) | |
}) | |
}, u); | |
function u(t) { | |
var e = c.call(this, t) || this; | |
return e.batchReportFunctions = [], e.currentUrl = "", e.oldUrl = "", e.stash = [], e.batchReportFunctions = e.context.methods.getAllPixels().map(function(t) { | |
var n = t.pixelCode, | |
t = e.getTrackType(); | |
return e.context.methods.batchTrack.bind(e.context, { | |
pixelCode: n, | |
type: t | |
}) | |
}), e | |
} | |
}, | |
fe1q: function(t, n, e) { | |
"use strict"; | |
e.d(n, "a", function() { | |
return i | |
}), e.d(n, "b", function() { | |
return o | |
}); | |
var r = e("SbFU"); | |
function i() { | |
for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n]; | |
try { | |
var e = Object(r.b)().monitor; | |
e && e.error.apply(e, t) | |
} catch (i) {} | |
} | |
function o() { | |
try { | |
0; | |
var t = document && document.currentScript && document.currentScript.src || "http://emptyURLSrc", | |
n = /i18n\/pixel\/events\.js/.test(t), | |
e = /i18n\/pixel\/sdk\.js/.test(t), | |
i = new URL(t).searchParams; | |
return n ? { | |
lib: i.get("lib") || "ttq", | |
pixelCode: i.get("sdkid") || "" | |
} : e ? { | |
lib: "_taq", | |
pixelCode: i.get("sdkid") || "" | |
} : { | |
lib: "ttq", | |
pixelCode: "" | |
} | |
} catch (r) { | |
return { | |
lib: "ttq", | |
pixelCode: "" | |
} | |
} | |
} | |
}, | |
ranp: function(t, n, e) { | |
"use strict"; | |
e.r(n); | |
var i = e("SnBs"), | |
r = e("Rtpk"); | |
function o(t, n) { | |
try { | |
return new URL(t).searchParams.get(n) || "" | |
} catch (e) { | |
return "" | |
} | |
} | |
var c, a, u = e("SbFU"), | |
s = ["ac", "ad", "ae", "af", "ag", "ai", "al", "am", "ao", "aq", "ar", "as", "at", "au", "aw", "ax", "az", "ba", "bb", "bd", "be", "bf", "bg", "bh", "bi", "bj", "bm", "bn", "bo", "br", "bs", "bt", "bw", "by", "bz", "ca", "cc", "cd", "cf", "cg", "ch", "ci", "ck", "cl", "cm", "cn", "co", "cr", "cu", "cv", "cw", "cx", "cy", "cz", "de", "dj", "dk", "dm", "do", "dz", "ec", "ee", "eg", "er", "es", "et", "eu", "fi", "fj", "fk", "fm", "fo", "fr", "ga", "gd", "ge", "gf", "gg", "gh", "gi", "gl", "gm", "gn", "gp", "gq", "gr", "gs", "gt", "gu", "gw", "gy", "hk", "hm", "hn", "hr", "ht", "hu", "id", "ie", "il", "im", "in", "io", "iq", "ir", "is", "it", "je", "jm", "jo", "jp", "ke", "kg", "kh", "ki", "km", "kn", "kp", "kr", "kw", "ky", "kz", "la", "lb", "lc", "li", "lk", "lr", "ls", "lt", "lu", "lv", "ly", "ma", "mc", "md", "me", "mg", "mh", "mk", "ml", "mm", "mn", "mo", "mp", "mq", "mr", "ms", "mt", "mu", "mv", "mw", "mx", "my", "mz", "na", "nc", "ne", "nf", "ng", "ni", "nl", "no", "np", "nr", "nu", "nz", "om", "pa", "pe", "pf", "pg", "ph", "pk", "pl", "pm", "pn", "pr", "ps", "pt", "pw", "py", "qa", "re", "ro", "rs", "ru", "rw", "sa", "sb", "sc", "sd", "se", "sg", "sh", "si", "sk", "sl", "sm", "sn", "so", "sr", "ss", "st", "su", "sv", "sx", "sy", "sz", "tc", "td", "tf", "tg", "th", "tj", "tk", "tl", "tm", "tn", "to", "tr", "tt", "tv", "tw", "tz", "ua", "ug", "uk", "us", "uy", "uz", "va", "vc", "ve", "vg", "vi", "vn", "vu", "wf", "ws", "ye", "yt", "za", "zm", "zw", "bar", "bible", "biz", "church", "club", "college", "com", "design", "dev", "download", "eco", "eus", "google", "green", "hiv", "icu", "info", "kaufen", "kiwi", "lat", "lgbt", "moe", "name", "net", "ninja", "ngo", "one", "ong", "ooo", "org", "top", "pro", "wiki", "wtf", "xyz", "app", "aero", "asia", "cat", "coop", "edu", "gov", "int", "jobs", "mil", "mobi", "museum", "post", "tel", "travel", "xxx", "africa", "alsace", "amsterdam", "bcn", "berlin", "brussels", "bzh", "cymru", "eu", "eus", "frl", "gal", "gent", "irish", "ist ", "istanbul", "kiwi", "krd", "lat", "london", "melbourne", "miami", "nyc", "paris", "quebec", "rio", "saarland", "scot", "sydney", "taipei", "tokyo", "vegas", "vlaanderen", "wales", "wien", "arpa", "nato", "example", "invalid", "localhost", "test", "onion", "bit", "bitnet", "csnet", "exit", "local", "onion", "root", "uucp", "chn", "africa", "bcn", "wales", "bzh", "cym", "cymru", "eng", "lli", "sic", "wales", "geo", "mail", "web", "free", "kid", "kids", "music", "bl ", "bq ", "eh ", "mf", "bv ", "gb ", "sj", "an ", "bu ", "cs ", "dd ", "tp ", "um ", "yu ", "zr"], | |
p = function(t, n, e, i) { | |
void 0 === e && (e = "/"), void 0 === i && (i = Object(u.a)()), document.cookie = t + "=" + n + "; expires=" + i + "; path=" + e + ";domain=" + function(t) { | |
var n = (t = void 0 === t ? window.location.hostname : t).split("."), | |
e = n.length; | |
if (!isNaN(Number.parseInt(n[e - 1]))) return t; | |
for (var i = []; n.length;) { | |
var r = n.pop(); | |
if (!r) break; | |
if (i.unshift(r), -1 === s.indexOf(r)) break | |
} | |
return "." + i.join(".") | |
}() | |
}, | |
f = e("STkE"), | |
d = undefined && undefined.__extends || (c = function(t, n) { | |
return (c = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, n) { | |
t.__proto__ = n | |
} || function(t, n) { | |
for (var e in n) n.hasOwnProperty(e) && (t[e] = n[e]) | |
})(t, n) | |
}, function(t, n) { | |
function e() { | |
this.constructor = t | |
} | |
c(t, n), t.prototype = null === n ? Object.create(n) : (e.prototype = n.prototype, new e) | |
}), | |
l = "callback", | |
_ = (a = i.a, d(b, a), b.prototype.contextInitStart = function() { | |
Object(r.a)(f.a.PLUGIN_INIT_START, this.name), Object(r.a)(f.a.PLUGIN_INIT_END, this.name) | |
}, b.prototype.pixelDidMount = function() { | |
var t, t = (t = "ttclid", o(window.location.href, t) || o(document.referrer, t)); | |
t && p("ttclid", t) | |
}, b); | |
function b(t) { | |
t = a.call(this, t) || this; | |
return t.name = l, t | |
} | |
e = e("Pd38"); | |
Object(e.a)(l, function(t) { | |
return new _(t) | |
}); | |
n["default"] = _ | |
}, | |
w0s3: function(t, n, e) { | |
"use strict"; | |
e.d(n, "f", function() { | |
return i | |
}), e.d(n, "c", function() { | |
return r | |
}), e.d(n, "b", function() { | |
return o | |
}), e.d(n, "i", function() { | |
return c | |
}), e.d(n, "a", function() { | |
return a | |
}), e.d(n, "g", function() { | |
return u | |
}), e.d(n, "h", function() { | |
return s | |
}), e.d(n, "e", function() { | |
return p | |
}), e.d(n, "d", function() { | |
return f | |
}); | |
var i = "TiktokAnalyticsObject", | |
r = "ttq", | |
o = "external", | |
c = "tiktok", | |
a = "https://analytics.tiktok.com/i18n/pixel/config.js", | |
u = "https://analytics.tiktok.com/i18n/pixel/pickup.js", | |
s = "https://analytics.tiktok.com/i18n/pixel/identify.js", | |
p = "https://analytics.tiktok.com/i18n/pixel/enable_cookie", | |
f = "https://analytics.tiktok.com/i18n/pixel/disable_cookie" | |
} | |
}); | |
! function(c) { | |
function t(t) { | |
for (var e, n, r = t[0], o = t[1], i = 0, a = []; i < r.length; i++) n = r[i], Object.prototype.hasOwnProperty.call(s, n) && s[n] && a.push(s[n][0]), s[n] = 0; | |
for (e in o) Object.prototype.hasOwnProperty.call(o, e) && (c[e] = o[e]); | |
for (f && f(t); a.length;) a.shift()() | |
} | |
var n = {}, | |
s = { | |
0: 0 | |
}; | |
function u(t) { | |
if (n[t]) return n[t].exports; | |
var e = n[t] = { | |
i: t, | |
l: !1, | |
exports: {} | |
}; | |
return c[t].call(e.exports, e, e.exports, u), e.l = !0, e.exports | |
} | |
u.e = function(r) { | |
var o, i, t, a, e, n = [], | |
c = s[r]; | |
return 0 !== c && (c ? n.push(c[2]) : (e = new Promise(function(t, e) { | |
c = s[r] = [t, e] | |
}), n.push(c[2] = e), (o = document.createElement("script")).charset = "utf-8", o.timeout = 120, u.nc && o.setAttribute("nonce", u.nc), o.src = u.p + "" + ({ | |
1: "identify" | |
} [e = r] || e) + ".js", i = new Error, t = function(t) { | |
o.onerror = o.onload = null, clearTimeout(a); | |
var e, n = s[r]; | |
0 !== n && (n && (e = t && ("load" === t.type ? "missing" : t.type), t = t && t.target && t.target.src, i.message = "Loading chunk " + r + " failed.\n(" + e + ": " + t + ")", i.name = "ChunkLoadError", i.type = e, i.request = t, n[1](i)), s[r] = undefined) | |
}, a = setTimeout(function() { | |
t({ | |
type: "timeout", | |
target: o | |
}) | |
}, 12e4), o.onerror = o.onload = t, document.head.appendChild(o))), Promise.all(n) | |
}, u.m = c, u.c = n, u.d = function(t, e, n) { | |
u.o(t, e) || Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: n | |
}) | |
}, u.r = function(t) { | |
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { | |
value: "Module" | |
}), Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}) | |
}, u.t = function(e, t) { | |
if (1 & t && (e = u(e)), 8 & t) return e; | |
if (4 & t && "object" == typeof e && e && e.__esModule) return e; | |
var n = Object.create(null); | |
if (u.r(n), Object.defineProperty(n, "default", { | |
enumerable: !0, | |
value: e | |
}), 2 & t && "string" != typeof e) | |
for (var r in e) u.d(n, r, function(t) { | |
return e[t] | |
}.bind(null, r)); | |
return n | |
}, u.n = function(t) { | |
var e = t && t.__esModule ? function() { | |
return t["default"] | |
} : function() { | |
return t | |
}; | |
return u.d(e, "a", e), e | |
}, u.o = function(t, e) { | |
return Object.prototype.hasOwnProperty.call(t, e) | |
}, u.p = "https://analytics.tiktok.com/i18n/pixel/", u.oe = function(t) { | |
throw console.error(t), t | |
}; | |
var e = (r = window["webpackJsonp.TiktTokAnalytics"] = window["webpackJsonp.TiktTokAnalytics"] || []).push.bind(r); | |
r.push = t; | |
for (var r = r.slice(), o = 0; o < r.length; o++) t(r[o]); | |
var f = e; | |
u(u.s = 0) | |
}({ | |
"/6w+": function(t, e, n) { | |
"use strict"; | |
var r; | |
n.d(e, "a", function() { | |
return r | |
}), (e = {})[e.OTHER = 0] = "OTHER", e[e.ANDROID = 1] = "ANDROID", e[e.IOS = 2] = "IOS", (e = r = r || {}).LOAD_START = "load_start", e.LOAD_END = "load_end", e.BEFORE_INIT = "before_init", e.INIT_START = "init_start", e.INIT_END = "init_end", e.JSB_INIT_START = "jsb_init_start", e.JSB_INIT_END = "jsb_init_end", e.BEFORE_AD_INFO_INIT_START = "before_ad_info_init_start", e.AD_INFO_INIT_START = "ad_info_init_start", e.AD_INFO_INIT_END = "ad_info_init_end", e.IDENTIFY_INIT_START = "identify_init_start", e.IDENTIFY_INIT_END = "identify_init_end", e.PLUGIN_INIT_START = "_init_start", e.PLUGIN_INIT_END = "_init_end", e.PIXEL_SEND = "pixel_send", e.PIXEL_SEND_PCM = "pixel_send_PCM", e.JSB_SEND = "jsb_send", e.HTTP_SEND = "http_send", e.HANDLE_CACHE = "handle_cache", e.INIT_ERROR = "init_error", e.PIXEL_EMPTY = "pixel_empty", e.JSB_ERROR = "jsb_error", e.API_ERROR = "api_error", e.PLUGIN_ERROR = "plugin_error", e.CUSTOM_INFO = "custom_info", e.CUSTOM_ERROR = "custom_error" | |
}, | |
"/EAr": function(t, e, n) { | |
var r = n("KRib"), | |
o = Math.max, | |
i = Math.min; | |
t.exports = function(t, e) { | |
t = r(t); | |
return t < 0 ? o(t + e, 0) : i(t, e) | |
} | |
}, | |
"/WcL": function(t, e, n) { | |
var r = n("89xZ"), | |
o = n("rCb6").f, | |
i = {}.toString, | |
a = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; | |
t.exports.f = function(t) { | |
return a && "[object Window]" == i.call(t) ? function(t) { | |
try { | |
return o(t) | |
} catch (e) { | |
return a.slice() | |
} | |
}(t) : o(r(t)) | |
} | |
}, | |
"/XoZ": function(t, e, n) { | |
var r = n("hYRU"), | |
o = n("g2s6"), | |
i = n("GgRh"); | |
t.exports = !r && !o(function() { | |
return 7 != Object.defineProperty(i("div"), "a", { | |
get: function() { | |
return 7 | |
} | |
}).a | |
}) | |
}, | |
"/YXv": function(t, e, n) { | |
"use strict"; | |
var r = n("tNbY"), | |
o = n("hYRU"), | |
i = n("ElIT"), | |
a = n("Xp4F"), | |
c = n("5BnI"), | |
s = n("tC/m"), | |
u = n("1EXu").f; | |
o && r({ | |
target: "Object", | |
proto: !0, | |
forced: i | |
}, { | |
__lookupGetter__: function(t) { | |
var e, n = a(this), | |
r = c(t, !0); | |
do { | |
if (e = u(n, r)) return e.get | |
} while (n = s(n)) | |
} | |
}) | |
}, | |
0: function(t, e, n) { | |
t.exports = n("oe+7") | |
}, | |
"01Y7": function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("g2s6"), | |
i = n("nY95"), | |
a = Object.isExtensible; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: o(function() { | |
a(1) | |
}) | |
}, { | |
isExtensible: function(t) { | |
return !!i(t) && (!a || a(t)) | |
} | |
}) | |
}, | |
"0RwH": function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("g2s6"), | |
i = n("Xp4F"), | |
a = n("tC/m"), | |
n = n("iGP5"); | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: o(function() { | |
a(1) | |
}), | |
sham: !n | |
}, { | |
getPrototypeOf: function(t) { | |
return a(i(t)) | |
} | |
}) | |
}, | |
"0kdU": function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("g2s6"), | |
i = n("nY95"), | |
a = Object.isFrozen; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: o(function() { | |
a(1) | |
}) | |
}, { | |
isFrozen: function(t) { | |
return !i(t) || !!a && a(t) | |
} | |
}) | |
}, | |
"0rPq": function(t, e, n) { | |
var r, o, i = n("j16E"), | |
n = n("olJS"), | |
i = i.process, | |
i = i && i.versions, | |
i = i && i.v8; | |
i ? o = (r = i.split("."))[0] + r[1] : n && (!(r = n.match(/Edge\/(\d+)/)) || 74 <= r[1]) && (r = n.match(/Chrome\/(\d+)/)) && (o = r[1]), t.exports = o && +o | |
}, | |
"1EXu": function(t, e, n) { | |
var r = n("hYRU"), | |
o = n("kr2p"), | |
i = n("ywqg"), | |
a = n("89xZ"), | |
c = n("5BnI"), | |
s = n("edxO"), | |
u = n("/XoZ"), | |
f = Object.getOwnPropertyDescriptor; | |
e.f = r ? f : function(t, e) { | |
if (t = a(t), e = c(e, !0), u) try { | |
return f(t, e) | |
} catch (n) {} | |
if (s(t, e)) return i(!o.f.call(t, e), t[e]) | |
} | |
}, | |
"2AMv": function(t, e, n) { | |
var o = n("uoAl"), | |
i = n("O+no"); | |
t.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() { | |
var n, r = !1, | |
t = {}; | |
try { | |
(n = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set).call(t, []), r = t instanceof Array | |
} catch (e) {} | |
return function(t, e) { | |
return o(t), i(e), r ? n.call(t, e) : t.__proto__ = e, t | |
} | |
}() : undefined) | |
}, | |
"2gBf": function(t, e, n) { | |
var r = n("uoY4"), | |
o = n("lWKF"), | |
i = n("mRBh")("toStringTag"), | |
a = "Arguments" == o(function() { | |
return arguments | |
}()); | |
t.exports = r ? o : function(t) { | |
var e; | |
return t === undefined ? "Undefined" : null === t ? "Null" : "string" == typeof(t = function(t, e) { | |
try { | |
return t[e] | |
} catch (n) {} | |
}(e = Object(t), i)) ? t : a ? o(e) : "Object" == (t = o(e)) && "function" == typeof e.callee ? "Arguments" : t | |
} | |
}, | |
"5BnI": function(t, e, n) { | |
var o = n("nY95"); | |
t.exports = function(t, e) { | |
if (!o(t)) return t; | |
var n, r; | |
if (e && "function" == typeof(n = t.toString) && !o(r = n.call(t))) return r; | |
if ("function" == typeof(n = t.valueOf) && !o(r = n.call(t))) return r; | |
if (!e && "function" == typeof(n = t.toString) && !o(r = n.call(t))) return r; | |
throw TypeError("Can't convert object to primitive value") | |
} | |
}, | |
"72RN": function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("hYRU"); | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: !o, | |
sham: !o | |
}, { | |
defineProperties: n("JMA6") | |
}) | |
}, | |
"7Kz8": function(t, e, n) { | |
var r = n("mRBh"), | |
o = n("ncq0"), | |
i = r("iterator"), | |
a = Array.prototype; | |
t.exports = function(t) { | |
return t !== undefined && (o.Array === t || a[i] === t) | |
} | |
}, | |
"7bkZ": function(t, e, n) { | |
"use strict"; | |
var r = n("tNbY"), | |
o = n("hYRU"), | |
i = n("ElIT"), | |
a = n("Xp4F"), | |
c = n("mb4w"), | |
s = n("jk77"); | |
o && r({ | |
target: "Object", | |
proto: !0, | |
forced: i | |
}, { | |
__defineGetter__: function(t, e) { | |
s.f(a(this), t, { | |
get: c(e), | |
enumerable: !0, | |
configurable: !0 | |
}) | |
} | |
}) | |
}, | |
"8+Rt": function(t, e, n) { | |
var r = n("g2s6"), | |
o = /#|\.prototype\./, | |
n = function(t, e) { | |
t = a[i(t)]; | |
return t == s || t != c && ("function" == typeof e ? r(e) : !!e) | |
}, | |
i = n.normalize = function(t) { | |
return String(t).replace(o, ".").toLowerCase() | |
}, | |
a = n.data = {}, | |
c = n.NATIVE = "N", | |
s = n.POLYFILL = "P"; | |
t.exports = n | |
}, | |
"89xZ": function(t, e, n) { | |
var r = n("vcnZ"), | |
o = n("eVlr"); | |
t.exports = function(t) { | |
return r(o(t)) | |
} | |
}, | |
"96W2": function(t, e, n) { | |
var r = n("j16E"); | |
n("npvp")(r.JSON, "JSON", !0) | |
}, | |
"9Zby": function(t, e, n) { | |
var r = n("iBW0"), | |
o = n("nY95"), | |
i = n("edxO"), | |
a = n("jk77").f, | |
c = n("L5Il"), | |
s = n("j3DO"), | |
u = c("meta"), | |
f = 0, | |
l = Object.isExtensible || function() { | |
return !0 | |
}, | |
p = function(t) { | |
a(t, u, { | |
value: { | |
objectID: "O" + ++f, | |
weakData: {} | |
} | |
}) | |
}, | |
d = t.exports = { | |
REQUIRED: !1, | |
fastKey: function(t, e) { | |
if (!o(t)) return "symbol" == typeof t ? t : ("string" == typeof t ? "S" : "P") + t; | |
if (!i(t, u)) { | |
if (!l(t)) return "F"; | |
if (!e) return "E"; | |
p(t) | |
} | |
return t[u].objectID | |
}, | |
getWeakData: function(t, e) { | |
if (!i(t, u)) { | |
if (!l(t)) return !0; | |
if (!e) return !1; | |
p(t) | |
} | |
return t[u].weakData | |
}, | |
onFreeze: function(t) { | |
return s && d.REQUIRED && l(t) && !i(t, u) && p(t), t | |
} | |
}; | |
r[u] = !0 | |
}, | |
ARxZ: function(t, e, n) { | |
var n = n("twmF"), | |
r = Function.toString; | |
"function" != typeof n.inspectSource && (n.inspectSource = function(t) { | |
return r.call(t) | |
}), t.exports = n.inspectSource | |
}, | |
Ax39: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("nY95"), | |
i = n("9Zby").onFreeze, | |
a = n("j3DO"), | |
n = n("g2s6"), | |
c = Object.preventExtensions; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: n(function() { | |
c(1) | |
}), | |
sham: !a | |
}, { | |
preventExtensions: function(t) { | |
return c && o(t) ? c(i(t)) : t | |
} | |
}) | |
}, | |
BVjT: function(t, e, n) { | |
var r = n("uoY4"), | |
o = n("eT3W"), | |
n = n("ZMju"); | |
r || o(Object.prototype, "toString", n, { | |
unsafe: !0 | |
}) | |
}, | |
Bnag: function(t, e) { | |
t.exports = function() { | |
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") | |
}, t.exports["default"] = t.exports, t.exports.__esModule = !0 | |
}, | |
ByEr: function(t, e, n) { | |
var r = n("ilFY"), | |
o = n("0rPq"), | |
n = n("g2s6"); | |
t.exports = !!Object.getOwnPropertySymbols && !n(function() { | |
return !Symbol.sham && (r ? 38 === o : 37 < o && o < 41) | |
}) | |
}, | |
"C+w0": function(t, e, n) { | |
var r = n("2gBf"), | |
o = n("ncq0"), | |
i = n("mRBh")("iterator"); | |
t.exports = function(t) { | |
if (t != undefined) return t[i] || t["@@iterator"] || o[r(t)] | |
} | |
}, | |
DFn4: function(t, e, n) { | |
var _ = n("q7hU"), | |
x = n("vcnZ"), | |
O = n("Xp4F"), | |
w = n("OblR"), | |
I = n("yFXH"), | |
S = [].push, | |
n = function(p) { | |
var d = 1 == p, | |
h = 2 == p, | |
b = 3 == p, | |
g = 4 == p, | |
y = 6 == p, | |
v = 7 == p, | |
m = 5 == p || y; | |
return function(t, e, n, r) { | |
for (var o, i, a = O(t), c = x(a), s = _(e, n, 3), u = w(c.length), f = 0, r = r || I, l = d ? r(t, u) : h || v ? r(t, 0) : undefined; f < u; f++) | |
if ((m || f in c) && (i = s(o = c[f], f, a), p)) | |
if (d) l[f] = i; | |
else if (i) switch (p) { | |
case 3: | |
return !0; | |
case 5: | |
return o; | |
case 6: | |
return f; | |
case 2: | |
S.call(l, o) | |
} else switch (p) { | |
case 4: | |
return !1; | |
case 7: | |
S.call(l, o) | |
} | |
return y ? -1 : b || g ? g : l | |
} | |
}; | |
t.exports = { | |
forEach: n(0), | |
map: n(1), | |
filter: n(2), | |
some: n(3), | |
every: n(4), | |
find: n(5), | |
findIndex: n(6), | |
filterOut: n(7) | |
} | |
}, | |
EbDI: function(t, e) { | |
t.exports = function(t) { | |
if ("undefined" != typeof Symbol && null != t[Symbol.iterator] || null != t["@@iterator"]) return Array.from(t) | |
}, t.exports["default"] = t.exports, t.exports.__esModule = !0 | |
}, | |
ElIT: function(t, e, n) { | |
"use strict"; | |
var r = n("eKW+"), | |
o = n("j16E"), | |
n = n("g2s6"); | |
t.exports = r || !n(function() { | |
var t = Math.random(); | |
__defineSetter__.call(null, t, function() {}), delete o[t] | |
}) | |
}, | |
FY8A: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("g2s6"), | |
i = n("89xZ"), | |
a = n("1EXu").f, | |
n = n("hYRU"), | |
o = o(function() { | |
a(1) | |
}); | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: !n || o, | |
sham: !n | |
}, { | |
getOwnPropertyDescriptor: function(t, e) { | |
return a(i(t), e) | |
} | |
}) | |
}, | |
FgOo: function(t, e, n) { | |
var r, o, i, a, c, s, u, f, l = n("iKAX"), | |
p = n("j16E"), | |
d = n("nY95"), | |
h = n("VFIL"), | |
b = n("edxO"), | |
g = n("twmF"), | |
y = n("bQ5J"), | |
n = n("iBW0"), | |
v = "Object already initialized", | |
p = p.WeakMap; | |
u = l ? (r = g.state || (g.state = new p), o = r.get, i = r.has, a = r.set, c = function(t, e) { | |
if (i.call(r, t)) throw new TypeError(v); | |
return e.facade = t, a.call(r, t, e), e | |
}, s = function(t) { | |
return o.call(r, t) || {} | |
}, function(t) { | |
return i.call(r, t) | |
}) : (n[f = y("state")] = !0, c = function(t, e) { | |
if (b(t, f)) throw new TypeError(v); | |
return e.facade = t, h(t, f, e), e | |
}, s = function(t) { | |
return b(t, f) ? t[f] : {} | |
}, function(t) { | |
return b(t, f) | |
}), t.exports = { | |
set: c, | |
get: s, | |
has: u, | |
enforce: function(t) { | |
return u(t) ? s(t) : c(t, {}) | |
}, | |
getterFor: function(n) { | |
return function(t) { | |
var e; | |
if (!d(t) || (e = s(t)).type !== n) throw TypeError("Incompatible receiver, " + n + " required"); | |
return e | |
} | |
} | |
} | |
}, | |
GJ6r: function(t, e, n) { | |
"use strict"; | |
n.d(e, "d", function() { | |
return c | |
}), n.d(e, "f", function() { | |
return s | |
}), n.d(e, "a", function() { | |
return u | |
}), n.d(e, "c", function() { | |
return f | |
}), n.d(e, "b", function() { | |
return l | |
}), n.d(e, "e", function() { | |
return p | |
}); | |
var r = n("SbFU"), | |
o = n("w0s3"), | |
i = "object" == typeof navigator ? navigator.userAgent : "", | |
a = function() { | |
var t; | |
return (null === (t = null === (t = Object(r.i)()) || void 0 === t ? void 0 : t._env) || void 0 === t ? void 0 : t.env) || o.b | |
}, | |
c = function() { | |
return a() !== o.b | |
}, | |
s = function() { | |
return a() === o.n | |
}, | |
u = function() { | |
return /windows phone/i.test(i) ? "Windows Phone" : /android/i.test(i) ? "android" : /iPad|iPhone|iPod/.test(i) ? "ios" : "pc" | |
}, | |
f = function() { | |
return "ios" === u() | |
}, | |
l = function() { | |
return "development" === "production".trim() | |
}, | |
p = function() { | |
return s() && f() | |
} | |
}, | |
"Gd/C": function(t, e, n) { | |
var r = n("WgSG"), | |
o = n("j16E"), | |
i = function(t) { | |
return "function" == typeof t ? t : undefined | |
}; | |
t.exports = function(t, e) { | |
return arguments.length < 2 ? i(r[t]) || i(o[t]) : r[t] && r[t][e] || o[t] && o[t][e] | |
} | |
}, | |
GgRh: function(t, e, n) { | |
var r = n("j16E"), | |
n = n("nY95"), | |
o = r.document, | |
i = n(o) && n(o.createElement); | |
t.exports = function(t) { | |
return i ? o.createElement(t) : {} | |
} | |
}, | |
HF0W: function(t, e, n) { | |
n("tNbY")({ | |
target: "Object", | |
stat: !0, | |
sham: !n("hYRU") | |
}, { | |
create: n("Yp42") | |
}) | |
}, | |
HyyX: function(t, e, n) { | |
"use strict"; | |
n.d(e, "b", function() { | |
return o | |
}), n.d(e, "a", function() { | |
return r | |
}); | |
var r, o = ["email", "phone_number", "external_id", "sha256_email", "sha256_phone_number", "sha256_external_id"]; | |
(e = r = r || {}).EMPTY_VALUE = "empty_value", e.WRONG_FORMAT = "wrong_format", e.CORRECT_FORMAT = "correct_format", e.HASHED = "hashed", e.HASHED_ERR = "hashed_err", e.HASHED_CORRECT = "hashed_correct", e.PLAINTEXT_EMAIL = "plaintext_email", e.PLAINTEXT_PHONE = "plaintext_phone" | |
}, | |
Ijbi: function(t, e, n) { | |
var r = n("WkPL"); | |
t.exports = function(t) { | |
if (Array.isArray(t)) return r(t) | |
}, t.exports["default"] = t.exports, t.exports.__esModule = !0 | |
}, | |
Ivt0: function(t, e, n) { | |
"use strict"; | |
var r = n("tNbY"), | |
o = n("hYRU"), | |
i = n("ElIT"), | |
a = n("Xp4F"), | |
c = n("5BnI"), | |
s = n("tC/m"), | |
u = n("1EXu").f; | |
o && r({ | |
target: "Object", | |
proto: !0, | |
forced: i | |
}, { | |
__lookupSetter__: function(t) { | |
var e, n = a(this), | |
r = c(t, !0); | |
do { | |
if (e = u(n, r)) return e.set | |
} while (n = s(n)) | |
} | |
}) | |
}, | |
JMA6: function(t, e, n) { | |
var r = n("hYRU"), | |
a = n("jk77"), | |
c = n("uoAl"), | |
s = n("pO6F"); | |
t.exports = r ? Object.defineProperties : function(t, e) { | |
c(t); | |
for (var n, r = s(e), o = r.length, i = 0; i < o;) a.f(t, n = r[i++], e[n]); | |
return t | |
} | |
}, | |
KKIa: function(t, e, n) { | |
var r = n("tNbY"), | |
n = n("freY"); | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: Object.assign !== n | |
}, { | |
assign: n | |
}) | |
}, | |
KRib: function(t, e) { | |
var n = Math.ceil, | |
r = Math.floor; | |
t.exports = function(t) { | |
return isNaN(t = +t) ? 0 : (0 < t ? r : n)(t) | |
} | |
}, | |
L5Il: function(t, e) { | |
var n = 0, | |
r = Math.random(); | |
t.exports = function(t) { | |
return "Symbol(" + String(t === undefined ? "" : t) + ")_" + (++n + r).toString(36) | |
} | |
}, | |
Lk6y: function(t, e, n) { | |
var y = n("uoAl"), | |
v = n("7Kz8"), | |
m = n("OblR"), | |
_ = n("q7hU"), | |
x = n("C+w0"), | |
O = n("yYan"), | |
w = function(t, e) { | |
this.stopped = t, this.result = e | |
}; | |
t.exports = function(t, e, n) { | |
var r, o, i, a, c, s, u = n && n.that, | |
f = !(!n || !n.AS_ENTRIES), | |
l = !(!n || !n.IS_ITERATOR), | |
p = !(!n || !n.INTERRUPTED), | |
d = _(e, u, 1 + f + p), | |
h = function(t) { | |
return r && O(r), new w(!0, t) | |
}, | |
b = function(t) { | |
return f ? (y(t), p ? d(t[0], t[1], h) : d(t[0], t[1])) : p ? d(t, h) : d(t) | |
}; | |
if (l) r = t; | |
else { | |
if ("function" != typeof(l = x(t))) throw TypeError("Target is not iterable"); | |
if (v(l)) { | |
for (o = 0, i = m(t.length); o < i; o++) | |
if ((a = b(t[o])) && a instanceof w) return a; | |
return new w(!1) | |
} | |
r = l.call(t) | |
} | |
for (c = r.next; !(s = c.call(r)).done;) { | |
try { | |
a = b(s.value) | |
} catch (g) { | |
throw O(r), g | |
} | |
if ("object" == typeof a && a && a instanceof w) return a | |
} | |
return new w(!1) | |
} | |
}, | |
NoR1: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("Lk6y"), | |
i = n("dotx"); | |
r({ | |
target: "Object", | |
stat: !0 | |
}, { | |
fromEntries: function(t) { | |
var n = {}; | |
return o(t, function(t, e) { | |
i(n, t, e) | |
}, { | |
AS_ENTRIES: !0 | |
}), n | |
} | |
}) | |
}, | |
"O+no": function(t, e, n) { | |
var r = n("nY95"); | |
t.exports = function(t) { | |
if (!r(t) && null !== t) throw TypeError("Can't set " + String(t) + " as a prototype"); | |
return t | |
} | |
}, | |
OblR: function(t, e, n) { | |
var r = n("KRib"), | |
o = Math.min; | |
t.exports = function(t) { | |
return 0 < t ? o(r(t), 9007199254740991) : 0 | |
} | |
}, | |
PpL8: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("g2s6"), | |
n = n("/WcL").f; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: o(function() { | |
return !Object.getOwnPropertyNames(1) | |
}) | |
}, { | |
getOwnPropertyNames: n | |
}) | |
}, | |
Pt9r: function(t, e, n) { | |
n = n("mRBh"); | |
e.f = n | |
}, | |
R6QP: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("WuDU").values; | |
r({ | |
target: "Object", | |
stat: !0 | |
}, { | |
values: function(t) { | |
return o(t) | |
} | |
}) | |
}, | |
RIqP: function(t, e, n) { | |
var r = n("Ijbi"), | |
o = n("EbDI"), | |
i = n("ZhPi"), | |
a = n("Bnag"); | |
t.exports = function(t) { | |
return r(t) || o(t) || i(t) || a() | |
}, t.exports["default"] = t.exports, t.exports.__esModule = !0 | |
}, | |
Rdpx: function(t, e, n) { | |
var r = n("WgSG"), | |
o = n("edxO"), | |
i = n("Pt9r"), | |
a = n("jk77").f; | |
t.exports = function(t) { | |
var e = r.Symbol || (r.Symbol = {}); | |
o(e, t) || a(e, t, { | |
value: i.f(t) | |
}) | |
} | |
}, | |
SbFU: function(t, e, n) { | |
"use strict"; | |
n.d(e, "f", function() { | |
return c | |
}), n.d(e, "j", function() { | |
return s | |
}), n.d(e, "t", function() { | |
return u | |
}), n.d(e, "u", function() { | |
return f | |
}), n.d(e, "k", function() { | |
return l | |
}), n.d(e, "s", function() { | |
return p | |
}), n.d(e, "q", function() { | |
return d | |
}), n.d(e, "r", function() { | |
return h | |
}), n.d(e, "o", function() { | |
return b | |
}), n.d(e, "p", function() { | |
return g | |
}), n.d(e, "l", function() { | |
return y | |
}), n.d(e, "h", function() { | |
return m | |
}), n.d(e, "g", function() { | |
return _ | |
}), n.d(e, "m", function() { | |
return x | |
}), n.d(e, "i", function() { | |
return O | |
}), n.d(e, "n", function() { | |
return w | |
}), n.d(e, "e", function() { | |
return I | |
}), n.d(e, "d", function() { | |
return S | |
}), n.d(e, "a", function() { | |
return k | |
}), n.d(e, "b", function() { | |
return j | |
}), n.d(e, "c", function() { | |
return E | |
}), n.d(e, "v", function() { | |
return P | |
}); | |
var r = n("GJ6r"), | |
o = n("w0s3"), | |
i = n("HyyX"), | |
a = undefined && undefined.__spreadArrays || function() { | |
for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length; | |
for (var r = Array(t), o = 0, e = 0; e < n; e++) | |
for (var i = arguments[e], a = 0, c = i.length; a < c; a++, o++) r[o] = i[a]; | |
return r | |
}, | |
c = function() { | |
return O() | |
}, | |
s = function() { | |
return O()._i | |
}, | |
u = function(e, n) { | |
var r = O()._i; | |
Object.keys(r).forEach(function(t) { | |
t = r[t]; | |
t._init || t.push([e].concat(n)) | |
}) | |
}, | |
f = function(t, e, n) { | |
t = O()._i[t]; | |
t && (t._init || t.push([e].concat(n))) | |
}, | |
l = function() { | |
var t = O(); | |
return t._partner || "" | |
}, | |
p = function(t) { | |
return "string" == typeof t | |
}, | |
d = function(t) { | |
return "number" == typeof t | |
}, | |
h = function(t) { | |
return "[object Object]" == Object.prototype.toString.call(t) | |
}, | |
b = function(t) { | |
return "{}" === JSON.stringify(t) | |
}, | |
g = function() { | |
var t = O(); | |
return t && t.initialize | |
}, | |
y = function(t, e) { | |
return v() + "?sdkid=" + t + "&hostname=" + e | |
}, | |
v = function() { | |
return Object(r.b)() ? "/config.js" : o.a | |
}, | |
m = function() { | |
return Object(r.b)() ? "/enable_cookie.js" : o.f | |
}, | |
_ = function() { | |
return Object(r.b)() ? "/disable_cookie.js" : o.d | |
}, | |
x = function() { | |
return "object" == typeof window && window[o.g] || o.c | |
}, | |
O = function() { | |
return "object" == typeof window && window[x()] | |
}, | |
w = function() { | |
try { | |
return O()._variation_id | |
} catch (t) { | |
return "" | |
} | |
}, | |
I = function(t) { | |
return t + "-" + Date.now() + "-" + (Math.floor(Math.random() * (9e12 - 1)) + 1e12) | |
}, | |
S = function(t, e) { | |
return t + "-" + e | |
}, | |
k = function(e, n) { | |
if (!e) return null; | |
var r = {}; | |
return Object.keys(e).forEach(function(t) { | |
n[t] && (r[t] = e[t]) | |
}), r | |
}, | |
j = function(n, t) { | |
var r = { | |
identity_params: {} | |
}; | |
return 0 === Object.keys(n).length ? {} : (Object.entries(t).forEach(function(t) { | |
var e = t[0]; | |
t[1] && (r.identity_params && (r.identity_params[e] = [i.a.EMPTY_VALUE]), n[e] && (t = n[e] || [i.a.EMPTY_VALUE], r.identity_params && (r.identity_params[e] = a(t)))) | |
}), r) | |
}, | |
E = function() { | |
return new Date(Date.now() + 864e5).toUTCString() | |
}; | |
function P(t, e, n) { | |
return void 0 === t && (t = 0), void 0 === e && (e = Number.MIN_SAFE_INTEGER), t < (n = void 0 === n ? Number.MAX_SAFE_INTEGER : n) && e <= t | |
} | |
}, | |
Si2v: function(t, e) { | |
e.f = Object.getOwnPropertySymbols | |
}, | |
Thaq: function(t, e, n) { | |
var r = n("eKW+"), | |
o = n("twmF"); | |
(t.exports = function(t, e) { | |
return o[t] || (o[t] = e !== undefined ? e : {}) | |
})("versions", []).push({ | |
version: "3.11.0", | |
mode: r ? "pure" : "global", | |
copyright: "© 2021 Denis Pushkarev (zloirock.ru)" | |
}) | |
}, | |
Tuz7: function(t, e, n) { | |
var a = n("edxO"), | |
c = n("89xZ"), | |
s = n("Vl7W").indexOf, | |
u = n("iBW0"); | |
t.exports = function(t, e) { | |
var n, r = c(t), | |
o = 0, | |
i = []; | |
for (n in r) !a(u, n) && a(r, n) && i.push(n); | |
for (; e.length > o;) a(r, n = e[o++]) && (~s(i, n) || i.push(n)); | |
return i | |
} | |
}, | |
Ujv9: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("nY95"), | |
i = n("9Zby").onFreeze, | |
a = n("j3DO"), | |
n = n("g2s6"), | |
c = Object.seal; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: n(function() { | |
c(1) | |
}), | |
sham: !a | |
}, { | |
seal: function(t) { | |
return c && o(t) ? c(i(t)) : t | |
} | |
}) | |
}, | |
VFIL: function(t, e, n) { | |
var r = n("hYRU"), | |
o = n("jk77"), | |
i = n("ywqg"); | |
t.exports = r ? function(t, e, n) { | |
return o.f(t, e, i(1, n)) | |
} : function(t, e, n) { | |
return t[e] = n, t | |
} | |
}, | |
"Vi/0": function(t, e, n) { | |
n = n("ByEr"); | |
t.exports = n && !Symbol.sham && "symbol" == typeof Symbol.iterator | |
}, | |
Vl7W: function(t, e, n) { | |
var s = n("89xZ"), | |
u = n("OblR"), | |
f = n("/EAr"), | |
n = function(c) { | |
return function(t, e, n) { | |
var r, o = s(t), | |
i = u(o.length), | |
a = f(n, i); | |
if (c && e != e) { | |
for (; a < i;) | |
if ((r = o[a++]) != r) return !0 | |
} else | |
for (; a < i; a++) | |
if ((c || a in o) && o[a] === e) return c || a || 0; | |
return !c && -1 | |
} | |
}; | |
t.exports = { | |
includes: n(!0), | |
indexOf: n(!1) | |
} | |
}, | |
WgSG: function(t, e, n) { | |
n = n("j16E"); | |
t.exports = n | |
}, | |
WkPL: function(t, e) { | |
t.exports = function(t, e) { | |
(null == e || e > t.length) && (e = t.length); | |
for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n]; | |
return r | |
}, t.exports["default"] = t.exports, t.exports.__esModule = !0 | |
}, | |
WuDU: function(t, e, n) { | |
var s = n("hYRU"), | |
u = n("pO6F"), | |
f = n("89xZ"), | |
l = n("kr2p").f, | |
n = function(c) { | |
return function(t) { | |
for (var e, n = f(t), r = u(n), o = r.length, i = 0, a = []; i < o;) e = r[i++], s && !l.call(n, e) || a.push(c ? [e, n[e]] : n[e]); | |
return a | |
} | |
}; | |
t.exports = { | |
entries: n(!0), | |
values: n(!1) | |
} | |
}, | |
Xp4F: function(t, e, n) { | |
var r = n("eVlr"); | |
t.exports = function(t) { | |
return Object(r(t)) | |
} | |
}, | |
Yp42: function(t, e, n) { | |
var r, o = n("uoAl"), | |
i = n("JMA6"), | |
a = n("mzWg"), | |
c = n("iBW0"), | |
s = n("dhZJ"), | |
u = n("GgRh"), | |
n = n("bQ5J"), | |
f = "prototype", | |
l = "script", | |
p = n("IE_PROTO"), | |
d = function() {}, | |
h = function(t) { | |
return "<script>" + t + "</" + l + ">" | |
}, | |
b = function() { | |
try { | |
r = document.domain && new ActiveXObject("htmlfile") | |
} catch (n) {} | |
var t; | |
b = r ? function(t) { | |
t.write(h("")), t.close(); | |
var e = t.parentWindow.Object; | |
return t = null, e | |
}(r) : ((t = u("iframe")).style.display = "none", s.appendChild(t), t.src = String("javascript:"), (t = t.contentWindow.document).open(), t.write(h("document.F=Object")), t.close(), t.F); | |
for (var e = a.length; e--;) delete b[f][a[e]]; | |
return b() | |
}; | |
c[p] = !0, t.exports = Object.create || function(t, e) { | |
var n; | |
return null !== t ? (d[f] = o(t), n = new d, d[f] = null, n[p] = t) : n = b(), e === undefined ? n : i(n, e) | |
} | |
}, | |
ZMju: function(t, e, n) { | |
"use strict"; | |
var r = n("uoY4"), | |
o = n("2gBf"); | |
t.exports = r ? {}.toString : function() { | |
return "[object " + o(this) + "]" | |
} | |
}, | |
ZhPi: function(t, e, n) { | |
var r = n("WkPL"); | |
t.exports = function(t, e) { | |
if (t) { | |
if ("string" == typeof t) return r(t, e); | |
var n = Object.prototype.toString.call(t).slice(8, -1); | |
return "Map" === (n = "Object" === n && t.constructor ? t.constructor.name : n) || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? r(t, e) : void 0 | |
} | |
}, t.exports["default"] = t.exports, t.exports.__esModule = !0 | |
}, | |
aJVn: function(t, e, n) { | |
var c = n("edxO"), | |
s = n("wUKj"), | |
u = n("1EXu"), | |
f = n("jk77"); | |
t.exports = function(t, e) { | |
for (var n = s(e), r = f.f, o = u.f, i = 0; i < n.length; i++) { | |
var a = n[i]; | |
c(t, a) || r(t, a, o(e, a)) | |
} | |
} | |
}, | |
ah02: function(t, e, n) { | |
"use strict"; | |
var r = n("tNbY"), | |
o = n("hYRU"), | |
i = n("ElIT"), | |
a = n("Xp4F"), | |
c = n("mb4w"), | |
s = n("jk77"); | |
o && r({ | |
target: "Object", | |
proto: !0, | |
forced: i | |
}, { | |
__defineSetter__: function __defineSetter__(t, e) { | |
s.f(a(this), t, { | |
set: c(e), | |
enumerable: !0, | |
configurable: !0 | |
}) | |
} | |
}) | |
}, | |
bQ5J: function(t, e, n) { | |
var r = n("Thaq"), | |
o = n("L5Il"), | |
i = r("keys"); | |
t.exports = function(t) { | |
return i[t] || (i[t] = o(t)) | |
} | |
}, | |
blhV: function(t, e, n) { | |
n("npvp")(Math, "Math", !0) | |
}, | |
cKix: function(t, e, n) { | |
var r = n("j16E"), | |
o = n("VFIL"); | |
t.exports = function(t, e) { | |
try { | |
o(r, t, e) | |
} catch (n) { | |
r[t] = e | |
} | |
return e | |
} | |
}, | |
cpc2: function(t, e, n) { | |
function r(t) { | |
if (t) return function(t) { | |
for (var e in r.prototype) t[e] = r.prototype[e]; | |
return t | |
}(t) | |
}(t.exports = r).prototype.on = r.prototype.addEventListener = function(t, e) { | |
return this._callbacks = this._callbacks || {}, (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(e), this | |
}, r.prototype.once = function(t, e) { | |
function n() { | |
this.off(t, n), e.apply(this, arguments) | |
} | |
return n.fn = e, this.on(t, n), this | |
}, r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function(t, e) { | |
if (this._callbacks = this._callbacks || {}, 0 == arguments.length) return this._callbacks = {}, this; | |
var n, r = this._callbacks["$" + t]; | |
if (!r) return this; | |
if (1 == arguments.length) return delete this._callbacks["$" + t], this; | |
for (var o = 0; o < r.length; o++) | |
if ((n = r[o]) === e || n.fn === e) { | |
r.splice(o, 1); | |
break | |
} return 0 === r.length && delete this._callbacks["$" + t], this | |
}, r.prototype.emit = function(t) { | |
this._callbacks = this._callbacks || {}; | |
for (var e = new Array(arguments.length - 1), n = this._callbacks["$" + t], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; | |
if (n) | |
for (var r = 0, o = (n = n.slice(0)).length; r < o; ++r) n[r].apply(this, e); | |
return this | |
}, r.prototype.listeners = function(t) { | |
return this._callbacks = this._callbacks || {}, this._callbacks["$" + t] || [] | |
}, r.prototype.hasListeners = function(t) { | |
return !!this.listeners(t).length | |
} | |
}, | |
dhZJ: function(t, e, n) { | |
n = n("Gd/C"); | |
t.exports = n("document", "documentElement") | |
}, | |
dotx: function(t, e, n) { | |
"use strict"; | |
var r = n("5BnI"), | |
o = n("jk77"), | |
i = n("ywqg"); | |
t.exports = function(t, e, n) { | |
e = r(e); | |
e in t ? o.f(t, e, i(0, n)) : t[e] = n | |
} | |
}, | |
"eKW+": function(t, e) { | |
t.exports = !1 | |
}, | |
eT3W: function(t, e, n) { | |
var c = n("j16E"), | |
s = n("VFIL"), | |
u = n("edxO"), | |
f = n("cKix"), | |
r = n("ARxZ"), | |
n = n("FgOo"), | |
o = n.get, | |
l = n.enforce, | |
p = String(String).split("String"); | |
(t.exports = function(t, e, n, r) { | |
var o = !!r && !!r.unsafe, | |
i = !!r && !!r.enumerable, | |
a = !!r && !!r.noTargetGet; | |
"function" == typeof n && ("string" != typeof e || u(n, "name") || s(n, "name", e), (r = l(n)).source || (r.source = p.join("string" == typeof e ? e : ""))), t !== c ? (o ? !a && t[e] && (i = !0) : delete t[e], i ? t[e] = n : s(t, e, n)) : i ? t[e] = n : f(e, n) | |
})(Function.prototype, "toString", function() { | |
return "function" == typeof this && o(this).source || r(this) | |
}) | |
}, | |
eVlr: function(t, e) { | |
t.exports = function(t) { | |
if (t == undefined) throw TypeError("Can't call method on " + t); | |
return t | |
} | |
}, | |
edxO: function(t, e, n) { | |
var r = n("Xp4F"), | |
o = {}.hasOwnProperty; | |
t.exports = function(t, e) { | |
return o.call(r(t), e) | |
} | |
}, | |
f2VU: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("WuDU").entries; | |
r({ | |
target: "Object", | |
stat: !0 | |
}, { | |
entries: function(t) { | |
return o(t) | |
} | |
}) | |
}, | |
fKdN: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("hYRU"), | |
s = n("wUKj"), | |
u = n("89xZ"), | |
f = n("1EXu"), | |
l = n("dotx"); | |
r({ | |
target: "Object", | |
stat: !0, | |
sham: !o | |
}, { | |
getOwnPropertyDescriptors: function(t) { | |
for (var e, n, r = u(t), o = f.f, i = s(r), a = {}, c = 0; i.length > c;)(n = o(r, e = i[c++])) !== undefined && l(a, e, n); | |
return a | |
} | |
}) | |
}, | |
fe1q: function(t, e, n) { | |
"use strict"; | |
n.d(e, "c", function() { | |
return r | |
}), n.d(e, "a", function() { | |
return i | |
}), n.d(e, "b", function() { | |
return a | |
}); | |
var o = n("SbFU"); | |
function r() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
try { | |
var n = Object(o.i)().monitor; | |
n && n.info.apply(n, t) | |
} catch (r) {} | |
} | |
function i() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
try { | |
var n = Object(o.i)().monitor; | |
n && n.error.apply(n, t) | |
} catch (r) {} | |
} | |
function a() { | |
try { | |
0; | |
var t = document && document.currentScript && document.currentScript.src || "http://emptyURLSrc", | |
e = /i18n\/pixel\/events\.js/.test(t), | |
n = /i18n\/pixel\/sdk\.js/.test(t), | |
r = new URL(t).searchParams; | |
return e ? { | |
lib: r.get("lib") || "ttq", | |
pixelCode: r.get("sdkid") || "" | |
} : n ? { | |
lib: "_taq", | |
pixelCode: r.get("sdkid") || "" | |
} : { | |
lib: "ttq", | |
pixelCode: "" | |
} | |
} catch (o) { | |
return { | |
lib: "ttq", | |
pixelCode: "" | |
} | |
} | |
} | |
}, | |
freY: function(t, e, n) { | |
"use strict"; | |
var p = n("hYRU"), | |
r = n("g2s6"), | |
d = n("pO6F"), | |
h = n("Si2v"), | |
b = n("kr2p"), | |
g = n("Xp4F"), | |
y = n("vcnZ"), | |
o = Object.assign, | |
i = Object.defineProperty; | |
t.exports = !o || r(function() { | |
if (p && 1 !== o({ | |
b: 1 | |
}, o(i({}, "a", { | |
enumerable: !0, | |
get: function() { | |
i(this, "b", { | |
value: 3, | |
enumerable: !1 | |
}) | |
} | |
}), { | |
b: 2 | |
})).b) return !0; | |
var t = {}, | |
e = {}, | |
n = Symbol(), | |
r = "abcdefghijklmnopqrst"; | |
return t[n] = 7, r.split("").forEach(function(t) { | |
e[t] = t | |
}), 7 != o({}, t)[n] || d(o({}, e)).join("") != r | |
}) ? function(t, e) { | |
for (var n = g(t), r = arguments.length, o = 1, i = h.f, a = b.f; o < r;) | |
for (var c, s = y(arguments[o++]), u = i ? d(s).concat(i(s)) : d(s), f = u.length, l = 0; l < f;) c = u[l++], p && !a.call(s, c) || (n[c] = s[c]); | |
return n | |
} : o | |
}, | |
g2s6: function(t, e) { | |
t.exports = function(t) { | |
try { | |
return !!t() | |
} catch (e) { | |
return !0 | |
} | |
} | |
}, | |
gsVl: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("j3DO"), | |
i = n("g2s6"), | |
a = n("nY95"), | |
c = n("9Zby").onFreeze, | |
s = Object.freeze; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: i(function() { | |
s(1) | |
}), | |
sham: !o | |
}, { | |
freeze: function(t) { | |
return s && a(t) ? s(c(t)) : t | |
} | |
}) | |
}, | |
hYRU: function(t, e, n) { | |
n = n("g2s6"); | |
t.exports = !n(function() { | |
return 7 != Object.defineProperty({}, 1, { | |
get: function() { | |
return 7 | |
} | |
})[1] | |
}) | |
}, | |
iBW0: function(t, e) { | |
t.exports = {} | |
}, | |
iGP5: function(t, e, n) { | |
n = n("g2s6"); | |
t.exports = !n(function() { | |
function t() {} | |
return t.prototype.constructor = null, Object.getPrototypeOf(new t) !== t.prototype | |
}) | |
}, | |
iKAX: function(t, e, n) { | |
var r = n("j16E"), | |
n = n("ARxZ"), | |
r = r.WeakMap; | |
t.exports = "function" == typeof r && /native code/.test(n(r)) | |
}, | |
ilFY: function(t, e, n) { | |
var r = n("lWKF"), | |
n = n("j16E"); | |
t.exports = "process" == r(n.process) | |
}, | |
j16E: function(n, t, e) { | |
! function(t) { | |
var e = function(t) { | |
return t && t.Math == Math && t | |
}; | |
n.exports = e("object" == typeof globalThis && globalThis) || e("object" == typeof window && window) || e("object" == typeof self && self) || e("object" == typeof t && t) || function() { | |
return this | |
}() || Function("return this")() | |
}.call(this, e("yLpj")) | |
}, | |
j3DO: function(t, e, n) { | |
n = n("g2s6"); | |
t.exports = !n(function() { | |
return Object.isExtensible(Object.preventExtensions({})) | |
}) | |
}, | |
jk77: function(t, e, n) { | |
var r = n("hYRU"), | |
o = n("/XoZ"), | |
i = n("uoAl"), | |
a = n("5BnI"), | |
c = Object.defineProperty; | |
e.f = r ? c : function(t, e, n) { | |
if (i(t), e = a(e, !0), i(n), o) try { | |
return c(t, e, n) | |
} catch (r) {} | |
if ("get" in n || "set" in n) throw TypeError("Accessors not supported"); | |
return "value" in n && (t[e] = n.value), t | |
} | |
}, | |
kr2p: function(t, e, n) { | |
"use strict"; | |
var r = {}.propertyIsEnumerable, | |
o = Object.getOwnPropertyDescriptor, | |
i = o && !r.call({ | |
1: 2 | |
}, 1); | |
e.f = i ? function(t) { | |
t = o(this, t); | |
return !!t && t.enumerable | |
} : r | |
}, | |
lWKF: function(t, e) { | |
var n = {}.toString; | |
t.exports = function(t) { | |
return n.call(t).slice(8, -1) | |
} | |
}, | |
mFs5: function(t, e, n) { | |
"use strict"; | |
n.d(e, "a", function() { | |
return r | |
}); | |
var r = ["phone_number", "email", "external_id"] | |
}, | |
mRBh: function(t, e, n) { | |
var r = n("j16E"), | |
o = n("Thaq"), | |
i = n("edxO"), | |
a = n("L5Il"), | |
c = n("ByEr"), | |
n = n("Vi/0"), | |
s = o("wks"), | |
u = r.Symbol, | |
f = n ? u : u && u.withoutSetter || a; | |
t.exports = function(t) { | |
return i(s, t) && (c || "string" == typeof s[t]) || (c && i(u, t) ? s[t] = u[t] : s[t] = f("Symbol." + t)), s[t] | |
} | |
}, | |
mb4w: function(t, e) { | |
t.exports = function(t) { | |
if ("function" != typeof t) throw TypeError(String(t) + " is not a function"); | |
return t | |
} | |
}, | |
mzWg: function(t, e) { | |
t.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"] | |
}, | |
nY95: function(t, e) { | |
t.exports = function(t) { | |
return "object" == typeof t ? null !== t : "function" == typeof t | |
} | |
}, | |
ncq0: function(t, e) { | |
t.exports = {} | |
}, | |
npvp: function(t, e, n) { | |
var r = n("jk77").f, | |
o = n("edxO"), | |
i = n("mRBh")("toStringTag"); | |
t.exports = function(t, e, n) { | |
t && !o(t = n ? t : t.prototype, i) && r(t, i, { | |
configurable: !0, | |
value: e | |
}) | |
} | |
}, | |
"oe+7": function(t, e, n) { | |
"use strict"; | |
n.r(e); | |
n("ya48"); | |
var f = n("SbFU"); | |
function r() {} | |
new(r.prototype.log = function() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
t[0] = "[TT] " + t[0], this.console && this.console.log.apply(this.console, t) | |
}, r.prototype.info = function() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
this.group(t.shift() + "💡"), t.unshift("=>"), this.console && this.console.info.apply(this.console, t), this.groupEnd() | |
}, r.prototype.warn = function() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
t[0] = "[TT] " + t[0], this.console && this.console.warn.apply(this.console, t) | |
}, r.prototype.error = function() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
t[0] = "[TT] " + t[0], this.console && this.console.error.apply(this.console, t) | |
}, r.prototype.group = function() { | |
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; | |
t[0] = "[TT] " + t[0], this.console && this.console.group.apply(this.console, t) | |
}, r.prototype.groupEnd = function() { | |
this.console && this.console.groupEnd.apply(this.console, ["groupEnd"]) | |
}, r); | |
var u, o = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
i = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}, | |
a = function(e, n) { | |
return void 0 === n && (n = 1), o(this, void 0, void 0, function() { | |
return i(this, function(t) { | |
switch (t.label) { | |
case 0: | |
if (!(0 <= n)) return [3, 5]; | |
t.label = 1; | |
case 1: | |
return t.trys.push([1, 3, , 4]), [4, (o = e, new Promise(function(t, e) { | |
var n = document.createElement("script"); | |
n.type = "text/javascript", n["async"] = !0, n.src = o; | |
var r = document.getElementsByTagName("script")[0]; | |
r && r.parentNode ? r.parentNode.insertBefore(n, r) : e("none element"), n.onload = function() { | |
t() | |
}, n.onerror = e | |
}))]; | |
case 2: | |
return t.sent(), [2, Promise.resolve(!0)]; | |
case 3: | |
return t.sent(), [2, a.call(null, e, n - 1)]; | |
case 4: | |
return [3, 6]; | |
case 5: | |
throw Error; | |
case 6: | |
return [2] | |
} | |
var o | |
}) | |
}) | |
}; | |
(O = u = u || {}).TRACK = "track", O.PERFORMANCE = "performance", O.INTERACTION = "interaction", O.PCM = "PCM"; | |
var c = n("GJ6r"), | |
s = (l.prototype.setAdvancedMatchingAvailableProperties = function(t) { | |
this.advancedMatchingAvailableProperties = Object.assign({}, this.advancedMatchingAvailableProperties, t) | |
}, l.prototype.setPixelInfo = function(t) { | |
this.name = t.name, this.status = t.status, this.setupMode = t.setupMode, this.advertiserID = t.advertiserID, this.partner = t.partner, this.is_onsite = t.is_onsite | |
}, l.prototype.getUserInfo = function() { | |
var t = this.context.methods.getUserInfo(); | |
return Object(f.a)(t, this.advancedMatchingAvailableProperties) | |
}, l.prototype.getPixelMatchedUserFormatInfo = function() { | |
var t = this.context.methods.getUserFormatInfo(); | |
return Object(f.b)(t, this.advancedMatchingAvailableProperties) | |
}, l.prototype.track = function(t, e) { | |
var n = this; | |
this.getInstance().then(function() { | |
n.context.methods.track(n.pixelCode, t, e, u.TRACK); | |
Object(c.e)() && !n.context.methods.isOnSitePage() && n.context.methods.trackPCM(n.pixelCode, t, e) | |
}) | |
}, l); | |
function l(t) { | |
this.advancedMatchingAvailableProperties = { | |
external_id: !0 | |
}; | |
var e = t.pixelCode, | |
t = t.context; | |
this.pixelCode = e, this.context = t, this.loaded = !1, this.pixelPromise = this.getInstance() | |
} | |
var p, d, e = undefined && undefined.__extends || (p = function(t, e) { | |
return (p = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, e) { | |
t.__proto__ = e | |
} || function(t, e) { | |
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) | |
})(t, e) | |
}, function(t, e) { | |
function n() { | |
this.constructor = t | |
} | |
p(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n) | |
}), | |
h = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
b = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}, | |
g = (e(y, d = s), y.prototype.identify = function(t, e) { | |
t && (Object(f.s)(t) || Object(f.q)(t) ? this.context.setUserInfo({ | |
external_id: t.toString() | |
}) : Object(f.r)(t) && this.context.setUserInfo(t)), e && Object(f.r)(e) && this.context.setUserInfo(e) | |
}, y.prototype.page = function(t) { | |
window.location.href !== this.currentHref && (this.track("Pageview", t), this.currentHref = window.location.href) | |
}, y.prototype.getInstance = function() { | |
return h(this, void 0, void 0, function() { | |
var n = this; | |
return b(this, function(t) { | |
return this.pixelPromise || (this.pixelPromise = new Promise(function(t, e) { | |
a(Object(f.l)(n.pixelCode, location && location.hostname)).then(function() { | |
n.loaded = !0, t(n) | |
})["catch"](function(t) { | |
n.pixelPromise = null, e(t) | |
}) | |
})), [2, this.pixelPromise] | |
}) | |
}) | |
}, y); | |
function y(t) { | |
t = d.call(this, t) || this; | |
return t.currentHref = "", t | |
} | |
var v = (m.prototype.setAdvancedMatchingAvailableProperties = function(t) {}, m.prototype.getUserInfo = function() { | |
return {} | |
}, m.prototype.getPixelMatchedUserFormatInfo = function() { | |
return {} | |
}, m.prototype.page = function() {}, m.prototype.track = function(t, e) { | |
Object(f.u)(this.pixelCode, "track", [t, e]) | |
}, m.prototype.setPixelInfo = function(t) {}, m); | |
function m(t) { | |
this.pixelCode = "", this.loaded = !1, this.status = 1, this.name = "", this.advertiserID = "", this.setupMode = 0, this.partner = "", this.is_onsite = !1, this.pixelCode = t | |
} | |
new v("empty"); | |
var _ = n("fe1q"), | |
x = n("/6w+"), | |
O = (w.prototype.loadPixel = function(t) { | |
Object(f.s)(t) && (this.context.methods.getPixel(t) || (t = this.createPixel(t), this.context.methods.addPixel(t))) | |
}, w.prototype.setPageInfo = function(t, e) { | |
this.context.methods.setPageInfo(t, e) | |
}, w.prototype.usePlugin = function(t) { | |
try { | |
var e = new t(this.context); | |
this.context.usePlugin(e) | |
} catch (n) {} | |
}, w.prototype.useDynamicPlugin = function(t) { | |
try { | |
var e = t(this.context); | |
this.context.usePlugin(e) | |
} catch (n) { | |
console.error("use dynamic plugin failed") | |
} | |
}, w.prototype.instance = function(t) { | |
var e = this.context.methods.getPixel(t); | |
return e || (Object(_.a)(x.a.PIXEL_EMPTY, { | |
message: "", | |
stack: "" | |
}, { | |
pixelCode: t | |
}), new v(t)) | |
}, w.prototype.instances = function() { | |
return this.context.methods.getAllPixels() | |
}, w.prototype.identify = function(t, e) { | |
t && (Object(f.s)(t) || Object(f.q)(t) ? this.context.setUserInfo({ | |
external_id: t.toString() | |
}) : Object(f.r)(t) && this.context.setUserInfo(t)), e && Object(f.r)(e) && this.context.setUserInfo(e) | |
}, w.prototype.page = function(e) { | |
this.instances().forEach(function(t) { | |
t.page(e) | |
}) | |
}, w.prototype.track = function(e, n) { | |
this.instances().forEach(function(t) { | |
t.track(e, n) | |
}) | |
}, w); | |
function w() { | |
this.initialize = !0 | |
} | |
var I = function(t) { | |
var e = S(window.location.href, t); | |
return e || S(document.referrer, t) | |
}; | |
function S(t, e) { | |
try { | |
return new URL(t).searchParams.get(e) || "" | |
} catch (n) { | |
return "" | |
} | |
} | |
var k = ["ac", "ad", "ae", "af", "ag", "ai", "al", "am", "ao", "aq", "ar", "as", "at", "au", "aw", "ax", "az", "ba", "bb", "bd", "be", "bf", "bg", "bh", "bi", "bj", "bm", "bn", "bo", "br", "bs", "bt", "bw", "by", "bz", "ca", "cc", "cd", "cf", "cg", "ch", "ci", "ck", "cl", "cm", "cn", "co", "cr", "cu", "cv", "cw", "cx", "cy", "cz", "de", "dj", "dk", "dm", "do", "dz", "ec", "ee", "eg", "er", "es", "et", "eu", "fi", "fj", "fk", "fm", "fo", "fr", "ga", "gd", "ge", "gf", "gg", "gh", "gi", "gl", "gm", "gn", "gp", "gq", "gr", "gs", "gt", "gu", "gw", "gy", "hk", "hm", "hn", "hr", "ht", "hu", "id", "ie", "il", "im", "in", "io", "iq", "ir", "is", "it", "je", "jm", "jo", "jp", "ke", "kg", "kh", "ki", "km", "kn", "kp", "kr", "kw", "ky", "kz", "la", "lb", "lc", "li", "lk", "lr", "ls", "lt", "lu", "lv", "ly", "ma", "mc", "md", "me", "mg", "mh", "mk", "ml", "mm", "mn", "mo", "mp", "mq", "mr", "ms", "mt", "mu", "mv", "mw", "mx", "my", "mz", "na", "nc", "ne", "nf", "ng", "ni", "nl", "no", "np", "nr", "nu", "nz", "om", "pa", "pe", "pf", "pg", "ph", "pk", "pl", "pm", "pn", "pr", "ps", "pt", "pw", "py", "qa", "re", "ro", "rs", "ru", "rw", "sa", "sb", "sc", "sd", "se", "sg", "sh", "si", "sk", "sl", "sm", "sn", "so", "sr", "ss", "st", "su", "sv", "sx", "sy", "sz", "tc", "td", "tf", "tg", "th", "tj", "tk", "tl", "tm", "tn", "to", "tr", "tt", "tv", "tw", "tz", "ua", "ug", "uk", "us", "uy", "uz", "va", "vc", "ve", "vg", "vi", "vn", "vu", "wf", "ws", "ye", "yt", "za", "zm", "zw", "bar", "bible", "biz", "church", "club", "college", "com", "design", "dev", "download", "eco", "eus", "google", "green", "hiv", "icu", "info", "kaufen", "kiwi", "lat", "lgbt", "moe", "name", "net", "ninja", "ngo", "one", "ong", "ooo", "org", "top", "pro", "wiki", "wtf", "xyz", "app", "aero", "asia", "cat", "coop", "edu", "gov", "int", "jobs", "mil", "mobi", "museum", "post", "tel", "travel", "xxx", "africa", "alsace", "amsterdam", "bcn", "berlin", "brussels", "bzh", "cymru", "eu", "eus", "frl", "gal", "gent", "irish", "ist ", "istanbul", "kiwi", "krd", "lat", "london", "melbourne", "miami", "nyc", "paris", "quebec", "rio", "saarland", "scot", "sydney", "taipei", "tokyo", "vegas", "vlaanderen", "wales", "wien", "arpa", "nato", "example", "invalid", "localhost", "test", "onion", "bit", "bitnet", "csnet", "exit", "local", "onion", "root", "uucp", "chn", "africa", "bcn", "wales", "bzh", "cym", "cymru", "eng", "lli", "sic", "wales", "geo", "mail", "web", "free", "kid", "kids", "music", "bl ", "bq ", "eh ", "mf", "bv ", "gb ", "sj", "an ", "bu ", "cs ", "dd ", "tp ", "um ", "yu ", "zr"], | |
j = function(t) { | |
var e = (t = void 0 === t ? window.location.hostname : t).split("."), | |
n = e.length; | |
if (!isNaN(Number.parseInt(e[n - 1]))) return t; | |
for (var r = []; e.length;) { | |
var o = e.pop(); | |
if (!o) break; | |
if (r.unshift(o), -1 === k.indexOf(o)) break | |
} | |
return "." + r.join(".") | |
}, | |
E = function() { | |
var t, e, n, r, o = I("tt_test_id"), | |
i = function(t) { | |
if (0 < document.cookie.length) { | |
var e = document.cookie.indexOf(t + "="); | |
if (-1 !== e) { | |
e = e + t.length + 1, t = document.cookie.indexOf(";", e); | |
return -1 === t ? unescape(document.cookie.substring(e)) : unescape(document.cookie.substring(e, t)) | |
} | |
} | |
return "" | |
}("tt_test_id"); | |
return o && o !== i && (t = "tt_test_id", e = o, void 0 === (n = undefined) && (n = "/"), void 0 === (r = "session") && (r = Object(f.c)()), document.cookie = t + "=" + e + "; expires=" + r + "; path=" + n + ";domain=" + j()), o || i | |
}, | |
P = function(n) { | |
for (var r = [], t = 1; t < arguments.length; t++) r[t - 1] = arguments[t]; | |
try { | |
var e = Object(f.i)() || []; | |
e.context && e.context.plugins && e.context.plugins.forEach(function(t) { | |
if ("function" == typeof t[n]) try { | |
t[n].apply(t, r) | |
} catch (e) { | |
Object(_.a)(x.a.PLUGIN_ERROR, e, { | |
extJSON: { | |
plugin_name: t.name, | |
cycle_name: n, | |
data: r | |
} | |
}) | |
} | |
}) | |
} catch (o) {} | |
}, | |
A = function(t) { | |
try { | |
var e = window.sessionStorage.getItem(t); | |
return e ? JSON.parse(e) : null | |
} catch (n) { | |
return null | |
} | |
}, | |
T = function(t, e) { | |
try { | |
var n = JSON.stringify(e); | |
window.sessionStorage.setItem(t, n) | |
} catch (r) {} | |
}, | |
e = Object(f.i)() || []; | |
e.identifyPlugin ? L = e.identifyPlugin : (J = n("wK/p")["default"], e.identifyPlugin = L = new J, L.init()); | |
var C, N, R, M, F, D, B = L, | |
s = n("RIqP"), | |
e = "function" == typeof atob, | |
J = "function" == typeof btoa, | |
L = "function" == typeof Buffer, | |
U = "function" == typeof TextDecoder ? new TextDecoder : undefined, | |
Y = "function" == typeof TextEncoder ? new TextEncoder : undefined, | |
H = s("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="), | |
W = (C = {}, H.forEach(function(t, e) { | |
return C[t] = e | |
}), C), | |
z = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, | |
X = String.fromCharCode.bind(String), | |
G = "function" == typeof Uint8Array.from ? Uint8Array.from.bind(Uint8Array) : function(t) { | |
var e = 1 < arguments.length && arguments[1] !== undefined ? arguments[1] : function(t) { | |
return t | |
}; | |
return new Uint8Array(Array.prototype.slice.call(t, 0).map(e)) | |
}, | |
q = function q(t) { | |
return t.replace(/[+\/]/g, function(t) { | |
return "+" == t ? "-" : "_" | |
}).replace(/=+$/m, "") | |
}, | |
K = function K(t) { | |
return t.replace(/[^A-Za-z0-9\+\/]/g, "") | |
}, | |
V = function V(t) { | |
for (var e, n, r, o = "", i = t.length % 3, a = 0; a < t.length;) { | |
if (255 < (e = t.charCodeAt(a++)) || 255 < (n = t.charCodeAt(a++)) || 255 < (r = t.charCodeAt(a++))) throw new TypeError("invalid character found"); | |
o += H[(e = e << 16 | n << 8 | r) >> 18 & 63] + H[e >> 12 & 63] + H[e >> 6 & 63] + H[63 & e] | |
} | |
return i ? o.slice(0, i - 3) + "===".substring(i) : o | |
}, | |
Z = J ? function(t) { | |
return btoa(t) | |
} : L ? function(t) { | |
return Buffer.from(t, "binary").toString("base64") | |
} : V, | |
Q = L ? function(t) { | |
return Buffer.from(t).toString("base64") | |
} : function(t) { | |
for (var e = [], n = 0, r = t.length; n < r; n += 4096) e.push(X.apply(null, t.subarray(n, n + 4096))); | |
return Z(e.join("")) | |
}, | |
$ = function $(t) { | |
if (t.length < 2) return (e = t.charCodeAt(0)) < 128 ? t : e < 2048 ? X(192 | e >>> 6) + X(128 | 63 & e) : X(224 | e >>> 12 & 15) + X(128 | e >>> 6 & 63) + X(128 | 63 & e); | |
var e = 65536 + 1024 * (t.charCodeAt(0) - 55296) + (t.charCodeAt(1) - 56320); | |
return X(240 | e >>> 18 & 7) + X(128 | e >>> 12 & 63) + X(128 | e >>> 6 & 63) + X(128 | 63 & e) | |
}, | |
tt = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, | |
et = L ? function(t) { | |
return Buffer.from(t, "utf8").toString("base64") | |
} : Y ? function(t) { | |
return Q(Y.encode(t)) | |
} : function(t) { | |
return Z(R(t)) | |
}, | |
nt = function(t) { | |
return M(t, !0) | |
}, | |
rt = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, | |
ot = function ot(t) { | |
switch (t.length) { | |
case 4: | |
var e = ((7 & t.charCodeAt(0)) << 18 | (63 & t.charCodeAt(1)) << 12 | (63 & t.charCodeAt(2)) << 6 | 63 & t.charCodeAt(3)) - 65536; | |
return X(55296 + (e >>> 10)) + X(56320 + (1023 & e)); | |
case 3: | |
return X((15 & t.charCodeAt(0)) << 12 | (63 & t.charCodeAt(1)) << 6 | 63 & t.charCodeAt(2)); | |
default: | |
return X((31 & t.charCodeAt(0)) << 6 | 63 & t.charCodeAt(1)) | |
} | |
}, | |
it = function it(t) { | |
if (t = t.replace(/\s+/g, ""), !z.test(t)) throw new TypeError("malformed base64."); | |
t += "==".slice(2 - (3 & t.length)); | |
for (var e, n, r, o = "", i = 0; i < t.length;) e = W[t.charAt(i++)] << 18 | W[t.charAt(i++)] << 12 | (n = W[t.charAt(i++)]) << 6 | (r = W[t.charAt(i++)]), o += 64 === n ? X(e >> 16 & 255) : 64 === r ? X(e >> 16 & 255, e >> 8 & 255) : X(e >> 16 & 255, e >> 8 & 255, 255 & e); | |
return o | |
}, | |
at = e ? function(t) { | |
return atob(K(t)) | |
} : L ? function(t) { | |
return Buffer.from(t, "base64").toString("binary") | |
} : it, | |
ct = L ? function(t) { | |
return G(Buffer.from(t, "base64")) | |
} : function(t) { | |
return G(at(t), function(t) { | |
return t.charCodeAt(0) | |
}) | |
}, | |
st = function st(t) { | |
return ct(ft(t)) | |
}, | |
ut = L ? function(t) { | |
return Buffer.from(t, "base64").toString("utf8") | |
} : U ? function(t) { | |
return U.decode(ct(t)) | |
} : function(t) { | |
return F(at(t)) | |
}, | |
ft = function ft(t) { | |
return K(t.replace(/[-_]/g, function(t) { | |
return "-" == t ? "+" : "/" | |
})) | |
}, | |
lt = function lt(t) { | |
return { | |
value: t, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}, | |
pt = function pt() { | |
var n; | |
(n = function n(t, e) { | |
return Object.defineProperty(String.prototype, t, lt(e)) | |
})("fromBase64", function() { | |
return D(this) | |
}), n("toBase64", function(t) { | |
return M(this, t) | |
}), n("toBase64URI", function() { | |
return M(this, !0) | |
}), n("toBase64URL", function() { | |
return M(this, !0) | |
}), n("toUint8Array", function() { | |
return st(this) | |
}) | |
}, | |
dt = function dt() { | |
var n; | |
(n = function n(t, e) { | |
return Object.defineProperty(Uint8Array.prototype, t, lt(e)) | |
})("toBase64", function(t) { | |
return N(this, t) | |
}), n("toBase64URI", function() { | |
return N(this, !0) | |
}), n("toBase64URL", function() { | |
return N(this, !0) | |
}) | |
}, | |
ht = function ht() { | |
pt(), dt() | |
}, | |
bt = (D = function D(t) { | |
return ut(ft(t)) | |
}, M = function M(t) { | |
return 1 < arguments.length && arguments[1] !== undefined && arguments[1] ? q(et(t)) : et(t) | |
}, R = function R(t) { | |
return t.replace(tt, $) | |
}, F = function F(t) { | |
return t.replace(rt, ot) | |
}, function(t) { | |
if ("string" != typeof t) return !1; | |
t = t.replace(/\s+/g, "").replace(/=+$/, ""); | |
return !/[^\s0-9a-zA-Z\+/]/.test(t) || !/[^\s0-9a-zA-Z\-_]/.test(t) | |
}, N = function N(t) { | |
return 1 < arguments.length && arguments[1] !== undefined && arguments[1] ? q(Q(t)) : Q(t) | |
}, "tt_adInfo"), | |
gt = "tt_appInfo", | |
yt = "tt_sessionId", | |
vt = "tt_pixel_event_has_reported_map", | |
mt = "ad_analytics_msg", | |
_t = "insight_log", | |
xt = "https://analytics.tiktok.com/api/v2/pixel", | |
Ot = function(t) { | |
t = { | |
PCM: "https://analytics.tiktok.com/api/v2/pcm", | |
track: xt, | |
performance: "https://analytics.tiktok.com/api/v2/performance", | |
interaction: "https://analytics.tiktok.com/api/v2/interaction" | |
} [t]; | |
return t || null | |
}, | |
wt = function(t) { | |
var r, t = t.reduce(function(t, e) { | |
var n = e.info, | |
e = e.data, | |
n = n.pixelCode + "-" + n.type; | |
return t[n] === undefined && (t[n] = []), t[n].push(e), t | |
}, {}); | |
return r = t, Object.keys(r).map(function(t) { | |
var e = t.split("-"), | |
n = e[0], | |
e = e[1], | |
t = r[t]; | |
return { | |
info: { | |
pixelCode: n, | |
type: e | |
}, | |
data: It(t) | |
} | |
}) | |
}; | |
var It = function(t) { | |
var o = ["click", "scroll"]; | |
return t.reduce(function(n, r) { | |
return Object.keys(r).forEach(function(t) { | |
var e = r[t]; - 1 < o.indexOf(t) ? n[t] ? n[t].push(e) : n[t] = [e] : n[t] = e | |
}), n | |
}, {}) | |
}, | |
St = (kt.prototype.push = function(t, e) { | |
this.stash.push(t), this.observer(e) | |
}, kt.prototype.clear = function() { | |
this.stash = [] | |
}, kt.prototype.observer = function(t) { | |
(t = void 0 === t ? !1 : t) && (this.triggerHandler(), this.clear()) | |
}, kt.prototype.setBatchParameter = function(t) { | |
var e = t.interval, | |
t = t.handler; | |
this.triggerHandler(), t && (this.handler = t), e && (clearInterval(this.timer), this.interval = e, this.startInterval()) | |
}, kt.prototype.startInterval = function() { | |
var t = this; | |
return setInterval(function() { | |
t.triggerHandler() | |
}, this.interval) | |
}, kt.prototype.triggerHandler = function() { | |
var t = this.stash.slice(); | |
this.clear(), t.length && this.handler && this.handler(t) | |
}, kt); | |
function kt(t) { | |
var e = t.interval, | |
t = t.handler; | |
this.stash = [], this.interval = 1e3, this.interval = e || 1e3, this.handler = t || function() {}, this.timer = this.startInterval() | |
} | |
var jt = ["ttuts", "ad_info_from", "ad_info_status"], | |
Et = n("mFs5"), | |
Pt = function(t, e) { | |
var n = {}; | |
try { | |
var r, o, i, a, c, s, u = t.creative_id, | |
f = t.callback, | |
l = t.idc, | |
p = t.convert_id, | |
d = t.ad_info_from, | |
h = t.ad_info_status, | |
b = t.log_extra, | |
g = t.ext_params, | |
y = t.ATTStatus; | |
return u && (n.creative_id = u), l && (n.idc = l), f && (n.callback = f), p && (n.convert_id = p), d && (n.ad_info_from = d), h && (n.ad_info_status = h), g && (n.ext_params = g), y && (n.ATTStatus = y), b && (o = (r = JSON.parse(b)).ad_user_agent, i = r.ad_id, a = r.rit, c = r.ocbs, s = r.vid, i && (n.ad_id = i), a && (n.rit = a), o && (n.ad_user_agent = o), c && (n.ocbs = c), s && (n.vid = s)), n | |
} catch (v) { | |
return e && e(v), n | |
} | |
}, | |
At = function() { | |
var t = A(vt); | |
return t || {} | |
}; | |
function Tt(t, e) { | |
var n = Object.assign({}, t); | |
return e.forEach(function(t) { | |
null != n[t] && delete n[t] | |
}), n | |
} | |
var Ct, J = (Object.defineProperty(Nt.prototype, "pixels", { | |
get: function() { | |
var e = this.data.pixelMap; | |
return Object.keys(e).map(function(t) { | |
return e[t] | |
}) | |
}, | |
enumerable: !1, | |
configurable: !0 | |
}), Nt.prototype.usePlugin = function(t) { | |
this.plugins.push(t) | |
}, Nt.prototype.getInitContextData = function(t) { | |
return { | |
pixelMap: {}, | |
customData: {}, | |
userInfo: {}, | |
userFormatInfo: {}, | |
adInfo: {}, | |
appInfo: {}, | |
libraryInfo: t, | |
pageInfo: { | |
url: "" | |
}, | |
pageSign: this.initPageSign() | |
} | |
}, Nt.prototype.getInitContextMethods = function() { | |
return { | |
addPixel: this.addPixel.bind(this), | |
getAllPixels: this.getAllPixels.bind(this), | |
getPixel: this.getPixel.bind(this), | |
getUserFormatInfo: this.getUserFormatInfo.bind(this), | |
getUserInfo: this.getUserInfo.bind(this), | |
setUserInfo: this.setUserInfo.bind(this), | |
getAdInfo: this.getAdInfo.bind(this), | |
setAdInfo: this.setAdInfo.bind(this), | |
addCustomMethod: this.addCustomMethod.bind(this), | |
callCustomMethod: this.callCustomMethod.bind(this), | |
setPageInfo: this.setPageInfo.bind(this), | |
getCustomData: this.getCustomData.bind(this), | |
setCustomData: this.setCustomData.bind(this), | |
track: this.track.bind(this), | |
batchTrack: this.batchTrack.bind(this), | |
trackPCM: this.trackPCM.bind(this), | |
setBatchConfig: this.setBatchConfig.bind(this), | |
trackBloomFilter: this.trackBloomFilter.bind(this), | |
isOnSitePage: this.isOnSitePage.bind(this) | |
} | |
}, Nt.prototype.track = function(t, e, n, r, o) { | |
var i = this; | |
return Promise.all(this.reportPreposition).then(function() { | |
return i.trackSync(t, e, n, r, o) | |
}) | |
}, Nt.prototype.trackPCM = function(t, e, n) {}, Nt.prototype.trackBloomFilter = function(t, e, n) {}, Nt.prototype.trackSync = function(t, e, n, r, o) { | |
if (null !== this.methods.getPixel(t)) { | |
n = this.assemblyData(t, e, n), r = Ot(r); | |
if (null !== r) return this.reportService.report(r, n, o), n | |
} | |
}, Nt.prototype.batchTrack = function(t, e, n) { | |
this.batch.push({ | |
info: t, | |
data: e | |
}, n = void 0 === n ? !1 : n) | |
}, Nt.prototype.setBatchConfig = function(t) { | |
this.batch.setBatchParameter(t) | |
}, Nt.prototype.addPixel = function(e) { | |
var t = e.pixelCode; | |
this.data.pixelMap[t] = e, this.plugins.forEach(function(t) { | |
t.pixelDidMount(e) | |
}) | |
}, Nt.prototype.getUserInfo = function() { | |
return this.data.userInfo | |
}, Nt.prototype.getUserFormatInfo = function() { | |
return this.data.userFormatInfo || {} | |
}, Nt.prototype.setUserInfo = function(t) { | |
var e = this; | |
if (!t) return undefined; | |
var n = {}; | |
Object.entries(t).forEach(function(t) { | |
var e = t[0], | |
t = t[1]; | |
t && (n[e] = String(t).trim()) | |
}), this.reportPreposition.push(B.handleUserProperties(n).then(function(t) { | |
t && t.userProperties && (Object.assign(e.data.userInfo, t.userProperties), Object.assign(e.data.userFormatInfo, t.userDataFormat)) | |
})) | |
}, Nt.prototype.setUserInfoWithoutIdentifyPlugin = function(t) { | |
t && Object.assign(this.data.userInfo, t) | |
}, Nt.prototype.getAllPixels = function() { | |
return this.pixels | |
}, Nt.prototype.setAdInfo = function(t) { | |
t && (this.data.adInfo ? this.data.adInfo = Object.assign({}, this.data.adInfo, t) : this.data.adInfo = t) | |
}, Nt.prototype.getAdInfo = function() { | |
return this.data.adInfo | |
}, Nt.prototype.setAppInfo = function(t) { | |
t && (this.data.appInfo = Object.assign({}, this.data.appInfo, t)) | |
}, Nt.prototype.getAppInfo = function() { | |
return this.data.appInfo | |
}, Nt.prototype.getPixel = function(t) { | |
var e = this.data.pixelMap; | |
return e[t] || null | |
}, Nt.prototype.addCustomMethod = function(t, e) { | |
this.customMethods[t] || (this.customMethods[t] = e) | |
}, Nt.prototype.callCustomMethod = function(t) { | |
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n]; | |
t = this.customMethods[t]; | |
return t ? t.apply(this, e) : null | |
}, Nt.prototype.setPageInfo = function(e, t) { | |
var n = this.data.pageInfo, | |
r = this.data.pageSign; | |
n.url !== e && (this.plugins.forEach(function(t) { | |
t.pageUrlWillChange.call(t, n.url, e) | |
}), n.url !== undefined && (n.referrer = n.url), t && (n.referrer = t), r.pageId = Object(f.e)("pageId"), n.url = e, this.plugins.forEach(function(t) { | |
t.pageUrlDidChange.call(t, e) | |
})) | |
}, Nt.prototype.getCustomData = function(t) { | |
var t = t.split("."), | |
e = this.data.customData; | |
try { | |
for (var n = 0, r = t; n < r.length; n++) e = e[r[n]] | |
} catch (o) { | |
return null | |
} | |
return e | |
}, Nt.prototype.setCustomData = function(t, e) { | |
var n = t.split("."), | |
r = this.data.customData; | |
try { | |
for (var o = 0; o < n.length; o++) { | |
var i = n[o]; | |
r[i] === undefined && (r[i] = {}), o === n.length - 1 ? r[i] = e : r = r[i] | |
} | |
} catch (a) { | |
return !1 | |
} | |
return !0 | |
}, Nt.prototype.getSessionIdFromCache = function() { | |
return null | |
}, Nt.prototype.setSessionIdToCache = function(t) {}, Nt.prototype.getVariationId = function() { | |
return "" | |
}, Nt.prototype.isLegacyPixel = function(t) { | |
return !1 | |
}, Nt.prototype.initPageSign = function() { | |
var t = this.getSessionIdFromCache(); | |
return null === t && (t = Object(f.e)("sessionId"), this.setSessionIdToCache(t)), { | |
sessionId: t, | |
pageId: Object(f.e)("pageId"), | |
variationId: this.getVariationId() | |
} | |
}, Nt.prototype.batchTrackHandler = function(t) { | |
var r = this; | |
wt(t).forEach(function(t) { | |
var e = t.info, | |
n = t.data, | |
t = e.pixelCode, | |
e = e.type; | |
r.trackSync(t, "", n, e, !0) | |
}) | |
}, Nt.prototype.isOnSitePage = function() { | |
return this.getAllPixels().every(function(t) { | |
return t.is_onsite | |
}) | |
}, Nt.prototype.assemblyData = function(t, e, n) { | |
var r = n && n.pixelMethod; | |
n && n.pixelMethod && delete n.pixelMethod; | |
var o = this.data, | |
i = this.methods.getPixel(t), | |
a = o.adInfo, | |
c = o.appInfo, | |
s = o.pageSign, | |
u = o.libraryInfo, | |
u = Object.assign({}, u, { | |
version: this.isLegacyPixel(t) ? "legacy-" + u.version : u.version | |
}), | |
a = Tt(a, jt), | |
a = Object.assign({}, a, { | |
device_id: c.device_id, | |
uid: c.user_id | |
}); | |
return { | |
event: e, | |
event_id: Object(f.d)(Object(f.e)("eventId"), t), | |
is_onsite: this.isOnSitePage(), | |
timestamp: (new Date).toJSON(), | |
context: { | |
ad: a, | |
user: Object.assign({ | |
anonymous_id: o.userInfo.anonymous_id | |
}, i && i.getUserInfo()), | |
pixel: { | |
code: t, | |
mode: r | |
}, | |
page: o.pageInfo, | |
library: u, | |
device: { | |
platform: c.platform | |
}, | |
session_id: Object(f.d)(o.pageSign.sessionId, t), | |
pageview_id: Object(f.d)(o.pageSign.pageId, t), | |
variation_id: s.variationId | |
}, | |
properties: n | |
} | |
}, Nt); | |
function Nt(t) { | |
this.plugins = [], this.customMethods = {}, this.batch = new St({ | |
handler: this.batchTrackHandler.bind(this) | |
}), this.reportPreposition = [], this.data = this.getInitContextData(t), this.methods = this.getInitContextMethods() | |
}(e = Ct = Ct || {}).INIT_START = "initStart", e.INIT_END = "initEnd", e.CONTEXT_INIT_START = "contextInitStart", e.CONTEXT_INIT_END = "contextInitEnd", e.BEFORE_AD_INFO_INIT_START = "beforeAdInfoInitStart", e.AD_INFO_INIT_START = "adInfoInitStart", e.AD_INFO_INIT_END = "adInfoInitEnd", e.PLUGIN_INIT_START = "pluginInitStart", e.PLUGIN_INIT_END = "pluginInitEnd", e.PIXEL_CREATE_START = "pixelCreateStart", e.PIXEL_CREATE_END = "pixelCreateEnd"; | |
var Rt = function(t, e) { | |
return (Rt = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, e) { | |
t.__proto__ = e | |
} || function(t, e) { | |
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) | |
})(t, e) | |
}; | |
function Mt(t, e) { | |
function n() { | |
this.constructor = t | |
} | |
Rt(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n) | |
} | |
var Ft = function() { | |
return (Ft = Object.assign || function Ft(t) { | |
for (var e, n = 1, r = arguments.length; n < r; n++) | |
for (var o in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); | |
return t | |
}).apply(this, arguments) | |
}; | |
(L = {})[L.Failure = 0] = "Failure", L[L.Success = 1] = "Success", L[L.Unauthorized = -1] = "Unauthorized", L[L.NotExist = -2] = "NotExist"; | |
Dt.prototype.call = function(t, e, n, r) { | |
void 0 === r && (r = this.version); | |
var o, i = this.version; | |
t && "string" == typeof t && ("string" == typeof r ? i = r || this.version : "object" == typeof r && (o = r.namespace, i = r.sdkVersion || this.version), o = { | |
func: t, | |
params: e = "object" != typeof e ? {} : e, | |
JSSDK: i, | |
__msg_type: "call", | |
namespace: o | |
}, "function" == typeof n && (n = this.registerCallback(t, n), o.__callback_id = n), window.parent !== window && (o.__iframe_url = window.location.href), this.sendMessageToNative(o)) | |
}, Dt.prototype.on = function(t, e, n) { | |
if (void 0 === n && (n = !1), t && "string" == typeof t && "function" == typeof e) { | |
e = this.registerCallback(t, e); | |
return this.eventMap[t] = this.eventMap[t] || {}, this.eventMap[t][e] = { | |
once: n | |
}, this.listenNativeEvent && (this.nativeEventListener ? this.nativeEventListener(t) : this.call("addEventListener", { | |
name: t | |
}, null, { | |
sdkVersion: 1 | |
})), e | |
} | |
}, Dt.prototype.once = function(t, e) { | |
return this.on(t, e, !0) | |
}, Dt.prototype.off = function(t, e) { | |
if (!t || "string" != typeof t) return !0; | |
t = this.eventMap[t]; | |
return t && "object" == typeof t && t.hasOwnProperty(e) && (this.deregisterCallback(e), delete t[e]), !0 | |
}, Dt.prototype.trigger = function(t, e) { | |
return this.handleMessageFromNative({ | |
__msg_type: "event", | |
__params: e, | |
__event_id: t | |
}) | |
}, Dt.prototype.handleMessageFromNative = function(t) { | |
var r = this, | |
e = t, | |
n = String(e.__callback_id); | |
this.callbackProcessor && "function" == typeof this.callbackProcessor && (t = (this.callbackMap && this.callbackMap[n] || {}).method, this.callbackProcessor(e, t)); | |
var o = e.__params, | |
i = String(e.__event_id || ""), | |
e = e.__msg_type; | |
this.callbackMap[n] ? e = "callback" : this.eventMap[n] && (e = "event", i = i || n); | |
var a = { | |
__err_code: "cb404" | |
}; | |
switch (e) { | |
case "callback": | |
var c = (this.callbackMap && this.callbackMap[n] || {}).callback; | |
"function" == typeof c && (a = c(o)), this.deregisterCallback(n); | |
break; | |
case "event": | |
var s = this.eventMap[i]; | |
s && "object" == typeof s && Object.keys(s).forEach(function(t) { | |
var e = (r.callbackMap && r.callbackMap[t] || {}).callback, | |
n = s[t]; | |
"function" == typeof e && (a = e(o)), n && n.once && (r.deregisterCallback(t), delete s[t]) | |
}) | |
} | |
return a | |
}, Dt.prototype.fetchJavaScriptMessageQueue = function() { | |
var t = JSON.stringify(this.javascriptMessageQueue), | |
e = btoa(unescape(encodeURIComponent(t))); | |
return this.setResultIFrame && 0 < this.javascriptMessageQueue.length && (this.setResultIFrame.src = "" + this.scheme + this.setResultPath + "&" + e), this.javascriptMessageQueue.splice(0, this.javascriptMessageQueue.length), t | |
}, Dt.prototype.sendMessageToNative = function(t) { | |
var e; | |
"1" !== String(t.JSSDK) && this.nativeMethodInvoker ? (e = this.nativeMethodInvoker(t)) && (e = JSON.parse(e), this.handleMessageFromNative(e)) : (this.javascriptMessageQueue.push(t), this.dispatchMessageIFrame ? this.dispatchMessageIFrame.src = "" + this.scheme + this.dispatchMessagePath : this.tryCreateIFrames()) | |
}, Dt.prototype.registerCallback = function(t, e) { | |
var n = String(this.callbackId++); | |
return this.callbackMap[n] = { | |
method: t, | |
callback: e | |
}, n | |
}, Dt.prototype.deregisterCallback = function(t) { | |
delete this.callbackMap[t] | |
}, Dt.prototype.tryCreateIFrames = function() { | |
this.dispatchMessageIFrame = this.createIFrame(this.dispatchMessageIFrameId), this.setResultIFrame = this.createIFrame(this.setResultIFrameId) | |
}, Dt.prototype.createIFrame = function(t) { | |
var e = document.getElementById(t); | |
return e && "IFRAME" === e.tagName || ((e = document.createElement("iframe")).style.display = "none", e.id = t, document.documentElement.appendChild(e)), e | |
}, e = Dt; | |
function Dt(t) { | |
this.version = t.version || "1.0.2", this.nativeMethodInvoker = t.nativeMethodInvoker, this.nativeEventListener = t.nativeEventListener, this.scheme = t.scheme || "nativeapp://", this.dispatchMessagePath = t.dispatchMessagePath || "dispatch_message/", this.setResultPath = t.setResultPath || "private/setresult/SCENE_FETCHQUEUE", this.dispatchMessageIFrameId = t.dispatchMessageIFrameId || "__JSBridgeIframe__", this.setResultIFrameId = t.setResultIFrameId || "__JSBridgeIframe_SetResult__", this.listenNativeEvent = !0 === t.listenNativeEvent, this.callbackId = 1023, this.callbackMap = {}, this.eventMap = {}, this.javascriptMessageQueue = [], this.callbackProcessor = t.callbackProcessor, "undefined" != typeof window && this.tryCreateIFrames() | |
} | |
var Bt = "2.2.5", | |
L = "undefined" != typeof window ? window.navigator.userAgent : "", | |
Jt = (!!L.match(/(newsarticle|videoarticle|lv|faceu|ulike|beauty_me_|faceu-os|ulike-os|beauty_me_oversea_|retouch)\/([\d.]+)/i) || /super|automobile/gi.test(L)) && !/webcast/gi.test(L) && !/luckycatversion/gi.test(L), | |
Lt = !!L.match(/(faceu)\/([\d.]+)/i) || /gsdk/gi.test(L), | |
Ut = !!L.match(/ttad\/0/i), | |
Yt = !!L.match(/aweme|trill|musical_ly/i), | |
Ht = !!L.match(/live_stream/i), | |
Wt = !!L.match(/Webcast/i), | |
zt = !!L.match(/super/i), | |
Xt = /super/gi.test(L), | |
Gt = "undefined" != typeof window ? window : {}, | |
qt = "undefined" != typeof window ? window : {}; | |
function Kt() { | |
var t; | |
if (Jt) return qt.JSBridge && qt.JSBridge.on ? t = qt.JSBridge.on : qt.JS2NativeBridge && qt.JS2NativeBridge.on ? t = function(t) { | |
qt.JS2NativeBridge.on(t, JSON.stringify({ | |
JSSDK: Bt, | |
__msg_type: "event", | |
__callback_id: t, | |
func: t | |
})) | |
} : qt.webkit && qt.webkit.messageHandlers && qt.webkit.messageHandlers.onMethodParams ? t = function(t) { | |
qt.webkit.messageHandlers.onMethodParams.postMessage({ | |
JSSDK: Bt, | |
__msg_type: "event", | |
__callback_id: t, | |
func: t | |
}) | |
} : qt.onMethodParams && (t = function(t) { | |
return qt.onMethodParams(t, { | |
JSSDK: Bt, | |
__msg_type: "event", | |
__callback_id: t, | |
func: t | |
}) | |
}), t | |
} | |
function Vt(t, e) { | |
"string" == typeof e && !0 === /^(x|tc)\./.test(e) || (Yt || Ht || Wt) && (e = t.__params, qt.JS2NativeBridge && qt.JS2NativeBridge._invokeMethod && (t.__params = Ft({ | |
code: e.code | |
}, e.data))) | |
} | |
var Zt, L = (Mt(Qt, Zt = e), Qt.prototype.exposePublicApiToGlobal = function() { | |
Gt.ToutiaoJSBridge = Object.assign(Gt.ToutiaoJSBridge || {}, this.publicApi) | |
}, Qt); | |
function Qt() { | |
var t = Zt.call(this, { | |
version: Bt, | |
scheme: "bytedance://", | |
listenNativeEvent: !0, | |
dispatchMessageIFrameId: "__JSBridgeIframe_1.0__", | |
setResultIFrameId: "__JSBridgeIframe_SetResult_1.0__", | |
nativeEventListener: Kt(), | |
callbackProcessor: Vt | |
}) || this; | |
return t.publicApi = { | |
call: t.call.bind(t), | |
on: t.on.bind(t), | |
once: t.once.bind(t), | |
off: t.off.bind(t), | |
trigger: t.trigger.bind(t), | |
_fetchQueue: t.fetchJavaScriptMessageQueue.bind(t), | |
_handleMessageFromToutiao: t.handleMessageFromNative.bind(t) | |
}, t | |
} | |
var $t, e = (Mt(te, $t = e), te.prototype.call = function(t, e, n, r) { | |
void 0 === r && (r = Bt), this.isLegacyCall(t) ? this.toutiaoLegacyJSB.call(t, e, n, r) : $t.prototype.call.call(this, t, e, n, r) | |
}, te.prototype.on = function(t, e, n, r) { | |
return void 0 === n && (n = !1), (r || {}).useLegacy || this.isLegacyCall(t) ? this.toutiaoLegacyJSB.on(t, e, n) : $t.prototype.on.call(this, t, e, n) | |
}, te.prototype.once = function(t, e) { | |
return this.isLegacyCall(t) ? this.toutiaoLegacyJSB.once(t, e) : $t.prototype.once.call(this, t, e) | |
}, te.prototype.off = function(t, e) { | |
return this.isLegacyCall(t) ? this.toutiaoLegacyJSB.off(t, e) : $t.prototype.off.call(this, t, e) | |
}, te.prototype.trigger = function(t, e) { | |
return this.isLegacyCall(t) ? this.toutiaoLegacyJSB.trigger(t, e) : $t.prototype.trigger.call(this, t, e) | |
}, te.prototype.exposePublicApiToGlobal = function() { | |
var e = this; | |
Gt.JSBridge = Object.assign(Gt.JSBridge || {}, this.publicApi), Gt.__DISABLE_JSB_PROTOCAL2__ || (Gt.Native2JSBridge = Object.assign(Gt.Native2JSBridge || {}, this.publicApi)), !Xt && (Jt || Ut) && this.toutiaoLegacyJSB ? this.toutiaoLegacyJSB.exposePublicApiToGlobal() : Gt.ToutiaoJSBridge = Object.assign(Gt.ToutiaoJSBridge || {}, this.publicApi), Gt.parent !== Gt && Gt.addEventListener && Gt.addEventListener("message", function(t) { | |
t && t.data && t.data.__callback_id && e.handleMessageFromNative(t.data) | |
}, !1), Object.defineProperties(Gt, { | |
JSBridge: { | |
writable: !1 | |
}, | |
Native2JSBridge: { | |
writable: !1 | |
}, | |
ToutiaoJSBridge: { | |
writable: !1 | |
} | |
}), Object.freeze(Gt.JSBridge), Object.freeze(Gt.Native2JSBridge), Object.freeze(Gt.ToutiaoJSBridge) | |
}, te.prototype.isLegacyCall = function(t) { | |
return !(!t || "string" != typeof t || !this.toutiaoLegacyJSB) && (Ut || !Lt && !Xt && (Jt && t.indexOf(".") < 0)) | |
}, te); | |
function te(t) { | |
var e, e = $t.call(this, { | |
version: Bt, | |
nativeMethodInvoker: (qt.JS2NativeBridge && qt.JS2NativeBridge._invokeMethod ? e = function(t) { | |
return qt.JS2NativeBridge._invokeMethod(JSON.stringify(t)) | |
} : qt.ToutiaoJSBridge && qt.ToutiaoJSBridge.invokeMethod ? e = function(t) { | |
return qt.ToutiaoJSBridge.invokeMethod(JSON.stringify(t)) | |
} : qt.JS2NativeBridge && qt.JS2NativeBridge.call ? e = function(t) { | |
return qt.JS2NativeBridge.call(t.func, JSON.stringify(t)) | |
} : qt.webkit && qt.webkit.messageHandlers && qt.webkit.messageHandlers.callMethodParams ? e = function(t) { | |
qt.webkit.messageHandlers.callMethodParams.postMessage(t) | |
} : qt.callMethodParams && (e = function(t) { | |
return qt.callMethodParams(t.func, t) | |
}), e), | |
nativeEventListener: Kt(), | |
scheme: zt ? "bds://" : !Xt && (Jt || qt.JSBridge && qt.JSBridge._invokeMethod) ? "nativeapp://" : "bytedance://", | |
listenNativeEvent: Jt, | |
callbackProcessor: Vt | |
}) || this; | |
return e.toutiaoLegacyJSB = t, e.publicApi = { | |
call: e.call.bind(e), | |
on: e.on.bind(e), | |
once: e.once.bind(e), | |
off: e.off.bind(e), | |
trigger: e.trigger.bind(e), | |
_fetchQueue: e.fetchJavaScriptMessageQueue.bind(e), | |
_handleMessageFromApp: e.handleMessageFromNative.bind(e), | |
_handleMessageFromToutiao: e.handleMessageFromNative.bind(e) | |
}, e | |
} | |
function ee(t, e) { | |
if (t === undefined || null === t) throw new TypeError("Cannot convert first argument to object"); | |
for (var n = Object(t), r = 1; r < arguments.length; r++) { | |
var o = arguments[r]; | |
if (o !== undefined && null !== o) | |
for (var i = Object.keys(Object(o)), a = 0, c = i.length; a < c; a++) { | |
var s = i[a], | |
u = Object.getOwnPropertyDescriptor(o, s); | |
u !== undefined && u.enumerable && (n[s] = o[s]) | |
} | |
} | |
return n | |
}({ | |
assign: ee, | |
polyfill: function() { | |
Object.assign || Object.defineProperty(Object, "assign", { | |
enumerable: !1, | |
configurable: !0, | |
writable: !0, | |
value: ee | |
}) | |
} | |
}).polyfill(); | |
L = new e(new L); | |
try { | |
L.exposePublicApiToGlobal() | |
} catch (tn) { | |
console.warn(tn.message) | |
} | |
var ne = L.publicApi; | |
window.CustomEvent || ((Te = function(t, e) { | |
var n; | |
return e = e || { | |
bubbles: !1, | |
cancelable: !1, | |
detail: void 0 | |
}, (n = document.createEvent("CustomEvent")).initCustomEvent(t, e.bubbles, e.cancelable, e.detail), n | |
}).prototype = window.Event.prototype, window.CustomEvent = Te); | |
var re, oe, ie, ae, ce = (re = !!window.globalConfig && window.globalConfig.isDebug, ie = function(t) { | |
var e = document.createElement("iframe"); | |
e.style.display = "none", e.src = t, document.body.appendChild(e), setTimeout(function() { | |
document.body.removeChild(e) | |
}, 100) | |
}, ae = window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.pacific ? function(t, e) { | |
oe = { | |
action: t, | |
parameters: (e = e || {}).params, | |
print: !!e.print | |
}, "string" == typeof e.callback ? oe.callback = { | |
type: 0, | |
name: e.callback, | |
parameters: ["key"] | |
} : oe.callback = e.callback, window.webkit.messageHandlers.pacific.postMessage(oe) | |
} : function(t, e) { | |
var n, r, o, i = [], | |
a = ((e = e || {}).protocol || "sslocal") + "://" + t; | |
if (e.callback && (e.params = e.params || {}, e.params.callback = e.callback), e.params) { | |
for (n in r = e.params) r.hasOwnProperty(n) && ("object" == typeof(o = r[n]) && (o = JSON.stringify(o)), i.push(encodeURIComponent(n) + "=" + encodeURIComponent(o))); | |
i.push("r=" + (Math.random() + "").slice(2)), a += "?" + i.join("&") | |
} | |
re ? (e.debugCall && e.debugCall(t, e.params), (console.dir || console.log)(a)) : ie(a) | |
}, { | |
call: function(t, e, n) { | |
var r, o, e = e = e || {}; | |
n && "function" == typeof n && (r = t + "DidFinish" + (re ? "" : "_" + Math.random().toString(36).slice(2)), o = function(t) { | |
"success" === t.detail.message && n(t.detail.data), document.removeEventListener(r, o) | |
}, document.addEventListener(r, o)), ae(t, { | |
callback: r, | |
params: e | |
}) | |
} | |
}), | |
se = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
ue = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}, | |
fe = (le.prototype.getAdInfo = function() { | |
return se(this, void 0, void 0, function() { | |
var e = this; | |
return ue(this, function(t) { | |
return Object(f.r)(this.jsbridge) || Object(_.a)(x.a.JSB_ERROR, new Error("tt bridge error when getting ad info"), { | |
extJSON: { | |
position: "getAdInfo" | |
} | |
}), P(Ct.AD_INFO_INIT_START), [2, new Promise(function(n, r) { | |
return se(e, void 0, void 0, function() { | |
var e; | |
return ue(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return t.trys.push([0, 2, , 3]), [4, this.callAdInfo()]; | |
case 1: | |
return (e = t.sent()).ad_info_from = "jsb", e.ad_info_status = "fulfilled", n(e), [3, 3]; | |
case 2: | |
return e = t.sent(), Object(_.a)(x.a.JSB_ERROR, e, { | |
extJSON: { | |
position: "getAdInfo" | |
} | |
}), r(e), [3, 3]; | |
case 3: | |
return [2] | |
} | |
}) | |
}) | |
})] | |
}) | |
}) | |
}, le.prototype.sendReportData = function(n, r) { | |
return void 0 === r && (r = "0"), se(this, void 0, void 0, function() { | |
var e; | |
return ue(this, function(t) { | |
return n.category = "ad_analytics_msg", n.tag = mt, n.label = _t, Object(c.f)() ? (e = { | |
eventName: mt, | |
labelName: _t, | |
value: r, | |
extValue: "0", | |
extJson: n | |
}, this.call("sendLog", e, 400)) : (e = { | |
event_name: _t, | |
version: 2, | |
properties: n | |
}, this.call("track_event", e, 400)), [2] | |
}) | |
}) | |
}, le.prototype.updatePCMData = function(e) { | |
return se(this, void 0, void 0, function() { | |
return ue(this, function(t) { | |
return Object(c.f)() && this.call("updatePCMData", e, 400), [2] | |
}) | |
}) | |
}, le.prototype.getATTStatus = function() { | |
return se(this, void 0, void 0, function() { | |
return ue(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return t.trys.push([0, 2, , 3]), [4, this.call("getATTStatus", {}, 400)]; | |
case 1: | |
return [2, { | |
ATTStatus: t.sent().ATTStatus | |
}]; | |
case 2: | |
return t.sent(), [3, 3]; | |
case 3: | |
return [2] | |
} | |
}) | |
}) | |
}, le.prototype.callAdInfo = function() { | |
return se(this, void 0, void 0, function() { | |
var n, r; | |
return ue(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return [4, this.call("adInfo", {}, 0, function(t) { | |
return t | |
})]; | |
case 1: | |
return n = t.sent(), r = {}, r = "string" == typeof n ? JSON.parse(n) : (e = n).code && e.data && e.ret ? n.data : n, [2, { | |
creative_id: r.cid, | |
log_extra: r.log_extra, | |
convert_id: undefined | |
}] | |
} | |
var e | |
}) | |
}) | |
}, le.prototype.call = function(i, a, c, s) { | |
return void 0 === a && (a = {}), void 0 === c && (c = 400), se(this, void 0, void 0, function() { | |
var e, n, r, o; | |
return ue(this, function(t) { | |
return e = this.getCallPromise(i, a, s), n = [e], 0 < c && (o = new Promise(function(t, e) { | |
r = window.setTimeout(e, c) | |
}), n.push(o), o = function() { | |
window.clearTimeout(r) | |
}, e.then(o, o)), [2, Promise.race(n)] | |
}) | |
}) | |
}, le.prototype.getCallPromise = function(o, i, a) { | |
return se(this, void 0, void 0, function() { | |
var e = this; | |
return ue(this, function(t) { | |
return [2, new Promise(function(n, r) { | |
if (!e.jsbridge) return r("JSBRIDGE ERROR"), void Object(_.a)(x.a.JSB_ERROR, new Error("JSBRIDGE ERROR"), { | |
extJSON: { | |
position: "getCallPromise" | |
} | |
}); | |
e.jsbridge.call(o, i, function(t) { | |
if (t = (t = void 0 === t ? {} : t) || {}, Object(f.s)(t)) try { | |
t = JSON.parse(t) | |
} catch (e) { | |
Object(_.a)(x.a.JSB_ERROR, e, { | |
extJSON: { | |
position: "getCallPromise bridge.call" | |
} | |
}), r(e) | |
}(t = t.data ? t.data : t).__data && (t = t.__data), n(a ? a(t) : t) | |
}) | |
})] | |
}) | |
}) | |
}, le); | |
function le() { | |
this.jsbridge = Object(c.f)() ? function() { | |
if (window && window.ToutiaoJSBridge && window.ToutiaoJSBridge.call) return window.ToutiaoJSBridge | |
}() || ne : ce | |
} | |
var pe, de = (pe = undefined, function() { | |
return pe = pe === undefined ? Object(c.d)() ? new fe : null : pe | |
}), | |
he = "_toutiao_params", | |
be = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
ge = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}; | |
function ye() {} | |
var ve = new(ye.prototype.getAdInfo = function() { | |
return be(this, void 0, void 0, function() { | |
var n, r, o, i, a, c, s, u, f, l, p; | |
return ge(this, function(t) { | |
try { | |
return n = I("ttclid") || undefined, r = I("ext_params") || undefined, o = I(he) || undefined, i = parseInt(I("ttuts")) || undefined, a = o ? JSON.parse(o) : {}, c = a.log_extra, s = void 0 === c ? undefined : c, u = a.idc, f = void 0 === u ? undefined : u, l = a.cid, p = void 0 === l ? undefined : l, [2, { | |
callback: n, | |
ext_params: r, | |
log_extra: s, | |
creative_id: p, | |
idc: f, | |
ttuts: i, | |
ad_info_from: (s || f || p) && "url" | |
}] | |
} catch (e) { | |
return [2, {}] | |
} | |
return [2] | |
}) | |
}) | |
}, ye.prototype.getAppInfo = function() { | |
return be(this, void 0, void 0, function() { | |
var n, r, o, i; | |
return ge(this, function(t) { | |
try { | |
return n = I(he), r = n && JSON.parse(n), o = r.device_id, i = r.uid, [2, { | |
device_id: o, | |
user_id: i | |
}] | |
} catch (e) { | |
return [2, {}] | |
} | |
return [2] | |
}) | |
}) | |
}, ye), | |
me = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
_e = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}, | |
xe = (Oe.prototype.getAdInfo = function() { | |
return me(this, void 0, void 0, function() { | |
var e, n, r, o, i; | |
return _e(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return e = A(bt), P(Ct.BEFORE_AD_INFO_INIT_START), null !== e ? (P(Ct.AD_INFO_INIT_START), e.ad_info_from = "cache", e.ad_info_status = "fulfilled(cache)", [2, e]) : [4, this.params.getAdInfo()]; | |
case 1: | |
return n = t.sent(), this.bridge ? [4, this.bridge.getAdInfo()] : [3, 3]; | |
case 2: | |
return o = t.sent(), [3, 4]; | |
case 3: | |
o = {}, t.label = 4; | |
case 4: | |
return r = o, this.bridge && Object(c.e)() ? [4, this.bridge.getATTStatus()] : [3, 6]; | |
case 5: | |
return i = t.sent(), [3, 7]; | |
case 6: | |
i = {}, t.label = 7; | |
case 7: | |
return (i = Object.assign({}, n, r, i)) && (i.creative_id && i.log_extra || i.callback) && T(bt, i), [2, i] | |
} | |
}) | |
}) | |
}, Oe); | |
function Oe() { | |
this.bridge = de(), this.params = ve | |
} | |
function we() {} | |
var Ie = new(we.prototype.send = function(t, e) { | |
this.sendBeacon(t, e) || this.getByImage(t, e) | |
}, we.prototype.sendBeacon = function(t, e) { | |
return !!navigator.sendBeacon && navigator.sendBeacon(t, JSON.stringify(e)) | |
}, we.prototype.getByImage = function(t, e) { | |
var n, r; | |
(new Image).src = (n = e, r = new URL(t), Object.keys(n).forEach(function(t) { | |
var e = n[t].toJSON ? n[t].toJSON() : String(n[t]); | |
r.searchParams.set(t, e) | |
}), r.toString()) | |
}, we), | |
Se = (ke.prototype.report = function(t, e, n) { | |
var r, r = (r = e, nt(JSON.stringify(r))); | |
if (!n && null !== this.bridge) { | |
var o = e.context.ad.creative_id || "0", | |
i = { | |
analytics_message: r, | |
trackLogData: JSON.stringify(e) | |
}; | |
return this.bridge.sendReportData(i, o), void Object(_.c)(x.a.JSB_SEND, { | |
pixelCode: e.context.pixel.code, | |
extJSON: { | |
event: e.event, | |
event_id: e.event_id | |
} | |
}) | |
} | |
i = this.httpService.sendBeacon(t, e); | |
o = e.event, Boolean(o) && (o = e, Object.keys(o.context.user).some(function(t) { | |
return -1 !== Et.a.indexOf(t) | |
})) && Object(_.c)(x.a.HTTP_SEND, { | |
pixelCode: e.context.pixel.code, | |
extJSON: { | |
event: e.event, | |
event_id: e.event_id | |
} | |
}), i || this.httpService.getByImage(t, { | |
analytics_message: r | |
}) | |
}, ke.prototype.reportPCM = function(e, t, n) { | |
var r = this; | |
return this.pcmReportList.push(t), this.pcmReportPromise || (this.pcmReportPromise = Promise.resolve().then(function() { | |
r.pcmReportList = r.pcmReportList.sort(function(t, e) { | |
return e.priority - t.priority | |
}); | |
var t = r.pcmReportList[0]; | |
n || null === r.bridge ? r.httpService.sendBeacon(e, t) : r.bridge.updatePCMData(t), r.pcmReportList = [], r.pcmReportPromise = null | |
})), this.pcmReportPromise | |
}, ke); | |
function ke() { | |
this.pcmReportList = [], this.bridge = de(), this.httpService = Ie | |
} | |
var je = (Ee.prototype.setPCMDomain = function(t) { | |
this.PCMDomain = t | |
}, Ee.prototype.getPCMDomain = function() { | |
return this.PCMDomain | |
}, Ee.prototype.setPCMConfig = function(t) { | |
t && (t.sort(function(t, e) { | |
return e.priority - t.priority | |
}), this.PCMConfig = t) | |
}, Ee.prototype.getPCMEvent = function(e, r, t) { | |
var n = this; | |
void 0 === t && (t = !0); | |
try { | |
var o = this.PCMConfig; | |
return 0 < (o = t ? o.filter(function(t) { | |
return t.pixelCode === e && n.endsWith(r.name, t.eventFunnel) | |
}) : o).length ? (o = o.filter(function(t) { | |
var e = t.revenueMin, | |
n = t.revenueMax, | |
t = r.value; | |
return !(n && 0 < n || e && 0 < e) || null != t && Object(f.v)(t, e, n) | |
}))[0] : void 0 | |
} catch (i) { | |
return | |
} | |
}, Ee.prototype.endsWith = function(t, e) { | |
e = e.slice().pop(); | |
return !!e && (e.eventNameReportAliases ? -1 < e.eventNameReportAliases.indexOf(t) : e.eventNameReport === t) | |
}, Ee); | |
function Ee() { | |
this.PCMDomain = "", this.PCMConfig = [] | |
} | |
var Pe, Ae, L = n("cpc2"), | |
Te = undefined && undefined.__extends || (Pe = function(t, e) { | |
return (Pe = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, e) { | |
t.__proto__ = e | |
} || function(t, e) { | |
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) | |
})(t, e) | |
}, function(t, e) { | |
function n() { | |
this.constructor = t | |
} | |
Pe(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n) | |
}); | |
function Ce() { | |
var e = Ae.call(this) || this; | |
return window.track_tool_events && window.track_tool_events.length && window.track_tool_events.forEach(function(t) { | |
e.on(t.name, t.callback) | |
}), e | |
} | |
var Ne = new(Ae = n.n(L).a, Te(Ce, Ae), Ce.prototype.sendDebugEvent = function(t, e) { | |
this.emit("manual_track", { | |
pixelCode: t, | |
event_type: e, | |
id: t + "-" + e | |
}) | |
}, Ce); | |
var Re = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
Me = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}; | |
function Fe() {} | |
var De = new(Fe.prototype.getAppInfo = function() { | |
return Re(this, void 0, void 0, function() { | |
var e; | |
return Me(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return null !== (e = A(gt)) ? [2, e] : [4, ve.getAppInfo()]; | |
case 1: | |
return (e = t.sent()).platform = Object(c.a)(), Object(f.o)(e) || T(gt, e), [2, e] | |
} | |
}) | |
}) | |
}, Fe), | |
Te = n("p46w"), | |
Be = n.n(Te), | |
Je = n("w0s3"), | |
Le = { | |
expires: 390, | |
domain: j() | |
}, | |
Ue = (Ye.prototype.enableCookie = function() { | |
return Be.a.set(Je.e, "1", Le), a(Object(f.h)()) | |
}, Ye.prototype.disableCookie = function() { | |
Be.a.set(Je.e, "0", Le), Be.a.remove(Je.m, Le), a(Object(f.g)()) | |
}, Ye.prototype.setAnonymousId = function(t) { | |
t = this.getAnonymousId() || t, Be.a.set(Je.m, t, Le) | |
}, Ye.prototype.getAnonymousId = function() { | |
return Be.a.get(Je.m) || "" | |
}, Ye.prototype.canUseCookie = function() { | |
return "1" === Be.a.get(Je.e) | |
}, Ye.prototype.resetExpires = function() { | |
var t; | |
this.canUseCookie() && (Be.a.set(Je.e, "1", Le), (t = this.getAnonymousId()) && this.setAnonymousId(t)) | |
}, Ye); | |
function Ye() {} | |
var He, We, ze, Xe, n = undefined && undefined.__extends || (He = function(t, e) { | |
return (He = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, e) { | |
t.__proto__ = e | |
} || function(t, e) { | |
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) | |
})(t, e) | |
}, function(t, e) { | |
function n() { | |
this.constructor = t | |
} | |
He(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n) | |
}), | |
Ge = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
qe = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}, | |
Ke = (n(Ve, We = J), Ve.prototype.init = function() { | |
this.tt_test_id = E(), this.reportService = new Se, this.cookieService = new Ue, this.browserAdService = new xe, this.pcmService = new je, this.reportPreposition.push(this.initAdInfo()), this.initAppInfo(), this.initUserInfo(), this.listenSPAHistoryChange(), this.onPageLoaded(), this.onPageLeave() | |
}, Ve.prototype.enableCookie = function() { | |
this.reportPreposition.push(this.cookieService.enableCookie()) | |
}, Ve.prototype.disableCookie = function() { | |
this.cookieService.disableCookie(), this.data.userInfo.anonymous_id = undefined | |
}, Ve.prototype.setAnonymousId = function(t) { | |
this.cookieService.setAnonymousId(t), this.initUserInfo() | |
}, Ve.prototype.resetCookieExpires = function() { | |
this.cookieService.resetExpires() | |
}, Ve.prototype.getVariationId = function() { | |
return Object(f.n)() | |
}, Ve.prototype.isLegacyPixel = function(t) { | |
var e = Object(f.i)(); | |
return !(!e || !e._legacy || -1 === e._legacy.indexOf(t)) | |
}, Ve.prototype.initAdInfo = function() { | |
return Ge(this, void 0, void 0, function() { | |
var n; | |
return qe(this, function(t) { | |
switch (t.label) { | |
case 0: | |
if (!Object(f.o)(this.methods.getAdInfo())) return [2, Promise.resolve()]; | |
if (this.adInfoPromise) return [2, this.adInfoPromise]; | |
t.label = 1; | |
case 1: | |
return t.trys.push([1, 3, , 4]), this.adInfoPromise = this.browserAdService.getAdInfo(), [4, this.adInfoPromise]; | |
case 2: | |
return n = t.sent(), this.setAdInfo(n), e = n, Object(f.i)()._adInfo = e, this.offsiteAdInfo = Pt(n, function(t) { | |
Object(_.a)(x.a.INIT_ERROR, t, { | |
extJSON: { | |
position: "handleAdInfoOfficial" | |
} | |
}) | |
}), n = function(t) { | |
try { | |
var e = t.log_extra, | |
n = t.ttuts; | |
return Object(c.c)() ? Object(c.f)() ? e ? 1 !== JSON.parse(e).user_tracking_status : 3 === t.ATTStatus : null == n || 1 !== n : !0 | |
} catch (r) { | |
return !1 | |
} | |
}(n), this.enableAdTracking = n, P(Ct.AD_INFO_INIT_END, { | |
extJSON: { | |
enabledAdTracking: n | |
} | |
}), [3, 4]; | |
case 3: | |
return n = t.sent(), this.adInfoPromise = null, Object(_.a)(x.a.INIT_ERROR, n, { | |
extJSON: { | |
position: "initAdInfo" | |
} | |
}), [3, 4]; | |
case 4: | |
return [2] | |
} | |
var e | |
}) | |
}) | |
}, Ve.prototype.onPageLoaded = function() { | |
var t = this; | |
window.addEventListener("load", function() { | |
t.batch.setBatchParameter({ | |
interval: 2e4 | |
}), t.plugins.forEach(function(t) { | |
t.pageDidLoad() | |
}) | |
}, { | |
once: !0 | |
}) | |
}, Ve.prototype.onPageLeave = function() { | |
var t = this; | |
window.addEventListener("beforeunload", function() { | |
var e = Date.now(); | |
t.plugins.forEach(function(t) { | |
t.pageWillLeave(e) | |
}) | |
}, { | |
once: !0 | |
}) | |
}, Ve.prototype.initAppInfo = function() { | |
return Ge(this, void 0, void 0, function() { | |
var e; | |
return qe(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return [4, De.getAppInfo()]; | |
case 1: | |
return e = t.sent(), this.setAppInfo(e), [2] | |
} | |
}) | |
}) | |
}, Ve.prototype.initUserInfo = function() { | |
var t; | |
this.cookieService.canUseCookie() && (t = { | |
anonymous_id: this.cookieService.getAnonymousId() | |
}, this.setUserInfoWithoutIdentifyPlugin(t)) | |
}, Ve.prototype.getSessionIdFromCache = function() { | |
return A(yt) | |
}, Ve.prototype.setSessionIdToCache = function(t) { | |
T(yt, t) | |
}, Ve.prototype.track = function(t, e, n, r, o) { | |
return "track" === r && Object(_.c)(x.a.PIXEL_SEND, { | |
pixelCode: t, | |
extJSON: { | |
event: e | |
} | |
}), We.prototype.track.call(this, t, e, n, r, o) | |
}, Ve.prototype.trackSync = function(t, e, n, r, o) { | |
if (r !== u.TRACK) return We.prototype.trackSync.call(this, t, e, n, r, o); | |
var i, a, c = this.methods.getPixel(t); | |
if (c && (i = t, s = e, Ne.sendDebugEvent(i, s)), this.tt_test_id) { | |
var s = this.assemblyData(t, e, n); | |
s.tt_test_id = this.tt_test_id, c && (s._inspection = c.getPixelMatchedUserFormatInfo()); | |
c = ((a = s).context.ad = {}, Object.keys(a.context.user).forEach(function(t) { | |
a.context.user[t] = "" | |
}), a); | |
return this.reportService.report(xt, c, !0), s | |
} | |
return this.enableAdTracking || this.isOnSitePage() ? We.prototype.trackSync.call(this, t, e, n, r, o) : We.prototype.trackSync.call(this, t, e, n, r, !0) | |
}, Ve.prototype.assemblyData = function(t, e, n) { | |
var r, o = We.prototype.assemblyData.call(this, t, e, n), | |
i = Object(f.k)(); | |
return i && (o.partner = i), !1 !== this.enableAdTracking || this.isOnSitePage() || (o.context.user = {}, o.context.ad = this.offsiteAdInfo, o.context.ad = Tt(o.context.ad, jt), e && (o.context.device.enable_ad_tracking = this.enableAdTracking, this.pixelEventReportMap = At(), r = t, n = e, (i = this.pixelEventReportMap)[r] && -1 !== i[r].indexOf(n) ? o.context.ad.is_first = 0 : (o.context.ad.is_first = 1, n = t, t = e, (e = this.pixelEventReportMap)[n] || (e[n] = []), -1 === e[n].indexOf(t) && e[n].push(t), T(vt, e)))), o | |
}, Ve.prototype.listenSPAHistoryChange = function() { | |
var e = this, | |
n = this.data.pageInfo.url, | |
t = function() { | |
var t = location.href; | |
t !== n && e.setPageInfo(t) | |
}; | |
window.addEventListener("popstate", t), history.pushState = Ze("pushState", t), history.replaceState = Ze("replaceState", t) | |
}, Ve.prototype.setPCMDomain = function(t) { | |
this.pcmService.setPCMDomain(t) | |
}, Ve.prototype.setPCMConfig = function(t) { | |
this.pcmService.setPCMConfig(t) | |
}, Ve.prototype.trackPCM = function(t, e, n) { | |
n = this.assemblyDataPCM(t, e, n); | |
n && (Object(_.c)(x.a.PIXEL_SEND_PCM, { | |
pixelCode: t, | |
extJSON: { | |
event: e, | |
trigger_data: n.trigger_data | |
} | |
}), null !== (e = Ot(u.PCM)) && this.reportService.reportPCM && this.reportService.reportPCM(e, n, !1)) | |
}, Ve.prototype.assemblyDataPCM = function(t, e, n) { | |
n = { | |
name: e, | |
value: n && n.value | |
}, t = this.pcmService.getPCMEvent(t, n), n = this.pcmService.getPCMDomain(); | |
if (t && n) return { | |
trigger_data: t.triggerData, | |
priority: t.priority, | |
hostname: n | |
} | |
}, Ve.prototype.trackBloomFilter = function(t, e, n) { | |
var r = this; | |
Promise.all(this.reportPreposition).then(function() { | |
r.bloomFilterService && r.bloomFilterService.track(t, e, n) | |
}) | |
}, Ve); | |
function Ve(t) { | |
t = We.call(this, t) || this; | |
return t.enableAdTracking = !0, t.pixelEventReportMap = {}, t.offsiteAdInfo = {}, t.onPageLoaded(), Object(c.f)() && Object(c.c)() && (t.enableAdTracking = !1), t.pixelEventReportMap = At(), t | |
} | |
function Ze(t, e) { | |
var n = history[t]; | |
return function() { | |
n.apply(history, arguments), e() | |
} | |
} | |
function Qe() { | |
var t = Xe.call(this) || this; | |
return t.tt_test_id = E(), t.context = new Ke(t.getLibraryInfo()), t.initDynamicPlugin(), t | |
} | |
var $e = ((undefined && undefined.__extends || (ze = function(t, e) { | |
return (ze = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(t, e) { | |
t.__proto__ = e | |
} || function(t, e) { | |
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]) | |
})(t, e) | |
}, function(t, e) { | |
function n() { | |
this.constructor = t | |
} | |
ze(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n) | |
}))(Qe, Xe = O), Qe.prototype.init = function() { | |
P(Ct.INIT_START), P(Ct.CONTEXT_INIT_START), this.context.init(), P(Ct.CONTEXT_INIT_END), this.setPageInfo(window.location.href, document.referrer), this.handleCache(), P(Ct.INIT_END) | |
}, Qe.prototype.handleCache = function() { | |
var c = this; | |
this.context.resetCookieExpires(); | |
var t = Object(f.f)(), | |
e = Object(f.j)(); | |
if (Object.entries(e).forEach(function(t) { | |
var e = t[0], | |
n = t[1]; | |
if (!n._init && (c.loadPixel(e), n._init = !0, 0 < n.length)) | |
for (0; n.length;) { | |
var r = n.shift(); | |
if (r) { | |
var o = r[0], | |
i = r.slice(1); | |
0; | |
var a = c.instance(e); | |
if (a) switch (o) { | |
case "identify": | |
Xe.prototype.identify.call(c, i[0], i[1]); | |
break; | |
case "page": | |
Xe.prototype.page.call(c, i[0]); | |
break; | |
case "track": | |
a.track(i[0], i[1]) | |
} | |
} | |
} | |
}), 0 < t.length) | |
for (; t.length;) { | |
var n = t.shift(); | |
if (n) { | |
var r = n[0], | |
o = n.slice(1); | |
switch (0, r) { | |
case "identify": | |
this.identify(o[0], o[1]); | |
break; | |
case "page": | |
this.page(o[0]); | |
break; | |
case "track": | |
this.track(o[0], o[1]); | |
break; | |
case "enableCookie": | |
this.enableCookie(); | |
break; | |
case "disableCookie": | |
this.disableCookie() | |
} | |
} | |
} | |
}, Qe.prototype.enableCookie = function() { | |
this.context.enableCookie() | |
}, Qe.prototype.disableCookie = function() { | |
this.context.disableCookie() | |
}, Qe.prototype.setAnonymousId = function(t) { | |
this.context.setAnonymousId(t) | |
}, Qe.prototype.setPCMDomain = function(t) { | |
this.context.setPCMDomain(t) | |
}, Qe.prototype.setPCMConfig = function(t) { | |
this.context.setPCMConfig(t) | |
}, Qe.prototype.createPixel = function(t) { | |
P(Ct.PIXEL_CREATE_START, t); | |
var e = new g({ | |
pixelCode: t, | |
context: this.context | |
}); | |
return P(Ct.PIXEL_CREATE_END, t), e | |
}, Qe.prototype.getLibraryInfo = function() { | |
return { | |
name: Je.j, | |
version: Je.k | |
} | |
}, Qe.prototype.initDynamicPlugin = function() { | |
var n = this, | |
t = Object(f.i)().dynamicPlugins; | |
t && t.forEach(function(t) { | |
try { | |
n.useDynamicPlugin(t.handler) | |
} catch (e) { | |
Object(_.a)(x.a.PLUGIN_ERROR, e, { | |
extJSON: { | |
plugin_name: t.name | |
} | |
}) | |
} | |
}) | |
}, Qe), | |
O = function() { | |
var t = Object(_.b)().pixelCode; | |
Object(_.c)(x.a.BEFORE_INIT, { | |
pixelCode: t | |
}); | |
var r = Object(f.i)() || []; | |
if (Object(f.p)()) return Object(_.c)(x.a.HANDLE_CACHE, { | |
pixelCode: t | |
}), void r.handleCache(); | |
var o = new $e, | |
t = Object(f.m)(); | |
["instance", "instances", "usePlugin", "loadPixel", "enableCookie", "disableCookie"].forEach(function(e) { | |
Object.defineProperty(r, e, { | |
get: function() { | |
return function() { | |
try { | |
return o[e].apply(o, Array.prototype.slice.call(arguments)) | |
} catch (t) { | |
return Object(_.a)(x.a.API_ERROR, t, { | |
extJSON: { | |
api: e | |
} | |
}), {} | |
} | |
} | |
}, | |
set: function() {} | |
}) | |
}), ["page", "track", "identify"].forEach(function(n) { | |
Object.defineProperty(r, n, { | |
get: function() { | |
return function() { | |
try { | |
var t = Array.prototype.slice.call(arguments); | |
return Object(f.t)(n, t), o[n].apply(o, t) | |
} catch (e) { | |
return Object(_.a)(x.a.API_ERROR, e, { | |
extJSON: { | |
api: n | |
} | |
}), {} | |
} | |
} | |
}, | |
set: function() {} | |
}) | |
}), window[t] = Object.assign(r, o, Object.getPrototypeOf(o)), o.init() | |
}; | |
try { | |
O() | |
} catch (en) { | |
Object(_.a)(x.a.INIT_ERROR, en) | |
} | |
}, | |
olJS: function(t, e, n) { | |
n = n("Gd/C"); | |
t.exports = n("navigator", "userAgent") || "" | |
}, | |
p46w: function(t, e, n) { | |
var r, o; | |
(r = "function" == typeof(r = o = function() { | |
function s() { | |
for (var t = 0, e = {}; t < arguments.length; t++) { | |
var n, r = arguments[t]; | |
for (n in r) e[n] = r[n] | |
} | |
return e | |
} | |
function f(t) { | |
return t.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent) | |
} | |
return function t(u) { | |
function c() {} | |
function n(t, e, n) { | |
if ("undefined" != typeof document) { | |
"number" == typeof(n = s({ | |
path: "/" | |
}, c.defaults, n)).expires && (n.expires = new Date(+new Date + 864e5 * n.expires)), n.expires = n.expires ? n.expires.toUTCString() : ""; | |
try { | |
var r = JSON.stringify(e); | |
/^[\{\[]/.test(r) && (e = r) | |
} catch (a) {} | |
e = u.write ? u.write(e, t) : encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), t = encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape); | |
var o, i = ""; | |
for (o in n) n[o] && (i += "; " + o, !0 !== n[o] && (i += "=" + n[o].split(";")[0])); | |
return document.cookie = t + "=" + e + i | |
} | |
} | |
function e(t, e) { | |
if ("undefined" != typeof document) { | |
for (var n = {}, r = document.cookie ? document.cookie.split("; ") : [], o = 0; o < r.length; o++) { | |
var i = r[o].split("="), | |
a = i.slice(1).join("="); | |
e || '"' !== a.charAt(0) || (a = a.slice(1, -1)); | |
try { | |
var c = f(i[0]), | |
a = (u.read || u)(a, c) || f(a); | |
if (e) try { | |
a = JSON.parse(a) | |
} catch (s) {} | |
if (n[c] = a, t === c) break | |
} catch (s) {} | |
} | |
return t ? n[t] : n | |
} | |
} | |
return c.set = n, c.get = function(t) { | |
return e(t, !1) | |
}, c.getJSON = function(t) { | |
return e(t, !0) | |
}, c.remove = function(t, e) { | |
n(t, "", s(e, { | |
expires: -1 | |
})) | |
}, c.defaults = {}, c.withConverter = t, c | |
}(function() {}) | |
}) ? r.call(e, n, e, t) : r) === undefined || (t.exports = r), t.exports = o() | |
}, | |
pO6F: function(t, e, n) { | |
var r = n("Tuz7"), | |
o = n("mzWg"); | |
t.exports = Object.keys || function(t) { | |
return r(t, o) | |
} | |
}, | |
pRsG: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("Xp4F"), | |
i = n("pO6F"); | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: n("g2s6")(function() { | |
i(1) | |
}) | |
}, { | |
keys: function(t) { | |
return i(o(t)) | |
} | |
}) | |
}, | |
q7hU: function(t, e, n) { | |
var i = n("mb4w"); | |
t.exports = function(r, o, t) { | |
if (i(r), o === undefined) return r; | |
switch (t) { | |
case 0: | |
return function() { | |
return r.call(o) | |
}; | |
case 1: | |
return function(t) { | |
return r.call(o, t) | |
}; | |
case 2: | |
return function(t, e) { | |
return r.call(o, t, e) | |
}; | |
case 3: | |
return function(t, e, n) { | |
return r.call(o, t, e, n) | |
} | |
} | |
return function() { | |
return r.apply(o, arguments) | |
} | |
} | |
}, | |
qDMJ: function(t, e, n) { | |
var r = n("lWKF"); | |
t.exports = Array.isArray || function(t) { | |
return "Array" == r(t) | |
} | |
}, | |
rCb6: function(t, e, n) { | |
var r = n("Tuz7"), | |
o = n("mzWg").concat("length", "prototype"); | |
e.f = Object.getOwnPropertyNames || function(t) { | |
return r(t, o) | |
} | |
}, | |
sJZI: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("g2s6"), | |
i = n("nY95"), | |
a = Object.isSealed; | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: o(function() { | |
a(1) | |
}) | |
}, { | |
isSealed: function(t) { | |
return !i(t) || !!a && a(t) | |
} | |
}) | |
}, | |
"tC/m": function(t, e, n) { | |
var r = n("edxO"), | |
o = n("Xp4F"), | |
i = n("bQ5J"), | |
n = n("iGP5"), | |
a = i("IE_PROTO"), | |
c = Object.prototype; | |
t.exports = n ? Object.getPrototypeOf : function(t) { | |
return t = o(t), r(t, a) ? t[a] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? c : null | |
} | |
}, | |
tNbY: function(t, e, n) { | |
var u = n("j16E"), | |
f = n("1EXu").f, | |
l = n("VFIL"), | |
p = n("eT3W"), | |
d = n("cKix"), | |
h = n("aJVn"), | |
b = n("8+Rt"); | |
t.exports = function(t, e) { | |
var n, r, o, i = t.target, | |
a = t.global, | |
c = t.stat, | |
s = a ? u : c ? u[i] || d(i, {}) : (u[i] || {}).prototype; | |
if (s) | |
for (n in e) { | |
if (r = e[n], o = t.noTargetGet ? (o = f(s, n)) && o.value : s[n], !b(a ? n : i + (c ? "." : "#") + n, t.forced) && o !== undefined) { | |
if (typeof r == typeof o) continue; | |
h(r, o) | |
}(t.sham || o && o.sham) && l(r, "sham", !0), p(s, n, r, t) | |
} | |
} | |
}, | |
twmF: function(t, e, n) { | |
var r = n("j16E"), | |
o = n("cKix"), | |
n = "__core-js_shared__", | |
n = r[n] || o(n, {}); | |
t.exports = n | |
}, | |
uoAl: function(t, e, n) { | |
var r = n("nY95"); | |
t.exports = function(t) { | |
if (!r(t)) throw TypeError(String(t) + " is not an object"); | |
return t | |
} | |
}, | |
uoY4: function(t, e, n) { | |
var r = {}; | |
r[n("mRBh")("toStringTag")] = "z", t.exports = "[object z]" === String(r) | |
}, | |
uziP: function(t, e, n) { | |
n("tNbY")({ | |
target: "Object", | |
stat: !0 | |
}, { | |
is: n("weR8") | |
}) | |
}, | |
vcnZ: function(t, e, n) { | |
var r = n("g2s6"), | |
o = n("lWKF"), | |
i = "".split; | |
t.exports = r(function() { | |
return !Object("z").propertyIsEnumerable(0) | |
}) ? function(t) { | |
return "String" == o(t) ? i.call(t, "") : Object(t) | |
} : Object | |
}, | |
vusn: function(t, e, n) { | |
n("tNbY")({ | |
target: "Object", | |
stat: !0 | |
}, { | |
setPrototypeOf: n("2AMv") | |
}) | |
}, | |
"w/+3": function(t, e, n) { | |
"use strict"; | |
var r = n("tNbY"), | |
o = n("j16E"), | |
i = n("Gd/C"), | |
a = n("eKW+"), | |
c = n("hYRU"), | |
s = n("ByEr"), | |
u = n("Vi/0"), | |
f = n("g2s6"), | |
l = n("edxO"), | |
p = n("qDMJ"), | |
d = n("nY95"), | |
h = n("uoAl"), | |
b = n("Xp4F"), | |
g = n("89xZ"), | |
y = n("5BnI"), | |
v = n("ywqg"), | |
m = n("Yp42"), | |
_ = n("pO6F"), | |
x = n("rCb6"), | |
O = n("/WcL"), | |
w = n("Si2v"), | |
I = n("1EXu"), | |
S = n("jk77"), | |
k = n("kr2p"), | |
j = n("VFIL"), | |
E = n("eT3W"), | |
P = n("Thaq"), | |
A = n("bQ5J"), | |
T = n("iBW0"), | |
C = n("L5Il"), | |
N = n("mRBh"), | |
R = n("Pt9r"), | |
M = n("Rdpx"), | |
F = n("npvp"), | |
D = n("FgOo"), | |
B = n("DFn4").forEach, | |
J = A("hidden"), | |
L = "Symbol", | |
U = "prototype", | |
A = N("toPrimitive"), | |
Y = D.set, | |
H = D.getterFor(L), | |
W = Object[U], | |
z = o.Symbol, | |
X = i("JSON", "stringify"), | |
G = I.f, | |
q = S.f, | |
K = O.f, | |
V = k.f, | |
Z = P("symbols"), | |
Q = P("op-symbols"), | |
$ = P("string-to-symbol-registry"), | |
tt = P("symbol-to-string-registry"), | |
P = P("wks"), | |
o = o.QObject, | |
et = !o || !o[U] || !o[U].findChild, | |
nt = c && f(function() { | |
return 7 != m(q({}, "a", { | |
get: function() { | |
return q(this, "a", { | |
value: 7 | |
}).a | |
} | |
})).a | |
}) ? function(t, e, n) { | |
var r = G(W, e); | |
r && delete W[e], q(t, e, n), r && t !== W && q(W, e, r) | |
} : q, | |
rt = function(t, e) { | |
var n = Z[t] = m(z[U]); | |
return Y(n, { | |
type: L, | |
tag: t, | |
description: e | |
}), c || (n.description = e), n | |
}, | |
ot = u ? function(t) { | |
return "symbol" == typeof t | |
} : function(t) { | |
return Object(t) instanceof z | |
}, | |
it = function(t, e, n) { | |
t === W && it(Q, e, n), h(t); | |
e = y(e, !0); | |
return h(n), l(Z, e) ? (n.enumerable ? (l(t, J) && t[J][e] && (t[J][e] = !1), n = m(n, { | |
enumerable: v(0, !1) | |
})) : (l(t, J) || q(t, J, v(1, {})), t[J][e] = !0), nt(t, e, n)) : q(t, e, n) | |
}, | |
at = function(e, t) { | |
h(e); | |
var n = g(t), | |
t = _(n).concat(st(n)); | |
return B(t, function(t) { | |
c && !ct.call(n, t) || it(e, t, n[t]) | |
}), e | |
}, | |
ct = function(t) { | |
var e = y(t, !0), | |
t = V.call(this, e); | |
return !(this === W && l(Z, e) && !l(Q, e)) && (!(t || !l(this, e) || !l(Z, e) || l(this, J) && this[J][e]) || t) | |
}, | |
o = function(t, e) { | |
var n = g(t), | |
t = y(e, !0); | |
if (n !== W || !l(Z, t) || l(Q, t)) { | |
e = G(n, t); | |
return !e || !l(Z, t) || l(n, J) && n[J][t] || (e.enumerable = !0), e | |
} | |
}, | |
u = function(t) { | |
var t = K(g(t)), | |
e = []; | |
return B(t, function(t) { | |
l(Z, t) || l(T, t) || e.push(t) | |
}), e | |
}, | |
st = function(t) { | |
var e = t === W, | |
t = K(e ? Q : g(t)), | |
n = []; | |
return B(t, function(t) { | |
!l(Z, t) || e && !l(W, t) || n.push(Z[t]) | |
}), n | |
}; | |
s || (E((z = function Symbol() { | |
if (this instanceof z) throw TypeError("Symbol is not a constructor"); | |
var t = arguments.length && arguments[0] !== undefined ? String(arguments[0]) : undefined, | |
e = C(t), | |
n = function(t) { | |
this === W && n.call(Q, t), l(this, J) && l(this[J], e) && (this[J][e] = !1), nt(this, e, v(1, t)) | |
}; | |
return c && et && nt(W, e, { | |
configurable: !0, | |
set: n | |
}), rt(e, t) | |
})[U], "toString", function() { | |
return H(this).tag | |
}), E(z, "withoutSetter", function(t) { | |
return rt(C(t), t) | |
}), k.f = ct, S.f = it, I.f = o, x.f = O.f = u, w.f = st, R.f = function(t) { | |
return rt(N(t), t) | |
}, c && (q(z[U], "description", { | |
configurable: !0, | |
get: function() { | |
return H(this).description | |
} | |
}), a || E(W, "propertyIsEnumerable", ct, { | |
unsafe: !0 | |
}))), r({ | |
global: !0, | |
wrap: !0, | |
forced: !s, | |
sham: !s | |
}, { | |
Symbol: z | |
}), B(_(P), function(t) { | |
M(t) | |
}), r({ | |
target: L, | |
stat: !0, | |
forced: !s | |
}, { | |
"for": function(t) { | |
var e = String(t); | |
if (l($, e)) return $[e]; | |
t = z(e); | |
return $[e] = t, tt[t] = e, t | |
}, | |
keyFor: function(t) { | |
if (!ot(t)) throw TypeError(t + " is not a symbol"); | |
if (l(tt, t)) return tt[t] | |
}, | |
useSetter: function() { | |
et = !0 | |
}, | |
useSimple: function() { | |
et = !1 | |
} | |
}), r({ | |
target: "Object", | |
stat: !0, | |
forced: !s, | |
sham: !c | |
}, { | |
create: function(t, e) { | |
return e === undefined ? m(t) : at(m(t), e) | |
}, | |
defineProperty: it, | |
defineProperties: at, | |
getOwnPropertyDescriptor: o | |
}), r({ | |
target: "Object", | |
stat: !0, | |
forced: !s | |
}, { | |
getOwnPropertyNames: u, | |
getOwnPropertySymbols: st | |
}), r({ | |
target: "Object", | |
stat: !0, | |
forced: f(function() { | |
w.f(1) | |
}) | |
}, { | |
getOwnPropertySymbols: function(t) { | |
return w.f(b(t)) | |
} | |
}), X && r({ | |
target: "JSON", | |
stat: !0, | |
forced: !s || f(function() { | |
var t = z(); | |
return "[null]" != X([t]) || "{}" != X({ | |
a: t | |
}) || "{}" != X(Object(t)) | |
}) | |
}, { | |
stringify: function(t, e, n) { | |
for (var r, o = [t], i = 1; i < arguments.length;) o.push(arguments[i++]); | |
if ((d(r = e) || t !== undefined) && !ot(t)) return p(e) || (e = function(t, e) { | |
if ("function" == typeof r && (e = r.call(this, t, e)), !ot(e)) return e | |
}), o[1] = e, X.apply(null, o) | |
} | |
}), z[U][A] || j(z[U], A, z[U].valueOf), F(z, L), T[J] = !0 | |
}, | |
w0s3: function(t, e, n) { | |
"use strict"; | |
n.d(e, "g", function() { | |
return r | |
}), n.d(e, "c", function() { | |
return o | |
}), n.d(e, "j", function() { | |
return i | |
}), n.d(e, "k", function() { | |
return a | |
}), n.d(e, "e", function() { | |
return c | |
}), n.d(e, "m", function() { | |
return s | |
}), n.d(e, "b", function() { | |
return u | |
}), n.d(e, "n", function() { | |
return f | |
}), n.d(e, "l", function() { | |
return l | |
}), n.d(e, "a", function() { | |
return p | |
}), n.d(e, "h", function() { | |
return d | |
}), n.d(e, "i", function() { | |
return h | |
}), n.d(e, "f", function() { | |
return b | |
}), n.d(e, "d", function() { | |
return g | |
}); | |
var r = "TiktokAnalyticsObject", | |
o = "ttq", | |
i = "pixel.js", | |
a = "2.1.33", | |
c = "_tt_enable_cookie", | |
s = "_ttp", | |
u = "external", | |
f = "tiktok", | |
l = 64, | |
p = "https://analytics.tiktok.com/i18n/pixel/config.js", | |
d = "https://analytics.tiktok.com/i18n/pixel/pickup.js", | |
h = "https://analytics.tiktok.com/i18n/pixel/identify.js", | |
b = "https://analytics.tiktok.com/i18n/pixel/enable_cookie", | |
g = "https://analytics.tiktok.com/i18n/pixel/disable_cookie" | |
}, | |
"wK/p": function(t, e, n) { | |
"use strict"; | |
n.r(e); | |
var u = n("mFs5"), | |
r = n("w0s3"), | |
f = n("HyyX"), | |
o = n("fe1q"), | |
i = n("/6w+"), | |
a = undefined && undefined.__awaiter || function(t, e, c, s) { | |
return new(c = c || Promise)(function(n, r) { | |
function o(t) { | |
try { | |
a(s.next(t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function i(t) { | |
try { | |
a(s["throw"](t)) | |
} catch (e) { | |
r(e) | |
} | |
} | |
function a(t) { | |
var e; | |
t.done ? n(t.value) : ((e = t.value) instanceof c ? e : new c(function(t) { | |
t(e) | |
})).then(o, i) | |
} | |
a((s = s.apply(t, e || [])).next()) | |
}) | |
}, | |
c = undefined && undefined.__generator || function(n, r) { | |
var o, i, a, c = { | |
label: 0, | |
sent: function() { | |
if (1 & a[0]) throw a[1]; | |
return a[1] | |
}, | |
trys: [], | |
ops: [] | |
}, | |
t = { | |
next: e(0), | |
"throw": e(1), | |
"return": e(2) | |
}; | |
return "function" == typeof Symbol && (t[Symbol.iterator] = function() { | |
return this | |
}), t; | |
function e(e) { | |
return function(t) { | |
return s([e, t]) | |
} | |
} | |
function s(t) { | |
if (o) throw new TypeError("Generator is already executing."); | |
for (; c;) try { | |
if (o = 1, i && (a = 2 & t[0] ? i["return"] : t[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, t[1])).done) return a; | |
switch (i = 0, (t = a ? [2 & t[0], a.value] : t)[0]) { | |
case 0: | |
case 1: | |
a = t; | |
break; | |
case 4: | |
return c.label++, { | |
value: t[1], | |
done: !1 | |
}; | |
case 5: | |
c.label++, i = t[1], t = [0]; | |
continue; | |
case 7: | |
t = c.ops.pop(), c.trys.pop(); | |
continue; | |
default: | |
if (!(a = 0 < (a = c.trys).length && a[a.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
c = 0; | |
continue | |
} | |
if (3 === t[0] && (!a || t[1] > a[0] && t[1] < a[3])) { | |
c.label = t[1]; | |
break | |
} | |
if (6 === t[0] && c.label < a[1]) { | |
c.label = a[1], a = t; | |
break | |
} | |
if (a && c.label < a[2]) { | |
c.label = a[2], c.ops.push(t); | |
break | |
} | |
a[2] && c.ops.pop(), c.trys.pop(); | |
continue | |
} | |
t = r.call(n, c) | |
} catch (e) { | |
t = [6, e], i = 0 | |
} finally { | |
o = a = 0 | |
} | |
if (5 & t[0]) throw t[1]; | |
return { | |
value: t[0] ? t[1] : void 0, | |
done: !0 | |
} | |
} | |
}, | |
s = (l.prototype.init = function() { | |
var r = this; | |
return this.pluginPromise || (Object(o.c)(i.a.IDENTIFY_INIT_START), this.pluginPromise = n.e(1).then(n.bind(null, "6rls")).then(function(t) { | |
var e = t.parsePhoneNumberFromString, | |
n = t.sha256, | |
t = t.checkEmailFormat; | |
return Object(o.c)(i.a.IDENTIFY_INIT_END), r.parsePhoneNumberFromString = e, r.checkEmailFormat = t, r.sha256 = n, !0 | |
})) | |
}, l.prototype.handleUserProperties = function(i) { | |
return a(this, void 0, void 0, function() { | |
var r, o = this; | |
return c(this, function(t) { | |
switch (t.label) { | |
case 0: | |
return i ? [4, this.init()] : [2, undefined]; | |
case 1: | |
return t.sent(), r = this.identifyParamsFormattedInfo(i), Object.entries(i).forEach(function(t) { | |
var e = t[0], | |
n = t[1]; | |
if (n) switch (e) { | |
case "email": | |
i.email = o.sha256(o.handleEmail(String(n))); | |
break; | |
case "phone_number": | |
i.phone_number = o.sha256(o.handlePhoneNumber(String(n), o.parsePhoneNumberFromString)) | |
} | |
}), Object.entries(i).forEach(function(t) { | |
var e = t[0], | |
n = t[1]; | |
if (n) switch (e) { | |
case "sha256_email": | |
i.email = o.handleCheckHashedEmailValue(n, r, o.checkEmailFormat); | |
break; | |
case "sha256_phone_number": | |
i.phone_number = o.handleCheckHashedPhoneValue(n, r, o.parsePhoneNumberFromString) | |
} | |
}), [2, { | |
userProperties: i, | |
userDataFormat: r | |
}] | |
} | |
}) | |
}) | |
}, l.prototype.handleEmail = function(t) { | |
return t.toLowerCase() | |
}, l.prototype.handlePhoneNumber = function(t, e) { | |
var n = t, | |
t = e(t); | |
return n = t ? "86" === t.countryCallingCode ? t.nationalNumber : t.number : n | |
}, l.prototype.identifyParamsFormattedInfo = function(t) { | |
var a = this, | |
c = {}, | |
s = /^sha256_(.*)$/; | |
return Object.entries(t).forEach(function(t) { | |
var e = t[0], | |
n = t[1], | |
r = e.match(s); | |
switch (e) { | |
case "email": | |
var o = a.handleCheckEmail(String(n), a.checkEmailFormat); | |
c.email && -1 !== c.email.indexOf(f.a.HASHED) || (c.email = o); | |
break; | |
case "phone_number": | |
var i = a.handleCheckPhoneNumber(String(n), a.parsePhoneNumberFromString); | |
c.phone_number && -1 !== c.phone_number.indexOf(f.a.HASHED) || (c.phone_number = i), c.phone_number = i; | |
break; | |
case (r || {}).input: | |
i = null == r ? void 0 : r.pop(); | |
i && -1 !== u.a.indexOf(i) && (c[i] = [f.a.HASHED]); | |
break; | |
default: | |
c[e] = [f.a.CORRECT_FORMAT] | |
} | |
}), c | |
}, l.prototype.handleCheckPhoneNumber = function(t, e) { | |
var n = []; | |
return t ? e(t) ? n.push(f.a.CORRECT_FORMAT) : n.push(f.a.WRONG_FORMAT) : n.push(f.a.EMPTY_VALUE), n | |
}, l.prototype.handleCheckEmail = function(t, e) { | |
var n = []; | |
return t ? e(t) ? n.push(f.a.CORRECT_FORMAT) : n.push(f.a.WRONG_FORMAT) : n.push(f.a.EMPTY_VALUE), n | |
}, l.prototype.handleCheckHashedEmailValue = function(t, e, n) { | |
return t.length === r.l ? (null != e && e.email.push(f.a.HASHED_CORRECT), t) : n(t) ? (null != e && e.email.push(f.a.PLAINTEXT_EMAIL), this.sha256(this.handleEmail(String(t)))) : (e.email.push(f.a.HASHED_ERR), t) | |
}, l.prototype.handleCheckHashedPhoneValue = function(t, e, n) { | |
return t.length === r.l ? (null != e && e.phone_number.push(f.a.HASHED_CORRECT), t) : n(t) ? (e.phone_number.push(f.a.PLAINTEXT_PHONE), this.sha256(this.handlePhoneNumber(String(t), n))) : (null != e && e.phone_number.push(f.a.HASHED_ERR), t) | |
}, l); | |
function l() {} | |
e["default"] = s | |
}, | |
wUKj: function(t, e, n) { | |
var r = n("Gd/C"), | |
o = n("rCb6"), | |
i = n("Si2v"), | |
a = n("uoAl"); | |
t.exports = r("Reflect", "ownKeys") || function(t) { | |
var e = o.f(a(t)), | |
n = i.f; | |
return n ? e.concat(n(t)) : e | |
} | |
}, | |
weR8: function(t, e) { | |
t.exports = Object.is || function(t, e) { | |
return t === e ? 0 !== t || 1 / t == 1 / e : t != t && e != e | |
} | |
}, | |
wf5p: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("j16E"), | |
n = n("npvp"); | |
r({ | |
global: !0 | |
}, { | |
Reflect: {} | |
}), n(o.Reflect, "Reflect", !0) | |
}, | |
yFXH: function(t, e, n) { | |
var r = n("nY95"), | |
o = n("qDMJ"), | |
i = n("mRBh")("species"); | |
t.exports = function(t, e) { | |
var n; | |
return new((n = o(t) && ("function" == typeof(n = t.constructor) && (n === Array || o(n.prototype)) || r(n) && null === (n = n[i])) ? undefined : n) === undefined ? Array : n)(0 === e ? 0 : e) | |
} | |
}, | |
yLpj: function(t, e) { | |
var n = function() { | |
return this | |
}(); | |
try { | |
n = n || new Function("return this")() | |
} catch (r) { | |
"object" == typeof window && (n = window) | |
} | |
t.exports = n | |
}, | |
yYan: function(t, e, n) { | |
var r = n("uoAl"); | |
t.exports = function(t) { | |
var e = t["return"]; | |
if (e !== undefined) return r(e.call(t)).value | |
} | |
}, | |
ya48: function(t, e, n) { | |
n("w/+3"), n("KKIa"), n("HF0W"), n("yy2C"), n("72RN"), n("f2VU"), n("gsVl"), n("NoR1"), n("FY8A"), n("fKdN"), n("PpL8"), n("0RwH"), n("uziP"), n("01Y7"), n("0kdU"), n("sJZI"), n("pRsG"), n("Ax39"), n("Ujv9"), n("vusn"), n("R6QP"), n("BVjT"), n("7bkZ"), n("ah02"), n("/YXv"), n("Ivt0"), n("96W2"), n("blhV"), n("wf5p"); | |
n = n("WgSG"); | |
t.exports = n.Object | |
}, | |
ywqg: function(t, e) { | |
t.exports = function(t, e) { | |
return { | |
enumerable: !(1 & t), | |
configurable: !(2 & t), | |
writable: !(4 & t), | |
value: e | |
} | |
} | |
}, | |
yy2C: function(t, e, n) { | |
var r = n("tNbY"), | |
o = n("hYRU"); | |
r({ | |
target: "Object", | |
stat: !0, | |
forced: !o, | |
sham: !o | |
}, { | |
defineProperty: n("jk77").f | |
}) | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! function() { | |
"use strict"; | |
var e = { | |
7385: function(e, t, n) { | |
var r, o = this && this.__extends || (r = function(e, t) { | |
return (r = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(e, t) { | |
e.__proto__ = t | |
} || function(e, t) { | |
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]) | |
})(e, t) | |
}, function(e, t) { | |
function n() { | |
this.constructor = e | |
} | |
r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) | |
}); | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.EcommerceIntegration = t.ANALYTICS_ADDED_PAYMENT = t.ANALYTICS_PERFORMED_SEARCH = t.ANALYTICS_STARTED_ORDER = t.ANALYTICS_COMPLETED_ORDER = t.ANALYTICS_ADDED_PRODUCT = t.ANALYTICS_VIEWED_PRODUCT_CATEGORY = t.ANALYTICS_VIEWED_PRODUCT = t.ANALYTICS_PAGE_VIEW = t.ANALYTICS_GENERIC_EVENT = void 0; | |
var i = n(997), | |
a = n(542), | |
c = n(6997), | |
s = n(1102), | |
u = n(372), | |
p = n(1930), | |
d = { | |
viewedProduct: /^[ _]?viewed[ _]?product[ _]?$/i, | |
viewedProductCategory: /^[ _]?viewed[ _]?product[ _]?category[ _]?$/i, | |
viewedProductVariant: /^[ _]?viewed[ _]?product[ _]?variant[ _]?$/i, | |
addedProduct: /^[ _]?added[ _]?product[ _]?$/i, | |
completedOrder: /^[ _]?completed[ _]?order[ _]?$/i, | |
startedOrder: /^[ _]?started[ _]?order[ _]?$/i, | |
performedSearch: /^[ _]?performed[ _]?search[ _]?$/i, | |
addedPayment: /^[ _]?added[ _]?payment[ _]?$/i | |
}; | |
t.ANALYTICS_GENERIC_EVENT = "genericEvent", t.ANALYTICS_PAGE_VIEW = "pageView", t.ANALYTICS_VIEWED_PRODUCT = "viewedProduct", t.ANALYTICS_VIEWED_PRODUCT_CATEGORY = "viewedProductCategory", t.ANALYTICS_ADDED_PRODUCT = "addedProduct", t.ANALYTICS_COMPLETED_ORDER = "completedOrder", t.ANALYTICS_STARTED_ORDER = "startedOrder", t.ANALYTICS_PERFORMED_SEARCH = "performedSearch", t.ANALYTICS_ADDED_PAYMENT = "addedPayment"; | |
var v = function(e) { | |
function t(t, n, r) { | |
var o = e.call(this, t, n) || this; | |
return o.shopId = void 0, o.checkoutToken = void 0, o.visitToken = void 0, o.uniqueToken = void 0, o.appName = void 0, o.wrapTrack(), r && (o.shopId = r.shopId, o.appName = r.appName, o.checkoutToken = r.checkoutToken, o.visitToken = r.visitToken, o.uniqueToken = r.uniqToken), o | |
} | |
return o(t, e), t.prototype.ensureTrackingConsent = function(e, t) { | |
c.privacyApiMethods.userCanBeTracked() ? e() : (document.addEventListener(a.TrackingConsentEvents.TRACKING_ACCEPTED, e), t()) | |
}, t.prototype.wrapTrack = function() { | |
var e = this.track; | |
this.track = function(t) { | |
var n = t.event, | |
r = !1; | |
for (var o in d) { | |
var i = d[o]; | |
if (this[o] && i.test(n)) { | |
this[o].apply(this, [t]), r = !0; | |
break | |
} | |
} | |
r || e.apply(this, Array.prototype.slice.call(arguments)) | |
} | |
}, t.prototype.addMonorailBatchEvent = function(e) { | |
if (this.appName && this.appName in p.appNameToEcommerceEventSchemaId) { | |
var t = this.getEcommercePixelIds(); | |
i.addBatchEvent({ | |
schemaId: e.schemaId ? e.schemaId : p.appNameToEcommerceEventSchemaId[this.appName], | |
payload: s.objectAssignFilterUndefined({ | |
shop_id: this.shopId, | |
partner_name: this.getEcommerceMetricsTag(), | |
event_name: e.eventName, | |
unique_token: this.uniqueToken, | |
visit_token: this.visitToken, | |
integration_id: this.getIntegrationId() | |
}, { | |
pixel_id: t && t.length > 0 ? t[0] : void 0, | |
event_properties: e.eventProperties, | |
checkout_token: this.checkoutToken, | |
event_id: e.eventId | |
}) | |
}), e.eventName in p.ecommerceEventNameSchemaId && i.addBatchEvent({ | |
schemaId: p.ecommerceEventNameSchemaId[e.eventName], | |
payload: { | |
shop_id: this.shopId, | |
partner_name: this.getEcommerceMetricsTag() | |
} | |
}) | |
} | |
}, t | |
}(u.Integration); | |
t.EcommerceIntegration = v | |
}, | |
372: function(e, t) { | |
var n = this && this.__assign || function() { | |
return (n = Object.assign || function(e) { | |
for (var t, n = 1, r = arguments.length; n < r; n++) | |
for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); | |
return e | |
}).apply(this, arguments) | |
}; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.Integration = void 0; | |
var r = function() { | |
function e(e, t) { | |
this.options = {}, this.options = n(n({}, e), t) | |
} | |
return e.flatten = function(e) { | |
var t = n({}, e); | |
return t.properties = {}, n(n({}, t), e.properties) | |
}, e.isEqual = function(e, t) { | |
for (var n in e) | |
if (e[n] !== t[n]) return !1; | |
for (var n in t) | |
if (t[n] !== e[n]) return !1; | |
return !0 | |
}, e | |
}(); | |
t.Integration = r | |
}, | |
1930: function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.extractSchemaIdFromEventName = t.trekkieAssetContextSchemaId = t.s2sMiddlewareEventSchemaId = t.customerEventSchemaId = t.ecommerceEventNameSchemaId = t.appNameToEcommerceEventSchemaId = t.appNameToPageViewSchemaId = void 0, t.appNameToPageViewSchemaId = { | |
admin: "trekkie_admin_page_view/1.0", | |
appstore: "trekkie_appstore_page_view/1.2", | |
blog: "trekkie_blog_page_view/1.2", | |
brochure: "trekkie_brochure_page_view/1.2", | |
checkout: "trekkie_checkout_page_view/1.2", | |
"compass-web": "trekkie_compass_web_page_view/1.2", | |
docs: "trekkie_docs_page_view/1.2", | |
development: "edge_test/1.0", | |
exchange: "trekkie_exchange_page_view/1.2", | |
experts: "trekkie_experts_page_view/1.0", | |
handshake: "trekkie_handshake_page_view/1.0", | |
identity: "trekkie_identity_page_view/1.2", | |
linkpop: "trekkie_linkpop_page_view/2.0", | |
"marketing-misc": "trekkie_marketing_misc_page_view/1.2", | |
oberlo: "trekkie_oberlo_app_page_view/1.0", | |
"oberlo-home": "trekkie_oberlo_home_page_view/1.3", | |
"oberlo-courses": "trekkie_oberlo_courses_page_view/1.0", | |
opinions: "trekkie_opinions_page_view/1.2", | |
partners: "trekkie_partners_page_view/1.2", | |
"shopify-ping-web": "trekkie_shopify_ping_web_page_view/1.0", | |
portal: "trekkie_portal_page_view/1.0", | |
smiley: "trekkie_smiley_page_view/1.2", | |
storefront: "trekkie_storefront_page_view/1.2", | |
testing: "edge_test/1.0", | |
themestore: "trekkie_themestore_page_view/1.2", | |
taler: "trekkie_taler_page_view/1.0" | |
}, t.appNameToEcommerceEventSchemaId = { | |
storefront: "trekkie_storefront_ecommerce_event_emit/4.0", | |
checkout: "trekkie_checkout_ecommerce_event_emit/4.0", | |
test: "edge_test_ecommerce_event_emit/1.0" | |
}, t.ecommerceEventNameSchemaId = { | |
addedPayment: "trekkie_ecommerce_event_emit_added_payment/1.0", | |
addedProduct: "trekkie_ecommerce_event_emit_added_product/1.0", | |
completedOrder: "trekkie_ecommerce_event_emit_completed_order/1.0", | |
genericEvent: "trekkie_ecommerce_event_emit_generic_event/1.0", | |
pageView: "trekkie_ecommerce_event_emit_page_view/1.0", | |
performedSearch: "trekkie_ecommerce_event_emit_performed_search/1.0", | |
viewedProductCategory: "trekkie_ecommerce_event_emit_product_category_view/1.0", | |
viewedProduct: "trekkie_ecommerce_event_emit_product_view/1.0", | |
startedOrder: "trekkie_ecommerce_event_emit_started_order/1.0" | |
}, t.customerEventSchemaId = "trekkie_customer_events/2.0", t.s2sMiddlewareEventSchemaId = "storefront_customer_tracking/2.3", t.trekkieAssetContextSchemaId = "trekkie_asset_context/1.1", t.extractSchemaIdFromEventName = function(e) { | |
var t = "monorail://", | |
n = e.toLowerCase(); | |
if (0 === n.lastIndexOf(t) && n.length > t.length) return n.substr(t.length) | |
} | |
}, | |
793: function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.TrackingConsentEvents = void 0, (t.TrackingConsentEvents || (t.TrackingConsentEvents = {})).TRACKING_ACCEPTED = "trackingConsentAccepted" | |
}, | |
5291: function(e, t) { | |
var n; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.TrackingRegulations = void 0, (n = t.TrackingRegulations || (t.TrackingRegulations = {})).GDPR = "GDPR", n.CCPA = "CCPA", n.NO_VALUE = "" | |
}, | |
542: function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.TrackingRegulations = t.TrackingConsentEvents = void 0; | |
var r = n(793); | |
Object.defineProperty(t, "TrackingConsentEvents", { | |
enumerable: !0, | |
get: function() { | |
return r.TrackingConsentEvents | |
} | |
}); | |
var o = n(5291); | |
Object.defineProperty(t, "TrackingRegulations", { | |
enumerable: !0, | |
get: function() { | |
return o.TrackingRegulations | |
} | |
}) | |
}, | |
8878: function(e, t, n) { | |
var r, o = this && this.__extends || (r = function(e, t) { | |
return (r = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(e, t) { | |
e.__proto__ = t | |
} || function(e, t) { | |
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]) | |
})(e, t) | |
}, function(e, t) { | |
function n() { | |
this.constructor = e | |
} | |
r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) | |
}), | |
i = this && this.__assign || function() { | |
return (i = Object.assign || function(e) { | |
for (var t, n = 1, r = arguments.length; n < r; n++) | |
for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); | |
return e | |
}).apply(this, arguments) | |
}; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.FacebookPixel = void 0; | |
var a = n(7385), | |
c = n(1503), | |
s = n(6997), | |
u = n(725), | |
p = n(997), | |
d = n(1102), | |
v = n(1930), | |
l = n(2724), | |
f = function(e) { | |
function t(n, r, o) { | |
var a = e.call(this, t.defaultOptions, i(i({}, n), { | |
agent: "shopify" | |
}), r.defaultAttributes) || this; | |
return a.campaignManager = new l.CampaignManager, e.prototype.ensureTrackingConsent.call(a, (function() { | |
a.initialize(o) | |
}), o), a | |
} | |
return o(t, e), t.prototype.isEssential = function() { | |
return !1 | |
}, t.prototype.identify = function(e) { | |
throw new Error("identify is not supported") | |
}, t.prototype.page = function(e) { | |
this.emitEvent("PageView", e.eventId, a.ANALYTICS_PAGE_VIEW) | |
}, t.prototype.track = function(e) { | |
var t = {}; | |
for (var n in e.properties) "revenue" === n ? t.value = this.formatRevenue(e.properties.revenue) : t[n] = e.properties[n] | |
}, t.prototype.viewedProductCategory = function(e) {}, t.prototype.viewedProductVariant = function(e) {}, t.prototype.viewedProduct = function(e) { | |
var t = e.properties, | |
n = { | |
content_ids: this.getProductContentIds(t), | |
content_type: this.getProductContentType(t), | |
content_name: t.name || "", | |
content_category: t.category || "", | |
currency: this.getCurrency(t.currency), | |
value: this.formatRevenue(t.price) | |
}; | |
this.emitEvent("ViewContent", e.eventId, a.ANALYTICS_VIEWED_PRODUCT, n) | |
}, t.prototype.addedProduct = function(e) { | |
var t = e.properties, | |
n = { | |
content_ids: this.getProductContentIds(t), | |
content_type: this.getProductContentType(t), | |
content_name: t.name || "", | |
content_category: t.category || "", | |
currency: this.getCurrency(t.currency), | |
value: this.formatRevenue(t.price), | |
num_items: this.getProductNumItems(t) | |
}; | |
this.emitEvent("AddToCart", e.eventId, a.ANALYTICS_ADDED_PRODUCT, n) | |
}, t.prototype.addedPayment = function(e) { | |
var t = e.properties, | |
n = { | |
currency: this.getCurrency(t.currency), | |
value: this.formatRevenue(t.total) | |
}; | |
this.emitEvent("AddPaymentInfo", e.eventId, a.ANALYTICS_ADDED_PAYMENT, n) | |
}, t.prototype.performedSearch = function(e) { | |
var t = { | |
search_string: e.properties.query || "" | |
}; | |
this.emitEvent("Search", e.eventId, a.ANALYTICS_PERFORMED_SEARCH, t) | |
}, t.prototype.startedOrder = function(e) { | |
var t = e.properties, | |
n = { | |
content_ids: this.getOrderContentIds(t), | |
content_type: this.getOrderContentType(t), | |
currency: this.getCurrency(t.currency), | |
value: this.formatRevenue(t.revenue), | |
num_items: this.getOrderNumItems(t) | |
}; | |
this.emitEvent("InitiateCheckout", e.eventId, a.ANALYTICS_STARTED_ORDER, n) | |
}, t.prototype.completedOrder = function(e) { | |
var t = e.properties, | |
n = { | |
content_ids: this.getOrderContentIds(t), | |
content_type: this.getOrderContentType(t), | |
currency: this.getCurrency(t.currency), | |
value: this.formatRevenue(t.revenue), | |
num_items: this.getOrderNumItems(t) | |
}; | |
if (this.options.conversionsAPIEnabled && t.customerEventData) { | |
var r = (this.campaignManager.fetch() || "").match("&?fbclid=([^&]+)"), | |
o = null; | |
r && (o = decodeURIComponent(r[1])); | |
var c = JSON.stringify(i(i({}, n), { | |
checkoutURL: u.href() | |
})), | |
d = { | |
schemaId: v.customerEventSchemaId, | |
payload: { | |
first_name: t.customerEventData.customer.firstName, | |
last_name: t.customerEventData.customer.lastName, | |
event_id: e.eventId, | |
shop_id: this.shopId, | |
facebook_pixel_id: t.customerEventData.pixelID, | |
event_name: "Purchase", | |
payload: c, | |
fbclid: o, | |
fbc: s.read("_fbc") || null, | |
fbp: s.read("_fbp") || null, | |
address: JSON.stringify({ | |
city: t.customerEventData.address.city, | |
province: t.customerEventData.address.province, | |
country: t.customerEventData.address.country, | |
zip: t.customerEventData.address.zip | |
}), | |
phone: t.customerEventData.customer.phoneNumber, | |
email: t.customerEventData.customer.emailAddress, | |
ccpa_enforced: s.isCCPAEnforced() | |
} | |
}; | |
p.produce([d]), this.emitEvent("Purchase", e.eventId, a.ANALYTICS_COMPLETED_ORDER, n) | |
} else this.emitEvent("Purchase", e.eventId, a.ANALYTICS_COMPLETED_ORDER, n) | |
}, t.prototype.emitEvent = function(e, t, n, r) { | |
void 0 === r && (r = {}), window.fbq("track", e, r, { | |
eventID: t | |
}), this.addMonorailBatchEvent(d.objectAssignFilterUndefined({ | |
eventName: n | |
}, { | |
eventId: t, | |
eventProperties: JSON.stringify(r) | |
})) | |
}, t.prototype.setLimitedDataUseMode = function() { | |
window.fbq("dataProcessingOptions", ["LDU"], 1, 1e3) | |
}, t.prototype.initialize = function(e) { | |
this.loadFacebookScript(); | |
for (var t = this.options, n = 0, r = this.getFacebookPixelIds(t); n < r.length; n++) { | |
var o = r[n]; | |
s.privacyApiMethods.userDataCannotBeSold() && this.setLimitedDataUseMode(), window.fbq("init", o), "" !== t.agent && window.fbq("set", "agent", t.agent, o) | |
} | |
e() | |
}, t.prototype.generateScriptTag = function() { | |
var e = c.virtualDocument().createElement("script"); | |
return e.async = !0, e.src = "https://connect.facebook.net/en_US/fbevents.js", e | |
}, t.prototype.getFacebookPixelIds = function(e) { | |
for (var t = [], n = 0, r = e.pixelIds.concat([e.pixelId]); n < r.length; n++) { | |
var o = r[n]; | |
null !== o && "" !== o && t.push(o) | |
} | |
return t | |
}, t.prototype.loadFacebookScript = function() { | |
if (!window.fbq || "function" != typeof window.fbq) { | |
window.fbq = function() { | |
window.fbq.callMethod ? window.fbq.callMethod.apply(window.fbq, arguments) : window.fbq.queue.push(arguments) | |
}, window._fbq || (window._fbq = window.fbq), window.fbq.push = window.fbq, window.fbq.loaded = !0, window.fbq.version = "2.0", window.fbq.queue = []; | |
var e = c.virtualDocument().getElementsByTagName("script")[0]; | |
void 0 === e ? document.head.appendChild(this.generateScriptTag()) : e.parentNode.insertBefore(this.generateScriptTag(), e) | |
} | |
}, t.prototype.formatRevenue = function(e) { | |
return Number(e || 0).toFixed(2) | |
}, t.prototype.getCurrency = function(e) { | |
return e || "USD" | |
}, t.prototype.getProductContentIds = function(e) { | |
var t = e.productId || e.variantId || e.sku; | |
return t ? [t] : [] | |
}, t.prototype.getProductContentType = function(e) { | |
return e.productId ? "product_group" : "product" | |
}, t.prototype.getProductNumItems = function(e) { | |
return e.quantity || this.getProductContentIds(e).length | |
}, t.prototype.getProductKey = function(e) { | |
return e.productId || e.variantId || e.sku | |
}, t.prototype.getOrderContentIds = function(e) { | |
for (var t = [], n = 0, r = e.products || []; n < r.length; n++) { | |
var o = r[n], | |
i = this.getProductKey(o); | |
i && -1 === t.indexOf(i) && t.push(i) | |
} | |
return t | |
}, t.prototype.getOrderContentType = function(e) { | |
for (var t = 0, n = e.products || []; t < n.length; t++) | |
if (n[t].productId) return "product_group"; | |
return "product" | |
}, t.prototype.getOrderNumItems = function(e) { | |
for (var t = 0, n = 0, r = e.products || []; n < r.length; n++) { | |
var o = r[n]; | |
this.getProductKey(o) && (t += o.quantity || 1) | |
} | |
return t | |
}, t.prototype.getEcommerceMetricsTag = function() { | |
return "facebook" | |
}, t.prototype.getIntegrationId = function() { | |
return "FacebookPixel" | |
}, t.prototype.getEcommercePixelIds = function() { | |
var e = this.options; | |
return this.getFacebookPixelIds(e) | |
}, t.defaultOptions = { | |
pixelId: "", | |
pixelIds: [], | |
agent: "shopify", | |
conversionsAPIEnabled: !1 | |
}, t | |
}(a.EcommerceIntegration); | |
t.FacebookPixel = f | |
}, | |
7575: function(e, t, n) { | |
var r, o = this && this.__extends || (r = function(e, t) { | |
return (r = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(e, t) { | |
e.__proto__ = t | |
} || function(e, t) { | |
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]) | |
})(e, t) | |
}, function(e, t) { | |
function n() { | |
this.constructor = e | |
} | |
r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) | |
}), | |
i = this && this.__assign || function() { | |
return (i = Object.assign || function(e) { | |
for (var t, n = 1, r = arguments.length; n < r; n++) | |
for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); | |
return e | |
}).apply(this, arguments) | |
}; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.GoogleAnalytics = void 0; | |
var a = n(7385), | |
c = n(725), | |
s = n(1503), | |
u = function(e) { | |
function t(n, r, o) { | |
var i = e.call(this, t.defaultOptions, n, r.defaultAttributes) || this; | |
return i.pageCalled = !1, i.ecommerce = !1, i.enhancedEcommerceLoaded = !1, i.setWindowGa(), e.prototype.ensureTrackingConsent.call(i, (function() { | |
i.initialize(o) | |
}), o), i | |
} | |
return o(t, e), t.prototype.identify = function(e) { | |
throw new Error("identify is not supported") | |
}, t.prototype.isEssential = function() { | |
return !1 | |
}, t.prototype.page = function(e) { | |
this.overrideDefaultPageProperties(e); | |
var t = this.options, | |
n = this.path(e), | |
r = e.name || e.title, | |
o = { | |
page: n, | |
title: r | |
}; | |
window.ga("set", o); | |
var i = { | |
page: n, | |
title: r, | |
location: e.url | |
}; | |
if (this.pageCalled && delete i.location, window.ga("send", "pageview", i), this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_PAGE_VIEW, | |
eventProperties: JSON.stringify(i) | |
}), e.name && t.trackNamedPages) { | |
var c = this.convertPageToTrack(e); | |
c.properties.nonInteraction = !0, this.trackInternal(c) | |
} | |
this.pageCalled = !0 | |
}, t.prototype.track = function(e) {}, t.prototype.trackInternal = function(e) { | |
var t = this.options, | |
n = e.properties, | |
r = { | |
eventAction: e.event, | |
eventCategory: n.category || "All", | |
eventLabel: n.label, | |
eventValue: this.formatValue(n.value || n.revenue), | |
nonInteraction: Boolean(n.hasOwnProperty("nonInteraction") ? n.nonInteraction : t.nonInteraction) | |
}; | |
window.ga("send", "event", r), this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_GENERIC_EVENT, | |
eventProperties: JSON.stringify(r) | |
}) | |
}, t.prototype.completedOrder = function(e) { | |
var t = e.properties, | |
n = t.total || t.revenue || 0, | |
r = t.orderName || t.checkoutId, | |
o = t.products || []; | |
if (r) { | |
this.ecommerce || (window.ga("require", "ecommerce"), this.ecommerce = !0); | |
var i = { | |
affiliation: t.affiliation, | |
shipping: t.shipping, | |
revenue: n, | |
tax: t.tax, | |
id: r, | |
currency: this.getCurrency(t.currency) | |
}; | |
window.ga("ecommerce:addTransaction", i); | |
for (var c = [], s = 0, u = o; s < u.length; s++) { | |
var p = u[s], | |
d = this.createProductTrack(t, p), | |
v = { | |
category: d.category, | |
quantity: this.getProductQuantity(d), | |
price: d.price, | |
name: d.name, | |
sku: d.sku || d.variantId, | |
id: r, | |
currency: this.getCurrency(d.currency) | |
}; | |
window.ga("ecommerce:addItem", v), c.push(v) | |
} | |
window.ga("ecommerce:send"), this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_COMPLETED_ORDER, | |
eventProperties: JSON.stringify({ | |
orderInfo: i, | |
items: c | |
}) | |
}) | |
} | |
}, t.prototype.viewedProductVariant = function(e) {}, t.prototype.viewedProductEnhanced = function(e) { | |
var t = e.properties; | |
this.loadEnhancedEcommerce(e); | |
var n = this.enhancedEcommerceTrackProduct(t); | |
window.ga("ec:setAction", "detail"); | |
var r = this.pushEnhancedEcommerce(e); | |
this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_VIEWED_PRODUCT, | |
eventProperties: JSON.stringify({ | |
item: n, | |
event: r | |
}) | |
}) | |
}, t.prototype.addedProductEnhanced = function(e) { | |
var t = e.properties; | |
this.loadEnhancedEcommerce(e); | |
var n = this.enhancedEcommerceTrackProduct(t); | |
window.ga("ec:setAction", "add"); | |
var r = this.pushEnhancedEcommerce(e); | |
this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_ADDED_PRODUCT, | |
eventProperties: JSON.stringify({ | |
item: n, | |
event: r | |
}) | |
}) | |
}, t.prototype.startedOrderEnhanced = function(e) { | |
var t = e.properties, | |
n = t.products || []; | |
this.loadEnhancedEcommerce(e); | |
for (var r = [], o = 0, i = n; o < i.length; o++) { | |
var c = i[o], | |
s = this.createProductTrack(t, c), | |
u = this.enhancedEcommerceTrackProduct(s); | |
r.push(u) | |
} | |
var p = t.step || 1; | |
window.ga("ec:setAction", "checkout", { | |
step: p | |
}); | |
var d = this.pushEnhancedEcommerce(e); | |
this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_STARTED_ORDER, | |
eventProperties: JSON.stringify({ | |
items: r, | |
checkoutStep: p, | |
event: d | |
}) | |
}) | |
}, t.prototype.completedOrderEnhanced = function(e) { | |
var t = e.properties, | |
n = t.total || t.revenue || 0, | |
r = t.orderName || t.checkoutId, | |
o = t.products || []; | |
if (r) { | |
this.loadEnhancedEcommerce(e); | |
for (var i = [], c = 0, s = o; c < s.length; c++) { | |
var u = s[c], | |
p = this.createProductTrack(t, u), | |
d = this.enhancedEcommerceTrackProduct(p); | |
i.push(d) | |
} | |
var v = { | |
id: r, | |
affiliation: t.affiliation, | |
revenue: n, | |
tax: t.tax, | |
shipping: t.shipping, | |
coupon: t.coupon | |
}; | |
window.ga("ec:setAction", "purchase", v); | |
var l = this.pushEnhancedEcommerce(e); | |
this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_COMPLETED_ORDER, | |
eventProperties: JSON.stringify({ | |
orderInfo: v, | |
items: i, | |
event: l | |
}) | |
}) | |
} | |
}, t.prototype.initialize = function(e) { | |
this.pageCalled = !1, this.loadGAScript(); | |
var n = this.options; | |
"localhost" === c.hostname() && (n.domain = "none"), n.enhancedEcommerce && this.enhancedEcommerce(), window.ga("create", n.trackingId, { | |
cookieDomain: n.domain || t.defaultOptions.domain, | |
siteSpeedSampleRate: n.siteSpeedSampleRate, | |
sampleRate: n.sampleRate, | |
allowLinker: !0 | |
}), n.doubleClick && window.ga("require", "displayfeatures"), n.enhancedLinkAttribution && window.ga("require", "linkid"), n.anonymizeIp && window.ga("set", "anonymizeIp", !0), e() | |
}, t.prototype.setWindowGa = function() { | |
window.ga && "function" == typeof window.ga || (window.ga = function() { | |
(window.ga.q = window.ga.q || []).push(arguments) | |
}) | |
}, t.prototype.loadGAScript = function() { | |
window.GoogleAnalyticsObject = "ga", this.setWindowGa(), window.ga.l = (new Date).getTime(); | |
var e = s.virtualDocument().createElement("script"); | |
e.async = !0, e.src = "https://www.google-analytics.com/analytics.js"; | |
var t = s.virtualDocument().getElementsByTagName("script")[0]; | |
void 0 === t ? document.head.appendChild(e) : t.parentNode.insertBefore(e, t) | |
}, t.prototype.enhancedEcommerce = function() { | |
this.viewedProduct = this.viewedProductEnhanced, this.addedProduct = this.addedProductEnhanced, this.startedOrder = this.startedOrderEnhanced, this.completedOrder = this.completedOrderEnhanced | |
}, t.prototype.path = function(e) { | |
var t = e.path; | |
return this.options.includeSearch && e.search && (t += e.search), t | |
}, t.prototype.formatValue = function(e) { | |
return !e || e < 0 ? 0 : Math.round(e) | |
}, t.prototype.getProductQuantity = function(e) { | |
return e.quantity || 1 | |
}, t.prototype.getCurrency = function(e) { | |
return e || "USD" | |
}, t.prototype.createProductTrack = function(e, t) { | |
var n = i({}, t); | |
return n.currency = t.currency || this.getCurrency(e.currency), n | |
}, t.prototype.loadEnhancedEcommerce = function(e) { | |
this.enhancedEcommerceLoaded || (window.ga("require", "ec"), this.enhancedEcommerceLoaded = !0); | |
var t = e.properties; | |
window.ga("set", "&cu", this.getCurrency(t.currency)) | |
}, t.prototype.enhancedEcommerceTrackProduct = function(e) { | |
var t = { | |
id: e.sku || e.variantId, | |
name: e.name, | |
category: e.category, | |
quantity: this.getProductQuantity(e), | |
price: e.price, | |
brand: e.brand, | |
variant: e.variant, | |
currency: this.getCurrency(e.currency) | |
}; | |
return e.coupon && (t.coupon = e.coupon), window.ga("ec:addProduct", t), t | |
}, t.prototype.pushEnhancedEcommerce = function(e) { | |
var t = e.properties, | |
n = { | |
eventCategory: t.category || "EnhancedEcommerce", | |
eventAction: e.event || "Action not defined", | |
eventLabel: t.label, | |
nonInteraction: !0 | |
}; | |
return window.ga("send", "event", n), n | |
}, t.prototype.convertPageToTrack = function(e) { | |
return { | |
event: e.name ? "Viewed " + e.name + " Page" : "Loaded a Page", | |
properties: e.properties, | |
eventId: e.eventId | |
} | |
}, t.prototype.overrideDefaultPageProperties = function(e) { | |
for (var t in e.properties) "properties" !== t && "name" !== t && t in e && (e[t] = e.properties[t]) | |
}, t.prototype.getEcommerceMetricsTag = function() { | |
return "google_analytics" | |
}, t.prototype.getIntegrationId = function() { | |
return "GoogleAnalytics" | |
}, t.prototype.getEcommercePixelIds = function() { | |
return [this.options.trackingId] | |
}, t.defaultOptions = { | |
anonymizeIp: !1, | |
domain: "auto", | |
doubleClick: !1, | |
enhancedEcommerce: !1, | |
enhancedLinkAttribution: !1, | |
includeSearch: !1, | |
nonInteraction: !1, | |
siteSpeedSampleRate: 1, | |
sampleRate: 100, | |
trackNamedPages: !0, | |
trackingId: "" | |
}, t | |
}(a.EcommerceIntegration); | |
t.GoogleAnalytics = u | |
}, | |
5087: function(e, t, n) { | |
var r, o = this && this.__extends || (r = function(e, t) { | |
return (r = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(e, t) { | |
e.__proto__ = t | |
} || function(e, t) { | |
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]) | |
})(e, t) | |
}, function(e, t) { | |
function n() { | |
this.constructor = e | |
} | |
r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) | |
}), | |
i = this && this.__assign || function() { | |
return (i = Object.assign || function(e) { | |
for (var t, n = 1, r = arguments.length; n < r; n++) | |
for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); | |
return e | |
}).apply(this, arguments) | |
}; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.GoogleGtag = void 0; | |
var a = n(7385), | |
c = n(5522), | |
s = n(6997), | |
u = function(e) { | |
function t(t, n, r) { | |
var o = e.call(this, {}, t, n.defaultAttributes) || this; | |
return e.prototype.ensureTrackingConsent.call(o, (function() { | |
o.initialize(r) | |
}), r), o | |
} | |
return o(t, e), t.prototype.isEssential = function() { | |
return !0 | |
}, t.prototype.identify = function(e) { | |
throw new Error("identify is not supported") | |
}, t.prototype.track = function(e) {}, t.prototype.setLimitedDataUseMode = function(e) { | |
var t = i({}, e); | |
return t.restricted_data_processing = !0, t | |
}, t.prototype.initialize = function(e) { | |
var t = this.options, | |
n = { | |
send_page_view: !1 | |
}; | |
this.loadGtagScript(), s.privacyApiMethods.userDataCannotBeSold() && (n = this.setLimitedDataUseMode(n)), window.gtag("config", t.conversionId, n), e() | |
}, t.prototype.loadGtagScript = function() { | |
var e = this.options; | |
(!window.dataLayer || window.dataLayer && !Array.isArray(window.dataLayer)) && (window.dataLayer = []), (!window.gtag || window.gtag && "function" != typeof window.gtag) && (window.gtag = function() { | |
window.dataLayer.push(arguments) | |
}), window.gtag("js", new Date), c.script({ | |
src: "https://www.googletagmanager.com/gtag/js?id=" + e.conversionId | |
}) | |
}, t.prototype.page = function(e) { | |
var t = "page_view", | |
n = { | |
send_to: this.gtagEventLabelFor(t), | |
page_path: e.path || "", | |
page_title: e.name || e.title, | |
page_location: e.url | |
}; | |
window.gtag("event", t, n), this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_PAGE_VIEW, | |
eventProperties: JSON.stringify(n) | |
}) | |
}, t.prototype.viewedProduct = function(e) { | |
var t = "view_item", | |
n = e.properties, | |
r = { | |
send_to: this.gtagEventLabelFor(t), | |
ecomm_prodid: this.generateProductIds([n]), | |
ecomm_totalvalue: n.price * n.quantity, | |
ecomm_pagetype: "product", | |
items: [{ | |
id: n.productId || n.variantId, | |
name: n.name, | |
brand: n.brand, | |
category: n.category, | |
coupon: n.coupon, | |
price: n.price.toString(), | |
quantity: n.quantity, | |
variant: n.variant | |
}] | |
}; | |
window.gtag("event", t, r), this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_VIEWED_PRODUCT, | |
eventProperties: JSON.stringify(r) | |
}) | |
}, t.prototype.addedProduct = function(e) { | |
var t = "add_to_cart", | |
n = e.properties, | |
r = { | |
send_to: this.gtagEventLabelFor(t), | |
ecomm_prodid: this.generateProductIds([n]), | |
ecomm_totalvalue: n.price * n.quantity, | |
ecomm_pagetype: "cart", | |
value: n.price * n.quantity, | |
currency: n.currency || "USD", | |
items: [{ | |
id: n.productId || n.variantId, | |
name: n.name, | |
brand: n.brand, | |
category: n.category, | |
coupon: n.coupon, | |
price: n.price.toString(), | |
quantity: n.quantity, | |
variant: n.variant | |
}] | |
}; | |
window.gtag("event", t, r), this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_ADDED_PRODUCT, | |
eventProperties: JSON.stringify(r) | |
}) | |
}, t.prototype.completedOrder = function(e) { | |
var t = "purchase", | |
n = e.properties, | |
r = { | |
send_to: this.gtagEventLabelFor(t), | |
transaction_id: n.orderName || n.checkoutId, | |
value: n.revenue, | |
currency: n.currency || "USD", | |
tax: n.tax.toString(), | |
shipping: n.shipping.toString(), | |
items: n.products.map((function(e) { | |
return { | |
id: e.productId || e.variantId, | |
name: e.name, | |
brand: e.brand, | |
category: e.category, | |
coupon: e.coupon, | |
price: e.price.toString(), | |
quantity: e.quantity, | |
variant: e.variant | |
} | |
})) | |
}; | |
window.gtag("event", t, r), this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_COMPLETED_ORDER, | |
eventProperties: JSON.stringify(r) | |
}) | |
}, t.prototype.startedOrder = function(e) { | |
var t = "begin_checkout", | |
n = e.properties, | |
r = { | |
send_to: this.gtagEventLabelFor(t), | |
ecomm_prodid: this.generateProductIds(n.products), | |
ecomm_totalvalue: this.cartTotalValue(n.products), | |
ecomm_pagetype: "cart", | |
value: n.revenue, | |
currency: n.currency || "USD", | |
items: n.products.map((function(e) { | |
return { | |
id: e.productId || e.variantId, | |
name: e.name, | |
brand: e.brand, | |
category: e.category, | |
coupon: e.coupon, | |
price: e.price.toString(), | |
quantity: e.quantity, | |
variant: e.variant | |
} | |
})), | |
coupon: n.coupon | |
}; | |
window.gtag("event", t, r), this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_STARTED_ORDER, | |
eventProperties: JSON.stringify(r) | |
}) | |
}, t.prototype.performedSearch = function(e) { | |
var t = "search", | |
n = e.properties, | |
r = { | |
send_to: this.gtagEventLabelFor(t), | |
search_term: n.query | |
}; | |
window.gtag("event", t, r), this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_PERFORMED_SEARCH, | |
eventProperties: JSON.stringify(r) | |
}) | |
}, t.prototype.addedPayment = function(e) { | |
var t = "add_payment_info", | |
n = e.properties, | |
r = { | |
send_to: this.gtagEventLabelFor(t), | |
currency: n.currency, | |
total: n.total | |
}; | |
window.gtag("event", t, r), this.addMonorailBatchEvent({ | |
eventName: a.ANALYTICS_ADDED_PAYMENT, | |
eventProperties: JSON.stringify(r) | |
}) | |
}, t.prototype.generateProductIds = function(e) { | |
for (var t = [], n = 0, r = e; n < r.length; n++) { | |
var o = r[n], | |
i = "shopify_" + this.targetCountry() + "_" + o.productId + "_" + o.variantId; | |
t.push(i) | |
} | |
return t | |
}, t.prototype.cartTotalValue = function(e) { | |
for (var t = 0, n = 0, r = e; n < r.length; n++) { | |
var o = r[n]; | |
t += o.price * o.quantity | |
} | |
return t | |
}, t.prototype.targetCountry = function() { | |
return this.options.targetCountry || "US" | |
}, t.prototype.gtagEventLabelFor = function(e) { | |
for (var t = 0, n = this.options.eventLabels; t < n.length; t++) { | |
var r = n[t]; | |
if (r.type === e) return r.action_label | |
} | |
}, t.prototype.getEcommerceMetricsTag = function() { | |
return "google_gtag" | |
}, t.prototype.getEcommercePixelIds = function() { | |
return [this.options.conversionId] | |
}, t.prototype.getIntegrationId = function() { | |
return "GoogleGtag" | |
}, t | |
}(a.EcommerceIntegration); | |
t.GoogleGtag = u | |
}, | |
8142: function(e, t, n) { | |
var r, o = this && this.__extends || (r = function(e, t) { | |
return (r = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(e, t) { | |
e.__proto__ = t | |
} || function(e, t) { | |
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]) | |
})(e, t) | |
}, function(e, t) { | |
function n() { | |
this.constructor = e | |
} | |
r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) | |
}), | |
i = this && this.__assign || function() { | |
return (i = Object.assign || function(e) { | |
for (var t, n = 1, r = arguments.length; n < r; n++) | |
for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); | |
return e | |
}).apply(this, arguments) | |
}; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.Pinterest = void 0; | |
var a = n(7385), | |
c = n(1102), | |
s = function(e) { | |
function t(n, r, o) { | |
var i = e.call(this, t.defaultOptions, n, r.defaultAttributes) || this; | |
return e.prototype.ensureTrackingConsent.call(i, (function() { | |
i.initialize(o) | |
}), o), i | |
} | |
return o(t, e), t.prototype.identify = function(e) {}, t.prototype.track = function(e) {}, t.prototype.page = function(e) { | |
var t = e.properties; | |
t && "product" === t.pageType || this.emitEvent("PageVisit", e.eventId, a.ANALYTICS_PAGE_VIEW) | |
}, t.prototype.isEssential = function() { | |
return !1 | |
}, t.prototype.viewedProduct = function(e) { | |
var t = e.properties, | |
n = { | |
currency: t.currency, | |
line_items: [{ | |
product_id: t.productId, | |
product_variant_id: t.variantId, | |
product_name: t.name, | |
product_price: t.price, | |
product_quantity: t.quantity | |
}] | |
}; | |
this.emitEvent("PageVisit", e.eventId, a.ANALYTICS_VIEWED_PRODUCT, n) | |
}, t.prototype.viewedProductCategory = function(e) { | |
this.emitEvent("ViewCategory", e.eventId, a.ANALYTICS_VIEWED_PRODUCT_CATEGORY) | |
}, t.prototype.addedProduct = function(e) { | |
var t = e.properties, | |
n = { | |
currency: t.currency, | |
line_items: [{ | |
product_id: t.productId, | |
product_variant_id: t.variantId, | |
product_name: t.name, | |
product_price: t.price, | |
product_quantity: Number(e.properties.quantity) | |
}] | |
}; | |
this.emitEvent("AddToCart", e.eventId, a.ANALYTICS_ADDED_PRODUCT, n) | |
}, t.prototype.completedOrder = function(e) { | |
var t = e.properties, | |
n = { | |
value: t.revenue, | |
currency: t.currency, | |
order_quantity: this.getOrderNumItems(t), | |
line_items: t.products.map((function(e, t) { | |
return { | |
product_id: e.productId, | |
product_variant_id: e.variantId, | |
product_name: e.name, | |
product_price: e.price, | |
product_quantity: e.quantity | |
} | |
})) | |
}; | |
this.emitEvent("Checkout", e.eventId, a.ANALYTICS_COMPLETED_ORDER, n) | |
}, t.prototype.performedSearch = function(e) { | |
var t = { | |
search_query: e.properties.query | |
}; | |
this.emitEvent("Search", e.eventId, a.ANALYTICS_PERFORMED_SEARCH, t) | |
}, t.prototype.emitEvent = function(e, t, n, r) { | |
window.pintrk("track", e, i({ | |
np: "shopify" | |
}, r)), this.addMonorailBatchEvent(c.objectAssignFilterUndefined({ | |
eventName: n | |
}, { | |
eventId: t, | |
eventProperties: r ? JSON.stringify(r) : void 0 | |
})) | |
}, t.prototype.getOrderNumItems = function(e) { | |
for (var t = 0, n = 0, r = e.products || []; n < r.length; n++) { | |
var o = r[n]; | |
this.getProductKey(o) && (t += o.quantity || 1) | |
} | |
return t | |
}, t.prototype.getProductKey = function(e) { | |
return e.productId || e.variantId || e.sku | |
}, t.prototype.initialize = function(e) { | |
var t = this.options; | |
this.loadPinterestScript(), window.pintrk("load", t.pixelId, { | |
np: "shopify" | |
}), window.pintrk("page"), e() | |
}, t.prototype.loadPinterestScript = function() { | |
if (!window.pintrk || "function" != typeof window.pintrk) { | |
window.pintrk = function() { | |
window.pintrk.queue.push(Array.prototype.slice.call(arguments)) | |
}, window.pintrk.queue = [], window.pintrk.version = "3.0"; | |
var e = document.createElement("script"); | |
e.async = !0, e.src = "https://s.pinimg.com/ct/core.js"; | |
var t = document.getElementsByTagName("script")[0]; | |
void 0 === t ? document.head.appendChild(e) : t.parentNode.insertBefore(e, t) | |
} | |
}, t.prototype.getEcommerceMetricsTag = function() { | |
return "pinterest" | |
}, t.prototype.getIntegrationId = function() { | |
return "Pinterest" | |
}, t.prototype.getEcommercePixelIds = function() { | |
return [this.options.pixelId] | |
}, t.defaultOptions = { | |
pixelId: "" | |
}, t | |
}(a.EcommerceIntegration); | |
t.Pinterest = s | |
}, | |
3653: function(e, t, n) { | |
var r, o = this && this.__extends || (r = function(e, t) { | |
return (r = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(e, t) { | |
e.__proto__ = t | |
} || function(e, t) { | |
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]) | |
})(e, t) | |
}, function(e, t) { | |
function n() { | |
this.constructor = e | |
} | |
r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) | |
}), | |
i = this && this.__assign || function() { | |
return (i = Object.assign || function(e) { | |
for (var t, n = 1, r = arguments.length; n < r; n++) | |
for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); | |
return e | |
}).apply(this, arguments) | |
}; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.S2S = void 0; | |
var a = n(7385), | |
c = n(6997), | |
s = n(725), | |
u = n(997), | |
p = n(1930), | |
d = n(7668), | |
v = function(e) { | |
function t(n, r, o) { | |
var a = e.call(this, t.defaultOptions, i({}, n), r.defaultAttributes) || this; | |
return a.pageID = d.buildToken(), e.prototype.ensureTrackingConsent.call(a, (function() { | |
a.initialize(o) | |
}), o), a | |
} | |
return o(t, e), t.prototype.isEssential = function() { | |
return !1 | |
}, t.prototype.identify = function(e) { | |
throw new Error("identify is not supported") | |
}, t.prototype.page = function(e) { | |
var t = { | |
schemaId: p.s2sMiddlewareEventSchemaId, | |
payload: this.eventWithMetadata({ | |
event_id: e.eventId, | |
event_name: "Page View" | |
}, e.s2sMetadata) | |
}; | |
u.produce([t]) | |
}, t.prototype.track = function(e) {}, t.prototype.viewedProduct = function(e) { | |
var t = i(i({}, e.properties), { | |
quantity: 1 | |
}), | |
n = { | |
schemaId: p.s2sMiddlewareEventSchemaId, | |
payload: this.eventWithMetadata({ | |
event_id: e.eventId, | |
event_name: "Viewed Product", | |
products: this.formatProductJSON([t]), | |
total_value: this.formatRevenue(t.price), | |
currency: this.getCurrency(t.currency) | |
}, e.s2sMetadata) | |
}; | |
u.produce([n]) | |
}, t.prototype.addedProduct = function(e) { | |
var t = e.properties, | |
n = { | |
schemaId: p.s2sMiddlewareEventSchemaId, | |
payload: this.eventWithMetadata({ | |
event_id: e.eventId, | |
event_name: "Added Product", | |
products: this.formatProductJSON([t]), | |
total_value: this.formatRevenue(t.price), | |
currency: this.getCurrency(t.currency) | |
}, e.s2sMetadata) | |
}; | |
u.produce([n]) | |
}, t.prototype.addedPayment = function(e) { | |
var t = e.properties, | |
n = { | |
schemaId: p.s2sMiddlewareEventSchemaId, | |
payload: this.eventWithMetadata({ | |
event_id: e.eventId, | |
event_name: "Added Payment", | |
total_value: this.formatRevenue(t.total), | |
currency: this.getCurrency(t.currency) | |
}, e.s2sMetadata) | |
}; | |
u.produce([n]) | |
}, t.prototype.performedSearch = function(e) { | |
var t = e.properties, | |
n = { | |
schemaId: p.s2sMiddlewareEventSchemaId, | |
payload: this.eventWithMetadata({ | |
event_id: e.eventId, | |
event_name: "Performed Search", | |
search_string: this.getSearchString(t.query) | |
}, e.s2sMetadata) | |
}; | |
u.produce([n]) | |
}, t.prototype.startedOrder = function(e) { | |
var t = e.properties, | |
n = { | |
schemaId: p.s2sMiddlewareEventSchemaId, | |
payload: this.eventWithMetadata({ | |
event_id: e.eventId, | |
event_name: "Started Order", | |
products: this.formatProductJSON(t.products), | |
total_value: this.formatRevenue(t.total), | |
currency: this.getCurrency(t.currency) | |
}, e.s2sMetadata) | |
}; | |
u.produce([n]) | |
}, t.prototype.completedOrder = function(e) { | |
var t = e.properties, | |
n = { | |
schemaId: p.s2sMiddlewareEventSchemaId, | |
payload: this.eventWithMetadata({ | |
event_id: e.eventId, | |
event_name: "Completed Order", | |
first_name: t.customerEventData.customer.firstName, | |
last_name: t.customerEventData.customer.lastName, | |
email: t.customerEventData.customer.emailAddress, | |
phone: t.customerEventData.customer.phoneNumber, | |
products: this.formatProductJSON(t.products), | |
total_value: this.formatRevenue(t.total), | |
currency: this.getCurrency(t.currency), | |
billing_address_city: t.customerEventData.address.city, | |
billing_address_region: t.customerEventData.address.province, | |
billing_address_country: t.customerEventData.address.country, | |
billing_address_zipcode: t.customerEventData.address.zip | |
}, e.s2sMetadata) | |
}; | |
u.produce([n]) | |
}, t.prototype.formatProductJSON = function(e) { | |
var t = this, | |
n = []; | |
return e.forEach((function(e) { | |
n.push(JSON.stringify({ | |
variant_id: t.formatNumericID(e.variantId), | |
product_id: t.formatNumericID(e.productId), | |
product_gid: e.productGid, | |
name: e.name, | |
price: t.formatRevenue(e.price), | |
sku: e.sku, | |
brand: e.brand, | |
variant: e.variant, | |
category: e.category, | |
quantity: Number(e.quantity || 0) | |
})) | |
})), n | |
}, t.prototype.eventWithMetadata = function(e, t) { | |
var n; | |
return i(i({}, e), { | |
shop_id: this.shopId, | |
facebook_pixel_id: this.getFacebookPixelId(), | |
facebook_capi_enabled: this.isCapiEnabled(), | |
event_time: Date.now(), | |
event_source_url: s.href(), | |
unique_token: this.uniqueToken, | |
page_id: this.pageID, | |
source: this.getSource(), | |
ccpa_enforced: c.isCCPAEnforced(), | |
gdpr_enforced: c.isGDPREnforced(), | |
s2s_event_id: null == t ? void 0 : t.s2sEventId, | |
expect_s2s_event_id: null == t ? void 0 : t.expectS2SEventId, | |
expect_s2s_emit: null == t ? void 0 : t.expectS2SEventEmit, | |
s2s_event_id_source: null == t ? void 0 : t.s2sEventIdSource, | |
navigation_type: null == t ? void 0 : t.navigationType, | |
navigation_api: null == t ? void 0 : t.navigationApi, | |
user_agent: null === (n = null === window || void 0 === window ? void 0 : window.navigator) || void 0 === n ? void 0 : n.userAgent | |
}) | |
}, t.prototype.getFacebookPixelId = function() { | |
return this.options.facebookAppPixelId | |
}, t.prototype.isCapiEnabled = function() { | |
return this.options.facebookCapiEnabled | |
}, t.prototype.getSource = function() { | |
return this.options.source | |
}, t.prototype.initialize = function(e) { | |
e() | |
}, t.prototype.getSearchString = function(e) { | |
return e || "" | |
}, t.prototype.formatRevenue = function(e) { | |
return Number(e || 0) | |
}, t.prototype.formatNumericID = function(e) { | |
return null == e || "" === e ? null : Number(e) | |
}, t.prototype.getCurrency = function(e) { | |
return e || "USD" | |
}, t.prototype.getIntegrationId = function() { | |
return "S2S" | |
}, t.prototype.getEcommerceMetricsTag = function() { | |
return "S2S" | |
}, t.prototype.getEcommercePixelIds = function() { | |
var e = this.getFacebookPixelId(); | |
return e ? [e] : [] | |
}, t.defaultOptions = { | |
facebookAppPixelId: "", | |
facebookCapiEnabled: !1, | |
agent: "shopify", | |
source: "trekkie-unknown" | |
}, t | |
}(a.EcommerceIntegration); | |
t.S2S = v | |
}, | |
2724: function(e, t, n) { | |
var r, o = this && this.__extends || (r = function(e, t) { | |
return (r = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(e, t) { | |
e.__proto__ = t | |
} || function(e, t) { | |
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]) | |
})(e, t) | |
}, function(e, t) { | |
function n() { | |
this.constructor = e | |
} | |
r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) | |
}); | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.CampaignManager = t.TimestampManager = t.SessionAttribution = t.orderCompletionEventKey = t.sessionAttributionTimestampKey = t.sessionAttributionParamsKey = t.sessionAttributionMonorailSchema = t.sessionAttributionEventKey = void 0; | |
var i = n(6997), | |
a = n(7668), | |
c = n(372), | |
s = n(725), | |
u = n(1503); | |
t.sessionAttributionEventKey = "session-attribution", t.sessionAttributionMonorailSchema = "trekkie_session_attribution/1.2", t.sessionAttributionParamsKey = "_shopify_sa_p", t.sessionAttributionTimestampKey = "_shopify_sa_t", t.orderCompletionEventKey = "Completed Order"; | |
var p = function(e) { | |
function n(t, n, r) { | |
var o = e.call(this, {}, t) || this; | |
return o.trekkie = n, o.timestampManager = new d, o.campaignManager = new v, setTimeout((function() { | |
o.attributeSession() | |
}), 0), r(), o | |
} | |
return o(n, e), n.prototype.isEssential = function() { | |
return !0 | |
}, n.prototype.identify = function(e) {}, n.prototype.page = function(e) {}, n.prototype.track = function(e) { | |
var n = this; | |
e.event === t.sessionAttributionEventKey ? setTimeout((function() { | |
n.trekkie.emit(t.sessionAttributionEventKey, e, t.sessionAttributionMonorailSchema) | |
}), 0) : e.event === t.orderCompletionEventKey && (i.clear(t.sessionAttributionTimestampKey), i.clear(t.sessionAttributionParamsKey)) | |
}, n.prototype.attributeSession = function() { | |
var e = new Date, | |
n = s.search(), | |
r = this.campaignManager.constructCanonicalUtmString(n); | |
if (this.timestampManager.isValid(e) && this.campaignManager.isValid(r)); | |
else { | |
var o = ""; | |
try { | |
o = e.toJSON() | |
} catch (e) {} | |
this.track({ | |
event: t.sessionAttributionEventKey, | |
properties: { | |
sa_url: s.href(), | |
sa_referrer: u.virtualDocument().referrer(), | |
sa_utm_string: r, | |
sa_token: a.buildToken(), | |
over_30_minutes: !this.timestampManager.isWithin30MinuteCutOff(e), | |
cross_utc_midnight: this.timestampManager.isWithin30MinuteCutOff(e) && !this.timestampManager.isSameDayAs(e), | |
new_campaign: !this.campaignManager.isValid(r), | |
prev_campaign_params: this.campaignManager.fetch(), | |
last_extended: this.timestampManager.fetch(), | |
local_now: o | |
}, | |
eventId: a.buildToken() | |
}) | |
} | |
this.timestampManager.extend(e.toJSON()), this.campaignManager.extend(r) | |
}, n | |
}(c.Integration); | |
t.SessionAttribution = p; | |
var d = function() { | |
function e() {} | |
return e.prototype.fetch = function() { | |
return i.read(t.sessionAttributionTimestampKey) | |
}, e.prototype.extend = function(e) { | |
i.cleanupMyShopifyDotComCookie(t.sessionAttributionTimestampKey), i.write(t.sessionAttributionTimestampKey, e, !1) | |
}, e.prototype.isValid = function(e) { | |
return this.isWithin30MinuteCutOff(e) && this.isSameDayAs(e) | |
}, e.prototype.isWithin30MinuteCutOff = function(e) { | |
return this.testStoredTimestamp((function(e, t) { | |
return t.getTime() - e.getTime() <= 18e5 | |
}), e) | |
}, e.prototype.isSameDayAs = function(e) { | |
return this.testStoredTimestamp((function(e, t) { | |
return e.getUTCDate() === t.getUTCDate() | |
}), e) | |
}, e.prototype.testStoredTimestamp = function(e, t) { | |
var n = this.fetch(); | |
if (!n) return !1; | |
try { | |
return e(new Date(n), t) | |
} catch (e) { | |
return !1 | |
} | |
}, e | |
}(); | |
t.TimestampManager = d; | |
var v = function() { | |
function e() {} | |
return e.prototype.fetch = function() { | |
return i.read(t.sessionAttributionParamsKey) | |
}, e.prototype.extend = function(e) { | |
"" === e && (e = this.fetch() || ""), i.cleanupMyShopifyDotComCookie(t.sessionAttributionParamsKey), i.write(t.sessionAttributionParamsKey, e, !1) | |
}, e.prototype.isValid = function(e) { | |
return "" === e || this.fetch() === e | |
}, e.prototype.constructCanonicalUtmString = function(t) { | |
if ("" === t || null == t || "?" === t) return ""; | |
t = "?" === t[0] ? t.slice(1) : t; | |
for (var n = {}, r = 0, o = t.split("&"); r < o.length; r++) { | |
var i = o[r].split("="); | |
if (!(i.length < 2)) { | |
var a = this.decodeReplacingPlus(i[0]), | |
c = this.decodeReplacingPlus(i[1]); | |
c && a && (n[a] = c) | |
} | |
} | |
return e.acceptedQueryStringParams.filter((function(e) { | |
return n[e] | |
})).map((function(e) { | |
return encodeURIComponent(e) + "=" + encodeURIComponent(n[e]) | |
})).join("&") | |
}, e.prototype.decodeReplacingPlus = function(e) { | |
return decodeURIComponent(e.replace(/\+/g, " ")) | |
}, e.acceptedQueryStringParams = ["utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "ref", "gclid", "fbclid", "shpxid"], e | |
}(); | |
t.CampaignManager = v | |
}, | |
6971: function(e, t, n) { | |
var r, o = this && this.__extends || (r = function(e, t) { | |
return (r = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(e, t) { | |
e.__proto__ = t | |
} || function(e, t) { | |
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]) | |
})(e, t) | |
}, function(e, t) { | |
function n() { | |
this.constructor = e | |
} | |
r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) | |
}), | |
i = this && this.__assign || function() { | |
return (i = Object.assign || function(e) { | |
for (var t, n = 1, r = arguments.length; n < r; n++) | |
for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); | |
return e | |
}).apply(this, arguments) | |
}; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.Snap = void 0; | |
var a = n(7385), | |
c = n(1503), | |
s = n(1102), | |
u = function(e) { | |
function t(n, r, o) { | |
var i = e.call(this, t.defaultOptions, n, r.defaultAttributes) || this; | |
return e.prototype.ensureTrackingConsent.call(i, (function() { | |
i.initialize(o) | |
}), o), i | |
} | |
return o(t, e), t.prototype.isEssential = function() { | |
return !1 | |
}, t.prototype.identify = function(e) { | |
throw new Error("identify is not supported") | |
}, t.prototype.page = function(e) { | |
this.emitEvent("PAGE_VIEW", null == e ? void 0 : e.eventId, a.ANALYTICS_PAGE_VIEW, { | |
integration: "shopify-native" | |
}) | |
}, t.prototype.track = function(e) { | |
var t = {}; | |
for (var n in e.properties) "revenue" === n ? t.price = this.formatRevenue(e.properties.revenue) : t[n] = e.properties[n] | |
}, t.prototype.viewedProductCategory = function(e) {}, t.prototype.viewedProductVariant = function(e) {}, t.prototype.viewedProduct = function(e) { | |
var t = e.properties, | |
n = { | |
item_ids: this.getProductVariantId(t), | |
item_type: this.getProductContentType(t), | |
description: t.name || "", | |
item_category: this.getProductContentIds(t), | |
currency: this.getCurrency(t.currency), | |
price: this.formatRevenue(t.price), | |
integration: "shopify-native" | |
}; | |
this.emitEvent("VIEW_CONTENT", e.eventId, a.ANALYTICS_VIEWED_PRODUCT, n) | |
}, t.prototype.addedProduct = function(e) { | |
var t = e.properties, | |
n = { | |
item_ids: this.getProductVariantId(t), | |
item_type: this.getProductContentType(t), | |
description: t.name || "", | |
item_category: this.getProductContentIds(t), | |
currency: this.getCurrency(t.currency), | |
price: this.formatRevenue(t.price), | |
number_items: this.getProductNumItems(t), | |
integration: "shopify-native" | |
}; | |
this.emitEvent("ADD_CART", e.eventId, a.ANALYTICS_ADDED_PRODUCT, n) | |
}, t.prototype.addedPayment = function(e) { | |
var t = e.properties, | |
n = { | |
currency: this.getCurrency(t.currency), | |
price: this.formatRevenue(t.total), | |
integration: "shopify-native" | |
}; | |
this.emitEvent("ADD_BILLING", e.eventId, a.ANALYTICS_ADDED_PAYMENT, n) | |
}, t.prototype.performedSearch = function(e) { | |
var t = { | |
search_string: e.properties.query || "", | |
integration: "shopify-native" | |
}; | |
this.emitEvent("SEARCH", e.eventId, a.ANALYTICS_PERFORMED_SEARCH, t) | |
}, t.prototype.startedOrder = function(e) { | |
var t = e.properties, | |
n = { | |
item_ids: this.getOrderContentIds(t), | |
item_type: this.getOrderContentType(t), | |
currency: this.getCurrency(t.currency), | |
price: this.formatRevenue(t.revenue), | |
number_items: this.getOrderNumItems(t), | |
integration: "shopify-native" | |
}; | |
this.emitEvent("START_CHECKOUT", e.eventId, a.ANALYTICS_STARTED_ORDER, n) | |
}, t.prototype.completedOrder = function(e) { | |
var t = e.properties, | |
n = s.objectAssignFilterUndefined({ | |
item_ids: this.getOrderContentIds(t), | |
item_type: this.getOrderContentType(t), | |
currency: this.getCurrency(t.currency), | |
description: t.orderName || "", | |
price: this.formatRevenue(t.revenue), | |
number_items: this.getOrderNumItems(t), | |
integration: "shopify-native" | |
}, { | |
transaction_id: t.orderId | |
}); | |
this.emitEvent("PURCHASE", e.eventId, a.ANALYTICS_COMPLETED_ORDER, n) | |
}, t.prototype.initialize = function(e) { | |
this.loadSnapScript(); | |
var t = this.options; | |
window.snaptr("init", t.pixelId), e() | |
}, t.prototype.loadSnapScript = function() { | |
if (!window.snaptr || "function" != typeof window.snaptr) { | |
window.snaptr = function() { | |
window.snaptr.handleRequest ? window.snaptr.handleRequest.apply(window.snaptr, arguments) : window.snaptr.queue.push(arguments) | |
}, window.snaptr.queue = [], window.snaptr.push = window.snaptr, window.snaptr.loaded = !0; | |
var e = c.virtualDocument().createElement("script"); | |
e.async = !0, e.src = "https://sc-static.net/scevent.min.js"; | |
var t = c.virtualDocument().getElementsByTagName("script")[0]; | |
void 0 === t ? document.head.appendChild(e) : t.parentNode.insertBefore(e, t) | |
} | |
}, t.prototype.emitEvent = function(e, t, n, r) { | |
window.snaptr("track", e, i({ | |
integration: "shopify-native" | |
}, r)), this.addMonorailBatchEvent(s.objectAssignFilterUndefined({ | |
eventName: n | |
}, { | |
eventId: t, | |
eventProperties: r ? JSON.stringify(r) : void 0 | |
})) | |
}, t.prototype.formatRevenue = function(e) { | |
return Number(e || 0).toFixed(2) | |
}, t.prototype.getCurrency = function(e) { | |
return e || "USD" | |
}, t.prototype.getProductContentIds = function(e) { | |
var t = e.productId || e.variantId || e.sku; | |
return t ? [t] : [] | |
}, t.prototype.getProductVariantId = function(e) { | |
return e.variantId || e.sku || "" | |
}, t.prototype.getProductContentType = function(e) { | |
return e.productId ? "product_group" : "product" | |
}, t.prototype.getProductNumItems = function(e) { | |
return e.quantity || this.getProductContentIds(e).length | |
}, t.prototype.getProductKey = function(e) { | |
return e.productId || e.variantId || e.sku | |
}, t.prototype.getOrderContentIds = function(e) { | |
for (var t = [], n = 0, r = e.products || []; n < r.length; n++) { | |
var o = r[n], | |
i = this.getProductVariantId(o); | |
i && -1 === t.indexOf(i) && t.push(i) | |
} | |
return t | |
}, t.prototype.getOrderContentType = function(e) { | |
for (var t = 0, n = e.products || []; t < n.length; t++) | |
if (n[t].productId) return "product_group"; | |
return "product" | |
}, t.prototype.getOrderNumItems = function(e) { | |
for (var t = 0, n = 0, r = e.products || []; n < r.length; n++) { | |
var o = r[n]; | |
this.getProductKey(o) && (t += o.quantity || 1) | |
} | |
return t | |
}, t.prototype.getEcommerceMetricsTag = function() { | |
return "snap" | |
}, t.prototype.getIntegrationId = function() { | |
return "Snap" | |
}, t.prototype.getEcommercePixelIds = function() { | |
return [this.options.pixelId] | |
}, t.defaultOptions = { | |
pixelId: "" | |
}, t | |
}(a.EcommerceIntegration); | |
t.Snap = u | |
}, | |
342: function(e, t, n) { | |
var r, o = this && this.__extends || (r = function(e, t) { | |
return (r = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(e, t) { | |
e.__proto__ = t | |
} || function(e, t) { | |
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]) | |
})(e, t) | |
}, function(e, t) { | |
function n() { | |
this.constructor = e | |
} | |
r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) | |
}); | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.TikTok = void 0; | |
var i = n(7385), | |
a = n(1503), | |
c = function(e) { | |
function t(n, r, o) { | |
var i = e.call(this, t.defaultOptions, n, r.defaultAttributes) || this; | |
return e.prototype.ensureTrackingConsent.call(i, (function() { | |
i.initialize(o) | |
}), o), i | |
} | |
return o(t, e), t.prototype.isEssential = function() { | |
return !1 | |
}, t.prototype.identify = function(e) { | |
throw new Error("identify is not supported") | |
}, t.prototype.page = function(e) { | |
var t = this.options; | |
window.ttq.instance(t.pixelId).track("Browse"), this.addMonorailBatchEvent({ | |
eventName: i.ANALYTICS_PAGE_VIEW | |
}) | |
}, t.prototype.track = function(e) {}, t.prototype.viewedProductCategory = function(e) {}, t.prototype.viewedProductVariant = function(e) {}, t.prototype.viewedProduct = function(e) { | |
var t = e.properties, | |
n = { | |
content_id: this.getProductKey(t), | |
content_type: this.getProductContentType(t), | |
content_name: t.name || "", | |
content_category: t.category || "", | |
currency: this.getCurrency(t.currency), | |
price: this.formatRevenue(t.price) | |
}, | |
r = this.options; | |
window.ttq.instance(r.pixelId).track("ViewContent", n), this.addMonorailBatchEvent({ | |
eventName: i.ANALYTICS_VIEWED_PRODUCT, | |
eventProperties: JSON.stringify(n) | |
}) | |
}, t.prototype.addedProduct = function(e) { | |
var t = e.properties, | |
n = { | |
content_id: this.getProductKey(t), | |
content_type: this.getProductContentType(t), | |
content_name: t.name || "", | |
content_category: t.category || "", | |
currency: this.getCurrency(t.currency), | |
price: this.formatRevenue(t.price), | |
quantity: this.getProductNumItems(t) | |
}, | |
r = this.options; | |
window.ttq.instance(r.pixelId).track("AddToCart", n), this.addMonorailBatchEvent({ | |
eventName: i.ANALYTICS_ADDED_PRODUCT, | |
eventProperties: JSON.stringify(n) | |
}) | |
}, t.prototype.addedPayment = function(e) { | |
var t = e.properties, | |
n = { | |
currency: this.getCurrency(t.currency), | |
value: this.formatRevenue(t.total) | |
}, | |
r = this.options; | |
window.ttq.instance(r.pixelId).track("AddBilling", n), this.addMonorailBatchEvent({ | |
eventName: i.ANALYTICS_ADDED_PAYMENT, | |
eventProperties: JSON.stringify(n) | |
}) | |
}, t.prototype.performedSearch = function(e) { | |
var t = { | |
query: e.properties.query || "" | |
}, | |
n = this.options; | |
window.ttq.instance(n.pixelId).track("Search", t), this.addMonorailBatchEvent({ | |
eventName: i.ANALYTICS_PERFORMED_SEARCH, | |
eventProperties: JSON.stringify(t) | |
}) | |
}, t.prototype.startedOrder = function(e) { | |
var t = e.properties, | |
n = { | |
contents: this.getOrderContents(t), | |
value: this.formatRevenue(t.revenue), | |
quantity: this.getOrderNumItems(t), | |
currency: this.getCurrency(t.currency) | |
}, | |
r = this.options; | |
window.ttq.instance(r.pixelId).track("StartCheckout", n), this.addMonorailBatchEvent({ | |
eventName: i.ANALYTICS_STARTED_ORDER, | |
eventProperties: JSON.stringify(n) | |
}) | |
}, t.prototype.completedOrder = function(e) { | |
var t = e.properties, | |
n = { | |
contents: this.getOrderContents(t), | |
value: this.formatRevenue(t.revenue), | |
quantity: this.getOrderNumItems(t), | |
currency: this.getCurrency(t.currency) | |
}, | |
r = this.options; | |
window.ttq.instance(r.pixelId).track("Purchase", n), this.addMonorailBatchEvent({ | |
eventName: i.ANALYTICS_COMPLETED_ORDER, | |
eventProperties: JSON.stringify(n) | |
}) | |
}, t.prototype.initialize = function(e) { | |
var t = this.options; | |
this.loadTikTokScript(t.pixelId), e() | |
}, t.prototype.loadTikTokScript = function(e) { | |
if (!window.ttq || !window.ttq.loaded) { | |
window.TiktokAnalyticsObject = "ttq"; | |
var t = window.ttq = window.ttq || []; | |
t.methods = ["page", "track", "identify", "instances", "debug", "on", "off", "once", "ready", "alias", "group"], t.setAndDefer = function(e, t) { | |
e[t] = function() { | |
e.push([t].concat(Array.prototype.slice.call(arguments, 0))) | |
} | |
}; | |
for (var n = 0; n < t.methods.length; n++) t.setAndDefer(t, t.methods[n]); | |
t.instance = function(e) { | |
for (var n = t._i[e] || [], r = 0; r < t.methods.length; r++) t.setAndDefer(n, t.methods[r]); | |
return n | |
}, t.load = function(e) { | |
var n = "https://analytics.tiktok.com/i18n/pixel/events.js"; | |
t._i = t._i || {}, t._i[e] = [], t._i[e]._u = n, t._t = t._t || {}, t._t[e] = Number(new Date), t._o = t._o || {}, t._partner = t._partner || "Shopify"; | |
var r = a.virtualDocument().createElement("script"); | |
r.type = "text/javascript", r.async = !0, r.src = n + "?sdkid=" + e + "&lib=ttq"; | |
var o = a.virtualDocument().getElementsByTagName("script")[0]; | |
void 0 === o ? document.head.appendChild(r) : o.parentNode.insertBefore(r, o), window.ttq.loaded = !0 | |
}, t.load(e), t.page() | |
} | |
}, t.prototype.formatRevenue = function(e) { | |
return Number(e || 0).toFixed(2) | |
}, t.prototype.getCurrency = function(e) { | |
return e || "USD" | |
}, t.prototype.getProductContentType = function(e) { | |
return e.productId ? "product_group" : "product" | |
}, t.prototype.getProductNumItems = function(e) { | |
return e.quantity || 1 | |
}, t.prototype.getProductKey = function(e) { | |
return e.productId || e.variantId || e.sku || "" | |
}, t.prototype.getOrderContents = function(e) { | |
for (var t = [], n = 0, r = e.products || []; n < r.length; n++) { | |
var o = r[n]; | |
t.push({ | |
content_id: this.getProductKey(o), | |
content_type: this.getProductContentType(o), | |
content_name: o.name || "", | |
content_category: o.category || "", | |
currency: this.getCurrency(o.currency), | |
price: this.formatRevenue(o.price), | |
quantity: this.getProductNumItems(o) | |
}) | |
} | |
return t | |
}, t.prototype.getOrderNumItems = function(e) { | |
for (var t = 0, n = 0, r = e.products || []; n < r.length; n++) { | |
var o = r[n]; | |
this.getProductKey(o) && (t += o.quantity || 1) | |
} | |
return t | |
}, t.prototype.getEcommerceMetricsTag = function() { | |
return "tiktok" | |
}, t.prototype.getEcommercePixelIds = function() { | |
return [this.options.pixelId] | |
}, t.prototype.getIntegrationId = function() { | |
return "TikTok" | |
}, t.defaultOptions = { | |
pixelId: "" | |
}, t | |
}(i.EcommerceIntegration); | |
t.TikTok = c | |
}, | |
8831: function(e, t, n) { | |
var r, o = this && this.__extends || (r = function(e, t) { | |
return (r = Object.setPrototypeOf || { | |
__proto__: [] | |
} | |
instanceof Array && function(e, t) { | |
e.__proto__ = t | |
} || function(e, t) { | |
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]) | |
})(e, t) | |
}, function(e, t) { | |
function n() { | |
this.constructor = e | |
} | |
r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) | |
}), | |
i = this && this.__assign || function() { | |
return (i = Object.assign || function(e) { | |
for (var t, n = 1, r = arguments.length; n < r; n++) | |
for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); | |
return e | |
}).apply(this, arguments) | |
}; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.Trekkie = void 0; | |
var a = n(372), | |
c = n(1930), | |
s = n(7668), | |
u = n(997), | |
p = n(2971), | |
d = n(2308), | |
v = n(6997), | |
l = function(e) { | |
function t(t, n) { | |
var r = e.call(this, {}, t) || this; | |
return r.init(t, n), r | |
} | |
return o(t, e), t.prototype.isEssential = function() { | |
return !0 | |
}, t.prototype.init = function(e, t) { | |
var n = "global"; | |
e.monorailRegion && (n = e.monorailRegion), e.development && (n = "staging"), u.setMonorailRegion(n), window.addEventListener("beforeunload", (function(e) { | |
u.flushBatchEvents() | |
})), e.bugsnagBetaEnabled && d.setBugsnagBetaEnabled(e.bugsnagBetaEnabled), e.defaultAttributes && p.setMetricsOptions(e.defaultAttributes.shopId); | |
var r = !1; | |
e.isServerSideCookieWritingEnabled && (r = e.isServerSideCookieWritingEnabled); | |
var o = new s.UniqueIdManager(r); | |
this.defaultAttributes = { | |
appName: e.appName, | |
uniqToken: o.longTerm(), | |
visitToken: o.shortTerm(), | |
microSessionId: s.buildToken(), | |
microSessionCount: 0, | |
isPersistentCookie: v.isPersistentCookie() | |
}, e.defaultAttributes && (this.defaultAttributes = i(i({}, e.defaultAttributes), this.defaultAttributes)), v.cleanupOverScopedCookies(), t() | |
}, t.prototype.identify = function(e) {}, t.prototype.page = function(e) { | |
var t = c.appNameToPageViewSchemaId[this.defaultAttributes.appName]; | |
this.emit("page", e, t) | |
}, t.prototype.track = function(e) { | |
var t = c.extractSchemaIdFromEventName(e.event); | |
this.emit("track", e, t) | |
}, t.prototype.emit = function(e, t, n) { | |
++this.defaultAttributes.microSessionCount, t = a.Integration.flatten(t); | |
var r = i(i({}, t), this.defaultAttributes); | |
r.eventType = e, n && u.produce([{ | |
schemaId: n, | |
payload: r | |
}]) | |
}, t | |
}(a.Integration); | |
t.Trekkie = l | |
}, | |
6997: function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.privacyAPISubMethods = t.TrackingRegulationLimitations = t.ConsentValuesV2 = t.CONSENT_COOKIE_NAME = t.resetCookieDomain = t.determineCookieDomain = t.cleanupOverScopedCookies = t.clear = t.write = t.isPersistentCookie = t.read = t.allowed = t.enabled = t.isGDPREnforced = t.isCCPAEnforced = t.privacyApiMethods = t.cleanupMyShopifyDotComCookie = t.cookieImpl = t.parseDocumentCookie = void 0; | |
var r, o, i, a, c = n(1503), | |
s = n(542), | |
u = n(725), | |
p = n(1102), | |
d = "_shopify_d", | |
v = new Date(0); | |
function l(e) { | |
for (var t = {}, n = 0, r = e.split(/ *; */); n < r.length; n++) { | |
var o = r[n].split("="); | |
try { | |
t[decodeURIComponent(o[0])] = decodeURIComponent(o[1] || "") | |
} catch (e) {} | |
} | |
return t | |
} | |
function f() { | |
if (void 0 === r) | |
if (h()) r = u.hostname(); | |
else { | |
for (var e = "", n = 0, o = u.hostname().split(".").reverse(); n < o.length; n++) { | |
var i = o[n]; | |
e = "" === e ? "." + i : "." + i + e; | |
var a = p.generateShopifyDValue(); | |
if (m(d, a, 0, e), c = d, s = a, v = void 0, (v = t.cookieImpl.read(c)) && v === s) return m(d, a, -1, e), void(r = e) | |
} | |
r = "" | |
} var c, s, v | |
} | |
function m(e, n, r, o, i) { | |
void 0 === i && (i = "Lax"); | |
var a = { | |
domain: o, | |
path: "/", | |
maxage: r, | |
samesite: i | |
}; | |
t.cookieImpl.write(e, n, a) | |
} | |
function h() { | |
return -1 !== u.hostname().indexOf("myshopify.com") | |
} | |
t.parseDocumentCookie = l, t.cookieImpl = { | |
parse: l, | |
read: function(e) { | |
if (t.cookieImpl.enabled()) return t.cookieImpl.parse(c.virtualDocument().cookie())[e] | |
}, | |
write: function(e, n, r) { | |
if (void 0 === r && (r = {}), t.cookieImpl.enabled() && t.cookieImpl.allowed() && (t.cookieImpl.hasConsent() || !t.cookieImpl.hasGdprBlockAllPreference())) { | |
var o = encodeURIComponent(e) + "=" + encodeURIComponent(n); | |
r.maxage && (r.maxage < 0 ? r.expires = v : r.expires = new Date((new Date).getTime() + r.maxage)), r.path && (o += "; path=" + r.path), r.domain && (o += "; domain=" + r.domain), r.expires && t.cookieImpl.hasConsent() && (o += "; expires=" + r.expires.toUTCString()), r.samesite ? o += "; SameSite=" + r.samesite : o += "; SameSite=Lax", r.secure && (o += "; secure"), c.virtualDocument().setCookie(o) | |
} | |
}, | |
enabled: function(e) { | |
if (void 0 === e && (e = !1), !e && void 0 !== o) return o; | |
try { | |
if (void 0 === c.virtualDocument().cookie()) return !1; | |
var t = "cookietest"; | |
c.virtualDocument().setCookie(t + "=1; SameSite=Lax"); | |
var n = -1 !== c.virtualDocument().cookie().indexOf(t + "="); | |
return c.virtualDocument().setCookie(t + "=1; expires=Thu, 01-Jan-1970 00:00:01 GMT; SameSite=Lax"), n && (o = n), n | |
} catch (e) { | |
return !1 | |
} | |
}, | |
allowed: function() { | |
var e = t.cookieImpl.read("_cookie_consent"); | |
if (e) try { | |
var n = JSON.parse(e); | |
if (n && "non_essential" === n.block) return !1 | |
} catch (e) { | |
return !0 | |
} | |
return !0 | |
}, | |
hasConsent: function() { | |
return t.privacyApiMethods.userCanBeTracked() | |
}, | |
hasGdprBlockAllPreference: function() { | |
return t.privacyApiMethods.getGdprBlockAllStatus() | |
}, | |
isPersistentCookie: function() { | |
var e = t.cookieImpl.read("_shopify_m"); | |
return void 0 === e || "persistent" === e | |
}, | |
readConsentCookie: function() { | |
try { | |
var e = t.cookieImpl.read("_tracking_consent"); | |
if (void 0 === e) return; | |
var n = JSON.parse(e); | |
if (function(e) { | |
var t = Object.keys(e), | |
n = ["lim", "v", "con", "reg"].slice().sort(); | |
return !(t.length === n.length && t.slice().sort().every((function(e, t) { | |
return e === n[t] | |
}))) | |
}(n)) return; | |
return n | |
} catch (e) { | |
return | |
} | |
} | |
}, t.cleanupMyShopifyDotComCookie = function(e) { | |
if (h()) { | |
var t = e + "=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:01 GMT; SameSite=Lax"; | |
c.virtualDocument().setCookie(t) | |
} | |
}, t.privacyApiMethods = { | |
userCanBeTracked: function() { | |
return t.privacyAPISubMethods.haveConsentToTrack() | |
}, | |
userCannotBeTracked: function() { | |
return !t.privacyApiMethods.userCanBeTracked() | |
}, | |
hasCustomerPrivacyAPI: function() { | |
return t.privacyAPISubMethods.hasConsentCookie() | |
}, | |
userDataCanBeSold: function() { | |
return t.privacyAPISubMethods.haveConsentToSellData() | |
}, | |
userDataCannotBeSold: function() { | |
return !t.privacyApiMethods.userDataCanBeSold() | |
}, | |
getRegulation: function() { | |
return t.privacyAPISubMethods.currentRegulation() | |
}, | |
getGdprBlockAllStatus: function() { | |
var e = t.cookieImpl.readConsentCookie(); | |
return void 0 !== e && e.lim.includes(a.GDPR_BLOCK_ALL) | |
} | |
}, t.isCCPAEnforced = function() { | |
return t.privacyApiMethods.getRegulation() === s.TrackingRegulations.CCPA && !0 === t.privacyApiMethods.userDataCannotBeSold() | |
}, t.isGDPREnforced = function() { | |
return t.privacyApiMethods.getRegulation() === s.TrackingRegulations.GDPR && !0 === t.privacyApiMethods.userCannotBeTracked() | |
}, t.enabled = function() { | |
return t.cookieImpl.enabled() | |
}, t.allowed = function() { | |
return t.cookieImpl.allowed() | |
}, t.read = function(e) { | |
return t.cookieImpl.read(e) | |
}, t.isPersistentCookie = function() { | |
return t.cookieImpl.isPersistentCookie() | |
}, t.write = function(e, t, n, o) { | |
void 0 === o && (o = "Lax"), f(), m(e, t, n ? 31104e6 : 18e5, r, o) | |
}, t.clear = function(e) { | |
f(), m(e, "", -1, r), m(e, "", -1, "") | |
}, t.cleanupOverScopedCookies = function() { | |
if (h()) | |
for (var e = 0, t = ["_s", "_shopify_s", "_shopify_sa_p", "_shopify_sa_t", "_shopify_y", "_y"]; e < t.length; e++) { | |
var n = t[e] + "=; domain=.myshopify.com; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:01 GMT; SameSite=Lax"; | |
c.virtualDocument().setCookie(n) | |
} | |
}, t.determineCookieDomain = f, t.resetCookieDomain = function() { | |
r = void 0 | |
}, t.CONSENT_COOKIE_NAME = "_tracking_consent", | |
function(e) { | |
e.NO_VALUE = "", e.ACCEPTED = "1", e.DECLINED = "0" | |
}(i = t.ConsentValuesV2 || (t.ConsentValuesV2 = {})), | |
function(e) { | |
e.GDPR_BLOCK_ALL = "GDPR_BLOCK_ALL", e.CCPA_BLOCK_ALL = "CCPA_BLOCK_ALL", e.GDPR = "GDPR", e.CCPA = "CCPA" | |
}(a = t.TrackingRegulationLimitations || (t.TrackingRegulationLimitations = {})), t.privacyAPISubMethods = { | |
hasConsentCookie: function() { | |
return void 0 !== t.cookieImpl.readConsentCookie() | |
}, | |
haveConsentToTrack: function() { | |
var e = t.cookieImpl.readConsentCookie(); | |
if (void 0 === e) return !0; | |
if (!e.lim.includes(a.GDPR) && !e.lim.includes(a.GDPR_BLOCK_ALL)) return !0; | |
var n = e.con.GDPR, | |
r = e.reg; | |
return n !== i.DECLINED && (n !== i.NO_VALUE || r !== s.TrackingRegulations.GDPR) | |
}, | |
haveConsentToSellData: function() { | |
var e = t.cookieImpl.readConsentCookie(); | |
if (void 0 === e) return !0; | |
if (e.lim.includes(a.CCPA_BLOCK_ALL)) return e.reg !== s.TrackingRegulations.CCPA; | |
var n = e.con.CCPA; | |
return !e.lim.includes(a.CCPA) || n !== i.DECLINED | |
}, | |
currentRegulation: function() { | |
var e = t.cookieImpl.readConsentCookie(); | |
return void 0 === e ? s.TrackingRegulations.NO_VALUE : e.reg | |
} | |
} | |
}, | |
725: function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.isShopifyDotCom = t.search = t.protocol = t.port = t.pathname = t.origin = t.setHref = t.href = t.hostname = t.host = t.hash = void 0; | |
var r = n(7e3); | |
function o() { | |
return r.virtualWindow().location().hostname | |
} | |
t.hash = function() { | |
return r.virtualWindow().location().hash | |
}, t.host = function() { | |
return r.virtualWindow().location().host | |
}, t.hostname = o, t.href = function() { | |
return r.virtualWindow().location().href | |
}, t.setHref = function(e) { | |
r.virtualWindow().location().href = e | |
}, t.origin = function() { | |
var e = r.virtualWindow().location(); | |
return e.origin ? e.origin : e.protocol + "//" + e.hostname + (e.port ? ":" + e.port : "") | |
}, t.pathname = function() { | |
return r.virtualWindow().location().pathname | |
}, t.port = function() { | |
return r.virtualWindow().location().port | |
}, t.protocol = function() { | |
return r.virtualWindow().location().protocol | |
}, t.search = function() { | |
return r.virtualWindow().location().search | |
}, t.isShopifyDotCom = function(e) { | |
return null !== (e = e || o()).match(/(^|\.)shopify\.com$/) | |
} | |
}, | |
2971: function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.emitError = t.sendToBugsnag = t.sendBugsnagXhr = t.shouldSendToBugsnag = t.emitMetric = t.setMetricsOptions = t.errorsSchemaId = t.metricsSchemaId = void 0; | |
var r, o = n(997), | |
i = n(2308); | |
t.metricsSchemaId = "trekkie_metrics/1.0", t.errorsSchemaId = "trekkie_errors/1.0", t.setMetricsOptions = function(e) { | |
r = e | |
}, t.emitMetric = function(e, n) { | |
try { | |
var a = { | |
metric_name: e, | |
metric_value: n | |
}; | |
r && (a.shop_id = r), o.produce([{ | |
schemaId: t.metricsSchemaId, | |
payload: a | |
}]) | |
} catch (e) { | |
i.internalError("emitMetric", e) | |
} | |
}, t.shouldSendToBugsnag = function() { | |
return 100 * Math.random() < 2.5 | |
}, t.sendBugsnagXhr = function(e, n, r, i, a, c, s) { | |
void 0 === s && (s = !0); | |
try { | |
var u = new XMLHttpRequest; | |
u.open("POST", "https://notify.bugsnag.com/", !0), u.setRequestHeader("Content-Type", "application/json"), u.setRequestHeader("Bugsnag-Api-Key", "acd98d4f5c3b14bef3d8703f0ae1d8e8"), u.setRequestHeader("Bugsnag-Payload-Version", "5"), u.send(JSON.stringify({ | |
payloadVersion: 5, | |
notifier: { | |
name: "Trekkie", | |
version: e, | |
url: "-" | |
}, | |
events: [{ | |
exceptions: [{ | |
errorClass: n, | |
stacktrace: [r], | |
type: "browserjs" | |
}], | |
context: i, | |
app: { | |
releaseStage: "production", | |
version: e, | |
id: "trekkie" | |
}, | |
metaData: { | |
app: { | |
s2sSource: a | |
}, | |
request: { | |
shopId: c, | |
shopUrl: window.location.href | |
}, | |
device: { | |
userAgent: window.navigator.userAgent | |
} | |
}, | |
unhandled: !1 | |
}] | |
})) | |
} catch (e) { | |
if (!s) return; | |
var p = { | |
error_name: "sendBugsnagXhr" | |
}; | |
c && (p.shop_id = c), p.metadata = e; | |
try { | |
o.produce([{ | |
schemaId: t.errorsSchemaId, | |
payload: p | |
}]) | |
} catch (e) {} | |
} | |
}, t.sendToBugsnag = function(e, t) { | |
var n; | |
if (void 0 === t && (t = !0), this.shouldSendToBugsnag()) { | |
var r = "233f5f4298c0f83a67f7f4eedb1be09d105029cf", | |
o = null, | |
i = null, | |
a = null; | |
if (e.appConfig) try { | |
var c = JSON.parse(e.appConfig); | |
c && (o = c.Trekkie.appName, i = null === (n = c.S2S) || void 0 === n ? void 0 : n.source, a = c.Trekkie.defaultAttributes.shopId) | |
} catch (e) {} | |
var s = null === e.context ? i : e.context, | |
u = { | |
file: o ? "trekkie." + o + "." + r + ".min.js" : "trekkie." + r + ".min.js", | |
lineNumber: "1", | |
columnNumber: "1", | |
method: e.context | |
}, | |
p = e.context; | |
if (e.stack) { | |
p = e.stack.split("\n")[0]; | |
var d = e.stack.match(/([0-9]+):([0-9]+)/); | |
if (d && d.length > 2 && (u.lineNumber = d[1], u.columnNumber = d[2], parseInt(u.lineNumber, 10) > 1e5)) return | |
} | |
this.sendBugsnagXhr(r, p, u, s, i, a, t) | |
} | |
}, t.emitError = function(e, n) { | |
var a = { | |
error_name: e | |
}; | |
r && (a.shop_id = r), n && (a.metadata = n); | |
try { | |
o.produce([{ | |
schemaId: t.errorsSchemaId, | |
payload: a | |
}]) | |
} catch (e) { | |
i.internalError("monorail.produce", e, { | |
context: "emitError", | |
sendToMonorail: !1 | |
}) | |
} | |
} | |
}, | |
997: function(e, t, n) { | |
var r = this && this.__spreadArrays || function() { | |
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length; | |
var r = Array(e), | |
o = 0; | |
for (t = 0; t < n; t++) | |
for (var i = arguments[t], a = 0, c = i.length; a < c; a++, o++) r[o] = i[a]; | |
return r | |
}; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.isSendBeaconAndBlobSupported = t.produce = t.flushBatchEvents = t.getBatchEvents = t.addBatchEvent = t.setMonorailRegion = t.batchEndpoints = void 0; | |
var o = n(2308); | |
t.batchEndpoints = { | |
global: { | |
url: "https://monorail-edge.shopifysvc.com/unstable/produce_batch" | |
}, | |
staging: { | |
url: "https://monorail-edge-staging.shopifycloud.com/unstable/produce_batch" | |
}, | |
canada: { | |
url: "https://monorail-edge-ca.shopifycloud.com/unstable/produce_batch" | |
} | |
}; | |
var i = t.batchEndpoints.global, | |
a = new Array; | |
function c(e, t) { | |
if (s()) try { | |
var n = new window.Blob([t], { | |
type: "text/plain" | |
}); | |
if (window.navigator.sendBeacon.bind(window.navigator)(e, n)) return !0 | |
} catch (e) {} | |
var r = new XMLHttpRequest; | |
try { | |
r.open("POST", e, !0), r.setRequestHeader("Content-Type", "text/plain"), r.send(t) | |
} catch (e) { | |
console.log(e), o.internalError("sendRequest", e, { | |
context: "xhr", | |
sendToMonorail: !1 | |
}) | |
} | |
return !1 | |
} | |
function s() { | |
return window && window.navigator && "function" == typeof window.navigator.sendBeacon && "function" == typeof window.Blob && !(-1 !== window.navigator.userAgent.lastIndexOf("iPhone; CPU iPhone OS 12_") || -1 !== window.navigator.userAgent.lastIndexOf("iPad; CPU OS 12_")) | |
} | |
t.setMonorailRegion = function(e) { | |
t.batchEndpoints.hasOwnProperty(e) && (i = t.batchEndpoints[e]) | |
}, t.addBatchEvent = function(e) { | |
var t = (new Date).getTime(), | |
n = { | |
schema_id: e.schemaId, | |
payload: e.payload, | |
metadata: { | |
event_created_at_ms: t | |
} | |
}; | |
a.push(n) | |
}, t.getBatchEvents = function() { | |
return a | |
}, t.flushBatchEvents = function() { | |
var e = r(a); | |
a.length = 0, | |
function(e) { | |
if (0 !== e.length) { | |
var t = { | |
event_sent_at_ms: (new Date).getTime() | |
}, | |
n = {}; | |
n.metadata = t, n.events = e, c(i.url, JSON.stringify(n)) | |
} | |
}(e) | |
}, t.produce = function(e) { | |
if (0 !== e.length) { | |
var t = (new Date).getTime(), | |
n = { | |
event_sent_at_ms: t | |
}, | |
r = {}; | |
r.metadata = n, r.events = []; | |
for (var o = 0, a = e; o < a.length; o++) { | |
var s = a[o]; | |
r.events.push({ | |
schema_id: s.schemaId, | |
payload: s.payload, | |
metadata: { | |
event_created_at_ms: t | |
} | |
}) | |
} | |
return c(i.url, JSON.stringify(r)) | |
} | |
}, t.isSendBeaconAndBlobSupported = s | |
}, | |
8336: function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.getNavigationTypeLegacy = t.getNavigationTypeExperimental = void 0; | |
var r = n(2971); | |
t.getNavigationTypeExperimental = function() { | |
try { | |
var e = (null === performance || void 0 === performance ? void 0 : performance.getEntriesByType) && (null === performance || void 0 === performance ? void 0 : performance.getEntriesByType("navigation")); | |
if (e && e[0]) { | |
var t = performance.getEntriesByType("navigation")[0].type; | |
return t && t.toString() | |
} | |
} catch (e) { | |
r.emitError("PerformanceNavigationTiming_Error", e) | |
} | |
}, t.getNavigationTypeLegacy = function() { | |
var e, t; | |
try { | |
if (PerformanceNavigation && null !== (null === (e = null === performance || void 0 === performance ? void 0 : performance.navigation) || void 0 === e ? void 0 : e.type) && void 0 !== (null === (t = null === performance || void 0 === performance ? void 0 : performance.navigation) || void 0 === t ? void 0 : t.type)) { | |
var n = performance.navigation.type; | |
switch (n) { | |
case PerformanceNavigation.TYPE_NAVIGATE: | |
return "navigate"; | |
case PerformanceNavigation.TYPE_RELOAD: | |
return "reload"; | |
case PerformanceNavigation.TYPE_BACK_FORWARD: | |
return "back_forward"; | |
default: | |
return "unknown: " + n | |
} | |
} | |
} catch (e) { | |
r.emitError("Performance.Navigation_Error", e) | |
} | |
} | |
}, | |
2308: function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.internalError = t.setGlobalSerializedAppConfig = t.requestImpl = t.setBugsnagBetaEnabled = void 0; | |
var r, o = n(725), | |
i = n(2971), | |
a = !1; | |
t.setBugsnagBetaEnabled = function(e) { | |
a = e | |
}, t.requestImpl = { | |
img: function(e) { | |
var t = new Image(1, 1); | |
return t.src = e, t.style.display = "none", t | |
}, | |
queryString: function(e) { | |
var t = []; | |
for (var n in e)("number" == typeof e[n] || e[n]) && ("object" == typeof e[n] && 0 === Object.keys(e[n]).length || t.push(encodeURIComponent(n) + "=" + encodeURIComponent(e[n]))); | |
if (function(e) { | |
for (var t = e.length; t > 0; --t) { | |
var n = Math.floor(Math.random() * t), | |
r = e[n]; | |
e[n] = e[t - 1], e[t - 1] = r | |
} | |
}(t), t.length > 1 && 0 === t[0].indexOf("event=")) { | |
var r = t[0]; | |
t[0] = t[1], t[1] = r | |
} | |
return t.join("&") | |
} | |
}, t.setGlobalSerializedAppConfig = function(e) { | |
r = e | |
}, t.internalError = function(e, n, c) { | |
var s = void 0 === c ? {} : c, | |
u = s.context, | |
p = s.sendToMonorail, | |
d = void 0 === p || p, | |
v = { | |
name: n.name, | |
line: n.lineNumber || n.line, | |
script: n.fileName || n.sourceURL || n.script, | |
stack: n.stackTrace || n.stack || n.description, | |
message: n.message, | |
url: o.href(), | |
context: void 0 !== u ? u : null, | |
appConfig: r || null | |
}; | |
d && i.emitError("internalError_" + e, t.requestImpl.queryString(v)), a && i.sendToBugsnag(v, d) | |
} | |
}, | |
5522: function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.iframe = t.script = void 0; | |
var r = n(1503); | |
function o(e, t) { | |
if (t.onLoad && e.addEventListener("load", t.onLoad, !1), t.className) { | |
if (/^\d/.test(t.className)) throw new Error("Invalid className: " + t.className + " starts with a digit"); | |
e.className = t.className | |
} | |
} | |
t.script = function(e) { | |
var t = r.virtualDocument().createElement("script"); | |
return t.src = e.src, t.async = !0, o(t, e), r.virtualDocument().body().appendChild(t), t | |
}, t.iframe = function(e) { | |
var t = r.virtualDocument().createElement("iframe"); | |
return t.src = e.src, t.style.display = "none", o(t, e), r.virtualDocument().body().appendChild(t), t | |
} | |
}, | |
7668: function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.hexTime = t.buildToken = t.UniqueIdManager = t.longTermKey = t.deprecatedLongTermKey = t.shortTermKey = t.deprecatedShortTermKey = void 0; | |
var r = n(7e3), | |
o = n(6997), | |
i = n(2971); | |
t.deprecatedShortTermKey = "_s", t.shortTermKey = "_shopify_s", t.deprecatedLongTermKey = "_y", t.longTermKey = "_shopify_y"; | |
var a = "xxxx-4xxx-xxxx-xxxxxxxxxxxx", | |
c = function() { | |
function e(e) { | |
this.isServerSideCookieWritingEnabled = e | |
} | |
return e.prototype.fetchOrSet = function(e, t, n, r) { | |
if (!o.enabled()) return "00000000-0000-0000-4000-000000000000"; | |
var a = o.read(n) || o.read(t), | |
c = !r; | |
a || (a = s(), c = !0, r && i.emitMetric("serverSideCookieNotSet_" + n, 1)), c && (o.write(t, a, e), o.write(n, a, e)); | |
var u = o.read(n) || o.read(t); | |
return void 0 === u ? "00000000-0000-0000-5000-000000000000" : u | |
}, e.prototype.shortTerm = function() { | |
return this.fetchOrSet(!1, t.deprecatedShortTermKey, t.shortTermKey, !1) | |
}, e.prototype.longTerm = function() { | |
return this.fetchOrSet(!0, t.deprecatedLongTermKey, t.longTermKey, this.isServerSideCookieWritingEnabled) | |
}, e | |
}(); | |
function s() { | |
var e = ""; | |
try { | |
var t = r.virtualWindow().crypto(), | |
n = new Uint16Array(31); | |
t.getRandomValues(n); | |
var o = 0; | |
e = a.replace(/[x]/g, (function(e) { | |
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; | |
var i = n[o] % 16, | |
a = "x" === e ? i : 3 & i | 8; | |
return o++, a.toString(16) | |
})).toUpperCase() | |
} catch (t) { | |
e = a.replace(/[x]/g, (function(e) { | |
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; | |
var r = 16 * Math.random() | 0, | |
o = "x" === e ? r : 3 & r | 8; | |
return o.toString(16) | |
})).toUpperCase() | |
} | |
return u() + "-" + e | |
} | |
function u() { | |
var e = 0, | |
t = 0; | |
try { | |
e = (new Date).getTime() >>> 0 | |
} catch (t) { | |
e = (new Date).getTime() >>> 0 | |
} | |
try { | |
t = performance.now() >>> 0 | |
} catch (e) { | |
t = 0 | |
} | |
var n = Math.abs(e + t).toString(16).toLowerCase(); | |
return "00000000".substr(0, 8 - n.length) + n | |
} | |
t.UniqueIdManager = c, t.buildToken = s, t.hexTime = u | |
}, | |
1102: function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.generateShopifyDValue = t.objectAssignFilterUndefined = void 0, t.objectAssignFilterUndefined = function(e, t) { | |
for (var n in t) void 0 !== t[n] && (e[n] = t[n]); | |
return e | |
}, t.generateShopifyDValue = function() { | |
return (new Date).toJSON() | |
} | |
}, | |
5316: function(e, t, n) { | |
var r = n(9426), | |
o = n(2308), | |
i = [], | |
a = n(8878); | |
i.push(["Facebook Pixel", a.FacebookPixel]); | |
var c = n(7575); | |
i.push(["Google Analytics", c.GoogleAnalytics]); | |
var s = n(8142); | |
i.push(["Pinterest Pixel", s.Pinterest]); | |
var u = n(6971); | |
i.push(["Snap Pixel", u.Snap]); | |
var p = n(342); | |
i.push(["TikTok Pixel", p.TikTok]); | |
var d = n(2724); | |
i.push(["Session Attribution", d.SessionAttribution]); | |
var v = n(5087); | |
i.push(["Google Gtag Pixel", v.GoogleGtag]); | |
var l = n(3653); | |
i.push(["S2S", l.S2S]); | |
try { | |
var f = window.trekkie.config; | |
if (f) { | |
o.setGlobalSerializedAppConfig(JSON.stringify(f)); | |
var m = window.trekkie, | |
h = window.trekkie = new r.Tricorder(i, f, (function() { | |
window.trekkie = h, window._visit = { | |
tag: function() {}, | |
multitrackToken: function() { | |
return h.trekkie.defaultAttributes.uniqToken | |
} | |
}, h.user = function() { | |
return { | |
traits: function() { | |
return { | |
uniqToken: h.trekkie.defaultAttributes.uniqToken | |
} | |
} | |
} | |
}, r.replayAnalyticsQueue(h, m) | |
})) | |
} | |
} catch (e) { | |
o.internalError("index_storefront", e) | |
} | |
}, | |
9426: function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.replayAnalyticsQueue = t.Tricorder = void 0; | |
var r = n(8831), | |
o = n(2308), | |
i = n(1503), | |
a = n(725), | |
c = n(997), | |
s = n(793), | |
u = n(6997), | |
p = n(2971), | |
d = n(7668), | |
v = n(1930), | |
l = n(8336), | |
f = /^https?:\/\//, | |
m = function() { | |
function e(e, t, n) { | |
var r, o, i = this; | |
this.integrations = [], this.eventNameToEventIdMapping = new Map, this.config = t, this.navigationInfo = this.getNavigationType(), p.emitMetric("navigation-" + (null === (r = this.navigationInfo) || void 0 === r ? void 0 : r.navigationApi) + "-" + (null === (o = this.navigationInfo) || void 0 === o ? void 0 : o.navigationType), 1), this.logAssetContext(t), this.hasLoadFeatureScript() && window.Shopify && window.Shopify.loadFeatures ? window.Shopify.loadFeatures([{ | |
name: "consent-tracking-api", | |
version: "0.1" | |
}], (function(r) { | |
if (r) throw new Error(r); | |
i.initialize(e, t, n) | |
})) : this.initialize(e, t, n) | |
} | |
return e.prototype.logAssetContext = function(e) { | |
var t, n, r, o; | |
c.addBatchEvent({ | |
schemaId: v.trekkieAssetContextSchemaId, | |
payload: { | |
build_id: "233f5f4298c0f83a67f7f4eedb1be09d105029cf", | |
page_url: window.location.href, | |
app_name: null === (t = e.Trekkie) || void 0 === t ? void 0 : t.appName, | |
shop_id: null === (r = null === (n = e.Trekkie) || void 0 === n ? void 0 : n.defaultAttributes) || void 0 === r ? void 0 : r.shopId, | |
monorail_region: (null === (o = e.Trekkie) || void 0 === o ? void 0 : o.monorailRegion) || "not_set" | |
} | |
}) | |
}, e.prototype.getNavigationType = function() { | |
try { | |
var e = "PerformanceNavigationTiming", | |
t = l.getNavigationTypeExperimental(); | |
return t || (t = l.getNavigationTypeLegacy(), e = "performance.navigation"), t ? { | |
navigationType: t, | |
navigationApi: e | |
} : { | |
navigationType: "unknown", | |
navigationApi: "unknown" | |
} | |
} catch (e) { | |
p.emitError("navigation_api_error", e) | |
} | |
return { | |
navigationType: "error", | |
navigationApi: "error" | |
} | |
}, e.prototype.hasLoadFeatureScript = function() { | |
var e = document.querySelectorAll('[data-source-attribution="shopify.loadfeatures"]'); | |
return Boolean(e.length) | |
}, e.prototype.initialize = function(e, t, n) { | |
var o = this; | |
this.trekkie = new r.Trekkie(t.Trekkie, (function() { | |
setTimeout((function() { | |
o.loadIntegrations(e, t, o.trekkie, n) | |
}), 0) | |
})), this.integrations[0] !== this.trekkie && this.integrations.unshift(this.trekkie), this.setupEventIdMapping() | |
}, e.prototype.setupEventIdMapping = function() { | |
var e; | |
try { | |
if (this.config.initialDocumentCookie) { | |
var t = u.parseDocumentCookie(this.config.initialDocumentCookie)._shopify_evids; | |
if ((null === (e = this.config.Trekkie) || void 0 === e ? void 0 : e.expectS2SEventId) && t) | |
if (window.ShopifyAnalytics && window.ShopifyAnalytics.meta && window.ShopifyAnalytics.meta.evids) | |
for (var n = 0, r = t.split(";"); n < r.length; n++) { | |
var o = r[n]; | |
try { | |
var i = o.split("="); | |
if (2 !== i.length) { | |
p.emitError("event_id_token_length", o); | |
continue | |
} | |
var a = i[0], | |
c = i[1]; | |
window.ShopifyAnalytics.meta.evids[a] ? this.eventNameToEventIdMapping.set(window.ShopifyAnalytics.meta.evids[a], c) : p.emitError("event_id_cookie_key_not_found") | |
} catch (e) { | |
p.emitError("event_id_token_parsing", e.toString()) | |
} | |
} else p.emitError("meta_evid_not_found") | |
} else p.emitError("initial_document_cookie_not_found"); | |
u.clear("_shopify_evids") | |
} catch (e) { | |
p.emitError("event_id_map_parsing", e.toString()) | |
} | |
}, e.prototype.getS2SEventId = function(e, t) { | |
var n, r, o, i, a, c, s; | |
void 0 === e && (e = void 0), void 0 === t && (t = void 0); | |
var u = { | |
expectS2SEventId: (null === (n = this.config.Trekkie) || void 0 === n ? void 0 : n.expectS2SEventId) || !1, | |
expectS2SEventEmit: (null === (r = this.config.Trekkie) || void 0 === r ? void 0 : r.expectS2SEventEmit) || !1, | |
s2sEventId: null, | |
s2sEventIdSource: null, | |
navigationApi: this.navigationInfo.navigationApi, | |
navigationType: this.navigationInfo.navigationType | |
}, | |
p = d.buildToken(); | |
return u.expectS2SEventId && (e && this.eventNameToEventIdMapping.has(e) ? (u.s2sEventId = this.eventNameToEventIdMapping.get(e), u.s2sEventIdSource = "cookie") : t ? (u.s2sEventId = t, u.s2sEventIdSource = "parameter") : "Added Product" !== e && ("trekkie-checkout-one" !== (null === (i = null === (o = this.config) || void 0 === o ? void 0 : o.S2S) || void 0 === i ? void 0 : i.source) || "Page View" !== e && "Added Payment" !== e) || (u.s2sEventId = p, u.s2sEventIdSource = "trekkie")), { | |
s2sMetadata: u, | |
eventId: (null === (a = this.config.Trekkie) || void 0 === a ? void 0 : a.useS2SEventId) && (null === (c = this.config.Trekkie) || void 0 === c ? void 0 : c.expectS2SEventId) && (null === (s = this.config.Trekkie) || void 0 === s ? void 0 : s.expectS2SEventEmit) ? u.s2sEventId : p | |
} | |
}, e.prototype.loadIntegrations = function(e, t, n, r) { | |
for (var i = this.waitFor(e.length, (function() { | |
try { | |
r(), c.flushBatchEvents() | |
} catch (e) { | |
o.internalError("readyCallback", e) | |
} | |
})), a = 0, s = e; a < s.length; a++) { | |
var u = s[a]; | |
try { | |
var p = t[u[0]]; | |
if (p && "object" == typeof p) { | |
var d = new(0, u[1])(p, n, i); | |
this.integrations.push(d) | |
} else i() | |
} catch (e) { | |
i(), o.internalError("loadIntegration", e) | |
} | |
} | |
}, e.prototype.identify = function(e, t, n) { | |
void 0 === e && (e = ""), void 0 === t && (t = {}); | |
var r = this.getS2SEventId(void 0, n); | |
e instanceof Object && (t = e, e = ""); | |
for (var i = 0, a = this.integrations; i < a.length; i++) { | |
var c = a[i]; | |
try { | |
c.identify({ | |
id: e, | |
properties: t, | |
eventId: r.eventId, | |
s2sMetadata: r.s2sMetadata | |
}) | |
} catch (e) { | |
o.internalError("identify", e) | |
} | |
} | |
}, e.prototype.canEmitEvent = function(e) { | |
return !u.privacyApiMethods.hasCustomerPrivacyAPI() || e.isEssential() || !e.isEssential() && u.privacyApiMethods.userCanBeTracked() | |
}, e.prototype.page = function(e, t, n) { | |
void 0 === e && (e = ""), void 0 === t && (t = {}); | |
var r = this.getS2SEventId("Page View", n); | |
e instanceof Object && (t = e, e = ""); | |
for (var i = this.generatePageObject(e, t, r.eventId, r.s2sMetadata), a = function(e) { | |
try { | |
if (c.canEmitEvent(e)) e.page(i); | |
else { | |
var t = function() { | |
e.page(i), document.removeEventListener(s.TrackingConsentEvents.TRACKING_ACCEPTED, t) | |
}; | |
document.addEventListener(s.TrackingConsentEvents.TRACKING_ACCEPTED, t) | |
} | |
} catch (e) { | |
o.internalError("page", e) | |
} | |
}, c = this, u = 0, p = this.integrations; u < p.length; u++) a(p[u]); | |
return r.eventId | |
}, e.prototype.track = function(e, t, n) { | |
void 0 === e && (e = ""), void 0 === t && (t = {}); | |
var r = this.getS2SEventId(e, n); | |
e instanceof Object && (t = e, e = ""); | |
for (var i = { | |
event: e, | |
properties: t, | |
eventId: r.eventId, | |
s2sMetadata: r.s2sMetadata | |
}, a = function(e) { | |
try { | |
if (c.canEmitEvent(e)) e.track(i); | |
else { | |
var t = function() { | |
e.track(i), document.removeEventListener(s.TrackingConsentEvents.TRACKING_ACCEPTED, t) | |
}; | |
document.addEventListener(s.TrackingConsentEvents.TRACKING_ACCEPTED, t) | |
} | |
} catch (e) { | |
o.internalError("track", e) | |
} | |
}, c = this, u = 0, p = this.integrations; u < p.length; u++) a(p[u]); | |
return r.eventId | |
}, e.prototype.ready = function(e) { | |
try { | |
e() | |
} catch (e) { | |
o.internalError("ready", e) | |
} | |
}, e.prototype.waitFor = function(e, t) { | |
return 0 === e ? (setTimeout(t, 0), function() {}) : function() { | |
0 == --e && setTimeout(t, 0) | |
} | |
}, e.prototype.generatePageObject = function(e, t, n, r) { | |
var o = a.href(), | |
c = o.indexOf("?"); | |
return c = (o = -1 === c ? "" : o.slice(c)).indexOf("#"), o = "?" === (o = -1 === c ? o : o.slice(0, c)) ? "" : o, { | |
name: e, | |
referrer: i.virtualDocument().referrer(), | |
path: a.pathname(), | |
search: o, | |
title: i.virtualDocument().title(), | |
url: this.url(), | |
properties: t, | |
eventId: n, | |
s2sMetadata: r | |
} | |
}, e.prototype.canonical = function() { | |
for (var e = i.virtualDocument().getElementsByTagName("link"), t = 0; t < e.length; t++) { | |
var n = e[t]; | |
if ("canonical" === n.getAttribute("rel")) { | |
var r = n.getAttribute("href"); | |
if (!f.test(r)) continue; | |
if (r.replace(f, "").length <= 5) continue; | |
return r | |
} | |
} | |
return "" | |
}, e.prototype.url = function() { | |
var e = this.canonical(); | |
if (e) return e.indexOf("?") > 0 ? e : e + a.search(); | |
var t = a.href(), | |
n = t.indexOf("#"); | |
return -1 === n ? t : t.slice(0, n) | |
}, e | |
}(); | |
t.Tricorder = m, t.replayAnalyticsQueue = function(e, t) { | |
for (var n = 0, r = t; n < r.length; n++) e[c = (a = r[n])[0]] === e.ready && e[c].apply(e, a.slice(1)); | |
for (var o = 0, i = t; o < i.length; o++) { | |
var a, c; | |
e[c = (a = i[o])[0]] && e[c] !== e.ready && e[c].apply(e, a.slice(1)) | |
} | |
} | |
}, | |
1503: function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.virtualDocument = void 0; | |
var n = new(function() { | |
function e() {} | |
return e.prototype.cookie = function() { | |
return document.cookie | |
}, e.prototype.setCookie = function(e) { | |
document.cookie = e | |
}, e.prototype.body = function() { | |
return document.body | |
}, e.prototype.referrer = function() { | |
return document.referrer | |
}, e.prototype.title = function() { | |
return document.title | |
}, e.prototype.createElement = function(e) { | |
return document.createElement(e) | |
}, e.prototype.dispatchEvent = function(e) { | |
return document.dispatchEvent(e) | |
}, e.prototype.querySelector = function(e) { | |
return document.querySelector(e) | |
}, e.prototype.querySelectorAll = function(e) { | |
return document.querySelectorAll(e) | |
}, e.prototype.documentElement = function() { | |
return document.documentElement | |
}, e.prototype.getElementsByTagName = function(e) { | |
return document.getElementsByTagName(e) | |
}, e.prototype.createCustomEvent = function(e, t) { | |
try { | |
return new CustomEvent(e, t) | |
} catch (r) { | |
var n = document.createEvent("CustomEvent"); | |
return n.initCustomEvent(e, t.bubbles, t.cancelable, t.detail), n | |
} | |
}, e | |
}()); | |
t.virtualDocument = function() { | |
return n | |
} | |
}, | |
7e3: function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.virtualWindow = void 0; | |
var n = new(function() { | |
function e(e) { | |
this.nativeWindow = e | |
} | |
return e.prototype.location = function() { | |
return this.nativeWindow.location | |
}, e.prototype.userAgent = function() { | |
return this.nativeWindow.navigator.userAgent | |
}, e.prototype.crypto = function() { | |
return this.nativeWindow.crypto || this.nativeWindow.msCrypto | |
}, e.prototype.top = function() { | |
return this.nativeWindow.top ? new e(this.nativeWindow.top) : void 0 | |
}, e.prototype.parent = function() { | |
return this.nativeWindow.parent ? new e(this.nativeWindow.parent) : void 0 | |
}, e.prototype.postMessage = function(e, t, n) { | |
this.nativeWindow.postMessage(e, t, n) | |
}, e.prototype.addEventListener = function(e, t, n) { | |
this.nativeWindow.addEventListener(e, t, n) | |
}, e.prototype.onload = function() { | |
throw new Error("Do not use window.onload due to compatibility reasons. Use addEventListener instead of window.onload") | |
}, e | |
}())(window); | |
t.virtualWindow = function() { | |
return n | |
} | |
} | |
}, | |
t = {}; | |
! function n(r) { | |
if (t[r]) return t[r].exports; | |
var o = t[r] = { | |
exports: {} | |
}; | |
return e[r].call(o.exports, o, o.exports, n), o.exports | |
}(5316) | |
}(); | |
//# sourceMappingURL=trekkie.storefront.min.js.map |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment