Created
November 8, 2017 06:32
Star
You must be signed in to star a gist
background.js
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 (e) { | |
function t(n) { | |
if (r[n]) return r[n].exports; | |
var o = r[n] = { | |
i: n, | |
l: !1, | |
exports: {} | |
}; | |
return e[n].call(o.exports, o, o.exports, t), o.l = !0, o.exports | |
} | |
var r = {}; | |
t.m = e, t.c = r, t.i = function (e) { | |
return e | |
}, t.d = function (e, r, n) { | |
t.o(e, r) || Object.defineProperty(e, r, { | |
configurable: !1, | |
enumerable: !0, | |
get: n | |
}) | |
}, t.n = function (e) { | |
var r = e && e.__esModule ? function () { | |
return e.default | |
} : function () { | |
return e | |
}; | |
return t.d(r, "a", r), r | |
}, t.o = function (e, t) { | |
return Object.prototype.hasOwnProperty.call(e, t) | |
}, t.p = "", t(t.s = 186) | |
}([function (e, t, r) { | |
"use strict"; | |
function n() { | |
return Object.keys(localStorage) | |
} | |
function o(e) { | |
return localStorage.getItem(e) | |
} | |
function s(e, t) { | |
localStorage.setItem(e, t) | |
} | |
function a(e) { | |
localStorage.removeItem(e) | |
} | |
function i(e) { | |
try { | |
var t = o(e); | |
return JSON.parse(t) | |
} catch (e) { | |
return console.error(e), null | |
} | |
} | |
function u(e, t) { | |
s(e, JSON.stringify(t)) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.getStorageKeys = n, t.getStorageItem = o, t.setStorageItem = s, t.removeStorageItem = a, t.decodeStorageItem = i, t.encodeStorageItem = u | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e, t, r) { | |
"function" == typeof t && void 0 === r && (r = t, t = {}), chrome.runtime.sendMessage({ | |
type: e, | |
data: t | |
}, r) | |
} | |
function o(e, t) { | |
chrome.tabs.query({}, function (r) { | |
r.forEach(function (r) { | |
chrome.tabs.sendMessage(r.id, { | |
type: e, | |
data: t | |
}) | |
}) | |
}) | |
} | |
function s(e, t, r) { | |
"function" == typeof t && void 0 === r && (r = t, t = {}), chrome.runtime.onMessage.addListener(function (n, o, s) { | |
if (n.type === e) return r(n.data, o, s), t.asyncResponse | |
}) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.sendBackgroundMessage = n, t.sendContentMessage = o, t.listenMessage = s | |
}, function (e, t, r) { | |
var n = r(55)("wks"), | |
o = r(39), | |
s = r(5).Symbol, | |
a = "function" == typeof s; | |
(e.exports = function (e) { | |
return n[e] || (n[e] = a && s[e] || (a ? s : o)("Symbol." + e)) | |
}).store = n | |
}, function (e, t, r) { | |
"use strict"; | |
t.__esModule = !0; | |
var n = r(68), | |
o = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(n); | |
t.default = function (e, t, r) { | |
return t in e ? (0, o.default)(e, t, { | |
value: r, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0 | |
}) : e[t] = r, e | |
} | |
}, function (e, t) { | |
var r = e.exports = { | |
version: "2.4.0" | |
}; | |
"number" == typeof __e && (__e = r) | |
}, function (e, t) { | |
var r = e.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); | |
"number" == typeof __g && (__g = r) | |
}, function (e, t, r) { | |
"use strict"; | |
t.__esModule = !0; | |
var n = r(130), | |
o = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(n); | |
t.default = o.default || function (e) { | |
for (var t = 1; t < arguments.length; t++) { | |
var r = arguments[t]; | |
for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]) | |
} | |
return e | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o() { | |
var e = chrome.app.getDetails(); | |
return { | |
locale: e.current_locale, | |
version: e.version | |
} | |
} | |
function s() { | |
return o().locale | |
} | |
function a(e) { | |
return "string" != typeof e ? null : e.split("_")[0] | |
} | |
function i() { | |
return o().version | |
} | |
function u() { | |
return (0, O.getStorageItem)("extVersion") || i() | |
} | |
function c() { | |
return (0, O.getStorageItem)("ptk") | |
} | |
function E(e) { | |
return chrome.extension.getURL(e) | |
} | |
function _() { | |
var e = a(s()); | |
return -1 !== ["ru", "en", "es", "fr", "pt"].indexOf(e) ? e : "uk" === e ? "ru" : "en" | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.getRegion = void 0; | |
var l = r(10), | |
f = n(l), | |
d = r(15), | |
S = n(d); | |
t.getRegion = function () { | |
var e = (0, S.default)(f.default.mark(function e() { | |
var t, r; | |
return f.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
return e.next = 2, (0, p.getCookie)("aliexpress.com", "aep_usuc_f"); | |
case 2: | |
if (t = e.sent) { | |
e.next = 5; | |
break | |
} | |
return e.abrupt("return", !1); | |
case 5: | |
return r = g.default.parse(t.value), e.abrupt("return", A.default.get(r, "region")); | |
case 7: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return function () { | |
return e.apply(this, arguments) | |
} | |
}(); | |
t.getExtensionDetails = o, t.getCurrentLocale = s, t.getShortenLocale = a, t.getCurrentVersion = i, t.getInstallVersion = u, t.getPtk = c, t.getUrl = E, t.getDefaultLanguage = _; | |
var T = r(63), | |
A = n(T), | |
m = r(64), | |
g = n(m), | |
p = r(101), | |
O = r(0) | |
}, function (e, t, r) { | |
var n = r(11), | |
o = r(70), | |
s = r(59), | |
a = Object.defineProperty; | |
t.f = r(12) ? Object.defineProperty : function (e, t, r) { | |
if (n(e), t = s(t, !0), n(r), o) try { | |
return a(e, t, r) | |
} catch (e) {} | |
if ("get" in r || "set" in r) throw TypeError("Accessors not supported!"); | |
return "value" in r && (e[t] = r.value), e | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o(e) { | |
return void 0 !== e[O] | |
} | |
function s(e) { | |
return void 0 !== e[I] | |
} | |
function a(e) { | |
return s(e) && Boolean(e[I].ok) | |
} | |
function i(e, t) { | |
var r = Object.assign({}, e, t); | |
return delete r[O], r | |
} | |
function u(e, t) { | |
return Object.assign({}, e, (0, E.default)({}, I, { | |
ok: t.ok, | |
status: t.status, | |
statusText: t.statusText, | |
url: t.url | |
})) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.API_RESPONSE = t.API_REQUEST = void 0; | |
var c = r(3), | |
E = n(c), | |
_ = r(10), | |
l = n(_), | |
f = r(27), | |
d = n(f), | |
S = r(134), | |
T = n(S); | |
t.isApiRequest = o, t.isApiResponse = s, t.isSuccessResponse = a; | |
var A = r(135), | |
m = n(A), | |
g = r(64), | |
p = n(g), | |
O = t.API_REQUEST = "API_REQUEST", | |
I = t.API_RESPONSE = "API_RESPONSE"; | |
t.default = function (e) { | |
return function (t) { | |
return function (r) { | |
if (!o(r)) return t(r); | |
var n = e.getState(), | |
s = n.extension.apiBaseUrl, | |
a = r[O], | |
c = a.url, | |
E = a.query, | |
_ = a.options; | |
if ("function" == typeof c && (c = c(n)), "string" != typeof c) throw new Error("Specify a string endpoint URL."); | |
"object" === (void 0 === E ? "undefined" : (0, T.default)(E)) && (c += (-1 === c.indexOf("?") ? "?" : "&") + p.default.stringify(E)); | |
var f = a.types; | |
if (!Array.isArray(f) || 3 !== f.length) throw new Error("Expected an array of three action types."); | |
if (!f.every(function (e) { | |
return "string" == typeof e | |
})) throw new Error("Expected action types to be strings."); | |
var S = (0, d.default)(f, 3), | |
A = S[0], | |
g = S[1], | |
I = S[2]; | |
return t(i(r, { | |
type: A | |
})), (0, m.default)(l.default.mark(function t() { | |
var n, o, a; | |
return l.default.wrap(function (t) { | |
for (;;) switch (t.prev = t.next) { | |
case 0: | |
return t.next = 2, fetch(s + c, _); | |
case 2: | |
return n = t.sent, o = i(r, { | |
type: n.ok ? g : I | |
}), t.prev = 4, t.next = 7, n.json(); | |
case 7: | |
a = t.sent, o = i(o, { | |
data: a | |
}), t.next = 13; | |
break; | |
case 11: | |
t.prev = 11, t.t0 = t.catch(4); | |
case 13: | |
o = u(o, n), e.dispatch(o); | |
case 15: | |
case "end": | |
return t.stop() | |
} | |
}, t, this, [[4, 11]]) | |
})).catch(function (t) { | |
e.dispatch(i(r, { | |
type: I, | |
error: t.message | |
})) | |
}) | |
} | |
} | |
} | |
}, function (e, t, r) { | |
e.exports = r(180) | |
}, function (e, t, r) { | |
var n = r(31); | |
e.exports = function (e) { | |
if (!n(e)) throw TypeError(e + " is not an object!"); | |
return e | |
} | |
}, function (e, t, r) { | |
e.exports = !r(30)(function () { | |
return 7 != Object.defineProperty({}, "a", { | |
get: function () { | |
return 7 | |
} | |
}).a | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return Object.assign({}, a, i)[e] | |
} | |
function o(e) { | |
(0, s.encodeStorageItem)("config", e), i = Object.assign({}, e) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.getConfigItem = n, t.saveConfig = o; | |
var s = r(0), | |
a = { | |
apiBaseUrl: "https://api.alitools.io", | |
aeSecretKey: "uR7uBY3Rz", | |
aeLanguageDomains: ["ru", "pt", "es", "fr", "de", "it", "nl", "tr", "ja", "ko", "th", "vi", "ar", "he", "pl"], | |
aeAllowedDomains: ["www", "group", "mall", "tmall", "brands", "techdiscovery", "sale", "bestselling", "brandzone", "flashdeals"], | |
aeServiceDomains: ["adservice", "login", "d", "sec", "shoppingcart", "trade", "portals", "s.click", "msg", "message", "thirdparty", "feedback", "passport", "gcx", "helppage"], | |
extlink: ["ae"], | |
extlinkTimeouts: { | |
default: [12e4, 3e5] | |
}, | |
limiter: !1, | |
limiterConfig: {}, | |
priceUpload: !0, | |
priceUploadUrl: "https://api.alitools.io/products/prices", | |
promotionApi: !0, | |
promotionApiUrl: "https://api.alitools.io/url" | |
}, | |
i = (0, s.decodeStorageItem)("config") | |
}, function (e, t, r) { | |
"use strict"; | |
function n() { | |
return null !== o() | |
} | |
function o() { | |
return (0, i.decodeStorageItem)("user") | |
} | |
function s(e) { | |
return (0, i.encodeStorageItem)("user", e) | |
} | |
function a() { | |
return (0, i.removeStorageItem)("user") | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.isLoggedIn = n, t.getUser = o, t.saveUser = s, t.clearUser = a; | |
var i = r(0) | |
}, function (e, t, r) { | |
"use strict"; | |
t.__esModule = !0; | |
var n = r(131), | |
o = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(n); | |
t.default = function (e) { | |
return function () { | |
var t = e.apply(this, arguments); | |
return new o.default(function (e, r) { | |
function n(s, a) { | |
try { | |
var i = t[s](a), | |
u = i.value | |
} catch (e) { | |
return void r(e) | |
} | |
if (!i.done) return o.default.resolve(u).then(function (e) { | |
n("next", e) | |
}, function (e) { | |
n("throw", e) | |
}); | |
e(u) | |
} | |
return n("next") | |
}) | |
} | |
} | |
}, function (e, t) { | |
var r = {}.hasOwnProperty; | |
e.exports = function (e, t) { | |
return r.call(e, t) | |
} | |
}, function (e, t, r) { | |
var n = r(8), | |
o = r(33); | |
e.exports = r(12) ? function (e, t, r) { | |
return n.f(e, t, o(1, r)) | |
} : function (e, t, r) { | |
return e[t] = r, e | |
} | |
}, function (e, t, r) { | |
var n = r(71), | |
o = r(50); | |
e.exports = function (e) { | |
return n(o(e)) | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e * i | |
} | |
function o(e) { | |
return e * u | |
} | |
function s(e) { | |
return e * c | |
} | |
function a(e) { | |
return e * E | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.seconds = n, t.minutes = o, t.hours = s, t.days = a; | |
var i = t.SECOND = 1e3, | |
u = t.MINUTE = 60 * i, | |
c = t.HOUR = 60 * u, | |
E = t.DAY = 34 * c | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
if (void 0 === e[c]) return !1; | |
if (!0 === e[c]) return !0; | |
if ((0, i.default)(e[c])) { | |
var t = e[c].types || []; | |
return e.type && -1 !== t.indexOf(e.type) | |
} | |
} | |
function o(e, t) { | |
var r = Object.assign({}, t); | |
delete r[c], (0, u.sendBackgroundMessage)("syncAction", r) | |
} | |
function s(e, t) { | |
e.dispatch(t) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.SYNC_ACTION = void 0; | |
var a = r(178), | |
i = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(a), | |
u = r(1), | |
c = t.SYNC_ACTION = Symbol("Sync action between tabs."); | |
t.default = function (e) { | |
return (0, u.listenMessage)("syncedAction", function (t) { | |
s(e, t) | |
}), | |
function (t) { | |
return function (r) { | |
n(r) ? o(e, r) : t(r) | |
} | |
} | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
t.READY_STATUS_DISABLED = 0, t.READY_STATUS_FETCHING = 1, t.READY_STATUS_SUCCESS = 2, t.READY_STATUS_FAILURE = -1 | |
}, function (e, t, r) { | |
var n = r(5), | |
o = r(4), | |
s = r(29), | |
a = r(17), | |
i = function (e, t, r) { | |
var u, c, E, _ = e & i.F, | |
l = e & i.G, | |
f = e & i.S, | |
d = e & i.P, | |
S = e & i.B, | |
T = e & i.W, | |
A = l ? o : o[t] || (o[t] = {}), | |
m = A.prototype, | |
g = l ? n : f ? n[t] : (n[t] || {}).prototype; | |
l && (r = t); | |
for (u in r)(c = !_ && g && void 0 !== g[u]) && u in A || (E = c ? g[u] : r[u], A[u] = l && "function" != typeof g[u] ? r[u] : S && c ? s(E, n) : T && g[u] == E ? function (e) { | |
var t = function (t, r, n) { | |
if (this instanceof e) { | |
switch (arguments.length) { | |
case 0: | |
return new e; | |
case 1: | |
return new e(t); | |
case 2: | |
return new e(t, r) | |
} | |
return new e(t, r, n) | |
} | |
return e.apply(this, arguments) | |
}; | |
return t.prototype = e.prototype, t | |
}(E) : d && "function" == typeof E ? s(Function.call, E) : E, d && ((A.virtual || (A.virtual = {}))[u] = E, e & i.R && m && !m[u] && a(m, u, E))) | |
}; | |
i.F = 1, i.G = 2, i.S = 4, i.P = 8, i.B = 16, i.W = 32, i.U = 64, i.R = 128, e.exports = i | |
}, function (e, t) { | |
e.exports = {} | |
}, function (e, t, r) { | |
"use strict"; | |
function n() { | |
var e = Array.prototype.slice.call(arguments); | |
void 0 === window.gaAT ? (0, o.sendBackgroundMessage)("sendAnalyticsEvent", e) : gaAT.apply(null, e) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.default = n; | |
var o = r(1) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
chrome.tabs.query({ | |
active: !0, | |
currentWindow: !0 | |
}, function (t) { | |
e(t.length ? t[0] : null) | |
}) | |
} | |
function o(e, t) { | |
chrome.tabs.create({ | |
url: e | |
}, t) | |
} | |
function s(e, t, r) { | |
chrome.tabs.update(e, { | |
url: t | |
}, function (e) { | |
e && r(e) | |
}) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.getCurrentTab = n, t.openNewTab = o, t.navigateTab = s | |
}, function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = r(113); | |
Object.keys(n).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return n[e] | |
} | |
}) | |
}); | |
var o = r(112); | |
Object.keys(o).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return o[e] | |
} | |
}) | |
}); | |
var s = r(114); | |
Object.keys(s).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return s[e] | |
} | |
}) | |
}); | |
var a = r(115); | |
Object.keys(a).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return a[e] | |
} | |
}) | |
}); | |
var i = r(116); | |
Object.keys(i).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return i[e] | |
} | |
}) | |
}); | |
var u = r(118); | |
Object.keys(u).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return u[e] | |
} | |
}) | |
}); | |
var c = r(117); | |
Object.keys(c).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return c[e] | |
} | |
}) | |
}); | |
var E = r(119); | |
Object.keys(E).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return E[e] | |
} | |
}) | |
}); | |
var _ = r(120); | |
Object.keys(_).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return _[e] | |
} | |
}) | |
}); | |
var l = r(121); | |
Object.keys(l).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return l[e] | |
} | |
}) | |
}); | |
var f = r(122); | |
Object.keys(f).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return f[e] | |
} | |
}) | |
}); | |
var d = r(123); | |
Object.keys(d).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return d[e] | |
} | |
}) | |
}); | |
var S = r(124); | |
Object.keys(S).forEach(function (e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function () { | |
return S[e] | |
} | |
}) | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
t.__esModule = !0; | |
var o = r(129), | |
s = n(o), | |
a = r(128), | |
i = n(a); | |
t.default = function () { | |
function e(e, t) { | |
var r = [], | |
n = !0, | |
o = !1, | |
s = void 0; | |
try { | |
for (var a, u = (0, i.default)(e); !(n = (a = u.next()).done) && (r.push(a.value), !t || r.length !== t); n = !0); | |
} catch (e) { | |
o = !0, s = e | |
} finally { | |
try { | |
!n && u.return && u.return() | |
} finally { | |
if (o) throw s | |
} | |
} | |
return r | |
} | |
return function (t, r) { | |
if (Array.isArray(t)) return t; | |
if ((0, s.default)(Object(t))) return e(t, r); | |
throw new TypeError("Invalid attempt to destructure non-iterable instance") | |
} | |
}() | |
}, function (e, t) { | |
var r = {}.toString; | |
e.exports = function (e) { | |
return r.call(e).slice(8, -1) | |
} | |
}, function (e, t, r) { | |
var n = r(48); | |
e.exports = function (e, t, r) { | |
if (n(e), void 0 === t) return e; | |
switch (r) { | |
case 1: | |
return function (r) { | |
return e.call(t, r) | |
}; | |
case 2: | |
return function (r, n) { | |
return e.call(t, r, n) | |
}; | |
case 3: | |
return function (r, n, o) { | |
return e.call(t, r, n, o) | |
} | |
} | |
return function () { | |
return e.apply(t, arguments) | |
} | |
} | |
}, function (e, t) { | |
e.exports = function (e) { | |
try { | |
return !!e() | |
} catch (e) { | |
return !0 | |
} | |
} | |
}, function (e, t) { | |
e.exports = function (e) { | |
return "object" == typeof e ? null !== e : "function" == typeof e | |
} | |
}, function (e, t, r) { | |
var n = r(78), | |
o = r(52); | |
e.exports = Object.keys || function (e) { | |
return n(e, o) | |
} | |
}, function (e, t) { | |
e.exports = function (e, t) { | |
return { | |
enumerable: !(1 & e), | |
configurable: !(2 & e), | |
writable: !(4 & e), | |
value: t | |
} | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
var n = r(165)(!0); | |
r(74)(String, "String", function (e) { | |
this._t = String(e), this._i = 0 | |
}, function () { | |
var e, t = this._t, | |
r = this._i; | |
return r >= t.length ? { | |
value: void 0, | |
done: !0 | |
} : (e = n(t, r), this._i += e.length, { | |
value: e, | |
done: !1 | |
}) | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n() { | |
var e = { | |
showPanelOnAllPages: !1, | |
showPageSellerCheck: (0, a.getInstallVersion)() < "3.0", | |
showNotifications: !0, | |
language: (0, a.getDefaultLanguage)(), | |
currency: "USD", | |
enablePushNotifications: !1, | |
enableEmailNotifications: !1, | |
theme: "default", | |
favoritesSortKey: "timeCreated", | |
videosSortKey: "viewsCount" | |
}; | |
return Object.assign({}, e, (0, i.decodeStorageItem)("settings")) | |
} | |
function o(e) { | |
return n()[e] | |
} | |
function s(e) { | |
var t = Object.assign({}, (0, i.decodeStorageItem)("settings"), e); | |
(0, i.encodeStorageItem)("settings", t) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.getSettings = n, t.getSettingsItem = o, t.updateSettings = s; | |
var a = r(7), | |
i = r(0) | |
}, function (e, t) { | |
e.exports = !0 | |
}, function (e, t) { | |
t.f = {}.propertyIsEnumerable | |
}, function (e, t, r) { | |
var n = r(8).f, | |
o = r(16), | |
s = r(2)("toStringTag"); | |
e.exports = function (e, t, r) { | |
e && !o(e = r ? e : e.prototype, s) && n(e, s, { | |
configurable: !0, | |
value: t | |
}) | |
} | |
}, function (e, t) { | |
var r = 0, | |
n = Math.random(); | |
e.exports = function (e) { | |
return "Symbol(".concat(void 0 === e ? "" : e, ")_", (++r + n).toString(36)) | |
} | |
}, function (e, t, r) { | |
r(170); | |
for (var n = r(5), o = r(17), s = r(23), a = r(2)("toStringTag"), i = ["NodeList", "DOMTokenList", "MediaList", "StyleSheetList", "CSSRuleList"], u = 0; u < 5; u++) { | |
var c = i[u], | |
E = n[c], | |
_ = E && E.prototype; | |
_ && !_[a] && o(_, a, c), s[c] = s.Array | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = r(10), | |
s = n(o), | |
a = r(6), | |
i = n(a), | |
u = r(15), | |
c = n(u), | |
E = r(13), | |
_ = r(7), | |
l = r(35), | |
f = r(14); | |
t.default = function () { | |
function e(e) { | |
return t.apply(this, arguments) | |
} | |
var t = (0, c.default)(s.default.mark(function e(t) { | |
var r, n, o, a, u, c, d, S, T, A, m = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; | |
return s.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
return r = (0, E.getConfigItem)("apiBaseUrl"), n = (0, _.getExtensionDetails)(), o = n.version, a = (0, l.getSettings)(), u = a.language, c = a.currency, d = (0, _.getPtk)(), S = { | |
"X-AliTools-Version": o, | |
"X-AliTools-Locale": u, | |
"X-AliTools-Currency": c, | |
"X-AliTools-PTK": d | |
}, e.next = 7, (0, _.getRegion)(); | |
case 7: | |
return T = e.sent, T && (S["X-AliTools-Region"] = T), A = (0, f.getUser)(), A && A.token && (S.Authorization = "Bearer " + A.token), e.abrupt("return", fetch(r + t, (0, i.default)({}, m, { | |
headers: (0, i.default)({ | |
Accept: "application/json", | |
"Content-Type": "application/json" | |
}, S, m.headers) | |
}))); | |
case 12: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return e | |
}() | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o() { | |
return _("count", 0) | |
} | |
function s(e) { | |
l({ | |
count: e | |
}) | |
} | |
function a() { | |
return _("timeFavoritesViewed", Date.now()) | |
} | |
function i() { | |
l({ | |
timeFavoritesViewed: Date.now() | |
}) | |
} | |
function u() { | |
return _("timePushViewed", Date.now()) | |
} | |
function c() { | |
l({ | |
timePushViewed: Date.now() | |
}) | |
} | |
function E() { | |
l({ | |
count: 0, | |
timeFavoritesViewed: Date.now(), | |
timePushViewed: Date.now() | |
}) | |
} | |
function _(e, t) { | |
var r = (0, C.decodeStorageItem)("notifications"); | |
return p.default.get(r, e, t) | |
} | |
function l(e) { | |
var t = (0, C.decodeStorageItem)("notifications"), | |
r = (0, d.default)({}, t, e); | |
(0, C.encodeStorageItem)("notifications", r) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.fetchNotifications = void 0; | |
var f = r(6), | |
d = n(f), | |
S = r(10), | |
T = n(S), | |
A = r(15), | |
m = n(A); | |
t.fetchNotifications = function () { | |
var e = (0, m.default)(T.default.mark(function e(t) { | |
var r, n, o, s; | |
return T.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
return r = [], n = 0, o = "/user/favorites?priceDynamics=negative&sort=timePriceChanged&page=1&per-page=5&priceChangedSince=" + t, e.next = 5, (0, I.default)(o); | |
case 5: | |
if (s = e.sent, !s.ok) { | |
e.next = 11; | |
break | |
} | |
return e.next = 9, s.json(); | |
case 9: | |
r = e.sent, n = parseInt(s.headers.get("X-Pagination-Total-Count")); | |
case 11: | |
return e.abrupt("return", [r, n]); | |
case 12: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return function (t) { | |
return e.apply(this, arguments) | |
} | |
}(); | |
t.getNotificationsCount = o, t.updateNotificationsCount = s, t.getTimeFavoritesViewed = a, t.updateTimeFavoritesViewed = i, t.getTimePushViewed = u, t.updateTimePushViewed = c, t.resetNotifications = E; | |
var g = r(63), | |
p = n(g), | |
O = r(41), | |
I = n(O), | |
C = r(0) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o(e) { | |
var t = e.match(/:\/\/(www[0-9]?\.)?(.[^\/:]+)/i); | |
return null != t && t.length > 2 && "string" == typeof t[2] && t[2].length > 0 ? t[2] : null | |
} | |
function s(e) { | |
return a(o(e)) | |
} | |
function a(e) { | |
var t = e; | |
if (null != e) { | |
var r = e.split(".").reverse(); | |
null != r && r.length > 1 && (t = r[1] + "." + r[0], -1 != e.toLowerCase().indexOf(".co.uk") && r.length > 2 && (t = r[2] + "." + t)) | |
} | |
return t | |
} | |
function i(e) { | |
return f.default.stringify(e) | |
} | |
function u(e, t) { | |
var r = f.default.stringify(t); | |
return e + (-1 === e.indexOf("?") ? "?" : "&") + r | |
} | |
function c(e, t) { | |
if (-1 === e.indexOf("?")) return e; | |
var r = e.split("?"), | |
n = (0, _.default)(r, 2), | |
o = n[0], | |
s = n[1], | |
a = f.default.parse(s), | |
i = !0, | |
u = !1, | |
c = void 0; | |
try { | |
for (var E, l = t[Symbol.iterator](); !(i = (E = l.next()).done); i = !0) { | |
var d = E.value; | |
a[d] && delete a[d] | |
} | |
} catch (e) { | |
u = !0, c = e | |
} finally { | |
try { | |
!i && l.return && l.return() | |
} finally { | |
if (u) throw c | |
} | |
} | |
return Object.values(a).length ? o + "?" + f.default.stringify(a) : o | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var E = r(27), | |
_ = n(E); | |
t.getHostFromUrl = o, t.getDomainFromUrl = s, t.getDomainFromHost = a, t.buildQueryString = i, t.appendQueryParams = u, t.filterQueryParams = c; | |
var l = r(64), | |
f = n(l) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return void 0 !== e[c] | |
} | |
function o(e) { | |
return void 0 !== e[E] | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.API_CACHE_DESTROY = t.API_CACHE = void 0; | |
var s = r(177), | |
a = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(s), | |
i = r(9), | |
u = r(1), | |
c = t.API_CACHE = "API_CACHE", | |
E = t.API_CACHE_DESTROY = "API_CACHE_DESTROY"; | |
t.default = function (e) { | |
return function (e) { | |
return function (t) { | |
if ((0, i.isApiRequest)(t) && n(t)) { | |
var r = t[c].name; | |
return (0, u.sendBackgroundMessage)("getCache", r, function (r) { | |
e(r ? r : t) | |
}) | |
} | |
if ((0, i.isSuccessResponse)(t) && n(t)) { | |
var s = t[c], | |
_ = s.name, | |
l = s.ttl; | |
return (0, u.sendBackgroundMessage)("saveCache", { | |
name: _, | |
action: t, | |
ttl: l | |
}), e(t) | |
} | |
if (o(t)) { | |
var f = t[E].name; | |
return ((0, a.default)(f) ? f : [f]).forEach(function (e) { | |
return (0, u.sendBackgroundMessage)("destroyCache", e) | |
}), e(t) | |
} | |
return e(t) | |
} | |
} | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
t.__esModule = !0, t.default = function (e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
t.__esModule = !0; | |
var n = r(68), | |
o = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(n); | |
t.default = function () { | |
function e(e, t) { | |
for (var r = 0; r < t.length; r++) { | |
var n = t[r]; | |
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), (0, o.default)(e, n.key, n) | |
} | |
} | |
return function (t, r, n) { | |
return r && e(t.prototype, r), n && e(t, n), t | |
} | |
}() | |
}, function (e, t, r) { | |
"use strict"; | |
t.__esModule = !0; | |
var n = r(127), | |
o = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(n); | |
t.default = function (e) { | |
if (Array.isArray(e)) { | |
for (var t = 0, r = Array(e.length); t < e.length; t++) r[t] = e[t]; | |
return r | |
} | |
return (0, o.default)(e) | |
} | |
}, function (e, t) { | |
e.exports = function (e) { | |
if ("function" != typeof e) throw TypeError(e + " is not a function!"); | |
return e | |
} | |
}, function (e, t, r) { | |
var n = r(28), | |
o = r(2)("toStringTag"), | |
s = "Arguments" == n(function () { | |
return arguments | |
}()), | |
a = function (e, t) { | |
try { | |
return e[t] | |
} catch (e) {} | |
}; | |
e.exports = function (e) { | |
var t, r, i; | |
return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof (r = a(t = Object(e), o)) ? r : s ? n(t) : "Object" == (i = n(t)) && "function" == typeof t.callee ? "Arguments" : i | |
} | |
}, function (e, t) { | |
e.exports = function (e) { | |
if (void 0 == e) throw TypeError("Can't call method on " + e); | |
return e | |
} | |
}, function (e, t, r) { | |
var n = r(31), | |
o = r(5).document, | |
s = n(o) && n(o.createElement); | |
e.exports = function (e) { | |
return s ? o.createElement(e) : {} | |
} | |
}, function (e, t) { | |
e.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",") | |
}, function (e, t) { | |
t.f = Object.getOwnPropertySymbols | |
}, function (e, t, r) { | |
var n = r(55)("keys"), | |
o = r(39); | |
e.exports = function (e) { | |
return n[e] || (n[e] = o(e)) | |
} | |
}, function (e, t, r) { | |
var n = r(5), | |
o = n["__core-js_shared__"] || (n["__core-js_shared__"] = {}); | |
e.exports = function (e) { | |
return o[e] || (o[e] = {}) | |
} | |
}, function (e, t) { | |
var r = Math.ceil, | |
n = Math.floor; | |
e.exports = function (e) { | |
return isNaN(e = +e) ? 0 : (e > 0 ? n : r)(e) | |
} | |
}, function (e, t, r) { | |
var n = r(56), | |
o = Math.min; | |
e.exports = function (e) { | |
return e > 0 ? o(n(e), 9007199254740991) : 0 | |
} | |
}, function (e, t, r) { | |
var n = r(50); | |
e.exports = function (e) { | |
return Object(n(e)) | |
} | |
}, function (e, t, r) { | |
var n = r(31); | |
e.exports = function (e, t) { | |
if (!n(e)) return e; | |
var r, o; | |
if (t && "function" == typeof (r = e.toString) && !n(o = r.call(e))) return o; | |
if ("function" == typeof (r = e.valueOf) && !n(o = r.call(e))) return o; | |
if (!t && "function" == typeof (r = e.toString) && !n(o = r.call(e))) return o; | |
throw TypeError("Can't convert object to primitive value") | |
} | |
}, function (e, t, r) { | |
var n = r(5), | |
o = r(4), | |
s = r(36), | |
a = r(61), | |
i = r(8).f; | |
e.exports = function (e) { | |
var t = o.Symbol || (o.Symbol = s ? {} : n.Symbol || {}); | |
"_" == e.charAt(0) || e in t || i(t, e, { | |
value: a.f(e) | |
}) | |
} | |
}, function (e, t, r) { | |
t.f = r(2) | |
}, function (e, t, r) { | |
var n = r(49), | |
o = r(2)("iterator"), | |
s = r(23); | |
e.exports = r(4).getIteratorMethod = function (e) { | |
if (void 0 != e) return e[o] || e["@@iterator"] || s[n(e)] | |
} | |
}, function (e, t, r) { | |
var n, o, s; | |
! function (r, a) { | |
"use strict"; | |
"object" == typeof e && "object" == typeof e.exports ? e.exports = a() : (o = [], n = a, void 0 !== (s = "function" == typeof n ? n.apply(t, o) : n) && (e.exports = s)) | |
}(0, function () { | |
"use strict"; | |
function e(e, t) { | |
return null != e && Object.prototype.hasOwnProperty.call(e, t) | |
} | |
function t(t) { | |
if (!t) return !0; | |
if (u(t) && 0 === t.length) return !0; | |
if ("string" != typeof t) { | |
for (var r in t) | |
if (e(t, r)) return !1; | |
return !0 | |
} | |
return !1 | |
} | |
function r(e) { | |
return i.call(e) | |
} | |
function n(e) { | |
return "object" == typeof e && "[object Object]" === r(e) | |
} | |
function o(e) { | |
return "boolean" == typeof e || "[object Boolean]" === r(e) | |
} | |
function s(e) { | |
var t = parseInt(e); | |
return t.toString() === e ? t : e | |
} | |
function a(r) { | |
function a(t, n) { | |
return r.includeInheritedProps || "number" == typeof n && Array.isArray(t) || e(t, n) | |
} | |
function i(e, t) { | |
if (a(e, t)) return e[t] | |
} | |
function c(e, t, r, n) { | |
if ("number" == typeof t && (t = [t]), !t || 0 === t.length) return e; | |
if ("string" == typeof t) return c(e, t.split(".").map(s), r, n); | |
var o = t[0], | |
a = i(e, o); | |
return 1 === t.length ? (void 0 !== a && n || (e[o] = r), a) : (void 0 === a && ("number" == typeof t[1] ? e[o] = [] : e[o] = {}), c(e[o], t.slice(1), r, n)) | |
} | |
r = r || {}; | |
var E = function (e) { | |
return Object.keys(E).reduce(function (t, r) { | |
return "create" === r ? t : ("function" == typeof E[r] && (t[r] = E[r].bind(E, e)), t) | |
}, {}) | |
}; | |
return E.has = function (t, n) { | |
if ("number" == typeof n ? n = [n] : "string" == typeof n && (n = n.split(".")), !n || 0 === n.length) return !!t; | |
for (var o = 0; o < n.length; o++) { | |
var a = s(n[o]); | |
if (!("number" == typeof a && u(t) && a < t.length || (r.includeInheritedProps ? a in Object(t) : e(t, a)))) return !1; | |
t = t[a] | |
} | |
return !0 | |
}, E.ensureExists = function (e, t, r) { | |
return c(e, t, r, !0) | |
}, E.set = function (e, t, r, n) { | |
return c(e, t, r, n) | |
}, E.insert = function (e, t, r, n) { | |
var o = E.get(e, t); | |
n = ~~n, u(o) || (o = [], E.set(e, t, o)), o.splice(n, 0, r) | |
}, E.empty = function (e, r) { | |
if (!t(r) && null != e) { | |
var s, i; | |
if (s = E.get(e, r)) { | |
if ("string" == typeof s) return E.set(e, r, ""); | |
if (o(s)) return E.set(e, r, !1); | |
if ("number" == typeof s) return E.set(e, r, 0); | |
if (u(s)) s.length = 0; | |
else { | |
if (!n(s)) return E.set(e, r, null); | |
for (i in s) a(s, i) && delete s[i] | |
} | |
} | |
} | |
}, E.push = function (e, t) { | |
var r = E.get(e, t); | |
u(r) || (r = [], E.set(e, t, r)), r.push.apply(r, Array.prototype.slice.call(arguments, 2)) | |
}, E.coalesce = function (e, t, r) { | |
for (var n, o = 0, s = t.length; o < s; o++) | |
if (void 0 !== (n = E.get(e, t[o]))) return n; | |
return r | |
}, E.get = function (e, t, r) { | |
if ("number" == typeof t && (t = [t]), !t || 0 === t.length) return e; | |
if (null == e) return r; | |
if ("string" == typeof t) return E.get(e, t.split("."), r); | |
var n = s(t[0]), | |
o = i(e, n); | |
return void 0 === o ? r : 1 === t.length ? o : E.get(e[n], t.slice(1), r) | |
}, E.del = function (e, r) { | |
if ("number" == typeof r && (r = [r]), null == e) return e; | |
if (t(r)) return e; | |
if ("string" == typeof r) return E.del(e, r.split(".")); | |
var n = s(r[0]); | |
return a(e, n) ? 1 !== r.length ? E.del(e[n], r.slice(1)) : (u(e) ? e.splice(n, 1) : delete e[n], e) : e | |
}, E | |
} | |
var i = Object.prototype.toString, | |
u = Array.isArray || function (e) { | |
return "[object Array]" === i.call(e) | |
}, | |
c = a(); | |
return c.create = a, c.withInheritedProps = a({ | |
includeInheritedProps: !0 | |
}), c | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
switch (e.arrayFormat) { | |
case "index": | |
return function (t, r, n) { | |
return null === r ? [s(t, e), "[", n, "]"].join("") : [s(t, e), "[", s(n, e), "]=", s(r, e)].join("") | |
}; | |
case "bracket": | |
return function (t, r) { | |
return null === r ? s(t, e) : [s(t, e), "[]=", s(r, e)].join("") | |
}; | |
default: | |
return function (t, r) { | |
return null === r ? s(t, e) : [s(t, e), "=", s(r, e)].join("") | |
} | |
} | |
} | |
function o(e) { | |
var t; | |
switch (e.arrayFormat) { | |
case "index": | |
return function (e, r, n) { | |
if (t = /\[(\d*)\]$/.exec(e), e = e.replace(/\[\d*\]$/, ""), !t) return void(n[e] = r); | |
void 0 === n[e] && (n[e] = {}), n[e][t[1]] = r | |
}; | |
case "bracket": | |
return function (e, r, n) { | |
return t = /(\[\])$/.exec(e), e = e.replace(/\[\]$/, ""), t ? void 0 === n[e] ? void(n[e] = [r]) : void(n[e] = [].concat(n[e], r)) : void(n[e] = r) | |
}; | |
default: | |
return function (e, t, r) { | |
if (void 0 === r[e]) return void(r[e] = t); | |
r[e] = [].concat(r[e], t) | |
} | |
} | |
} | |
function s(e, t) { | |
return t.encode ? t.strict ? i(e) : encodeURIComponent(e) : e | |
} | |
function a(e) { | |
return Array.isArray(e) ? e.sort() : "object" == typeof e ? a(Object.keys(e)).sort(function (e, t) { | |
return Number(e) - Number(t) | |
}).map(function (t) { | |
return e[t] | |
}) : e | |
} | |
var i = r(182), | |
u = r(179); | |
t.extract = function (e) { | |
return e.split("?")[1] || "" | |
}, t.parse = function (e, t) { | |
t = u({ | |
arrayFormat: "none" | |
}, t); | |
var r = o(t), | |
n = Object.create(null); | |
return "string" != typeof e ? n : (e = e.trim().replace(/^(\?|#|&)/, "")) ? (e.split("&").forEach(function (e) { | |
var t = e.replace(/\+/g, " ").split("="), | |
o = t.shift(), | |
s = t.length > 0 ? t.join("=") : void 0; | |
s = void 0 === s ? null : decodeURIComponent(s), r(decodeURIComponent(o), s, n) | |
}), Object.keys(n).sort().reduce(function (e, t) { | |
var r = n[t]; | |
return Boolean(r) && "object" == typeof r && !Array.isArray(r) ? e[t] = a(r) : e[t] = r, e | |
}, Object.create(null))) : n | |
}, t.stringify = function (e, t) { | |
t = u({ | |
encode: !0, | |
strict: !0, | |
arrayFormat: "none" | |
}, t); | |
var r = n(t); | |
return e ? Object.keys(e).sort().map(function (n) { | |
var o = e[n]; | |
if (void 0 === o) return ""; | |
if (null === o) return s(n, t); | |
if (Array.isArray(o)) { | |
var a = []; | |
return o.slice().forEach(function (e) { | |
void 0 !== e && a.push(r(n, e, a.length)) | |
}), a.join("&") | |
} | |
return s(n, t) + "=" + s(o, t) | |
}).filter(function (e) { | |
return e.length > 0 | |
}).join("&") : "" | |
} | |
}, function (e, t) { | |
var r; | |
r = function () { | |
return this | |
}(); | |
try { | |
r = r || Function("return this")() || (0, eval)("this") | |
} catch (e) { | |
"object" == typeof window && (r = window) | |
} | |
e.exports = r | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
e.catch(console.error) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.wrapPromise = n | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o() { | |
return T | |
} | |
function s(e) { | |
T = e | |
} | |
function a(e) { | |
var t = f.default.get(S, [T, e]); | |
t || T === d || (t = f.default.get(S, [d, e])); | |
for (var r = f.default.get(t, "message", e), n = arguments.length, o = Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++) o[s - 1] = arguments[s]; | |
return r = i(r, t, o), r = u(r) | |
} | |
function i(e, t, r) { | |
return t && t.placeholders ? (Object.keys(t.placeholders).forEach(function (t, n) { | |
r[n] && (e = e.split("$" + t.toUpperCase() + "$").join(r[n])) | |
}), e) : e | |
} | |
function u(e) { | |
return e.replace(/\{pluralize, (.*)}/, function (e, t, r, n) { | |
var o = t.split(", "), | |
s = (0, _.default)(o, 2); | |
return c(s[0], s[1].split("|")) | |
}) | |
} | |
function c(e, t) { | |
var r = (0, _.default)(t, 3), | |
n = r[0], | |
o = r[1], | |
s = r[2]; | |
return e = Math.abs(e), (e %= 100) >= 5 && e <= 20 ? s : (e %= 10, 1 == e ? n : e >= 2 && e <= 4 ? o : s) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var E = r(27), | |
_ = n(E); | |
t.getLanguage = o, t.setLanguage = s, t.translation = a, t.pluralizeMessage = u, t.plural = c; | |
var l = r(63), | |
f = n(l), | |
d = "en", | |
S = { | |
en: r(96), | |
ru: r(100), | |
es: r(97), | |
fr: r(98), | |
pt: r(99) | |
}, | |
T = d | |
}, function (e, t, r) { | |
e.exports = { | |
default: r(140), | |
__esModule: !0 | |
} | |
}, function (e, t, r) { | |
e.exports = r(5).document && document.documentElement | |
}, function (e, t, r) { | |
e.exports = !r(12) && !r(30)(function () { | |
return 7 != Object.defineProperty(r(51)("div"), "a", { | |
get: function () { | |
return 7 | |
} | |
}).a | |
}) | |
}, function (e, t, r) { | |
var n = r(28); | |
e.exports = Object("z").propertyIsEnumerable(0) ? Object : function (e) { | |
return "String" == n(e) ? e.split("") : Object(e) | |
} | |
}, function (e, t, r) { | |
var n = r(23), | |
o = r(2)("iterator"), | |
s = Array.prototype; | |
e.exports = function (e) { | |
return void 0 !== e && (n.Array === e || s[o] === e) | |
} | |
}, function (e, t, r) { | |
var n = r(11); | |
e.exports = function (e, t, r, o) { | |
try { | |
return o ? t(n(r)[0], r[1]) : t(r) | |
} catch (t) { | |
var s = e.return; | |
throw void 0 !== s && n(s.call(e)), t | |
} | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
var n = r(36), | |
o = r(22), | |
s = r(79), | |
a = r(17), | |
i = r(16), | |
u = r(23), | |
c = r(152), | |
E = r(38), | |
_ = r(161), | |
l = r(2)("iterator"), | |
f = !([].keys && "next" in [].keys()), | |
d = function () { | |
return this | |
}; | |
e.exports = function (e, t, r, S, T, A, m) { | |
c(r, t, S); | |
var g, p, O, I = function (e) { | |
if (!f && e in v) return v[e]; | |
switch (e) { | |
case "keys": | |
case "values": | |
return function () { | |
return new r(this, e) | |
} | |
} | |
return function () { | |
return new r(this, e) | |
} | |
}, | |
C = t + " Iterator", | |
R = "values" == T, | |
L = !1, | |
v = e.prototype, | |
N = v[l] || v["@@iterator"] || T && v[T], | |
h = N || I(T), | |
y = T ? R ? I("entries") : h : void 0, | |
P = "Array" == t ? v.entries || N : N; | |
if (P && (O = _(P.call(new e))) !== Object.prototype && (E(O, C, !0), n || i(O, l) || a(O, l, d)), R && N && "values" !== N.name && (L = !0, h = function () { | |
return N.call(this) | |
}), n && !m || !f && !L && v[l] || a(v, l, h), u[t] = h, u[C] = d, T) | |
if (g = { | |
values: R ? h : I("values"), | |
keys: A ? h : I("keys"), | |
entries: y | |
}, m) | |
for (p in g) p in v || s(v, p, g[p]); | |
else o(o.P + o.F * (f || L), t, g); | |
return g | |
} | |
}, function (e, t, r) { | |
var n = r(2)("iterator"), | |
o = !1; | |
try { | |
var s = [7][n](); | |
s.return = function () { | |
o = !0 | |
}, Array.from(s, function () { | |
throw 2 | |
}) | |
} catch (e) {} | |
e.exports = function (e, t) { | |
if (!t && !o) return !1; | |
var r = !1; | |
try { | |
var s = [7], | |
a = s[n](); | |
a.next = function () { | |
return { | |
done: r = !0 | |
} | |
}, s[n] = function () { | |
return a | |
}, e(s) | |
} catch (e) {} | |
return r | |
} | |
}, function (e, t, r) { | |
var n = r(11), | |
o = r(158), | |
s = r(52), | |
a = r(54)("IE_PROTO"), | |
i = function () {}, | |
u = function () { | |
var e, t = r(51)("iframe"), | |
n = s.length; | |
for (t.style.display = "none", r(69).appendChild(t), t.src = "javascript:", e = t.contentWindow.document, e.open(), e.write("<script>document.F=Object<\/script>"), e.close(), u = e.F; n--;) delete u.prototype[s[n]]; | |
return u() | |
}; | |
e.exports = Object.create || function (e, t) { | |
var r; | |
return null !== e ? (i.prototype = n(e), r = new i, i.prototype = null, r[a] = e) : r = u(), void 0 === t ? r : o(r, t) | |
} | |
}, function (e, t, r) { | |
var n = r(78), | |
o = r(52).concat("length", "prototype"); | |
t.f = Object.getOwnPropertyNames || function (e) { | |
return n(e, o) | |
} | |
}, function (e, t, r) { | |
var n = r(16), | |
o = r(18), | |
s = r(146)(!1), | |
a = r(54)("IE_PROTO"); | |
e.exports = function (e, t) { | |
var r, i = o(e), | |
u = 0, | |
c = []; | |
for (r in i) r != a && n(i, r) && c.push(r); | |
for (; t.length > u;) n(i, r = t[u++]) && (~s(c, r) || c.push(r)); | |
return c | |
} | |
}, function (e, t, r) { | |
e.exports = r(17) | |
}, function (e, t, r) { | |
var n, o, s, a = r(29), | |
i = r(150), | |
u = r(69), | |
c = r(51), | |
E = r(5), | |
_ = E.process, | |
l = E.setImmediate, | |
f = E.clearImmediate, | |
d = E.MessageChannel, | |
S = 0, | |
T = {}, | |
A = function () { | |
var e = +this; | |
if (T.hasOwnProperty(e)) { | |
var t = T[e]; | |
delete T[e], t() | |
} | |
}, | |
m = function (e) { | |
A.call(e.data) | |
}; | |
l && f || (l = function (e) { | |
for (var t = [], r = 1; arguments.length > r;) t.push(arguments[r++]); | |
return T[++S] = function () { | |
i("function" == typeof e ? e : Function(e), t) | |
}, n(S), S | |
}, f = function (e) { | |
delete T[e] | |
}, "process" == r(28)(_) ? n = function (e) { | |
_.nextTick(a(A, e, 1)) | |
} : d ? (o = new d, s = o.port2, o.port1.onmessage = m, n = a(s.postMessage, s, 1)) : E.addEventListener && "function" == typeof postMessage && !E.importScripts ? (n = function (e) { | |
E.postMessage(e + "", "*") | |
}, E.addEventListener("message", m, !1)) : n = "onreadystatechange" in c("script") ? function (e) { | |
u.appendChild(c("script")).onreadystatechange = function () { | |
u.removeChild(this), A.call(e) | |
} | |
} : function (e) { | |
setTimeout(a(A, e, 1), 0) | |
}), e.exports = { | |
set: l, | |
clear: f | |
} | |
}, function (e, t) {}, function (e, t, r) { | |
"use strict"; | |
var n = r(7), | |
o = r(1), | |
s = r(0), | |
a = r(26); | |
! function (e, t, r, n, o, s, a) { | |
e.GoogleAnalyticsObject = o, e[o] = e[o] || function () { | |
(e[o].q = e[o].q || []).push(arguments) | |
}, e[o].l = 1 * new Date, s = t.createElement(r), a = t.getElementsByTagName(r)[0], s.async = 1, s.src = "https://www.google-analytics.com/analytics.js", a.parentNode.insertBefore(s, a) | |
}(window, document, "script", 0, "gaAT"), gaAT("create", "UA-53233668-8", "auto"), gaAT("set", "appName", "AliTools"), gaAT("set", "appVersion", (0, n.getExtensionDetails)().version), gaAT("set", "checkProtocolTask", function () {}), gaAT("set", "dimension1", function () { | |
var e = { | |
theme: "default" | |
}; | |
return Object.assign(e, (0, s.decodeStorageItem)("settings")).theme | |
}()), (0, o.listenMessage)("sendAnalyticsEvent", function (e) { | |
gaAT.apply(null, e) | |
}), (0, o.listenMessage)("syncAction", function (e) { | |
e.type === a.CHANGE_BROWSER_OPTION && "theme" === e.name && gaAT("set", "dimension1", e.value) | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
var n = r(1), | |
o = r(14); | |
(0, n.listenMessage)("login", function (e) { | |
var t = Object.assign({}, e.user); | |
(0, o.saveUser)(t), (0, n.sendContentMessage)("login", { | |
user: t | |
}) | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
var n = r(24), | |
o = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(n), | |
s = r(25); | |
chrome.browserAction.onClicked.addListener(function () { | |
(0, o.default)("send", "event", { | |
eventCategory: "browserAction", | |
eventAction: "click", | |
eventLabel: "openAliExpress" | |
}), (0, s.openNewTab)("http://aliexpress.com/") | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
var n = r(1), | |
o = r(25); | |
(0, n.listenMessage)("openSettings", function () { | |
(0, o.openNewTab)(chrome.runtime.getURL("settings.html")) | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n() { | |
(0, a.default)("/config").then(function (e) { | |
return e.ok ? e.json() : Promise.reject(e.statusText) | |
}).then(function (e) { | |
return (0, o.saveConfig)(e) | |
}).catch(function (e) { | |
return console.error(e) | |
}) | |
} | |
var o = r(13), | |
s = r(41), | |
a = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(s), | |
i = r(19); | |
setTimeout(n, 5 * i.SECOND), setInterval(n, 5 * i.MINUTE) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o(e, t, r) { | |
var n = { | |
method: "POST", | |
body: JSON.stringify((0, _.default)({ | |
action: t | |
}, r)) | |
}; | |
return (0, f.default)(e, n).catch(function (e) { | |
return console.error(e) | |
}) | |
} | |
function s(e, t) { | |
var r = c(), | |
n = (0, S.decodeStorageItem)("analysis"); | |
n && n.date === r || (n = { | |
date: r | |
}), n[e] || (n[e] = []), n[e].push(t), (0, S.encodeStorageItem)("analysis", n) | |
} | |
function a(e, t) { | |
var r = c(), | |
n = (0, S.decodeStorageItem)("analysis"); | |
return !!n && (n.date === r && (n[e] && -1 !== n[e].indexOf(t))) | |
} | |
function i(e, t) { | |
var r = c(), | |
n = (0, S.decodeStorageItem)("analysis-price"); | |
n && n.date === r || (n = { | |
date: r | |
}), n[e] = t, (0, S.encodeStorageItem)("analysis-price", n) | |
} | |
function u(e, t) { | |
var r = c(), | |
n = (0, S.decodeStorageItem)("analysis-price"); | |
return !!n && (n.date === r && n[e] === t) | |
} | |
function c() { | |
var e = new Date; | |
return e.getFullYear() + "-" + e.getMonth() + "-" + e.getDate() | |
} | |
var E = r(6), | |
_ = n(E), | |
l = r(41), | |
f = n(l), | |
d = r(1), | |
S = r(0); | |
(0, d.listenMessage)("tryUploadAction", function (e) { | |
var t = e.url, | |
r = e.action, | |
n = e.uniqueKey, | |
i = e.data; | |
a(r, n) || (o(t, r, i), s(r, n)) | |
}), (0, d.listenMessage)("tryUploadPrice", function (e) { | |
var t = e.url, | |
r = e.uniqueKey, | |
n = e.priceKey, | |
s = e.data; | |
u(r, n) || (o(t, s.action, s), i(r, n)) | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n() { | |
var e = o(), | |
t = { | |
version: (0, s.getCurrentVersion)(), | |
locale: (0, s.getCurrentLocale)(), | |
ptk: (0, s.getPtk)(), | |
language: e.language, | |
currency: e.currency, | |
theme: e.theme | |
}, | |
r = (0, u.getUser)(); | |
return r ? { | |
extension: t, | |
user: r | |
} : { | |
extension: t | |
} | |
} | |
function o() { | |
var e = { | |
language: (0, s.getDefaultLanguage)(), | |
currency: "USD", | |
theme: "default" | |
}; | |
return Object.assign({}, e, (0, i.decodeStorageItem)("settings")) | |
} | |
var s = r(7), | |
a = r(1), | |
i = r(0), | |
u = r(14); | |
(0, a.listenMessage)("getLandingData", function (e, t, r) { | |
r(JSON.stringify(n())) | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o(e, t, r) { | |
var n = (0, g.filterQueryParams)(t, ["aff_platform", "cpt", "sk", "aff_trace_key"]); | |
(0, m.navigateTab)(e, (0, S.createDeeplink)(n, { | |
af: "DPlnKr2ATnM", | |
dp: (0, f.getPtk)(), | |
cn: (0, A.getStorageItem)("source") | |
}), r) | |
} | |
function s(e, t, r) { | |
var n = (0, g.filterQueryParams)(t, ["p"]); | |
(0, m.navigateTab)(e, (0, g.appendQueryParams)(n, { | |
p: "8D14152796583201510S" | |
}), r) | |
} | |
function a(e, t, r, n) { | |
var o = y[t][N] + encodeURIComponent(r); | |
o = o.replace("subaccount", (0, A.getStorageItem)("source")), (0, m.navigateTab)(e, o, n) | |
} | |
function i(e, t) { | |
v.default.set(e, Date.now()), (0, _.default)("send", "event", "extlink", t) | |
} | |
var u = r(3), | |
c = n(u), | |
E = r(24), | |
_ = n(E), | |
l = r(13), | |
f = r(7), | |
d = r(1), | |
S = r(102), | |
T = r(105), | |
A = r(0), | |
m = r(25), | |
g = r(43), | |
p = r(111), | |
O = r(106), | |
I = n(O), | |
C = r(107), | |
R = n(C), | |
L = r(108), | |
v = n(L), | |
N = "8507", | |
h = [], | |
y = {}; | |
I.default.forEach(function (e) { | |
var t, r = (0, T.decodeString)(e.d); | |
h.push(r), y[r] = (t = {}, (0, c.default)(t, "ce8b30", (0, T.decodeString)(e.k)), (0, c.default)(t, N, e.l ? (0, T.decodeString)(e.l) : null), t) | |
}), (0, d.listenMessage)("pageOpened", function (e) { | |
var t = e.url; | |
if (R.default.enabled()) { | |
var r = R.default.findRuleFor(t); | |
r && (R.default.updateTimeout(r.timeout), (0, _.default)("send", "event", "limiter-config", r.name), (0, _.default)("send", "event", "limiter", "found", t)) | |
} | |
}), chrome.webNavigation.onBeforeNavigate.addListener(function (e) { | |
var t = e.tabId, | |
r = e.url; | |
if (0 === e.frameId) { | |
if (R.default.enabled()) { | |
var n = R.default.findRuleFor(r); | |
n && (R.default.updateTimeout(n.timeout), (0, _.default)("send", "event", "limiter-config", n.name), (0, _.default)("send", "event", "limiter", "found", r)) | |
} | |
var u = (0, g.getDomainFromUrl)(r); | |
if (-1 !== h.indexOf(u)) { | |
var c = y[u].ce8b30; | |
if (!(0, p.isServiceUrl)(r)) { | |
if ("ae" === c) { | |
if (!(0, p.isAllowedDomain)(r)) return; | |
if (-1 !== r.indexOf("/wholesale")) return | |
} | |
var E = (0, l.getConfigItem)("extlinkTimeouts"), | |
f = E.default[0], | |
d = E.default[1]; | |
if (v.default.get(c) || v.default.set(c, Date.now() - d + f), v.default.isPassed(c, d)) { | |
if (R.default.enabled()) { | |
if (R.default.blocks()) return void(0, _.default)("send", "event", "limiter", "blocked"); | |
(0, _.default)("send", "event", "limiter", "passed") | |
} | |
"ae" === c ? o(t, r, function () { | |
return i(c, u) | |
}) : "bg" === c ? s(t, r, function () { | |
return i(c, u) | |
}) : a(t, u, r, function () { | |
return i(c, u) | |
}) | |
} | |
} | |
} | |
} | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o() { | |
(0, f.setStorageItem)("extVersion", (0, l.getCurrentVersion)()) | |
} | |
function s() { | |
(0, f.setStorageItem)("ptk", (0, c.default)()) | |
} | |
function a(e) { | |
i(e) ? (0, S.navigateTab)(e.id, "https://alitools.io/welcome") : (0, S.openNewTab)("https://alitools.io/welcome") | |
} | |
function i(e) { | |
return !!e && (!!e.url && e.url.startsWith("https://alitools.io")) | |
} | |
var u = r(185), | |
c = n(u), | |
E = r(24), | |
_ = n(E), | |
l = r(7), | |
f = r(0), | |
d = r(35), | |
S = r(25); | |
chrome.runtime.onInstalled.addListener(function (e) { | |
"install" === e.reason && (o(), s(), !0 === e.isOneClickInstall ? ((0, _.default)("send", "event", "install.one-click", "opera"), (0, f.setStorageItem)("source", "KWoP3raQoYVmu"), (0, d.updateSettings)({ | |
showPanelOnAllPages: !0 | |
})) : (0, S.getCurrentTab)(function (e) { | |
a(e) | |
})) | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
var o = r(27), | |
s = n(o), | |
a = r(10), | |
i = n(a), | |
u = r(15), | |
c = n(u), | |
E = function () { | |
var e = (0, c.default)(i.default.mark(function e() { | |
return i.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
if ((0, A.isLoggedIn)()) { | |
e.next = 2; | |
break | |
} | |
return e.abrupt("return"); | |
case 2: | |
return e.next = 4, l(); | |
case 4: | |
return e.next = 6, (0, p.default)(); | |
case 6: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return function () { | |
return e.apply(this, arguments) | |
} | |
}(), | |
_ = function () { | |
var e = (0, c.default)(i.default.mark(function e() { | |
return i.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
if ((0, A.isLoggedIn)()) { | |
e.next = 2; | |
break | |
} | |
return e.abrupt("return"); | |
case 2: | |
return e.next = 4, l(); | |
case 4: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return function () { | |
return e.apply(this, arguments) | |
} | |
}(), | |
l = function () { | |
var e = (0, c.default)(i.default.mark(function e() { | |
var t, r, n, o, a; | |
return i.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
if (!((t = (0, d.getTimeFavoritesViewed)()) + T.HOUR < Date.now())) { | |
e.next = 9; | |
break | |
} | |
return e.next = 4, (0, d.fetchNotifications)(t); | |
case 4: | |
r = e.sent, n = (0, s.default)(r, 2), o = n[0], a = n[1], (0, d.updateNotificationsCount)(a); | |
case 9: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return function () { | |
return e.apply(this, arguments) | |
} | |
}(), | |
f = r(66), | |
d = r(42), | |
S = r(1), | |
T = r(19), | |
A = r(14), | |
m = r(26), | |
g = r(110), | |
p = n(g); | |
(0, f.wrapPromise)(E()), (0, S.listenMessage)("login", function () { | |
(0, d.resetNotifications)() | |
}), (0, S.listenMessage)("syncAction", function (e) { | |
e.type === m.LOGOUT && (0, d.resetNotifications)() | |
}), setInterval(function () { | |
(0, f.wrapPromise)(_()) | |
}, 10 * T.MINUTE) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o() { | |
(0, g.getStorageKeys)().filter(function (e) { | |
return 0 === e.search("cache-") | |
}).forEach(function (e) { | |
(0, g.removeStorageItem)(e) | |
}) | |
} | |
var s = r(3), | |
a = n(s), | |
i = r(10), | |
u = n(i), | |
c = r(15), | |
E = n(c), | |
_ = function () { | |
var e = (0, E.default)(u.default.mark(function e() { | |
var t, r, n, o, s, a, i, c, E, _, l, f; | |
return u.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
return t = (0, d.getConfigItem)("apiBaseUrl"), e.next = 3, (0, S.getRegion)(); | |
case 3: | |
return r = e.sent, n = (0, S.getExtensionDetails)(), o = n.locale, s = n.version, a = (0, S.getInstallVersion)(), i = (0, g.getStorageItem)("updateModalVersion"), c = (0, d.getConfigItem)("aeSecretKey"), E = (0, S.getPtk)(), _ = (0, g.getStorageItem)("source"), l = (0, g.decodeStorageItem)("hidden-blocks") || [], f = (0, A.getNotificationsCount)(), e.abrupt("return", { | |
blocks: { | |
hidden: l | |
}, | |
extension: { | |
apiBaseUrl: t, | |
locale: o, | |
region: r, | |
version: s, | |
installVersion: a, | |
updateModalVersion: i, | |
aeSecretKey: c, | |
ptk: E, | |
userSource: _ | |
}, | |
notifications: { | |
count: f | |
}, | |
settings: (0, m.getSettings)(), | |
user: (0, p.getUser)() | |
}); | |
case 13: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return function () { | |
return e.apply(this, arguments) | |
} | |
}(), | |
l = r(24), | |
f = n(l), | |
d = r(13), | |
S = r(7), | |
T = r(1), | |
A = r(42), | |
m = r(35), | |
g = r(0), | |
p = r(14), | |
O = r(26); | |
(0, T.listenMessage)("initialState", { | |
asyncResponse: !0 | |
}, function () { | |
var e = (0, E.default)(u.default.mark(function e(t, r, n) { | |
return u.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
return e.t0 = n, e.t1 = JSON, e.next = 4, _(); | |
case 4: | |
e.t2 = e.sent, e.t3 = e.t1.stringify.call(e.t1, e.t2), (0, e.t0)(e.t3); | |
case 7: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return function (t, r, n) { | |
return e.apply(this, arguments) | |
} | |
}()), (0, T.listenMessage)("getCache", function (e, t, r) { | |
var n = (0, g.decodeStorageItem)("cache-" + e); | |
r(n && n.expires > Date.now() ? n.action : null) | |
}), (0, T.listenMessage)("saveCache", function (e) { | |
var t = e.name, | |
r = e.action, | |
n = e.ttl; | |
(0, g.encodeStorageItem)("cache-" + t, { | |
action: r, | |
expires: Date.now() + n | |
}) | |
}), (0, T.listenMessage)("destroyCache", function (e) { | |
(0, g.removeStorageItem)("cache-" + e) | |
}), (0, T.listenMessage)("syncAction", function (e) { | |
if (e.type === O.LOGOUT && ((0, p.clearUser)(), o()), e.type === O.LOAD_USER_SETTINGS_SUCCESS && (0, m.updateSettings)(e.data), e.type !== O.CHANGE_BROWSER_OPTION && e.type !== O.CHANGE_USER_OPTION_REQUEST || ((0, m.updateSettings)((0, a.default)({}, e.name, e.value)), (0, f.default)("send", "event", "settings.change", e.name, e.value)), e.type === O.RESET_NOTIFICATIONS && (0, A.resetNotifications)(), e.type === O.HIDE_BLOCK) { | |
var t = (0, g.decodeStorageItem)("hidden-blocks") || []; | |
t.push(e.name), (0, g.encodeStorageItem)("hidden-blocks", t) | |
}(0, T.sendContentMessage)("syncedAction", e) | |
}), (0, T.listenMessage)("updateModalWasClosed", function () { | |
(0, g.setStorageItem)("updateModalVersion", (0, S.getCurrentVersion)()) | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
var t = "db-" + e + "-data", | |
r = (0, s.getStorageItem)(t); | |
return r = JSON.parse(r), r = JSON.parse(r) | |
} | |
var o = r(1), | |
s = r(0); | |
(0, o.listenMessage)("getTransferData", function (e, t, r) { | |
r({ | |
packages: n("packages"), | |
settings: n("settings"), | |
statistics: n("statistics") | |
}) | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n() { | |
var e = "https://alitools.io/goodbye?v=" + (0, s.getCurrentVersion)() + "&p=" + (0, s.getPtk)(), | |
t = o(); | |
return t && (e += "&u=" + t), e | |
} | |
function o() { | |
var e = (0, i.getUser)(); | |
return e && e.id ? e.id : null | |
} | |
var s = r(7), | |
a = r(1), | |
i = r(14); | |
setTimeout(function () { | |
return chrome.runtime.setUninstallURL(n()) | |
}, 1500), (0, a.listenMessage)("login", function () { | |
setTimeout(function () { | |
return chrome.runtime.setUninstallURL(n()) | |
}, 1500) | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n() { | |
return Boolean((0, s.getStorageItem)("source")) | |
} | |
var o = r(1), | |
s = r(0); | |
(0, o.listenMessage)("saveSourceKey", function (e) { | |
n() || (0, s.setStorageItem)("source", e) | |
}) | |
}, function (e, t) { | |
e.exports = { | |
EXTENSION_NAME: { | |
message: "AliTools" | |
}, | |
EXTENSION_SHORT_NAME: { | |
message: "AliTools" | |
}, | |
EXTENSION_DESCRIPTION: { | |
message: "Your reliable assistant on AliExpress" | |
}, | |
BUTTON_ADD_FAVORITE_MESSAGE: { | |
message: "Monitor the price" | |
}, | |
BUTTON_ADD_FAVORITE_POPOVER: { | |
message: "Add item to favorites" | |
}, | |
BUTTON_REMOVE_FAVORITE_MESSAGE: { | |
message: "Stop monitoring" | |
}, | |
BUTTON_REMOVE_FAVORITE_POPOVER: { | |
message: "Delete item from favorites" | |
}, | |
BUTTON_TRY_AGAIN: { | |
message: "Try again" | |
}, | |
FILTER_ALL: { | |
message: "All" | |
}, | |
FILTER_PHOTOS: { | |
message: "Photos" | |
}, | |
FILTER_VIDEOS: { | |
message: "Videos" | |
}, | |
LEGACY_SELLER_CHECK_TITLE: { | |
message: "AliTools seller rating" | |
}, | |
LEGACY_SELLER_CHECK_COMPLAINTS_BEGIN: { | |
message: "We have" | |
}, | |
LEGACY_SELLER_CHECK_COMPLAINTS_END: { | |
message: "complaints about this seller" | |
}, | |
LEGACY_SELLER_CHECK_CONCLUSION: { | |
message: "Conclusion" | |
}, | |
MODAL_AUTH_DESCRIPTION: { | |
message: "<b>Sign up</b> or <b>log in</b> using your AliTools account<br /> to add products to your favourites<br /> and get notifications on lowered prices." | |
}, | |
MODAL_AUTH_ACTION: { | |
message: "Continue" | |
}, | |
MODAL_SETTINGS_BASE_TITLE: { | |
message: "General settings" | |
}, | |
MODAL_SETTINGS_L10N_TITLE: { | |
message: "Localization" | |
}, | |
MODAL_SETTINGS_NOTIFICATIONS_TITLE: { | |
message: "Notifications" | |
}, | |
MODAL_SETTINGS_AUTH_LOGIN: { | |
message: "Log in" | |
}, | |
MODAL_SETTINGS_AUTH_SIGN_UP: { | |
message: "Sign up" | |
}, | |
MODAL_SETTINGS_FOOTER_ABOUT: { | |
message: "About us" | |
}, | |
MODAL_SETTINGS_FOOTER_FEEDBACK: { | |
message: "Write to us" | |
}, | |
MODAL_VIDEOS_TITLE: { | |
message: "Video reviews" | |
}, | |
POPUP_CONTROL_FAVORITES: { | |
message: "My favorites" | |
}, | |
POPUP_CONTROL_PACKAGES: { | |
message: "My packages" | |
}, | |
POPUP_CONTROL_SETTINGS: { | |
message: "Settings" | |
}, | |
POPUP_PLACEHOLDER_TRACKING: { | |
message: "Track a package" | |
}, | |
POPUP_FOOTER_TUTORIAL: { | |
message: "How to use?" | |
}, | |
POPUP_FOOTER_ABOUT: { | |
message: "About" | |
}, | |
POPUP_FOOTER_FEEDBACK: { | |
message: "Contact developers" | |
}, | |
POPUP_FOOTER_GOTO: { | |
message: "Go to AliExpress" | |
}, | |
PRICE_DYNAMICS_NEGATIVE: { | |
message: "lowered" | |
}, | |
PRICE_DYNAMICS_NEUTRAL: { | |
message: "persists for" | |
}, | |
PRICE_DYNAMICS_POSITIVE: { | |
message: "increased" | |
}, | |
PUSH_SINGLE_TITLE: { | |
message: "Product price was reduced" | |
}, | |
PUSH_MULTIPLE_TITLE: { | |
message: "Product prices were reduced" | |
}, | |
PUSH_MULTIPLE_MORE: { | |
message: "and $COUNT$ more", | |
placeholders: { | |
count: { | |
content: "$1", | |
example: "10" | |
} | |
} | |
}, | |
SORT_LAST: { | |
message: "Last" | |
}, | |
SORT_POPULAR: { | |
message: "Popular" | |
}, | |
SORT_LOWEST_PRICE: { | |
message: "Lowest price" | |
}, | |
SELLER_CHECK_REASON_AGE_GT_3_YEARS: { | |
message: "The seller has been operating on the site for more than three years." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_2_YEARS: { | |
message: "The seller has been operating on the site for more than two years." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_1_YEAR: { | |
message: "The seller has been operating on the site for more than one year." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_HALF_YEAR: { | |
message: "The seller is new to this site — he has been operating on the site for half a year." | |
}, | |
SELLER_CHECK_REASON_AGE_LT_HALF_YEAR: { | |
message: "The seller is new to this site — he has been operating on the site less than half a year." | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NONE: { | |
message: "This seller has no feedback!" | |
}, | |
SELLER_CHECK_REASON_REVIEWS_POSITIVE_ALL: { | |
message: "This seller has only positive feedbacks. Be careful." | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_ALL: { | |
message: "This seller has only negative feedbacks. <b>Be careful!</b>" | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_MUCH: { | |
message: "$RATE$ of buyers are dissatisfied with products of the seller. <b>Be careful!</b>", | |
placeholders: { | |
rate: { | |
content: "$1", | |
example: "50%" | |
} | |
} | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_FEW: { | |
message: "$RATE$ of buyers are dissatisfied with products of the seller.", | |
placeholders: { | |
rate: { | |
content: "$1", | |
example: "10%" | |
} | |
} | |
}, | |
SELLER_CHECK_REASON_DETAIL_COMMUNICATION_POSITIVE: { | |
message: "Buyers are satisfied with communication with the seller." | |
}, | |
SELLER_CHECK_REASON_DETAIL_COMMUNICATION_NEGATIVE: { | |
message: "Not all buyers are satisfied with communication with the seller." | |
}, | |
SELLER_CHECK_REASON_DETAIL_DESCRIPTION_POSITIVE: { | |
message: "Products of the seller correspond to their descriptions." | |
}, | |
SELLER_CHECK_REASON_DETAIL_DESCRIPTION_NEGATIVE: { | |
message: "Not all products of the seller correspond to their descriptions." | |
}, | |
SELLER_CHECK_REASON_DETAIL_SHIPPING_POSITIVE: { | |
message: "The seller ships items quickly." | |
}, | |
SELLER_CHECK_REASON_DETAIL_SHIPPING_NEGATIVE: { | |
message: "The seller may delay shipping." | |
}, | |
SELLER_CHECK_CONCLUSION_NO_STORE: { | |
message: "<b>Be careful!</b> The seller doesn't have a store. It is very dangerous to purchase there!" | |
}, | |
SELLER_CHECK_CONCLUSION_UNSURE: { | |
message: "The seller has sold not enough items to make any conclusions about him. Be careful." | |
}, | |
SELLER_CHECK_CONCLUSION_EXTRA_HIGH: { | |
message: "Trust level — high. Read feedbacks, contact the seller. If everything is allright — make a purchase." | |
}, | |
SELLER_CHECK_CONCLUSION_HIGH: { | |
message: "Trust level — average. Read feedback, contact the seller. If everything is allright — make a purchase." | |
}, | |
SELLER_CHECK_CONCLUSION_NORMAL: { | |
message: "Trust level — average. Pay the maximum attention during your purchase." | |
}, | |
SELLER_CHECK_CONCLUSION_LOW: { | |
message: "Trust level — low. We advice to refuse from the purchase." | |
}, | |
SELLER_CHECK_CONCLUSION_EXTRA_LOW: { | |
message: "Trust level — very low! We advice to refuse from the purchase." | |
}, | |
SETTINGS_LABEL_PANEL_ALL_PAGES: { | |
message: "Show the extension panel on all AliExpress pages" | |
}, | |
SETTINGS_LABEL_PAGE_SELLER_CHECK: { | |
message: "Show the seller check block on the product page" | |
}, | |
SETTINGS_LABEL_NOTIFICATIONS_BADGE: { | |
message: "Show the number of new notifications on the panel" | |
}, | |
SETTINGS_LABEL_THEME: { | |
message: "Color scheme" | |
}, | |
SETTINGS_LABEL_LANGUAGE: { | |
message: "Language" | |
}, | |
SETTINGS_LABEL_CURRENCY: { | |
message: "Currency" | |
}, | |
SETTINGS_LABEL_PUSH_NOTIFICATIONS: { | |
message: "PUSH notifications" | |
}, | |
SETTINGS_LABEL_EMAIL_NOTIFICATIONS: { | |
message: "E-mail notifications" | |
}, | |
SETTINGS_NOTE_CURRENCY: { | |
message: "Extension prices in this currency may be different from AliExpress prices by 1–5%." | |
}, | |
SETTINGS_NOTE_SIGN_UP: { | |
message: "Sign up" | |
}, | |
SETTINGS_NOTE_OR: { | |
message: "or" | |
}, | |
SETTINGS_NOTE_LOGIN: { | |
message: "log in" | |
}, | |
SETTINGS_NOTE_END: { | |
message: "using the AliTools account<br> in order to use all features of the add-on." | |
}, | |
SETTINGS_THEMES_DEFAULT: { | |
message: "dark" | |
}, | |
SETTINGS_THEMES_LIGHT: { | |
message: "light" | |
}, | |
STATIC_SETTINGS_TITLE: { | |
message: "Settings — AliTools" | |
}, | |
STATIC_TRACKING_PACKAGES_TITLE: { | |
message: "Package tracking — AliTools" | |
}, | |
STATIC_TRACKING_ARCHIVE_TITLE: { | |
message: "Package archive — AliTools" | |
}, | |
TAB_FAVORITES_TITLE: { | |
message: "Favorites" | |
}, | |
TAB_FAVORITES_EMPTY_TITLE: { | |
message: "There is nothing here yet" | |
}, | |
TAB_FAVORITES_EMPTY_MESSAGE: { | |
message: "Add products here in order to monitor their prices" | |
}, | |
TAB_FAVORITES_LOADING_MESSAGE: { | |
message: "Loading products..." | |
}, | |
TAB_FAVORITES_ERROR_MESSAGE: { | |
message: "There was an error when loading products" | |
}, | |
TAB_FAVORITES_MORE: { | |
message: "Show more products" | |
}, | |
TAB_PRICE_HISTORY_TITLE: { | |
message: "Price changes" | |
}, | |
TAB_PRICE_HISTORY_TIP: { | |
message: "We will notify if the price becomes lower.<br>The product will be added to Favorites." | |
}, | |
TAB_PRICE_HISTORY_DISABLED_MESSAGE: { | |
message: "Go to the product page to see how its price has changed for the last 3 months" | |
}, | |
TAB_PRICE_HISTORY_LOADING_MESSAGE: { | |
message: "Loading information about the product..." | |
}, | |
TAB_PRICE_HISTORY_ERROR_MESSAGE: { | |
message: "There was an error when loading the history of price changes" | |
}, | |
TAB_SELLER_CHECK_TITLE: { | |
message: "Seller rating" | |
}, | |
TAB_SELLER_CHECK_EMPTY_MESSAGE: { | |
message: "We have not collected enough information about this seller yet" | |
}, | |
TAB_SELLER_CHECK_DISABLED_MESSAGE: { | |
message: "Go to the product page to see the rating of the seller" | |
}, | |
TAB_SELLER_CHECK_LOADING_MESSAGE: { | |
message: "Collecting information about the seller..." | |
}, | |
TAB_SELLER_CHECK_ERROR_MESSAGE: { | |
message: "There was an error when checking the seller" | |
}, | |
TAB_REVIEWS_TITLE: { | |
message: "Reviews" | |
}, | |
TAB_REVIEWS_DISABLED_MESSAGE: { | |
message: "Go to the product page to see its reviews" | |
}, | |
TAB_REVIEWS_EMPTY_MESSAGE: { | |
message: "We didn't find any reviews for this product" | |
}, | |
TAB_REVIEWS_LOADING_MESSAGE: { | |
message: "Loading information about the product..." | |
}, | |
TAB_REVIEWS_ERROR_MESSAGE: { | |
message: "There has been an error when loading reviews" | |
}, | |
TRACKING_TAB_PACKAGES: { | |
message: "Package tracking" | |
}, | |
TRACKING_TAB_ARCHIVE: { | |
message: "Archive" | |
}, | |
TRACKING_INPUT_PLACEHOLDER: { | |
message: "Tracking number" | |
}, | |
TRACKING_MESSAGE_EDIT_NAME: { | |
message: "Enter a name for the package" | |
}, | |
TRACKING_MESSAGE_PACKAGES_EMPTY: { | |
message: "To find out where your package currently is, type in the tracking code<br />which the seller gave you." | |
}, | |
TRACKING_MESSAGE_ARCHIVE_EMPTY: { | |
message: "There is nothing there.<br />You can archive delivered parcels to avoid confusion." | |
}, | |
TRACKING_MESSAGE_LOADING: { | |
message: "Loading..." | |
}, | |
TRACKING_MESSAGE_LOADING_ERROR: { | |
message: "There was an error when loading packages." | |
}, | |
TRACKING_ACTION_SELECT_ALL: { | |
message: "Open all packages<br />on same page" | |
}, | |
TRACKING_ACTION_UPDATE: { | |
message: "Edit" | |
}, | |
TRACKING_ACTION_REMOVE: { | |
message: "Remove" | |
}, | |
TRACKING_ACTION_ARCHIVE: { | |
message: "Archive" | |
}, | |
TRACKING_ACTION_RESTORE: { | |
message: "Restore" | |
}, | |
VIDEO_THUMB_VIEWS: { | |
message: "$VIEWS$ views", | |
placeholders: { | |
views: { | |
content: "$1", | |
example: "5460" | |
} | |
} | |
} | |
} | |
}, function (e, t) { | |
e.exports = { | |
EXTENSION_NAME: { | |
message: "AliTools" | |
}, | |
EXTENSION_SHORT_NAME: { | |
message: "AliTools" | |
}, | |
EXTENSION_DESCRIPTION: { | |
message: "Su fiable ayudante en AliExpress" | |
}, | |
BUTTON_ADD_FAVORITE_MESSAGE: { | |
message: "Vigilar el precio" | |
}, | |
BUTTON_ADD_FAVORITE_POPOVER: { | |
message: "Agregar el producto a los favoritos" | |
}, | |
BUTTON_REMOVE_FAVORITE_MESSAGE: { | |
message: "Dejar de seguir" | |
}, | |
BUTTON_REMOVE_FAVORITE_POPOVER: { | |
message: "Eliminar el producto de los favoritos" | |
}, | |
FILTER_ALL: { | |
message: "Todos" | |
}, | |
FILTER_PHOTOS: { | |
message: "Fotos" | |
}, | |
FILTER_VIDEOS: { | |
message: "Vídeos" | |
}, | |
LEGACY_SELLER_CHECK_TITLE: { | |
message: "AliTools puntuación de vendedor" | |
}, | |
LEGACY_SELLER_CHECK_COMPLAINTS_BEGIN: { | |
message: "Tenemos" | |
}, | |
LEGACY_SELLER_CHECK_COMPLAINTS_END: { | |
message: "quejas del vendedor" | |
}, | |
LEGACY_SELLER_CHECK_CONCLUSION: { | |
message: "Conclusión" | |
}, | |
MODAL_AUTH_DESCRIPTION: { | |
message: "Para agregar los productos a los favoritos<br />y recibir avisos sobre rebajas de precio,<br /><b>regístrese</b> o <b>entre</b> usando la cuenta de AliTools." | |
}, | |
MODAL_AUTH_ACTION: { | |
message: "Continuar" | |
}, | |
MODAL_SETTINGS_BASE_TITLE: { | |
message: "Configuración general" | |
}, | |
MODAL_SETTINGS_L10N_TITLE: { | |
message: "Localización" | |
}, | |
MODAL_SETTINGS_NOTIFICATIONS_TITLE: { | |
message: "Notificaciones" | |
}, | |
MODAL_SETTINGS_AUTH_LOGIN: { | |
message: "Entrar" | |
}, | |
MODAL_SETTINGS_AUTH_SIGN_UP: { | |
message: "Registrarse" | |
}, | |
MODAL_SETTINGS_FOOTER_ABOUT: { | |
message: "Sobre nosotros" | |
}, | |
MODAL_SETTINGS_FOOTER_FEEDBACK: { | |
message: "Dejar una queja u ofrecer una idea" | |
}, | |
MODAL_VIDEOS_TITLE: { | |
message: "Video reportajes" | |
}, | |
POPUP_CONTROL_FAVORITES: { | |
message: "Mis favoritos" | |
}, | |
POPUP_CONTROL_PACKAGES: { | |
message: "Mis paquetes" | |
}, | |
POPUP_CONTROL_SETTINGS: { | |
message: "Ajustes" | |
}, | |
POPUP_PLACEHOLDER_TRACKING: { | |
message: "Seguir el paquete" | |
}, | |
POPUP_FOOTER_TUTORIAL: { | |
message: "¿Cómo usarlo?" | |
}, | |
POPUP_FOOTER_ABOUT: { | |
message: "Sobre nosotros" | |
}, | |
POPUP_FOOTER_FEEDBACK: { | |
message: "Contactar con desarrolladores" | |
}, | |
POPUP_FOOTER_GOTO: { | |
message: "Ir a AliExpress" | |
}, | |
PRICE_DYNAMICS_NEGATIVE: { | |
message: "bajado" | |
}, | |
PRICE_DYNAMICS_NEUTRAL: { | |
message: "no ha cambiado" | |
}, | |
PRICE_DYNAMICS_POSITIVE: { | |
message: "subido" | |
}, | |
SORT_LAST: { | |
message: "Últimos" | |
}, | |
SORT_POPULAR: { | |
message: "Populares" | |
}, | |
SORT_LOWEST_PRICE: { | |
message: "Con precio rebajado" | |
}, | |
SELLER_CHECK_REASON_AGE_GT_3_YEARS: { | |
message: "Este vendedor está registrado más de tres años." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_2_YEARS: { | |
message: "Este vendedor está registrado más de dos años." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_1_YEAR: { | |
message: "Este vendedor está registrado más de un año." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_HALF_YEAR: { | |
message: "Este vendedor es novato, está registrado medio año." | |
}, | |
SELLER_CHECK_REASON_AGE_LT_HALF_YEAR: { | |
message: "Este vendedor es novato, está registrado menos de medio año." | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NONE: { | |
message: "¡Este vendedor no tiene ningún comentario!" | |
}, | |
SELLER_CHECK_REASON_REVIEWS_POSITIVE_ALL: { | |
message: "Este vendedor tiene sólo comentarios positivos. Preste atención." | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_ALL: { | |
message: "Este vendedor tiene sólo comentarios negativos. <b>¡Preste atención!</b>" | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_MUCH: { | |
message: "$RATE$ compradores no están contentos con los productos de este vendedor. <b>¡Preste atención!</b>", | |
placeholders: { | |
rate: { | |
content: "$1", | |
example: "50%" | |
} | |
} | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_FEW: { | |
message: "$RATE$ compradores no están contentos con los productos de este vendedor.", | |
placeholders: { | |
rate: { | |
content: "$1", | |
example: "10%" | |
} | |
} | |
}, | |
SELLER_CHECK_REASON_DETAIL_COMMUNICATION_POSITIVE: { | |
message: "Los compradores no están contentos de la comunicación con este vendedor." | |
}, | |
SELLER_CHECK_REASON_DETAIL_COMMUNICATION_NEGATIVE: { | |
message: "No todos los compradores están contentos de la comunicación con este vendedor." | |
}, | |
SELLER_CHECK_REASON_DETAIL_DESCRIPTION_POSITIVE: { | |
message: "Los productos de este vendedor concuerdan con la descripción." | |
}, | |
SELLER_CHECK_REASON_DETAIL_DESCRIPTION_NEGATIVE: { | |
message: "No todos los productos de este vendedor concuerdan con la descripción." | |
}, | |
SELLER_CHECK_REASON_DETAIL_SHIPPING_POSITIVE: { | |
message: "Este vendedor envía el producto rápidamente." | |
}, | |
SELLER_CHECK_REASON_DETAIL_SHIPPING_NEGATIVE: { | |
message: "Este vendedor puede retrasar el envío del producto." | |
}, | |
SELLER_CHECK_CONCLUSION_NO_STORE: { | |
message: "<b>¡Atención!</b> Este vendedor no tiene tienda, ¡comprar aquí es muy peligroso!" | |
}, | |
SELLER_CHECK_CONCLUSION_UNSURE: { | |
message: "Este vendedor ha vendido pocos productos como para sacar conclusiones. Preste atención." | |
}, | |
SELLER_CHECK_CONCLUSION_EXTRA_HIGH: { | |
message: "Nivel de confianza — muy alto. Lea los comentarios, comuníquese con el vendedor. Si todo le parece conveniente — compre." | |
}, | |
SELLER_CHECK_CONCLUSION_HIGH: { | |
message: "Nivel de confianza — alto. Lea los comentarios, comuníquese con el vendedor. Si todo le parece conveniente — compre." | |
}, | |
SELLER_CHECK_CONCLUSION_NORMAL: { | |
message: "Nivel de confianza — normal. Tenga máxima atención a la hora de comprar." | |
}, | |
SELLER_CHECK_CONCLUSION_LOW: { | |
message: "Nivel de confianza — bajo. Le aconsejamos no comprar." | |
}, | |
SELLER_CHECK_CONCLUSION_EXTRA_LOW: { | |
message: "¡Este vendedor es un estafador! Le aconsejamos no comprar." | |
}, | |
SETTINGS_LABEL_PANEL_ALL_PAGES: { | |
message: "Mostrar el panel de la extensión en todas las páginas de AliExpress" | |
}, | |
SETTINGS_LABEL_NOTIFICATIONS_BADGE: { | |
message: "Mostrar en el panel la cantidad de avisos nuevos" | |
}, | |
SETTINGS_LABEL_PAGE_SELLER_CHECK: { | |
message: "Mostrar el bloque de comprobación del vendedor en la página del producto" | |
}, | |
SETTINGS_LABEL_THEME: { | |
message: "Esquema de colores" | |
}, | |
SETTINGS_LABEL_LANGUAGE: { | |
message: "Idioma" | |
}, | |
SETTINGS_LABEL_CURRENCY: { | |
message: "Moneda" | |
}, | |
SETTINGS_LABEL_PUSH_NOTIFICATIONS: { | |
message: "Avisos PUSH" | |
}, | |
SETTINGS_LABEL_EMAIL_NOTIFICATIONS: { | |
message: "Avisos E-mail" | |
}, | |
SETTINGS_NOTE_CURRENCY: { | |
message: "Extension prices in this currency may be different from AliExpress prices by 1–5%." | |
}, | |
SETTINGS_NOTE_SIGN_UP: { | |
message: "Regístrese" | |
}, | |
SETTINGS_NOTE_OR: { | |
message: "o" | |
}, | |
SETTINGS_NOTE_LOGIN: { | |
message: "entre" | |
}, | |
SETTINGS_NOTE_END: { | |
message: "usando la cuenta AliTools,<br> para disfrutar de todas las capacidades de extensión." | |
}, | |
SETTINGS_THEMES_DEFAULT: { | |
message: "oscuro" | |
}, | |
SETTINGS_THEMES_LIGHT: { | |
message: "claro" | |
}, | |
STATIC_SETTINGS_TITLE: { | |
message: "Ajustes — AliTools" | |
}, | |
STATIC_TRACKING_PACKAGES_TITLE: { | |
message: "Seguimiento del paquete — AliTools" | |
}, | |
STATIC_TRACKING_ARCHIVE_TITLE: { | |
message: "Archivo de paquetes — AliTools" | |
}, | |
TAB_FAVORITES_TITLE: { | |
message: "Favoritos" | |
}, | |
TAB_FAVORITES_EMPTY_TITLE: { | |
message: "De momento no hay" | |
}, | |
TAB_FAVORITES_EMPTY_MESSAGE: { | |
message: "Agregue aquí los productos, para hacer seguimiento de precios" | |
}, | |
TAB_FAVORITES_LOADING_MESSAGE: { | |
message: "Cargando productos..." | |
}, | |
TAB_FAVORITES_ERROR_MESSAGE: { | |
message: "Se ha producido un error al cargar productos" | |
}, | |
TAB_FAVORITES_MORE: { | |
message: "Mostrar más" | |
}, | |
TAB_PRICE_HISTORY_TITLE: { | |
message: "Historial del precio" | |
}, | |
TAB_PRICE_HISTORY_TIP: { | |
message: "Le comunicaremos sobre la rebaja del precio.<br>El producto se agregará a los favoritos." | |
}, | |
TAB_PRICE_HISTORY_DISABLED_MESSAGE: { | |
message: "Pase a la página del producto, para ver los cambios de precio en los últimos 3 meses" | |
}, | |
TAB_PRICE_HISTORY_LOADING_MESSAGE: { | |
message: "Cargando la información sobre el producto..." | |
}, | |
TAB_PRICE_HISTORY_ERROR_MESSAGE: { | |
message: "Ha ocurrido un error durante la carga del historial de precios" | |
}, | |
TAB_SELLER_CHECK_TITLE: { | |
message: "Puntuación del vendedor" | |
}, | |
TAB_SELLER_CHECK_DISABLED_MESSAGE: { | |
message: "Pase a la página del producto, para ver la puntuación del vendedor" | |
}, | |
TAB_SELLER_CHECK_LOADING_MESSAGE: { | |
message: "Reuniendo la información sobre el vendedor..." | |
}, | |
TAB_SELLER_CHECK_ERROR_MESSAGE: { | |
message: "Ha ocurrido un error durante la comprobación del vendedor" | |
}, | |
TAB_REVIEWS_TITLE: { | |
message: "Сríticas" | |
}, | |
TAB_REVIEWS_DISABLED_MESSAGE: { | |
message: "Pase a la página del producto, para ver los críticas" | |
}, | |
TAB_REVIEWS_EMPTY_MESSAGE: { | |
message: "No hemos encontrado críticas para este producto" | |
}, | |
TAB_REVIEWS_LOADING_MESSAGE: { | |
message: "Cargando información del producto..." | |
}, | |
TAB_REVIEWS_ERROR_MESSAGE: { | |
message: "Ha ocurrido un error durante la carga del críticas" | |
}, | |
TRACKING_TAB_PACKAGES: { | |
message: "Seguimiento del paquete" | |
}, | |
TRACKING_TAB_ARCHIVE: { | |
message: "Archivo" | |
}, | |
TRACKING_INPUT_PLACEHOLDER: { | |
message: "El número de rastreo" | |
}, | |
TRACKING_MESSAGE_EDIT_NAME: { | |
message: "Introduzca un nombre para el paquete" | |
}, | |
TRACKING_MESSAGE_PACKAGES_EMPTY: { | |
message: "Para averiguar dónde se encuentra actualmente su paquete, escriba el código de seguimiento<br />que el vendedor le dio." | |
}, | |
TRACKING_MESSAGE_ARCHIVE_EMPTY: { | |
message: "No hay nada allí.<br />Puede archivar paquetes entregados para evitar confusiones." | |
}, | |
TRACKING_MESSAGE_LOADING: { | |
message: "Cargando..." | |
}, | |
TRACKING_MESSAGE_LOADING_ERROR: { | |
message: "Se ha producido un error al cargar los paquetes." | |
}, | |
TRACKING_ACTION_SELECT_ALL: { | |
message: "Abrir todos los paquetes<br />en la misma página" | |
}, | |
TRACKING_ACTION_UPDATE: { | |
message: "Editar" | |
}, | |
TRACKING_ACTION_REMOVE: { | |
message: "Retirar" | |
}, | |
TRACKING_ACTION_ARCHIVE: { | |
message: "Archivo" | |
}, | |
TRACKING_ACTION_RESTORE: { | |
message: "Restaurar" | |
}, | |
VIDEO_THUMB_VIEWS: { | |
message: "$VIEWS$ visitas", | |
placeholders: { | |
views: { | |
content: "$1", | |
example: "5460" | |
} | |
} | |
} | |
} | |
}, function (e, t) { | |
e.exports = { | |
EXTENSION_NAME: { | |
message: "AliTools" | |
}, | |
EXTENSION_SHORT_NAME: { | |
message: "AliTools" | |
}, | |
EXTENSION_DESCRIPTION: { | |
message: "Votre assistant fiable à l'AliExpress" | |
}, | |
BUTTON_ADD_FAVORITE_MESSAGE: { | |
message: "Suivre le prix" | |
}, | |
BUTTON_ADD_FAVORITE_POPOVER: { | |
message: "Ajouter cette marchandise à vos favoris" | |
}, | |
BUTTON_REMOVE_FAVORITE_MESSAGE: { | |
message: "Cesser de suivre" | |
}, | |
BUTTON_REMOVE_FAVORITE_POPOVER: { | |
message: "Retirer cette marchandise de vos favoris" | |
}, | |
FILTER_ALL: { | |
message: "Tous" | |
}, | |
FILTER_PHOTOS: { | |
message: "Photos" | |
}, | |
FILTER_VIDEOS: { | |
message: "Vidéos" | |
}, | |
LEGACY_SELLER_CHECK_TITLE: { | |
message: "L'évaluation de vendeur à l'AliTools" | |
}, | |
LEGACY_SELLER_CHECK_COMPLAINTS_BEGIN: { | |
message: "Nous avons des plaintes" | |
}, | |
LEGACY_SELLER_CHECK_COMPLAINTS_END: { | |
message: "concernant le vendeur" | |
}, | |
LEGACY_SELLER_CHECK_CONCLUSION: { | |
message: "La conclusion" | |
}, | |
MODAL_AUTH_DESCRIPTION: { | |
message: "Pour ajouter des marchandises à vos favoris<br />et être informé des baisses de prix,<br /><b>inscrivez-vous</b> ou <b>connectez-vous </b> à votre compte en utisant l'AliTools." | |
}, | |
MODAL_AUTH_ACTION: { | |
message: "Continuer" | |
}, | |
MODAL_SETTINGS_BASE_TITLE: { | |
message: "Les configurations de l'extension" | |
}, | |
MODAL_SETTINGS_L10N_TITLE: { | |
message: "La localisation" | |
}, | |
MODAL_SETTINGS_NOTIFICATIONS_TITLE: { | |
message: "La notification de réduction de prix" | |
}, | |
MODAL_SETTINGS_AUTH_LOGIN: { | |
message: "La connexion" | |
}, | |
MODAL_SETTINGS_AUTH_SIGN_UP: { | |
message: "L'inscription" | |
}, | |
MODAL_SETTINGS_FOOTER_ABOUT: { | |
message: "À propos de nous" | |
}, | |
MODAL_SETTINGS_FOOTER_FEEDBACK: { | |
message: "Se plaindre ou proposer une idée" | |
}, | |
MODAL_VIDEOS_TITLE: { | |
message: "Les comptes-rendus vidéo" | |
}, | |
POPUP_CONTROL_FAVORITES: { | |
message: "Mes favoris" | |
}, | |
POPUP_CONTROL_PACKAGES: { | |
message: "Mes forfaits" | |
}, | |
POPUP_CONTROL_SETTINGS: { | |
message: "Paramètres" | |
}, | |
POPUP_PLACEHOLDER_TRACKING: { | |
message: "Suivre un colis" | |
}, | |
POPUP_FOOTER_TUTORIAL: { | |
message: "Comment utiliser?" | |
}, | |
POPUP_FOOTER_ABOUT: { | |
message: "Sur nous" | |
}, | |
POPUP_FOOTER_FEEDBACK: { | |
message: "Ecrire aux concepteurs" | |
}, | |
POPUP_FOOTER_GOTO: { | |
message: "Passer à AliExpress" | |
}, | |
PRICE_DYNAMICS_NEGATIVE: { | |
message: "diminué" | |
}, | |
PRICE_DYNAMICS_NEUTRAL: { | |
message: "ne change pas" | |
}, | |
PRICE_DYNAMICS_POSITIVE: { | |
message: "augmenté" | |
}, | |
SORT_LAST: { | |
message: "Derniers" | |
}, | |
SORT_POPULAR: { | |
message: "Populaires" | |
}, | |
SORT_LOWEST_PRICE: { | |
message: "Des prix réduits" | |
}, | |
SELLER_CHECK_REASON_AGE_GT_3_YEARS: { | |
message: "Le vendeur est sur la plate forme de commerce en ligne plus de trois années." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_2_YEARS: { | |
message: "Le vendeur est sur la plate forme de commerce en ligne plus de deux années." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_1_YEAR: { | |
message: "Le vendeur est sur la plate forme de commerce en ligne plus d'une année." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_HALF_YEAR: { | |
message: "Le vendeur est débutant,six mois sur la plate forme de commerce en ligne." | |
}, | |
SELLER_CHECK_REASON_AGE_LT_HALF_YEAR: { | |
message: "Le vendeur est débutant, moins de six mois sur la plate forme de commerce en ligne." | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NONE: { | |
message: "Le vendeur n'a aucun commentaire!" | |
}, | |
SELLER_CHECK_REASON_REVIEWS_POSITIVE_ALL: { | |
message: "Le vendeur n'a que de bons commentaires.Soyez attentifs!" | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_ALL: { | |
message: "Le vendeur n'a que de mauvais commentaires.<b>Soyez attentifs!</b>" | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_MUCH: { | |
message: "$RATE$ des clients qui ne sont pas satisfaits des marchandises du vendeur.<b>Soyez attentifs!</b>", | |
placeholders: { | |
rate: { | |
content: "$1", | |
example: "50%" | |
} | |
} | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_FEW: { | |
message: "$RATE$ des clients qui ne sont pas satisfaits des marchandises du vendeur.", | |
placeholders: { | |
rate: { | |
content: "$1", | |
example: "10%" | |
} | |
} | |
}, | |
SELLER_CHECK_REASON_DETAIL_COMMUNICATION_POSITIVE: { | |
message: "Les clients sont satisfaits de la communication avec le vendeur." | |
}, | |
SELLER_CHECK_REASON_DETAIL_COMMUNICATION_NEGATIVE: { | |
message: "Tous les clients ne sont pas satisfaits de la communication avec le vendeur." | |
}, | |
SELLER_CHECK_REASON_DETAIL_DESCRIPTION_POSITIVE: { | |
message: "Les marchandises du vendeur correspondent à la description." | |
}, | |
SELLER_CHECK_REASON_DETAIL_DESCRIPTION_NEGATIVE: { | |
message: "Toutes les marchandises ne correspondent pas à la description." | |
}, | |
SELLER_CHECK_REASON_DETAIL_SHIPPING_POSITIVE: { | |
message: "Le vendeur expédie vite la marchandise." | |
}, | |
SELLER_CHECK_REASON_DETAIL_SHIPPING_NEGATIVE: { | |
message: " Le vendeur peut retarder l'expédition de la marchandise." | |
}, | |
SELLER_CHECK_CONCLUSION_NO_STORE: { | |
message: "<b>Attention!</b> Le vendeur n'a pas le magasin, il est très dangereux d'acheter ici!" | |
}, | |
SELLER_CHECK_CONCLUSION_UNSURE: { | |
message: "Le vendeur a vendu peu de marchandises pour tirer des conclusions sur lui. Soyez attentifs." | |
}, | |
SELLER_CHECK_CONCLUSION_EXTRA_HIGH: { | |
message: "Le degré de confiance est élevé. Lisez les commentaires parlez au vendeur. Si vous êtes satisfait vous pouvez effectuer un achat." | |
}, | |
SELLER_CHECK_CONCLUSION_HIGH: { | |
message: "Le degré de confiance est moyen. Lisez les commentaires parlez au vendeur. Si vous êtes satisfait vous pouvez effectuer un achat." | |
}, | |
SELLER_CHECK_CONCLUSION_NORMAL: { | |
message: "Le degré de confiance est moyen. Soyez extrêmement attentifs lors de l'achat." | |
}, | |
SELLER_CHECK_CONCLUSION_LOW: { | |
message: "Le degré de confiance est bas. Nous vous recommandons de renoncer à l'achat." | |
}, | |
SELLER_CHECK_CONCLUSION_EXTRA_LOW: { | |
message: "Le vendeur est un escroc! Nous vous recommandons de renoncer à l'achat." | |
}, | |
SETTINGS_LABEL_PANEL_ALL_PAGES: { | |
message: "Afficher le panneau d’extension sur toutes les pages AliExpress" | |
}, | |
SETTINGS_LABEL_PAGE_SELLER_CHECK: { | |
message: "Afficher le bloc du contrôle du vendeur sur les pages de la marchandise" | |
}, | |
SETTINGS_LABEL_NOTIFICATIONS_BADGE: { | |
message: "Afficher la quantité de nouvelles notifications sur le panneau" | |
}, | |
SETTINGS_LABEL_THEME: { | |
message: "Schéma de couleur" | |
}, | |
SETTINGS_LABEL_LANGUAGE: { | |
message: "La langue" | |
}, | |
SETTINGS_LABEL_CURRENCY: { | |
message: "La Devise" | |
}, | |
SETTINGS_LABEL_PUSH_NOTIFICATIONS: { | |
message: "Les notifications Push" | |
}, | |
SETTINGS_LABEL_EMAIL_NOTIFICATIONS: { | |
message: "Les notifications E-mail" | |
}, | |
SETTINGS_NOTE_CURRENCY: { | |
message: "Extension prices in this currency may be different from AliExpress prices by 1–5%." | |
}, | |
SETTINGS_NOTE_SIGN_UP: { | |
message: "Inscrivez-vous" | |
}, | |
SETTINGS_NOTE_OR: { | |
message: "ou" | |
}, | |
SETTINGS_NOTE_LOGIN: { | |
message: "Connectez-vous" | |
}, | |
SETTINGS_NOTE_END: { | |
message: "en utilisant le compte de l'AliTools,<br> pour utiliser toutes les possibilités de l'extension." | |
}, | |
SETTINGS_THEMES_DEFAULT: { | |
message: "sombre" | |
}, | |
SETTINGS_THEMES_LIGHT: { | |
message: "clair" | |
}, | |
STATIC_SETTINGS_TITLE: { | |
message: "Paramètres — AliTools" | |
}, | |
STATIC_TRACKING_PACKAGES_TITLE: { | |
message: "Suivi des colis — AliTools" | |
}, | |
STATIC_TRACKING_ARCHIVE_TITLE: { | |
message: "Archive des colis — AliTools" | |
}, | |
TAB_FAVORITES_TITLE: { | |
message: "Vos favoris" | |
}, | |
TAB_FAVORITES_EMPTY_TITLE: { | |
message: "Il n'y a encore rien ici" | |
}, | |
TAB_FAVORITES_EMPTY_MESSAGE: { | |
message: "Ajoutez ici les marchandises pour suivre les prix" | |
}, | |
TAB_FAVORITES_LOADING_MESSAGE: { | |
message: "Chargement des produits..." | |
}, | |
TAB_FAVORITES_ERROR_MESSAGE: { | |
message: "Une erreur s'est produite lors du chargement des produits" | |
}, | |
TAB_FAVORITES_MORE: { | |
message: "Montre plus" | |
}, | |
TAB_PRICE_HISTORY_TITLE: { | |
message: "L'évolution des prix " | |
}, | |
TAB_PRICE_HISTORY_TIP: { | |
message: "Nous vous informeront de la réduction du prix.<br>La marchandise sera ajoutée à vos favoris." | |
}, | |
TAB_PRICE_HISTORY_DISABLED_MESSAGE: { | |
message: "Visitez la page de la marchandise pour voir les changements de prix au cours des 3 derniers mois " | |
}, | |
TAB_PRICE_HISTORY_LOADING_MESSAGE: { | |
message: "Le téléchargement des informations sur la marchandise..." | |
}, | |
TAB_PRICE_HISTORY_ERROR_MESSAGE: { | |
message: "L'erreur est survenue lors du téléchargement de l'histoire des prix" | |
}, | |
TAB_SELLER_CHECK_TITLE: { | |
message: "L'évaluation de vendeur" | |
}, | |
TAB_SELLER_CHECK_DISABLED_MESSAGE: { | |
message: "Visitez la page de la marchandise pour voir l'évaluation de vendeur" | |
}, | |
TAB_SELLER_CHECK_LOADING_MESSAGE: { | |
message: "La collecte d'informations sur le vendeur..." | |
}, | |
TAB_SELLER_CHECK_ERROR_MESSAGE: { | |
message: "Une erreur est survenue lors de la vérification du vendeur" | |
}, | |
TAB_REVIEWS_TITLE: { | |
message: "Les revues" | |
}, | |
TAB_REVIEWS_DISABLED_MESSAGE: { | |
message: "Visitez la page de la marchandise pour voir les revues" | |
}, | |
TAB_REVIEWS_EMPTY_MESSAGE: { | |
message: "Nous n'avons pas trouvé des revues d cette marchandise" | |
}, | |
TAB_REVIEWS_LOADING_MESSAGE: { | |
message: "Le téléchargement des informations sur la marchandise..." | |
}, | |
TAB_REVIEWS_ERROR_MESSAGE: { | |
message: "L erreur est survenue lors du téléchargement des revues" | |
}, | |
TRACKING_TAB_PACKAGES: { | |
message: "Suivi des colis" | |
}, | |
TRACKING_TAB_ARCHIVE: { | |
message: "Archive" | |
}, | |
TRACKING_INPUT_PLACEHOLDER: { | |
message: "Numéro de traçage" | |
}, | |
TRACKING_MESSAGE_EDIT_NAME: { | |
message: "Entrez un nom pour le paquet" | |
}, | |
TRACKING_MESSAGE_PACKAGES_EMPTY: { | |
message: "Pour savoir où se trouve actuellement votre forfait, saisissez le code de suivi<br />que le vendeur vous a donné." | |
}, | |
TRACKING_MESSAGE_ARCHIVE_EMPTY: { | |
message: "Il n'y a rien là.<br />Vous pouvez archiver les colis livrés pour éviter toute confusion." | |
}, | |
TRACKING_MESSAGE_LOADING: { | |
message: "Chargement..." | |
}, | |
TRACKING_MESSAGE_LOADING_ERROR: { | |
message: "Une erreur s'est produite lors du chargement des colis." | |
}, | |
TRACKING_ACTION_SELECT_ALL: { | |
message: "Ouvrir tous les forfaits<br />sur la même page" | |
}, | |
TRACKING_ACTION_UPDATE: { | |
message: "Modifier" | |
}, | |
TRACKING_ACTION_REMOVE: { | |
message: "Retirer" | |
}, | |
TRACKING_ACTION_ARCHIVE: { | |
message: "Archiver" | |
}, | |
TRACKING_ACTION_RESTORE: { | |
message: "Restaurer" | |
}, | |
VIDEO_THUMB_VIEWS: { | |
message: "$VIEWS$ vues", | |
placeholders: { | |
views: { | |
content: "$1", | |
example: "5460" | |
} | |
} | |
} | |
} | |
}, function (e, t) { | |
e.exports = { | |
EXTENSION_NAME: { | |
message: "AliTools" | |
}, | |
EXTENSION_SHORT_NAME: { | |
message: "AliTools" | |
}, | |
EXTENSION_DESCRIPTION: { | |
message: "Seu ajudante seguro em AliExpress" | |
}, | |
BUTTON_ADD_FAVORITE_MESSAGE: { | |
message: "Siga o preço" | |
}, | |
BUTTON_ADD_FAVORITE_POPOVER: { | |
message: "Adicionar o produto aos seus favoritos" | |
}, | |
BUTTON_REMOVE_FAVORITE_MESSAGE: { | |
message: "Deixar de seguir" | |
}, | |
BUTTON_REMOVE_FAVORITE_POPOVER: { | |
message: "Retirar o produto dos favoritos " | |
}, | |
FILTER_ALL: { | |
message: "Tudos" | |
}, | |
FILTER_PHOTOS: { | |
message: "Fotos" | |
}, | |
FILTER_VIDEOS: { | |
message: "Vídeos" | |
}, | |
LEGACY_SELLER_CHECK_TITLE: { | |
message: "AliTools avaliação do vendedor" | |
}, | |
LEGACY_SELLER_CHECK_COMPLAINTS_BEGIN: { | |
message: "Temos" | |
}, | |
LEGACY_SELLER_CHECK_COMPLAINTS_END: { | |
message: "reclamação sobre o vendedor " | |
}, | |
LEGACY_SELLER_CHECK_CONCLUSION: { | |
message: "Conclusão" | |
}, | |
MODAL_AUTH_DESCRIPTION: { | |
message: "Para adicionar produtos aos seus favoritos e ser notificado sobre quedas de preços, cadastre-se ou acesse usando a conta AliTools." | |
}, | |
MODAL_AUTH_ACTION: { | |
message: "Prosseguir" | |
}, | |
MODAL_SETTINGS_BASE_TITLE: { | |
message: "Configurações gerais" | |
}, | |
MODAL_SETTINGS_L10N_TITLE: { | |
message: "Localização" | |
}, | |
MODAL_SETTINGS_NOTIFICATIONS_TITLE: { | |
message: "Notificações" | |
}, | |
MODAL_SETTINGS_AUTH_LOGIN: { | |
message: "Entrada" | |
}, | |
MODAL_SETTINGS_AUTH_SIGN_UP: { | |
message: "Cadastre-se" | |
}, | |
MODAL_SETTINGS_FOOTER_ABOUT: { | |
message: "Quem somos" | |
}, | |
MODAL_SETTINGS_FOOTER_FEEDBACK: { | |
message: "Queixar-se ou sugerir uma ideia" | |
}, | |
MODAL_VIDEOS_TITLE: { | |
message: "Resenhas em vídeo" | |
}, | |
POPUP_CONTROL_FAVORITES: { | |
message: "Meus favoritos" | |
}, | |
POPUP_CONTROL_PACKAGES: { | |
message: "Meus pacotes" | |
}, | |
POPUP_CONTROL_SETTINGS: { | |
message: "Configurações" | |
}, | |
POPUP_PLACEHOLDER_TRACKING: { | |
message: "Acompanhe o pacote" | |
}, | |
POPUP_FOOTER_TUTORIAL: { | |
message: "Como usar?" | |
}, | |
POPUP_FOOTER_ABOUT: { | |
message: "Quem somos" | |
}, | |
POPUP_FOOTER_FEEDBACK: { | |
message: "Escrever aos desenvolvedores" | |
}, | |
POPUP_FOOTER_GOTO: { | |
message: "Vá para AliExpress" | |
}, | |
PRICE_DYNAMICS_NEGATIVE: { | |
message: "caiu" | |
}, | |
PRICE_DYNAMICS_NEUTRAL: { | |
message: "inalteradas" | |
}, | |
PRICE_DYNAMICS_POSITIVE: { | |
message: "aumentou" | |
}, | |
SORT_LAST: { | |
message: "Recentes" | |
}, | |
SORT_POPULAR: { | |
message: "Populares" | |
}, | |
SORT_LOWEST_PRICE: { | |
message: "Com o preço reduzido" | |
}, | |
SELLER_CHECK_REASON_AGE_GT_3_YEARS: { | |
message: "O vendedor está no local há mais de três anos." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_2_YEARS: { | |
message: "O vendedor está no local há mais de dois anos." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_1_YEAR: { | |
message: "O vendedor está no local há mais de um ano." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_HALF_YEAR: { | |
message: "O vendedor é iniciante, seis meses que está no local." | |
}, | |
SELLER_CHECK_REASON_AGE_LT_HALF_YEAR: { | |
message: "O vendedor é iniciante, com menos de seis meses no local." | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NONE: { | |
message: "O vendedor não tem comentários!" | |
}, | |
SELLER_CHECK_REASON_REVIEWS_POSITIVE_ALL: { | |
message: "O vendedor tem apenas bons comentários. Tenha cuidado." | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_ALL: { | |
message: "O vendedor tem só comentários ruins.<b>Tenha cuidado.</b>" | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_MUCH: { | |
message: "$RATE$ compradores não estão insatisfeitos com os produtos do vendedor.<b>Tenha cuidado!</b>", | |
placeholders: { | |
rate: { | |
content: "$1", | |
example: "50%" | |
} | |
} | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_FEW: { | |
message: "$RATE$ compradores estão insatisfeitos com os produtos do vendedor.", | |
placeholders: { | |
rate: { | |
content: "$1", | |
example: "10%" | |
} | |
} | |
}, | |
SELLER_CHECK_REASON_DETAIL_COMMUNICATION_POSITIVE: { | |
message: "Os compradores estão satisfeitos da comunicação com o vendedor." | |
}, | |
SELLER_CHECK_REASON_DETAIL_COMMUNICATION_NEGATIVE: { | |
message: "Nem todos os clientes estão satisfeitos da comunicação com o vendedor." | |
}, | |
SELLER_CHECK_REASON_DETAIL_DESCRIPTION_POSITIVE: { | |
message: "Os produtos do vendedor correspondem à descrição." | |
}, | |
SELLER_CHECK_REASON_DETAIL_DESCRIPTION_NEGATIVE: { | |
message: "Nem todos os produtos do vendedor correspondem à descrição." | |
}, | |
SELLER_CHECK_REASON_DETAIL_SHIPPING_POSITIVE: { | |
message: "O vendedor envia os bens rapidamente." | |
}, | |
SELLER_CHECK_REASON_DETAIL_SHIPPING_NEGATIVE: { | |
message: "O vendedor pode demorar as entregas." | |
}, | |
SELLER_CHECK_CONCLUSION_NO_STORE: { | |
message: "<b>Atenção!</b>O vendedor não tem loja, comprar aqui é muito perigoso!" | |
}, | |
SELLER_CHECK_CONCLUSION_UNSURE: { | |
message: "O vendedor vendeu poucos produtos para tirar conclusões sobre ele. Tenha cuidado." | |
}, | |
SELLER_CHECK_CONCLUSION_EXTRA_HIGH: { | |
message: "O nível da confiança é alto. Leia opiniões, fale com o vendedor. Se você estiver satisfeito, compre." | |
}, | |
SELLER_CHECK_CONCLUSION_HIGH: { | |
message: "O nível da confiança é médio. Leia opiniões, fale com o vendedor. Se você estiver satisfeito, compre." | |
}, | |
SELLER_CHECK_CONCLUSION_NORMAL: { | |
message: "O nível da confiança é médio. Seja muito atento ao comprar." | |
}, | |
SELLER_CHECK_CONCLUSION_LOW: { | |
message: "O nível da confiança é baixo. Recomendamos vivamente abandonar a compra." | |
}, | |
SELLER_CHECK_CONCLUSION_EXTRA_LOW: { | |
message: "O vendedor é um trapaceiro! Recomendamos vivamente abandonar a compra." | |
}, | |
SETTINGS_LABEL_PANEL_ALL_PAGES: { | |
message: "Mostrar o painel da extensão em todas as páginas de AliExpress" | |
}, | |
SETTINGS_LABEL_NOTIFICATIONS_BADGE: { | |
message: "Mostrar no painel o número das novas notificações" | |
}, | |
SETTINGS_LABEL_PAGE_SELLER_CHECK: { | |
message: "Mostrar a unidade de teste do vendedor na página do produto" | |
}, | |
SETTINGS_LABEL_THEME: { | |
message: "Esquema de cores" | |
}, | |
SETTINGS_LABEL_LANGUAGE: { | |
message: "Língua" | |
}, | |
SETTINGS_LABEL_CURRENCY: { | |
message: "Moeda" | |
}, | |
SETTINGS_LABEL_PUSH_NOTIFICATIONS: { | |
message: "Notificações PUSH" | |
}, | |
SETTINGS_LABEL_EMAIL_NOTIFICATIONS: { | |
message: "Notificações por e-mail" | |
}, | |
SETTINGS_NOTE_CURRENCY: { | |
message: "Extension prices in this currency may be different from AliExpress prices by 1–5%." | |
}, | |
SETTINGS_NOTE_SIGN_UP: { | |
message: "Cadastre-se" | |
}, | |
SETTINGS_NOTE_OR: { | |
message: "ou" | |
}, | |
SETTINGS_NOTE_LOGIN: { | |
message: "acesse" | |
}, | |
SETTINGS_NOTE_END: { | |
message: "usando uma conta em AliTools,<br> para usar todas as possibilidades de extensão." | |
}, | |
SETTINGS_THEMES_DEFAULT: { | |
message: "escuro" | |
}, | |
SETTINGS_THEMES_LIGHT: { | |
message: "claro" | |
}, | |
STATIC_SETTINGS_TITLE: { | |
message: "Configurações — AliTools" | |
}, | |
STATIC_TRACKING_PACKAGES_TITLE: { | |
message: "Acompanhamento de pacotes — AliTools" | |
}, | |
STATIC_TRACKING_ARCHIVE_TITLE: { | |
message: "Pacote de arquivos — AliTools" | |
}, | |
TAB_FAVORITES_TITLE: { | |
message: "Favoritos" | |
}, | |
TAB_FAVORITES_EMPTY_TITLE: { | |
message: "Por ora não há nada" | |
}, | |
TAB_FAVORITES_EMPTY_MESSAGE: { | |
message: "Adicione produtos para seguir os preços" | |
}, | |
TAB_FAVORITES_LOADING_MESSAGE: { | |
message: "Carregando produtos..." | |
}, | |
TAB_FAVORITES_ERROR_MESSAGE: { | |
message: "Ocorreu um erro ao carregar produtos" | |
}, | |
TAB_FAVORITES_MORE: { | |
message: "Mostre mais" | |
}, | |
TAB_PRICE_HISTORY_TITLE: { | |
message: "Dinâmica dos preços" | |
}, | |
TAB_PRICE_HISTORY_TIP: { | |
message: "Nós anunciaremos uma queda de preços.<br> O produto será adicionado aos seus favoritos." | |
}, | |
TAB_PRICE_HISTORY_DISABLED_MESSAGE: { | |
message: "Visite a página do produto para ver as alterações no preço ao longo dos últimos 3 meses" | |
}, | |
TAB_PRICE_HISTORY_LOADING_MESSAGE: { | |
message: "Carregando informações do produto ..." | |
}, | |
TAB_PRICE_HISTORY_ERROR_MESSAGE: { | |
message: "Ocorreu um erro durante o download do histórico de preços" | |
}, | |
TAB_SELLER_CHECK_TITLE: { | |
message: "Classificação do vendedor" | |
}, | |
TAB_SELLER_CHECK_DISABLED_MESSAGE: { | |
message: "Visite a página do produto para ver a classificação do vendedor" | |
}, | |
TAB_SELLER_CHECK_LOADING_MESSAGE: { | |
message: "Coletando informações sobre o vendedor ..." | |
}, | |
TAB_SELLER_CHECK_ERROR_MESSAGE: { | |
message: "Ocorreu um erro durante a verificação do vendedor" | |
}, | |
TAB_REVIEWS_TITLE: { | |
message: "Avaliações" | |
}, | |
TAB_REVIEWS_DISABLED_MESSAGE: { | |
message: "Visite a página do produto para ver avaliações" | |
}, | |
TAB_REVIEWS_EMPTY_MESSAGE: { | |
message: "Não encontramos avaliações de este produto" | |
}, | |
TAB_REVIEWS_LOADING_MESSAGE: { | |
message: "Carregando informações do produto ..." | |
}, | |
TAB_REVIEWS_ERROR_MESSAGE: { | |
message: "Ocorreu um erro ao carregar avaliações" | |
}, | |
TRACKING_TAB_PACKAGES: { | |
message: "Acompanhamento de pacotes" | |
}, | |
TRACKING_TAB_ARCHIVE: { | |
message: "Arquivo" | |
}, | |
TRACKING_INPUT_PLACEHOLDER: { | |
message: "Numero de rastreio" | |
}, | |
TRACKING_MESSAGE_EDIT_NAME: { | |
message: "Insira um nome para o pacote" | |
}, | |
TRACKING_MESSAGE_PACKAGES_EMPTY: { | |
message: "Para saber onde está o seu pacote atualmente, digite o código de acompanhamento<br />que o vendedor lhe deu." | |
}, | |
TRACKING_MESSAGE_ARCHIVE_EMPTY: { | |
message: "Não há nada lá.<br />Você pode arquivar pacotes entregues para evitar confusão." | |
}, | |
TRACKING_MESSAGE_LOADING: { | |
message: "Carregando..." | |
}, | |
TRACKING_MESSAGE_LOADING_ERROR: { | |
message: "Ocorreu um erro ao carregar pacotes." | |
}, | |
TRACKING_ACTION_SELECT_ALL: { | |
message: "Abra todos os pacotes<br />na mesma página" | |
}, | |
TRACKING_ACTION_UPDATE: { | |
message: "Editar" | |
}, | |
TRACKING_ACTION_REMOVE: { | |
message: "Remover" | |
}, | |
TRACKING_ACTION_ARCHIVE: { | |
message: "Arquivar" | |
}, | |
TRACKING_ACTION_RESTORE: { | |
message: "Restaurar" | |
}, | |
VIDEO_THUMB_VIEWS: { | |
message: "$VIEWS$ visualizações", | |
placeholders: { | |
views: { | |
content: "$1", | |
example: "5460" | |
} | |
} | |
} | |
} | |
}, function (e, t) { | |
e.exports = { | |
EXTENSION_NAME: { | |
message: "AliTools" | |
}, | |
EXTENSION_SHORT_NAME: { | |
message: "AliTools" | |
}, | |
EXTENSION_DESCRIPTION: { | |
message: "Ваш надежный помощник на AliExpress" | |
}, | |
BUTTON_ADD_FAVORITE_MESSAGE: { | |
message: "Следить за ценой" | |
}, | |
BUTTON_ADD_FAVORITE_POPOVER: { | |
message: "Добавить товар в избранное" | |
}, | |
BUTTON_REMOVE_FAVORITE_MESSAGE: { | |
message: "Перестать следить" | |
}, | |
BUTTON_REMOVE_FAVORITE_POPOVER: { | |
message: "Удалить товар из избранного" | |
}, | |
BUTTON_TRY_AGAIN: { | |
message: "Повторить запрос" | |
}, | |
FILTER_ALL: { | |
message: "Все" | |
}, | |
FILTER_PHOTOS: { | |
message: "Фото" | |
}, | |
FILTER_VIDEOS: { | |
message: "Видео" | |
}, | |
LEGACY_SELLER_CHECK_TITLE: { | |
message: "AliTools рейтинг продавца" | |
}, | |
LEGACY_SELLER_CHECK_COMPLAINTS_BEGIN: { | |
message: "У нас есть" | |
}, | |
LEGACY_SELLER_CHECK_COMPLAINTS_END: { | |
message: "жалобы на продавца" | |
}, | |
LEGACY_SELLER_CHECK_CONCLUSION: { | |
message: "Вывод" | |
}, | |
MODAL_AUTH_DESCRIPTION: { | |
message: "Чтобы добавлять товары в избранное<br />и получать оповещения о падении цен,<br /><b>зарегистрируйтесь</b> или <b>войдите</b> используя AliTools-аккаунт." | |
}, | |
MODAL_AUTH_ACTION: { | |
message: "Продолжить" | |
}, | |
MODAL_SETTINGS_BASE_TITLE: { | |
message: "Общие настройки" | |
}, | |
MODAL_SETTINGS_L10N_TITLE: { | |
message: "Локализация" | |
}, | |
MODAL_SETTINGS_NOTIFICATIONS_TITLE: { | |
message: "Уведомления" | |
}, | |
MODAL_SETTINGS_AUTH_LOGIN: { | |
message: "Вход" | |
}, | |
MODAL_SETTINGS_AUTH_SIGN_UP: { | |
message: "Регистрация" | |
}, | |
MODAL_SETTINGS_FOOTER_ABOUT: { | |
message: "О нас" | |
}, | |
MODAL_SETTINGS_FOOTER_FEEDBACK: { | |
message: "Пожаловаться или предложить идею" | |
}, | |
MODAL_VIDEOS_TITLE: { | |
message: "Видеообзоры" | |
}, | |
POPUP_CONTROL_FAVORITES: { | |
message: "Избранное" | |
}, | |
POPUP_CONTROL_PACKAGES: { | |
message: "Посылки" | |
}, | |
POPUP_CONTROL_SETTINGS: { | |
message: "Настройки" | |
}, | |
POPUP_PLACEHOLDER_TRACKING: { | |
message: "Отследить посылку" | |
}, | |
POPUP_FOOTER_TUTORIAL: { | |
message: "Как пользоваться?" | |
}, | |
POPUP_FOOTER_ABOUT: { | |
message: "О нас" | |
}, | |
POPUP_FOOTER_FEEDBACK: { | |
message: "Написать разработчикам" | |
}, | |
POPUP_FOOTER_GOTO: { | |
message: "Перейти на AliExpress" | |
}, | |
PRICE_DYNAMICS_NEGATIVE: { | |
message: "понизилась" | |
}, | |
PRICE_DYNAMICS_NEUTRAL: { | |
message: "не меняется" | |
}, | |
PRICE_DYNAMICS_POSITIVE: { | |
message: "повысилась" | |
}, | |
PUSH_SINGLE_TITLE: { | |
message: "Снижена цена на товар" | |
}, | |
PUSH_MULTIPLE_TITLE: { | |
message: "Снижена цена на товары" | |
}, | |
PUSH_MULTIPLE_MORE: { | |
message: "и ещё $COUNT$ {pluralize, $COUNT$, другой|других|других}", | |
placeholders: { | |
count: { | |
content: "$1", | |
example: "10" | |
} | |
} | |
}, | |
SORT_LAST: { | |
message: "Последние" | |
}, | |
SORT_POPULAR: { | |
message: "Популярные" | |
}, | |
SORT_LOWEST_PRICE: { | |
message: "С упавшей ценой" | |
}, | |
SELLER_CHECK_REASON_AGE_GT_3_YEARS: { | |
message: "Продавец на площадке более трех лет." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_2_YEARS: { | |
message: "Продавец на площадке более двух лет." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_1_YEAR: { | |
message: "Продавец на площадке более года." | |
}, | |
SELLER_CHECK_REASON_AGE_GT_HALF_YEAR: { | |
message: "Продавец — новичок, полгода на площадке." | |
}, | |
SELLER_CHECK_REASON_AGE_LT_HALF_YEAR: { | |
message: "Продавец — новичок, меньше полугода на площадке." | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NONE: { | |
message: "У продавца нет ни одного отзыва!" | |
}, | |
SELLER_CHECK_REASON_REVIEWS_POSITIVE_ALL: { | |
message: "У продавца только хорошие отзывы. Будьте внимательны." | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_ALL: { | |
message: "У продавца только плохие отзывы. <b>Будьте внимательны!</b>" | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_MUCH: { | |
message: "$RATE$ покупателей недовольны товарами продавца. <b>Будьте внимательны!</b>", | |
placeholders: { | |
rate: { | |
content: "$1", | |
example: "50%" | |
} | |
} | |
}, | |
SELLER_CHECK_REASON_REVIEWS_NEGATIVE_FEW: { | |
message: "$RATE$ покупателей недовольны товарами продавца.", | |
placeholders: { | |
rate: { | |
content: "$1", | |
example: "10%" | |
} | |
} | |
}, | |
SELLER_CHECK_REASON_DETAIL_COMMUNICATION_POSITIVE: { | |
message: "Покупатели довольны общением с продавцом." | |
}, | |
SELLER_CHECK_REASON_DETAIL_COMMUNICATION_NEGATIVE: { | |
message: "Не все покупатели довольны общением с продавцом." | |
}, | |
SELLER_CHECK_REASON_DETAIL_DESCRIPTION_POSITIVE: { | |
message: "Товары продавца соответствуют описанию." | |
}, | |
SELLER_CHECK_REASON_DETAIL_DESCRIPTION_NEGATIVE: { | |
message: "Не все товары продавца соответствуют описанию." | |
}, | |
SELLER_CHECK_REASON_DETAIL_SHIPPING_POSITIVE: { | |
message: "Продавец быстро отправляет товар." | |
}, | |
SELLER_CHECK_REASON_DETAIL_SHIPPING_NEGATIVE: { | |
message: "Продавец может тянуть при отправке товара." | |
}, | |
SELLER_CHECK_CONCLUSION_NO_STORE: { | |
message: "<b>Внимание!</b> Продавец не имеет магазина, покупать здесь очень опастно!" | |
}, | |
SELLER_CHECK_CONCLUSION_UNSURE: { | |
message: "Продавец продал мало товаров, чтобы делать о нём выводы. Будьте внимательны." | |
}, | |
SELLER_CHECK_CONCLUSION_EXTRA_HIGH: { | |
message: "Уровень доверия — высокий. Почитайте отзывы, пообщайтесь с продавцом. Если всё устраивает — покупайте." | |
}, | |
SELLER_CHECK_CONCLUSION_HIGH: { | |
message: "Уровень доверия — средний. Почитайте отзывы, пообщайтесь с продавцом. Если всё устраивает — покупайте." | |
}, | |
SELLER_CHECK_CONCLUSION_NORMAL: { | |
message: "Уровень доверия — средний. Будьте максимально внимательными при покупке." | |
}, | |
SELLER_CHECK_CONCLUSION_LOW: { | |
message: "Уровень доверия — низкий. Советуем отказаться от покупки." | |
}, | |
SELLER_CHECK_CONCLUSION_EXTRA_LOW: { | |
message: "Советуем отказаться от покупки — продавец не зарегистрирован на сайте как магазин!" | |
}, | |
SETTINGS_LABEL_PANEL_ALL_PAGES: { | |
message: "Показывать панель расширения на всех страницах AliExpress" | |
}, | |
SETTINGS_LABEL_NOTIFICATIONS_BADGE: { | |
message: "Показывать на панели количество новых уведомлений" | |
}, | |
SETTINGS_LABEL_PAGE_SELLER_CHECK: { | |
message: "Показывать блок проверки продавца на странице товара" | |
}, | |
SETTINGS_LABEL_THEME: { | |
message: "Цветовая схема" | |
}, | |
SETTINGS_LABEL_LANGUAGE: { | |
message: "Язык" | |
}, | |
SETTINGS_LABEL_CURRENCY: { | |
message: "Валюта" | |
}, | |
SETTINGS_LABEL_PUSH_NOTIFICATIONS: { | |
message: "PUSH-уведомления" | |
}, | |
SETTINGS_LABEL_EMAIL_NOTIFICATIONS: { | |
message: "E-mail-уведомления" | |
}, | |
SETTINGS_NOTE_CURRENCY: { | |
message: "Цены в расширении в этой валюте могут отличаться от цен AliExpress на 1–5%." | |
}, | |
SETTINGS_NOTE_SIGN_UP: { | |
message: "Зарегистрируйтесь" | |
}, | |
SETTINGS_NOTE_OR: { | |
message: "или" | |
}, | |
SETTINGS_NOTE_LOGIN: { | |
message: "войдите" | |
}, | |
SETTINGS_NOTE_END: { | |
message: "используя учётную запись AliTools,<br> чтобы использовать все возможности расширения." | |
}, | |
SETTINGS_THEMES_DEFAULT: { | |
message: "тёмная" | |
}, | |
SETTINGS_THEMES_LIGHT: { | |
message: "светлая" | |
}, | |
STATIC_SETTINGS_TITLE: { | |
message: "Настройки — AliTools" | |
}, | |
STATIC_TRACKING_PACKAGES_TITLE: { | |
message: "Трекинг посылок — AliTools" | |
}, | |
STATIC_TRACKING_ARCHIVE_TITLE: { | |
message: "Архив посылок — AliTools" | |
}, | |
TAB_FAVORITES_TITLE: { | |
message: "Избранное" | |
}, | |
TAB_FAVORITES_EMPTY_TITLE: { | |
message: "Здесь пока ничего нет" | |
}, | |
TAB_FAVORITES_EMPTY_MESSAGE: { | |
message: "Добавьте сюда товары, чтобы отслеживать цены" | |
}, | |
TAB_FAVORITES_LOADING_MESSAGE: { | |
message: "Загружаем товары..." | |
}, | |
TAB_FAVORITES_ERROR_MESSAGE: { | |
message: "Во время загрузки товаров возникла ошибка" | |
}, | |
TAB_FAVORITES_MORE: { | |
message: "Больше товаров" | |
}, | |
TAB_PRICE_HISTORY_TITLE: { | |
message: "Динамика цены" | |
}, | |
TAB_PRICE_HISTORY_TIP: { | |
message: "Мы сообщим о снижении цены.<br>Товар добавится в избранное." | |
}, | |
TAB_PRICE_HISTORY_DISABLED_MESSAGE: { | |
message: "Перейдите на страницу товара, чтобы увидеть изменения цены за последние 3 месяца" | |
}, | |
TAB_PRICE_HISTORY_LOADING_MESSAGE: { | |
message: "Загружаем информацию о товаре..." | |
}, | |
TAB_PRICE_HISTORY_ERROR_MESSAGE: { | |
message: "Во время загрузки истории цен возникла ошибка" | |
}, | |
TAB_SELLER_CHECK_TITLE: { | |
message: "Рейтинг продавца" | |
}, | |
TAB_SELLER_CHECK_EMPTY_MESSAGE: { | |
message: "Мы пока не собрали достаточно информации об этом продавце" | |
}, | |
TAB_SELLER_CHECK_DISABLED_MESSAGE: { | |
message: "Перейдите на страницу товара, чтобы увидеть рейтинг продавца" | |
}, | |
TAB_SELLER_CHECK_LOADING_MESSAGE: { | |
message: "Собираем информацию о продавце..." | |
}, | |
TAB_SELLER_CHECK_ERROR_MESSAGE: { | |
message: "Во время проверки продавца произошла ошибка" | |
}, | |
TAB_REVIEWS_TITLE: { | |
message: "Обзоры" | |
}, | |
TAB_REVIEWS_DISABLED_MESSAGE: { | |
message: "Перейдите на страницу товара, чтобы увидеть обзоры" | |
}, | |
TAB_REVIEWS_EMPTY_MESSAGE: { | |
message: "Мы не нашли обзоры этого товара" | |
}, | |
TAB_REVIEWS_LOADING_MESSAGE: { | |
message: "Загружаем информацию о товаре..." | |
}, | |
TAB_REVIEWS_ERROR_MESSAGE: { | |
message: "Во время загрузки обзоров произошла ошибка" | |
}, | |
TRACKING_TAB_PACKAGES: { | |
message: "Трекинг посылок" | |
}, | |
TRACKING_TAB_ARCHIVE: { | |
message: "Архив" | |
}, | |
TRACKING_INPUT_PLACEHOLDER: { | |
message: "Номер отслеживания" | |
}, | |
TRACKING_MESSAGE_EDIT_NAME: { | |
message: "Введите имя для посылки" | |
}, | |
TRACKING_MESSAGE_PACKAGES_EMPTY: { | |
message: "Чтобы узнать где сейчас находится ваша посылка, введите в поле ниже код отслеживания,<br />который вам дал продавец." | |
}, | |
TRACKING_MESSAGE_ARCHIVE_EMPTY: { | |
message: "Здесь пока ничего нет.<br />Чтобы не запутаться, перемещайте в архив доставленные посылки." | |
}, | |
TRACKING_MESSAGE_LOADING: { | |
message: "Загрузка..." | |
}, | |
TRACKING_MESSAGE_LOADING_ERROR: { | |
message: "При загрузке посылок произошла ошибка." | |
}, | |
TRACKING_ACTION_SELECT_ALL: { | |
message: "Открыть все посылки<br />на одной странице" | |
}, | |
TRACKING_ACTION_UPDATE: { | |
message: "Редактировать" | |
}, | |
TRACKING_ACTION_REMOVE: { | |
message: "Удалить" | |
}, | |
TRACKING_ACTION_ARCHIVE: { | |
message: "В архив" | |
}, | |
TRACKING_ACTION_RESTORE: { | |
message: "Восстановить" | |
}, | |
VIDEO_THUMB_VIEWS: { | |
message: "$VIEWS$ {pluralize, $VIEWS$, просмотр|просмотра|просмотров}", | |
placeholders: { | |
views: { | |
content: "$1", | |
example: "5460" | |
} | |
} | |
} | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.getCookie = void 0; | |
var o = r(10), | |
s = n(o), | |
a = r(15), | |
i = n(a); | |
t.getCookie = function () { | |
var e = (0, i.default)(s.default.mark(function e(t, r) { | |
return s.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
return e.abrupt("return", new Promise(function (e, n) { | |
chrome.cookies.getAll({ | |
domain: t, | |
name: r | |
}, function (t) { | |
e(t[0] || null) | |
}) | |
})); | |
case 1: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return function (t, r) { | |
return e.apply(this, arguments) | |
} | |
}() | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return new Promise(function (t, r) { | |
var n = new XMLHttpRequest; | |
n.open("POST", (0, s.getConfigItem)("promotionApiUrl"), !0), n.timeout = 5 * a.SECOND, n.setRequestHeader("Accept", "application/json"), n.setRequestHeader("Content-Type", "application/json"), n.setRequestHeader("X-AliTools-Version", (0, i.getCurrentVersion)()), n.setRequestHeader("X-AliTools-Locale", (0, i.getCurrentLocale)()), n.setRequestHeader("X-AliTools-PTK", (0, i.getPtk)()), n.onload = function () { | |
if (this.status >= 200 && this.status < 400) { | |
var e = JSON.parse(this.responseText); | |
if (e.status) return t(e.url) | |
} | |
r() | |
}, n.onerror = function () { | |
r() | |
}, n.ontimeout = function () { | |
r() | |
}; | |
var o = { | |
url: e | |
}; | |
n.send(JSON.stringify(o)) | |
}) | |
} | |
function o(e, t) { | |
/* | |
return t.aff_short_key = (0, s.getConfigItem)("aeSecretKey"), t.dl_target_url = e, t.afref = "", t.cv = 90001, "http://s.click.aliexpress.com/deep_link.htm?" + (0, u.buildQueryString)(t) | |
*/ | |
return null | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.fetchPromotionUrl = n, t.createDeeplink = o; | |
var s = r(13), | |
a = r(19), | |
i = r(7), | |
u = r(43) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return { | |
type: "basic", | |
iconUrl: e.imageUrl || c, | |
title: (0, u.translation)("PUSH_SINGLE_TITLE"), | |
message: e.name || "", | |
contextMessage: "© AliTools" | |
} | |
} | |
function o(e, t) { | |
for (var r = t > 3 ? 3 : t, n = t - r, o = [], s = 0; s < r; s++) o.push({ | |
title: "• " + e[s].name, | |
message: "" | |
}); | |
return n && o.push({ | |
title: "", | |
message: (0, u.translation)("PUSH_MULTIPLE_MORE", n) | |
}), { | |
type: "list", | |
iconUrl: c, | |
title: (0, u.translation)("PUSH_MULTIPLE_TITLE"), | |
message: "", | |
items: o | |
} | |
} | |
function s(e, t) { | |
chrome.notifications.create(null, e, function (r) { | |
E[r] = { | |
options: e, | |
extraData: t | |
} | |
}) | |
} | |
function a(e) { | |
_.push(e) | |
} | |
function i(e) { | |
l.push(e) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.createSinglePush = n, t.createMultiplePush = o, t.sendPush = s, t.onClickPush = a, t.onClosePush = i; | |
var u = r(67), | |
c = "https://alitools.io/images/extension/notification-icon.png", | |
E = {}, | |
_ = [], | |
l = []; | |
chrome.notifications.onClicked.addListener(function (e) { | |
if (!E[e]) throw new Error("Notification with ID " + e + ' not found in "createdPushes"'); | |
var t = E[e], | |
r = t.options, | |
n = t.extraData; | |
_.forEach(function (e) { | |
return e(r, n) | |
}), chrome.notifications.clear(e) | |
}), chrome.notifications.onClosed.addListener(function (e, t) { | |
if (!E[e]) throw new Error("Notification with ID " + e + ' not found in "createdPushes"'); | |
var r = E[e], | |
n = r.options, | |
o = r.extraData; | |
o.byUser = t, l.forEach(function (e) { | |
return e(n, o) | |
}), delete E[e] | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
for (var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", r = "", n = 0; n < e; n++) r += t.charAt(Math.floor(Math.random() * t.length)); | |
return r | |
} | |
function o(e, t) { | |
return Math.floor(Math.random() * (t - e)) + e | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.randomString = n, t.randomInt = o | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
var t = (0, s.randomInt)(3, 9); | |
return e.split("").map(function (r, n) { | |
return e.charCodeAt(n) + t | |
}).splice(0, 0, t + 100) | |
} | |
function o(e) { | |
return e.map(function (t) { | |
return String.fromCharCode(t - e[0] + 100) | |
}).slice(1).join("") | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.encodeString = n, t.decodeString = o; | |
var s = r(104) | |
}, function (e, t, r) { | |
"use strict"; | |
e.exports = [{ | |
k: [107, 104, 108], | |
d: [106, 103, 114, 111, 107, 126, 118, 120, 107, 121, 121, 52, 105, 117, 115], | |
l: null | |
}, { | |
k: [104, 102, 107], | |
d: [107, 105, 104, 117, 110, 110, 118, 118, 107, 53, 106, 118, 116], | |
l: null | |
}, { | |
k: [106, 109, 104], | |
d: [107, 110, 108, 104, 121, 105, 108, 122, 123, 53, 106, 118, 116], | |
l: [108, 112, 124, 124, 120, 66, 55, 55, 111, 106, 54, 105, 116, 113, 124, 119, 119, 116, 123, 54, 113, 119, 55, 122, 109, 108, 113, 122, 109, 107, 124, 55, 107, 120, 105, 55, 119, 55, 119, 112, 122, 63, 124, 61, 63, 108, 111, 106, 115, 112, 60, 106, 122, 116, 58, 120, 60, 125, 116, 114, 63, 113, 59, 108, 115, 130, 117, 115, 125, 125, 55, 71, 123, 125, 106, 69, 123, 125, 106, 105, 107, 107, 119, 125, 118, 124, 46, 124, 119, 69] | |
}] | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = r(45), | |
s = n(o), | |
a = r(46), | |
i = n(a), | |
u = r(13), | |
c = r(0), | |
E = function () { | |
function e() { | |
(0, s.default)(this, e) | |
} | |
return (0, i.default)(e, null, [{ | |
key: "enabled", | |
value: function () { | |
return (0, u.getConfigItem)("limiter") | |
} | |
}, { | |
key: "knows", | |
value: function (e) { | |
return null !== this.findRuleFor(e) | |
} | |
}, { | |
key: "blocks", | |
value: function () { | |
return Date.now() < (0, c.getStorageItem)("limiter-timeout-until") | |
} | |
}, { | |
key: "updateTimeout", | |
value: function (e) { | |
var t = (0, c.getStorageItem)("limiter-timeout-until"), | |
r = Date.now() + e; | |
r > t && (0, c.setStorageItem)("limiter-timeout-until", r) | |
} | |
}, { | |
key: "findRuleFor", | |
value: function (e) { | |
var t = (0, u.getConfigItem)("limiterConfig"); | |
for (var r in t) | |
if (e.search(r) >= 0) return { | |
name: r, | |
timeout: parseInt(t[r]) | |
}; | |
return null | |
} | |
}]), e | |
}(); | |
t.default = E | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = r(45), | |
s = n(o), | |
a = r(46), | |
i = n(a), | |
u = r(0), | |
c = function () { | |
function e() { | |
(0, s.default)(this, e) | |
} | |
return (0, i.default)(e, null, [{ | |
key: "get", | |
value: function (e) { | |
var t = (0, u.decodeStorageItem)("extlink"); | |
if (!t) return null; | |
var r = t[0].indexOf(e); | |
return -1 !== r ? t[1][r] : null | |
} | |
}, { | |
key: "set", | |
value: function (e, t) { | |
var r = (0, u.decodeStorageItem)("extlink"); | |
r || (r = [[], []]); | |
var n = r[0].indexOf(e); - 1 === n && (n = r[0].length), r[0][n] = e, r[1][n] = t, (0, u.encodeStorageItem)("extlink", r) | |
} | |
}, { | |
key: "isPassed", | |
value: function (e, t) { | |
var r = this.get(e); | |
return Date.now() > r + t | |
} | |
}]), e | |
}(); | |
t.default = c | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = r(45), | |
s = n(o), | |
a = r(46), | |
i = n(a), | |
u = function () { | |
function e(t) { | |
(0, s.default)(this, e), this.lastActivity = null, this.sessionLength = 0, this.options = { | |
afkTimeout: 0 | |
}, this.options = Object.assign({}, this.options, t) | |
} | |
return (0, i.default)(e, [{ | |
key: "startActivity", | |
value: function () { | |
this.lastActivity = this.constructor.getCurrentTime(), this.sessionLength = 0 | |
} | |
}, { | |
key: "registerActivity", | |
value: function () { | |
if (!this.lastActivity) return this.startActivity(); | |
if (this.isAFK()) return this.startActivity(); | |
var e = this.constructor.getCurrentTime(); | |
this.sessionLength += e.getTime() - this.lastActivity.getTime(), this.lastActivity = e | |
} | |
}, { | |
key: "isAFK", | |
value: function () { | |
return !!this.options.afkTimeout && (!this.lastActivity || this.constructor.getCurrentTime().getTime() - this.lastActivity.getTime() > this.options.afkTimeout) | |
} | |
}], [{ | |
key: "getCurrentTime", | |
value: function () { | |
return new Date | |
} | |
}]), e | |
}(); | |
t.default = u | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o() { | |
return (0, N.isLoggedIn)() && s() | |
} | |
function s() { | |
return (0, R.getSettingsItem)("enablePushNotifications") | |
} | |
function a(e) { | |
var t = i(), | |
r = setInterval(function () { | |
t.sessionLength > 3 * v.MINUTE && (clearInterval(r), e()) | |
}, 30 * v.SECOND) | |
} | |
function i() { | |
var e = new y.default({ | |
afkTimeout: 7 * v.MINUTE | |
}); | |
return e.startActivity(), chrome.windows.onFocusChanged.addListener(function (t) { | |
e.registerActivity() | |
}), chrome.tabs.onActivated.addListener(function (t) { | |
e.registerActivity() | |
}), chrome.tabs.onUpdated.addListener(function (t, r, n) { | |
"complete" === r.status && e.registerActivity() | |
}), e | |
} | |
function u() { | |
return "ru" === (0, O.getLanguage)() | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var c = r(27), | |
E = n(c), | |
_ = r(10), | |
l = n(_), | |
f = r(15), | |
d = n(f), | |
S = function () { | |
var e = (0, d.default)(l.default.mark(function e() { | |
var t, r, n, o, s; | |
return l.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
return t = (0, I.getTimePushViewed)(), e.next = 3, (0, I.fetchNotifications)(t); | |
case 3: | |
return r = e.sent, n = (0, E.default)(r, 2), o = n[0], s = n[1], e.abrupt("return", s > 0); | |
case 8: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return function () { | |
return e.apply(this, arguments) | |
} | |
}(), | |
T = function () { | |
var e = (0, d.default)(l.default.mark(function e() { | |
var t, r, n, s, a; | |
return l.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
if (o()) { | |
e.next = 2; | |
break | |
} | |
return e.abrupt("return"); | |
case 2: | |
return t = (0, I.getTimePushViewed)(), e.next = 5, (0, I.fetchNotifications)(t); | |
case 5: | |
if (r = e.sent, n = (0, E.default)(r, 2), s = n[0], !((a = n[1]) < 1)) { | |
e.next = 11; | |
break | |
} | |
return e.abrupt("return"); | |
case 11: | |
if ((0, I.updateTimePushViewed)(), (0, O.setLanguage)((0, R.getSettingsItem)("language")), (0, g.default)("send", "event", "push", "show"), 1 !== s.length) { | |
e.next = 17; | |
break | |
} | |
return e.next = 17, A((0, C.createSinglePush)(s[0]), { | |
type: "single", | |
productUrl: s[0].productUrl | |
}); | |
case 17: | |
if (2 !== s.length) { | |
e.next = 22; | |
break | |
} | |
return e.next = 20, A((0, C.createSinglePush)(s[0]), { | |
type: "single", | |
productUrl: s[0].productUrl | |
}); | |
case 20: | |
return e.next = 22, A((0, C.createSinglePush)(s[1]), { | |
type: "single", | |
productUrl: s[1].productUrl | |
}); | |
case 22: | |
if (!(s.length > 2)) { | |
e.next = 25; | |
break | |
} | |
return e.next = 25, A((0, C.createMultiplePush)(s, a), { | |
type: "multiple" | |
}); | |
case 25: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return function () { | |
return e.apply(this, arguments) | |
} | |
}(), | |
A = function () { | |
var e = (0, d.default)(l.default.mark(function e(t, r) { | |
return l.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
return (0, g.default)("send", "event", "push", "item", r.type), e.next = 3, (0, C.sendPush)(t, r); | |
case 3: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return function (t, r) { | |
return e.apply(this, arguments) | |
} | |
}(), | |
m = r(24), | |
g = n(m), | |
p = r(66), | |
O = r(67), | |
I = r(42), | |
C = r(103), | |
R = r(35), | |
L = r(25), | |
v = r(19), | |
N = r(14), | |
h = r(109), | |
y = n(h); | |
t.default = function () { | |
function e() { | |
return t.apply(this, arguments) | |
} | |
var t = (0, d.default)(l.default.mark(function e() { | |
var t; | |
return l.default.wrap(function (e) { | |
for (;;) switch (e.prev = e.next) { | |
case 0: | |
if (o()) { | |
e.next = 2; | |
break | |
} | |
return e.abrupt("return"); | |
case 2: | |
return e.next = 4, S(); | |
case 4: | |
if (t = e.sent) { | |
e.next = 7; | |
break | |
} | |
return e.abrupt("return"); | |
case 7: | |
a(function () { | |
return (0, p.wrapPromise)(T()) | |
}); | |
case 8: | |
case "end": | |
return e.stop() | |
} | |
}, e, this) | |
})); | |
return e | |
}(), (0, C.onClickPush)(function (e, t) { | |
"single" === t.type && (0, L.openNewTab)(t.productUrl), "multiple" === t.type && u() && (0, L.openNewTab)("https://my.alitools.io/favorites"), (0, g.default)("send", "event", "push", "click", t.type) | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
var t = (0, a.getConfigItem)("aeAllowedDomains"); | |
return s(e, (0, a.getConfigItem)("aeLanguageDomains")) || s(e, t) | |
} | |
function o(e) { | |
return s(e, (0, a.getConfigItem)("aeServiceDomains")) | |
} | |
function s(e, t) { | |
var r = (0, i.getDomainFromUrl)(e), | |
n = !0, | |
o = !1, | |
s = void 0; | |
try { | |
for (var a, u = t[Symbol.iterator](); !(n = (a = u.next()).done); n = !0) { | |
var c = a.value; | |
if (e.indexOf(c + "." + r) >= 0) return !0 | |
} | |
} catch (e) { | |
o = !0, s = e | |
} finally { | |
try { | |
!n && u.return && u.return() | |
} finally { | |
if (o) throw s | |
} | |
} | |
return !1 | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.isAllowedDomain = n, t.isServiceUrl = o; | |
var a = r(13), | |
i = r(43) | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o(e) { | |
return (0, l.default)({ | |
type: d, | |
name: e | |
}, f.SYNC_ACTION, !0) | |
} | |
function s() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : S, | |
t = arguments[1]; | |
switch (t.type) { | |
case d: | |
return (0, E.default)({}, e, { | |
hidden: [].concat((0, u.default)(e.hidden), [t.name]) | |
}); | |
default: | |
return e | |
} | |
} | |
function a(e, t) { | |
return !(-1 !== e.blocks.hidden.indexOf(t)) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.HIDE_BLOCK = void 0; | |
var i = r(47), | |
u = n(i), | |
c = r(6), | |
E = n(c), | |
_ = r(3), | |
l = n(_); | |
t.hideBlock = o, t.default = s, t.visibleBlockSelector = a; | |
var f = r(20), | |
d = t.HIDE_BLOCK = "HIDE_BLOCK", | |
S = { | |
hidden: [] | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n() { | |
return { | |
type: s | |
} | |
} | |
function o() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : a; | |
arguments[1]; | |
return e | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.init = n, t.default = o; | |
var s = t.INIT = "INIT", | |
a = { | |
locale: null, | |
version: null, | |
installVersion: null, | |
updateModalVersion: null | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o() { | |
var e, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "USD"; | |
return e = {}, (0, d.default)(e, T.API_REQUEST, { | |
types: [O, I, C], | |
url: "/user/favorites?currency=" + t | |
}), (0, d.default)(e, A.API_CACHE, { | |
name: "favorites", | |
ttl: 5 * g.MINUTE | |
}), e | |
} | |
function s(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "USD"; | |
return (0, d.default)({ | |
productId: e | |
}, T.API_REQUEST, { | |
types: [R, L, v], | |
url: "/user/favorites/" + e + "?currency=" + t | |
}) | |
} | |
function a(e) { | |
var t; | |
return t = { | |
product: Object.assign({}, e, { | |
timeCreated: (new Date).toISOString() | |
}) | |
}, (0, d.default)(t, T.API_REQUEST, { | |
types: [N, h, y], | |
url: "/user/favorites", | |
options: { | |
method: "POST", | |
body: JSON.stringify(e), | |
headers: { | |
"Content-Type": "application/json" | |
} | |
} | |
}), (0, d.default)(t, A.API_CACHE_DESTROY, { | |
name: "favorites" | |
}), (0, d.default)(t, m.SYNC_ACTION, { | |
types: [N] | |
}), t | |
} | |
function i(e) { | |
var t; | |
return t = { | |
product: e | |
}, (0, d.default)(t, T.API_REQUEST, { | |
types: [P, G, b], | |
url: "/user/favorites/" + e.id, | |
options: { | |
method: "DELETE" | |
} | |
}), (0, d.default)(t, A.API_CACHE_DESTROY, { | |
name: "favorites" | |
}), (0, d.default)(t, m.SYNC_ACTION, { | |
types: [P] | |
}), t | |
} | |
function u() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : U, | |
t = arguments[1]; | |
switch (t.type) { | |
case O: | |
return (0, l.default)({}, e, { | |
readyStatus: S.READY_STATUS_FETCHING, | |
items: [] | |
}); | |
case I: | |
return (0, l.default)({}, e, { | |
readyStatus: S.READY_STATUS_SUCCESS, | |
items: t.data | |
}); | |
case C: | |
return (0, l.default)({}, e, { | |
readyStatus: S.READY_STATUS_FAILURE, | |
items: [] | |
}); | |
case N: | |
return (0, l.default)({}, e, { | |
items: [(0, l.default)({}, t.product, { | |
timeCreated: (new Date).toISOString() | |
})].concat((0, E.default)(e.items)) | |
}); | |
case h: | |
return (0, l.default)({}, e, { | |
items: e.items.map(function (e) { | |
return e.id == t.data.id ? (0, l.default)({}, t.data, { | |
minPrice: e.minPrice, | |
maxPrice: e.maxPrice, | |
currency: e.currency, | |
currencySign: e.currencySign | |
}) : e | |
}) | |
}); | |
case P: | |
return (0, l.default)({}, e, { | |
items: e.items.filter(function (e) { | |
return e.id != t.product.id | |
}) | |
}); | |
case p.LOGOUT: | |
return (0, l.default)({}, e, { | |
items: [] | |
}); | |
default: | |
return e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.REMOVE_FAVORITE_FAILURE = t.REMOVE_FAVORITE_SUCCESS = t.REMOVE_FAVORITE_REQUEST = t.ADD_FAVORITE_FAILURE = t.ADD_FAVORITE_SUCCESS = t.ADD_FAVORITE_REQUEST = t.LOAD_FAVORITE_FAILURE = t.LOAD_FAVORITE_SUCCESS = t.LOAD_FAVORITE_REQUEST = t.LOAD_FAVORITES_LIST_FAILURE = t.LOAD_FAVORITES_LIST_SUCCESS = t.LOAD_FAVORITES_LIST_REQUEST = void 0; | |
var c = r(47), | |
E = n(c), | |
_ = r(6), | |
l = n(_), | |
f = r(3), | |
d = n(f); | |
t.loadFavoritesList = o, t.loadFavorite = s, t.addFavorite = a, t.deleteFavorite = i, t.default = u; | |
var S = r(21), | |
T = r(9), | |
A = r(44), | |
m = r(20), | |
g = r(19), | |
p = r(26), | |
O = t.LOAD_FAVORITES_LIST_REQUEST = "LOAD_FAVORITES_LIST_REQUEST", | |
I = t.LOAD_FAVORITES_LIST_SUCCESS = "LOAD_FAVORITES_LIST_SUCCESS", | |
C = t.LOAD_FAVORITES_LIST_FAILURE = "LOAD_FAVORITES_LIST_FAILURE", | |
R = t.LOAD_FAVORITE_REQUEST = "LOAD_FAVORITE_REQUEST", | |
L = t.LOAD_FAVORITE_SUCCESS = "LOAD_FAVORITE_SUCCESS", | |
v = t.LOAD_FAVORITE_FAILURE = "LOAD_FAVORITE_FAILURE", | |
N = t.ADD_FAVORITE_REQUEST = "ADD_FAVORITE_REQUEST", | |
h = t.ADD_FAVORITE_SUCCESS = "ADD_FAVORITE_SUCCESS", | |
y = t.ADD_FAVORITE_FAILURE = "ADD_FAVORITE_FAILURE", | |
P = t.REMOVE_FAVORITE_REQUEST = "REMOVE_FAVORITE_REQUEST", | |
G = t.REMOVE_FAVORITE_SUCCESS = "REMOVE_FAVORITE_SUCCESS", | |
b = t.REMOVE_FAVORITE_FAILURE = "REMOVE_FAVORITE_FAILURE", | |
U = { | |
readyStatus: S.READY_STATUS_DISABLED, | |
items: [] | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o() { | |
return (0, c.default)({ | |
type: f | |
}, E.SYNC_ACTION, !0) | |
} | |
function s() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : d, | |
t = arguments[1]; | |
switch (e = (0, l.default)(e, d), t.type) { | |
case f: | |
return (0, i.default)({}, e, { | |
isBadgeVisible: !1 | |
}); | |
default: | |
return e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.RESET_NOTIFICATIONS = void 0; | |
var a = r(6), | |
i = n(a), | |
u = r(3), | |
c = n(u); | |
t.resetNotifications = o, t.default = s; | |
var E = r(20), | |
_ = r(126), | |
l = n(_), | |
f = t.RESET_NOTIFICATIONS = "RESET_NOTIFICATIONS", | |
d = { | |
count: 0, | |
isBadgeVisible: !0 | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o(e) { | |
return { | |
type: d, | |
product: e | |
} | |
} | |
function s(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "USD"; | |
return (0, _.default)({ | |
productId: e, | |
currency: t | |
}, f.API_REQUEST, { | |
types: [S, T, A], | |
url: "/products/" + e + "?currency=" + t | |
}) | |
} | |
function a() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : m, | |
t = arguments[1]; | |
switch (t.type) { | |
case d: | |
return (0, c.default)({}, m, { | |
id: t.product.id, | |
pageData: t.product | |
}); | |
case S: | |
return (0, c.default)({}, e, { | |
readyStatus: l.READY_STATUS_FETCHING | |
}); | |
case T: | |
return (0, c.default)({}, e, { | |
readyStatus: l.READY_STATUS_SUCCESS, | |
apiData: i(e, t) | |
}); | |
case A: | |
return (0, c.default)({}, e, { | |
readyStatus: l.READY_STATUS_FAILURE | |
}); | |
default: | |
return e | |
} | |
} | |
function i(e, t) { | |
var r = e.pageData, | |
n = Object.assign({}, t.data); | |
if (r.currency !== n.currency) return n; | |
if (r.minPrice === n.minPrice) return n; | |
if (!n.priceHistory) return n; | |
n.minPrice = r.minPrice, n.maxPrice = r.maxPrice; | |
var o = Object.keys(n.priceHistory); | |
if (0 === o.length) return n; | |
var s = o[o.length - 1]; | |
return n.priceHistory[s].minPrice = n.minPrice, n.priceHistory[s].maxPrice = n.maxPrice, n.priceHistory[s].currency = n.currency, n | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.LOAD_PRODUCT_FAILURE = t.LOAD_PRODUCT_SUCCESS = t.LOAD_PRODUCT_REQUEST = t.SELECT_PAGE_PRODUCT = void 0; | |
var u = r(6), | |
c = n(u), | |
E = r(3), | |
_ = n(E); | |
t.selectPageProduct = o, t.loadProduct = s, t.default = a; | |
var l = r(21), | |
f = r(9), | |
d = t.SELECT_PAGE_PRODUCT = "SELECT_PAGE_PRODUCT", | |
S = t.LOAD_PRODUCT_REQUEST = "LOAD_PRODUCT_REQUEST", | |
T = t.LOAD_PRODUCT_SUCCESS = "LOAD_PRODUCT_SUCCESS", | |
A = t.LOAD_PRODUCT_FAILURE = "LOAD_PRODUCT_FAILURE", | |
m = { | |
readyStatus: l.READY_STATUS_DISABLED, | |
id: null, | |
pageData: {}, | |
apiData: {} | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return (0, a.default)({ | |
productId: e | |
}, u.API_REQUEST, { | |
types: [c, E, _], | |
url: "/products/" + e + "/reviews" | |
}) | |
} | |
function o() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : l, | |
t = arguments[1]; | |
switch (t.type) { | |
case c: | |
return { | |
readyStatus: i.READY_STATUS_FETCHING, | |
items: [] | |
}; | |
case E: | |
return { | |
readyStatus: i.READY_STATUS_SUCCESS, | |
items: t.data | |
}; | |
case _: | |
return { | |
readyStatus: i.READY_STATUS_FAILURE, | |
items: [] | |
}; | |
default: | |
return e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.LOAD_REVIEWS_FAILURE = t.LOAD_REVIEWS_SUCCESS = t.LOAD_REVIEWS_REQUEST = void 0; | |
var s = r(3), | |
a = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(s); | |
t.loadReviews = n, t.default = o; | |
var i = r(21), | |
u = r(9), | |
c = t.LOAD_REVIEWS_REQUEST = "LOAD_REVIEWS_REQUEST", | |
E = t.LOAD_REVIEWS_SUCCESS = "LOAD_REVIEWS_SUCCESS", | |
_ = t.LOAD_REVIEWS_FAILURE = "LOAD_REVIEWS_FAILURE", | |
l = { | |
readyStatus: i.READY_STATUS_DISABLED, | |
items: [] | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; | |
return { | |
type: E, | |
name: e, | |
params: t | |
} | |
} | |
function o() { | |
return { | |
type: _ | |
} | |
} | |
function s(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; | |
return { | |
type: l, | |
name: e, | |
params: t | |
} | |
} | |
function a() { | |
return { | |
type: f | |
} | |
} | |
function i(e) { | |
return { | |
type: d, | |
name: e | |
} | |
} | |
function u() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : S, | |
t = arguments[1]; | |
switch (t.type) { | |
case l: | |
return Object.assign({}, e, { | |
activeTab: t.name, | |
activeTabParams: Object.assign({}, t.params) | |
}); | |
case f: | |
return Object.assign({}, e, { | |
activeTab: null, | |
activeTabParams: {} | |
}); | |
case d: | |
return t.name !== e.activeTab ? Object.assign({}, e, { | |
activeTab: t.name, | |
activeTabParams: Object.assign({}, t.params) | |
}) : Object.assign({}, e, { | |
activeTab: null, | |
activeTabParams: {} | |
}); | |
case E: | |
return Object.assign({}, e, { | |
activeModal: t.name, | |
activeModalParams: Object.assign({}, t.params) | |
}); | |
case _: | |
return Object.assign({}, e, { | |
activeModal: null, | |
activeModalParams: {} | |
}); | |
case c.PLAY_VIDEO: | |
return Object.assign({}, e, { | |
activeModal: "VideoPlayerModal", | |
activeModalParams: {} | |
}); | |
case c.LOGIN: | |
return "AuthModal" === e.activeModal ? Object.assign({}, e, { | |
activeModal: null, | |
activeModalParams: {} | |
}) : e; | |
default: | |
return e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.TOGGLE_TAB = t.CLOSE_TAB = t.OPEN_TAB = t.CLOSE_MODAL = t.OPEN_MODAL = void 0, t.openModal = n, t.closeModal = o, t.openTab = s, t.closeTab = a, t.toggleTab = i, t.default = u; | |
var c = r(26), | |
E = t.OPEN_MODAL = "OPEN_MODAL", | |
_ = t.CLOSE_MODAL = "CLOSE_MODAL", | |
l = t.OPEN_TAB = "OPEN_TAB", | |
f = t.CLOSE_TAB = "CLOSE_TAB", | |
d = t.TOGGLE_TAB = "TOGGLE_TAB", | |
S = { | |
activeTab: null, | |
activeTabParams: {}, | |
activeModal: null, | |
activeModalParams: {} | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e, t) { | |
var r; | |
return r = { | |
type: l, | |
name: e, | |
value: t | |
}, (0, u.default)(r, E.API_CACHE_DESTROY, { | |
name: "favorites" | |
}), (0, u.default)(r, _.SYNC_ACTION, !0), r | |
} | |
function o() { | |
var e; | |
return e = {}, (0, u.default)(e, c.API_REQUEST, { | |
types: [f, d, S], | |
url: "/user/settings" | |
}), (0, u.default)(e, _.SYNC_ACTION, { | |
types: [d] | |
}), e | |
} | |
function s(e, t) { | |
var r; | |
return r = { | |
name: e, | |
value: t | |
}, (0, u.default)(r, c.API_REQUEST, { | |
types: [T, A, m], | |
url: "/user/settings", | |
options: { | |
method: "PATCH", | |
body: JSON.stringify((0, u.default)({}, e, t)), | |
headers: { | |
"Content-Type": "application/json" | |
} | |
} | |
}), (0, u.default)(r, _.SYNC_ACTION, { | |
types: [T] | |
}), r | |
} | |
function a() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, | |
t = arguments[1]; | |
switch (t.type) { | |
case d: | |
return Object.assign({}, e, t.data); | |
case l: | |
case T: | |
return Object.assign({}, e, (0, u.default)({}, t.name, t.value)); | |
default: | |
return e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.CHANGE_USER_OPTION_FAILURE = t.CHANGE_USER_OPTION_SUCCESS = t.CHANGE_USER_OPTION_REQUEST = t.LOAD_USER_SETTINGS_FAILURE = t.LOAD_USER_SETTINGS_SUCCESS = t.LOAD_USER_SETTINGS_REQUEST = t.CHANGE_BROWSER_OPTION = void 0; | |
var i = r(3), | |
u = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(i); | |
t.changeBrowserOption = n, t.loadUserSettings = o, t.changeUserOption = s, t.default = a; | |
var c = r(9), | |
E = r(44), | |
_ = r(20), | |
l = t.CHANGE_BROWSER_OPTION = "CHANGE_BROWSER_OPTION", | |
f = t.LOAD_USER_SETTINGS_REQUEST = "LOAD_USER_SETTINGS_REQUEST", | |
d = t.LOAD_USER_SETTINGS_SUCCESS = "LOAD_USER_SETTINGS_SUCCESS", | |
S = t.LOAD_USER_SETTINGS_FAILURE = "LOAD_USER_SETTINGS_FAILURE", | |
T = t.CHANGE_USER_OPTION_REQUEST = "CHANGE_USER_OPTION_REQUEST", | |
A = t.CHANGE_USER_OPTION_SUCCESS = "CHANGE_USER_OPTION_SUCCESS", | |
m = t.CHANGE_USER_OPTION_FAILURE = "CHANGE_USER_OPTION_FAILURE" | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return { | |
type: c, | |
name: e | |
} | |
} | |
function o() { | |
return { | |
type: E | |
} | |
} | |
function s() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : _, | |
t = arguments[1]; | |
switch (t.type) { | |
case c: | |
return (0, i.default)({}, e, { | |
readyStatus: u.READY_STATUS_FETCHING, | |
name: t.name | |
}); | |
case E: | |
return (0, i.default)({}, e, { | |
readyStatus: u.READY_STATUS_SUCCESS | |
}); | |
default: | |
return e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.PAGE_LOADING_SUCCESS = t.SELECT_SITE = void 0; | |
var a = r(6), | |
i = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(a); | |
t.selectSite = n, t.pageLoadingSuccess = o, t.default = s; | |
var u = r(21), | |
c = t.SELECT_SITE = "SELECT_SITE", | |
E = t.PAGE_LOADING_SUCCESS = "PAGE_LOADING_SUCCESS", | |
_ = { | |
readyStatus: u.READY_STATUS_DISABLED, | |
name: null | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function o(e) { | |
return { | |
type: f, | |
store: e | |
} | |
} | |
function s(e) { | |
return (0, E.default)({ | |
storeId: e | |
}, l.API_REQUEST, { | |
types: [d, S, T], | |
url: "/stores/" + e | |
}) | |
} | |
function a() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : A, | |
t = arguments[1]; | |
switch (t.type) { | |
case f: | |
return (0, u.default)({}, A, t.store); | |
case d: | |
return (0, u.default)({}, e, { | |
readyStatus: _.READY_STATUS_FETCHING | |
}); | |
case S: | |
return (0, u.default)({}, e, t.data, { | |
readyStatus: _.READY_STATUS_SUCCESS | |
}); | |
case T: | |
return (0, u.default)({}, e, { | |
readyStatus: _.READY_STATUS_FAILURE | |
}); | |
default: | |
return e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.LOAD_STORE_FAILURE = t.LOAD_STORE_SUCCESS = t.LOAD_STORE_REQUEST = t.SELECT_PAGE_STORE = void 0; | |
var i = r(6), | |
u = n(i), | |
c = r(3), | |
E = n(c); | |
t.selectPageStore = o, t.loadStore = s, t.default = a; | |
var _ = r(21), | |
l = r(9), | |
f = t.SELECT_PAGE_STORE = "SELECT_PAGE_STORE", | |
d = t.LOAD_STORE_REQUEST = "LOAD_STORE_REQUEST", | |
S = t.LOAD_STORE_SUCCESS = "LOAD_STORE_SUCCESS", | |
T = t.LOAD_STORE_FAILURE = "LOAD_STORE_FAILURE", | |
A = { | |
readyStatus: _.READY_STATUS_DISABLED, | |
id: null, | |
name: null, | |
score: null, | |
scoreMood: null, | |
sellerCheck: null, | |
complaintsCount: 0, | |
complaintsUrl: null | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return { | |
type: O, | |
name: e | |
} | |
} | |
function o() { | |
var e; | |
return e = {}, (0, d.default)(e, T.API_REQUEST, { | |
types: [I, C, R], | |
url: "/user/packages" | |
}), (0, d.default)(e, A.API_CACHE, { | |
name: "packages", | |
ttl: 5 * g.MINUTE | |
}), (0, d.default)(e, m.SYNC_ACTION, { | |
types: [C] | |
}), e | |
} | |
function s() { | |
var e; | |
return e = {}, (0, d.default)(e, T.API_REQUEST, { | |
types: [L, v, N], | |
url: "/user/packages/archive" | |
}), (0, d.default)(e, A.API_CACHE, { | |
name: "packages-archive", | |
ttl: 5 * g.MINUTE | |
}), (0, d.default)(e, m.SYNC_ACTION, { | |
types: [v] | |
}), e | |
} | |
function a(e) { | |
var t; | |
return t = { | |
item: e | |
}, (0, d.default)(t, T.API_REQUEST, { | |
types: [h, y, P], | |
url: "/user/packages", | |
options: { | |
method: "POST", | |
body: JSON.stringify(e), | |
headers: { | |
"Content-Type": "application/json" | |
} | |
} | |
}), (0, d.default)(t, A.API_CACHE_DESTROY, { | |
name: ["packages", "packages-archive"] | |
}), (0, d.default)(t, m.SYNC_ACTION, { | |
types: [y] | |
}), t | |
} | |
function i(e, t) { | |
var r; | |
return r = { | |
item: e, | |
newProps: t | |
}, (0, d.default)(r, T.API_REQUEST, { | |
types: [G, b, U], | |
url: "/user/packages/" + e.trackCode, | |
options: { | |
method: "PATCH", | |
body: JSON.stringify(t), | |
headers: { | |
"Content-Type": "application/json" | |
} | |
} | |
}), (0, d.default)(r, A.API_CACHE_DESTROY, { | |
name: ["packages", "packages-archive"] | |
}), (0, d.default)(r, m.SYNC_ACTION, { | |
types: [G] | |
}), r | |
} | |
function u(e) { | |
var t; | |
return t = { | |
item: e | |
}, (0, d.default)(t, T.API_REQUEST, { | |
types: [M, D, H], | |
url: "/user/packages/" + e.trackCode, | |
options: { | |
method: "DELETE" | |
} | |
}), (0, d.default)(t, A.API_CACHE_DESTROY, { | |
name: ["packages", "packages-archive"] | |
}), (0, d.default)(t, m.SYNC_ACTION, { | |
types: [M] | |
}), t | |
} | |
function c(e) { | |
var t; | |
return t = { | |
item: e | |
}, (0, d.default)(t, T.API_REQUEST, { | |
types: [V, K, w], | |
url: "/user/packages/" + e.trackCode + "/archive", | |
options: { | |
method: "POST" | |
} | |
}), (0, d.default)(t, A.API_CACHE_DESTROY, { | |
name: ["packages", "packages-archive"] | |
}), (0, d.default)(t, m.SYNC_ACTION, { | |
types: [h] | |
}), t | |
} | |
function E(e) { | |
var t; | |
return t = { | |
item: e | |
}, (0, d.default)(t, T.API_REQUEST, { | |
types: [x, F, B], | |
url: "/user/packages/" + e.trackCode + "/restore", | |
options: { | |
method: "POST" | |
} | |
}), (0, d.default)(t, A.API_CACHE_DESTROY, { | |
name: ["packages", "packages-archive"] | |
}), (0, d.default)(t, m.SYNC_ACTION, { | |
types: [x] | |
}), t | |
} | |
function _() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : j, | |
t = arguments[1]; | |
switch (t.type) { | |
case O: | |
return (0, p.updateObject)(e, { | |
activeTab: t.name, | |
readyStatus: S.READY_STATUS_FETCHING, | |
items: [] | |
}); | |
case I: | |
case L: | |
return l(e, t, function () { | |
return (0, p.updateObject)(e, { | |
readyStatus: S.READY_STATUS_FETCHING, | |
items: [] | |
}) | |
}); | |
case C: | |
case v: | |
return l(e, t, function () { | |
return (0, p.updateObject)(e, { | |
readyStatus: S.READY_STATUS_SUCCESS, | |
items: t.data | |
}) | |
}); | |
case R: | |
case N: | |
return l(e, t, function () { | |
return (0, p.updateObject)(e, { | |
readyStatus: S.READY_STATUS_FAILURE, | |
items: [] | |
}) | |
}); | |
case y: | |
return l(e, t, function () { | |
return (0, p.updateObject)(e, { | |
items: (0, p.prependItemToArray)(e.items, t.item) | |
}) | |
}); | |
case G: | |
return (0, p.updateObject)(e, { | |
items: (0, p.updateItemInArray)(e.items, t.newProps, function (e) { | |
return e.trackCode === t.item.trackCode | |
}) | |
}); | |
case M: | |
return (0, p.updateObject)(e, { | |
items: (0, p.removeFromArray)(e.items, function (e) { | |
return e.trackCode === t.item.trackCode | |
}) | |
}); | |
case V: | |
return (0, p.updateObject)(e, { | |
items: "PackagesTab" === e.activeTab ? (0, p.removeFromArray)(e.items, function (e) { | |
return e.trackCode === t.item.trackCode | |
}) : (0, p.prependItemToArray)(e.items, t.item) | |
}); | |
case x: | |
return (0, p.updateObject)(e, { | |
items: "PackagesTab" === e.activeTab ? (0, p.prependItemToArray)(e.items, t.item) : (0, p.removeFromArray)(e.items, function (e) { | |
return e.trackCode === t.item.trackCode | |
}) | |
}); | |
default: | |
return e | |
} | |
} | |
function l(e, t, r) { | |
if ("PackagesTab" === e.activeTab) { | |
if (-1 !== [I, C, R, y].indexOf(t.type)) return r(e) | |
} else if (-1 !== [L, v, N].indexOf(t.type)) return r(e); | |
return e | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.RESTORE_PACKAGE_FAILURE = t.RESTORE_PACKAGE_SUCCESS = t.RESTORE_PACKAGE_REQUEST = t.ARCHIVE_PACKAGE_FAILURE = t.ARCHIVE_PACKAGE_SUCCESS = t.ARCHIVE_PACKAGE_REQUEST = t.REMOVE_PACKAGE_FAILURE = t.REMOVE_PACKAGE_SUCCESS = t.REMOVE_PACKAGE_REQUEST = t.UPDATE_PACKAGE_FAILURE = t.UPDATE_PACKAGE_SUCCESS = t.UPDATE_PACKAGE_REQUEST = t.CREATE_PACKAGE_FAILURE = t.CREATE_PACKAGE_SUCCESS = t.CREATE_PACKAGE_REQUEST = t.LOAD_ARCHIVE_FAILURE = t.LOAD_ARCHIVE_SUCCESS = t.LOAD_ARCHIVE_REQUEST = t.LOAD_PACKAGES_FAILURE = t.LOAD_PACKAGES_SUCCESS = t.LOAD_PACKAGES_REQUEST = t.CHANGE_TRACKING_TAB = void 0; | |
var f = r(3), | |
d = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(f); | |
t.changeTab = n, t.loadPackages = o, t.loadArchive = s, t.createPackage = a, t.updatePackage = i, t.removePackage = u, t.archivePackage = c, t.restorePackage = E, t.default = _; | |
var S = r(21), | |
T = r(9), | |
A = r(44), | |
m = r(20), | |
g = r(19), | |
p = r(125), | |
O = t.CHANGE_TRACKING_TAB = "CHANGE_TRACKING_TAB", | |
I = t.LOAD_PACKAGES_REQUEST = "LOAD_PACKAGES_REQUEST", | |
C = t.LOAD_PACKAGES_SUCCESS = "LOAD_PACKAGES_SUCCESS", | |
R = t.LOAD_PACKAGES_FAILURE = "LOAD_PACKAGES_FAILURE", | |
L = t.LOAD_ARCHIVE_REQUEST = "LOAD_ARCHIVE_REQUEST", | |
v = t.LOAD_ARCHIVE_SUCCESS = "LOAD_ARCHIVE_SUCCESS", | |
N = t.LOAD_ARCHIVE_FAILURE = "LOAD_ARCHIVE_FAILURE", | |
h = t.CREATE_PACKAGE_REQUEST = "CREATE_PACKAGE_REQUEST", | |
y = t.CREATE_PACKAGE_SUCCESS = "CREATE_PACKAGE_SUCCESS", | |
P = t.CREATE_PACKAGE_FAILURE = "CREATE_PACKAGE_FAILURE", | |
G = t.UPDATE_PACKAGE_REQUEST = "UPDATE_PACKAGE_REQUEST", | |
b = t.UPDATE_PACKAGE_SUCCESS = "UPDATE_PACKAGE_SUCCESS", | |
U = t.UPDATE_PACKAGE_FAILURE = "UPDATE_PACKAGE_FAILURE", | |
M = t.REMOVE_PACKAGE_REQUEST = "REMOVE_PACKAGE_REQUEST", | |
D = t.REMOVE_PACKAGE_SUCCESS = "REMOVE_PACKAGE_SUCCESS", | |
H = t.REMOVE_PACKAGE_FAILURE = "REMOVE_PACKAGE_FAILURE", | |
V = t.ARCHIVE_PACKAGE_REQUEST = "ARCHIVE_PACKAGE_REQUEST", | |
K = t.ARCHIVE_PACKAGE_SUCCESS = "ARCHIVE_PACKAGE_SUCCESS", | |
w = t.ARCHIVE_PACKAGE_FAILURE = "ARCHIVE_PACKAGE_FAILURE", | |
x = t.RESTORE_PACKAGE_REQUEST = "RESTORE_PACKAGE_REQUEST", | |
F = t.RESTORE_PACKAGE_SUCCESS = "RESTORE_PACKAGE_SUCCESS", | |
B = t.RESTORE_PACKAGE_FAILURE = "RESTORE_PACKAGE_FAILURE", | |
j = { | |
activeTab: "PackagesTab", | |
readyStatus: S.READY_STATUS_DISABLED, | |
items: [] | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return { | |
type: c, | |
user: e | |
} | |
} | |
function o() { | |
return (0, i.default)({ | |
type: E | |
}, u.SYNC_ACTION, !0) | |
} | |
function s() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null, | |
t = arguments[1]; | |
switch (t.type) { | |
case c: | |
return Object.assign({}, t.user); | |
case E: | |
return null; | |
default: | |
return e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.LOGOUT = t.LOGIN = void 0; | |
var a = r(3), | |
i = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(a); | |
t.login = n, t.logout = o, t.default = s; | |
var u = r(20), | |
c = t.LOGIN = "login", | |
E = t.LOGOUT = "logout" | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return { | |
type: c, | |
video: e | |
} | |
} | |
function o(e) { | |
return (0, i.default)({}, u.API_REQUEST, { | |
types: [E, _, l], | |
url: "/videos/" + e.id + "/viewings", | |
options: { | |
method: "POST" | |
} | |
}) | |
} | |
function s() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : f, | |
t = arguments[1]; | |
switch (t.type) { | |
case c: | |
return Object.assign({}, e, { | |
video: Object.assign({}, t.video) | |
}); | |
default: | |
return e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.VIDEO_VIEWING_FAILURE = t.VIDEO_VIEWING_SUCCESS = t.VIDEO_VIEWING_REQUEST = t.PLAY_VIDEO = void 0; | |
var a = r(3), | |
i = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(a); | |
t.playVideo = n, t.videoViewing = o, t.default = s; | |
var u = r(9), | |
c = t.PLAY_VIDEO = "PLAY_VIDEO", | |
E = t.VIDEO_VIEWING_REQUEST = "VIDEO_VIEWING_REQUEST", | |
_ = t.VIDEO_VIEWING_SUCCESS = "VIDEO_VIEWING_SUCCESS", | |
l = t.VIDEO_VIEWING_FAILURE = "VIDEO_VIEWING_FAILURE", | |
f = { | |
video: null | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e, t) { | |
return Object.assign({}, e, t) | |
} | |
function o(e, t, r) { | |
return e.map(function (e) { | |
return r(e) ? n(e, t) : e | |
}) | |
} | |
function s(e, t) { | |
return e.filter(function (e) { | |
return !t(e) | |
}) | |
} | |
function a(e, t) { | |
return [].concat((0, c.default)(e), [t]) | |
} | |
function i(e, t) { | |
return [t].concat((0, c.default)(e)) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var u = r(47), | |
c = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(u); | |
t.updateObject = n, t.updateItemInArray = o, t.removeFromArray = s, t.appendItemToArray = a, t.prependItemToArray = i | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e, t) { | |
return e.hydrated ? e : (0, s.default)({}, t, e, { | |
hydrated: !0 | |
}) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = r(6), | |
s = function (e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o); | |
t.default = n | |
}, function (e, t, r) { | |
e.exports = { | |
default: r(136), | |
__esModule: !0 | |
} | |
}, function (e, t, r) { | |
e.exports = { | |
default: r(137), | |
__esModule: !0 | |
} | |
}, function (e, t, r) { | |
e.exports = { | |
default: r(138), | |
__esModule: !0 | |
} | |
}, function (e, t, r) { | |
e.exports = { | |
default: r(139), | |
__esModule: !0 | |
} | |
}, function (e, t, r) { | |
e.exports = { | |
default: r(141), | |
__esModule: !0 | |
} | |
}, function (e, t, r) { | |
e.exports = { | |
default: r(142), | |
__esModule: !0 | |
} | |
}, function (e, t, r) { | |
e.exports = { | |
default: r(143), | |
__esModule: !0 | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
t.__esModule = !0; | |
var o = r(133), | |
s = n(o), | |
a = r(132), | |
i = n(a), | |
u = "function" == typeof i.default && "symbol" == typeof s.default ? function (e) { | |
return typeof e | |
} : function (e) { | |
return e && "function" == typeof i.default && e.constructor === i.default && e !== i.default.prototype ? "symbol" : typeof e | |
}; | |
t.default = "function" == typeof i.default && "symbol" === u(s.default) ? function (e) { | |
return void 0 === e ? "undefined" : u(e) | |
} : function (e) { | |
return e && "function" == typeof i.default && e.constructor === i.default && e !== i.default.prototype ? "symbol" : void 0 === e ? "undefined" : u(e) | |
} | |
}, function (e, t) { | |
function r(e) { | |
var t = this, | |
r = _.call(arguments, 1); | |
return new Promise(function (o, s) { | |
function a(t) { | |
var r; | |
try { | |
r = e.next(t) | |
} catch (e) { | |
return s(e) | |
} | |
c(r) | |
} | |
function u(t) { | |
var r; | |
try { | |
r = e.throw(t) | |
} catch (e) { | |
return s(e) | |
} | |
c(r) | |
} | |
function c(e) { | |
if (e.done) return o(e.value); | |
var r = n.call(t, e.value); | |
return r && i(r) ? r.then(a, u) : u(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "' + String(e.value) + '"')) | |
} | |
if ("function" == typeof e && (e = e.apply(t, r)), !e || "function" != typeof e.next) return o(e); | |
a() | |
}) | |
} | |
function n(e) { | |
return e ? i(e) ? e : c(e) || u(e) ? r.call(this, e) : "function" == typeof e ? o.call(this, e) : Array.isArray(e) ? s.call(this, e) : E(e) ? a.call(this, e) : e : e | |
} | |
function o(e) { | |
var t = this; | |
return new Promise(function (r, n) { | |
e.call(t, function (e, t) { | |
if (e) return n(e); | |
arguments.length > 2 && (t = _.call(arguments, 1)), r(t) | |
}) | |
}) | |
} | |
function s(e) { | |
return Promise.all(e.map(n, this)) | |
} | |
function a(e) { | |
for (var t = new e.constructor, r = Object.keys(e), o = [], s = 0; s < r.length; s++) { | |
var a = r[s], | |
u = n.call(this, e[a]); | |
u && i(u) ? function (e, r) { | |
t[r] = void 0, o.push(e.then(function (e) { | |
t[r] = e | |
})) | |
}(u, a) : t[a] = e[a] | |
} | |
return Promise.all(o).then(function () { | |
return t | |
}) | |
} | |
function i(e) { | |
return "function" == typeof e.then | |
} | |
function u(e) { | |
return "function" == typeof e.next && "function" == typeof e.throw | |
} | |
function c(e) { | |
var t = e.constructor; | |
return !!t && ("GeneratorFunction" === t.name || "GeneratorFunction" === t.displayName || u(t.prototype)) | |
} | |
function E(e) { | |
return Object == e.constructor | |
} | |
var _ = Array.prototype.slice; | |
e.exports = r.default = r.co = r, r.wrap = function (e) { | |
function t() { | |
return r.call(this, e.apply(this, arguments)) | |
} | |
return t.__generatorFunction__ = e, t | |
} | |
}, function (e, t, r) { | |
r(34), r(169), e.exports = r(4).Array.from | |
}, function (e, t, r) { | |
r(40), r(34), e.exports = r(167) | |
}, function (e, t, r) { | |
r(40), r(34), e.exports = r(168) | |
}, function (e, t, r) { | |
r(171), e.exports = r(4).Object.assign | |
}, function (e, t, r) { | |
r(172); | |
var n = r(4).Object; | |
e.exports = function (e, t, r) { | |
return n.defineProperty(e, t, r) | |
} | |
}, function (e, t, r) { | |
r(81), r(34), r(40), r(173), e.exports = r(4).Promise | |
}, function (e, t, r) { | |
r(174), r(81), r(175), r(176), e.exports = r(4).Symbol | |
}, function (e, t, r) { | |
r(34), r(40), e.exports = r(61).f("iterator") | |
}, function (e, t) { | |
e.exports = function () {} | |
}, function (e, t) { | |
e.exports = function (e, t, r, n) { | |
if (!(e instanceof t) || void 0 !== n && n in e) throw TypeError(r + ": incorrect invocation!"); | |
return e | |
} | |
}, function (e, t, r) { | |
var n = r(18), | |
o = r(57), | |
s = r(166); | |
e.exports = function (e) { | |
return function (t, r, a) { | |
var i, u = n(t), | |
c = o(u.length), | |
E = s(a, c); | |
if (e && r != r) { | |
for (; c > E;) | |
if ((i = u[E++]) != i) return !0 | |
} else | |
for (; c > E; E++) | |
if ((e || E in u) && u[E] === r) return e || E || 0; | |
return !e && -1 | |
} | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
var n = r(8), | |
o = r(33); | |
e.exports = function (e, t, r) { | |
t in e ? n.f(e, t, o(0, r)) : e[t] = r | |
} | |
}, function (e, t, r) { | |
var n = r(32), | |
o = r(53), | |
s = r(37); | |
e.exports = function (e) { | |
var t = n(e), | |
r = o.f; | |
if (r) | |
for (var a, i = r(e), u = s.f, c = 0; i.length > c;) u.call(e, a = i[c++]) && t.push(a); | |
return t | |
} | |
}, function (e, t, r) { | |
var n = r(29), | |
o = r(73), | |
s = r(72), | |
a = r(11), | |
i = r(57), | |
u = r(62), | |
c = {}, | |
E = {}, | |
t = e.exports = function (e, t, r, _, l) { | |
var f, d, S, T, A = l ? function () { | |
return e | |
} : u(e), | |
m = n(r, _, t ? 2 : 1), | |
g = 0; | |
if ("function" != typeof A) throw TypeError(e + " is not iterable!"); | |
if (s(A)) { | |
for (f = i(e.length); f > g; g++) | |
if ((T = t ? m(a(d = e[g])[0], d[1]) : m(e[g])) === c || T === E) return T | |
} else | |
for (S = A.call(e); !(d = S.next()).done;) | |
if ((T = o(S, m, d.value, t)) === c || T === E) return T | |
}; | |
t.BREAK = c, t.RETURN = E | |
}, function (e, t) { | |
e.exports = function (e, t, r) { | |
var n = void 0 === r; | |
switch (t.length) { | |
case 0: | |
return n ? e() : e.call(r); | |
case 1: | |
return n ? e(t[0]) : e.call(r, t[0]); | |
case 2: | |
return n ? e(t[0], t[1]) : e.call(r, t[0], t[1]); | |
case 3: | |
return n ? e(t[0], t[1], t[2]) : e.call(r, t[0], t[1], t[2]); | |
case 4: | |
return n ? e(t[0], t[1], t[2], t[3]) : e.call(r, t[0], t[1], t[2], t[3]) | |
} | |
return e.apply(r, t) | |
} | |
}, function (e, t, r) { | |
var n = r(28); | |
e.exports = Array.isArray || function (e) { | |
return "Array" == n(e) | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
var n = r(76), | |
o = r(33), | |
s = r(38), | |
a = {}; | |
r(17)(a, r(2)("iterator"), function () { | |
return this | |
}), e.exports = function (e, t, r) { | |
e.prototype = n(a, { | |
next: o(1, r) | |
}), s(e, t + " Iterator") | |
} | |
}, function (e, t) { | |
e.exports = function (e, t) { | |
return { | |
value: t, | |
done: !!e | |
} | |
} | |
}, function (e, t, r) { | |
var n = r(32), | |
o = r(18); | |
e.exports = function (e, t) { | |
for (var r, s = o(e), a = n(s), i = a.length, u = 0; i > u;) | |
if (s[r = a[u++]] === t) return r | |
} | |
}, function (e, t, r) { | |
var n = r(39)("meta"), | |
o = r(31), | |
s = r(16), | |
a = r(8).f, | |
i = 0, | |
u = Object.isExtensible || function () { | |
return !0 | |
}, | |
c = !r(30)(function () { | |
return u(Object.preventExtensions({})) | |
}), | |
E = function (e) { | |
a(e, n, { | |
value: { | |
i: "O" + ++i, | |
w: {} | |
} | |
}) | |
}, | |
_ = function (e, t) { | |
if (!o(e)) return "symbol" == typeof e ? e : ("string" == typeof e ? "S" : "P") + e; | |
if (!s(e, n)) { | |
if (!u(e)) return "F"; | |
if (!t) return "E"; | |
E(e) | |
} | |
return e[n].i | |
}, | |
l = function (e, t) { | |
if (!s(e, n)) { | |
if (!u(e)) return !0; | |
if (!t) return !1; | |
E(e) | |
} | |
return e[n].w | |
}, | |
f = function (e) { | |
return c && d.NEED && u(e) && !s(e, n) && E(e), e | |
}, | |
d = e.exports = { | |
KEY: n, | |
NEED: !1, | |
fastKey: _, | |
getWeak: l, | |
onFreeze: f | |
} | |
}, function (e, t, r) { | |
var n = r(5), | |
o = r(80).set, | |
s = n.MutationObserver || n.WebKitMutationObserver, | |
a = n.process, | |
i = n.Promise, | |
u = "process" == r(28)(a); | |
e.exports = function () { | |
var e, t, r, c = function () { | |
var n, o; | |
for (u && (n = a.domain) && n.exit(); e;) { | |
o = e.fn, e = e.next; | |
try { | |
o() | |
} catch (n) { | |
throw e ? r() : t = void 0, n | |
} | |
} | |
t = void 0, n && n.enter() | |
}; | |
if (u) r = function () { | |
a.nextTick(c) | |
}; | |
else if (s) { | |
var E = !0, | |
_ = document.createTextNode(""); | |
new s(c).observe(_, { | |
characterData: !0 | |
}), r = function () { | |
_.data = E = !E | |
} | |
} else if (i && i.resolve) { | |
var l = i.resolve(); | |
r = function () { | |
l.then(c) | |
} | |
} else r = function () { | |
o.call(n, c) | |
}; | |
return function (n) { | |
var o = { | |
fn: n, | |
next: void 0 | |
}; | |
t && (t.next = o), e || (e = o, r()), t = o | |
} | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
var n = r(32), | |
o = r(53), | |
s = r(37), | |
a = r(58), | |
i = r(71), | |
u = Object.assign; | |
e.exports = !u || r(30)(function () { | |
var e = {}, | |
t = {}, | |
r = Symbol(), | |
n = "abcdefghijklmnopqrst"; | |
return e[r] = 7, n.split("").forEach(function (e) { | |
t[e] = e | |
}), 7 != u({}, e)[r] || Object.keys(u({}, t)).join("") != n | |
}) ? function (e, t) { | |
for (var r = a(e), u = arguments.length, c = 1, E = o.f, _ = s.f; u > c;) | |
for (var l, f = i(arguments[c++]), d = E ? n(f).concat(E(f)) : n(f), S = d.length, T = 0; S > T;) _.call(f, l = d[T++]) && (r[l] = f[l]); | |
return r | |
} : u | |
}, function (e, t, r) { | |
var n = r(8), | |
o = r(11), | |
s = r(32); | |
e.exports = r(12) ? Object.defineProperties : function (e, t) { | |
o(e); | |
for (var r, a = s(t), i = a.length, u = 0; i > u;) n.f(e, r = a[u++], t[r]); | |
return e | |
} | |
}, function (e, t, r) { | |
var n = r(37), | |
o = r(33), | |
s = r(18), | |
a = r(59), | |
i = r(16), | |
u = r(70), | |
c = Object.getOwnPropertyDescriptor; | |
t.f = r(12) ? c : function (e, t) { | |
if (e = s(e), t = a(t, !0), u) try { | |
return c(e, t) | |
} catch (e) {} | |
if (i(e, t)) return o(!n.f.call(e, t), e[t]) | |
} | |
}, function (e, t, r) { | |
var n = r(18), | |
o = r(77).f, | |
s = {}.toString, | |
a = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], | |
i = function (e) { | |
try { | |
return o(e) | |
} catch (e) { | |
return a.slice() | |
} | |
}; | |
e.exports.f = function (e) { | |
return a && "[object Window]" == s.call(e) ? i(e) : o(n(e)) | |
} | |
}, function (e, t, r) { | |
var n = r(16), | |
o = r(58), | |
s = r(54)("IE_PROTO"), | |
a = Object.prototype; | |
e.exports = Object.getPrototypeOf || function (e) { | |
return e = o(e), n(e, s) ? e[s] : "function" == typeof e.constructor && e instanceof e.constructor ? e.constructor.prototype : e instanceof Object ? a : null | |
} | |
}, function (e, t, r) { | |
var n = r(17); | |
e.exports = function (e, t, r) { | |
for (var o in t) r && e[o] ? e[o] = t[o] : n(e, o, t[o]); | |
return e | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
var n = r(5), | |
o = r(4), | |
s = r(8), | |
a = r(12), | |
i = r(2)("species"); | |
e.exports = function (e) { | |
var t = "function" == typeof o[e] ? o[e] : n[e]; | |
a && t && !t[i] && s.f(t, i, { | |
configurable: !0, | |
get: function () { | |
return this | |
} | |
}) | |
} | |
}, function (e, t, r) { | |
var n = r(11), | |
o = r(48), | |
s = r(2)("species"); | |
e.exports = function (e, t) { | |
var r, a = n(e).constructor; | |
return void 0 === a || void 0 == (r = n(a)[s]) ? t : o(r) | |
} | |
}, function (e, t, r) { | |
var n = r(56), | |
o = r(50); | |
e.exports = function (e) { | |
return function (t, r) { | |
var s, a, i = String(o(t)), | |
u = n(r), | |
c = i.length; | |
return u < 0 || u >= c ? e ? "" : void 0 : (s = i.charCodeAt(u), s < 55296 || s > 56319 || u + 1 === c || (a = i.charCodeAt(u + 1)) < 56320 || a > 57343 ? e ? i.charAt(u) : s : e ? i.slice(u, u + 2) : a - 56320 + (s - 55296 << 10) + 65536) | |
} | |
} | |
}, function (e, t, r) { | |
var n = r(56), | |
o = Math.max, | |
s = Math.min; | |
e.exports = function (e, t) { | |
return e = n(e), e < 0 ? o(e + t, 0) : s(e, t) | |
} | |
}, function (e, t, r) { | |
var n = r(11), | |
o = r(62); | |
e.exports = r(4).getIterator = function (e) { | |
var t = o(e); | |
if ("function" != typeof t) throw TypeError(e + " is not iterable!"); | |
return n(t.call(e)) | |
} | |
}, function (e, t, r) { | |
var n = r(49), | |
o = r(2)("iterator"), | |
s = r(23); | |
e.exports = r(4).isIterable = function (e) { | |
var t = Object(e); | |
return void 0 !== t[o] || "@@iterator" in t || s.hasOwnProperty(n(t)) | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
var n = r(29), | |
o = r(22), | |
s = r(58), | |
a = r(73), | |
i = r(72), | |
u = r(57), | |
c = r(147), | |
E = r(62); | |
o(o.S + o.F * !r(75)(function (e) { | |
Array.from(e) | |
}), "Array", { | |
from: function (e) { | |
var t, r, o, _, l = s(e), | |
f = "function" == typeof this ? this : Array, | |
d = arguments.length, | |
S = d > 1 ? arguments[1] : void 0, | |
T = void 0 !== S, | |
A = 0, | |
m = E(l); | |
if (T && (S = n(S, d > 2 ? arguments[2] : void 0, 2)), void 0 == m || f == Array && i(m)) | |
for (t = u(l.length), r = new f(t); t > A; A++) c(r, A, T ? S(l[A], A) : l[A]); | |
else | |
for (_ = m.call(l), r = new f; !(o = _.next()).done; A++) c(r, A, T ? a(_, S, [o.value, A], !0) : o.value); | |
return r.length = A, r | |
} | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
var n = r(144), | |
o = r(153), | |
s = r(23), | |
a = r(18); | |
e.exports = r(74)(Array, "Array", function (e, t) { | |
this._t = a(e), this._i = 0, this._k = t | |
}, function () { | |
var e = this._t, | |
t = this._k, | |
r = this._i++; | |
return !e || r >= e.length ? (this._t = void 0, o(1)) : "keys" == t ? o(0, r) : "values" == t ? o(0, e[r]) : o(0, [r, e[r]]) | |
}, "values"), s.Arguments = s.Array, n("keys"), n("values"), n("entries") | |
}, function (e, t, r) { | |
var n = r(22); | |
n(n.S + n.F, "Object", { | |
assign: r(157) | |
}) | |
}, function (e, t, r) { | |
var n = r(22); | |
n(n.S + n.F * !r(12), "Object", { | |
defineProperty: r(8).f | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
var n, o, s, a = r(36), | |
i = r(5), | |
u = r(29), | |
c = r(49), | |
E = r(22), | |
_ = r(31), | |
l = r(48), | |
f = r(145), | |
d = r(149), | |
S = r(164), | |
T = r(80).set, | |
A = r(156)(), | |
m = i.TypeError, | |
g = i.process, | |
p = i.Promise, | |
g = i.process, | |
O = "process" == c(g), | |
I = function () {}, | |
C = !! function () { | |
try { | |
var e = p.resolve(1), | |
t = (e.constructor = {})[r(2)("species")] = function (e) { | |
e(I, I) | |
}; | |
return (O || "function" == typeof PromiseRejectionEvent) && e.then(I) instanceof t | |
} catch (e) {} | |
}(), | |
R = function (e, t) { | |
return e === t || e === p && t === s | |
}, | |
L = function (e) { | |
var t; | |
return !(!_(e) || "function" != typeof (t = e.then)) && t | |
}, | |
v = function (e) { | |
return R(p, e) ? new N(e) : new o(e) | |
}, | |
N = o = function (e) { | |
var t, r; | |
this.promise = new e(function (e, n) { | |
if (void 0 !== t || void 0 !== r) throw m("Bad Promise constructor"); | |
t = e, r = n | |
}), this.resolve = l(t), this.reject = l(r) | |
}, | |
h = function (e) { | |
try { | |
e() | |
} catch (e) { | |
return { | |
error: e | |
} | |
} | |
}, | |
y = function (e, t) { | |
if (!e._n) { | |
e._n = !0; | |
var r = e._c; | |
A(function () { | |
for (var n = e._v, o = 1 == e._s, s = 0; r.length > s;) ! function (t) { | |
var r, s, a = o ? t.ok : t.fail, | |
i = t.resolve, | |
u = t.reject, | |
c = t.domain; | |
try { | |
a ? (o || (2 == e._h && b(e), e._h = 1), !0 === a ? r = n : (c && c.enter(), r = a(n), c && c.exit()), r === t.promise ? u(m("Promise-chain cycle")) : (s = L(r)) ? s.call(r, i, u) : i(r)) : u(n) | |
} catch (e) { | |
u(e) | |
} | |
}(r[s++]); | |
e._c = [], e._n = !1, t && !e._h && P(e) | |
}) | |
} | |
}, | |
P = function (e) { | |
T.call(i, function () { | |
var t, r, n, o = e._v; | |
if (G(e) && (t = h(function () { | |
O ? g.emit("unhandledRejection", o, e) : (r = i.onunhandledrejection) ? r({ | |
promise: e, | |
reason: o | |
}) : (n = i.console) && n.error && n.error("Unhandled promise rejection", o) | |
}), e._h = O || G(e) ? 2 : 1), e._a = void 0, t) throw t.error | |
}) | |
}, | |
G = function (e) { | |
if (1 == e._h) return !1; | |
for (var t, r = e._a || e._c, n = 0; r.length > n;) | |
if (t = r[n++], t.fail || !G(t.promise)) return !1; | |
return !0 | |
}, | |
b = function (e) { | |
T.call(i, function () { | |
var t; | |
O ? g.emit("rejectionHandled", e) : (t = i.onrejectionhandled) && t({ | |
promise: e, | |
reason: e._v | |
}) | |
}) | |
}, | |
U = function (e) { | |
var t = this; | |
t._d || (t._d = !0, t = t._w || t, t._v = e, t._s = 2, t._a || (t._a = t._c.slice()), y(t, !0)) | |
}, | |
M = function (e) { | |
var t, r = this; | |
if (!r._d) { | |
r._d = !0, r = r._w || r; | |
try { | |
if (r === e) throw m("Promise can't be resolved itself"); | |
(t = L(e)) ? A(function () { | |
var n = { | |
_w: r, | |
_d: !1 | |
}; | |
try { | |
t.call(e, u(M, n, 1), u(U, n, 1)) | |
} catch (e) { | |
U.call(n, e) | |
} | |
}): (r._v = e, r._s = 1, y(r, !1)) | |
} catch (e) { | |
U.call({ | |
_w: r, | |
_d: !1 | |
}, e) | |
} | |
} | |
}; | |
C || (p = function (e) { | |
f(this, p, "Promise", "_h"), l(e), n.call(this); | |
try { | |
e(u(M, this, 1), u(U, this, 1)) | |
} catch (e) { | |
U.call(this, e) | |
} | |
}, n = function (e) { | |
this._c = [], this._a = void 0, this._s = 0, this._d = !1, this._v = void 0, this._h = 0, this._n = !1 | |
}, n.prototype = r(162)(p.prototype, { | |
then: function (e, t) { | |
var r = v(S(this, p)); | |
return r.ok = "function" != typeof e || e, r.fail = "function" == typeof t && t, r.domain = O ? g.domain : void 0, this._c.push(r), this._a && this._a.push(r), this._s && y(this, !1), r.promise | |
}, | |
catch: function (e) { | |
return this.then(void 0, e) | |
} | |
}), N = function () { | |
var e = new n; | |
this.promise = e, this.resolve = u(M, e, 1), this.reject = u(U, e, 1) | |
}), E(E.G + E.W + E.F * !C, { | |
Promise: p | |
}), r(38)(p, "Promise"), r(163)("Promise"), s = r(4).Promise, E(E.S + E.F * !C, "Promise", { | |
reject: function (e) { | |
var t = v(this); | |
return (0, t.reject)(e), t.promise | |
} | |
}), E(E.S + E.F * (a || !C), "Promise", { | |
resolve: function (e) { | |
if (e instanceof p && R(e.constructor, this)) return e; | |
var t = v(this); | |
return (0, t.resolve)(e), t.promise | |
} | |
}), E(E.S + E.F * !(C && r(75)(function (e) { | |
p.all(e).catch(I) | |
})), "Promise", { | |
all: function (e) { | |
var t = this, | |
r = v(t), | |
n = r.resolve, | |
o = r.reject, | |
s = h(function () { | |
var r = [], | |
s = 0, | |
a = 1; | |
d(e, !1, function (e) { | |
var i = s++, | |
u = !1; | |
r.push(void 0), a++, t.resolve(e).then(function (e) { | |
u || (u = !0, r[i] = e, --a || n(r)) | |
}, o) | |
}), --a || n(r) | |
}); | |
return s && o(s.error), r.promise | |
}, | |
race: function (e) { | |
var t = this, | |
r = v(t), | |
n = r.reject, | |
o = h(function () { | |
d(e, !1, function (e) { | |
t.resolve(e).then(r.resolve, n) | |
}) | |
}); | |
return o && n(o.error), r.promise | |
} | |
}) | |
}, function (e, t, r) { | |
"use strict"; | |
var n = r(5), | |
o = r(16), | |
s = r(12), | |
a = r(22), | |
i = r(79), | |
u = r(155).KEY, | |
c = r(30), | |
E = r(55), | |
_ = r(38), | |
l = r(39), | |
f = r(2), | |
d = r(61), | |
S = r(60), | |
T = r(154), | |
A = r(148), | |
m = r(151), | |
g = r(11), | |
p = r(18), | |
O = r(59), | |
I = r(33), | |
C = r(76), | |
R = r(160), | |
L = r(159), | |
v = r(8), | |
N = r(32), | |
h = L.f, | |
y = v.f, | |
P = R.f, | |
G = n.Symbol, | |
b = n.JSON, | |
U = b && b.stringify, | |
M = f("_hidden"), | |
D = f("toPrimitive"), | |
H = {}.propertyIsEnumerable, | |
V = E("symbol-registry"), | |
K = E("symbols"), | |
w = E("op-symbols"), | |
x = Object.prototype, | |
F = "function" == typeof G, | |
B = n.QObject, | |
j = !B || !B.prototype || !B.prototype.findChild, | |
k = s && c(function () { | |
return 7 != C(y({}, "a", { | |
get: function () { | |
return y(this, "a", { | |
value: 7 | |
}).a | |
} | |
})).a | |
}) ? function (e, t, r) { | |
var n = h(x, t); | |
n && delete x[t], y(e, t, r), n && e !== x && y(x, t, n) | |
} : y, | |
Y = function (e) { | |
var t = K[e] = C(G.prototype); | |
return t._k = e, t | |
}, | |
W = F && "symbol" == typeof G.iterator ? function (e) { | |
return "symbol" == typeof e | |
} : function (e) { | |
return e instanceof G | |
}, | |
Q = function (e, t, r) { | |
return e === x && Q(w, t, r), g(e), t = O(t, !0), g(r), o(K, t) ? (r.enumerable ? (o(e, M) && e[M][t] && (e[M][t] = !1), r = C(r, { | |
enumerable: I(0, !1) | |
})) : (o(e, M) || y(e, M, I(1, {})), e[M][t] = !0), k(e, t, r)) : y(e, t, r) | |
}, | |
$ = function (e, t) { | |
g(e); | |
for (var r, n = A(t = p(t)), o = 0, s = n.length; s > o;) Q(e, r = n[o++], t[r]); | |
return e | |
}, | |
q = function (e, t) { | |
return void 0 === t ? C(e) : $(C(e), t) | |
}, | |
z = function (e) { | |
var t = H.call(this, e = O(e, !0)); | |
return !(this === x && o(K, e) && !o(w, e)) && (!(t || !o(this, e) || !o(K, e) || o(this, M) && this[M][e]) || t) | |
}, | |
X = function (e, t) { | |
if (e = p(e), t = O(t, !0), e !== x || !o(K, t) || o(w, t)) { | |
var r = h(e, t); | |
return !r || !o(K, t) || o(e, M) && e[M][t] || (r.enumerable = !0), r | |
} | |
}, | |
J = function (e) { | |
for (var t, r = P(p(e)), n = [], s = 0; r.length > s;) o(K, t = r[s++]) || t == M || t == u || n.push(t); | |
return n | |
}, | |
Z = function (e) { | |
for (var t, r = e === x, n = P(r ? w : p(e)), s = [], a = 0; n.length > a;) !o(K, t = n[a++]) || r && !o(x, t) || s.push(K[t]); | |
return s | |
}; | |
F || (G = function () { | |
if (this instanceof G) throw TypeError("Symbol is not a constructor!"); | |
var e = l(arguments.length > 0 ? arguments[0] : void 0), | |
t = function (r) { | |
this === x && t.call(w, r), o(this, M) && o(this[M], e) && (this[M][e] = !1), k(this, e, I(1, r)) | |
}; | |
return s && j && k(x, e, { | |
configurable: !0, | |
set: t | |
}), Y(e) | |
}, i(G.prototype, "toString", function () { | |
return this._k | |
}), L.f = X, v.f = Q, r(77).f = R.f = J, r(37).f = z, r(53).f = Z, s && !r(36) && i(x, "propertyIsEnumerable", z, !0), d.f = function (e) { | |
return Y(f(e)) | |
}), a(a.G + a.W + a.F * !F, { | |
Symbol: G | |
}); | |
for (var ee = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), te = 0; ee.length > te;) f(ee[te++]); | |
for (var ee = N(f.store), te = 0; ee.length > te;) S(ee[te++]); | |
a(a.S + a.F * !F, "Symbol", { | |
for: function (e) { | |
return o(V, e += "") ? V[e] : V[e] = G(e) | |
}, | |
keyFor: function (e) { | |
if (W(e)) return T(V, e); | |
throw TypeError(e + " is not a symbol!") | |
}, | |
useSetter: function () { | |
j = !0 | |
}, | |
useSimple: function () { | |
j = !1 | |
} | |
}), a(a.S + a.F * !F, "Object", { | |
create: q, | |
defineProperty: Q, | |
defineProperties: $, | |
getOwnPropertyDescriptor: X, | |
getOwnPropertyNames: J, | |
getOwnPropertySymbols: Z | |
}), b && a(a.S + a.F * (!F || c(function () { | |
var e = G(); | |
return "[null]" != U([e]) || "{}" != U({ | |
a: e | |
}) || "{}" != U(Object(e)) | |
})), "JSON", { | |
stringify: function (e) { | |
if (void 0 !== e && !W(e)) { | |
for (var t, r, n = [e], o = 1; arguments.length > o;) n.push(arguments[o++]); | |
return t = n[1], "function" == typeof t && (r = t), !r && m(t) || (t = function (e, t) { | |
if (r && (t = r.call(this, e, t)), !W(t)) return t | |
}), n[1] = t, U.apply(b, n) | |
} | |
} | |
}), G.prototype[D] || r(17)(G.prototype, D, G.prototype.valueOf), _(G, "Symbol"), _(Math, "Math", !0), _(n.JSON, "JSON", !0) | |
}, function (e, t, r) { | |
r(60)("asyncIterator") | |
}, function (e, t, r) { | |
r(60)("observable") | |
}, function (e, t) { | |
var r = Array.isArray, | |
n = Object.prototype.toString; | |
e.exports = r || function (e) { | |
return !!e && "[object Array]" == n.call(e) | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
e.exports = function (e) { | |
return "object" == typeof e && null !== e | |
} | |
}, function (e, t, r) { | |
"use strict"; | |
function n(e) { | |
if (null === e || void 0 === e) throw new TypeError("Object.assign cannot be called with null or undefined"); | |
return Object(e) | |
} | |
/* | |
object-assign | |
(c) Sindre Sorhus | |
@license MIT | |
*/ | |
var o = Object.getOwnPropertySymbols, | |
s = Object.prototype.hasOwnProperty, | |
a = Object.prototype.propertyIsEnumerable; | |
e.exports = function () { | |
try { | |
if (!Object.assign) return !1; | |
var e = new String("abc"); | |
if (e[5] = "de", "5" === Object.getOwnPropertyNames(e)[0]) return !1; | |
for (var t = {}, r = 0; r < 10; r++) t["_" + String.fromCharCode(r)] = r; | |
if ("0123456789" !== Object.getOwnPropertyNames(t).map(function (e) { | |
return t[e] | |
}).join("")) return !1; | |
var n = {}; | |
return "abcdefghijklmnopqrst".split("").forEach(function (e) { | |
n[e] = e | |
}), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, n)).join("") | |
} catch (e) { | |
return !1 | |
} | |
}() ? Object.assign : function (e, t) { | |
for (var r, i, u = n(e), c = 1; c < arguments.length; c++) { | |
r = Object(arguments[c]); | |
for (var E in r) s.call(r, E) && (u[E] = r[E]); | |
if (o) { | |
i = o(r); | |
for (var _ = 0; _ < i.length; _++) a.call(r, i[_]) && (u[i[_]] = r[i[_]]) | |
} | |
} | |
return u | |
} | |
}, function (e, t, r) { | |
(function (t) { | |
var n = "object" == typeof t ? t : "object" == typeof window ? window : "object" == typeof self ? self : this, | |
o = n.regeneratorRuntime && Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime") >= 0, | |
s = o && n.regeneratorRuntime; | |
if (n.regeneratorRuntime = void 0, e.exports = r(181), o) n.regeneratorRuntime = s; | |
else try { | |
delete n.regeneratorRuntime | |
} catch (e) { | |
n.regeneratorRuntime = void 0 | |
} | |
}).call(t, r(65)) | |
}, function (e, t, r) { | |
(function (t) { | |
! function (t) { | |
"use strict"; | |
function r(e, t, r, n) { | |
var s = t && t.prototype instanceof o ? t : o, | |
a = Object.create(s.prototype), | |
i = new f(n || []); | |
return a._invoke = c(e, r, i), a | |
} | |
function n(e, t, r) { | |
try { | |
return { | |
type: "normal", | |
arg: e.call(t, r) | |
} | |
} catch (e) { | |
return { | |
type: "throw", | |
arg: e | |
} | |
} | |
} | |
function o() {} | |
function s() {} | |
function a() {} | |
function i(e) { | |
["next", "throw", "return"].forEach(function (t) { | |
e[t] = function (e) { | |
return this._invoke(t, e) | |
} | |
}) | |
} | |
function u(e) { | |
function r(t, o, s, a) { | |
var i = n(e[t], e, o); | |
if ("throw" !== i.type) { | |
var u = i.arg, | |
c = u.value; | |
return c && "object" == typeof c && m.call(c, "__await") ? Promise.resolve(c.__await).then(function (e) { | |
r("next", e, s, a) | |
}, function (e) { | |
r("throw", e, s, a) | |
}) : Promise.resolve(c).then(function (e) { | |
u.value = e, s(u) | |
}, a) | |
} | |
a(i.arg) | |
} | |
function o(e, t) { | |
function n() { | |
return new Promise(function (n, o) { | |
r(e, t, n, o) | |
}) | |
} | |
return s = s ? s.then(n, n) : n() | |
} | |
"object" == typeof t.process && t.process.domain && (r = t.process.domain.bind(r)); | |
var s; | |
this._invoke = o | |
} | |
function c(e, t, r) { | |
var o = L; | |
return function (s, a) { | |
if (o === N) throw new Error("Generator is already running"); | |
if (o === h) { | |
if ("throw" === s) throw a; | |
return S() | |
} | |
for (r.method = s, r.arg = a;;) { | |
var i = r.delegate; | |
if (i) { | |
var u = E(i, r); | |
if (u) { | |
if (u === y) continue; | |
return u | |
} | |
} | |
if ("next" === r.method) r.sent = r._sent = r.arg; | |
else if ("throw" === r.method) { | |
if (o === L) throw o = h, r.arg; | |
r.dispatchException(r.arg) | |
} else "return" === r.method && r.abrupt("return", r.arg); | |
o = N; | |
var c = n(e, t, r); | |
if ("normal" === c.type) { | |
if (o = r.done ? h : v, c.arg === y) continue; | |
return { | |
value: c.arg, | |
done: r.done | |
} | |
} | |
"throw" === c.type && (o = h, r.method = "throw", r.arg = c.arg) | |
} | |
} | |
} | |
function E(e, t) { | |
var r = e.iterator[t.method]; | |
if (r === T) { | |
if (t.delegate = null, "throw" === t.method) { | |
if (e.iterator.return && (t.method = "return", t.arg = T, E(e, t), "throw" === t.method)) return y; | |
t.method = "throw", t.arg = new TypeError("The iterator does not provide a 'throw' method") | |
} | |
return y | |
} | |
var o = n(r, e.iterator, t.arg); | |
if ("throw" === o.type) return t.method = "throw", t.arg = o.arg, t.delegate = null, y; | |
var s = o.arg; | |
return s ? s.done ? (t[e.resultName] = s.value, t.next = e.nextLoc, "return" !== t.method && (t.method = "next", t.arg = T), t.delegate = null, y) : s : (t.method = "throw", t.arg = new TypeError("iterator result is not an object"), t.delegate = null, y) | |
} | |
function _(e) { | |
var t = { | |
tryLoc: e[0] | |
}; | |
1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]), this.tryEntries.push(t) | |
} | |
function l(e) { | |
var t = e.completion || {}; | |
t.type = "normal", delete t.arg, e.completion = t | |
} | |
function f(e) { | |
this.tryEntries = [{ | |
tryLoc: "root" | |
}], e.forEach(_, this), this.reset(!0) | |
} | |
function d(e) { | |
if (e) { | |
var t = e[p]; | |
if (t) return t.call(e); | |
if ("function" == typeof e.next) return e; | |
if (!isNaN(e.length)) { | |
var r = -1, | |
n = function t() { | |
for (; ++r < e.length;) | |
if (m.call(e, r)) return t.value = e[r], t.done = !1, t; | |
return t.value = T, t.done = !0, t | |
}; | |
return n.next = n | |
} | |
} | |
return { | |
next: S | |
} | |
} | |
function S() { | |
return { | |
value: T, | |
done: !0 | |
} | |
} | |
var T, A = Object.prototype, | |
m = A.hasOwnProperty, | |
g = "function" == typeof Symbol ? Symbol : {}, | |
p = g.iterator || "@@iterator", | |
O = g.asyncIterator || "@@asyncIterator", | |
I = g.toStringTag || "@@toStringTag", | |
C = "object" == typeof e, | |
R = t.regeneratorRuntime; | |
if (R) return void(C && (e.exports = R)); | |
R = t.regeneratorRuntime = C ? e.exports : {}, R.wrap = r; | |
var L = "suspendedStart", | |
v = "suspendedYield", | |
N = "executing", | |
h = "completed", | |
y = {}, | |
P = {}; | |
P[p] = function () { | |
return this | |
}; | |
var G = Object.getPrototypeOf, | |
b = G && G(G(d([]))); | |
b && b !== A && m.call(b, p) && (P = b); | |
var U = a.prototype = o.prototype = Object.create(P); | |
s.prototype = U.constructor = a, a.constructor = s, a[I] = s.displayName = "GeneratorFunction", R.isGeneratorFunction = function (e) { | |
var t = "function" == typeof e && e.constructor; | |
return !!t && (t === s || "GeneratorFunction" === (t.displayName || t.name)) | |
}, R.mark = function (e) { | |
return Object.setPrototypeOf ? Object.setPrototypeOf(e, a) : (e.__proto__ = a, I in e || (e[I] = "GeneratorFunction")), e.prototype = Object.create(U), e | |
}, R.awrap = function (e) { | |
return { | |
__await: e | |
} | |
}, i(u.prototype), u.prototype[O] = function () { | |
return this | |
}, R.AsyncIterator = u, R.async = function (e, t, n, o) { | |
var s = new u(r(e, t, n, o)); | |
return R.isGeneratorFunction(t) ? s : s.next().then(function (e) { | |
return e.done ? e.value : s.next() | |
}) | |
}, i(U), U[I] = "Generator", U[p] = function () { | |
return this | |
}, U.toString = function () { | |
return "[object Generator]" | |
}, R.keys = function (e) { | |
var t = []; | |
for (var r in e) t.push(r); | |
return t.reverse(), | |
function r() { | |
for (; t.length;) { | |
var n = t.pop(); | |
if (n in e) return r.value = n, r.done = !1, r | |
} | |
return r.done = !0, r | |
} | |
}, R.values = d, f.prototype = { | |
constructor: f, | |
reset: function (e) { | |
if (this.prev = 0, this.next = 0, this.sent = this._sent = T, this.done = !1, this.delegate = null, this.method = "next", this.arg = T, this.tryEntries.forEach(l), !e) | |
for (var t in this) "t" === t.charAt(0) && m.call(this, t) && !isNaN(+t.slice(1)) && (this[t] = T) | |
}, | |
stop: function () { | |
this.done = !0; | |
var e = this.tryEntries[0], | |
t = e.completion; | |
if ("throw" === t.type) throw t.arg; | |
return this.rval | |
}, | |
dispatchException: function (e) { | |
function t(t, n) { | |
return s.type = "throw", s.arg = e, r.next = t, n && (r.method = "next", r.arg = T), !!n | |
} | |
if (this.done) throw e; | |
for (var r = this, n = this.tryEntries.length - 1; n >= 0; --n) { | |
var o = this.tryEntries[n], | |
s = o.completion; | |
if ("root" === o.tryLoc) return t("end"); | |
if (o.tryLoc <= this.prev) { | |
var a = m.call(o, "catchLoc"), | |
i = m.call(o, "finallyLoc"); | |
if (a && i) { | |
if (this.prev < o.catchLoc) return t(o.catchLoc, !0); | |
if (this.prev < o.finallyLoc) return t(o.finallyLoc) | |
} else if (a) { | |
if (this.prev < o.catchLoc) return t(o.catchLoc, !0) | |
} else { | |
if (!i) throw new Error("try statement without catch or finally"); | |
if (this.prev < o.finallyLoc) return t(o.finallyLoc) | |
} | |
} | |
} | |
}, | |
abrupt: function (e, t) { | |
for (var r = this.tryEntries.length - 1; r >= 0; --r) { | |
var n = this.tryEntries[r]; | |
if (n.tryLoc <= this.prev && m.call(n, "finallyLoc") && this.prev < n.finallyLoc) { | |
var o = n; | |
break | |
} | |
} | |
o && ("break" === e || "continue" === e) && o.tryLoc <= t && t <= o.finallyLoc && (o = null); | |
var s = o ? o.completion : {}; | |
return s.type = e, s.arg = t, o ? (this.method = "next", this.next = o.finallyLoc, y) : this.complete(s) | |
}, | |
complete: function (e, t) { | |
if ("throw" === e.type) throw e.arg; | |
return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg, this.method = "return", this.next = "end") : "normal" === e.type && t && (this.next = t), y | |
}, | |
finish: function (e) { | |
for (var t = this.tryEntries.length - 1; t >= 0; --t) { | |
var r = this.tryEntries[t]; | |
if (r.finallyLoc === e) return this.complete(r.completion, r.afterLoc), l(r), y | |
} | |
}, | |
catch: function (e) { | |
for (var t = this.tryEntries.length - 1; t >= 0; --t) { | |
var r = this.tryEntries[t]; | |
if (r.tryLoc === e) { | |
var n = r.completion; | |
if ("throw" === n.type) { | |
var o = n.arg; | |
l(r) | |
} | |
return o | |
} | |
} | |
throw new Error("illegal catch attempt") | |
}, | |
delegateYield: function (e, t, r) { | |
return this.delegate = { | |
iterator: d(e), | |
resultName: t, | |
nextLoc: r | |
}, "next" === this.method && (this.arg = T), y | |
} | |
} | |
}("object" == typeof t ? t : "object" == typeof window ? window : "object" == typeof self ? self : this) | |
}).call(t, r(65)) | |
}, function (e, t, r) { | |
"use strict"; | |
e.exports = function (e) { | |
return encodeURIComponent(e).replace(/[!'()*]/g, function (e) { | |
return "%" + e.charCodeAt(0).toString(16).toUpperCase() | |
}) | |
} | |
}, function (e, t) { | |
function r(e, t) { | |
var r = t || 0, | |
o = n; | |
return o[e[r++]] + o[e[r++]] + o[e[r++]] + o[e[r++]] + "-" + o[e[r++]] + o[e[r++]] + "-" + o[e[r++]] + o[e[r++]] + "-" + o[e[r++]] + o[e[r++]] + "-" + o[e[r++]] + o[e[r++]] + o[e[r++]] + o[e[r++]] + o[e[r++]] + o[e[r++]] | |
} | |
for (var n = [], o = 0; o < 256; ++o) n[o] = (o + 256).toString(16).substr(1); | |
e.exports = r | |
}, function (e, t, r) { | |
(function (t) { | |
var r, n = t.crypto || t.msCrypto; | |
if (n && n.getRandomValues) { | |
var o = new Uint8Array(16); | |
r = function () { | |
return n.getRandomValues(o), o | |
} | |
} | |
if (!r) { | |
var s = new Array(16); | |
r = function () { | |
for (var e, t = 0; t < 16; t++) 0 == (3 & t) && (e = 4294967296 * Math.random()), s[t] = e >>> ((3 & t) << 3) & 255; | |
return s | |
} | |
} | |
e.exports = r | |
}).call(t, r(65)) | |
}, function (e, t, r) { | |
function n(e, t, r) { | |
var n = t && r || 0; | |
"string" == typeof e && (t = "binary" == e ? new Array(16) : null, e = null), e = e || {}; | |
var a = e.random || (e.rng || o)(); | |
if (a[6] = 15 & a[6] | 64, a[8] = 63 & a[8] | 128, t) | |
for (var i = 0; i < 16; ++i) t[n + i] = a[i]; | |
return t || s(a) | |
} | |
var o = r(184), | |
s = r(183); | |
e.exports = n | |
}, function (e, t, r) { | |
r(82), r(83), r(84), r(85), r(86), r(87), r(88), r(89), r(90), r(91), r(92), r(93), r(94), e.exports = r(95) | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment